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. |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for llvm 2.8svn. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 6 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11 | # |
John Criswell | 5a12971 | 2010-03-19 21:04:16 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13 | ## --------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## --------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16 | |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 17 | # Be Bourne compatible |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19 | emulate sh |
| 20 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22 | # is contrary to our usage. Disable this feature. |
| 23 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
| 25 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 26 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 28 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 29 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 32 | # PATH needs CR |
| 33 | # Avoid depending upon Character Ranges. |
| 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 37 | as_cr_digits='0123456789' |
| 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 39 | |
| 40 | # The user is always right. |
| 41 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 42 | echo "#! /bin/sh" >conf$$.sh |
| 43 | echo "exit 0" >>conf$$.sh |
| 44 | chmod +x conf$$.sh |
| 45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 46 | PATH_SEPARATOR=';' |
| 47 | else |
| 48 | PATH_SEPARATOR=: |
| 49 | fi |
| 50 | rm -f conf$$.sh |
| 51 | fi |
| 52 | |
| 53 | # Support unset when possible. |
| 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 55 | as_unset=unset |
| 56 | else |
| 57 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 58 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 59 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 60 | |
| 61 | # IFS |
| 62 | # We need space, tab and new line, in precisely that order. Quoting is |
| 63 | # there to prevent editors from complaining about space-tab. |
| 64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 65 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 66 | as_nl=' |
| 67 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 68 | IFS=" "" $as_nl" |
| 69 | |
| 70 | # Find who we are. Look in the path if we contain no directory separator. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 71 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 72 | *[\\/]* ) as_myself=$0 ;; |
| 73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 74 | for as_dir in $PATH |
| 75 | do |
| 76 | IFS=$as_save_IFS |
| 77 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 79 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 80 | IFS=$as_save_IFS |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 81 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 82 | ;; |
| 83 | esac |
| 84 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 85 | # in which case we are not to be found in the path. |
| 86 | if test "x$as_myself" = x; then |
| 87 | as_myself=$0 |
| 88 | fi |
| 89 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 91 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 92 | fi |
| 93 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 94 | # Work around bugs in pre-3.0 UWIN ksh. |
| 95 | for as_var in ENV MAIL MAILPATH |
| 96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 97 | done |
| 98 | PS1='$ ' |
| 99 | PS2='> ' |
| 100 | PS4='+ ' |
| 101 | |
| 102 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 103 | for as_var in \ |
| 104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 106 | LC_TELEPHONE LC_TIME |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 107 | do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 109 | eval $as_var=C; export $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 110 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 112 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 113 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 114 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 115 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 118 | as_expr=expr |
| 119 | else |
| 120 | as_expr=false |
| 121 | fi |
| 122 | |
| 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 124 | as_basename=basename |
| 125 | else |
| 126 | as_basename=false |
| 127 | fi |
| 128 | |
| 129 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 130 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 131 | as_me=`$as_basename -- "$0" || |
| 132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 133 | X"$0" : 'X\(//\)$' \| \ |
| 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 135 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 137 | s//\1/ |
| 138 | q |
| 139 | } |
| 140 | /^X\/\(\/\/\)$/{ |
| 141 | s//\1/ |
| 142 | q |
| 143 | } |
| 144 | /^X\/\(\/\).*/{ |
| 145 | s//\1/ |
| 146 | q |
| 147 | } |
| 148 | s/.*/./; q'` |
| 149 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 150 | # CDPATH. |
| 151 | $as_unset CDPATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 152 | |
| 153 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 154 | if test "x$CONFIG_SHELL" = x; then |
| 155 | if (eval ":") 2>/dev/null; then |
| 156 | as_have_required=yes |
| 157 | else |
| 158 | as_have_required=no |
| 159 | fi |
| 160 | |
| 161 | if test $as_have_required = yes && (eval ": |
| 162 | (as_func_return () { |
| 163 | (exit \$1) |
| 164 | } |
| 165 | as_func_success () { |
| 166 | as_func_return 0 |
| 167 | } |
| 168 | as_func_failure () { |
| 169 | as_func_return 1 |
| 170 | } |
| 171 | as_func_ret_success () { |
| 172 | return 0 |
| 173 | } |
| 174 | as_func_ret_failure () { |
| 175 | return 1 |
| 176 | } |
| 177 | |
| 178 | exitcode=0 |
| 179 | if as_func_success; then |
| 180 | : |
| 181 | else |
| 182 | exitcode=1 |
| 183 | echo as_func_success failed. |
| 184 | fi |
| 185 | |
| 186 | if as_func_failure; then |
| 187 | exitcode=1 |
| 188 | echo as_func_failure succeeded. |
| 189 | fi |
| 190 | |
| 191 | if as_func_ret_success; then |
| 192 | : |
| 193 | else |
| 194 | exitcode=1 |
| 195 | echo as_func_ret_success failed. |
| 196 | fi |
| 197 | |
| 198 | if as_func_ret_failure; then |
| 199 | exitcode=1 |
| 200 | echo as_func_ret_failure succeeded. |
| 201 | fi |
| 202 | |
| 203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 204 | : |
| 205 | else |
| 206 | exitcode=1 |
| 207 | echo positional parameters were not saved. |
| 208 | fi |
| 209 | |
| 210 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 211 | |
| 212 | ( |
| 213 | as_lineno_1=\$LINENO |
| 214 | as_lineno_2=\$LINENO |
| 215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 217 | ") 2> /dev/null; then |
| 218 | : |
| 219 | else |
| 220 | as_candidate_shells= |
| 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 222 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 223 | do |
| 224 | IFS=$as_save_IFS |
| 225 | test -z "$as_dir" && as_dir=. |
| 226 | case $as_dir in |
| 227 | /*) |
| 228 | for as_base in sh bash ksh sh5; do |
| 229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 230 | done;; |
| 231 | esac |
| 232 | done |
| 233 | IFS=$as_save_IFS |
| 234 | |
| 235 | |
| 236 | for as_shell in $as_candidate_shells $SHELL; do |
| 237 | # Try only shells that exist, to save several forks. |
| 238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 239 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 240 | # Be Bourne compatible |
| 241 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 242 | emulate sh |
| 243 | NULLCMD=: |
| 244 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 245 | # is contrary to our usage. Disable this feature. |
| 246 | alias -g '${1+"$@"}'='"$@"' |
| 247 | setopt NO_GLOB_SUBST |
| 248 | else |
| 249 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 250 | fi |
| 251 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 252 | DUALCASE=1; export DUALCASE # for MKS sh |
| 253 | |
| 254 | : |
| 255 | _ASEOF |
| 256 | }; then |
| 257 | CONFIG_SHELL=$as_shell |
| 258 | as_have_required=yes |
| 259 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 260 | # Be Bourne compatible |
| 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 262 | emulate sh |
| 263 | NULLCMD=: |
| 264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 265 | # is contrary to our usage. Disable this feature. |
| 266 | alias -g '${1+"$@"}'='"$@"' |
| 267 | setopt NO_GLOB_SUBST |
| 268 | else |
| 269 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 270 | fi |
| 271 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 272 | DUALCASE=1; export DUALCASE # for MKS sh |
| 273 | |
| 274 | : |
| 275 | (as_func_return () { |
| 276 | (exit $1) |
| 277 | } |
| 278 | as_func_success () { |
| 279 | as_func_return 0 |
| 280 | } |
| 281 | as_func_failure () { |
| 282 | as_func_return 1 |
| 283 | } |
| 284 | as_func_ret_success () { |
| 285 | return 0 |
| 286 | } |
| 287 | as_func_ret_failure () { |
| 288 | return 1 |
| 289 | } |
| 290 | |
| 291 | exitcode=0 |
| 292 | if as_func_success; then |
| 293 | : |
| 294 | else |
| 295 | exitcode=1 |
| 296 | echo as_func_success failed. |
| 297 | fi |
| 298 | |
| 299 | if as_func_failure; then |
| 300 | exitcode=1 |
| 301 | echo as_func_failure succeeded. |
| 302 | fi |
| 303 | |
| 304 | if as_func_ret_success; then |
| 305 | : |
| 306 | else |
| 307 | exitcode=1 |
| 308 | echo as_func_ret_success failed. |
| 309 | fi |
| 310 | |
| 311 | if as_func_ret_failure; then |
| 312 | exitcode=1 |
| 313 | echo as_func_ret_failure succeeded. |
| 314 | fi |
| 315 | |
| 316 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 317 | : |
| 318 | else |
| 319 | exitcode=1 |
| 320 | echo positional parameters were not saved. |
| 321 | fi |
| 322 | |
| 323 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 324 | |
| 325 | ( |
| 326 | as_lineno_1=$LINENO |
| 327 | as_lineno_2=$LINENO |
| 328 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 329 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 330 | |
| 331 | _ASEOF |
| 332 | }; then |
| 333 | break |
| 334 | fi |
| 335 | |
| 336 | fi |
| 337 | |
| 338 | done |
| 339 | |
| 340 | if test "x$CONFIG_SHELL" != x; then |
| 341 | for as_var in BASH_ENV ENV |
| 342 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 343 | done |
| 344 | export CONFIG_SHELL |
| 345 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 346 | fi |
| 347 | |
| 348 | |
| 349 | if test $as_have_required = no; then |
| 350 | echo This script requires a shell more modern than all the |
| 351 | echo shells that I found on your system. Please install a |
| 352 | echo modern shell, or manually run the script under such a |
| 353 | echo shell if you do have one. |
| 354 | { (exit 1); exit 1; } |
| 355 | fi |
| 356 | |
| 357 | |
| 358 | fi |
| 359 | |
| 360 | fi |
| 361 | |
| 362 | |
| 363 | |
| 364 | (eval "as_func_return () { |
| 365 | (exit \$1) |
| 366 | } |
| 367 | as_func_success () { |
| 368 | as_func_return 0 |
| 369 | } |
| 370 | as_func_failure () { |
| 371 | as_func_return 1 |
| 372 | } |
| 373 | as_func_ret_success () { |
| 374 | return 0 |
| 375 | } |
| 376 | as_func_ret_failure () { |
| 377 | return 1 |
| 378 | } |
| 379 | |
| 380 | exitcode=0 |
| 381 | if as_func_success; then |
| 382 | : |
| 383 | else |
| 384 | exitcode=1 |
| 385 | echo as_func_success failed. |
| 386 | fi |
| 387 | |
| 388 | if as_func_failure; then |
| 389 | exitcode=1 |
| 390 | echo as_func_failure succeeded. |
| 391 | fi |
| 392 | |
| 393 | if as_func_ret_success; then |
| 394 | : |
| 395 | else |
| 396 | exitcode=1 |
| 397 | echo as_func_ret_success failed. |
| 398 | fi |
| 399 | |
| 400 | if as_func_ret_failure; then |
| 401 | exitcode=1 |
| 402 | echo as_func_ret_failure succeeded. |
| 403 | fi |
| 404 | |
| 405 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 406 | : |
| 407 | else |
| 408 | exitcode=1 |
| 409 | echo positional parameters were not saved. |
| 410 | fi |
| 411 | |
| 412 | test \$exitcode = 0") || { |
| 413 | echo No shell found that supports shell functions. |
| 414 | echo Please tell autoconf@gnu.org about your system, |
| 415 | echo including any error possibly output before this |
| 416 | echo message |
| 417 | } |
| 418 | |
| 419 | |
| 420 | |
| 421 | as_lineno_1=$LINENO |
| 422 | as_lineno_2=$LINENO |
| 423 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 424 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 425 | |
| 426 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 427 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 428 | # line-number line after each line using $LINENO; the second 'sed' |
| 429 | # does the real work. The second script uses 'N' to pair each |
| 430 | # line-number line with the line containing $LINENO, and appends |
| 431 | # trailing '-' during substitution so that $LINENO is not a special |
| 432 | # case at line end. |
| 433 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 434 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 435 | # E. McMahon (1931-1989) for sed's syntax. :-) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 436 | sed -n ' |
| 437 | p |
| 438 | /[$]LINENO/= |
| 439 | ' <$as_myself | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 440 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 441 | s/[$]LINENO.*/&-/ |
| 442 | t lineno |
| 443 | b |
| 444 | :lineno |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 445 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 446 | :loop |
| 447 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 448 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 449 | s/-\n.*// |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 450 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 451 | chmod +x "$as_me.lineno" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 452 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 453 | { (exit 1); exit 1; }; } |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 454 | |
| 455 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 456 | # (the dirname of $[0] is not the place where we might find the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 457 | # original and so on. Autoconf is especially sensitive to this). |
| 458 | . "./$as_me.lineno" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 459 | # Exit status is that of the last command. |
| 460 | exit |
| 461 | } |
| 462 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 463 | |
| 464 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 465 | as_dirname=dirname |
| 466 | else |
| 467 | as_dirname=false |
| 468 | fi |
| 469 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 470 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 471 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 472 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 473 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 474 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 475 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 476 | esac;; |
| 477 | *) |
| 478 | ECHO_N='-n';; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 479 | esac |
| 480 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 481 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 482 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 483 | as_expr=expr |
| 484 | else |
| 485 | as_expr=false |
| 486 | fi |
| 487 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 488 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 489 | if test -d conf$$.dir; then |
| 490 | rm -f conf$$.dir/conf$$.file |
| 491 | else |
| 492 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 493 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 494 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 495 | echo >conf$$.file |
| 496 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 497 | as_ln_s='ln -s' |
| 498 | # ... but there are two gotchas: |
| 499 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 500 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 501 | # In both cases, we have to default to `cp -p'. |
| 502 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 503 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 504 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 505 | as_ln_s=ln |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 506 | else |
| 507 | as_ln_s='cp -p' |
| 508 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 509 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 510 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 511 | |
| 512 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 513 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 514 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 515 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 516 | as_mkdir_p=false |
| 517 | fi |
| 518 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 519 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 520 | # systems may use methods other than mode bits to determine executability. |
| 521 | cat >conf$$.file <<_ASEOF |
| 522 | #! /bin/sh |
| 523 | exit 0 |
| 524 | _ASEOF |
| 525 | chmod +x conf$$.file |
| 526 | if test -x conf$$.file >/dev/null 2>&1; then |
| 527 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 528 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 529 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 530 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 531 | rm -f conf$$.file |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 532 | |
| 533 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 534 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 535 | |
| 536 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 538 | |
| 539 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 540 | |
| 541 | exec 7<&0 </dev/null 6>&1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 542 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 543 | # Name of the host. |
| 544 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 545 | # so uname gets run too. |
| 546 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 547 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 548 | # |
| 549 | # Initializations. |
| 550 | # |
| 551 | ac_default_prefix=/usr/local |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 552 | ac_clean_files= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 553 | ac_config_libobj_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 554 | LIBOBJS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 555 | cross_compiling=no |
| 556 | subdirs= |
| 557 | MFLAGS= |
| 558 | MAKEFLAGS= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 559 | SHELL=${CONFIG_SHELL-/bin/sh} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 560 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 561 | # Identity of this package. |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 562 | PACKAGE_NAME='llvm' |
Reid Spencer | 2b51a08 | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 563 | PACKAGE_TARNAME='-llvm-' |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 564 | PACKAGE_VERSION='2.8svn' |
| 565 | PACKAGE_STRING='llvm 2.8svn' |
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 | c901719 | 2010-02-25 06:34:33 +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 |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 699 | CLANGPATH |
| 700 | CLANGXXPATH |
| 701 | ENABLE_BUILT_CLANG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 702 | OPTIMIZE_OPTION |
| 703 | EXTRA_OPTIONS |
| 704 | BINUTILS_INCDIR |
| 705 | ENABLE_LLVMC_DYNAMIC |
| 706 | ENABLE_LLVMC_DYNAMIC_PLUGINS |
| 707 | CXX |
| 708 | CXXFLAGS |
| 709 | ac_ct_CXX |
| 710 | NM |
| 711 | ifGNUmake |
| 712 | LN_S |
| 713 | CMP |
| 714 | CP |
| 715 | DATE |
| 716 | FIND |
| 717 | MKDIR |
| 718 | MV |
| 719 | RANLIB |
| 720 | AR |
| 721 | RM |
| 722 | SED |
| 723 | TAR |
| 724 | BINPWD |
| 725 | GRAPHVIZ |
| 726 | DOT |
| 727 | FDP |
| 728 | NEATO |
| 729 | TWOPI |
| 730 | CIRCO |
| 731 | GV |
| 732 | DOTTY |
| 733 | PERL |
| 734 | HAVE_PERL |
| 735 | INSTALL_PROGRAM |
| 736 | INSTALL_SCRIPT |
| 737 | INSTALL_DATA |
| 738 | BZIP2 |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame^] | 739 | CAT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 740 | DOXYGEN |
| 741 | GROFF |
| 742 | GZIP |
| 743 | POD2HTML |
| 744 | POD2MAN |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame^] | 745 | PDFROFF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 746 | RUNTEST |
| 747 | TCLSH |
| 748 | ZIP |
| 749 | OCAMLC |
| 750 | OCAMLOPT |
| 751 | OCAMLDEP |
| 752 | OCAMLDOC |
| 753 | GAS |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 754 | HAVE_LINK_RETAIN_SYMBOLS_FILE |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 755 | INSTALL_LTDL_TRUE |
| 756 | INSTALL_LTDL_FALSE |
| 757 | CONVENIENCE_LTDL_TRUE |
| 758 | CONVENIENCE_LTDL_FALSE |
| 759 | LIBADD_DL |
| 760 | LLVMGCCCOMMAND |
| 761 | LLVMGXXCOMMAND |
| 762 | LLVMGCC |
| 763 | LLVMGXX |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 764 | LLVMCC_OPTION |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 765 | NO_VARIADIC_MACROS |
| 766 | NO_MISSING_FIELD_INITIALIZERS |
| 767 | USE_UDIS86 |
| 768 | USE_OPROFILE |
| 769 | HAVE_PTHREAD |
| 770 | HUGE_VAL_SANITY |
| 771 | MMAP_FILE |
| 772 | LLVMCC1 |
| 773 | LLVMCC1PLUS |
| 774 | LLVMGCCDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 775 | LLVMGCC_LANGS |
| 776 | SHLIBEXT |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 777 | SHLIBPATH_VAR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 778 | LLVM_PREFIX |
| 779 | LLVM_BINDIR |
| 780 | LLVM_LIBDIR |
| 781 | LLVM_DATADIR |
| 782 | LLVM_DOCSDIR |
| 783 | LLVM_ETCDIR |
| 784 | LLVM_INCLUDEDIR |
| 785 | LLVM_INFODIR |
| 786 | LLVM_MANDIR |
| 787 | LLVM_CONFIGTIME |
| 788 | BINDINGS_TO_BUILD |
| 789 | ALL_BINDINGS |
| 790 | OCAML_LIBDIR |
| 791 | ENABLE_VISIBILITY_INLINES_HIDDEN |
| 792 | RPATH |
| 793 | RDYNAMIC |
| 794 | LIBOBJS |
| 795 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 796 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 797 | ac_precious_vars='build_alias |
| 798 | host_alias |
| 799 | target_alias |
| 800 | CC |
| 801 | CFLAGS |
| 802 | LDFLAGS |
| 803 | CPPFLAGS |
| 804 | CPP |
| 805 | CXX |
| 806 | CXXFLAGS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 807 | CCC' |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame] | 808 | ac_subdirs_all='projects/llvm-gcc |
| 809 | projects/test-suite |
| 810 | projects/llvm-test |
| 811 | projects/poolalloc |
| 812 | projects/llvm-poolalloc |
| 813 | projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 814 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 815 | projects/llvm-stacker |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 816 | projects/llvm-reopt |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 817 | projects/llvm-java |
| 818 | projects/llvm-tv |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 819 | projects/safecode |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 820 | projects/llvm-kernel' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 821 | |
| 822 | # Initialize some variables set by options. |
| 823 | ac_init_help= |
| 824 | ac_init_version=false |
| 825 | # The variables have the same names as the options, with |
| 826 | # dashes changed to underlines. |
| 827 | cache_file=/dev/null |
| 828 | exec_prefix=NONE |
| 829 | no_create= |
| 830 | no_recursion= |
| 831 | prefix=NONE |
| 832 | program_prefix=NONE |
| 833 | program_suffix=NONE |
| 834 | program_transform_name=s,x,x, |
| 835 | silent= |
| 836 | site= |
| 837 | srcdir= |
| 838 | verbose= |
| 839 | x_includes=NONE |
| 840 | x_libraries=NONE |
| 841 | |
| 842 | # Installation directory options. |
| 843 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 844 | # and all the variables that are supposed to be based on exec_prefix |
| 845 | # by default will actually change. |
| 846 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 847 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 848 | bindir='${exec_prefix}/bin' |
| 849 | sbindir='${exec_prefix}/sbin' |
| 850 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 851 | datarootdir='${prefix}/share' |
| 852 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 853 | sysconfdir='${prefix}/etc' |
| 854 | sharedstatedir='${prefix}/com' |
| 855 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 856 | includedir='${prefix}/include' |
| 857 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 858 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 859 | infodir='${datarootdir}/info' |
| 860 | htmldir='${docdir}' |
| 861 | dvidir='${docdir}' |
| 862 | pdfdir='${docdir}' |
| 863 | psdir='${docdir}' |
| 864 | libdir='${exec_prefix}/lib' |
| 865 | localedir='${datarootdir}/locale' |
| 866 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 867 | |
| 868 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 869 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 870 | for ac_option |
| 871 | do |
| 872 | # If the previous option needs an argument, assign it. |
| 873 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 874 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 875 | ac_prev= |
| 876 | continue |
| 877 | fi |
| 878 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 879 | case $ac_option in |
| 880 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 881 | *) ac_optarg=yes ;; |
| 882 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 883 | |
| 884 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 885 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 886 | case $ac_dashdash$ac_option in |
| 887 | --) |
| 888 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 889 | |
| 890 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 891 | ac_prev=bindir ;; |
| 892 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 893 | bindir=$ac_optarg ;; |
| 894 | |
| 895 | -build | --build | --buil | --bui | --bu) |
| 896 | ac_prev=build_alias ;; |
| 897 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 898 | build_alias=$ac_optarg ;; |
| 899 | |
| 900 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 901 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 902 | ac_prev=cache_file ;; |
| 903 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 904 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 905 | cache_file=$ac_optarg ;; |
| 906 | |
| 907 | --config-cache | -C) |
| 908 | cache_file=config.cache ;; |
| 909 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 910 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 911 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 912 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 913 | datadir=$ac_optarg ;; |
| 914 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 915 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 916 | | --dataroo | --dataro | --datar) |
| 917 | ac_prev=datarootdir ;; |
| 918 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 919 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 920 | datarootdir=$ac_optarg ;; |
| 921 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 922 | -disable-* | --disable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 923 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 924 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 925 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 926 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 927 | { (exit 1); exit 1; }; } |
| 928 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 929 | eval enable_$ac_feature=no ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 930 | |
| 931 | -docdir | --docdir | --docdi | --doc | --do) |
| 932 | ac_prev=docdir ;; |
| 933 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 934 | docdir=$ac_optarg ;; |
| 935 | |
| 936 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 937 | ac_prev=dvidir ;; |
| 938 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 939 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 940 | |
| 941 | -enable-* | --enable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 942 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 943 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 944 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 945 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 946 | { (exit 1); exit 1; }; } |
| 947 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 948 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 949 | |
| 950 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 951 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 952 | | --exec | --exe | --ex) |
| 953 | ac_prev=exec_prefix ;; |
| 954 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 955 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 956 | | --exec=* | --exe=* | --ex=*) |
| 957 | exec_prefix=$ac_optarg ;; |
| 958 | |
| 959 | -gas | --gas | --ga | --g) |
| 960 | # Obsolete; use --with-gas. |
| 961 | with_gas=yes ;; |
| 962 | |
| 963 | -help | --help | --hel | --he | -h) |
| 964 | ac_init_help=long ;; |
| 965 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 966 | ac_init_help=recursive ;; |
| 967 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 968 | ac_init_help=short ;; |
| 969 | |
| 970 | -host | --host | --hos | --ho) |
| 971 | ac_prev=host_alias ;; |
| 972 | -host=* | --host=* | --hos=* | --ho=*) |
| 973 | host_alias=$ac_optarg ;; |
| 974 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 975 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 976 | ac_prev=htmldir ;; |
| 977 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 978 | | --ht=*) |
| 979 | htmldir=$ac_optarg ;; |
| 980 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 981 | -includedir | --includedir | --includedi | --included | --include \ |
| 982 | | --includ | --inclu | --incl | --inc) |
| 983 | ac_prev=includedir ;; |
| 984 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 985 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 986 | includedir=$ac_optarg ;; |
| 987 | |
| 988 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 989 | ac_prev=infodir ;; |
| 990 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 991 | infodir=$ac_optarg ;; |
| 992 | |
| 993 | -libdir | --libdir | --libdi | --libd) |
| 994 | ac_prev=libdir ;; |
| 995 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 996 | libdir=$ac_optarg ;; |
| 997 | |
| 998 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 999 | | --libexe | --libex | --libe) |
| 1000 | ac_prev=libexecdir ;; |
| 1001 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1002 | | --libexe=* | --libex=* | --libe=*) |
| 1003 | libexecdir=$ac_optarg ;; |
| 1004 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1005 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1006 | ac_prev=localedir ;; |
| 1007 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1008 | localedir=$ac_optarg ;; |
| 1009 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1010 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1011 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1012 | ac_prev=localstatedir ;; |
| 1013 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1014 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1015 | localstatedir=$ac_optarg ;; |
| 1016 | |
| 1017 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1018 | ac_prev=mandir ;; |
| 1019 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1020 | mandir=$ac_optarg ;; |
| 1021 | |
| 1022 | -nfp | --nfp | --nf) |
| 1023 | # Obsolete; use --without-fp. |
| 1024 | with_fp=no ;; |
| 1025 | |
| 1026 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1027 | | --no-cr | --no-c | -n) |
| 1028 | no_create=yes ;; |
| 1029 | |
| 1030 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1031 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1032 | no_recursion=yes ;; |
| 1033 | |
| 1034 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1035 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1036 | | --oldin | --oldi | --old | --ol | --o) |
| 1037 | ac_prev=oldincludedir ;; |
| 1038 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1039 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1040 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1041 | oldincludedir=$ac_optarg ;; |
| 1042 | |
| 1043 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1044 | ac_prev=prefix ;; |
| 1045 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1046 | prefix=$ac_optarg ;; |
| 1047 | |
| 1048 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1049 | | --program-pre | --program-pr | --program-p) |
| 1050 | ac_prev=program_prefix ;; |
| 1051 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1052 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1053 | program_prefix=$ac_optarg ;; |
| 1054 | |
| 1055 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1056 | | --program-suf | --program-su | --program-s) |
| 1057 | ac_prev=program_suffix ;; |
| 1058 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1059 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1060 | program_suffix=$ac_optarg ;; |
| 1061 | |
| 1062 | -program-transform-name | --program-transform-name \ |
| 1063 | | --program-transform-nam | --program-transform-na \ |
| 1064 | | --program-transform-n | --program-transform- \ |
| 1065 | | --program-transform | --program-transfor \ |
| 1066 | | --program-transfo | --program-transf \ |
| 1067 | | --program-trans | --program-tran \ |
| 1068 | | --progr-tra | --program-tr | --program-t) |
| 1069 | ac_prev=program_transform_name ;; |
| 1070 | -program-transform-name=* | --program-transform-name=* \ |
| 1071 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1072 | | --program-transform-n=* | --program-transform-=* \ |
| 1073 | | --program-transform=* | --program-transfor=* \ |
| 1074 | | --program-transfo=* | --program-transf=* \ |
| 1075 | | --program-trans=* | --program-tran=* \ |
| 1076 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1077 | program_transform_name=$ac_optarg ;; |
| 1078 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1079 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1080 | ac_prev=pdfdir ;; |
| 1081 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1082 | pdfdir=$ac_optarg ;; |
| 1083 | |
| 1084 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1085 | ac_prev=psdir ;; |
| 1086 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1087 | psdir=$ac_optarg ;; |
| 1088 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1089 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1090 | | -silent | --silent | --silen | --sile | --sil) |
| 1091 | silent=yes ;; |
| 1092 | |
| 1093 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1094 | ac_prev=sbindir ;; |
| 1095 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1096 | | --sbi=* | --sb=*) |
| 1097 | sbindir=$ac_optarg ;; |
| 1098 | |
| 1099 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1100 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1101 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1102 | | --sha | --sh) |
| 1103 | ac_prev=sharedstatedir ;; |
| 1104 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1105 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1106 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1107 | | --sha=* | --sh=*) |
| 1108 | sharedstatedir=$ac_optarg ;; |
| 1109 | |
| 1110 | -site | --site | --sit) |
| 1111 | ac_prev=site ;; |
| 1112 | -site=* | --site=* | --sit=*) |
| 1113 | site=$ac_optarg ;; |
| 1114 | |
| 1115 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1116 | ac_prev=srcdir ;; |
| 1117 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1118 | srcdir=$ac_optarg ;; |
| 1119 | |
| 1120 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1121 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1122 | ac_prev=sysconfdir ;; |
| 1123 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1124 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1125 | sysconfdir=$ac_optarg ;; |
| 1126 | |
| 1127 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1128 | ac_prev=target_alias ;; |
| 1129 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1130 | target_alias=$ac_optarg ;; |
| 1131 | |
| 1132 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1133 | verbose=yes ;; |
| 1134 | |
| 1135 | -version | --version | --versio | --versi | --vers | -V) |
| 1136 | ac_init_version=: ;; |
| 1137 | |
| 1138 | -with-* | --with-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1139 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1140 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1141 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1142 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1143 | { (exit 1); exit 1; }; } |
| 1144 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 1145 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1146 | |
| 1147 | -without-* | --without-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1148 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1149 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1150 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1151 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1152 | { (exit 1); exit 1; }; } |
| 1153 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 1154 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1155 | |
| 1156 | --x) |
| 1157 | # Obsolete; use --with-x. |
| 1158 | with_x=yes ;; |
| 1159 | |
| 1160 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1161 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1162 | ac_prev=x_includes ;; |
| 1163 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1164 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1165 | x_includes=$ac_optarg ;; |
| 1166 | |
| 1167 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1168 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1169 | ac_prev=x_libraries ;; |
| 1170 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1171 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1172 | x_libraries=$ac_optarg ;; |
| 1173 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1174 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1175 | Try \`$0 --help' for more information." >&2 |
| 1176 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1177 | ;; |
| 1178 | |
| 1179 | *=*) |
| 1180 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1181 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1182 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1183 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1184 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1185 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1186 | export $ac_envvar ;; |
| 1187 | |
| 1188 | *) |
| 1189 | # FIXME: should be removed in autoconf 3.0. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1190 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1191 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1192 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1193 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1194 | ;; |
| 1195 | |
| 1196 | esac |
| 1197 | done |
| 1198 | |
| 1199 | if test -n "$ac_prev"; then |
| 1200 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1201 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1202 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1203 | fi |
| 1204 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1205 | # Be sure to have absolute directory names. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1206 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1207 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1208 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1209 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1210 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1211 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1212 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1213 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1214 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1215 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1216 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1217 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1218 | done |
| 1219 | |
| 1220 | # There might be people who depend on the old broken behavior: `$host' |
| 1221 | # used to hold the argument of --host etc. |
| 1222 | # FIXME: To remove some day. |
| 1223 | build=$build_alias |
| 1224 | host=$host_alias |
| 1225 | target=$target_alias |
| 1226 | |
| 1227 | # FIXME: To remove some day. |
| 1228 | if test "x$host_alias" != x; then |
| 1229 | if test "x$build_alias" = x; then |
| 1230 | cross_compiling=maybe |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1231 | 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] | 1232 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1233 | elif test "x$build_alias" != "x$host_alias"; then |
| 1234 | cross_compiling=yes |
| 1235 | fi |
| 1236 | fi |
| 1237 | |
| 1238 | ac_tool_prefix= |
| 1239 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1240 | |
| 1241 | test "$silent" = yes && exec 6>/dev/null |
| 1242 | |
| 1243 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1244 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1245 | ac_ls_di=`ls -di .` && |
| 1246 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1247 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1248 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1249 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1250 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1251 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1252 | |
| 1253 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1254 | # Find the source files, if location was not specified. |
| 1255 | if test -z "$srcdir"; then |
| 1256 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1257 | # Try the directory containing this script, then the parent directory. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1258 | ac_confdir=`$as_dirname -- "$0" || |
| 1259 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1260 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1261 | X"$0" : 'X\(//\)$' \| \ |
| 1262 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1263 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1264 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1265 | s//\1/ |
| 1266 | q |
| 1267 | } |
| 1268 | /^X\(\/\/\)[^/].*/{ |
| 1269 | s//\1/ |
| 1270 | q |
| 1271 | } |
| 1272 | /^X\(\/\/\)$/{ |
| 1273 | s//\1/ |
| 1274 | q |
| 1275 | } |
| 1276 | /^X\(\/\).*/{ |
| 1277 | s//\1/ |
| 1278 | q |
| 1279 | } |
| 1280 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1281 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1282 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1283 | srcdir=.. |
| 1284 | fi |
| 1285 | else |
| 1286 | ac_srcdir_defaulted=no |
| 1287 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1288 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1289 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1290 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1291 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1292 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1293 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1294 | ac_abs_confdir=`( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1295 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1296 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1297 | pwd)` |
| 1298 | # When building in place, set srcdir=. |
| 1299 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1300 | srcdir=. |
| 1301 | fi |
| 1302 | # Remove unnecessary trailing slashes from srcdir. |
| 1303 | # Double slashes in file names in object file debugging info |
| 1304 | # mess up M-x gdb in Emacs. |
| 1305 | case $srcdir in |
| 1306 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1307 | esac |
| 1308 | for ac_var in $ac_precious_vars; do |
| 1309 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1310 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1311 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1312 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1313 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1314 | |
| 1315 | # |
| 1316 | # Report the --help message. |
| 1317 | # |
| 1318 | if test "$ac_init_help" = "long"; then |
| 1319 | # Omit some internal or obsolete options to make the list less imposing. |
| 1320 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1321 | cat <<_ACEOF |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 1322 | \`configure' configures llvm 2.8svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1323 | |
| 1324 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1325 | |
| 1326 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1327 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1328 | |
| 1329 | Defaults for the options are specified in brackets. |
| 1330 | |
| 1331 | Configuration: |
| 1332 | -h, --help display this help and exit |
| 1333 | --help=short display options specific to this package |
| 1334 | --help=recursive display the short help of all the included packages |
| 1335 | -V, --version display version information and exit |
| 1336 | -q, --quiet, --silent do not print \`checking...' messages |
| 1337 | --cache-file=FILE cache test results in FILE [disabled] |
| 1338 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1339 | -n, --no-create do not create output files |
| 1340 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1341 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1342 | Installation directories: |
| 1343 | --prefix=PREFIX install architecture-independent files in PREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1344 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1345 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1346 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1347 | |
| 1348 | By default, \`make install' will install all the files in |
| 1349 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1350 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1351 | for instance \`--prefix=\$HOME'. |
| 1352 | |
| 1353 | For better control, use the options below. |
| 1354 | |
| 1355 | Fine tuning of the installation directories: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1356 | --bindir=DIR user executables [EPREFIX/bin] |
| 1357 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1358 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1359 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1360 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1361 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1362 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1363 | --includedir=DIR C header files [PREFIX/include] |
| 1364 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1365 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1366 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1367 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1368 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1369 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1370 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1371 | --htmldir=DIR html documentation [DOCDIR] |
| 1372 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1373 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1374 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1375 | _ACEOF |
| 1376 | |
| 1377 | cat <<\_ACEOF |
| 1378 | |
| 1379 | System types: |
| 1380 | --build=BUILD configure for building on BUILD [guessed] |
| 1381 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1382 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1383 | _ACEOF |
| 1384 | fi |
| 1385 | |
| 1386 | if test -n "$ac_init_help"; then |
| 1387 | case $ac_init_help in |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 1388 | short | recursive ) echo "Configuration of llvm 2.8svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1389 | esac |
| 1390 | cat <<\_ACEOF |
| 1391 | |
| 1392 | Optional Features: |
| 1393 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1394 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1395 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1396 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1397 | --enable-assertions Compile with assertion checks enabled (default is |
| 1398 | YES) |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1399 | --enable-expensive-checks |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1400 | Compile with expensive debug checks enabled (default |
| 1401 | is NO) |
| 1402 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1403 | NO) |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 1404 | --enable-debug-symbols Build compiler with debug symbols (default is NO if |
| 1405 | optimization is on and YES if it's off) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1406 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1407 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1408 | --enable-threads Use threads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1409 | --enable-pic Build LLVM with Position Independent Code (default |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1410 | is YES) |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 1411 | --enable-shared Build a shared library and link tools against it |
| 1412 | (default is NO) |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1413 | --enable-targets Build specific host targets: all or |
| 1414 | target1,target2,... Valid targets are: host, x86, |
| 1415 | x86_64, sparc, powerpc, alpha, arm, mips, spu, |
| 1416 | pic16, xcore, msp430, systemz, blackfin, cbe, msil, |
| 1417 | and cpp (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1418 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1419 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1420 | --enable-bindings Build specific language bindings: |
| 1421 | all,auto,none,{binding-name} (default=auto) |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 1422 | --enable-libffi Check for the presence of libffi (default is NO) |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 1423 | --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on |
| 1424 | Win32) |
| 1425 | --enable-llvmc-dynamic-plugins |
| 1426 | Enable dynamic LLVMC plugins (default is YES) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1427 | --enable-ltdl-install install libltdl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1428 | |
| 1429 | Optional Packages: |
| 1430 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1431 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1432 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1433 | searches PATH) |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 1434 | --with-llvmgcc Specify location of llvm-gcc driver (default |
| 1435 | searches PATH) |
| 1436 | --with-llvmgxx Specify location of llvm-g++ driver (default |
| 1437 | searches PATH) |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 1438 | --with-clang Specify location of clang compiler (default is |
| 1439 | --with-built-clang) |
| 1440 | --with-built-clang Use the compiled Clang as the LLVM compiler |
| 1441 | (default=check) |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 1442 | --with-optimize-option Select the compiler options to use for optimized |
| 1443 | builds |
Duncan Sands | e4eb2d2 | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1444 | --with-extra-options Specify additional options to compile LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1445 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1446 | is stdlib) |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 1447 | --with-c-include-dirs Colon separated list of directories clang will |
| 1448 | search for headers |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 1449 | --with-cxx-include-root Directory with the libstdc++ headers. |
| 1450 | --with-cxx-include-arch Architecture of the libstdc++ headers. |
| 1451 | --with-cxx-include-32bit-dir |
| 1452 | 32 bit multilib dir. |
| 1453 | --with-cxx-include-64bit-dir |
| 1454 | 64 bit multilib directory. |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1455 | --with-binutils-include Specify path to binutils/include/ containing |
| 1456 | plugin-api.h file for gold plugin. |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1457 | --with-tclinclude directory where tcl headers are |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 1458 | --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc, |
| 1459 | clang, or none; default=check) |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1460 | --with-udis86=<path> Use udis86 external x86 disassembler library |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1461 | --with-oprofile=<prefix> |
| 1462 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1463 | |
| 1464 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1465 | CC C compiler command |
| 1466 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1467 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1468 | nonstandard directory <lib dir> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1469 | 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] | 1470 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1471 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1472 | CXX C++ compiler command |
| 1473 | CXXFLAGS C++ compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1474 | |
| 1475 | Use these variables to override the choices made by `configure' or to help |
| 1476 | it to find libraries and programs with nonstandard names/locations. |
| 1477 | |
| 1478 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1479 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1480 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1481 | fi |
| 1482 | |
| 1483 | if test "$ac_init_help" = "recursive"; then |
| 1484 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1485 | 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] | 1486 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1487 | ac_builddir=. |
| 1488 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1489 | case "$ac_dir" in |
| 1490 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1491 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1492 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1493 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1494 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1495 | case $ac_top_builddir_sub in |
| 1496 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1497 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1498 | esac ;; |
| 1499 | esac |
| 1500 | ac_abs_top_builddir=$ac_pwd |
| 1501 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1502 | # for backward compatibility: |
| 1503 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1504 | |
| 1505 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1506 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1507 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1508 | ac_top_srcdir=$ac_top_builddir_sub |
| 1509 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1510 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1511 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1512 | ac_top_srcdir=$srcdir |
| 1513 | ac_abs_top_srcdir=$srcdir ;; |
| 1514 | *) # Relative name. |
| 1515 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1516 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1517 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1518 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1519 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1520 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1521 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1522 | # Check for guested configure. |
| 1523 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1524 | echo && |
| 1525 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1526 | elif test -f "$ac_srcdir/configure"; then |
| 1527 | echo && |
| 1528 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1529 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1530 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1531 | fi || ac_status=$? |
| 1532 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1533 | done |
| 1534 | fi |
| 1535 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1536 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1537 | if $ac_init_version; then |
| 1538 | cat <<\_ACEOF |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 1539 | llvm configure 2.8svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1540 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1541 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1542 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1543 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1544 | This configure script is free software; the Free Software Foundation |
| 1545 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1546 | |
John Criswell | 5a12971 | 2010-03-19 21:04:16 +0000 | [diff] [blame] | 1547 | Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1548 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1549 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1550 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1551 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1552 | This file contains any messages produced by compilers while |
| 1553 | running configure, to aid debugging if configure makes a mistake. |
| 1554 | |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 1555 | It was created by llvm $as_me 2.8svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1556 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1557 | |
| 1558 | $ $0 $@ |
| 1559 | |
| 1560 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1561 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1562 | { |
| 1563 | cat <<_ASUNAME |
| 1564 | ## --------- ## |
| 1565 | ## Platform. ## |
| 1566 | ## --------- ## |
| 1567 | |
| 1568 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1569 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1570 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1571 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1572 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1573 | |
| 1574 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1575 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1576 | |
| 1577 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1578 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1579 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1580 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1581 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1582 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1583 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1584 | |
| 1585 | _ASUNAME |
| 1586 | |
| 1587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1588 | for as_dir in $PATH |
| 1589 | do |
| 1590 | IFS=$as_save_IFS |
| 1591 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1592 | echo "PATH: $as_dir" |
| 1593 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1594 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1595 | |
| 1596 | } >&5 |
| 1597 | |
| 1598 | cat >&5 <<_ACEOF |
| 1599 | |
| 1600 | |
| 1601 | ## ----------- ## |
| 1602 | ## Core tests. ## |
| 1603 | ## ----------- ## |
| 1604 | |
| 1605 | _ACEOF |
| 1606 | |
| 1607 | |
| 1608 | # Keep a trace of the command line. |
| 1609 | # 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] | 1610 | # 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] | 1611 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1612 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1613 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1614 | ac_configure_args0= |
| 1615 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1616 | ac_must_keep_next=false |
| 1617 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1618 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1619 | for ac_arg |
| 1620 | do |
| 1621 | case $ac_arg in |
| 1622 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1623 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1624 | | -silent | --silent | --silen | --sile | --sil) |
| 1625 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1626 | *\'*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1627 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1628 | esac |
| 1629 | case $ac_pass in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1630 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1631 | 2) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1632 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1633 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1634 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1635 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1636 | case $ac_arg in |
| 1637 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1638 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1639 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1640 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1641 | case "$ac_configure_args0 " in |
| 1642 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1643 | esac |
| 1644 | ;; |
| 1645 | -* ) ac_must_keep_next=true ;; |
| 1646 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1647 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1648 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1649 | ;; |
| 1650 | esac |
| 1651 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1652 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1653 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1654 | $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] | 1655 | |
| 1656 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1657 | # config.log. We remove comments because anyway the quotes in there |
| 1658 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1659 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1660 | # 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] | 1661 | trap 'exit_status=$? |
| 1662 | # Save into config.log some information that might help in debugging. |
| 1663 | { |
| 1664 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1665 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1666 | cat <<\_ASBOX |
| 1667 | ## ---------------- ## |
| 1668 | ## Cache variables. ## |
| 1669 | ## ---------------- ## |
| 1670 | _ASBOX |
| 1671 | echo |
| 1672 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1673 | ( |
| 1674 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1675 | eval ac_val=\$$ac_var |
| 1676 | case $ac_val in #( |
| 1677 | *${as_nl}*) |
| 1678 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1679 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1680 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1681 | esac |
| 1682 | case $ac_var in #( |
| 1683 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1684 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1685 | esac ;; |
| 1686 | esac |
| 1687 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1688 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1689 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1690 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1691 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1692 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1693 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1694 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1695 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1696 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1697 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1698 | esac | |
| 1699 | sort |
| 1700 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1701 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1702 | |
| 1703 | cat <<\_ASBOX |
| 1704 | ## ----------------- ## |
| 1705 | ## Output variables. ## |
| 1706 | ## ----------------- ## |
| 1707 | _ASBOX |
| 1708 | echo |
| 1709 | for ac_var in $ac_subst_vars |
| 1710 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1711 | eval ac_val=\$$ac_var |
| 1712 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1713 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1714 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1715 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1716 | done | sort |
| 1717 | echo |
| 1718 | |
| 1719 | if test -n "$ac_subst_files"; then |
| 1720 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1721 | ## ------------------- ## |
| 1722 | ## File substitutions. ## |
| 1723 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1724 | _ASBOX |
| 1725 | echo |
| 1726 | for ac_var in $ac_subst_files |
| 1727 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1728 | eval ac_val=\$$ac_var |
| 1729 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1730 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1731 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1732 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1733 | done | sort |
| 1734 | echo |
| 1735 | fi |
| 1736 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1737 | if test -s confdefs.h; then |
| 1738 | cat <<\_ASBOX |
| 1739 | ## ----------- ## |
| 1740 | ## confdefs.h. ## |
| 1741 | ## ----------- ## |
| 1742 | _ASBOX |
| 1743 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1744 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1745 | echo |
| 1746 | fi |
| 1747 | test "$ac_signal" != 0 && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1748 | echo "$as_me: caught signal $ac_signal" |
| 1749 | echo "$as_me: exit $exit_status" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1750 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1751 | rm -f core *.core core.conftest.* && |
| 1752 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1753 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1754 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1755 | for ac_signal in 1 2 13 15; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1756 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1757 | done |
| 1758 | ac_signal=0 |
| 1759 | |
| 1760 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1761 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1762 | |
| 1763 | # Predefined preprocessor variables. |
| 1764 | |
| 1765 | cat >>confdefs.h <<_ACEOF |
| 1766 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1767 | _ACEOF |
| 1768 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1769 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1770 | cat >>confdefs.h <<_ACEOF |
| 1771 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1772 | _ACEOF |
| 1773 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1774 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1775 | cat >>confdefs.h <<_ACEOF |
| 1776 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1777 | _ACEOF |
| 1778 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1779 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1780 | cat >>confdefs.h <<_ACEOF |
| 1781 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1782 | _ACEOF |
| 1783 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1784 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1785 | cat >>confdefs.h <<_ACEOF |
| 1786 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1787 | _ACEOF |
| 1788 | |
| 1789 | |
| 1790 | # 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] | 1791 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1792 | if test -n "$CONFIG_SITE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1793 | set x "$CONFIG_SITE" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1794 | elif test "x$prefix" != xNONE; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1795 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1796 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1797 | set x "$ac_default_prefix/share/config.site" \ |
| 1798 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1799 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1800 | shift |
| 1801 | for ac_site_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1802 | do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1803 | if test -r "$ac_site_file"; then |
| 1804 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1805 | echo "$as_me: loading site script $ac_site_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1806 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1807 | . "$ac_site_file" |
| 1808 | fi |
| 1809 | done |
| 1810 | |
| 1811 | if test -r "$cache_file"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1812 | # Some versions of bash will fail to source /dev/null (special |
| 1813 | # files actually), so we avoid doing that. |
| 1814 | if test -f "$cache_file"; then |
| 1815 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1816 | echo "$as_me: loading cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1817 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1818 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1819 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1820 | esac |
| 1821 | fi |
| 1822 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1823 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1824 | echo "$as_me: creating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1825 | >$cache_file |
| 1826 | fi |
| 1827 | |
| 1828 | # Check that the precious variables saved in the cache have kept the same |
| 1829 | # value. |
| 1830 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1831 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1832 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1833 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1834 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1835 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1836 | case $ac_old_set,$ac_new_set in |
| 1837 | set,) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1838 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1839 | 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] | 1840 | ac_cache_corrupted=: ;; |
| 1841 | ,set) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1842 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1843 | 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] | 1844 | ac_cache_corrupted=: ;; |
| 1845 | ,);; |
| 1846 | *) |
| 1847 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1848 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1849 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1850 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1851 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1852 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1853 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1854 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1855 | fi;; |
| 1856 | esac |
| 1857 | # Pass precious variables to config.status. |
| 1858 | if test "$ac_new_set" = set; then |
| 1859 | case $ac_new_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1860 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1861 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1862 | esac |
| 1863 | case " $ac_configure_args " in |
| 1864 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1865 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1866 | esac |
| 1867 | fi |
| 1868 | done |
| 1869 | if $ac_cache_corrupted; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1870 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1871 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1872 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1873 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1874 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1875 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1876 | |
| 1877 | |
| 1878 | |
| 1879 | |
| 1880 | |
| 1881 | |
| 1882 | |
| 1883 | |
| 1884 | |
| 1885 | |
| 1886 | |
| 1887 | |
| 1888 | |
| 1889 | |
| 1890 | |
| 1891 | |
| 1892 | |
| 1893 | |
| 1894 | |
| 1895 | |
| 1896 | |
| 1897 | |
| 1898 | |
| 1899 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1900 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1901 | ac_ext=c |
| 1902 | ac_cpp='$CPP $CPPFLAGS' |
| 1903 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1904 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1905 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1906 | |
| 1907 | |
| 1908 | |
John Criswell | 5a12971 | 2010-03-19 21:04:16 +0000 | [diff] [blame] | 1909 | LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1910 | |
| 1911 | |
| 1912 | |
| 1913 | |
| 1914 | |
| 1915 | |
| 1916 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1917 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1918 | for ac_dir in autoconf "$srcdir"/autoconf; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1919 | if test -f "$ac_dir/install-sh"; then |
| 1920 | ac_aux_dir=$ac_dir |
| 1921 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1922 | break |
| 1923 | elif test -f "$ac_dir/install.sh"; then |
| 1924 | ac_aux_dir=$ac_dir |
| 1925 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1926 | break |
| 1927 | elif test -f "$ac_dir/shtool"; then |
| 1928 | ac_aux_dir=$ac_dir |
| 1929 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1930 | break |
| 1931 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1932 | done |
| 1933 | if test -z "$ac_aux_dir"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1934 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 1935 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} |
| 1936 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1937 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1938 | |
| 1939 | # These three variables are undocumented and unsupported, |
| 1940 | # and are intended to be withdrawn in a future Autoconf release. |
| 1941 | # They can cause serious problems if a builder's source tree is in a directory |
| 1942 | # whose full name contains unusual characters. |
| 1943 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1944 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1945 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1946 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1947 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1948 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1949 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1950 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1951 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
| 1952 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1953 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1954 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1955 | fi |
| 1956 | |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame] | 1957 | |
| 1958 | |
| 1959 | if test -d ${srcdir}/projects/llvm-gcc ; then |
| 1960 | subdirs="$subdirs projects/llvm-gcc" |
| 1961 | |
| 1962 | fi |
| 1963 | |
| 1964 | if test -d ${srcdir}/projects/test-suite ; then |
| 1965 | subdirs="$subdirs projects/test-suite" |
| 1966 | |
| 1967 | fi |
| 1968 | |
| 1969 | if test -d ${srcdir}/projects/llvm-test ; then |
| 1970 | subdirs="$subdirs projects/llvm-test" |
| 1971 | |
| 1972 | fi |
| 1973 | |
| 1974 | if test -d ${srcdir}/projects/poolalloc ; then |
| 1975 | subdirs="$subdirs projects/poolalloc" |
| 1976 | |
| 1977 | fi |
| 1978 | |
| 1979 | if test -d ${srcdir}/projects/llvm-poolalloc ; then |
| 1980 | subdirs="$subdirs projects/llvm-poolalloc" |
| 1981 | |
| 1982 | fi |
| 1983 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1984 | for i in `ls ${srcdir}/projects` |
| 1985 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1986 | if test -d ${srcdir}/projects/${i} ; then |
| 1987 | case ${i} in |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1988 | CVS) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1989 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1990 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1991 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 1992 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1993 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1994 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1995 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1996 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1997 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 1998 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1999 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2000 | ;; |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 2001 | safecode) subdirs="$subdirs projects/safecode" |
| 2002 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2003 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2004 | ;; |
John Criswell | 52c0286 | 2010-03-25 13:59:09 +0000 | [diff] [blame] | 2005 | llvm-gcc) ;; |
| 2006 | test-suite) ;; |
| 2007 | llvm-test) ;; |
| 2008 | poolalloc) ;; |
| 2009 | llvm-poolalloc) ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2010 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2011 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2012 | 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] | 2013 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2014 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2015 | fi |
| 2016 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2017 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2018 | |
| 2019 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2020 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2021 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2022 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 2023 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2024 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2025 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2026 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 2027 | if test "${ac_cv_build+set}" = set; then |
| 2028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2029 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2030 | ac_build_alias=$build_alias |
| 2031 | test "x$ac_build_alias" = x && |
| 2032 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2033 | test "x$ac_build_alias" = x && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2034 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2035 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2036 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2037 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2038 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2039 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 2040 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2041 | |
| 2042 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2043 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2044 | echo "${ECHO_T}$ac_cv_build" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2045 | case $ac_cv_build in |
| 2046 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2047 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2048 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2049 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2050 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2051 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2052 | ac_save_IFS=$IFS; IFS='-' |
| 2053 | set x $ac_cv_build |
| 2054 | shift |
| 2055 | build_cpu=$1 |
| 2056 | build_vendor=$2 |
| 2057 | shift; shift |
| 2058 | # Remember, the first character of IFS is used to create $*, |
| 2059 | # except with old shells: |
| 2060 | build_os=$* |
| 2061 | IFS=$ac_save_IFS |
| 2062 | 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] | 2063 | |
| 2064 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2065 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2066 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 2067 | if test "${ac_cv_host+set}" = set; then |
| 2068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2069 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2070 | if test "x$host_alias" = x; then |
| 2071 | ac_cv_host=$ac_cv_build |
| 2072 | else |
| 2073 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2074 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2075 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 2076 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2077 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2078 | |
| 2079 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2080 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2081 | echo "${ECHO_T}$ac_cv_host" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2082 | case $ac_cv_host in |
| 2083 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2084 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2085 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2086 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2087 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2088 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2089 | ac_save_IFS=$IFS; IFS='-' |
| 2090 | set x $ac_cv_host |
| 2091 | shift |
| 2092 | host_cpu=$1 |
| 2093 | host_vendor=$2 |
| 2094 | shift; shift |
| 2095 | # Remember, the first character of IFS is used to create $*, |
| 2096 | # except with old shells: |
| 2097 | host_os=$* |
| 2098 | IFS=$ac_save_IFS |
| 2099 | 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] | 2100 | |
| 2101 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2102 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2103 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 2104 | if test "${ac_cv_target+set}" = set; then |
| 2105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2106 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2107 | if test "x$target_alias" = x; then |
| 2108 | ac_cv_target=$ac_cv_host |
| 2109 | else |
| 2110 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2111 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2112 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 2113 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2114 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2115 | |
| 2116 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2117 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2118 | echo "${ECHO_T}$ac_cv_target" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2119 | case $ac_cv_target in |
| 2120 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2121 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2122 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2123 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2124 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2125 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2126 | ac_save_IFS=$IFS; IFS='-' |
| 2127 | set x $ac_cv_target |
| 2128 | shift |
| 2129 | target_cpu=$1 |
| 2130 | target_vendor=$2 |
| 2131 | shift; shift |
| 2132 | # Remember, the first character of IFS is used to create $*, |
| 2133 | # except with old shells: |
| 2134 | target_os=$* |
| 2135 | IFS=$ac_save_IFS |
| 2136 | 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] | 2137 | |
| 2138 | |
| 2139 | # The aliases save the names the user supplied, while $host etc. |
| 2140 | # will get canonicalized. |
| 2141 | test -n "$target_alias" && |
| 2142 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2143 | NONENONEs,x,x, && |
| 2144 | program_prefix=${target_alias}- |
| 2145 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2146 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2147 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } |
| 2148 | if test "${llvm_cv_os_type+set}" = set; then |
| 2149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2150 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2151 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2152 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2153 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2154 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2155 | llvm_cv_os_type="AIX" |
| 2156 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2157 | *-*-irix*) |
| 2158 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2159 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2160 | llvm_cv_os_type="IRIX" |
| 2161 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2162 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2163 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2164 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2165 | llvm_cv_os_type="Cygwin" |
| 2166 | llvm_cv_platform_type="Unix" ;; |
| 2167 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2168 | llvm_cv_link_all_option="-Wl,-all_load" |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 2169 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2170 | llvm_cv_os_type="Darwin" |
| 2171 | llvm_cv_platform_type="Unix" ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 2172 | *-*-minix*) |
| 2173 | llvm_cv_link_all_option="-Wl,-all_load" |
| 2174 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 2175 | llvm_cv_os_type="Minix" |
| 2176 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2177 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2178 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2179 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2180 | llvm_cv_os_type="FreeBSD" |
| 2181 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2182 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2183 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2184 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2185 | llvm_cv_os_type="OpenBSD" |
| 2186 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2187 | *-*-netbsd*) |
| 2188 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2189 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2190 | llvm_cv_os_type="NetBSD" |
| 2191 | llvm_cv_platform_type="Unix" ;; |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 2192 | *-*-dragonfly*) |
| 2193 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2194 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2195 | llvm_cv_os_type="DragonFly" |
| 2196 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2197 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2198 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2199 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2200 | llvm_cv_os_type="HP-UX" |
| 2201 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2202 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2203 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2204 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2205 | llvm_cv_os_type="Interix" |
| 2206 | llvm_cv_platform_type="Unix" ;; |
| 2207 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2208 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2209 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2210 | llvm_cv_os_type="Linux" |
| 2211 | llvm_cv_platform_type="Unix" ;; |
| 2212 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2213 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2214 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2215 | llvm_cv_os_type="SunOS" |
| 2216 | llvm_cv_platform_type="Unix" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2217 | *-*-auroraux*) |
| 2218 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2219 | llvm_cv_link_all_option="-Wl,-z,defaultextract" |
| 2220 | llvm_cv_os_type="AuroraUX" |
| 2221 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2222 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2223 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2224 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2225 | llvm_cv_os_type="Win32" |
| 2226 | llvm_cv_platform_type="Win32" ;; |
| 2227 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2228 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2229 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2230 | llvm_cv_os_type="MingW" |
| 2231 | llvm_cv_platform_type="Win32" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2232 | *-*-haiku*) |
| 2233 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2234 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2235 | llvm_cv_os_type="Haiku" |
| 2236 | llvm_cv_platform_type="Unix" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2237 | *-unknown-eabi*) |
| 2238 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2239 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2240 | llvm_cv_os_type="Freestanding" |
| 2241 | llvm_cv_platform_type="Unix" ;; |
| 2242 | *-unknown-elf*) |
| 2243 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2244 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2245 | llvm_cv_os_type="Freestanding" |
| 2246 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2247 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2248 | llvm_cv_link_all_option="" |
| 2249 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2250 | llvm_cv_os_type="Unknown" |
| 2251 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2252 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2253 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2254 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2255 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2256 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2257 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 2258 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 2259 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 2260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2261 | else |
| 2262 | case $target in |
| 2263 | *-*-aix*) |
| 2264 | llvm_cv_target_os_type="AIX" ;; |
| 2265 | *-*-irix*) |
| 2266 | llvm_cv_target_os_type="IRIX" ;; |
| 2267 | *-*-cygwin*) |
| 2268 | llvm_cv_target_os_type="Cygwin" ;; |
| 2269 | *-*-darwin*) |
| 2270 | llvm_cv_target_os_type="Darwin" ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 2271 | *-*-minix*) |
| 2272 | llvm_cv_target_os_type="Minix" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2273 | *-*-freebsd*) |
| 2274 | llvm_cv_target_os_type="FreeBSD" ;; |
| 2275 | *-*-openbsd*) |
| 2276 | llvm_cv_target_os_type="OpenBSD" ;; |
| 2277 | *-*-netbsd*) |
| 2278 | llvm_cv_target_os_type="NetBSD" ;; |
| 2279 | *-*-dragonfly*) |
| 2280 | llvm_cv_target_os_type="DragonFly" ;; |
| 2281 | *-*-hpux*) |
| 2282 | llvm_cv_target_os_type="HP-UX" ;; |
| 2283 | *-*-interix*) |
| 2284 | llvm_cv_target_os_type="Interix" ;; |
| 2285 | *-*-linux*) |
| 2286 | llvm_cv_target_os_type="Linux" ;; |
| 2287 | *-*-solaris*) |
| 2288 | llvm_cv_target_os_type="SunOS" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2289 | *-*-auroraux*) |
| 2290 | llvm_cv_target_os_type="AuroraUX" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2291 | *-*-win32*) |
| 2292 | llvm_cv_target_os_type="Win32" ;; |
| 2293 | *-*-mingw*) |
| 2294 | llvm_cv_target_os_type="MingW" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2295 | *-*-haiku*) |
| 2296 | llvm_cv_target_os_type="Haiku" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2297 | *-unknown-eabi*) |
| 2298 | llvm_cv_target_os_type="Freestanding" ;; |
| 2299 | *) |
| 2300 | llvm_cv_target_os_type="Unknown" ;; |
| 2301 | esac |
| 2302 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2303 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 2304 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2305 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2306 | if test "$llvm_cv_os_type" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2307 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2308 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
| 2309 | { (exit 1); exit 1; }; } |
Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 2310 | fi |
| 2311 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2312 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2313 | |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2314 | HOST_OS=$llvm_cv_os_type |
| 2315 | |
| 2316 | TARGET_OS=$llvm_cv_target_os_type |
| 2317 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2318 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2319 | LINKALL=$llvm_cv_link_all_option |
| 2320 | |
| 2321 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2322 | |
| 2323 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2324 | case $llvm_cv_platform_type in |
| 2325 | Unix) |
| 2326 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2327 | cat >>confdefs.h <<\_ACEOF |
| 2328 | #define LLVM_ON_UNIX 1 |
| 2329 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2330 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2331 | LLVM_ON_UNIX=1 |
| 2332 | |
| 2333 | LLVM_ON_WIN32=0 |
| 2334 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2335 | ;; |
| 2336 | Win32) |
| 2337 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2338 | cat >>confdefs.h <<\_ACEOF |
| 2339 | #define LLVM_ON_WIN32 1 |
| 2340 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2341 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2342 | LLVM_ON_UNIX=0 |
| 2343 | |
| 2344 | LLVM_ON_WIN32=1 |
| 2345 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2346 | ;; |
| 2347 | esac |
| 2348 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2349 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2350 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
| 2351 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2353 | else |
| 2354 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2355 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2356 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2357 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2358 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2359 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Nick Lewycky | fa8ffc1 | 2009-04-18 18:11:26 +0000 | [diff] [blame] | 2360 | arm*-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2361 | mips-*) llvm_cv_target_arch="Mips" ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 2362 | pic16-*) llvm_cv_target_arch="PIC16" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 2363 | xcore-*) llvm_cv_target_arch="XCore" ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 2364 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 2365 | s390x-*) llvm_cv_target_arch="SystemZ" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 2366 | bfin-*) llvm_cv_target_arch="Blackfin" ;; |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 2367 | mblaze-*) llvm_cv_target_arch="MBlaze" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2368 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2369 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2370 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2371 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2372 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2373 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2374 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2375 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2376 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2377 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2378 | |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 2379 | # Determine the LLVM native architecture for the target |
| 2380 | case "$llvm_cv_target_arch" in |
| 2381 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 2382 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 2383 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 2384 | esac |
| 2385 | |
| 2386 | ARCH=$llvm_cv_target_arch |
| 2387 | |
| 2388 | |
| 2389 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2390 | ac_cpp='$CPP $CPPFLAGS' |
| 2391 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2392 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2393 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2394 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2395 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2396 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2397 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2398 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2399 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2401 | else |
| 2402 | if test -n "$CC"; then |
| 2403 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2404 | else |
| 2405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2406 | for as_dir in $PATH |
| 2407 | do |
| 2408 | IFS=$as_save_IFS |
| 2409 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2410 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2411 | 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] | 2412 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2413 | 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] | 2414 | break 2 |
| 2415 | fi |
| 2416 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2417 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2418 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2419 | |
| 2420 | fi |
| 2421 | fi |
| 2422 | CC=$ac_cv_prog_CC |
| 2423 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2424 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2425 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2426 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2427 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2428 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2429 | fi |
| 2430 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2431 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2432 | fi |
| 2433 | if test -z "$ac_cv_prog_CC"; then |
| 2434 | ac_ct_CC=$CC |
| 2435 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2436 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2437 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2438 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2439 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2441 | else |
| 2442 | if test -n "$ac_ct_CC"; then |
| 2443 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2444 | else |
| 2445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2446 | for as_dir in $PATH |
| 2447 | do |
| 2448 | IFS=$as_save_IFS |
| 2449 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2450 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2451 | 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] | 2452 | ac_cv_prog_ac_ct_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2453 | 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] | 2454 | break 2 |
| 2455 | fi |
| 2456 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2457 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2458 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2459 | |
| 2460 | fi |
| 2461 | fi |
| 2462 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2463 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2464 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2465 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2466 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2467 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2468 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2469 | fi |
| 2470 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2471 | if test "x$ac_ct_CC" = x; then |
| 2472 | CC="" |
| 2473 | else |
| 2474 | case $cross_compiling:$ac_tool_warned in |
| 2475 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2476 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2477 | whose name does not start with the host triplet. If you think this |
| 2478 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2479 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2480 | whose name does not start with the host triplet. If you think this |
| 2481 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2482 | ac_tool_warned=yes ;; |
| 2483 | esac |
| 2484 | CC=$ac_ct_CC |
| 2485 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2486 | else |
| 2487 | CC="$ac_cv_prog_CC" |
| 2488 | fi |
| 2489 | |
| 2490 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2491 | if test -n "$ac_tool_prefix"; then |
| 2492 | # 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] | 2493 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2494 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2495 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2496 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2498 | else |
| 2499 | if test -n "$CC"; then |
| 2500 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2501 | else |
| 2502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2503 | for as_dir in $PATH |
| 2504 | do |
| 2505 | IFS=$as_save_IFS |
| 2506 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2507 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2508 | 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] | 2509 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2510 | 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] | 2511 | break 2 |
| 2512 | fi |
| 2513 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2514 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2515 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2516 | |
| 2517 | fi |
| 2518 | fi |
| 2519 | CC=$ac_cv_prog_CC |
| 2520 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2521 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2522 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2523 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2524 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2525 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2526 | fi |
| 2527 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2528 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2529 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2530 | fi |
| 2531 | if test -z "$CC"; then |
| 2532 | # Extract the first word of "cc", so it can be a program name with args. |
| 2533 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2534 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2535 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2536 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2538 | else |
| 2539 | if test -n "$CC"; then |
| 2540 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2541 | else |
| 2542 | ac_prog_rejected=no |
| 2543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2544 | for as_dir in $PATH |
| 2545 | do |
| 2546 | IFS=$as_save_IFS |
| 2547 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2548 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2549 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2550 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2551 | ac_prog_rejected=yes |
| 2552 | continue |
| 2553 | fi |
| 2554 | ac_cv_prog_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2555 | 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] | 2556 | break 2 |
| 2557 | fi |
| 2558 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2559 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2560 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2561 | |
| 2562 | if test $ac_prog_rejected = yes; then |
| 2563 | # We found a bogon in the path, so make sure we never use it. |
| 2564 | set dummy $ac_cv_prog_CC |
| 2565 | shift |
| 2566 | if test $# != 0; then |
| 2567 | # We chose a different compiler from the bogus one. |
| 2568 | # However, it has the same basename, so the bogon will be chosen |
| 2569 | # first if we set CC to just the basename; use the full file name. |
| 2570 | shift |
| 2571 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2572 | fi |
| 2573 | fi |
| 2574 | fi |
| 2575 | fi |
| 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; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +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; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +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 | fi |
| 2587 | if test -z "$CC"; then |
| 2588 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2589 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2590 | do |
| 2591 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2592 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2593 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2595 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2597 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2598 | if test -n "$CC"; then |
| 2599 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2600 | else |
| 2601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2602 | for as_dir in $PATH |
| 2603 | do |
| 2604 | IFS=$as_save_IFS |
| 2605 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2606 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2607 | 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] | 2608 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2609 | 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] | 2610 | break 2 |
| 2611 | fi |
| 2612 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2613 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2614 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2615 | |
| 2616 | fi |
| 2617 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2618 | CC=$ac_cv_prog_CC |
| 2619 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2620 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2621 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2622 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2623 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2624 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2625 | fi |
| 2626 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2627 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2628 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2629 | done |
| 2630 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2631 | if test -z "$CC"; then |
| 2632 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2633 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2634 | do |
| 2635 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2636 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2637 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2639 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2641 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2642 | if test -n "$ac_ct_CC"; then |
| 2643 | 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] | 2644 | else |
| 2645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2646 | for as_dir in $PATH |
| 2647 | do |
| 2648 | IFS=$as_save_IFS |
| 2649 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2650 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2651 | 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] | 2652 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2653 | 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] | 2654 | break 2 |
| 2655 | fi |
| 2656 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2657 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2658 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2659 | |
| 2660 | fi |
| 2661 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2662 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2663 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2664 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2665 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2666 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2667 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2668 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2669 | fi |
| 2670 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2671 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2672 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2673 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2674 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2675 | if test "x$ac_ct_CC" = x; then |
| 2676 | CC="" |
| 2677 | else |
| 2678 | case $cross_compiling:$ac_tool_warned in |
| 2679 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2680 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2681 | whose name does not start with the host triplet. If you think this |
| 2682 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2683 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2684 | whose name does not start with the host triplet. If you think this |
| 2685 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2686 | ac_tool_warned=yes ;; |
| 2687 | esac |
| 2688 | CC=$ac_ct_CC |
| 2689 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2690 | fi |
| 2691 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2692 | fi |
| 2693 | |
| 2694 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2695 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2696 | See \`config.log' for more details." >&5 |
| 2697 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2698 | See \`config.log' for more details." >&2;} |
| 2699 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2700 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2701 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2702 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2703 | ac_compiler=`set X $ac_compile; echo $2` |
| 2704 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2705 | case "(($ac_try" in |
| 2706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2707 | *) ac_try_echo=$ac_try;; |
| 2708 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2710 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2711 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2713 | (exit $ac_status); } |
| 2714 | { (ac_try="$ac_compiler -v >&5" |
| 2715 | case "(($ac_try" in |
| 2716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2717 | *) ac_try_echo=$ac_try;; |
| 2718 | esac |
| 2719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2720 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2721 | ac_status=$? |
| 2722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2723 | (exit $ac_status); } |
| 2724 | { (ac_try="$ac_compiler -V >&5" |
| 2725 | case "(($ac_try" in |
| 2726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2727 | *) ac_try_echo=$ac_try;; |
| 2728 | esac |
| 2729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2730 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2731 | ac_status=$? |
| 2732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2733 | (exit $ac_status); } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2734 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2735 | cat >conftest.$ac_ext <<_ACEOF |
| 2736 | /* confdefs.h. */ |
| 2737 | _ACEOF |
| 2738 | cat confdefs.h >>conftest.$ac_ext |
| 2739 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2740 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2741 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2742 | int |
| 2743 | main () |
| 2744 | { |
| 2745 | |
| 2746 | ; |
| 2747 | return 0; |
| 2748 | } |
| 2749 | _ACEOF |
| 2750 | ac_clean_files_save=$ac_clean_files |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2751 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2752 | # Try to create an executable without -o first, disregard a.out. |
| 2753 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2754 | # of exeext. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2755 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2756 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2757 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2758 | # |
| 2759 | # List of possible output files, starting from the most likely. |
| 2760 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2761 | # only as a last resort. b.out is created by i960 compilers. |
| 2762 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2763 | # |
| 2764 | # The IRIX 6 linker writes into existing files which may not be |
| 2765 | # executable, retaining their permissions. Remove them first so a |
| 2766 | # subsequent execution test works. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2767 | ac_rmfiles= |
| 2768 | for ac_file in $ac_files |
| 2769 | do |
| 2770 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2771 | *.$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] | 2772 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2773 | esac |
| 2774 | done |
| 2775 | rm -f $ac_rmfiles |
| 2776 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2777 | if { (ac_try="$ac_link_default" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2778 | case "(($ac_try" in |
| 2779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2780 | *) ac_try_echo=$ac_try;; |
| 2781 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2783 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2784 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2786 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2787 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2788 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2789 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2790 | # so that the user can short-circuit this test for compilers unknown to |
| 2791 | # Autoconf. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2792 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2793 | do |
| 2794 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2795 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2796 | *.$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] | 2797 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2798 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2799 | # We found the default executable, but exeext='' is most |
| 2800 | # certainly right. |
| 2801 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2802 | *.* ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2803 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2804 | then :; else |
| 2805 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2806 | fi |
| 2807 | # We set ac_cv_exeext here because the later test for it is not |
| 2808 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2809 | # argument, so we may need to know it at that point already. |
| 2810 | # Even if this section looks crufty: it has the advantage of |
| 2811 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2812 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2813 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2814 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2815 | esac |
| 2816 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2817 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2818 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2819 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2820 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2822 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2823 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2824 | See \`config.log' for more details." >&5 |
| 2825 | echo "$as_me: error: C compiler cannot create executables |
| 2826 | See \`config.log' for more details." >&2;} |
| 2827 | { (exit 77); exit 77; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2828 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2829 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2830 | ac_exeext=$ac_cv_exeext |
| 2831 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2832 | echo "${ECHO_T}$ac_file" >&6; } |
| 2833 | |
| 2834 | # Check that the compiler produces executables we can run. If not, either |
| 2835 | # the compiler is broken, or we cross compile. |
| 2836 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2837 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2838 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2839 | # If not cross compiling, check that we can run a simple program. |
| 2840 | if test "$cross_compiling" != yes; then |
| 2841 | if { ac_try='./$ac_file' |
| 2842 | { (case "(($ac_try" in |
| 2843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2844 | *) ac_try_echo=$ac_try;; |
| 2845 | esac |
| 2846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2847 | (eval "$ac_try") 2>&5 |
| 2848 | ac_status=$? |
| 2849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2850 | (exit $ac_status); }; }; then |
| 2851 | cross_compiling=no |
| 2852 | else |
| 2853 | if test "$cross_compiling" = maybe; then |
| 2854 | cross_compiling=yes |
| 2855 | else |
| 2856 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2857 | If you meant to cross compile, use \`--host'. |
| 2858 | See \`config.log' for more details." >&5 |
| 2859 | echo "$as_me: error: cannot run C compiled programs. |
| 2860 | If you meant to cross compile, use \`--host'. |
| 2861 | See \`config.log' for more details." >&2;} |
| 2862 | { (exit 1); exit 1; }; } |
| 2863 | fi |
| 2864 | fi |
| 2865 | fi |
| 2866 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2867 | echo "${ECHO_T}yes" >&6; } |
| 2868 | |
| 2869 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2870 | ac_clean_files=$ac_clean_files_save |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2871 | # Check that the compiler produces executables we can run. If not, either |
| 2872 | # the compiler is broken, or we cross compile. |
| 2873 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2874 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2875 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2876 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2877 | |
| 2878 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2879 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2880 | if { (ac_try="$ac_link" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2881 | case "(($ac_try" in |
| 2882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2883 | *) ac_try_echo=$ac_try;; |
| 2884 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2886 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2887 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2889 | (exit $ac_status); }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2890 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2891 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2892 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2893 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2894 | for ac_file in conftest.exe conftest conftest.*; do |
| 2895 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2896 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2897 | *.$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] | 2898 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2899 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2900 | * ) break;; |
| 2901 | esac |
| 2902 | done |
| 2903 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2904 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2905 | See \`config.log' for more details." >&5 |
| 2906 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2907 | See \`config.log' for more details." >&2;} |
| 2908 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2909 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2910 | |
| 2911 | rm -f conftest$ac_cv_exeext |
| 2912 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2913 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2914 | |
| 2915 | rm -f conftest.$ac_ext |
| 2916 | EXEEXT=$ac_cv_exeext |
| 2917 | ac_exeext=$EXEEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2918 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2919 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2920 | if test "${ac_cv_objext+set}" = set; then |
| 2921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2922 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2923 | cat >conftest.$ac_ext <<_ACEOF |
| 2924 | /* confdefs.h. */ |
| 2925 | _ACEOF |
| 2926 | cat confdefs.h >>conftest.$ac_ext |
| 2927 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2928 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2929 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2930 | int |
| 2931 | main () |
| 2932 | { |
| 2933 | |
| 2934 | ; |
| 2935 | return 0; |
| 2936 | } |
| 2937 | _ACEOF |
| 2938 | rm -f conftest.o conftest.obj |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2939 | if { (ac_try="$ac_compile" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2940 | case "(($ac_try" in |
| 2941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2942 | *) ac_try_echo=$ac_try;; |
| 2943 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2945 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2946 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2948 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2949 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2950 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2951 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2952 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2953 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2954 | break;; |
| 2955 | esac |
| 2956 | done |
| 2957 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2958 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2960 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2961 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2962 | See \`config.log' for more details." >&5 |
| 2963 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2964 | See \`config.log' for more details." >&2;} |
| 2965 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2966 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2967 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2968 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2969 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2970 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2971 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2972 | OBJEXT=$ac_cv_objext |
| 2973 | ac_objext=$OBJEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2974 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2975 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 2976 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2978 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2979 | cat >conftest.$ac_ext <<_ACEOF |
| 2980 | /* confdefs.h. */ |
| 2981 | _ACEOF |
| 2982 | cat confdefs.h >>conftest.$ac_ext |
| 2983 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2984 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2985 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2986 | int |
| 2987 | main () |
| 2988 | { |
| 2989 | #ifndef __GNUC__ |
| 2990 | choke me |
| 2991 | #endif |
| 2992 | |
| 2993 | ; |
| 2994 | return 0; |
| 2995 | } |
| 2996 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2997 | rm -f conftest.$ac_objext |
| 2998 | if { (ac_try="$ac_compile" |
| 2999 | case "(($ac_try" in |
| 3000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3001 | *) ac_try_echo=$ac_try;; |
| 3002 | esac |
| 3003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3004 | (eval "$ac_compile") 2>conftest.er1 |
| 3005 | ac_status=$? |
| 3006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3007 | rm -f conftest.er1 |
| 3008 | cat conftest.err >&5 |
| 3009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3010 | (exit $ac_status); } && |
| 3011 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3012 | { (case "(($ac_try" in |
| 3013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3014 | *) ac_try_echo=$ac_try;; |
| 3015 | esac |
| 3016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3017 | (eval "$ac_try") 2>&5 |
| 3018 | ac_status=$? |
| 3019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3020 | (exit $ac_status); }; } && |
| 3021 | { ac_try='test -s conftest.$ac_objext' |
| 3022 | { (case "(($ac_try" in |
| 3023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3024 | *) ac_try_echo=$ac_try;; |
| 3025 | esac |
| 3026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3027 | (eval "$ac_try") 2>&5 |
| 3028 | ac_status=$? |
| 3029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3030 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3031 | ac_compiler_gnu=yes |
| 3032 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3033 | echo "$as_me: failed program was:" >&5 |
| 3034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3035 | |
| 3036 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3037 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3038 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3040 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3041 | |
| 3042 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3043 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3044 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 3045 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3046 | ac_test_CFLAGS=${CFLAGS+set} |
| 3047 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3048 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3049 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 3050 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3052 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3053 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3054 | ac_c_werror_flag=yes |
| 3055 | ac_cv_prog_cc_g=no |
| 3056 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3057 | cat >conftest.$ac_ext <<_ACEOF |
| 3058 | /* confdefs.h. */ |
| 3059 | _ACEOF |
| 3060 | cat confdefs.h >>conftest.$ac_ext |
| 3061 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3062 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3063 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3064 | int |
| 3065 | main () |
| 3066 | { |
| 3067 | |
| 3068 | ; |
| 3069 | return 0; |
| 3070 | } |
| 3071 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3072 | rm -f conftest.$ac_objext |
| 3073 | if { (ac_try="$ac_compile" |
| 3074 | case "(($ac_try" in |
| 3075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3076 | *) ac_try_echo=$ac_try;; |
| 3077 | esac |
| 3078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3079 | (eval "$ac_compile") 2>conftest.er1 |
| 3080 | ac_status=$? |
| 3081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3082 | rm -f conftest.er1 |
| 3083 | cat conftest.err >&5 |
| 3084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3085 | (exit $ac_status); } && |
| 3086 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 3093 | ac_status=$? |
| 3094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3095 | (exit $ac_status); }; } && |
| 3096 | { ac_try='test -s conftest.$ac_objext' |
| 3097 | { (case "(($ac_try" in |
| 3098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3099 | *) ac_try_echo=$ac_try;; |
| 3100 | esac |
| 3101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3102 | (eval "$ac_try") 2>&5 |
| 3103 | ac_status=$? |
| 3104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3105 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3106 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3107 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3108 | echo "$as_me: failed program was:" >&5 |
| 3109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3110 | |
| 3111 | CFLAGS="" |
| 3112 | cat >conftest.$ac_ext <<_ACEOF |
| 3113 | /* confdefs.h. */ |
| 3114 | _ACEOF |
| 3115 | cat confdefs.h >>conftest.$ac_ext |
| 3116 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3117 | /* end confdefs.h. */ |
| 3118 | |
| 3119 | int |
| 3120 | main () |
| 3121 | { |
| 3122 | |
| 3123 | ; |
| 3124 | return 0; |
| 3125 | } |
| 3126 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3127 | rm -f conftest.$ac_objext |
| 3128 | if { (ac_try="$ac_compile" |
| 3129 | case "(($ac_try" in |
| 3130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3131 | *) ac_try_echo=$ac_try;; |
| 3132 | esac |
| 3133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3134 | (eval "$ac_compile") 2>conftest.er1 |
| 3135 | ac_status=$? |
| 3136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3137 | rm -f conftest.er1 |
| 3138 | cat conftest.err >&5 |
| 3139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3140 | (exit $ac_status); } && |
| 3141 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3142 | { (case "(($ac_try" in |
| 3143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3144 | *) ac_try_echo=$ac_try;; |
| 3145 | esac |
| 3146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3147 | (eval "$ac_try") 2>&5 |
| 3148 | ac_status=$? |
| 3149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3150 | (exit $ac_status); }; } && |
| 3151 | { ac_try='test -s conftest.$ac_objext' |
| 3152 | { (case "(($ac_try" in |
| 3153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3154 | *) ac_try_echo=$ac_try;; |
| 3155 | esac |
| 3156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3157 | (eval "$ac_try") 2>&5 |
| 3158 | ac_status=$? |
| 3159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3160 | (exit $ac_status); }; }; then |
| 3161 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3162 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3163 | echo "$as_me: failed program was:" >&5 |
| 3164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3165 | |
| 3166 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3167 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3168 | cat >conftest.$ac_ext <<_ACEOF |
| 3169 | /* confdefs.h. */ |
| 3170 | _ACEOF |
| 3171 | cat confdefs.h >>conftest.$ac_ext |
| 3172 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3173 | /* end confdefs.h. */ |
| 3174 | |
| 3175 | int |
| 3176 | main () |
| 3177 | { |
| 3178 | |
| 3179 | ; |
| 3180 | return 0; |
| 3181 | } |
| 3182 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3183 | rm -f conftest.$ac_objext |
| 3184 | if { (ac_try="$ac_compile" |
| 3185 | case "(($ac_try" in |
| 3186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3187 | *) ac_try_echo=$ac_try;; |
| 3188 | esac |
| 3189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3190 | (eval "$ac_compile") 2>conftest.er1 |
| 3191 | ac_status=$? |
| 3192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3193 | rm -f conftest.er1 |
| 3194 | cat conftest.err >&5 |
| 3195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3196 | (exit $ac_status); } && |
| 3197 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3198 | { (case "(($ac_try" in |
| 3199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3200 | *) ac_try_echo=$ac_try;; |
| 3201 | esac |
| 3202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3203 | (eval "$ac_try") 2>&5 |
| 3204 | ac_status=$? |
| 3205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3206 | (exit $ac_status); }; } && |
| 3207 | { ac_try='test -s conftest.$ac_objext' |
| 3208 | { (case "(($ac_try" in |
| 3209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3210 | *) ac_try_echo=$ac_try;; |
| 3211 | esac |
| 3212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3213 | (eval "$ac_try") 2>&5 |
| 3214 | ac_status=$? |
| 3215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3216 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3217 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3218 | else |
| 3219 | echo "$as_me: failed program was:" >&5 |
| 3220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3221 | |
| 3222 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3223 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3224 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3226 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3227 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3229 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3230 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3232 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3233 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3234 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3235 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3236 | if test "$ac_test_CFLAGS" = set; then |
| 3237 | CFLAGS=$ac_save_CFLAGS |
| 3238 | elif test $ac_cv_prog_cc_g = yes; then |
| 3239 | if test "$GCC" = yes; then |
| 3240 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3241 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3242 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3243 | fi |
| 3244 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3245 | if test "$GCC" = yes; then |
| 3246 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3247 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3248 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3249 | fi |
| 3250 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3251 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3252 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3253 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 3254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3255 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3256 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3257 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3258 | cat >conftest.$ac_ext <<_ACEOF |
| 3259 | /* confdefs.h. */ |
| 3260 | _ACEOF |
| 3261 | cat confdefs.h >>conftest.$ac_ext |
| 3262 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3263 | /* end confdefs.h. */ |
| 3264 | #include <stdarg.h> |
| 3265 | #include <stdio.h> |
| 3266 | #include <sys/types.h> |
| 3267 | #include <sys/stat.h> |
| 3268 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3269 | struct buf { int x; }; |
| 3270 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3271 | static char *e (p, i) |
| 3272 | char **p; |
| 3273 | int i; |
| 3274 | { |
| 3275 | return p[i]; |
| 3276 | } |
| 3277 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3278 | { |
| 3279 | char *s; |
| 3280 | va_list v; |
| 3281 | va_start (v,p); |
| 3282 | s = g (p, va_arg (v,int)); |
| 3283 | va_end (v); |
| 3284 | return s; |
| 3285 | } |
| 3286 | |
| 3287 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3288 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3289 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3290 | 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] | 3291 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3292 | 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] | 3293 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3294 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3295 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3296 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3297 | inside strings and character constants. */ |
| 3298 | #define FOO(x) 'x' |
| 3299 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3300 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3301 | int test (int i, double x); |
| 3302 | struct s1 {int (*f) (int a);}; |
| 3303 | struct s2 {int (*f) (double a);}; |
| 3304 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3305 | int argc; |
| 3306 | char **argv; |
| 3307 | int |
| 3308 | main () |
| 3309 | { |
| 3310 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3311 | ; |
| 3312 | return 0; |
| 3313 | } |
| 3314 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3315 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3316 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3317 | do |
| 3318 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3319 | rm -f conftest.$ac_objext |
| 3320 | if { (ac_try="$ac_compile" |
| 3321 | case "(($ac_try" in |
| 3322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3323 | *) ac_try_echo=$ac_try;; |
| 3324 | esac |
| 3325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3326 | (eval "$ac_compile") 2>conftest.er1 |
| 3327 | ac_status=$? |
| 3328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3329 | rm -f conftest.er1 |
| 3330 | cat conftest.err >&5 |
| 3331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3332 | (exit $ac_status); } && |
| 3333 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3334 | { (case "(($ac_try" in |
| 3335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3336 | *) ac_try_echo=$ac_try;; |
| 3337 | esac |
| 3338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3339 | (eval "$ac_try") 2>&5 |
| 3340 | ac_status=$? |
| 3341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3342 | (exit $ac_status); }; } && |
| 3343 | { ac_try='test -s conftest.$ac_objext' |
| 3344 | { (case "(($ac_try" in |
| 3345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3346 | *) ac_try_echo=$ac_try;; |
| 3347 | esac |
| 3348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3349 | (eval "$ac_try") 2>&5 |
| 3350 | ac_status=$? |
| 3351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3352 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3353 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3354 | else |
| 3355 | echo "$as_me: failed program was:" >&5 |
| 3356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3357 | |
| 3358 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3359 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3360 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3361 | rm -f core conftest.err conftest.$ac_objext |
| 3362 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3363 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3364 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3365 | CC=$ac_save_CC |
| 3366 | |
| 3367 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3368 | # AC_CACHE_VAL |
| 3369 | case "x$ac_cv_prog_cc_c89" in |
| 3370 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3371 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3372 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3373 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3374 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3375 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3376 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3377 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3378 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3379 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3380 | esac |
| 3381 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3382 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3383 | ac_ext=c |
| 3384 | ac_cpp='$CPP $CPPFLAGS' |
| 3385 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3386 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3387 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3388 | |
| 3389 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3390 | ac_ext=c |
| 3391 | ac_cpp='$CPP $CPPFLAGS' |
| 3392 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3393 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3394 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3395 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3396 | 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] | 3397 | # On Suns, sometimes $CPP names a directory. |
| 3398 | if test -n "$CPP" && test -d "$CPP"; then |
| 3399 | CPP= |
| 3400 | fi |
| 3401 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3402 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3404 | else |
| 3405 | # Double quotes because CPP needs to be expanded |
| 3406 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3407 | do |
| 3408 | ac_preproc_ok=false |
| 3409 | for ac_c_preproc_warn_flag in '' yes |
| 3410 | do |
| 3411 | # Use a header file that comes with gcc, so configuring glibc |
| 3412 | # with a fresh cross-compiler works. |
| 3413 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3414 | # <limits.h> exists even on freestanding compilers. |
| 3415 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3416 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3417 | cat >conftest.$ac_ext <<_ACEOF |
| 3418 | /* confdefs.h. */ |
| 3419 | _ACEOF |
| 3420 | cat confdefs.h >>conftest.$ac_ext |
| 3421 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3422 | /* end confdefs.h. */ |
| 3423 | #ifdef __STDC__ |
| 3424 | # include <limits.h> |
| 3425 | #else |
| 3426 | # include <assert.h> |
| 3427 | #endif |
| 3428 | Syntax error |
| 3429 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3430 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3431 | case "(($ac_try" in |
| 3432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3433 | *) ac_try_echo=$ac_try;; |
| 3434 | esac |
| 3435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3436 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3437 | ac_status=$? |
| 3438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3439 | rm -f conftest.er1 |
| 3440 | cat conftest.err >&5 |
| 3441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3442 | (exit $ac_status); } >/dev/null; then |
| 3443 | if test -s conftest.err; then |
| 3444 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3445 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3446 | else |
| 3447 | ac_cpp_err= |
| 3448 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3449 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3450 | ac_cpp_err=yes |
| 3451 | fi |
| 3452 | if test -z "$ac_cpp_err"; then |
| 3453 | : |
| 3454 | else |
| 3455 | echo "$as_me: failed program was:" >&5 |
| 3456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3457 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3458 | # Broken: fails on valid input. |
| 3459 | continue |
| 3460 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3461 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3462 | rm -f conftest.err conftest.$ac_ext |
| 3463 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3464 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3465 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3466 | cat >conftest.$ac_ext <<_ACEOF |
| 3467 | /* confdefs.h. */ |
| 3468 | _ACEOF |
| 3469 | cat confdefs.h >>conftest.$ac_ext |
| 3470 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3471 | /* end confdefs.h. */ |
| 3472 | #include <ac_nonexistent.h> |
| 3473 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3474 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3475 | case "(($ac_try" in |
| 3476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3477 | *) ac_try_echo=$ac_try;; |
| 3478 | esac |
| 3479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3480 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3481 | ac_status=$? |
| 3482 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3483 | rm -f conftest.er1 |
| 3484 | cat conftest.err >&5 |
| 3485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3486 | (exit $ac_status); } >/dev/null; then |
| 3487 | if test -s conftest.err; then |
| 3488 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3489 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3490 | else |
| 3491 | ac_cpp_err= |
| 3492 | fi |
| 3493 | else |
| 3494 | ac_cpp_err=yes |
| 3495 | fi |
| 3496 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3497 | # Broken: success on invalid input. |
| 3498 | continue |
| 3499 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3500 | echo "$as_me: failed program was:" >&5 |
| 3501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3502 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3503 | # Passes both tests. |
| 3504 | ac_preproc_ok=: |
| 3505 | break |
| 3506 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3507 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3508 | rm -f conftest.err conftest.$ac_ext |
| 3509 | |
| 3510 | done |
| 3511 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3512 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3513 | if $ac_preproc_ok; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3514 | break |
| 3515 | fi |
| 3516 | |
| 3517 | done |
| 3518 | ac_cv_prog_CPP=$CPP |
| 3519 | |
| 3520 | fi |
| 3521 | CPP=$ac_cv_prog_CPP |
| 3522 | else |
| 3523 | ac_cv_prog_CPP=$CPP |
| 3524 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3525 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3526 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3527 | ac_preproc_ok=false |
| 3528 | for ac_c_preproc_warn_flag in '' yes |
| 3529 | do |
| 3530 | # Use a header file that comes with gcc, so configuring glibc |
| 3531 | # with a fresh cross-compiler works. |
| 3532 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3533 | # <limits.h> exists even on freestanding compilers. |
| 3534 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3535 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3536 | cat >conftest.$ac_ext <<_ACEOF |
| 3537 | /* confdefs.h. */ |
| 3538 | _ACEOF |
| 3539 | cat confdefs.h >>conftest.$ac_ext |
| 3540 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3541 | /* end confdefs.h. */ |
| 3542 | #ifdef __STDC__ |
| 3543 | # include <limits.h> |
| 3544 | #else |
| 3545 | # include <assert.h> |
| 3546 | #endif |
| 3547 | Syntax error |
| 3548 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3549 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3550 | case "(($ac_try" in |
| 3551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3552 | *) ac_try_echo=$ac_try;; |
| 3553 | esac |
| 3554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3555 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3556 | ac_status=$? |
| 3557 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3558 | rm -f conftest.er1 |
| 3559 | cat conftest.err >&5 |
| 3560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3561 | (exit $ac_status); } >/dev/null; then |
| 3562 | if test -s conftest.err; then |
| 3563 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3564 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3565 | else |
| 3566 | ac_cpp_err= |
| 3567 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3568 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3569 | ac_cpp_err=yes |
| 3570 | fi |
| 3571 | if test -z "$ac_cpp_err"; then |
| 3572 | : |
| 3573 | else |
| 3574 | echo "$as_me: failed program was:" >&5 |
| 3575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3576 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3577 | # Broken: fails on valid input. |
| 3578 | continue |
| 3579 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3580 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3581 | rm -f conftest.err conftest.$ac_ext |
| 3582 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3583 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3584 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3585 | cat >conftest.$ac_ext <<_ACEOF |
| 3586 | /* confdefs.h. */ |
| 3587 | _ACEOF |
| 3588 | cat confdefs.h >>conftest.$ac_ext |
| 3589 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3590 | /* end confdefs.h. */ |
| 3591 | #include <ac_nonexistent.h> |
| 3592 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3593 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3594 | case "(($ac_try" in |
| 3595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3596 | *) ac_try_echo=$ac_try;; |
| 3597 | esac |
| 3598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3599 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3600 | ac_status=$? |
| 3601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3602 | rm -f conftest.er1 |
| 3603 | cat conftest.err >&5 |
| 3604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3605 | (exit $ac_status); } >/dev/null; then |
| 3606 | if test -s conftest.err; then |
| 3607 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3608 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3609 | else |
| 3610 | ac_cpp_err= |
| 3611 | fi |
| 3612 | else |
| 3613 | ac_cpp_err=yes |
| 3614 | fi |
| 3615 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3616 | # Broken: success on invalid input. |
| 3617 | continue |
| 3618 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3619 | echo "$as_me: failed program was:" >&5 |
| 3620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3621 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3622 | # Passes both tests. |
| 3623 | ac_preproc_ok=: |
| 3624 | break |
| 3625 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3626 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3627 | rm -f conftest.err conftest.$ac_ext |
| 3628 | |
| 3629 | done |
| 3630 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3631 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3632 | if $ac_preproc_ok; then |
| 3633 | : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3634 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3635 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3636 | See \`config.log' for more details." >&5 |
| 3637 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3638 | See \`config.log' for more details." >&2;} |
| 3639 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3640 | fi |
| 3641 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3642 | ac_ext=c |
| 3643 | ac_cpp='$CPP $CPPFLAGS' |
| 3644 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3645 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3646 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3647 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3648 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3649 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3650 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3651 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3653 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3654 | # Extract the first word of "grep ggrep" to use in msg output |
| 3655 | if test -z "$GREP"; then |
| 3656 | set dummy grep ggrep; ac_prog_name=$2 |
| 3657 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3659 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3660 | ac_path_GREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3661 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3663 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3664 | do |
| 3665 | IFS=$as_save_IFS |
| 3666 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3667 | for ac_prog in grep ggrep; do |
| 3668 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3669 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3670 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3671 | # 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] | 3672 | # Check for GNU $ac_path_GREP |
| 3673 | case `"$ac_path_GREP" --version 2>&1` in |
| 3674 | *GNU*) |
| 3675 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3676 | *) |
| 3677 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3678 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3679 | while : |
| 3680 | do |
| 3681 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3682 | mv "conftest.tmp" "conftest.in" |
| 3683 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3684 | echo 'GREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3685 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3686 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3687 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3688 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3689 | # Best one so far, save it but keep looking for a better one |
| 3690 | ac_cv_path_GREP="$ac_path_GREP" |
| 3691 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3692 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3693 | # 10*(2^10) chars as input seems more than enough |
| 3694 | test $ac_count -gt 10 && break |
| 3695 | done |
| 3696 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3697 | esac |
| 3698 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3699 | |
| 3700 | $ac_path_GREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3701 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3702 | done |
| 3703 | |
| 3704 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3705 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3706 | |
| 3707 | |
| 3708 | fi |
| 3709 | |
| 3710 | GREP="$ac_cv_path_GREP" |
| 3711 | if test -z "$GREP"; then |
| 3712 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3713 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3714 | { (exit 1); exit 1; }; } |
| 3715 | fi |
| 3716 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3717 | else |
| 3718 | ac_cv_path_GREP=$GREP |
| 3719 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3720 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3721 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3722 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3723 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3724 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3725 | GREP="$ac_cv_path_GREP" |
| 3726 | |
| 3727 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3728 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3729 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3730 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3732 | else |
| 3733 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3734 | then ac_cv_path_EGREP="$GREP -E" |
| 3735 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3736 | # Extract the first word of "egrep" to use in msg output |
| 3737 | if test -z "$EGREP"; then |
| 3738 | set dummy egrep; ac_prog_name=$2 |
| 3739 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3741 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3742 | ac_path_EGREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3743 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3745 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3746 | do |
| 3747 | IFS=$as_save_IFS |
| 3748 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3749 | for ac_prog in egrep; do |
| 3750 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3751 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3752 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3753 | # 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] | 3754 | # Check for GNU $ac_path_EGREP |
| 3755 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3756 | *GNU*) |
| 3757 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3758 | *) |
| 3759 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3760 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3761 | while : |
| 3762 | do |
| 3763 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3764 | mv "conftest.tmp" "conftest.in" |
| 3765 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3766 | echo 'EGREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3767 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3768 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3769 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3770 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3771 | # Best one so far, save it but keep looking for a better one |
| 3772 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3773 | ac_path_EGREP_max=$ac_count |
| 3774 | fi |
| 3775 | # 10*(2^10) chars as input seems more than enough |
| 3776 | test $ac_count -gt 10 && break |
| 3777 | done |
| 3778 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3779 | esac |
| 3780 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3781 | |
| 3782 | $ac_path_EGREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3783 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3784 | done |
| 3785 | |
| 3786 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3787 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3788 | |
| 3789 | |
| 3790 | fi |
| 3791 | |
| 3792 | EGREP="$ac_cv_path_EGREP" |
| 3793 | if test -z "$EGREP"; then |
| 3794 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3795 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3796 | { (exit 1); exit 1; }; } |
| 3797 | fi |
| 3798 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3799 | else |
| 3800 | ac_cv_path_EGREP=$EGREP |
| 3801 | fi |
| 3802 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3803 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3804 | fi |
| 3805 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3806 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3807 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3808 | EGREP="$ac_cv_path_EGREP" |
| 3809 | |
| 3810 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3811 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3812 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 3813 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3815 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3816 | cat >conftest.$ac_ext <<_ACEOF |
| 3817 | /* confdefs.h. */ |
| 3818 | _ACEOF |
| 3819 | cat confdefs.h >>conftest.$ac_ext |
| 3820 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3821 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3822 | #include <stdlib.h> |
| 3823 | #include <stdarg.h> |
| 3824 | #include <string.h> |
| 3825 | #include <float.h> |
| 3826 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3827 | int |
| 3828 | main () |
| 3829 | { |
| 3830 | |
| 3831 | ; |
| 3832 | return 0; |
| 3833 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3834 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3835 | rm -f conftest.$ac_objext |
| 3836 | if { (ac_try="$ac_compile" |
| 3837 | case "(($ac_try" in |
| 3838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3839 | *) ac_try_echo=$ac_try;; |
| 3840 | esac |
| 3841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3842 | (eval "$ac_compile") 2>conftest.er1 |
| 3843 | ac_status=$? |
| 3844 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3845 | rm -f conftest.er1 |
| 3846 | cat conftest.err >&5 |
| 3847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3848 | (exit $ac_status); } && |
| 3849 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3850 | { (case "(($ac_try" in |
| 3851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3852 | *) ac_try_echo=$ac_try;; |
| 3853 | esac |
| 3854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3855 | (eval "$ac_try") 2>&5 |
| 3856 | ac_status=$? |
| 3857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3858 | (exit $ac_status); }; } && |
| 3859 | { ac_try='test -s conftest.$ac_objext' |
| 3860 | { (case "(($ac_try" in |
| 3861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3862 | *) ac_try_echo=$ac_try;; |
| 3863 | esac |
| 3864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3865 | (eval "$ac_try") 2>&5 |
| 3866 | ac_status=$? |
| 3867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3868 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3869 | ac_cv_header_stdc=yes |
| 3870 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3871 | echo "$as_me: failed program was:" >&5 |
| 3872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3873 | |
| 3874 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3875 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3876 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3878 | |
| 3879 | if test $ac_cv_header_stdc = yes; then |
| 3880 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3881 | cat >conftest.$ac_ext <<_ACEOF |
| 3882 | /* confdefs.h. */ |
| 3883 | _ACEOF |
| 3884 | cat confdefs.h >>conftest.$ac_ext |
| 3885 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3886 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3887 | #include <string.h> |
| 3888 | |
| 3889 | _ACEOF |
| 3890 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3891 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3892 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3893 | else |
| 3894 | ac_cv_header_stdc=no |
| 3895 | fi |
| 3896 | rm -f conftest* |
| 3897 | |
| 3898 | fi |
| 3899 | |
| 3900 | if test $ac_cv_header_stdc = yes; then |
| 3901 | # 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] | 3902 | cat >conftest.$ac_ext <<_ACEOF |
| 3903 | /* confdefs.h. */ |
| 3904 | _ACEOF |
| 3905 | cat confdefs.h >>conftest.$ac_ext |
| 3906 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3907 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3908 | #include <stdlib.h> |
| 3909 | |
| 3910 | _ACEOF |
| 3911 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3912 | $EGREP "free" >/dev/null 2>&1; then |
| 3913 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3914 | else |
| 3915 | ac_cv_header_stdc=no |
| 3916 | fi |
| 3917 | rm -f conftest* |
| 3918 | |
| 3919 | fi |
| 3920 | |
| 3921 | if test $ac_cv_header_stdc = yes; then |
| 3922 | # /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] | 3923 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3924 | : |
| 3925 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3926 | cat >conftest.$ac_ext <<_ACEOF |
| 3927 | /* confdefs.h. */ |
| 3928 | _ACEOF |
| 3929 | cat confdefs.h >>conftest.$ac_ext |
| 3930 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3931 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3932 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3933 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3934 | #if ((' ' & 0x0FF) == 0x020) |
| 3935 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3936 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3937 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3938 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3939 | (('a' <= (c) && (c) <= 'i') \ |
| 3940 | || ('j' <= (c) && (c) <= 'r') \ |
| 3941 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3942 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3943 | #endif |
| 3944 | |
| 3945 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3946 | int |
| 3947 | main () |
| 3948 | { |
| 3949 | int i; |
| 3950 | for (i = 0; i < 256; i++) |
| 3951 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3952 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3953 | return 2; |
| 3954 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3955 | } |
| 3956 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3957 | rm -f conftest$ac_exeext |
| 3958 | if { (ac_try="$ac_link" |
| 3959 | case "(($ac_try" in |
| 3960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3961 | *) ac_try_echo=$ac_try;; |
| 3962 | esac |
| 3963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3964 | (eval "$ac_link") 2>&5 |
| 3965 | ac_status=$? |
| 3966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3967 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3968 | { (case "(($ac_try" in |
| 3969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3970 | *) ac_try_echo=$ac_try;; |
| 3971 | esac |
| 3972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3973 | (eval "$ac_try") 2>&5 |
| 3974 | ac_status=$? |
| 3975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3976 | (exit $ac_status); }; }; then |
| 3977 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3978 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3979 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3980 | echo "$as_me: failed program was:" >&5 |
| 3981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3982 | |
| 3983 | ( exit $ac_status ) |
| 3984 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3985 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3986 | 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] | 3987 | fi |
| 3988 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3989 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3990 | fi |
| 3991 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3992 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3993 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3994 | if test $ac_cv_header_stdc = yes; then |
| 3995 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3996 | cat >>confdefs.h <<\_ACEOF |
| 3997 | #define STDC_HEADERS 1 |
| 3998 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3999 | |
| 4000 | fi |
| 4001 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4002 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4003 | |
| 4004 | |
| 4005 | |
| 4006 | |
| 4007 | |
| 4008 | |
| 4009 | |
| 4010 | |
| 4011 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4012 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4013 | inttypes.h stdint.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4014 | do |
| 4015 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4016 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4017 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4018 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4020 | else |
| 4021 | cat >conftest.$ac_ext <<_ACEOF |
| 4022 | /* confdefs.h. */ |
| 4023 | _ACEOF |
| 4024 | cat confdefs.h >>conftest.$ac_ext |
| 4025 | cat >>conftest.$ac_ext <<_ACEOF |
| 4026 | /* end confdefs.h. */ |
| 4027 | $ac_includes_default |
| 4028 | |
| 4029 | #include <$ac_header> |
| 4030 | _ACEOF |
| 4031 | rm -f conftest.$ac_objext |
| 4032 | if { (ac_try="$ac_compile" |
| 4033 | case "(($ac_try" in |
| 4034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4035 | *) ac_try_echo=$ac_try;; |
| 4036 | esac |
| 4037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4038 | (eval "$ac_compile") 2>conftest.er1 |
| 4039 | ac_status=$? |
| 4040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4041 | rm -f conftest.er1 |
| 4042 | cat conftest.err >&5 |
| 4043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4044 | (exit $ac_status); } && |
| 4045 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4046 | { (case "(($ac_try" in |
| 4047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4048 | *) ac_try_echo=$ac_try;; |
| 4049 | esac |
| 4050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4051 | (eval "$ac_try") 2>&5 |
| 4052 | ac_status=$? |
| 4053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4054 | (exit $ac_status); }; } && |
| 4055 | { ac_try='test -s conftest.$ac_objext' |
| 4056 | { (case "(($ac_try" in |
| 4057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4058 | *) ac_try_echo=$ac_try;; |
| 4059 | esac |
| 4060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4061 | (eval "$ac_try") 2>&5 |
| 4062 | ac_status=$? |
| 4063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4064 | (exit $ac_status); }; }; then |
| 4065 | eval "$as_ac_Header=yes" |
| 4066 | else |
| 4067 | echo "$as_me: failed program was:" >&5 |
| 4068 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4069 | |
| 4070 | eval "$as_ac_Header=no" |
| 4071 | fi |
| 4072 | |
| 4073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4074 | fi |
| 4075 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4076 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4077 | echo "${ECHO_T}$ac_res" >&6; } |
| 4078 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4079 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4080 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4081 | _ACEOF |
| 4082 | |
| 4083 | fi |
| 4084 | |
| 4085 | done |
| 4086 | |
| 4087 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4088 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4089 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4090 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4092 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4093 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4094 | cat >conftest.$ac_ext <<_ACEOF |
| 4095 | /* confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4096 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4097 | cat confdefs.h >>conftest.$ac_ext |
| 4098 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4099 | /* end confdefs.h. */ |
| 4100 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4101 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4102 | |
| 4103 | int |
| 4104 | main () |
| 4105 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4106 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4107 | bogus endian macros |
| 4108 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4109 | |
| 4110 | ; |
| 4111 | return 0; |
| 4112 | } |
| 4113 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4114 | rm -f conftest.$ac_objext |
| 4115 | if { (ac_try="$ac_compile" |
| 4116 | case "(($ac_try" in |
| 4117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4118 | *) ac_try_echo=$ac_try;; |
| 4119 | esac |
| 4120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4121 | (eval "$ac_compile") 2>conftest.er1 |
| 4122 | ac_status=$? |
| 4123 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4124 | rm -f conftest.er1 |
| 4125 | cat conftest.err >&5 |
| 4126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4127 | (exit $ac_status); } && |
| 4128 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 4135 | ac_status=$? |
| 4136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4137 | (exit $ac_status); }; } && |
| 4138 | { ac_try='test -s conftest.$ac_objext' |
| 4139 | { (case "(($ac_try" in |
| 4140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4141 | *) ac_try_echo=$ac_try;; |
| 4142 | esac |
| 4143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4144 | (eval "$ac_try") 2>&5 |
| 4145 | ac_status=$? |
| 4146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4147 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4148 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4149 | cat >conftest.$ac_ext <<_ACEOF |
| 4150 | /* confdefs.h. */ |
| 4151 | _ACEOF |
| 4152 | cat confdefs.h >>conftest.$ac_ext |
| 4153 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4154 | /* end confdefs.h. */ |
| 4155 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4156 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4157 | |
| 4158 | int |
| 4159 | main () |
| 4160 | { |
| 4161 | #if BYTE_ORDER != BIG_ENDIAN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4162 | not big endian |
| 4163 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4164 | |
| 4165 | ; |
| 4166 | return 0; |
| 4167 | } |
| 4168 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4169 | rm -f conftest.$ac_objext |
| 4170 | if { (ac_try="$ac_compile" |
| 4171 | case "(($ac_try" in |
| 4172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4173 | *) ac_try_echo=$ac_try;; |
| 4174 | esac |
| 4175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4176 | (eval "$ac_compile") 2>conftest.er1 |
| 4177 | ac_status=$? |
| 4178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4179 | rm -f conftest.er1 |
| 4180 | cat conftest.err >&5 |
| 4181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4182 | (exit $ac_status); } && |
| 4183 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4184 | { (case "(($ac_try" in |
| 4185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4186 | *) ac_try_echo=$ac_try;; |
| 4187 | esac |
| 4188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4189 | (eval "$ac_try") 2>&5 |
| 4190 | ac_status=$? |
| 4191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4192 | (exit $ac_status); }; } && |
| 4193 | { ac_try='test -s conftest.$ac_objext' |
| 4194 | { (case "(($ac_try" in |
| 4195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4196 | *) ac_try_echo=$ac_try;; |
| 4197 | esac |
| 4198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4199 | (eval "$ac_try") 2>&5 |
| 4200 | ac_status=$? |
| 4201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4202 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4203 | ac_cv_c_bigendian=yes |
| 4204 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4205 | echo "$as_me: failed program was:" >&5 |
| 4206 | sed 's/^/| /' conftest.$ac_ext >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4207 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4208 | ac_cv_c_bigendian=no |
| 4209 | fi |
| 4210 | |
| 4211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4212 | else |
| 4213 | echo "$as_me: failed program was:" >&5 |
| 4214 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4215 | |
| 4216 | # It does not; compile a test program. |
| 4217 | if test "$cross_compiling" = yes; then |
| 4218 | # try to guess the endianness by grepping values into an object file |
| 4219 | ac_cv_c_bigendian=unknown |
| 4220 | cat >conftest.$ac_ext <<_ACEOF |
| 4221 | /* confdefs.h. */ |
| 4222 | _ACEOF |
| 4223 | cat confdefs.h >>conftest.$ac_ext |
| 4224 | cat >>conftest.$ac_ext <<_ACEOF |
| 4225 | /* end confdefs.h. */ |
| 4226 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4227 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4228 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4229 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4230 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4231 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4232 | int |
| 4233 | main () |
| 4234 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4235 | _ascii (); _ebcdic (); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4236 | ; |
| 4237 | return 0; |
| 4238 | } |
| 4239 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4240 | rm -f conftest.$ac_objext |
| 4241 | if { (ac_try="$ac_compile" |
| 4242 | case "(($ac_try" in |
| 4243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4244 | *) ac_try_echo=$ac_try;; |
| 4245 | esac |
| 4246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4247 | (eval "$ac_compile") 2>conftest.er1 |
| 4248 | ac_status=$? |
| 4249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4250 | rm -f conftest.er1 |
| 4251 | cat conftest.err >&5 |
| 4252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4253 | (exit $ac_status); } && |
| 4254 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4255 | { (case "(($ac_try" in |
| 4256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4257 | *) ac_try_echo=$ac_try;; |
| 4258 | esac |
| 4259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4260 | (eval "$ac_try") 2>&5 |
| 4261 | ac_status=$? |
| 4262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4263 | (exit $ac_status); }; } && |
| 4264 | { ac_try='test -s conftest.$ac_objext' |
| 4265 | { (case "(($ac_try" in |
| 4266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4267 | *) ac_try_echo=$ac_try;; |
| 4268 | esac |
| 4269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4270 | (eval "$ac_try") 2>&5 |
| 4271 | ac_status=$? |
| 4272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4273 | (exit $ac_status); }; }; then |
| 4274 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4275 | ac_cv_c_bigendian=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4276 | fi |
| 4277 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4278 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4279 | ac_cv_c_bigendian=no |
| 4280 | else |
| 4281 | # finding both strings is unlikely to happen, but who knows? |
| 4282 | ac_cv_c_bigendian=unknown |
| 4283 | fi |
| 4284 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4285 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4286 | echo "$as_me: failed program was:" >&5 |
| 4287 | sed 's/^/| /' conftest.$ac_ext >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4288 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4289 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4290 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4291 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4293 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4294 | cat >conftest.$ac_ext <<_ACEOF |
| 4295 | /* confdefs.h. */ |
| 4296 | _ACEOF |
| 4297 | cat confdefs.h >>conftest.$ac_ext |
| 4298 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4299 | /* end confdefs.h. */ |
| 4300 | $ac_includes_default |
| 4301 | int |
| 4302 | main () |
| 4303 | { |
| 4304 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4305 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4306 | union |
| 4307 | { |
| 4308 | long int l; |
| 4309 | char c[sizeof (long int)]; |
| 4310 | } u; |
| 4311 | u.l = 1; |
| 4312 | return u.c[sizeof (long int) - 1] == 1; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4313 | |
| 4314 | ; |
| 4315 | return 0; |
| 4316 | } |
| 4317 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4318 | rm -f conftest$ac_exeext |
| 4319 | if { (ac_try="$ac_link" |
| 4320 | case "(($ac_try" in |
| 4321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4322 | *) ac_try_echo=$ac_try;; |
| 4323 | esac |
| 4324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4325 | (eval "$ac_link") 2>&5 |
| 4326 | ac_status=$? |
| 4327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4328 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4329 | { (case "(($ac_try" in |
| 4330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4331 | *) ac_try_echo=$ac_try;; |
| 4332 | esac |
| 4333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4334 | (eval "$ac_try") 2>&5 |
| 4335 | ac_status=$? |
| 4336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4337 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4338 | ac_cv_c_bigendian=no |
| 4339 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4340 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4341 | echo "$as_me: failed program was:" >&5 |
| 4342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4343 | |
| 4344 | ( exit $ac_status ) |
| 4345 | ac_cv_c_bigendian=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4346 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4347 | 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] | 4348 | fi |
| 4349 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4350 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4351 | fi |
| 4352 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4354 | fi |
| 4355 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4356 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4357 | case $ac_cv_c_bigendian in |
| 4358 | yes) |
| 4359 | ENDIAN=big |
| 4360 | ;; |
| 4361 | no) |
| 4362 | ENDIAN=little |
| 4363 | ;; |
| 4364 | *) |
| 4365 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4366 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4367 | echo "$as_me: error: unknown endianness |
| 4368 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4369 | { (exit 1); exit 1; }; } ;; |
| 4370 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4371 | |
| 4372 | |
| 4373 | if test "$cross_compiling" = yes; then |
| 4374 | LLVM_CROSS_COMPILING=1 |
| 4375 | |
| 4376 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4377 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4378 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4379 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4381 | else |
| 4382 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4383 | ac_cv_build_exeext=.exe |
| 4384 | else |
| 4385 | ac_build_prefix=${build_alias}- |
| 4386 | |
| 4387 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4388 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4389 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4390 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4391 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4393 | else |
| 4394 | if test -n "$BUILD_CC"; then |
| 4395 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4396 | else |
| 4397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4398 | for as_dir in $PATH |
| 4399 | do |
| 4400 | IFS=$as_save_IFS |
| 4401 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4402 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4403 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4404 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4405 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4406 | break 2 |
| 4407 | fi |
| 4408 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4409 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4410 | IFS=$as_save_IFS |
| 4411 | |
| 4412 | fi |
| 4413 | fi |
| 4414 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4415 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4416 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4417 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4418 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4419 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4420 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4421 | fi |
| 4422 | |
| 4423 | |
| 4424 | if test -z "$BUILD_CC"; then |
| 4425 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4426 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4427 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4428 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4429 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4431 | else |
| 4432 | if test -n "$BUILD_CC"; then |
| 4433 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4434 | else |
| 4435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4436 | for as_dir in $PATH |
| 4437 | do |
| 4438 | IFS=$as_save_IFS |
| 4439 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4440 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4441 | 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] | 4442 | ac_cv_prog_BUILD_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4443 | 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] | 4444 | break 2 |
| 4445 | fi |
| 4446 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4447 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4448 | IFS=$as_save_IFS |
| 4449 | |
| 4450 | fi |
| 4451 | fi |
| 4452 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4453 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4454 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4455 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4456 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4457 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4458 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4459 | fi |
| 4460 | |
| 4461 | |
| 4462 | if test -z "$BUILD_CC"; then |
| 4463 | # Extract the first word of "cc", so it can be a program name with args. |
| 4464 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4465 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4466 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4467 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4469 | else |
| 4470 | if test -n "$BUILD_CC"; then |
| 4471 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4472 | else |
| 4473 | ac_prog_rejected=no |
| 4474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4475 | for as_dir in $PATH |
| 4476 | do |
| 4477 | IFS=$as_save_IFS |
| 4478 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4479 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4480 | 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] | 4481 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4482 | ac_prog_rejected=yes |
| 4483 | continue |
| 4484 | fi |
| 4485 | ac_cv_prog_BUILD_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4486 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4487 | break 2 |
| 4488 | fi |
| 4489 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4490 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4491 | IFS=$as_save_IFS |
| 4492 | |
| 4493 | if test $ac_prog_rejected = yes; then |
| 4494 | # We found a bogon in the path, so make sure we never use it. |
| 4495 | set dummy $ac_cv_prog_BUILD_CC |
| 4496 | shift |
| 4497 | if test $# != 0; then |
| 4498 | # We chose a different compiler from the bogus one. |
| 4499 | # However, it has the same basename, so the bogon will be chosen |
| 4500 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4501 | shift |
| 4502 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4503 | fi |
| 4504 | fi |
| 4505 | fi |
| 4506 | fi |
| 4507 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4508 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4509 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4510 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4511 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4512 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4513 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4514 | fi |
| 4515 | |
| 4516 | |
| 4517 | fi |
| 4518 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4519 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4520 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4521 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4522 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4523 | rm -f conftest* |
| 4524 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4525 | ac_cv_build_exeext= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4526 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4527 | (eval $ac_build_link) 2>&5 |
| 4528 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4530 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4531 | for file in conftest.*; do |
| 4532 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4533 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4534 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4535 | esac |
| 4536 | done |
| 4537 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4538 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4539 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4540 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4541 | fi |
| 4542 | rm -f conftest* |
| 4543 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4544 | fi |
| 4545 | fi |
| 4546 | |
| 4547 | BUILD_EXEEXT="" |
| 4548 | 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] | 4549 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4550 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4551 | ac_build_exeext=$BUILD_EXEEXT |
| 4552 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4553 | ac_build_prefix=${build_alias}- |
| 4554 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4555 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4556 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4557 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4558 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4560 | else |
| 4561 | if test -n "$BUILD_CXX"; then |
| 4562 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4563 | else |
| 4564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4565 | for as_dir in $PATH |
| 4566 | do |
| 4567 | IFS=$as_save_IFS |
| 4568 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4569 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4570 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4571 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4572 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4573 | break 2 |
| 4574 | fi |
| 4575 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4576 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4577 | IFS=$as_save_IFS |
| 4578 | |
| 4579 | fi |
| 4580 | fi |
| 4581 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4582 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4583 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4584 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4585 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4586 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4587 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4588 | fi |
| 4589 | |
| 4590 | |
| 4591 | if test -z "$BUILD_CXX"; then |
| 4592 | # Extract the first word of "g++", so it can be a program name with args. |
| 4593 | set dummy g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4594 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4595 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4596 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4598 | else |
| 4599 | if test -n "$BUILD_CXX"; then |
| 4600 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4601 | else |
| 4602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4603 | for as_dir in $PATH |
| 4604 | do |
| 4605 | IFS=$as_save_IFS |
| 4606 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4607 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4608 | 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] | 4609 | ac_cv_prog_BUILD_CXX="g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4610 | 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] | 4611 | break 2 |
| 4612 | fi |
| 4613 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4614 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4615 | IFS=$as_save_IFS |
| 4616 | |
| 4617 | fi |
| 4618 | fi |
| 4619 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4620 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4621 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4622 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4623 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4624 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4625 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4626 | fi |
| 4627 | |
| 4628 | |
| 4629 | if test -z "$BUILD_CXX"; then |
| 4630 | # Extract the first word of "c++", so it can be a program name with args. |
| 4631 | set dummy c++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4632 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4634 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4636 | else |
| 4637 | if test -n "$BUILD_CXX"; then |
| 4638 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4639 | else |
| 4640 | ac_prog_rejected=no |
| 4641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4642 | for as_dir in $PATH |
| 4643 | do |
| 4644 | IFS=$as_save_IFS |
| 4645 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4646 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4647 | 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] | 4648 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4649 | ac_prog_rejected=yes |
| 4650 | continue |
| 4651 | fi |
| 4652 | ac_cv_prog_BUILD_CXX="c++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4653 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4654 | break 2 |
| 4655 | fi |
| 4656 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4657 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4658 | IFS=$as_save_IFS |
| 4659 | |
| 4660 | if test $ac_prog_rejected = yes; then |
| 4661 | # We found a bogon in the path, so make sure we never use it. |
| 4662 | set dummy $ac_cv_prog_BUILD_CXX |
| 4663 | shift |
| 4664 | if test $# != 0; then |
| 4665 | # We chose a different compiler from the bogus one. |
| 4666 | # However, it has the same basename, so the bogon will be chosen |
| 4667 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4668 | shift |
| 4669 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4670 | fi |
| 4671 | fi |
| 4672 | fi |
| 4673 | fi |
| 4674 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4675 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4676 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4677 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4678 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4679 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4680 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4681 | fi |
| 4682 | |
| 4683 | |
| 4684 | fi |
| 4685 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4686 | else |
| 4687 | LLVM_CROSS_COMPILING=0 |
| 4688 | |
| 4689 | fi |
| 4690 | |
Nick Lewycky | 5b28f86 | 2009-04-10 05:18:27 +0000 | [diff] [blame] | 4691 | 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] | 4692 | cvsbuild="yes" |
| 4693 | optimize="no" |
| 4694 | CVSBUILD=CVSBUILD=1 |
| 4695 | |
| 4696 | else |
| 4697 | cvsbuild="no" |
| 4698 | optimize="yes" |
| 4699 | fi |
| 4700 | |
| 4701 | |
| 4702 | # Check whether --enable-optimized was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4703 | if test "${enable_optimized+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4704 | enableval=$enable_optimized; |
| 4705 | else |
| 4706 | enableval=$optimize |
| 4707 | fi |
| 4708 | |
| 4709 | if test ${enableval} = "no" ; then |
| 4710 | ENABLE_OPTIMIZED= |
| 4711 | |
| 4712 | else |
| 4713 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4714 | |
| 4715 | fi |
| 4716 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4717 | # Check whether --enable-profiling was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4718 | if test "${enable_profiling+set}" = set; then |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4719 | enableval=$enable_profiling; |
| 4720 | else |
| 4721 | enableval="no" |
| 4722 | fi |
| 4723 | |
| 4724 | if test ${enableval} = "no" ; then |
| 4725 | ENABLE_PROFILING= |
| 4726 | |
| 4727 | else |
| 4728 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 4729 | |
| 4730 | fi |
| 4731 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4732 | # Check whether --enable-assertions was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4733 | if test "${enable_assertions+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4734 | enableval=$enable_assertions; |
| 4735 | else |
| 4736 | enableval="yes" |
| 4737 | fi |
| 4738 | |
| 4739 | if test ${enableval} = "yes" ; then |
| 4740 | DISABLE_ASSERTIONS= |
| 4741 | |
| 4742 | else |
| 4743 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4744 | |
| 4745 | fi |
| 4746 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4747 | # Check whether --enable-expensive-checks was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4748 | if test "${enable_expensive_checks+set}" = set; then |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4749 | enableval=$enable_expensive_checks; |
| 4750 | else |
| 4751 | enableval="no" |
| 4752 | fi |
| 4753 | |
| 4754 | if test ${enableval} = "yes" ; then |
| 4755 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4756 | |
| 4757 | EXPENSIVE_CHECKS=yes |
| 4758 | |
| 4759 | else |
| 4760 | ENABLE_EXPENSIVE_CHECKS= |
| 4761 | |
| 4762 | EXPENSIVE_CHECKS=no |
| 4763 | |
| 4764 | fi |
| 4765 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4766 | # Check whether --enable-debug-runtime was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4767 | if test "${enable_debug_runtime+set}" = set; then |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4768 | enableval=$enable_debug_runtime; |
| 4769 | else |
| 4770 | enableval=no |
| 4771 | fi |
| 4772 | |
| 4773 | if test ${enableval} = "no" ; then |
| 4774 | DEBUG_RUNTIME= |
| 4775 | |
| 4776 | else |
| 4777 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4778 | |
| 4779 | fi |
| 4780 | |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4781 | # Check whether --enable-debug-symbols was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4782 | if test "${enable_debug_symbols+set}" = set; then |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4783 | enableval=$enable_debug_symbols; |
| 4784 | else |
| 4785 | enableval=no |
| 4786 | fi |
| 4787 | |
| 4788 | if test ${enableval} = "no" ; then |
| 4789 | DEBUG_SYMBOLS= |
| 4790 | |
| 4791 | else |
| 4792 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 4793 | |
| 4794 | fi |
| 4795 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4796 | # Check whether --enable-jit was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4797 | if test "${enable_jit+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4798 | enableval=$enable_jit; |
| 4799 | else |
| 4800 | enableval=default |
| 4801 | fi |
| 4802 | |
| 4803 | if test ${enableval} = "no" |
| 4804 | then |
| 4805 | JIT= |
| 4806 | |
| 4807 | else |
| 4808 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4809 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4810 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4811 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4812 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4813 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4814 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4815 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4816 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4817 | Alpha) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4818 | ;; |
Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 4819 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4820 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4821 | Mips) TARGET_HAS_JIT=0 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4822 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4823 | PIC16) TARGET_HAS_JIT=0 |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 4824 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4825 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4826 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4827 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4828 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4829 | SystemZ) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4830 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4831 | Blackfin) TARGET_HAS_JIT=0 |
| 4832 | ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4833 | MBlaze) TARGET_HAS_JIT=0 |
| 4834 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4835 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4836 | ;; |
| 4837 | esac |
| 4838 | fi |
| 4839 | |
| 4840 | # Check whether --enable-doxygen was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4841 | if test "${enable_doxygen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4842 | enableval=$enable_doxygen; |
| 4843 | else |
| 4844 | enableval=default |
| 4845 | fi |
| 4846 | |
| 4847 | case "$enableval" in |
| 4848 | yes) ENABLE_DOXYGEN=1 |
| 4849 | ;; |
| 4850 | no) ENABLE_DOXYGEN=0 |
| 4851 | ;; |
| 4852 | default) ENABLE_DOXYGEN=0 |
| 4853 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4854 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4855 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4856 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4857 | esac |
| 4858 | |
| 4859 | # Check whether --enable-threads was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4860 | if test "${enable_threads+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4861 | enableval=$enable_threads; |
| 4862 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4863 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4864 | fi |
| 4865 | |
| 4866 | case "$enableval" in |
| 4867 | yes) ENABLE_THREADS=1 |
| 4868 | ;; |
| 4869 | no) ENABLE_THREADS=0 |
| 4870 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4871 | default) ENABLE_THREADS=1 |
| 4872 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4873 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4874 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4875 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4876 | esac |
| 4877 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 4878 | cat >>confdefs.h <<_ACEOF |
| 4879 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4880 | _ACEOF |
| 4881 | |
| 4882 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4883 | # Check whether --enable-pic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4884 | if test "${enable_pic+set}" = set; then |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4885 | enableval=$enable_pic; |
| 4886 | else |
| 4887 | enableval=default |
| 4888 | fi |
| 4889 | |
| 4890 | case "$enableval" in |
| 4891 | yes) ENABLE_PIC=1 |
| 4892 | ;; |
| 4893 | no) ENABLE_PIC=0 |
| 4894 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 4895 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4896 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4897 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4898 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4899 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4900 | esac |
| 4901 | |
| 4902 | cat >>confdefs.h <<_ACEOF |
| 4903 | #define ENABLE_PIC $ENABLE_PIC |
| 4904 | _ACEOF |
| 4905 | |
| 4906 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 4907 | # Check whether --enable-shared was given. |
| 4908 | if test "${enable_shared+set}" = set; then |
| 4909 | enableval=$enable_shared; |
| 4910 | else |
| 4911 | enableval=default |
| 4912 | fi |
| 4913 | |
| 4914 | case "$enableval" in |
| 4915 | yes) ENABLE_SHARED=1 |
| 4916 | ;; |
| 4917 | no) ENABLE_SHARED=0 |
| 4918 | ;; |
| 4919 | default) ENABLE_SHARED=0 |
| 4920 | ;; |
| 4921 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 |
| 4922 | echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} |
| 4923 | { (exit 1); exit 1; }; } ;; |
| 4924 | esac |
| 4925 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4926 | TARGETS_TO_BUILD="" |
| 4927 | # Check whether --enable-targets was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4928 | if test "${enable_targets+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4929 | enableval=$enable_targets; |
| 4930 | else |
| 4931 | enableval=all |
| 4932 | fi |
| 4933 | |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4934 | if test "$enableval" = host-only ; then |
| 4935 | enableval=host |
| 4936 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4937 | case "$enableval" in |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4938 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4939 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4940 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4941 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4942 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4943 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4944 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4945 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4946 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 4947 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 4948 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 4949 | pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 4950 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 4951 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
| 4952 | systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
| 4953 | blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
| 4954 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
| 4955 | msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; |
| 4956 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4957 | mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4958 | host) case "$llvm_cv_target_arch" in |
| 4959 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4960 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4961 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4962 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4963 | Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4964 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 4965 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4966 | MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4967 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 4968 | PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 4969 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 4970 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Anton Korobeynikov | 6ca835d | 2010-01-05 20:45:43 +0000 | [diff] [blame] | 4971 | s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4972 | Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4973 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 4974 | echo "$as_me: error: Can not set target to build" >&2;} |
| 4975 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4976 | esac ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4977 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 4978 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 4979 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4980 | esac |
| 4981 | done |
| 4982 | ;; |
| 4983 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4984 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 4985 | |
| 4986 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4987 | # Determine whether we are building LLVM support for the native architecture. |
| 4988 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. |
| 4989 | for a_target in $TARGETS_TO_BUILD; do |
| 4990 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 4991 | LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target" |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4992 | |
| 4993 | cat >>confdefs.h <<_ACEOF |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 4994 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 4995 | _ACEOF |
| 4996 | |
| 4997 | fi |
| 4998 | done |
| 4999 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5000 | # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual |
| 5001 | # target feature def files. |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5002 | LLVM_ENUM_TARGETS="" |
| 5003 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5004 | LLVM_ENUM_ASM_PARSERS="" |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5005 | LLVM_ENUM_DISASSEMBLERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5006 | for target_to_build in $TARGETS_TO_BUILD; do |
| 5007 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
| 5008 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then |
| 5009 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 5010 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5011 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 5012 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 5013 | fi |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5014 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then |
| 5015 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; |
| 5016 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5017 | done |
| 5018 | |
| 5019 | |
| 5020 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5021 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5022 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5023 | # Check whether --enable-cbe-printf-a was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5024 | if test "${enable_cbe_printf_a+set}" = set; then |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5025 | enableval=$enable_cbe_printf_a; |
| 5026 | else |
| 5027 | enableval=default |
| 5028 | fi |
| 5029 | |
| 5030 | case "$enableval" in |
| 5031 | yes) ENABLE_CBE_PRINTF_A=1 |
| 5032 | ;; |
| 5033 | no) ENABLE_CBE_PRINTF_A=0 |
| 5034 | ;; |
| 5035 | default) ENABLE_CBE_PRINTF_A=1 |
| 5036 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5037 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 5038 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 5039 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5040 | esac |
| 5041 | |
| 5042 | cat >>confdefs.h <<_ACEOF |
| 5043 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 5044 | _ACEOF |
| 5045 | |
| 5046 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5047 | |
| 5048 | # Check whether --with-llvmgccdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5049 | if test "${with_llvmgccdir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5050 | withval=$with_llvmgccdir; |
| 5051 | else |
| 5052 | withval=default |
| 5053 | fi |
| 5054 | |
| 5055 | case "$withval" in |
| 5056 | default) WITH_LLVMGCCDIR=default ;; |
| 5057 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5058 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 5059 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 5060 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5061 | esac |
| 5062 | |
| 5063 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5064 | # Check whether --with-llvmgcc was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5065 | if test "${with_llvmgcc+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5066 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 5067 | WITH_LLVMGCCDIR="" |
| 5068 | fi |
| 5069 | |
| 5070 | |
| 5071 | |
| 5072 | # Check whether --with-llvmgxx was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5073 | if test "${with_llvmgxx+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5074 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 5075 | WITH_LLVMGCCDIR="" |
| 5076 | fi |
| 5077 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 5078 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 5079 | if test -n "$LLVMGCC"; then |
| 5080 | LLVMGCCCOMMAND="$LLVMGCC" |
| 5081 | fi |
| 5082 | |
| 5083 | if test -n "$LLVMGXX"; then |
| 5084 | LLVMGXXCOMMAND="$LLVMGXX" |
| 5085 | fi |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5086 | |
| 5087 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5088 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 5089 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 5090 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5091 | fi |
| 5092 | |
| 5093 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5094 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 5095 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 5096 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5097 | fi |
| 5098 | |
| 5099 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 5100 | # Check whether --with-clang was given. |
| 5101 | if test "${with_clang+set}" = set; then |
| 5102 | withval=$with_clang; |
| 5103 | else |
| 5104 | with_clang=default |
| 5105 | fi |
| 5106 | |
| 5107 | |
| 5108 | |
| 5109 | # Check whether --with-built-clang was given. |
| 5110 | if test "${with_built_clang+set}" = set; then |
| 5111 | withval=$with_built_clang; |
| 5112 | else |
| 5113 | with_built_clang=check |
| 5114 | fi |
| 5115 | |
| 5116 | |
| 5117 | { echo "$as_me:$LINENO: checking clang compiler" >&5 |
| 5118 | echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; } |
| 5119 | WITH_CLANGPATH="" |
| 5120 | WITH_BUILT_CLANG=0 |
| 5121 | if test "$with_clang" != "default"; then |
| 5122 | WITH_CLANGPATH="$with_clang" |
| 5123 | if ! test -x "$WITH_CLANGPATH"; then |
| 5124 | { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5 |
| 5125 | echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;} |
| 5126 | { (exit 1); exit 1; }; } |
| 5127 | fi |
| 5128 | elif test "$with_built_clang" = "yes"; then |
| 5129 | WITH_BUILT_CLANG=1 |
| 5130 | elif test "$with_built_clang" = "no"; then |
| 5131 | WITH_BUILT_CLANG=0 |
| 5132 | else |
| 5133 | if test "$with_built_clang" != "check"; then |
| 5134 | { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5 |
| 5135 | echo "$as_me: error: invalid value for --with-built-clang." >&2;} |
| 5136 | { (exit 1); exit 1; }; } |
| 5137 | fi |
| 5138 | |
| 5139 | if test -f ${srcdir}/tools/clang/README.txt; then |
| 5140 | WITH_BUILT_CLANG=1 |
| 5141 | fi |
| 5142 | fi |
| 5143 | |
| 5144 | if ! test -z "$WITH_CLANGPATH"; then |
| 5145 | { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5 |
| 5146 | echo "${ECHO_T}$WITH_CLANGPATH" >&6; } |
| 5147 | WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++` |
| 5148 | elif test "$WITH_BUILT_CLANG" = "1"; then |
| 5149 | { echo "$as_me:$LINENO: result: built" >&5 |
| 5150 | echo "${ECHO_T}built" >&6; } |
| 5151 | else |
| 5152 | { echo "$as_me:$LINENO: result: none" >&5 |
| 5153 | echo "${ECHO_T}none" >&6; } |
| 5154 | fi |
| 5155 | CLANGPATH=$WITH_CLANGPATH |
| 5156 | |
| 5157 | CLANGXXPATH=$WITH_CLANGXXPATH |
| 5158 | |
| 5159 | ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG |
| 5160 | |
| 5161 | |
| 5162 | |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5163 | # Check whether --with-optimize-option was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5164 | if test "${with_optimize_option+set}" = set; then |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5165 | withval=$with_optimize_option; |
| 5166 | else |
| 5167 | withval=default |
| 5168 | fi |
| 5169 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5170 | { echo "$as_me:$LINENO: checking optimization flags" >&5 |
| 5171 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5172 | case "$withval" in |
| 5173 | default) |
| 5174 | case "$llvm_cv_os_type" in |
Daniel Dunbar | f913878 | 2010-04-30 17:12:26 +0000 | [diff] [blame] | 5175 | FreeBSD) optimize_option=-O2 ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 5176 | MingW) optimize_option=-O2 ;; |
| 5177 | *) optimize_option=-O3 ;; |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5178 | esac ;; |
| 5179 | *) optimize_option="$withval" ;; |
| 5180 | esac |
| 5181 | OPTIMIZE_OPTION=$optimize_option |
| 5182 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5183 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 |
| 5184 | echo "${ECHO_T}$optimize_option" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5185 | |
| 5186 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5187 | # Check whether --with-extra-options was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5188 | if test "${with_extra_options+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5189 | withval=$with_extra_options; |
| 5190 | else |
| 5191 | withval=default |
| 5192 | fi |
| 5193 | |
| 5194 | case "$withval" in |
| 5195 | default) EXTRA_OPTIONS= ;; |
| 5196 | *) EXTRA_OPTIONS=$withval ;; |
| 5197 | esac |
| 5198 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5199 | |
| 5200 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5201 | # Check whether --enable-bindings was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5202 | if test "${enable_bindings+set}" = set; then |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5203 | enableval=$enable_bindings; |
| 5204 | else |
| 5205 | enableval=default |
| 5206 | fi |
| 5207 | |
| 5208 | BINDINGS_TO_BUILD="" |
| 5209 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5210 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5211 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5212 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5213 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5214 | case "$a_binding" in |
| 5215 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5216 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5217 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5218 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5219 | esac |
| 5220 | done |
| 5221 | ;; |
| 5222 | esac |
| 5223 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5224 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5225 | # Check whether --with-ocaml-libdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5226 | if test "${with_ocaml_libdir+set}" = set; then |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5227 | withval=$with_ocaml_libdir; |
| 5228 | else |
| 5229 | withval=auto |
| 5230 | fi |
| 5231 | |
| 5232 | case "$withval" in |
| 5233 | auto) with_ocaml_libdir="$withval" ;; |
| 5234 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5235 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5236 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5237 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5238 | esac |
| 5239 | |
| 5240 | |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5241 | # Check whether --with-c-include-dirs was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5242 | if test "${with_c_include_dirs+set}" = set; then |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5243 | withval=$with_c_include_dirs; |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5244 | else |
| 5245 | withval="" |
| 5246 | fi |
| 5247 | |
| 5248 | |
| 5249 | cat >>confdefs.h <<_ACEOF |
| 5250 | #define C_INCLUDE_DIRS "$withval" |
| 5251 | _ACEOF |
| 5252 | |
| 5253 | |
| 5254 | |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5255 | # Check whether --with-cxx-include-root was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5256 | if test "${with_cxx_include_root+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5257 | withval=$with_cxx_include_root; |
| 5258 | else |
| 5259 | withval="" |
| 5260 | fi |
| 5261 | |
| 5262 | |
| 5263 | cat >>confdefs.h <<_ACEOF |
| 5264 | #define CXX_INCLUDE_ROOT "$withval" |
| 5265 | _ACEOF |
| 5266 | |
| 5267 | |
| 5268 | |
| 5269 | # Check whether --with-cxx-include-arch was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5270 | if test "${with_cxx_include_arch+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5271 | withval=$with_cxx_include_arch; |
| 5272 | else |
| 5273 | withval="" |
| 5274 | fi |
| 5275 | |
| 5276 | |
| 5277 | cat >>confdefs.h <<_ACEOF |
| 5278 | #define CXX_INCLUDE_ARCH "$withval" |
| 5279 | _ACEOF |
| 5280 | |
| 5281 | |
| 5282 | |
| 5283 | # Check whether --with-cxx-include-32bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5284 | if test "${with_cxx_include_32bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5285 | withval=$with_cxx_include_32bit_dir; |
| 5286 | else |
| 5287 | withval="" |
| 5288 | fi |
| 5289 | |
| 5290 | |
| 5291 | cat >>confdefs.h <<_ACEOF |
| 5292 | #define CXX_INCLUDE_32BIT_DIR "$withval" |
| 5293 | _ACEOF |
| 5294 | |
| 5295 | |
| 5296 | |
| 5297 | # Check whether --with-cxx-include-64bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5298 | if test "${with_cxx_include_64bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5299 | withval=$with_cxx_include_64bit_dir; |
| 5300 | else |
| 5301 | withval="" |
| 5302 | fi |
| 5303 | |
| 5304 | |
| 5305 | cat >>confdefs.h <<_ACEOF |
| 5306 | #define CXX_INCLUDE_64BIT_DIR "$withval" |
| 5307 | _ACEOF |
| 5308 | |
| 5309 | |
| 5310 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5311 | # Check whether --with-binutils-include was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5312 | if test "${with_binutils_include+set}" = set; then |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5313 | withval=$with_binutils_include; |
| 5314 | else |
| 5315 | withval=default |
| 5316 | fi |
| 5317 | |
| 5318 | case "$withval" in |
| 5319 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5320 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5321 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5322 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5323 | { (exit 1); exit 1; }; } ;; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5324 | esac |
| 5325 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5326 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5327 | |
| 5328 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5329 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5330 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5331 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5332 | { (exit 1); exit 1; }; }; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5333 | fi |
| 5334 | fi |
| 5335 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5336 | # Check whether --enable-libffi was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5337 | if test "${enable_libffi+set}" = set; then |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5338 | enableval=$enable_libffi; case "$enableval" in |
| 5339 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5340 | no) llvm_cv_enable_libffi="no" ;; |
| 5341 | *) { { 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] | 5342 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5343 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5344 | esac |
| 5345 | else |
| 5346 | llvm_cv_enable_libffi=no |
| 5347 | fi |
| 5348 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5349 | |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5350 | if test "$llvm_cv_os_type" = "Win32" ; then |
| 5351 | llvmc_dynamic="yes" |
| 5352 | else |
| 5353 | llvmc_dynamic="no" |
| 5354 | fi |
| 5355 | |
| 5356 | # Check whether --enable-llvmc-dynamic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5357 | if test "${enable_llvmc_dynamic+set}" = set; then |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5358 | enableval=$enable_llvmc_dynamic; |
| 5359 | else |
| 5360 | enableval=$llvmc_dynamic |
| 5361 | fi |
| 5362 | |
| 5363 | if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then |
| 5364 | ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1 |
| 5365 | |
| 5366 | else |
| 5367 | ENABLE_LLVMC_DYNAMIC= |
| 5368 | |
| 5369 | fi |
| 5370 | |
| 5371 | # Check whether --enable-llvmc-dynamic-plugins was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5372 | if test "${enable_llvmc_dynamic_plugins+set}" = set; then |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5373 | enableval=$enable_llvmc_dynamic_plugins; |
| 5374 | else |
| 5375 | enableval=yes |
| 5376 | fi |
| 5377 | |
| 5378 | if test ${enableval} = "yes" ; then |
| 5379 | ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1 |
| 5380 | |
| 5381 | else |
| 5382 | ENABLE_LLVMC_DYNAMIC_PLUGINS= |
| 5383 | |
| 5384 | fi |
| 5385 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5386 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5387 | ac_ext=c |
| 5388 | ac_cpp='$CPP $CPPFLAGS' |
| 5389 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5390 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5391 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5392 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5393 | 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] | 5394 | # On Suns, sometimes $CPP names a directory. |
| 5395 | if test -n "$CPP" && test -d "$CPP"; then |
| 5396 | CPP= |
| 5397 | fi |
| 5398 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5399 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5401 | else |
| 5402 | # Double quotes because CPP needs to be expanded |
| 5403 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5404 | do |
| 5405 | ac_preproc_ok=false |
| 5406 | for ac_c_preproc_warn_flag in '' yes |
| 5407 | do |
| 5408 | # Use a header file that comes with gcc, so configuring glibc |
| 5409 | # with a fresh cross-compiler works. |
| 5410 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5411 | # <limits.h> exists even on freestanding compilers. |
| 5412 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5413 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5414 | cat >conftest.$ac_ext <<_ACEOF |
| 5415 | /* confdefs.h. */ |
| 5416 | _ACEOF |
| 5417 | cat confdefs.h >>conftest.$ac_ext |
| 5418 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5419 | /* end confdefs.h. */ |
| 5420 | #ifdef __STDC__ |
| 5421 | # include <limits.h> |
| 5422 | #else |
| 5423 | # include <assert.h> |
| 5424 | #endif |
| 5425 | Syntax error |
| 5426 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5427 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5428 | case "(($ac_try" in |
| 5429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5430 | *) ac_try_echo=$ac_try;; |
| 5431 | esac |
| 5432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5433 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5434 | ac_status=$? |
| 5435 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5436 | rm -f conftest.er1 |
| 5437 | cat conftest.err >&5 |
| 5438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5439 | (exit $ac_status); } >/dev/null; then |
| 5440 | if test -s conftest.err; then |
| 5441 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5442 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5443 | else |
| 5444 | ac_cpp_err= |
| 5445 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5446 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5447 | ac_cpp_err=yes |
| 5448 | fi |
| 5449 | if test -z "$ac_cpp_err"; then |
| 5450 | : |
| 5451 | else |
| 5452 | echo "$as_me: failed program was:" >&5 |
| 5453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5454 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5455 | # Broken: fails on valid input. |
| 5456 | continue |
| 5457 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5458 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5459 | rm -f conftest.err conftest.$ac_ext |
| 5460 | |
| 5461 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5462 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5463 | cat >conftest.$ac_ext <<_ACEOF |
| 5464 | /* confdefs.h. */ |
| 5465 | _ACEOF |
| 5466 | cat confdefs.h >>conftest.$ac_ext |
| 5467 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5468 | /* end confdefs.h. */ |
| 5469 | #include <ac_nonexistent.h> |
| 5470 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5471 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5472 | case "(($ac_try" in |
| 5473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5474 | *) ac_try_echo=$ac_try;; |
| 5475 | esac |
| 5476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5477 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5478 | ac_status=$? |
| 5479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5480 | rm -f conftest.er1 |
| 5481 | cat conftest.err >&5 |
| 5482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5483 | (exit $ac_status); } >/dev/null; then |
| 5484 | if test -s conftest.err; then |
| 5485 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5486 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5487 | else |
| 5488 | ac_cpp_err= |
| 5489 | fi |
| 5490 | else |
| 5491 | ac_cpp_err=yes |
| 5492 | fi |
| 5493 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5494 | # Broken: success on invalid input. |
| 5495 | continue |
| 5496 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5497 | echo "$as_me: failed program was:" >&5 |
| 5498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5499 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5500 | # Passes both tests. |
| 5501 | ac_preproc_ok=: |
| 5502 | break |
| 5503 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5504 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5505 | rm -f conftest.err conftest.$ac_ext |
| 5506 | |
| 5507 | done |
| 5508 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5509 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5510 | if $ac_preproc_ok; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5511 | break |
| 5512 | fi |
| 5513 | |
| 5514 | done |
| 5515 | ac_cv_prog_CPP=$CPP |
| 5516 | |
| 5517 | fi |
| 5518 | CPP=$ac_cv_prog_CPP |
| 5519 | else |
| 5520 | ac_cv_prog_CPP=$CPP |
| 5521 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5522 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5523 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5524 | ac_preproc_ok=false |
| 5525 | for ac_c_preproc_warn_flag in '' yes |
| 5526 | do |
| 5527 | # Use a header file that comes with gcc, so configuring glibc |
| 5528 | # with a fresh cross-compiler works. |
| 5529 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5530 | # <limits.h> exists even on freestanding compilers. |
| 5531 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5532 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5533 | cat >conftest.$ac_ext <<_ACEOF |
| 5534 | /* confdefs.h. */ |
| 5535 | _ACEOF |
| 5536 | cat confdefs.h >>conftest.$ac_ext |
| 5537 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5538 | /* end confdefs.h. */ |
| 5539 | #ifdef __STDC__ |
| 5540 | # include <limits.h> |
| 5541 | #else |
| 5542 | # include <assert.h> |
| 5543 | #endif |
| 5544 | Syntax error |
| 5545 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5546 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5547 | case "(($ac_try" in |
| 5548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5549 | *) ac_try_echo=$ac_try;; |
| 5550 | esac |
| 5551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5552 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5553 | ac_status=$? |
| 5554 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5555 | rm -f conftest.er1 |
| 5556 | cat conftest.err >&5 |
| 5557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5558 | (exit $ac_status); } >/dev/null; then |
| 5559 | if test -s conftest.err; then |
| 5560 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5561 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5562 | else |
| 5563 | ac_cpp_err= |
| 5564 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5565 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5566 | ac_cpp_err=yes |
| 5567 | fi |
| 5568 | if test -z "$ac_cpp_err"; then |
| 5569 | : |
| 5570 | else |
| 5571 | echo "$as_me: failed program was:" >&5 |
| 5572 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5573 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5574 | # Broken: fails on valid input. |
| 5575 | continue |
| 5576 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5577 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5578 | rm -f conftest.err conftest.$ac_ext |
| 5579 | |
| 5580 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5581 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5582 | cat >conftest.$ac_ext <<_ACEOF |
| 5583 | /* confdefs.h. */ |
| 5584 | _ACEOF |
| 5585 | cat confdefs.h >>conftest.$ac_ext |
| 5586 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5587 | /* end confdefs.h. */ |
| 5588 | #include <ac_nonexistent.h> |
| 5589 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5590 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5591 | case "(($ac_try" in |
| 5592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5593 | *) ac_try_echo=$ac_try;; |
| 5594 | esac |
| 5595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5596 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5597 | ac_status=$? |
| 5598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5599 | rm -f conftest.er1 |
| 5600 | cat conftest.err >&5 |
| 5601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5602 | (exit $ac_status); } >/dev/null; then |
| 5603 | if test -s conftest.err; then |
| 5604 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5605 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5606 | else |
| 5607 | ac_cpp_err= |
| 5608 | fi |
| 5609 | else |
| 5610 | ac_cpp_err=yes |
| 5611 | fi |
| 5612 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5613 | # Broken: success on invalid input. |
| 5614 | continue |
| 5615 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5616 | echo "$as_me: failed program was:" >&5 |
| 5617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5618 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5619 | # Passes both tests. |
| 5620 | ac_preproc_ok=: |
| 5621 | break |
| 5622 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5623 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5624 | rm -f conftest.err conftest.$ac_ext |
| 5625 | |
| 5626 | done |
| 5627 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5628 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5629 | if $ac_preproc_ok; then |
| 5630 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5631 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5632 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5633 | See \`config.log' for more details." >&5 |
| 5634 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5635 | See \`config.log' for more details." >&2;} |
| 5636 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5637 | fi |
| 5638 | |
| 5639 | ac_ext=c |
| 5640 | ac_cpp='$CPP $CPPFLAGS' |
| 5641 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5642 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5643 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5644 | |
| 5645 | ac_ext=c |
| 5646 | ac_cpp='$CPP $CPPFLAGS' |
| 5647 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5648 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5649 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5650 | if test -n "$ac_tool_prefix"; then |
| 5651 | for ac_prog in gcc |
| 5652 | do |
| 5653 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5654 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5655 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5656 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5657 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5659 | else |
| 5660 | if test -n "$CC"; then |
| 5661 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5662 | else |
| 5663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5664 | for as_dir in $PATH |
| 5665 | do |
| 5666 | IFS=$as_save_IFS |
| 5667 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5668 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5669 | 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] | 5670 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5671 | 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] | 5672 | break 2 |
| 5673 | fi |
| 5674 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5675 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5676 | IFS=$as_save_IFS |
| 5677 | |
| 5678 | fi |
| 5679 | fi |
| 5680 | CC=$ac_cv_prog_CC |
| 5681 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5682 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5683 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5684 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5685 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5686 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5687 | fi |
| 5688 | |
| 5689 | |
| 5690 | test -n "$CC" && break |
| 5691 | done |
| 5692 | fi |
| 5693 | if test -z "$CC"; then |
| 5694 | ac_ct_CC=$CC |
| 5695 | for ac_prog in gcc |
| 5696 | do |
| 5697 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5698 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5699 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5700 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5701 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5703 | else |
| 5704 | if test -n "$ac_ct_CC"; then |
| 5705 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5706 | else |
| 5707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5708 | for as_dir in $PATH |
| 5709 | do |
| 5710 | IFS=$as_save_IFS |
| 5711 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5712 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5713 | 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] | 5714 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5715 | 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] | 5716 | break 2 |
| 5717 | fi |
| 5718 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5719 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5720 | IFS=$as_save_IFS |
| 5721 | |
| 5722 | fi |
| 5723 | fi |
| 5724 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5725 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5726 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5727 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5728 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5729 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5730 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5731 | fi |
| 5732 | |
| 5733 | |
| 5734 | test -n "$ac_ct_CC" && break |
| 5735 | done |
| 5736 | |
| 5737 | if test "x$ac_ct_CC" = x; then |
| 5738 | CC="" |
| 5739 | else |
| 5740 | case $cross_compiling:$ac_tool_warned in |
| 5741 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5742 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5743 | whose name does not start with the host triplet. If you think this |
| 5744 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5745 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5746 | whose name does not start with the host triplet. If you think this |
| 5747 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5748 | ac_tool_warned=yes ;; |
| 5749 | esac |
| 5750 | CC=$ac_ct_CC |
| 5751 | fi |
| 5752 | fi |
| 5753 | |
| 5754 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5755 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5756 | See \`config.log' for more details." >&5 |
| 5757 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5758 | See \`config.log' for more details." >&2;} |
| 5759 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5760 | |
| 5761 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5762 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5763 | ac_compiler=`set X $ac_compile; echo $2` |
| 5764 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5765 | case "(($ac_try" in |
| 5766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5767 | *) ac_try_echo=$ac_try;; |
| 5768 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5770 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5771 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5773 | (exit $ac_status); } |
| 5774 | { (ac_try="$ac_compiler -v >&5" |
| 5775 | case "(($ac_try" in |
| 5776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5777 | *) ac_try_echo=$ac_try;; |
| 5778 | esac |
| 5779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5780 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5781 | ac_status=$? |
| 5782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5783 | (exit $ac_status); } |
| 5784 | { (ac_try="$ac_compiler -V >&5" |
| 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_compiler -V >&5") 2>&5 |
| 5791 | ac_status=$? |
| 5792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5793 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5794 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5795 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5796 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5797 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5799 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5800 | cat >conftest.$ac_ext <<_ACEOF |
| 5801 | /* confdefs.h. */ |
| 5802 | _ACEOF |
| 5803 | cat confdefs.h >>conftest.$ac_ext |
| 5804 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5805 | /* end confdefs.h. */ |
| 5806 | |
| 5807 | int |
| 5808 | main () |
| 5809 | { |
| 5810 | #ifndef __GNUC__ |
| 5811 | choke me |
| 5812 | #endif |
| 5813 | |
| 5814 | ; |
| 5815 | return 0; |
| 5816 | } |
| 5817 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5818 | rm -f conftest.$ac_objext |
| 5819 | if { (ac_try="$ac_compile" |
| 5820 | case "(($ac_try" in |
| 5821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5822 | *) ac_try_echo=$ac_try;; |
| 5823 | esac |
| 5824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5825 | (eval "$ac_compile") 2>conftest.er1 |
| 5826 | ac_status=$? |
| 5827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5828 | rm -f conftest.er1 |
| 5829 | cat conftest.err >&5 |
| 5830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5831 | (exit $ac_status); } && |
| 5832 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5833 | { (case "(($ac_try" in |
| 5834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5835 | *) ac_try_echo=$ac_try;; |
| 5836 | esac |
| 5837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5838 | (eval "$ac_try") 2>&5 |
| 5839 | ac_status=$? |
| 5840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5841 | (exit $ac_status); }; } && |
| 5842 | { ac_try='test -s conftest.$ac_objext' |
| 5843 | { (case "(($ac_try" in |
| 5844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5845 | *) ac_try_echo=$ac_try;; |
| 5846 | esac |
| 5847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5848 | (eval "$ac_try") 2>&5 |
| 5849 | ac_status=$? |
| 5850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5851 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5852 | ac_compiler_gnu=yes |
| 5853 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5854 | echo "$as_me: failed program was:" >&5 |
| 5855 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5856 | |
| 5857 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5858 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5859 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5861 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5862 | |
| 5863 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5864 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5865 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5866 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5867 | ac_test_CFLAGS=${CFLAGS+set} |
| 5868 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5869 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5870 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5871 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5873 | else |
| 5874 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5875 | ac_c_werror_flag=yes |
| 5876 | ac_cv_prog_cc_g=no |
| 5877 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5878 | cat >conftest.$ac_ext <<_ACEOF |
| 5879 | /* confdefs.h. */ |
| 5880 | _ACEOF |
| 5881 | cat confdefs.h >>conftest.$ac_ext |
| 5882 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5883 | /* end confdefs.h. */ |
| 5884 | |
| 5885 | int |
| 5886 | main () |
| 5887 | { |
| 5888 | |
| 5889 | ; |
| 5890 | return 0; |
| 5891 | } |
| 5892 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5893 | rm -f conftest.$ac_objext |
| 5894 | if { (ac_try="$ac_compile" |
| 5895 | case "(($ac_try" in |
| 5896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5897 | *) ac_try_echo=$ac_try;; |
| 5898 | esac |
| 5899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5900 | (eval "$ac_compile") 2>conftest.er1 |
| 5901 | ac_status=$? |
| 5902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5903 | rm -f conftest.er1 |
| 5904 | cat conftest.err >&5 |
| 5905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5906 | (exit $ac_status); } && |
| 5907 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5908 | { (case "(($ac_try" in |
| 5909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5910 | *) ac_try_echo=$ac_try;; |
| 5911 | esac |
| 5912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5913 | (eval "$ac_try") 2>&5 |
| 5914 | ac_status=$? |
| 5915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5916 | (exit $ac_status); }; } && |
| 5917 | { ac_try='test -s conftest.$ac_objext' |
| 5918 | { (case "(($ac_try" in |
| 5919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5920 | *) ac_try_echo=$ac_try;; |
| 5921 | esac |
| 5922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5923 | (eval "$ac_try") 2>&5 |
| 5924 | ac_status=$? |
| 5925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5926 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5927 | ac_cv_prog_cc_g=yes |
| 5928 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5929 | echo "$as_me: failed program was:" >&5 |
| 5930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5931 | |
| 5932 | CFLAGS="" |
| 5933 | cat >conftest.$ac_ext <<_ACEOF |
| 5934 | /* confdefs.h. */ |
| 5935 | _ACEOF |
| 5936 | cat confdefs.h >>conftest.$ac_ext |
| 5937 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5938 | /* end confdefs.h. */ |
| 5939 | |
| 5940 | int |
| 5941 | main () |
| 5942 | { |
| 5943 | |
| 5944 | ; |
| 5945 | return 0; |
| 5946 | } |
| 5947 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5948 | rm -f conftest.$ac_objext |
| 5949 | if { (ac_try="$ac_compile" |
| 5950 | case "(($ac_try" in |
| 5951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5952 | *) ac_try_echo=$ac_try;; |
| 5953 | esac |
| 5954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5955 | (eval "$ac_compile") 2>conftest.er1 |
| 5956 | ac_status=$? |
| 5957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5958 | rm -f conftest.er1 |
| 5959 | cat conftest.err >&5 |
| 5960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5961 | (exit $ac_status); } && |
| 5962 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5963 | { (case "(($ac_try" in |
| 5964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5965 | *) ac_try_echo=$ac_try;; |
| 5966 | esac |
| 5967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5968 | (eval "$ac_try") 2>&5 |
| 5969 | ac_status=$? |
| 5970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5971 | (exit $ac_status); }; } && |
| 5972 | { ac_try='test -s conftest.$ac_objext' |
| 5973 | { (case "(($ac_try" in |
| 5974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5975 | *) ac_try_echo=$ac_try;; |
| 5976 | esac |
| 5977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5978 | (eval "$ac_try") 2>&5 |
| 5979 | ac_status=$? |
| 5980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5981 | (exit $ac_status); }; }; then |
| 5982 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5983 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5984 | echo "$as_me: failed program was:" >&5 |
| 5985 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5986 | |
| 5987 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5988 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5989 | cat >conftest.$ac_ext <<_ACEOF |
| 5990 | /* confdefs.h. */ |
| 5991 | _ACEOF |
| 5992 | cat confdefs.h >>conftest.$ac_ext |
| 5993 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5994 | /* end confdefs.h. */ |
| 5995 | |
| 5996 | int |
| 5997 | main () |
| 5998 | { |
| 5999 | |
| 6000 | ; |
| 6001 | return 0; |
| 6002 | } |
| 6003 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6004 | rm -f conftest.$ac_objext |
| 6005 | if { (ac_try="$ac_compile" |
| 6006 | case "(($ac_try" in |
| 6007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6008 | *) ac_try_echo=$ac_try;; |
| 6009 | esac |
| 6010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6011 | (eval "$ac_compile") 2>conftest.er1 |
| 6012 | ac_status=$? |
| 6013 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6014 | rm -f conftest.er1 |
| 6015 | cat conftest.err >&5 |
| 6016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6017 | (exit $ac_status); } && |
| 6018 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6019 | { (case "(($ac_try" in |
| 6020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6021 | *) ac_try_echo=$ac_try;; |
| 6022 | esac |
| 6023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6024 | (eval "$ac_try") 2>&5 |
| 6025 | ac_status=$? |
| 6026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6027 | (exit $ac_status); }; } && |
| 6028 | { ac_try='test -s conftest.$ac_objext' |
| 6029 | { (case "(($ac_try" in |
| 6030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6031 | *) ac_try_echo=$ac_try;; |
| 6032 | esac |
| 6033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6034 | (eval "$ac_try") 2>&5 |
| 6035 | ac_status=$? |
| 6036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6037 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6038 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6039 | else |
| 6040 | echo "$as_me: failed program was:" >&5 |
| 6041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6042 | |
| 6043 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6044 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6045 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6047 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6048 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6050 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6051 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6053 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 6054 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6055 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 6056 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6057 | if test "$ac_test_CFLAGS" = set; then |
| 6058 | CFLAGS=$ac_save_CFLAGS |
| 6059 | elif test $ac_cv_prog_cc_g = yes; then |
| 6060 | if test "$GCC" = yes; then |
| 6061 | CFLAGS="-g -O2" |
| 6062 | else |
| 6063 | CFLAGS="-g" |
| 6064 | fi |
| 6065 | else |
| 6066 | if test "$GCC" = yes; then |
| 6067 | CFLAGS="-O2" |
| 6068 | else |
| 6069 | CFLAGS= |
| 6070 | fi |
| 6071 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6072 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 6073 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 6074 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 6075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6076 | else |
| 6077 | ac_cv_prog_cc_c89=no |
| 6078 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6079 | cat >conftest.$ac_ext <<_ACEOF |
| 6080 | /* confdefs.h. */ |
| 6081 | _ACEOF |
| 6082 | cat confdefs.h >>conftest.$ac_ext |
| 6083 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6084 | /* end confdefs.h. */ |
| 6085 | #include <stdarg.h> |
| 6086 | #include <stdio.h> |
| 6087 | #include <sys/types.h> |
| 6088 | #include <sys/stat.h> |
| 6089 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 6090 | struct buf { int x; }; |
| 6091 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 6092 | static char *e (p, i) |
| 6093 | char **p; |
| 6094 | int i; |
| 6095 | { |
| 6096 | return p[i]; |
| 6097 | } |
| 6098 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 6099 | { |
| 6100 | char *s; |
| 6101 | va_list v; |
| 6102 | va_start (v,p); |
| 6103 | s = g (p, va_arg (v,int)); |
| 6104 | va_end (v); |
| 6105 | return s; |
| 6106 | } |
| 6107 | |
| 6108 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6109 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6110 | These don't provoke an error unfortunately, instead are silently treated |
| 6111 | as 'x'. The following induces an error, until -std is added to get |
| 6112 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6113 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6114 | that's true only with -std. */ |
| 6115 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6116 | |
| 6117 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6118 | inside strings and character constants. */ |
| 6119 | #define FOO(x) 'x' |
| 6120 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6121 | |
| 6122 | int test (int i, double x); |
| 6123 | struct s1 {int (*f) (int a);}; |
| 6124 | struct s2 {int (*f) (double a);}; |
| 6125 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6126 | int argc; |
| 6127 | char **argv; |
| 6128 | int |
| 6129 | main () |
| 6130 | { |
| 6131 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6132 | ; |
| 6133 | return 0; |
| 6134 | } |
| 6135 | _ACEOF |
| 6136 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6137 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6138 | do |
| 6139 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6140 | rm -f conftest.$ac_objext |
| 6141 | if { (ac_try="$ac_compile" |
| 6142 | case "(($ac_try" in |
| 6143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6144 | *) ac_try_echo=$ac_try;; |
| 6145 | esac |
| 6146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6147 | (eval "$ac_compile") 2>conftest.er1 |
| 6148 | ac_status=$? |
| 6149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6150 | rm -f conftest.er1 |
| 6151 | cat conftest.err >&5 |
| 6152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6153 | (exit $ac_status); } && |
| 6154 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6155 | { (case "(($ac_try" in |
| 6156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6157 | *) ac_try_echo=$ac_try;; |
| 6158 | esac |
| 6159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6160 | (eval "$ac_try") 2>&5 |
| 6161 | ac_status=$? |
| 6162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6163 | (exit $ac_status); }; } && |
| 6164 | { ac_try='test -s conftest.$ac_objext' |
| 6165 | { (case "(($ac_try" in |
| 6166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6167 | *) ac_try_echo=$ac_try;; |
| 6168 | esac |
| 6169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6170 | (eval "$ac_try") 2>&5 |
| 6171 | ac_status=$? |
| 6172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6173 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6174 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6175 | else |
| 6176 | echo "$as_me: failed program was:" >&5 |
| 6177 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6178 | |
| 6179 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6180 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6181 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6182 | rm -f core conftest.err conftest.$ac_objext |
| 6183 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6184 | done |
| 6185 | rm -f conftest.$ac_ext |
| 6186 | CC=$ac_save_CC |
| 6187 | |
| 6188 | fi |
| 6189 | # AC_CACHE_VAL |
| 6190 | case "x$ac_cv_prog_cc_c89" in |
| 6191 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6192 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 6193 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6194 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6195 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 6196 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6197 | *) |
| 6198 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6199 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 6200 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6201 | esac |
| 6202 | |
| 6203 | |
| 6204 | ac_ext=c |
| 6205 | ac_cpp='$CPP $CPPFLAGS' |
| 6206 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6207 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6208 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6209 | |
| 6210 | ac_ext=cpp |
| 6211 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6212 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6213 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6214 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6215 | if test -z "$CXX"; then |
| 6216 | if test -n "$CCC"; then |
| 6217 | CXX=$CCC |
| 6218 | else |
| 6219 | if test -n "$ac_tool_prefix"; then |
| 6220 | for ac_prog in g++ |
| 6221 | do |
| 6222 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6223 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6224 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6225 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6226 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 6227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6228 | else |
| 6229 | if test -n "$CXX"; then |
| 6230 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6231 | else |
| 6232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6233 | for as_dir in $PATH |
| 6234 | do |
| 6235 | IFS=$as_save_IFS |
| 6236 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6237 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6238 | 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] | 6239 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6240 | 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] | 6241 | break 2 |
| 6242 | fi |
| 6243 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6244 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6245 | IFS=$as_save_IFS |
| 6246 | |
| 6247 | fi |
| 6248 | fi |
| 6249 | CXX=$ac_cv_prog_CXX |
| 6250 | if test -n "$CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6251 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 6252 | echo "${ECHO_T}$CXX" >&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 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6255 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6256 | fi |
| 6257 | |
| 6258 | |
| 6259 | test -n "$CXX" && break |
| 6260 | done |
| 6261 | fi |
| 6262 | if test -z "$CXX"; then |
| 6263 | ac_ct_CXX=$CXX |
| 6264 | for ac_prog in g++ |
| 6265 | do |
| 6266 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6267 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6268 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6269 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6270 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 6271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6272 | else |
| 6273 | if test -n "$ac_ct_CXX"; then |
| 6274 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6275 | else |
| 6276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6277 | for as_dir in $PATH |
| 6278 | do |
| 6279 | IFS=$as_save_IFS |
| 6280 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6281 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6282 | 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] | 6283 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6284 | 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] | 6285 | break 2 |
| 6286 | fi |
| 6287 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6288 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6289 | IFS=$as_save_IFS |
| 6290 | |
| 6291 | fi |
| 6292 | fi |
| 6293 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6294 | if test -n "$ac_ct_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6295 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 6296 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6297 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6298 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6299 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6300 | fi |
| 6301 | |
| 6302 | |
| 6303 | test -n "$ac_ct_CXX" && break |
| 6304 | done |
| 6305 | |
| 6306 | if test "x$ac_ct_CXX" = x; then |
| 6307 | CXX="g++" |
| 6308 | else |
| 6309 | case $cross_compiling:$ac_tool_warned in |
| 6310 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6311 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6312 | whose name does not start with the host triplet. If you think this |
| 6313 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6314 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6315 | whose name does not start with the host triplet. If you think this |
| 6316 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6317 | ac_tool_warned=yes ;; |
| 6318 | esac |
| 6319 | CXX=$ac_ct_CXX |
| 6320 | fi |
| 6321 | fi |
| 6322 | |
| 6323 | fi |
| 6324 | fi |
| 6325 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6326 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 6327 | ac_compiler=`set X $ac_compile; echo $2` |
| 6328 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6329 | case "(($ac_try" in |
| 6330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6331 | *) ac_try_echo=$ac_try;; |
| 6332 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6334 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6335 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6337 | (exit $ac_status); } |
| 6338 | { (ac_try="$ac_compiler -v >&5" |
| 6339 | case "(($ac_try" in |
| 6340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6341 | *) ac_try_echo=$ac_try;; |
| 6342 | esac |
| 6343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6344 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6345 | ac_status=$? |
| 6346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6347 | (exit $ac_status); } |
| 6348 | { (ac_try="$ac_compiler -V >&5" |
| 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_compiler -V >&5") 2>&5 |
| 6355 | ac_status=$? |
| 6356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6357 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6358 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6359 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 6360 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 6361 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 6362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6363 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6364 | cat >conftest.$ac_ext <<_ACEOF |
| 6365 | /* confdefs.h. */ |
| 6366 | _ACEOF |
| 6367 | cat confdefs.h >>conftest.$ac_ext |
| 6368 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6369 | /* end confdefs.h. */ |
| 6370 | |
| 6371 | int |
| 6372 | main () |
| 6373 | { |
| 6374 | #ifndef __GNUC__ |
| 6375 | choke me |
| 6376 | #endif |
| 6377 | |
| 6378 | ; |
| 6379 | return 0; |
| 6380 | } |
| 6381 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6382 | rm -f conftest.$ac_objext |
| 6383 | if { (ac_try="$ac_compile" |
| 6384 | case "(($ac_try" in |
| 6385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6386 | *) ac_try_echo=$ac_try;; |
| 6387 | esac |
| 6388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6389 | (eval "$ac_compile") 2>conftest.er1 |
| 6390 | ac_status=$? |
| 6391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6392 | rm -f conftest.er1 |
| 6393 | cat conftest.err >&5 |
| 6394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6395 | (exit $ac_status); } && |
| 6396 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6397 | { (case "(($ac_try" in |
| 6398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6399 | *) ac_try_echo=$ac_try;; |
| 6400 | esac |
| 6401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6402 | (eval "$ac_try") 2>&5 |
| 6403 | ac_status=$? |
| 6404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6405 | (exit $ac_status); }; } && |
| 6406 | { ac_try='test -s conftest.$ac_objext' |
| 6407 | { (case "(($ac_try" in |
| 6408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6409 | *) ac_try_echo=$ac_try;; |
| 6410 | esac |
| 6411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6412 | (eval "$ac_try") 2>&5 |
| 6413 | ac_status=$? |
| 6414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6415 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6416 | ac_compiler_gnu=yes |
| 6417 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6418 | echo "$as_me: failed program was:" >&5 |
| 6419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6420 | |
| 6421 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6422 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6423 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6425 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6426 | |
| 6427 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6428 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6429 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 6430 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6431 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6432 | ac_save_CXXFLAGS=$CXXFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6433 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 6434 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 6435 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 6436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6437 | else |
| 6438 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6439 | ac_cxx_werror_flag=yes |
| 6440 | ac_cv_prog_cxx_g=no |
| 6441 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6442 | cat >conftest.$ac_ext <<_ACEOF |
| 6443 | /* confdefs.h. */ |
| 6444 | _ACEOF |
| 6445 | cat confdefs.h >>conftest.$ac_ext |
| 6446 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6447 | /* end confdefs.h. */ |
| 6448 | |
| 6449 | int |
| 6450 | main () |
| 6451 | { |
| 6452 | |
| 6453 | ; |
| 6454 | return 0; |
| 6455 | } |
| 6456 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6457 | rm -f conftest.$ac_objext |
| 6458 | if { (ac_try="$ac_compile" |
| 6459 | case "(($ac_try" in |
| 6460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6461 | *) ac_try_echo=$ac_try;; |
| 6462 | esac |
| 6463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6464 | (eval "$ac_compile") 2>conftest.er1 |
| 6465 | ac_status=$? |
| 6466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6467 | rm -f conftest.er1 |
| 6468 | cat conftest.err >&5 |
| 6469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6470 | (exit $ac_status); } && |
| 6471 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6472 | { (case "(($ac_try" in |
| 6473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6474 | *) ac_try_echo=$ac_try;; |
| 6475 | esac |
| 6476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6477 | (eval "$ac_try") 2>&5 |
| 6478 | ac_status=$? |
| 6479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6480 | (exit $ac_status); }; } && |
| 6481 | { ac_try='test -s conftest.$ac_objext' |
| 6482 | { (case "(($ac_try" in |
| 6483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6484 | *) ac_try_echo=$ac_try;; |
| 6485 | esac |
| 6486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6487 | (eval "$ac_try") 2>&5 |
| 6488 | ac_status=$? |
| 6489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6490 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6491 | ac_cv_prog_cxx_g=yes |
| 6492 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6493 | echo "$as_me: failed program was:" >&5 |
| 6494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6495 | |
| 6496 | CXXFLAGS="" |
| 6497 | cat >conftest.$ac_ext <<_ACEOF |
| 6498 | /* confdefs.h. */ |
| 6499 | _ACEOF |
| 6500 | cat confdefs.h >>conftest.$ac_ext |
| 6501 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6502 | /* end confdefs.h. */ |
| 6503 | |
| 6504 | int |
| 6505 | main () |
| 6506 | { |
| 6507 | |
| 6508 | ; |
| 6509 | return 0; |
| 6510 | } |
| 6511 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6512 | rm -f conftest.$ac_objext |
| 6513 | if { (ac_try="$ac_compile" |
| 6514 | case "(($ac_try" in |
| 6515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6516 | *) ac_try_echo=$ac_try;; |
| 6517 | esac |
| 6518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6519 | (eval "$ac_compile") 2>conftest.er1 |
| 6520 | ac_status=$? |
| 6521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6522 | rm -f conftest.er1 |
| 6523 | cat conftest.err >&5 |
| 6524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6525 | (exit $ac_status); } && |
| 6526 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6527 | { (case "(($ac_try" in |
| 6528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6529 | *) ac_try_echo=$ac_try;; |
| 6530 | esac |
| 6531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6532 | (eval "$ac_try") 2>&5 |
| 6533 | ac_status=$? |
| 6534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6535 | (exit $ac_status); }; } && |
| 6536 | { ac_try='test -s conftest.$ac_objext' |
| 6537 | { (case "(($ac_try" in |
| 6538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6539 | *) ac_try_echo=$ac_try;; |
| 6540 | esac |
| 6541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6542 | (eval "$ac_try") 2>&5 |
| 6543 | ac_status=$? |
| 6544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6545 | (exit $ac_status); }; }; then |
| 6546 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6547 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6548 | echo "$as_me: failed program was:" >&5 |
| 6549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6550 | |
| 6551 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6552 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6553 | cat >conftest.$ac_ext <<_ACEOF |
| 6554 | /* confdefs.h. */ |
| 6555 | _ACEOF |
| 6556 | cat confdefs.h >>conftest.$ac_ext |
| 6557 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6558 | /* end confdefs.h. */ |
| 6559 | |
| 6560 | int |
| 6561 | main () |
| 6562 | { |
| 6563 | |
| 6564 | ; |
| 6565 | return 0; |
| 6566 | } |
| 6567 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6568 | rm -f conftest.$ac_objext |
| 6569 | if { (ac_try="$ac_compile" |
| 6570 | case "(($ac_try" in |
| 6571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6572 | *) ac_try_echo=$ac_try;; |
| 6573 | esac |
| 6574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6575 | (eval "$ac_compile") 2>conftest.er1 |
| 6576 | ac_status=$? |
| 6577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6578 | rm -f conftest.er1 |
| 6579 | cat conftest.err >&5 |
| 6580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6581 | (exit $ac_status); } && |
| 6582 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6583 | { (case "(($ac_try" in |
| 6584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6585 | *) ac_try_echo=$ac_try;; |
| 6586 | esac |
| 6587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6588 | (eval "$ac_try") 2>&5 |
| 6589 | ac_status=$? |
| 6590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6591 | (exit $ac_status); }; } && |
| 6592 | { ac_try='test -s conftest.$ac_objext' |
| 6593 | { (case "(($ac_try" in |
| 6594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6595 | *) ac_try_echo=$ac_try;; |
| 6596 | esac |
| 6597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6598 | (eval "$ac_try") 2>&5 |
| 6599 | ac_status=$? |
| 6600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6601 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6602 | ac_cv_prog_cxx_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6603 | else |
| 6604 | echo "$as_me: failed program was:" >&5 |
| 6605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6606 | |
| 6607 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6608 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6609 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6611 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6612 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6614 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6615 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6617 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6618 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6619 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6620 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6621 | if test "$ac_test_CXXFLAGS" = set; then |
| 6622 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6623 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6624 | if test "$GXX" = yes; then |
| 6625 | CXXFLAGS="-g -O2" |
| 6626 | else |
| 6627 | CXXFLAGS="-g" |
| 6628 | fi |
| 6629 | else |
| 6630 | if test "$GXX" = yes; then |
| 6631 | CXXFLAGS="-O2" |
| 6632 | else |
| 6633 | CXXFLAGS= |
| 6634 | fi |
| 6635 | fi |
| 6636 | ac_ext=c |
| 6637 | ac_cpp='$CPP $CPPFLAGS' |
| 6638 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6639 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6640 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6641 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6642 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6643 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6644 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6645 | if test "${lt_cv_path_NM+set}" = set; then |
| 6646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6647 | else |
| 6648 | if test -n "$NM"; then |
| 6649 | # Let the user override the test. |
| 6650 | lt_cv_path_NM="$NM" |
| 6651 | else |
| 6652 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6653 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6654 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6655 | fi |
| 6656 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6657 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6658 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6659 | IFS="$lt_save_ifs" |
| 6660 | test -z "$ac_dir" && ac_dir=. |
| 6661 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6662 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6663 | # Check to see if the nm accepts a BSD-compat flag. |
| 6664 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6665 | # nm: unknown option "B" ignored |
| 6666 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6667 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6668 | */dev/null* | *'Invalid file or object type'*) |
| 6669 | lt_cv_path_NM="$tmp_nm -B" |
| 6670 | break |
| 6671 | ;; |
| 6672 | *) |
| 6673 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6674 | */dev/null*) |
| 6675 | lt_cv_path_NM="$tmp_nm -p" |
| 6676 | break |
| 6677 | ;; |
| 6678 | *) |
| 6679 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6680 | continue # so that we can try to find one that supports BSD flags |
| 6681 | ;; |
| 6682 | esac |
| 6683 | ;; |
| 6684 | esac |
| 6685 | fi |
| 6686 | done |
| 6687 | IFS="$lt_save_ifs" |
| 6688 | done |
| 6689 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6690 | fi |
| 6691 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6692 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6693 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6694 | NM="$lt_cv_path_NM" |
| 6695 | |
| 6696 | |
| 6697 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6698 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6699 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6700 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6702 | else |
| 6703 | llvm_cv_gnu_make_command='' |
| 6704 | for a in "$MAKE" make gmake gnumake ; do |
| 6705 | if test -z "$a" ; then continue ; fi ; |
| 6706 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6707 | then |
| 6708 | llvm_cv_gnu_make_command=$a ; |
| 6709 | break; |
| 6710 | fi |
| 6711 | done |
| 6712 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6713 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6714 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6715 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6716 | ifGNUmake='' ; |
| 6717 | else |
| 6718 | ifGNUmake='#' ; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6719 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6720 | echo "${ECHO_T}\"Not found\"" >&6; }; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6721 | fi |
| 6722 | |
| 6723 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6724 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6725 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6726 | LN_S=$as_ln_s |
| 6727 | if test "$LN_S" = "ln -s"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6728 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6729 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6730 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6731 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6732 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6733 | fi |
| 6734 | |
| 6735 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6736 | set dummy cmp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6737 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6738 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6739 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6741 | else |
| 6742 | case $CMP in |
| 6743 | [\\/]* | ?:[\\/]*) |
| 6744 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6745 | ;; |
| 6746 | *) |
| 6747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6748 | for as_dir in $PATH |
| 6749 | do |
| 6750 | IFS=$as_save_IFS |
| 6751 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6752 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6753 | 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] | 6754 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6755 | 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] | 6756 | break 2 |
| 6757 | fi |
| 6758 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6759 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6760 | IFS=$as_save_IFS |
| 6761 | |
| 6762 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6763 | ;; |
| 6764 | esac |
| 6765 | fi |
| 6766 | CMP=$ac_cv_path_CMP |
| 6767 | if test -n "$CMP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6768 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6769 | echo "${ECHO_T}$CMP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6770 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6771 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6772 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6773 | fi |
| 6774 | |
| 6775 | |
| 6776 | # Extract the first word of "cp", so it can be a program name with args. |
| 6777 | set dummy cp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6778 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6780 | if test "${ac_cv_path_CP+set}" = set; then |
| 6781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6782 | else |
| 6783 | case $CP in |
| 6784 | [\\/]* | ?:[\\/]*) |
| 6785 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6786 | ;; |
| 6787 | *) |
| 6788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6789 | for as_dir in $PATH |
| 6790 | do |
| 6791 | IFS=$as_save_IFS |
| 6792 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6793 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6794 | 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] | 6795 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6796 | 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] | 6797 | break 2 |
| 6798 | fi |
| 6799 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6800 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6801 | IFS=$as_save_IFS |
| 6802 | |
| 6803 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6804 | ;; |
| 6805 | esac |
| 6806 | fi |
| 6807 | CP=$ac_cv_path_CP |
| 6808 | if test -n "$CP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6809 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6810 | echo "${ECHO_T}$CP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6811 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6812 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6813 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6814 | fi |
| 6815 | |
| 6816 | |
| 6817 | # Extract the first word of "date", so it can be a program name with args. |
| 6818 | set dummy date; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6819 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6820 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6821 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6823 | else |
| 6824 | case $DATE in |
| 6825 | [\\/]* | ?:[\\/]*) |
| 6826 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6827 | ;; |
| 6828 | *) |
| 6829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6830 | for as_dir in $PATH |
| 6831 | do |
| 6832 | IFS=$as_save_IFS |
| 6833 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6834 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6835 | 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] | 6836 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6837 | 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] | 6838 | break 2 |
| 6839 | fi |
| 6840 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6841 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6842 | IFS=$as_save_IFS |
| 6843 | |
| 6844 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6845 | ;; |
| 6846 | esac |
| 6847 | fi |
| 6848 | DATE=$ac_cv_path_DATE |
| 6849 | if test -n "$DATE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6850 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6851 | echo "${ECHO_T}$DATE" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6852 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6853 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6854 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6855 | fi |
| 6856 | |
| 6857 | |
| 6858 | # Extract the first word of "find", so it can be a program name with args. |
| 6859 | set dummy find; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6860 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6861 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6862 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6864 | else |
| 6865 | case $FIND in |
| 6866 | [\\/]* | ?:[\\/]*) |
| 6867 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6868 | ;; |
| 6869 | *) |
| 6870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6871 | for as_dir in $PATH |
| 6872 | do |
| 6873 | IFS=$as_save_IFS |
| 6874 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6875 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6876 | 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] | 6877 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6878 | 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] | 6879 | break 2 |
| 6880 | fi |
| 6881 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6882 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6883 | IFS=$as_save_IFS |
| 6884 | |
| 6885 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6886 | ;; |
| 6887 | esac |
| 6888 | fi |
| 6889 | FIND=$ac_cv_path_FIND |
| 6890 | if test -n "$FIND"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6891 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6892 | echo "${ECHO_T}$FIND" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6893 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6894 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6895 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6896 | fi |
| 6897 | |
| 6898 | |
| 6899 | # Extract the first word of "grep", so it can be a program name with args. |
| 6900 | set dummy grep; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6901 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6902 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6903 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6905 | else |
| 6906 | case $GREP in |
| 6907 | [\\/]* | ?:[\\/]*) |
| 6908 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6909 | ;; |
| 6910 | *) |
| 6911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6912 | for as_dir in $PATH |
| 6913 | do |
| 6914 | IFS=$as_save_IFS |
| 6915 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6916 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6917 | 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] | 6918 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6919 | 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] | 6920 | break 2 |
| 6921 | fi |
| 6922 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6923 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6924 | IFS=$as_save_IFS |
| 6925 | |
| 6926 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6927 | ;; |
| 6928 | esac |
| 6929 | fi |
| 6930 | GREP=$ac_cv_path_GREP |
| 6931 | if test -n "$GREP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6932 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6933 | echo "${ECHO_T}$GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6934 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6935 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6936 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6937 | fi |
| 6938 | |
| 6939 | |
| 6940 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6941 | set dummy mkdir; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6942 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6944 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6946 | else |
| 6947 | case $MKDIR in |
| 6948 | [\\/]* | ?:[\\/]*) |
| 6949 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6950 | ;; |
| 6951 | *) |
| 6952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6953 | for as_dir in $PATH |
| 6954 | do |
| 6955 | IFS=$as_save_IFS |
| 6956 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6957 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6958 | 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] | 6959 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6960 | 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] | 6961 | break 2 |
| 6962 | fi |
| 6963 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6964 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6965 | IFS=$as_save_IFS |
| 6966 | |
| 6967 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6968 | ;; |
| 6969 | esac |
| 6970 | fi |
| 6971 | MKDIR=$ac_cv_path_MKDIR |
| 6972 | if test -n "$MKDIR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6973 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6974 | echo "${ECHO_T}$MKDIR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6975 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6976 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6977 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6978 | fi |
| 6979 | |
| 6980 | |
| 6981 | # Extract the first word of "mv", so it can be a program name with args. |
| 6982 | set dummy mv; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6983 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6985 | if test "${ac_cv_path_MV+set}" = set; then |
| 6986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6987 | else |
| 6988 | case $MV in |
| 6989 | [\\/]* | ?:[\\/]*) |
| 6990 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6991 | ;; |
| 6992 | *) |
| 6993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6994 | for as_dir in $PATH |
| 6995 | do |
| 6996 | IFS=$as_save_IFS |
| 6997 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6998 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6999 | 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] | 7000 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7001 | 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] | 7002 | break 2 |
| 7003 | fi |
| 7004 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7005 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7006 | IFS=$as_save_IFS |
| 7007 | |
| 7008 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 7009 | ;; |
| 7010 | esac |
| 7011 | fi |
| 7012 | MV=$ac_cv_path_MV |
| 7013 | if test -n "$MV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7014 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 7015 | echo "${ECHO_T}$MV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7016 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7017 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7018 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7019 | fi |
| 7020 | |
| 7021 | |
| 7022 | if test -n "$ac_tool_prefix"; then |
| 7023 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7024 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7025 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7027 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 7028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7029 | else |
| 7030 | if test -n "$RANLIB"; then |
| 7031 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7032 | else |
| 7033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7034 | for as_dir in $PATH |
| 7035 | do |
| 7036 | IFS=$as_save_IFS |
| 7037 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7038 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7039 | 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] | 7040 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7041 | 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] | 7042 | break 2 |
| 7043 | fi |
| 7044 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7045 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7046 | IFS=$as_save_IFS |
| 7047 | |
| 7048 | fi |
| 7049 | fi |
| 7050 | RANLIB=$ac_cv_prog_RANLIB |
| 7051 | if test -n "$RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7052 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 7053 | echo "${ECHO_T}$RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7054 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7055 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7056 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7057 | fi |
| 7058 | |
| 7059 | |
| 7060 | fi |
| 7061 | if test -z "$ac_cv_prog_RANLIB"; then |
| 7062 | ac_ct_RANLIB=$RANLIB |
| 7063 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7064 | set dummy ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7065 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7066 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7067 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 7068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7069 | else |
| 7070 | if test -n "$ac_ct_RANLIB"; then |
| 7071 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7072 | else |
| 7073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7074 | for as_dir in $PATH |
| 7075 | do |
| 7076 | IFS=$as_save_IFS |
| 7077 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7078 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7079 | 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] | 7080 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7081 | 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] | 7082 | break 2 |
| 7083 | fi |
| 7084 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7085 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7086 | IFS=$as_save_IFS |
| 7087 | |
| 7088 | fi |
| 7089 | fi |
| 7090 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7091 | if test -n "$ac_ct_RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7092 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 7093 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7094 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7095 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7096 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7097 | fi |
| 7098 | |
| 7099 | if test "x$ac_ct_RANLIB" = x; then |
| 7100 | RANLIB=":" |
| 7101 | else |
| 7102 | case $cross_compiling:$ac_tool_warned in |
| 7103 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7104 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7105 | whose name does not start with the host triplet. If you think this |
| 7106 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7107 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7108 | whose name does not start with the host triplet. If you think this |
| 7109 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7110 | ac_tool_warned=yes ;; |
| 7111 | esac |
| 7112 | RANLIB=$ac_ct_RANLIB |
| 7113 | fi |
| 7114 | else |
| 7115 | RANLIB="$ac_cv_prog_RANLIB" |
| 7116 | fi |
| 7117 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7118 | if test -n "$ac_tool_prefix"; then |
| 7119 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 7120 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7121 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7122 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7123 | if test "${ac_cv_prog_AR+set}" = set; then |
| 7124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7125 | else |
| 7126 | if test -n "$AR"; then |
| 7127 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7128 | else |
| 7129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7130 | for as_dir in $PATH |
| 7131 | do |
| 7132 | IFS=$as_save_IFS |
| 7133 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7134 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7135 | 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] | 7136 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7137 | 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] | 7138 | break 2 |
| 7139 | fi |
| 7140 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7141 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7142 | IFS=$as_save_IFS |
| 7143 | |
| 7144 | fi |
| 7145 | fi |
| 7146 | AR=$ac_cv_prog_AR |
| 7147 | if test -n "$AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7148 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 7149 | echo "${ECHO_T}$AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7150 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7151 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7152 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7153 | fi |
| 7154 | |
| 7155 | |
| 7156 | fi |
| 7157 | if test -z "$ac_cv_prog_AR"; then |
| 7158 | ac_ct_AR=$AR |
| 7159 | # Extract the first word of "ar", so it can be a program name with args. |
| 7160 | set dummy ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7161 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7162 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7163 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 7164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7165 | else |
| 7166 | if test -n "$ac_ct_AR"; then |
| 7167 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7168 | else |
| 7169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7170 | for as_dir in $PATH |
| 7171 | do |
| 7172 | IFS=$as_save_IFS |
| 7173 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7174 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7175 | 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] | 7176 | ac_cv_prog_ac_ct_AR="ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7177 | 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] | 7178 | break 2 |
| 7179 | fi |
| 7180 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7181 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7182 | IFS=$as_save_IFS |
| 7183 | |
| 7184 | fi |
| 7185 | fi |
| 7186 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7187 | if test -n "$ac_ct_AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7188 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 7189 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7190 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7191 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7192 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7193 | fi |
| 7194 | |
| 7195 | if test "x$ac_ct_AR" = x; then |
| 7196 | AR="false" |
| 7197 | else |
| 7198 | case $cross_compiling:$ac_tool_warned in |
| 7199 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7200 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7201 | whose name does not start with the host triplet. If you think this |
| 7202 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7203 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7204 | whose name does not start with the host triplet. If you think this |
| 7205 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7206 | ac_tool_warned=yes ;; |
| 7207 | esac |
| 7208 | AR=$ac_ct_AR |
| 7209 | fi |
| 7210 | else |
| 7211 | AR="$ac_cv_prog_AR" |
| 7212 | fi |
| 7213 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7214 | # Extract the first word of "rm", so it can be a program name with args. |
| 7215 | set dummy rm; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7216 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7217 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7218 | if test "${ac_cv_path_RM+set}" = set; then |
| 7219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7220 | else |
| 7221 | case $RM in |
| 7222 | [\\/]* | ?:[\\/]*) |
| 7223 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 7224 | ;; |
| 7225 | *) |
| 7226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7227 | for as_dir in $PATH |
| 7228 | do |
| 7229 | IFS=$as_save_IFS |
| 7230 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7231 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7232 | 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] | 7233 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7234 | 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] | 7235 | break 2 |
| 7236 | fi |
| 7237 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7238 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7239 | IFS=$as_save_IFS |
| 7240 | |
| 7241 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 7242 | ;; |
| 7243 | esac |
| 7244 | fi |
| 7245 | RM=$ac_cv_path_RM |
| 7246 | if test -n "$RM"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7247 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 7248 | echo "${ECHO_T}$RM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7249 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7250 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7251 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7252 | fi |
| 7253 | |
| 7254 | |
| 7255 | # Extract the first word of "sed", so it can be a program name with args. |
| 7256 | set dummy sed; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7257 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7258 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7259 | if test "${ac_cv_path_SED+set}" = set; then |
| 7260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7261 | else |
| 7262 | case $SED in |
| 7263 | [\\/]* | ?:[\\/]*) |
| 7264 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7265 | ;; |
| 7266 | *) |
| 7267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7268 | for as_dir in $PATH |
| 7269 | do |
| 7270 | IFS=$as_save_IFS |
| 7271 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7272 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7273 | 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] | 7274 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7275 | 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] | 7276 | break 2 |
| 7277 | fi |
| 7278 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7279 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7280 | IFS=$as_save_IFS |
| 7281 | |
| 7282 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7283 | ;; |
| 7284 | esac |
| 7285 | fi |
| 7286 | SED=$ac_cv_path_SED |
| 7287 | if test -n "$SED"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7288 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7289 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7290 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7291 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7292 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7293 | fi |
| 7294 | |
| 7295 | |
| 7296 | # Extract the first word of "tar", so it can be a program name with args. |
| 7297 | set dummy tar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7298 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7299 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7300 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7302 | else |
| 7303 | case $TAR in |
| 7304 | [\\/]* | ?:[\\/]*) |
| 7305 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7306 | ;; |
| 7307 | *) |
| 7308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7309 | for as_dir in $PATH |
| 7310 | do |
| 7311 | IFS=$as_save_IFS |
| 7312 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7313 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7314 | 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] | 7315 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7316 | 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] | 7317 | break 2 |
| 7318 | fi |
| 7319 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7320 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7321 | IFS=$as_save_IFS |
| 7322 | |
| 7323 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7324 | ;; |
| 7325 | esac |
| 7326 | fi |
| 7327 | TAR=$ac_cv_path_TAR |
| 7328 | if test -n "$TAR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7329 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7330 | echo "${ECHO_T}$TAR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7331 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7332 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7333 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7334 | fi |
| 7335 | |
| 7336 | |
| 7337 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7338 | set dummy pwd; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7339 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7340 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7341 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7343 | else |
| 7344 | case $BINPWD in |
| 7345 | [\\/]* | ?:[\\/]*) |
| 7346 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7347 | ;; |
| 7348 | *) |
| 7349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7350 | for as_dir in $PATH |
| 7351 | do |
| 7352 | IFS=$as_save_IFS |
| 7353 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7354 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7355 | 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] | 7356 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7357 | 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] | 7358 | break 2 |
| 7359 | fi |
| 7360 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7361 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7362 | IFS=$as_save_IFS |
| 7363 | |
| 7364 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7365 | ;; |
| 7366 | esac |
| 7367 | fi |
| 7368 | BINPWD=$ac_cv_path_BINPWD |
| 7369 | if test -n "$BINPWD"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7370 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7371 | echo "${ECHO_T}$BINPWD" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7372 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7373 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7374 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7375 | fi |
| 7376 | |
| 7377 | |
| 7378 | |
| 7379 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7380 | set dummy Graphviz; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7381 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7382 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7383 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7385 | else |
| 7386 | case $GRAPHVIZ in |
| 7387 | [\\/]* | ?:[\\/]*) |
| 7388 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7389 | ;; |
| 7390 | *) |
| 7391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7392 | for as_dir in $PATH |
| 7393 | do |
| 7394 | IFS=$as_save_IFS |
| 7395 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7396 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7397 | 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] | 7398 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7399 | 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] | 7400 | break 2 |
| 7401 | fi |
| 7402 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7403 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7404 | IFS=$as_save_IFS |
| 7405 | |
| 7406 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7407 | ;; |
| 7408 | esac |
| 7409 | fi |
| 7410 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7411 | if test -n "$GRAPHVIZ"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7412 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7413 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7414 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7415 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7416 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7417 | fi |
| 7418 | |
| 7419 | |
| 7420 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7421 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7422 | cat >>confdefs.h <<\_ACEOF |
| 7423 | #define HAVE_GRAPHVIZ 1 |
| 7424 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7425 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7426 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7427 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7428 | fi |
| 7429 | |
| 7430 | cat >>confdefs.h <<_ACEOF |
| 7431 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7432 | _ACEOF |
| 7433 | |
| 7434 | fi |
| 7435 | # Extract the first word of "dot", so it can be a program name with args. |
| 7436 | set dummy dot; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7437 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7438 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7439 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7441 | else |
| 7442 | case $DOT in |
| 7443 | [\\/]* | ?:[\\/]*) |
| 7444 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7445 | ;; |
| 7446 | *) |
| 7447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7448 | for as_dir in $PATH |
| 7449 | do |
| 7450 | IFS=$as_save_IFS |
| 7451 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7452 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7453 | 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] | 7454 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7455 | 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] | 7456 | break 2 |
| 7457 | fi |
| 7458 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7459 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7460 | IFS=$as_save_IFS |
| 7461 | |
| 7462 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7463 | ;; |
| 7464 | esac |
| 7465 | fi |
| 7466 | DOT=$ac_cv_path_DOT |
| 7467 | if test -n "$DOT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7468 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7469 | echo "${ECHO_T}$DOT" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7470 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7471 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7472 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7473 | fi |
| 7474 | |
| 7475 | |
| 7476 | if test "$DOT" != "echo dot" ; then |
| 7477 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7478 | cat >>confdefs.h <<\_ACEOF |
| 7479 | #define HAVE_DOT 1 |
| 7480 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7481 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7482 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7483 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7484 | fi |
| 7485 | |
| 7486 | cat >>confdefs.h <<_ACEOF |
| 7487 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7488 | _ACEOF |
| 7489 | |
| 7490 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7491 | # Extract the first word of "fdp", so it can be a program name with args. |
| 7492 | set dummy fdp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7493 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7494 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7495 | if test "${ac_cv_path_FDP+set}" = set; then |
| 7496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7497 | else |
| 7498 | case $FDP in |
| 7499 | [\\/]* | ?:[\\/]*) |
| 7500 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 7501 | ;; |
| 7502 | *) |
| 7503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7504 | for as_dir in $PATH |
| 7505 | do |
| 7506 | IFS=$as_save_IFS |
| 7507 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7508 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7509 | 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] | 7510 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7511 | 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] | 7512 | break 2 |
| 7513 | fi |
| 7514 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7515 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7516 | IFS=$as_save_IFS |
| 7517 | |
| 7518 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 7519 | ;; |
| 7520 | esac |
| 7521 | fi |
| 7522 | FDP=$ac_cv_path_FDP |
| 7523 | if test -n "$FDP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7524 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 7525 | echo "${ECHO_T}$FDP" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7526 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7527 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7528 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7529 | fi |
| 7530 | |
| 7531 | |
| 7532 | if test "$FDP" != "echo fdp" ; then |
| 7533 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7534 | cat >>confdefs.h <<\_ACEOF |
| 7535 | #define HAVE_FDP 1 |
| 7536 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7537 | |
| 7538 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7539 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7540 | fi |
| 7541 | |
| 7542 | cat >>confdefs.h <<_ACEOF |
| 7543 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 7544 | _ACEOF |
| 7545 | |
| 7546 | fi |
| 7547 | # Extract the first word of "neato", so it can be a program name with args. |
| 7548 | set dummy neato; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7549 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7550 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7551 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 7552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7553 | else |
| 7554 | case $NEATO in |
| 7555 | [\\/]* | ?:[\\/]*) |
| 7556 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 7557 | ;; |
| 7558 | *) |
| 7559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7560 | for as_dir in $PATH |
| 7561 | do |
| 7562 | IFS=$as_save_IFS |
| 7563 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7564 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7565 | 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] | 7566 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7567 | 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] | 7568 | break 2 |
| 7569 | fi |
| 7570 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7571 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7572 | IFS=$as_save_IFS |
| 7573 | |
| 7574 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 7575 | ;; |
| 7576 | esac |
| 7577 | fi |
| 7578 | NEATO=$ac_cv_path_NEATO |
| 7579 | if test -n "$NEATO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7580 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 7581 | echo "${ECHO_T}$NEATO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7582 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7583 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7584 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7585 | fi |
| 7586 | |
| 7587 | |
| 7588 | if test "$NEATO" != "echo neato" ; then |
| 7589 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7590 | cat >>confdefs.h <<\_ACEOF |
| 7591 | #define HAVE_NEATO 1 |
| 7592 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7593 | |
| 7594 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7595 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7596 | fi |
| 7597 | |
| 7598 | cat >>confdefs.h <<_ACEOF |
| 7599 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 7600 | _ACEOF |
| 7601 | |
| 7602 | fi |
| 7603 | # Extract the first word of "twopi", so it can be a program name with args. |
| 7604 | set dummy twopi; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7605 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7606 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7607 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 7608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7609 | else |
| 7610 | case $TWOPI in |
| 7611 | [\\/]* | ?:[\\/]*) |
| 7612 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 7613 | ;; |
| 7614 | *) |
| 7615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7616 | for as_dir in $PATH |
| 7617 | do |
| 7618 | IFS=$as_save_IFS |
| 7619 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7620 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7621 | 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] | 7622 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7623 | 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] | 7624 | break 2 |
| 7625 | fi |
| 7626 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7627 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7628 | IFS=$as_save_IFS |
| 7629 | |
| 7630 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 7631 | ;; |
| 7632 | esac |
| 7633 | fi |
| 7634 | TWOPI=$ac_cv_path_TWOPI |
| 7635 | if test -n "$TWOPI"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7636 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 7637 | echo "${ECHO_T}$TWOPI" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7638 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7639 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7640 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7641 | fi |
| 7642 | |
| 7643 | |
| 7644 | if test "$TWOPI" != "echo twopi" ; then |
| 7645 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7646 | cat >>confdefs.h <<\_ACEOF |
| 7647 | #define HAVE_TWOPI 1 |
| 7648 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7649 | |
| 7650 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7651 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7652 | fi |
| 7653 | |
| 7654 | cat >>confdefs.h <<_ACEOF |
| 7655 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 7656 | _ACEOF |
| 7657 | |
| 7658 | fi |
| 7659 | # Extract the first word of "circo", so it can be a program name with args. |
| 7660 | set dummy circo; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7661 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7662 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7663 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 7664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7665 | else |
| 7666 | case $CIRCO in |
| 7667 | [\\/]* | ?:[\\/]*) |
| 7668 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 7669 | ;; |
| 7670 | *) |
| 7671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7672 | for as_dir in $PATH |
| 7673 | do |
| 7674 | IFS=$as_save_IFS |
| 7675 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7676 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7677 | 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] | 7678 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7679 | 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] | 7680 | break 2 |
| 7681 | fi |
| 7682 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7683 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7684 | IFS=$as_save_IFS |
| 7685 | |
| 7686 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 7687 | ;; |
| 7688 | esac |
| 7689 | fi |
| 7690 | CIRCO=$ac_cv_path_CIRCO |
| 7691 | if test -n "$CIRCO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7692 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 7693 | echo "${ECHO_T}$CIRCO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7694 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7695 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7696 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7697 | fi |
| 7698 | |
| 7699 | |
| 7700 | if test "$CIRCO" != "echo circo" ; then |
| 7701 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7702 | cat >>confdefs.h <<\_ACEOF |
| 7703 | #define HAVE_CIRCO 1 |
| 7704 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7705 | |
| 7706 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7707 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7708 | fi |
| 7709 | |
| 7710 | cat >>confdefs.h <<_ACEOF |
| 7711 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 7712 | _ACEOF |
| 7713 | |
| 7714 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7715 | for ac_prog in gv gsview32 |
| 7716 | do |
| 7717 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7718 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7719 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7720 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7721 | if test "${ac_cv_path_GV+set}" = set; then |
| 7722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7723 | else |
| 7724 | case $GV in |
| 7725 | [\\/]* | ?:[\\/]*) |
| 7726 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7727 | ;; |
| 7728 | *) |
| 7729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7730 | for as_dir in $PATH |
| 7731 | do |
| 7732 | IFS=$as_save_IFS |
| 7733 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7734 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7735 | 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] | 7736 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7737 | 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] | 7738 | break 2 |
| 7739 | fi |
| 7740 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7741 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7742 | IFS=$as_save_IFS |
| 7743 | |
| 7744 | ;; |
| 7745 | esac |
| 7746 | fi |
| 7747 | GV=$ac_cv_path_GV |
| 7748 | if test -n "$GV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7749 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7750 | echo "${ECHO_T}$GV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7751 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7752 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7753 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7754 | fi |
| 7755 | |
| 7756 | |
| 7757 | test -n "$GV" && break |
| 7758 | done |
| 7759 | test -n "$GV" || GV="echo gv" |
| 7760 | |
| 7761 | if test "$GV" != "echo gv" ; then |
| 7762 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7763 | cat >>confdefs.h <<\_ACEOF |
| 7764 | #define HAVE_GV 1 |
| 7765 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7766 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7767 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7768 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7769 | fi |
| 7770 | |
| 7771 | cat >>confdefs.h <<_ACEOF |
| 7772 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7773 | _ACEOF |
| 7774 | |
| 7775 | fi |
| 7776 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7777 | set dummy dotty; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7778 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7780 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7782 | else |
| 7783 | case $DOTTY in |
| 7784 | [\\/]* | ?:[\\/]*) |
| 7785 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7786 | ;; |
| 7787 | *) |
| 7788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7789 | for as_dir in $PATH |
| 7790 | do |
| 7791 | IFS=$as_save_IFS |
| 7792 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7793 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7794 | 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] | 7795 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7796 | 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] | 7797 | break 2 |
| 7798 | fi |
| 7799 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7800 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7801 | IFS=$as_save_IFS |
| 7802 | |
| 7803 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7804 | ;; |
| 7805 | esac |
| 7806 | fi |
| 7807 | DOTTY=$ac_cv_path_DOTTY |
| 7808 | if test -n "$DOTTY"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7809 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7810 | echo "${ECHO_T}$DOTTY" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7811 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7812 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7813 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7814 | fi |
| 7815 | |
| 7816 | |
| 7817 | if test "$DOTTY" != "echo dotty" ; then |
| 7818 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7819 | cat >>confdefs.h <<\_ACEOF |
| 7820 | #define HAVE_DOTTY 1 |
| 7821 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7822 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7823 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7824 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7825 | fi |
| 7826 | |
| 7827 | cat >>confdefs.h <<_ACEOF |
| 7828 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7829 | _ACEOF |
| 7830 | |
| 7831 | fi |
| 7832 | |
| 7833 | |
| 7834 | # Extract the first word of "perl", so it can be a program name with args. |
| 7835 | set dummy perl; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7836 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7837 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7838 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7840 | else |
| 7841 | case $PERL in |
| 7842 | [\\/]* | ?:[\\/]*) |
| 7843 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7844 | ;; |
| 7845 | *) |
| 7846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7847 | for as_dir in $PATH |
| 7848 | do |
| 7849 | IFS=$as_save_IFS |
| 7850 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7851 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7852 | 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] | 7853 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7854 | 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] | 7855 | break 2 |
| 7856 | fi |
| 7857 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7858 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7859 | IFS=$as_save_IFS |
| 7860 | |
| 7861 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7862 | ;; |
| 7863 | esac |
| 7864 | fi |
| 7865 | PERL=$ac_cv_path_PERL |
| 7866 | if test -n "$PERL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7867 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7868 | echo "${ECHO_T}$PERL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7869 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7870 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7871 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7872 | fi |
| 7873 | |
| 7874 | |
| 7875 | if test "$PERL" != "none"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7876 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7877 | 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] | 7878 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7879 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7880 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7881 | else |
| 7882 | PERL=none |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7883 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7884 | echo "${ECHO_T}not found" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7885 | fi |
| 7886 | fi |
| 7887 | |
| 7888 | |
| 7889 | if test x"$PERL" = xnone; then |
| 7890 | HAVE_PERL=0 |
| 7891 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7892 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7893 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7894 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7895 | else |
| 7896 | HAVE_PERL=1 |
| 7897 | |
| 7898 | fi |
| 7899 | |
| 7900 | # Find a good install program. We prefer a C program (faster), |
| 7901 | # so one script is as good as another. But avoid the broken or |
| 7902 | # incompatible versions: |
| 7903 | # SysV /etc/install, /usr/sbin/install |
| 7904 | # SunOS /usr/etc/install |
| 7905 | # IRIX /sbin/install |
| 7906 | # AIX /bin/install |
| 7907 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7908 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7909 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7910 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7911 | # OS/2's system install, which has a completely different semantic |
| 7912 | # ./install, which can be erroneously created by make from ./install.sh. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7913 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7914 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7915 | if test -z "$INSTALL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7916 | if test "${ac_cv_path_install+set}" = set; then |
| 7917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7918 | else |
| 7919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7920 | for as_dir in $PATH |
| 7921 | do |
| 7922 | IFS=$as_save_IFS |
| 7923 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7924 | # Account for people who put trailing slashes in PATH elements. |
| 7925 | case $as_dir/ in |
| 7926 | ./ | .// | /cC/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7927 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7928 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7929 | /usr/ucb/* ) ;; |
| 7930 | *) |
| 7931 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7932 | # Don't use installbsd from OSF since it installs stuff as root |
| 7933 | # by default. |
| 7934 | for ac_prog in ginstall scoinst install; do |
| 7935 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7936 | 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] | 7937 | if test $ac_prog = install && |
| 7938 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7939 | # AIX install. It has an incompatible calling convention. |
| 7940 | : |
| 7941 | elif test $ac_prog = install && |
| 7942 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7943 | # program-specific install script used by HP pwplus--don't use. |
| 7944 | : |
| 7945 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7946 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7947 | break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7948 | fi |
| 7949 | fi |
| 7950 | done |
| 7951 | done |
| 7952 | ;; |
| 7953 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7954 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7955 | IFS=$as_save_IFS |
| 7956 | |
| 7957 | |
| 7958 | fi |
| 7959 | if test "${ac_cv_path_install+set}" = set; then |
| 7960 | INSTALL=$ac_cv_path_install |
| 7961 | else |
| 7962 | # As a last resort, use the slow shell script. Don't cache a |
| 7963 | # value for INSTALL within a source directory, because that will |
| 7964 | # break other packages using the cache if that directory is |
| 7965 | # removed, or if the value is a relative name. |
| 7966 | INSTALL=$ac_install_sh |
| 7967 | fi |
| 7968 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7969 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7970 | echo "${ECHO_T}$INSTALL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7971 | |
| 7972 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7973 | # It thinks the first close brace ends the variable substitution. |
| 7974 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7975 | |
| 7976 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7977 | |
| 7978 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7979 | |
| 7980 | |
| 7981 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7982 | set dummy bzip2; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7983 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7985 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7987 | else |
| 7988 | case $BZIP2 in |
| 7989 | [\\/]* | ?:[\\/]*) |
| 7990 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7991 | ;; |
| 7992 | *) |
| 7993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7994 | for as_dir in $PATH |
| 7995 | do |
| 7996 | IFS=$as_save_IFS |
| 7997 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7998 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7999 | 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] | 8000 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8001 | 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] | 8002 | break 2 |
| 8003 | fi |
| 8004 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8005 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8006 | IFS=$as_save_IFS |
| 8007 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8008 | ;; |
| 8009 | esac |
| 8010 | fi |
| 8011 | BZIP2=$ac_cv_path_BZIP2 |
| 8012 | if test -n "$BZIP2"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8013 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 8014 | echo "${ECHO_T}$BZIP2" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8015 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8016 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8017 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8018 | fi |
| 8019 | |
| 8020 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame^] | 8021 | # Extract the first word of "cat", so it can be a program name with args. |
| 8022 | set dummy cat; ac_word=$2 |
| 8023 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8024 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8025 | if test "${ac_cv_path_CAT+set}" = set; then |
| 8026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8027 | else |
| 8028 | case $CAT in |
| 8029 | [\\/]* | ?:[\\/]*) |
| 8030 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
| 8031 | ;; |
| 8032 | *) |
| 8033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8034 | for as_dir in $PATH |
| 8035 | do |
| 8036 | IFS=$as_save_IFS |
| 8037 | test -z "$as_dir" && as_dir=. |
| 8038 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8039 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8040 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" |
| 8041 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8042 | break 2 |
| 8043 | fi |
| 8044 | done |
| 8045 | done |
| 8046 | IFS=$as_save_IFS |
| 8047 | |
| 8048 | ;; |
| 8049 | esac |
| 8050 | fi |
| 8051 | CAT=$ac_cv_path_CAT |
| 8052 | if test -n "$CAT"; then |
| 8053 | { echo "$as_me:$LINENO: result: $CAT" >&5 |
| 8054 | echo "${ECHO_T}$CAT" >&6; } |
| 8055 | else |
| 8056 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8057 | echo "${ECHO_T}no" >&6; } |
| 8058 | fi |
| 8059 | |
| 8060 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8061 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 8062 | set dummy doxygen; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8063 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8064 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8065 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 8066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8067 | else |
| 8068 | case $DOXYGEN in |
| 8069 | [\\/]* | ?:[\\/]*) |
| 8070 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 8071 | ;; |
| 8072 | *) |
| 8073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8074 | for as_dir in $PATH |
| 8075 | do |
| 8076 | IFS=$as_save_IFS |
| 8077 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8078 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8079 | 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] | 8080 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8081 | 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] | 8082 | break 2 |
| 8083 | fi |
| 8084 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8085 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8086 | IFS=$as_save_IFS |
| 8087 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8088 | ;; |
| 8089 | esac |
| 8090 | fi |
| 8091 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 8092 | if test -n "$DOXYGEN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8093 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 8094 | echo "${ECHO_T}$DOXYGEN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8095 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8096 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8097 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8098 | fi |
| 8099 | |
| 8100 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8101 | # Extract the first word of "groff", so it can be a program name with args. |
| 8102 | set dummy groff; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8103 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8104 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8105 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 8106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8107 | else |
| 8108 | case $GROFF in |
| 8109 | [\\/]* | ?:[\\/]*) |
| 8110 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 8111 | ;; |
| 8112 | *) |
| 8113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8114 | for as_dir in $PATH |
| 8115 | do |
| 8116 | IFS=$as_save_IFS |
| 8117 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8118 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8119 | 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] | 8120 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8121 | 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] | 8122 | break 2 |
| 8123 | fi |
| 8124 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8125 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8126 | IFS=$as_save_IFS |
| 8127 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8128 | ;; |
| 8129 | esac |
| 8130 | fi |
| 8131 | GROFF=$ac_cv_path_GROFF |
| 8132 | if test -n "$GROFF"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8133 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 8134 | echo "${ECHO_T}$GROFF" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8135 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8136 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8137 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8138 | fi |
| 8139 | |
| 8140 | |
| 8141 | # Extract the first word of "gzip", so it can be a program name with args. |
| 8142 | set dummy gzip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8143 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8144 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8145 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 8146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8147 | else |
| 8148 | case $GZIP in |
| 8149 | [\\/]* | ?:[\\/]*) |
| 8150 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 8151 | ;; |
| 8152 | *) |
| 8153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8154 | for as_dir in $PATH |
| 8155 | do |
| 8156 | IFS=$as_save_IFS |
| 8157 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8158 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8159 | 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] | 8160 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8161 | 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] | 8162 | break 2 |
| 8163 | fi |
| 8164 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8165 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8166 | IFS=$as_save_IFS |
| 8167 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8168 | ;; |
| 8169 | esac |
| 8170 | fi |
| 8171 | GZIP=$ac_cv_path_GZIP |
| 8172 | if test -n "$GZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8173 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 8174 | echo "${ECHO_T}$GZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8175 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8176 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8177 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8178 | fi |
| 8179 | |
| 8180 | |
| 8181 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 8182 | set dummy pod2html; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8183 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8184 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8185 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 8186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8187 | else |
| 8188 | case $POD2HTML in |
| 8189 | [\\/]* | ?:[\\/]*) |
| 8190 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 8191 | ;; |
| 8192 | *) |
| 8193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8194 | for as_dir in $PATH |
| 8195 | do |
| 8196 | IFS=$as_save_IFS |
| 8197 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8198 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8199 | 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] | 8200 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8201 | 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] | 8202 | break 2 |
| 8203 | fi |
| 8204 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8205 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8206 | IFS=$as_save_IFS |
| 8207 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8208 | ;; |
| 8209 | esac |
| 8210 | fi |
| 8211 | POD2HTML=$ac_cv_path_POD2HTML |
| 8212 | if test -n "$POD2HTML"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8213 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 8214 | echo "${ECHO_T}$POD2HTML" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8215 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8216 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8217 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8218 | fi |
| 8219 | |
| 8220 | |
| 8221 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 8222 | set dummy pod2man; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8223 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8224 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8225 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 8226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8227 | else |
| 8228 | case $POD2MAN in |
| 8229 | [\\/]* | ?:[\\/]*) |
| 8230 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 8231 | ;; |
| 8232 | *) |
| 8233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8234 | for as_dir in $PATH |
| 8235 | do |
| 8236 | IFS=$as_save_IFS |
| 8237 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8238 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8239 | 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] | 8240 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8241 | 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] | 8242 | break 2 |
| 8243 | fi |
| 8244 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8245 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8246 | IFS=$as_save_IFS |
| 8247 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8248 | ;; |
| 8249 | esac |
| 8250 | fi |
| 8251 | POD2MAN=$ac_cv_path_POD2MAN |
| 8252 | if test -n "$POD2MAN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8253 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 8254 | echo "${ECHO_T}$POD2MAN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8255 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8256 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8257 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8258 | fi |
| 8259 | |
| 8260 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame^] | 8261 | # Extract the first word of "pdfroff", so it can be a program name with args. |
| 8262 | set dummy pdfroff; ac_word=$2 |
| 8263 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8264 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8265 | if test "${ac_cv_path_PDFROFF+set}" = set; then |
| 8266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8267 | else |
| 8268 | case $PDFROFF in |
| 8269 | [\\/]* | ?:[\\/]*) |
| 8270 | ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. |
| 8271 | ;; |
| 8272 | *) |
| 8273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8274 | for as_dir in $PATH |
| 8275 | do |
| 8276 | IFS=$as_save_IFS |
| 8277 | test -z "$as_dir" && as_dir=. |
| 8278 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8279 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8280 | ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" |
| 8281 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8282 | break 2 |
| 8283 | fi |
| 8284 | done |
| 8285 | done |
| 8286 | IFS=$as_save_IFS |
| 8287 | |
| 8288 | ;; |
| 8289 | esac |
| 8290 | fi |
| 8291 | PDFROFF=$ac_cv_path_PDFROFF |
| 8292 | if test -n "$PDFROFF"; then |
| 8293 | { echo "$as_me:$LINENO: result: $PDFROFF" >&5 |
| 8294 | echo "${ECHO_T}$PDFROFF" >&6; } |
| 8295 | else |
| 8296 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8297 | echo "${ECHO_T}no" >&6; } |
| 8298 | fi |
| 8299 | |
| 8300 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8301 | # Extract the first word of "runtest", so it can be a program name with args. |
| 8302 | set dummy runtest; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8303 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8304 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8305 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 8306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8307 | else |
| 8308 | case $RUNTEST in |
| 8309 | [\\/]* | ?:[\\/]*) |
| 8310 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 8311 | ;; |
| 8312 | *) |
| 8313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8314 | for as_dir in $PATH |
| 8315 | do |
| 8316 | IFS=$as_save_IFS |
| 8317 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8318 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8319 | 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] | 8320 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8321 | 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] | 8322 | break 2 |
| 8323 | fi |
| 8324 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8325 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8326 | IFS=$as_save_IFS |
| 8327 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8328 | ;; |
| 8329 | esac |
| 8330 | fi |
| 8331 | RUNTEST=$ac_cv_path_RUNTEST |
| 8332 | if test -n "$RUNTEST"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8333 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 8334 | echo "${ECHO_T}$RUNTEST" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8335 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8336 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8337 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8338 | fi |
| 8339 | |
| 8340 | |
| 8341 | |
| 8342 | no_itcl=true |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8343 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 8344 | 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] | 8345 | |
| 8346 | # Check whether --with-tclinclude was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8347 | if test "${with_tclinclude+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8348 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 8349 | else |
| 8350 | with_tclinclude='' |
| 8351 | fi |
| 8352 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8353 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 8354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8355 | else |
| 8356 | |
| 8357 | if test x"${with_tclinclude}" != x ; then |
| 8358 | if test -f ${with_tclinclude}/tclsh ; then |
| 8359 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 8360 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 8361 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 8362 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8363 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 8364 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 8365 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8366 | fi |
| 8367 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 8368 | fi |
| 8369 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8370 | |
| 8371 | if test x"${ac_cv_path_tclsh}" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8372 | { echo "$as_me:$LINENO: result: none" >&5 |
| 8373 | echo "${ECHO_T}none" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8374 | 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 |
| 8375 | do |
| 8376 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8377 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8378 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8380 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 8381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8382 | else |
| 8383 | case $TCLSH in |
| 8384 | [\\/]* | ?:[\\/]*) |
| 8385 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 8386 | ;; |
| 8387 | *) |
| 8388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8389 | for as_dir in $PATH |
| 8390 | do |
| 8391 | IFS=$as_save_IFS |
| 8392 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8393 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8394 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8395 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8396 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8397 | break 2 |
| 8398 | fi |
| 8399 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8400 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8401 | IFS=$as_save_IFS |
| 8402 | |
| 8403 | ;; |
| 8404 | esac |
| 8405 | fi |
| 8406 | TCLSH=$ac_cv_path_TCLSH |
| 8407 | if test -n "$TCLSH"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8408 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 8409 | echo "${ECHO_T}$TCLSH" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8410 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8411 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8412 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8413 | fi |
| 8414 | |
| 8415 | |
| 8416 | test -n "$TCLSH" && break |
| 8417 | done |
| 8418 | |
| 8419 | if test x"${TCLSH}" = x ; then |
| 8420 | ac_cv_path_tclsh=''; |
| 8421 | else |
| 8422 | ac_cv_path_tclsh="${TCLSH}"; |
| 8423 | fi |
| 8424 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8425 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 8426 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8427 | TCLSH="${ac_cv_path_tclsh}" |
| 8428 | |
| 8429 | fi |
| 8430 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8431 | # Extract the first word of "zip", so it can be a program name with args. |
| 8432 | set dummy zip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8433 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8434 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8435 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 8436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8437 | else |
| 8438 | case $ZIP in |
| 8439 | [\\/]* | ?:[\\/]*) |
| 8440 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 8441 | ;; |
| 8442 | *) |
| 8443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8444 | for as_dir in $PATH |
| 8445 | do |
| 8446 | IFS=$as_save_IFS |
| 8447 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8448 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8449 | 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] | 8450 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8451 | 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] | 8452 | break 2 |
| 8453 | fi |
| 8454 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8455 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8456 | IFS=$as_save_IFS |
| 8457 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8458 | ;; |
| 8459 | esac |
| 8460 | fi |
| 8461 | ZIP=$ac_cv_path_ZIP |
| 8462 | if test -n "$ZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8463 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 8464 | echo "${ECHO_T}$ZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8465 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8466 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8467 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8468 | fi |
| 8469 | |
| 8470 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8471 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8472 | do |
| 8473 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8474 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8475 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8476 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8477 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8479 | else |
| 8480 | case $OCAMLC in |
| 8481 | [\\/]* | ?:[\\/]*) |
| 8482 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8483 | ;; |
| 8484 | *) |
| 8485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8486 | for as_dir in $PATH |
| 8487 | do |
| 8488 | IFS=$as_save_IFS |
| 8489 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8490 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8491 | 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] | 8492 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8493 | 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] | 8494 | break 2 |
| 8495 | fi |
| 8496 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8497 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8498 | IFS=$as_save_IFS |
| 8499 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8500 | ;; |
| 8501 | esac |
| 8502 | fi |
| 8503 | OCAMLC=$ac_cv_path_OCAMLC |
| 8504 | if test -n "$OCAMLC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8505 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8506 | echo "${ECHO_T}$OCAMLC" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8507 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8508 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8509 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8510 | fi |
| 8511 | |
| 8512 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8513 | test -n "$OCAMLC" && break |
| 8514 | done |
| 8515 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8516 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8517 | do |
| 8518 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8519 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8520 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8521 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8522 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8524 | else |
| 8525 | case $OCAMLOPT in |
| 8526 | [\\/]* | ?:[\\/]*) |
| 8527 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8528 | ;; |
| 8529 | *) |
| 8530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8531 | for as_dir in $PATH |
| 8532 | do |
| 8533 | IFS=$as_save_IFS |
| 8534 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8535 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8536 | 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] | 8537 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8538 | 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] | 8539 | break 2 |
| 8540 | fi |
| 8541 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8542 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8543 | IFS=$as_save_IFS |
| 8544 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8545 | ;; |
| 8546 | esac |
| 8547 | fi |
| 8548 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8549 | if test -n "$OCAMLOPT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8550 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8551 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8552 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8553 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8554 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8555 | fi |
| 8556 | |
| 8557 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8558 | test -n "$OCAMLOPT" && break |
| 8559 | done |
| 8560 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8561 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8562 | do |
| 8563 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8564 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8565 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8566 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8567 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8569 | else |
| 8570 | case $OCAMLDEP in |
| 8571 | [\\/]* | ?:[\\/]*) |
| 8572 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8573 | ;; |
| 8574 | *) |
| 8575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8576 | for as_dir in $PATH |
| 8577 | do |
| 8578 | IFS=$as_save_IFS |
| 8579 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8580 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8581 | 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] | 8582 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8583 | 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] | 8584 | break 2 |
| 8585 | fi |
| 8586 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8587 | done |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8588 | IFS=$as_save_IFS |
| 8589 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8590 | ;; |
| 8591 | esac |
| 8592 | fi |
| 8593 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8594 | if test -n "$OCAMLDEP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8595 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8596 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8597 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8598 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8599 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8600 | fi |
| 8601 | |
| 8602 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8603 | test -n "$OCAMLDEP" && break |
| 8604 | done |
| 8605 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8606 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8607 | do |
| 8608 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8609 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8610 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8612 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 8613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8614 | else |
| 8615 | case $OCAMLDOC in |
| 8616 | [\\/]* | ?:[\\/]*) |
| 8617 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 8618 | ;; |
| 8619 | *) |
| 8620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8621 | for as_dir in $PATH |
| 8622 | do |
| 8623 | IFS=$as_save_IFS |
| 8624 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8625 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8626 | 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] | 8627 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8628 | 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] | 8629 | break 2 |
| 8630 | fi |
| 8631 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8632 | done |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8633 | IFS=$as_save_IFS |
| 8634 | |
| 8635 | ;; |
| 8636 | esac |
| 8637 | fi |
| 8638 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 8639 | if test -n "$OCAMLDOC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8640 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 8641 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8642 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8643 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8644 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8645 | fi |
| 8646 | |
| 8647 | |
| 8648 | test -n "$OCAMLDOC" && break |
| 8649 | done |
| 8650 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8651 | for ac_prog in gas as |
| 8652 | do |
| 8653 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8654 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8655 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8656 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8657 | if test "${ac_cv_path_GAS+set}" = set; then |
| 8658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8659 | else |
| 8660 | case $GAS in |
| 8661 | [\\/]* | ?:[\\/]*) |
| 8662 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 8663 | ;; |
| 8664 | *) |
| 8665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8666 | for as_dir in $PATH |
| 8667 | do |
| 8668 | IFS=$as_save_IFS |
| 8669 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8670 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8671 | 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] | 8672 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8673 | 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] | 8674 | break 2 |
| 8675 | fi |
| 8676 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8677 | done |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8678 | IFS=$as_save_IFS |
| 8679 | |
| 8680 | ;; |
| 8681 | esac |
| 8682 | fi |
| 8683 | GAS=$ac_cv_path_GAS |
| 8684 | if test -n "$GAS"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8685 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 8686 | echo "${ECHO_T}$GAS" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8687 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8688 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8689 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8690 | fi |
| 8691 | |
| 8692 | |
| 8693 | test -n "$GAS" && break |
| 8694 | done |
| 8695 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8696 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8697 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8698 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8699 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8701 | else |
| 8702 | ac_ext=c |
| 8703 | ac_cpp='$CPP $CPPFLAGS' |
| 8704 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8705 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8706 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8707 | |
| 8708 | oldcflags="$CFLAGS" |
| 8709 | CFLAGS="$CFLAGS -Wl,-R." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8710 | cat >conftest.$ac_ext <<_ACEOF |
| 8711 | /* confdefs.h. */ |
| 8712 | _ACEOF |
| 8713 | cat confdefs.h >>conftest.$ac_ext |
| 8714 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8715 | /* end confdefs.h. */ |
| 8716 | |
| 8717 | int |
| 8718 | main () |
| 8719 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8720 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8721 | ; |
| 8722 | return 0; |
| 8723 | } |
| 8724 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8725 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8726 | if { (ac_try="$ac_link" |
| 8727 | case "(($ac_try" in |
| 8728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8729 | *) ac_try_echo=$ac_try;; |
| 8730 | esac |
| 8731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8732 | (eval "$ac_link") 2>conftest.er1 |
| 8733 | ac_status=$? |
| 8734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8735 | rm -f conftest.er1 |
| 8736 | cat conftest.err >&5 |
| 8737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8738 | (exit $ac_status); } && |
| 8739 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8740 | { (case "(($ac_try" in |
| 8741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8742 | *) ac_try_echo=$ac_try;; |
| 8743 | esac |
| 8744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8745 | (eval "$ac_try") 2>&5 |
| 8746 | ac_status=$? |
| 8747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8748 | (exit $ac_status); }; } && |
| 8749 | { ac_try='test -s conftest$ac_exeext' |
| 8750 | { (case "(($ac_try" in |
| 8751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8752 | *) ac_try_echo=$ac_try;; |
| 8753 | esac |
| 8754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8755 | (eval "$ac_try") 2>&5 |
| 8756 | ac_status=$? |
| 8757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8758 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8759 | llvm_cv_link_use_r=yes |
| 8760 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8761 | echo "$as_me: failed program was:" >&5 |
| 8762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8763 | |
| 8764 | llvm_cv_link_use_r=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8765 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8766 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8767 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8768 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8769 | CFLAGS="$oldcflags" |
| 8770 | ac_ext=c |
| 8771 | ac_cpp='$CPP $CPPFLAGS' |
| 8772 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8773 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8774 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8775 | |
| 8776 | |
| 8777 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8778 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8779 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8780 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8781 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8782 | cat >>confdefs.h <<\_ACEOF |
| 8783 | #define HAVE_LINK_R 1 |
| 8784 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8785 | |
| 8786 | fi |
| 8787 | |
| 8788 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8789 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 8790 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 8791 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 8792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8793 | else |
| 8794 | ac_ext=c |
| 8795 | ac_cpp='$CPP $CPPFLAGS' |
| 8796 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8797 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8798 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8799 | |
| 8800 | oldcflags="$CFLAGS" |
| 8801 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8802 | cat >conftest.$ac_ext <<_ACEOF |
| 8803 | /* confdefs.h. */ |
| 8804 | _ACEOF |
| 8805 | cat confdefs.h >>conftest.$ac_ext |
| 8806 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8807 | /* end confdefs.h. */ |
| 8808 | |
| 8809 | int |
| 8810 | main () |
| 8811 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8812 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8813 | ; |
| 8814 | return 0; |
| 8815 | } |
| 8816 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8817 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8818 | if { (ac_try="$ac_link" |
| 8819 | case "(($ac_try" in |
| 8820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8821 | *) ac_try_echo=$ac_try;; |
| 8822 | esac |
| 8823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8824 | (eval "$ac_link") 2>conftest.er1 |
| 8825 | ac_status=$? |
| 8826 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8827 | rm -f conftest.er1 |
| 8828 | cat conftest.err >&5 |
| 8829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8830 | (exit $ac_status); } && |
| 8831 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8832 | { (case "(($ac_try" in |
| 8833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8834 | *) ac_try_echo=$ac_try;; |
| 8835 | esac |
| 8836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8837 | (eval "$ac_try") 2>&5 |
| 8838 | ac_status=$? |
| 8839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8840 | (exit $ac_status); }; } && |
| 8841 | { ac_try='test -s conftest$ac_exeext' |
| 8842 | { (case "(($ac_try" in |
| 8843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8844 | *) ac_try_echo=$ac_try;; |
| 8845 | esac |
| 8846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8847 | (eval "$ac_try") 2>&5 |
| 8848 | ac_status=$? |
| 8849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8850 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8851 | llvm_cv_link_use_export_dynamic=yes |
| 8852 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8853 | echo "$as_me: failed program was:" >&5 |
| 8854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8855 | |
| 8856 | llvm_cv_link_use_export_dynamic=no |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8857 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8858 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8859 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8860 | conftest$ac_exeext conftest.$ac_ext |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8861 | CFLAGS="$oldcflags" |
| 8862 | ac_ext=c |
| 8863 | ac_cpp='$CPP $CPPFLAGS' |
| 8864 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8865 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8866 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8867 | |
| 8868 | |
| 8869 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8870 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 8871 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8872 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 8873 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8874 | cat >>confdefs.h <<\_ACEOF |
| 8875 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 8876 | _ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8877 | |
| 8878 | fi |
| 8879 | |
| 8880 | |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8881 | { echo "$as_me:$LINENO: checking for compiler -Wl,-retain-symbols-file option" >&5 |
| 8882 | echo $ECHO_N "checking for compiler -Wl,-retain-symbols-file option... $ECHO_C" >&6; } |
| 8883 | if test "${llvm_cv_link_use_retain_symbols_file+set}" = set; then |
| 8884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8885 | else |
| 8886 | ac_ext=c |
| 8887 | ac_cpp='$CPP $CPPFLAGS' |
| 8888 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8889 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8890 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8891 | |
| 8892 | oldcflags="$CFLAGS" |
| 8893 | |
| 8894 | # The following code is from the autoconf manual, |
| 8895 | # "11.13: Limitations of Usual Tools". |
| 8896 | # Create a temporary directory $tmp in $TMPDIR (default /tmp). |
| 8897 | # Use mktemp if possible; otherwise fall back on mkdir, |
| 8898 | # with $RANDOM to make collisions less likely. |
| 8899 | : ${TMPDIR=/tmp} |
| 8900 | { |
| 8901 | tmp=` |
| 8902 | (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null |
| 8903 | ` && |
| 8904 | test -n "$tmp" && test -d "$tmp" |
| 8905 | } || { |
| 8906 | tmp=$TMPDIR/foo$$-$RANDOM |
| 8907 | (umask 077 && mkdir "$tmp") |
| 8908 | } || exit $? |
| 8909 | |
| 8910 | echo "main" > "$tmp/exports" |
| 8911 | |
| 8912 | CFLAGS="$CFLAGS -Wl,-retain-symbols-file=$tmp/exports" |
| 8913 | cat >conftest.$ac_ext <<_ACEOF |
| 8914 | /* confdefs.h. */ |
| 8915 | _ACEOF |
| 8916 | cat confdefs.h >>conftest.$ac_ext |
| 8917 | cat >>conftest.$ac_ext <<_ACEOF |
| 8918 | /* end confdefs.h. */ |
| 8919 | |
| 8920 | int |
| 8921 | main () |
| 8922 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8923 | |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8924 | ; |
| 8925 | return 0; |
| 8926 | } |
| 8927 | _ACEOF |
| 8928 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8929 | if { (ac_try="$ac_link" |
| 8930 | case "(($ac_try" in |
| 8931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8932 | *) ac_try_echo=$ac_try;; |
| 8933 | esac |
| 8934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8935 | (eval "$ac_link") 2>conftest.er1 |
| 8936 | ac_status=$? |
| 8937 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8938 | rm -f conftest.er1 |
| 8939 | cat conftest.err >&5 |
| 8940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8941 | (exit $ac_status); } && |
| 8942 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8943 | { (case "(($ac_try" in |
| 8944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8945 | *) ac_try_echo=$ac_try;; |
| 8946 | esac |
| 8947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8948 | (eval "$ac_try") 2>&5 |
| 8949 | ac_status=$? |
| 8950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8951 | (exit $ac_status); }; } && |
| 8952 | { ac_try='test -s conftest$ac_exeext' |
| 8953 | { (case "(($ac_try" in |
| 8954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8955 | *) ac_try_echo=$ac_try;; |
| 8956 | esac |
| 8957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8958 | (eval "$ac_try") 2>&5 |
| 8959 | ac_status=$? |
| 8960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8961 | (exit $ac_status); }; }; then |
| 8962 | llvm_cv_link_use_retain_symbols_file=yes |
| 8963 | else |
| 8964 | echo "$as_me: failed program was:" >&5 |
| 8965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8966 | |
| 8967 | llvm_cv_link_use_retain_symbols_file=no |
| 8968 | fi |
| 8969 | |
| 8970 | rm -f core conftest.err conftest.$ac_objext \ |
| 8971 | conftest$ac_exeext conftest.$ac_ext |
| 8972 | rm "$tmp/exports" |
| 8973 | rmdir "$tmp" |
| 8974 | CFLAGS="$oldcflags" |
| 8975 | ac_ext=c |
| 8976 | ac_cpp='$CPP $CPPFLAGS' |
| 8977 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8978 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8979 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8980 | |
| 8981 | |
| 8982 | fi |
| 8983 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_retain_symbols_file" >&5 |
| 8984 | echo "${ECHO_T}$llvm_cv_link_use_retain_symbols_file" >&6; } |
| 8985 | if test "$llvm_cv_link_use_retain_symbols_file" = yes ; then |
| 8986 | HAVE_LINK_RETAIN_SYMBOLS_FILE=1 |
| 8987 | |
| 8988 | fi |
| 8989 | |
| 8990 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8991 | |
| 8992 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8993 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8994 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8995 | if test "${ac_cv_c_const+set}" = set; then |
| 8996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8997 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8998 | cat >conftest.$ac_ext <<_ACEOF |
| 8999 | /* confdefs.h. */ |
| 9000 | _ACEOF |
| 9001 | cat confdefs.h >>conftest.$ac_ext |
| 9002 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9003 | /* end confdefs.h. */ |
| 9004 | |
| 9005 | int |
| 9006 | main () |
| 9007 | { |
| 9008 | /* FIXME: Include the comments suggested by Paul. */ |
| 9009 | #ifndef __cplusplus |
| 9010 | /* Ultrix mips cc rejects this. */ |
| 9011 | typedef int charset[2]; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9012 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9013 | /* SunOS 4.1.1 cc rejects this. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9014 | char const *const *ccp; |
| 9015 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9016 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 9017 | struct point {int x, y;}; |
| 9018 | static struct point const zero = {0,0}; |
| 9019 | /* AIX XL C 1.02.0.0 rejects this. |
| 9020 | It does not let you subtract one const X* pointer from another in |
| 9021 | an arm of an if-expression whose if-part is not a constant |
| 9022 | expression */ |
| 9023 | const char *g = "string"; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9024 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9025 | /* HPUX 7.0 cc rejects these. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9026 | ++ccp; |
| 9027 | p = (char**) ccp; |
| 9028 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9029 | { /* SCO 3.2v4 cc rejects this. */ |
| 9030 | char *t; |
| 9031 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 9032 | |
| 9033 | *t++ = 0; |
| 9034 | if (s) return 0; |
| 9035 | } |
| 9036 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 9037 | int x[] = {25, 17}; |
| 9038 | const int *foo = &x[0]; |
| 9039 | ++foo; |
| 9040 | } |
| 9041 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 9042 | typedef const int *iptr; |
| 9043 | iptr p = 0; |
| 9044 | ++p; |
| 9045 | } |
| 9046 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 9047 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 9048 | struct s { int j; const int *ap[3]; }; |
| 9049 | struct s *b; b->j = 5; |
| 9050 | } |
| 9051 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 9052 | const int foo = 10; |
| 9053 | if (!foo) return 0; |
| 9054 | } |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9055 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9056 | #endif |
| 9057 | |
| 9058 | ; |
| 9059 | return 0; |
| 9060 | } |
| 9061 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9062 | rm -f conftest.$ac_objext |
| 9063 | if { (ac_try="$ac_compile" |
| 9064 | case "(($ac_try" in |
| 9065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9066 | *) ac_try_echo=$ac_try;; |
| 9067 | esac |
| 9068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9069 | (eval "$ac_compile") 2>conftest.er1 |
| 9070 | ac_status=$? |
| 9071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9072 | rm -f conftest.er1 |
| 9073 | cat conftest.err >&5 |
| 9074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9075 | (exit $ac_status); } && |
| 9076 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9077 | { (case "(($ac_try" in |
| 9078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9079 | *) ac_try_echo=$ac_try;; |
| 9080 | esac |
| 9081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9082 | (eval "$ac_try") 2>&5 |
| 9083 | ac_status=$? |
| 9084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9085 | (exit $ac_status); }; } && |
| 9086 | { ac_try='test -s conftest.$ac_objext' |
| 9087 | { (case "(($ac_try" in |
| 9088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9089 | *) ac_try_echo=$ac_try;; |
| 9090 | esac |
| 9091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9092 | (eval "$ac_try") 2>&5 |
| 9093 | ac_status=$? |
| 9094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9095 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9096 | ac_cv_c_const=yes |
| 9097 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9098 | echo "$as_me: failed program was:" >&5 |
| 9099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9100 | |
| 9101 | ac_cv_c_const=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9102 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9103 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9104 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9105 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9106 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 9107 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9108 | if test $ac_cv_c_const = no; then |
| 9109 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9110 | cat >>confdefs.h <<\_ACEOF |
| 9111 | #define const |
| 9112 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9113 | |
| 9114 | fi |
| 9115 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9116 | |
| 9117 | |
| 9118 | |
| 9119 | |
| 9120 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9121 | ac_header_dirent=no |
| 9122 | 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] | 9123 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 9124 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 9125 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 9126 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9128 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9129 | cat >conftest.$ac_ext <<_ACEOF |
| 9130 | /* confdefs.h. */ |
| 9131 | _ACEOF |
| 9132 | cat confdefs.h >>conftest.$ac_ext |
| 9133 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9134 | /* end confdefs.h. */ |
| 9135 | #include <sys/types.h> |
| 9136 | #include <$ac_hdr> |
| 9137 | |
| 9138 | int |
| 9139 | main () |
| 9140 | { |
| 9141 | if ((DIR *) 0) |
| 9142 | return 0; |
| 9143 | ; |
| 9144 | return 0; |
| 9145 | } |
| 9146 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9147 | rm -f conftest.$ac_objext |
| 9148 | if { (ac_try="$ac_compile" |
| 9149 | case "(($ac_try" in |
| 9150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9151 | *) ac_try_echo=$ac_try;; |
| 9152 | esac |
| 9153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9154 | (eval "$ac_compile") 2>conftest.er1 |
| 9155 | ac_status=$? |
| 9156 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9157 | rm -f conftest.er1 |
| 9158 | cat conftest.err >&5 |
| 9159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9160 | (exit $ac_status); } && |
| 9161 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9162 | { (case "(($ac_try" in |
| 9163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9164 | *) ac_try_echo=$ac_try;; |
| 9165 | esac |
| 9166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9167 | (eval "$ac_try") 2>&5 |
| 9168 | ac_status=$? |
| 9169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9170 | (exit $ac_status); }; } && |
| 9171 | { ac_try='test -s conftest.$ac_objext' |
| 9172 | { (case "(($ac_try" in |
| 9173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9174 | *) ac_try_echo=$ac_try;; |
| 9175 | esac |
| 9176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9177 | (eval "$ac_try") 2>&5 |
| 9178 | ac_status=$? |
| 9179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9180 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9181 | eval "$as_ac_Header=yes" |
| 9182 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9183 | echo "$as_me: failed program was:" >&5 |
| 9184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9185 | |
| 9186 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9187 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9188 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9190 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9191 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9192 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9193 | echo "${ECHO_T}$ac_res" >&6; } |
| 9194 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9195 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9196 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9197 | _ACEOF |
| 9198 | |
| 9199 | ac_header_dirent=$ac_hdr; break |
| 9200 | fi |
| 9201 | |
| 9202 | done |
| 9203 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 9204 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9205 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9206 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9207 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9209 | else |
| 9210 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9211 | cat >conftest.$ac_ext <<_ACEOF |
| 9212 | /* confdefs.h. */ |
| 9213 | _ACEOF |
| 9214 | cat confdefs.h >>conftest.$ac_ext |
| 9215 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9216 | /* end confdefs.h. */ |
| 9217 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9218 | /* Override any GCC internal prototype to avoid an error. |
| 9219 | Use char because int might match the return type of a GCC |
| 9220 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9221 | #ifdef __cplusplus |
| 9222 | extern "C" |
| 9223 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9224 | char opendir (); |
| 9225 | int |
| 9226 | main () |
| 9227 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9228 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9229 | ; |
| 9230 | return 0; |
| 9231 | } |
| 9232 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9233 | for ac_lib in '' dir; do |
| 9234 | if test -z "$ac_lib"; then |
| 9235 | ac_res="none required" |
| 9236 | else |
| 9237 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9238 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9239 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9240 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9241 | if { (ac_try="$ac_link" |
| 9242 | case "(($ac_try" in |
| 9243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9244 | *) ac_try_echo=$ac_try;; |
| 9245 | esac |
| 9246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9247 | (eval "$ac_link") 2>conftest.er1 |
| 9248 | ac_status=$? |
| 9249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9250 | rm -f conftest.er1 |
| 9251 | cat conftest.err >&5 |
| 9252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9253 | (exit $ac_status); } && |
| 9254 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9255 | { (case "(($ac_try" in |
| 9256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9257 | *) ac_try_echo=$ac_try;; |
| 9258 | esac |
| 9259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9260 | (eval "$ac_try") 2>&5 |
| 9261 | ac_status=$? |
| 9262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9263 | (exit $ac_status); }; } && |
| 9264 | { ac_try='test -s conftest$ac_exeext' |
| 9265 | { (case "(($ac_try" in |
| 9266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9267 | *) ac_try_echo=$ac_try;; |
| 9268 | esac |
| 9269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9270 | (eval "$ac_try") 2>&5 |
| 9271 | ac_status=$? |
| 9272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9273 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9274 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9275 | else |
| 9276 | echo "$as_me: failed program was:" >&5 |
| 9277 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9278 | |
| 9279 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9280 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9281 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9282 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9283 | conftest$ac_exeext |
| 9284 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9285 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9286 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9287 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9288 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9289 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9290 | else |
| 9291 | ac_cv_search_opendir=no |
| 9292 | fi |
| 9293 | rm conftest.$ac_ext |
| 9294 | LIBS=$ac_func_search_save_LIBS |
| 9295 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9296 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9297 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9298 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9299 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9300 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9301 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9302 | fi |
| 9303 | |
| 9304 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9305 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9306 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9307 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9309 | else |
| 9310 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9311 | cat >conftest.$ac_ext <<_ACEOF |
| 9312 | /* confdefs.h. */ |
| 9313 | _ACEOF |
| 9314 | cat confdefs.h >>conftest.$ac_ext |
| 9315 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9316 | /* end confdefs.h. */ |
| 9317 | |
| 9318 | /* Override any GCC internal prototype to avoid an error. |
| 9319 | Use char because int might match the return type of a GCC |
| 9320 | builtin and then its argument prototype would still apply. */ |
| 9321 | #ifdef __cplusplus |
| 9322 | extern "C" |
| 9323 | #endif |
| 9324 | char opendir (); |
| 9325 | int |
| 9326 | main () |
| 9327 | { |
| 9328 | return opendir (); |
| 9329 | ; |
| 9330 | return 0; |
| 9331 | } |
| 9332 | _ACEOF |
| 9333 | for ac_lib in '' x; do |
| 9334 | if test -z "$ac_lib"; then |
| 9335 | ac_res="none required" |
| 9336 | else |
| 9337 | ac_res=-l$ac_lib |
| 9338 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9339 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9340 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9341 | if { (ac_try="$ac_link" |
| 9342 | case "(($ac_try" in |
| 9343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9344 | *) ac_try_echo=$ac_try;; |
| 9345 | esac |
| 9346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9347 | (eval "$ac_link") 2>conftest.er1 |
| 9348 | ac_status=$? |
| 9349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9350 | rm -f conftest.er1 |
| 9351 | cat conftest.err >&5 |
| 9352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9353 | (exit $ac_status); } && |
| 9354 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9355 | { (case "(($ac_try" in |
| 9356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9357 | *) ac_try_echo=$ac_try;; |
| 9358 | esac |
| 9359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9360 | (eval "$ac_try") 2>&5 |
| 9361 | ac_status=$? |
| 9362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9363 | (exit $ac_status); }; } && |
| 9364 | { ac_try='test -s conftest$ac_exeext' |
| 9365 | { (case "(($ac_try" in |
| 9366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9367 | *) ac_try_echo=$ac_try;; |
| 9368 | esac |
| 9369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9370 | (eval "$ac_try") 2>&5 |
| 9371 | ac_status=$? |
| 9372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9373 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9374 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9375 | else |
| 9376 | echo "$as_me: failed program was:" >&5 |
| 9377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9378 | |
| 9379 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9380 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9381 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9382 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9383 | conftest$ac_exeext |
| 9384 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9385 | break |
| 9386 | fi |
| 9387 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9388 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9389 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9390 | else |
| 9391 | ac_cv_search_opendir=no |
| 9392 | fi |
| 9393 | rm conftest.$ac_ext |
| 9394 | LIBS=$ac_func_search_save_LIBS |
| 9395 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9396 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9397 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9398 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9399 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9400 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9401 | |
| 9402 | fi |
| 9403 | |
| 9404 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9405 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9406 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9407 | for ac_header in dlfcn.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9408 | do |
| 9409 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9410 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9411 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9412 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9413 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9415 | fi |
| 9416 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9417 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9418 | echo "${ECHO_T}$ac_res" >&6; } |
| 9419 | else |
| 9420 | # Is the header compilable? |
| 9421 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9422 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 9423 | cat >conftest.$ac_ext <<_ACEOF |
| 9424 | /* confdefs.h. */ |
| 9425 | _ACEOF |
| 9426 | cat confdefs.h >>conftest.$ac_ext |
| 9427 | cat >>conftest.$ac_ext <<_ACEOF |
| 9428 | /* end confdefs.h. */ |
| 9429 | $ac_includes_default |
| 9430 | #include <$ac_header> |
| 9431 | _ACEOF |
| 9432 | rm -f conftest.$ac_objext |
| 9433 | if { (ac_try="$ac_compile" |
| 9434 | case "(($ac_try" in |
| 9435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9436 | *) ac_try_echo=$ac_try;; |
| 9437 | esac |
| 9438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9439 | (eval "$ac_compile") 2>conftest.er1 |
| 9440 | ac_status=$? |
| 9441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9442 | rm -f conftest.er1 |
| 9443 | cat conftest.err >&5 |
| 9444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9445 | (exit $ac_status); } && |
| 9446 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9447 | { (case "(($ac_try" in |
| 9448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9449 | *) ac_try_echo=$ac_try;; |
| 9450 | esac |
| 9451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9452 | (eval "$ac_try") 2>&5 |
| 9453 | ac_status=$? |
| 9454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9455 | (exit $ac_status); }; } && |
| 9456 | { ac_try='test -s conftest.$ac_objext' |
| 9457 | { (case "(($ac_try" in |
| 9458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9459 | *) ac_try_echo=$ac_try;; |
| 9460 | esac |
| 9461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9462 | (eval "$ac_try") 2>&5 |
| 9463 | ac_status=$? |
| 9464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9465 | (exit $ac_status); }; }; then |
| 9466 | ac_header_compiler=yes |
| 9467 | else |
| 9468 | echo "$as_me: failed program was:" >&5 |
| 9469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9470 | |
| 9471 | ac_header_compiler=no |
| 9472 | fi |
| 9473 | |
| 9474 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9475 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9476 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9477 | |
| 9478 | # Is the header present? |
| 9479 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9480 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 9481 | cat >conftest.$ac_ext <<_ACEOF |
| 9482 | /* confdefs.h. */ |
| 9483 | _ACEOF |
| 9484 | cat confdefs.h >>conftest.$ac_ext |
| 9485 | cat >>conftest.$ac_ext <<_ACEOF |
| 9486 | /* end confdefs.h. */ |
| 9487 | #include <$ac_header> |
| 9488 | _ACEOF |
| 9489 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9490 | case "(($ac_try" in |
| 9491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9492 | *) ac_try_echo=$ac_try;; |
| 9493 | esac |
| 9494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9495 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9496 | ac_status=$? |
| 9497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9498 | rm -f conftest.er1 |
| 9499 | cat conftest.err >&5 |
| 9500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9501 | (exit $ac_status); } >/dev/null; then |
| 9502 | if test -s conftest.err; then |
| 9503 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9504 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9505 | else |
| 9506 | ac_cpp_err= |
| 9507 | fi |
| 9508 | else |
| 9509 | ac_cpp_err=yes |
| 9510 | fi |
| 9511 | if test -z "$ac_cpp_err"; then |
| 9512 | ac_header_preproc=yes |
| 9513 | else |
| 9514 | echo "$as_me: failed program was:" >&5 |
| 9515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9516 | |
| 9517 | ac_header_preproc=no |
| 9518 | fi |
| 9519 | |
| 9520 | rm -f conftest.err conftest.$ac_ext |
| 9521 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9522 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9523 | |
| 9524 | # So? What about this header? |
| 9525 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9526 | yes:no: ) |
| 9527 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9528 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9529 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9530 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9531 | ac_header_preproc=yes |
| 9532 | ;; |
| 9533 | no:yes:* ) |
| 9534 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9535 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9536 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9537 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9538 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9539 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9540 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9541 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9542 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9543 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9544 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9545 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9546 | ( cat <<\_ASBOX |
| 9547 | ## ----------------------------------- ## |
| 9548 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9549 | ## ----------------------------------- ## |
| 9550 | _ASBOX |
| 9551 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 9552 | ;; |
| 9553 | esac |
| 9554 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9555 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9556 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9558 | else |
| 9559 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9560 | fi |
| 9561 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9562 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9563 | echo "${ECHO_T}$ac_res" >&6; } |
| 9564 | |
| 9565 | fi |
| 9566 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9567 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9568 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9569 | _ACEOF |
| 9570 | |
| 9571 | fi |
| 9572 | |
| 9573 | done |
| 9574 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9575 | # Check whether --enable-ltdl-install was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9576 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9577 | enableval=$enable_ltdl_install; |
| 9578 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9579 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9580 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9581 | |
| 9582 | |
| 9583 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9584 | INSTALL_LTDL_TRUE= |
| 9585 | INSTALL_LTDL_FALSE='#' |
| 9586 | else |
| 9587 | INSTALL_LTDL_TRUE='#' |
| 9588 | INSTALL_LTDL_FALSE= |
| 9589 | fi |
| 9590 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9591 | |
| 9592 | |
| 9593 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9594 | CONVENIENCE_LTDL_TRUE= |
| 9595 | CONVENIENCE_LTDL_FALSE='#' |
| 9596 | else |
| 9597 | CONVENIENCE_LTDL_TRUE='#' |
| 9598 | CONVENIENCE_LTDL_FALSE= |
| 9599 | fi |
| 9600 | |
| 9601 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9602 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9603 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9604 | library_names_spec= |
| 9605 | libname_spec='lib$name' |
| 9606 | soname_spec= |
| 9607 | shrext_cmds=".so" |
| 9608 | postinstall_cmds= |
| 9609 | postuninstall_cmds= |
| 9610 | finish_cmds= |
| 9611 | finish_eval= |
| 9612 | shlibpath_var= |
| 9613 | shlibpath_overrides_runpath=unknown |
| 9614 | version_type=none |
| 9615 | dynamic_linker="$host_os ld.so" |
| 9616 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9617 | if test "$GCC" = yes; then |
| 9618 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9619 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 9620 | # if the path contains ";" then we assume it to be the separator |
| 9621 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9622 | # assumed that no part of a normal pathname contains ";" but that should |
| 9623 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9624 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9625 | else |
| 9626 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9627 | fi |
| 9628 | else |
| 9629 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9630 | fi |
| 9631 | need_lib_prefix=unknown |
| 9632 | hardcode_into_libs=no |
| 9633 | |
| 9634 | # when you set need_version to no, make sure it does not cause -set_version |
| 9635 | # flags to be left without arguments |
| 9636 | need_version=unknown |
| 9637 | |
| 9638 | case $host_os in |
| 9639 | aix3*) |
| 9640 | version_type=linux |
| 9641 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9642 | shlibpath_var=LIBPATH |
| 9643 | |
| 9644 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9645 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9646 | ;; |
| 9647 | |
| 9648 | aix4* | aix5*) |
| 9649 | version_type=linux |
| 9650 | need_lib_prefix=no |
| 9651 | need_version=no |
| 9652 | hardcode_into_libs=yes |
| 9653 | if test "$host_cpu" = ia64; then |
| 9654 | # AIX 5 supports IA64 |
| 9655 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9656 | shlibpath_var=LD_LIBRARY_PATH |
| 9657 | else |
| 9658 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9659 | # for dependence libraries. The import file would start with |
| 9660 | # the line `#! .'. This would cause the generated library to |
| 9661 | # depend on `.', always an invalid library. This was fixed in |
| 9662 | # development snapshots of GCC prior to 3.0. |
| 9663 | case $host_os in |
| 9664 | aix4 | aix4.[01] | aix4.[01].*) |
| 9665 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9666 | echo ' yes ' |
| 9667 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 9668 | : |
| 9669 | else |
| 9670 | can_build_shared=no |
| 9671 | fi |
| 9672 | ;; |
| 9673 | esac |
| 9674 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9675 | # soname into executable. Probably we can add versioning support to |
| 9676 | # collect2, so additional links can be useful in future. |
| 9677 | if test "$aix_use_runtimelinking" = yes; then |
| 9678 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9679 | # instead of lib<name>.a to let people know that these are not |
| 9680 | # typical AIX shared libraries. |
| 9681 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9682 | else |
| 9683 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9684 | # and later when we are not doing run time linking. |
| 9685 | library_names_spec='${libname}${release}.a $libname.a' |
| 9686 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9687 | fi |
| 9688 | shlibpath_var=LIBPATH |
| 9689 | fi |
| 9690 | ;; |
| 9691 | |
| 9692 | amigaos*) |
| 9693 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9694 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9695 | 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' |
| 9696 | ;; |
| 9697 | |
| 9698 | beos*) |
| 9699 | library_names_spec='${libname}${shared_ext}' |
| 9700 | dynamic_linker="$host_os ld.so" |
| 9701 | shlibpath_var=LIBRARY_PATH |
| 9702 | ;; |
| 9703 | |
| 9704 | bsdi[45]*) |
| 9705 | version_type=linux |
| 9706 | need_version=no |
| 9707 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9708 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9709 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9710 | shlibpath_var=LD_LIBRARY_PATH |
| 9711 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9712 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9713 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9714 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9715 | # libtool to hard-code these into programs |
| 9716 | ;; |
| 9717 | |
| 9718 | cygwin* | mingw* | pw32*) |
| 9719 | version_type=windows |
| 9720 | shrext_cmds=".dll" |
| 9721 | need_version=no |
| 9722 | need_lib_prefix=no |
| 9723 | |
| 9724 | case $GCC,$host_os in |
| 9725 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9726 | library_names_spec='$libname.dll.a' |
| 9727 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9728 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9729 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9730 | dldir=$destdir/`dirname \$dlpath`~ |
| 9731 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9732 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9733 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9734 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9735 | dlpath=$dir/\$dldll~ |
| 9736 | $rm \$dlpath' |
| 9737 | shlibpath_overrides_runpath=yes |
| 9738 | |
| 9739 | case $host_os in |
| 9740 | cygwin*) |
| 9741 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9742 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9743 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9744 | ;; |
| 9745 | mingw*) |
| 9746 | # MinGW DLLs use traditional 'lib' prefix |
| 9747 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9748 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9749 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9750 | # It is most probably a Windows format PATH printed by |
| 9751 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9752 | # path with ; separators, and with drive letters. We can handle the |
| 9753 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9754 | # especially as we might pass files found there to a mingw objdump, |
| 9755 | # which wouldn't understand a cygwinified path. Ahh. |
| 9756 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9757 | else |
| 9758 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9759 | fi |
| 9760 | ;; |
| 9761 | pw32*) |
| 9762 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9763 | 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] | 9764 | ;; |
| 9765 | esac |
| 9766 | ;; |
| 9767 | |
| 9768 | *) |
| 9769 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9770 | ;; |
| 9771 | esac |
| 9772 | dynamic_linker='Win32 ld.exe' |
| 9773 | # FIXME: first we should search . and the directory the executable is in |
| 9774 | shlibpath_var=PATH |
| 9775 | ;; |
| 9776 | |
| 9777 | darwin* | rhapsody*) |
| 9778 | dynamic_linker="$host_os dyld" |
| 9779 | version_type=darwin |
| 9780 | need_lib_prefix=no |
| 9781 | need_version=no |
| 9782 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9783 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9784 | shlibpath_overrides_runpath=yes |
| 9785 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9786 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9787 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9788 | if test "$GCC" = yes; then |
| 9789 | 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"` |
| 9790 | else |
| 9791 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9792 | fi |
| 9793 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9794 | ;; |
| 9795 | |
| 9796 | dgux*) |
| 9797 | version_type=linux |
| 9798 | need_lib_prefix=no |
| 9799 | need_version=no |
| 9800 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9801 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9802 | shlibpath_var=LD_LIBRARY_PATH |
| 9803 | ;; |
| 9804 | |
| 9805 | freebsd1*) |
| 9806 | dynamic_linker=no |
| 9807 | ;; |
| 9808 | |
| 9809 | kfreebsd*-gnu) |
| 9810 | version_type=linux |
| 9811 | need_lib_prefix=no |
| 9812 | need_version=no |
| 9813 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9814 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9815 | shlibpath_var=LD_LIBRARY_PATH |
| 9816 | shlibpath_overrides_runpath=no |
| 9817 | hardcode_into_libs=yes |
| 9818 | dynamic_linker='GNU ld.so' |
| 9819 | ;; |
| 9820 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9821 | freebsd* | dragonfly*) |
| 9822 | # DragonFly does not have aout. When/if they implement a new |
| 9823 | # versioning mechanism, adjust this. |
| 9824 | if test -x /usr/bin/objformat; then |
| 9825 | objformat=`/usr/bin/objformat` |
| 9826 | else |
| 9827 | case $host_os in |
| 9828 | freebsd[123]*) objformat=aout ;; |
| 9829 | *) objformat=elf ;; |
| 9830 | esac |
| 9831 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9832 | version_type=freebsd-$objformat |
| 9833 | case $version_type in |
| 9834 | freebsd-elf*) |
| 9835 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9836 | need_version=no |
| 9837 | need_lib_prefix=no |
| 9838 | ;; |
| 9839 | freebsd-*) |
| 9840 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9841 | need_version=yes |
| 9842 | ;; |
| 9843 | esac |
| 9844 | shlibpath_var=LD_LIBRARY_PATH |
| 9845 | case $host_os in |
| 9846 | freebsd2*) |
| 9847 | shlibpath_overrides_runpath=yes |
| 9848 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9849 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9850 | shlibpath_overrides_runpath=yes |
| 9851 | hardcode_into_libs=yes |
| 9852 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9853 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9854 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9855 | shlibpath_overrides_runpath=no |
| 9856 | hardcode_into_libs=yes |
| 9857 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9858 | freebsd*) # from 4.6 on |
| 9859 | shlibpath_overrides_runpath=yes |
| 9860 | hardcode_into_libs=yes |
| 9861 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9862 | esac |
| 9863 | ;; |
| 9864 | |
| 9865 | gnu*) |
| 9866 | version_type=linux |
| 9867 | need_lib_prefix=no |
| 9868 | need_version=no |
| 9869 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9870 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9871 | shlibpath_var=LD_LIBRARY_PATH |
| 9872 | hardcode_into_libs=yes |
| 9873 | ;; |
| 9874 | |
| 9875 | hpux9* | hpux10* | hpux11*) |
| 9876 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9877 | # link against other versions. |
| 9878 | version_type=sunos |
| 9879 | need_lib_prefix=no |
| 9880 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9881 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9882 | ia64*) |
| 9883 | shrext_cmds='.so' |
| 9884 | hardcode_into_libs=yes |
| 9885 | dynamic_linker="$host_os dld.so" |
| 9886 | shlibpath_var=LD_LIBRARY_PATH |
| 9887 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9888 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9889 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9890 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9891 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9892 | else |
| 9893 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9894 | fi |
| 9895 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9896 | ;; |
| 9897 | hppa*64*) |
| 9898 | shrext_cmds='.sl' |
| 9899 | hardcode_into_libs=yes |
| 9900 | dynamic_linker="$host_os dld.sl" |
| 9901 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9902 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9903 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9904 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9905 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9906 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9907 | ;; |
| 9908 | *) |
| 9909 | shrext_cmds='.sl' |
| 9910 | dynamic_linker="$host_os dld.sl" |
| 9911 | shlibpath_var=SHLIB_PATH |
| 9912 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9913 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9914 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9915 | ;; |
| 9916 | esac |
| 9917 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9918 | postinstall_cmds='chmod 555 $lib' |
| 9919 | ;; |
| 9920 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9921 | interix3*) |
| 9922 | version_type=linux |
| 9923 | need_lib_prefix=no |
| 9924 | need_version=no |
| 9925 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9926 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9927 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9928 | shlibpath_var=LD_LIBRARY_PATH |
| 9929 | shlibpath_overrides_runpath=no |
| 9930 | hardcode_into_libs=yes |
| 9931 | ;; |
| 9932 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9933 | irix5* | irix6* | nonstopux*) |
| 9934 | case $host_os in |
| 9935 | nonstopux*) version_type=nonstopux ;; |
| 9936 | *) |
| 9937 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9938 | version_type=linux |
| 9939 | else |
| 9940 | version_type=irix |
| 9941 | fi ;; |
| 9942 | esac |
| 9943 | need_lib_prefix=no |
| 9944 | need_version=no |
| 9945 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9946 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9947 | case $host_os in |
| 9948 | irix5* | nonstopux*) |
| 9949 | libsuff= shlibsuff= |
| 9950 | ;; |
| 9951 | *) |
| 9952 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9953 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9954 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9955 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9956 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9957 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9958 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9959 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9960 | esac |
| 9961 | ;; |
| 9962 | esac |
| 9963 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9964 | shlibpath_overrides_runpath=no |
| 9965 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9966 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9967 | hardcode_into_libs=yes |
| 9968 | ;; |
| 9969 | |
| 9970 | # No shared lib support for Linux oldld, aout, or coff. |
| 9971 | linux*oldld* | linux*aout* | linux*coff*) |
| 9972 | dynamic_linker=no |
| 9973 | ;; |
| 9974 | |
| 9975 | # This must be Linux ELF. |
| 9976 | linux*) |
| 9977 | version_type=linux |
| 9978 | need_lib_prefix=no |
| 9979 | need_version=no |
| 9980 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9981 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9982 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9983 | shlibpath_var=LD_LIBRARY_PATH |
| 9984 | shlibpath_overrides_runpath=no |
| 9985 | # This implies no fast_install, which is unacceptable. |
| 9986 | # Some rework will be needed to allow for fast_install |
| 9987 | # before this can be enabled. |
| 9988 | hardcode_into_libs=yes |
| 9989 | |
| 9990 | # Append ld.so.conf contents to the search path |
| 9991 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9992 | 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] | 9993 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9994 | fi |
| 9995 | |
| 9996 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9997 | # powerpc, because MkLinux only supported shared libraries with the |
| 9998 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9999 | # most powerpc-linux boxes support dynamic linking these days and |
| 10000 | # people can always --disable-shared, the test was removed, and we |
| 10001 | # assume the GNU/Linux dynamic linker is in use. |
| 10002 | dynamic_linker='GNU/Linux ld.so' |
| 10003 | ;; |
| 10004 | |
| 10005 | knetbsd*-gnu) |
| 10006 | version_type=linux |
| 10007 | need_lib_prefix=no |
| 10008 | need_version=no |
| 10009 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10010 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10011 | shlibpath_var=LD_LIBRARY_PATH |
| 10012 | shlibpath_overrides_runpath=no |
| 10013 | hardcode_into_libs=yes |
| 10014 | dynamic_linker='GNU ld.so' |
| 10015 | ;; |
| 10016 | |
| 10017 | netbsd*) |
| 10018 | version_type=sunos |
| 10019 | need_lib_prefix=no |
| 10020 | need_version=no |
| 10021 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 10022 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10023 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10024 | dynamic_linker='NetBSD (a.out) ld.so' |
| 10025 | else |
| 10026 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10027 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10028 | dynamic_linker='NetBSD ld.elf_so' |
| 10029 | fi |
| 10030 | shlibpath_var=LD_LIBRARY_PATH |
| 10031 | shlibpath_overrides_runpath=yes |
| 10032 | hardcode_into_libs=yes |
| 10033 | ;; |
| 10034 | |
| 10035 | newsos6) |
| 10036 | version_type=linux |
| 10037 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10038 | shlibpath_var=LD_LIBRARY_PATH |
| 10039 | shlibpath_overrides_runpath=yes |
| 10040 | ;; |
| 10041 | |
| 10042 | nto-qnx*) |
| 10043 | version_type=linux |
| 10044 | need_lib_prefix=no |
| 10045 | need_version=no |
| 10046 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10047 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10048 | shlibpath_var=LD_LIBRARY_PATH |
| 10049 | shlibpath_overrides_runpath=yes |
| 10050 | ;; |
| 10051 | |
| 10052 | openbsd*) |
| 10053 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10054 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10055 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10056 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 10057 | case $host_os in |
| 10058 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 10059 | *) need_version=no ;; |
| 10060 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10061 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10062 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10063 | shlibpath_var=LD_LIBRARY_PATH |
| 10064 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10065 | case $host_os in |
| 10066 | openbsd2.[89] | openbsd2.[89].*) |
| 10067 | shlibpath_overrides_runpath=no |
| 10068 | ;; |
| 10069 | *) |
| 10070 | shlibpath_overrides_runpath=yes |
| 10071 | ;; |
| 10072 | esac |
| 10073 | else |
| 10074 | shlibpath_overrides_runpath=yes |
| 10075 | fi |
| 10076 | ;; |
| 10077 | |
| 10078 | os2*) |
| 10079 | libname_spec='$name' |
| 10080 | shrext_cmds=".dll" |
| 10081 | need_lib_prefix=no |
| 10082 | library_names_spec='$libname${shared_ext} $libname.a' |
| 10083 | dynamic_linker='OS/2 ld.exe' |
| 10084 | shlibpath_var=LIBPATH |
| 10085 | ;; |
| 10086 | |
| 10087 | osf3* | osf4* | osf5*) |
| 10088 | version_type=osf |
| 10089 | need_lib_prefix=no |
| 10090 | need_version=no |
| 10091 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10092 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10093 | shlibpath_var=LD_LIBRARY_PATH |
| 10094 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 10095 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10096 | ;; |
| 10097 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10098 | solaris*) |
| 10099 | version_type=linux |
| 10100 | need_lib_prefix=no |
| 10101 | need_version=no |
| 10102 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10103 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10104 | shlibpath_var=LD_LIBRARY_PATH |
| 10105 | shlibpath_overrides_runpath=yes |
| 10106 | hardcode_into_libs=yes |
| 10107 | # ldd complains unless libraries are executable |
| 10108 | postinstall_cmds='chmod +x $lib' |
| 10109 | ;; |
| 10110 | |
| 10111 | sunos4*) |
| 10112 | version_type=sunos |
| 10113 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10114 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10115 | shlibpath_var=LD_LIBRARY_PATH |
| 10116 | shlibpath_overrides_runpath=yes |
| 10117 | if test "$with_gnu_ld" = yes; then |
| 10118 | need_lib_prefix=no |
| 10119 | fi |
| 10120 | need_version=yes |
| 10121 | ;; |
| 10122 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10123 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10124 | version_type=linux |
| 10125 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10126 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10127 | shlibpath_var=LD_LIBRARY_PATH |
| 10128 | case $host_vendor in |
| 10129 | sni) |
| 10130 | shlibpath_overrides_runpath=no |
| 10131 | need_lib_prefix=no |
| 10132 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 10133 | runpath_var=LD_RUN_PATH |
| 10134 | ;; |
| 10135 | siemens) |
| 10136 | need_lib_prefix=no |
| 10137 | ;; |
| 10138 | motorola) |
| 10139 | need_lib_prefix=no |
| 10140 | need_version=no |
| 10141 | shlibpath_overrides_runpath=no |
| 10142 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 10143 | ;; |
| 10144 | esac |
| 10145 | ;; |
| 10146 | |
| 10147 | sysv4*MP*) |
| 10148 | if test -d /usr/nec ;then |
| 10149 | version_type=linux |
| 10150 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 10151 | soname_spec='$libname${shared_ext}.$major' |
| 10152 | shlibpath_var=LD_LIBRARY_PATH |
| 10153 | fi |
| 10154 | ;; |
| 10155 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10156 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10157 | version_type=freebsd-elf |
| 10158 | need_lib_prefix=no |
| 10159 | need_version=no |
| 10160 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10161 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10162 | shlibpath_var=LD_LIBRARY_PATH |
| 10163 | hardcode_into_libs=yes |
| 10164 | if test "$with_gnu_ld" = yes; then |
| 10165 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 10166 | shlibpath_overrides_runpath=no |
| 10167 | else |
| 10168 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 10169 | shlibpath_overrides_runpath=yes |
| 10170 | case $host_os in |
| 10171 | sco3.2v5*) |
| 10172 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 10173 | ;; |
| 10174 | esac |
| 10175 | fi |
| 10176 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 10177 | ;; |
| 10178 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10179 | uts4*) |
| 10180 | version_type=linux |
| 10181 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10182 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10183 | shlibpath_var=LD_LIBRARY_PATH |
| 10184 | ;; |
| 10185 | |
| 10186 | *) |
| 10187 | dynamic_linker=no |
| 10188 | ;; |
| 10189 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10190 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 10191 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10192 | test "$dynamic_linker" = no && can_build_shared=no |
| 10193 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10194 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10195 | if test "$GCC" = yes; then |
| 10196 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10197 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10198 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10199 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10200 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 10201 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
| 10202 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 10203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10204 | else |
| 10205 | |
| 10206 | module=yes |
| 10207 | eval libltdl_cv_shlibext=$shrext_cmds |
| 10208 | |
| 10209 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10210 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 10211 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10212 | if test -n "$libltdl_cv_shlibext"; then |
| 10213 | |
| 10214 | cat >>confdefs.h <<_ACEOF |
| 10215 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 10216 | _ACEOF |
| 10217 | |
| 10218 | fi |
| 10219 | |
| 10220 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10221 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 10222 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
| 10223 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 10224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10225 | else |
| 10226 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 10227 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10228 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 10229 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10230 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 10231 | |
| 10232 | cat >>confdefs.h <<_ACEOF |
| 10233 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 10234 | _ACEOF |
| 10235 | |
| 10236 | fi |
| 10237 | |
| 10238 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10239 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 10240 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
| 10241 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 10242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10243 | else |
| 10244 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 10245 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10246 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 10247 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10248 | if test -n "$libltdl_cv_sys_search_path"; then |
| 10249 | sys_search_path= |
| 10250 | for dir in $libltdl_cv_sys_search_path; do |
| 10251 | if test -z "$sys_search_path"; then |
| 10252 | sys_search_path="$dir" |
| 10253 | else |
| 10254 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 10255 | fi |
| 10256 | done |
| 10257 | |
| 10258 | cat >>confdefs.h <<_ACEOF |
| 10259 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 10260 | _ACEOF |
| 10261 | |
| 10262 | fi |
| 10263 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10264 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 10265 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 10266 | if test "${libltdl_cv_objdir+set}" = set; then |
| 10267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10268 | else |
| 10269 | libltdl_cv_objdir="$objdir" |
| 10270 | if test -n "$objdir"; then |
| 10271 | : |
| 10272 | else |
| 10273 | rm -f .libs 2>/dev/null |
| 10274 | mkdir .libs 2>/dev/null |
| 10275 | if test -d .libs; then |
| 10276 | libltdl_cv_objdir=.libs |
| 10277 | else |
| 10278 | # MS-DOS does not allow filenames that begin with a dot. |
| 10279 | libltdl_cv_objdir=_libs |
| 10280 | fi |
| 10281 | rmdir .libs 2>/dev/null |
| 10282 | fi |
| 10283 | |
| 10284 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10285 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 10286 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10287 | |
| 10288 | cat >>confdefs.h <<_ACEOF |
| 10289 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 10290 | _ACEOF |
| 10291 | |
| 10292 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10293 | |
| 10294 | |
| 10295 | |
| 10296 | |
| 10297 | # 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] | 10298 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 10299 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 10300 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 10301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10302 | else |
| 10303 | |
| 10304 | # These are sane defaults that work on at least a few old systems. |
| 10305 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 10306 | |
| 10307 | # Character class describing NM global symbol codes. |
| 10308 | symcode='[BCDEGRST]' |
| 10309 | |
| 10310 | # Regexp to match symbols that can be accessed directly from C. |
| 10311 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 10312 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10313 | # Transform an extracted symbol line into a proper C declaration |
| 10314 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 10315 | |
| 10316 | # Transform an extracted symbol line into symbol name and symbol address |
| 10317 | 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'" |
| 10318 | |
| 10319 | # Define system-specific variables. |
| 10320 | case $host_os in |
| 10321 | aix*) |
| 10322 | symcode='[BCDT]' |
| 10323 | ;; |
| 10324 | cygwin* | mingw* | pw32*) |
| 10325 | symcode='[ABCDGISTW]' |
| 10326 | ;; |
| 10327 | hpux*) # Its linker distinguishes data from code symbols |
| 10328 | if test "$host_cpu" = ia64; then |
| 10329 | symcode='[ABCDEGRST]' |
| 10330 | fi |
| 10331 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10332 | 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'" |
| 10333 | ;; |
| 10334 | linux*) |
| 10335 | if test "$host_cpu" = ia64; then |
| 10336 | symcode='[ABCDGIRSTW]' |
| 10337 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10338 | 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'" |
| 10339 | fi |
| 10340 | ;; |
| 10341 | irix* | nonstopux*) |
| 10342 | symcode='[BCDEGRST]' |
| 10343 | ;; |
| 10344 | osf*) |
| 10345 | symcode='[BCDEGQRST]' |
| 10346 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10347 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10348 | symcode='[BDRT]' |
| 10349 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10350 | sco3.2v5*) |
| 10351 | symcode='[DT]' |
| 10352 | ;; |
| 10353 | sysv4.2uw2*) |
| 10354 | symcode='[DT]' |
| 10355 | ;; |
| 10356 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 10357 | symcode='[ABDT]' |
| 10358 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10359 | sysv4) |
| 10360 | symcode='[DFNSTU]' |
| 10361 | ;; |
| 10362 | esac |
| 10363 | |
| 10364 | # Handle CRLF in mingw tool chain |
| 10365 | opt_cr= |
| 10366 | case $build_os in |
| 10367 | mingw*) |
| 10368 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 10369 | ;; |
| 10370 | esac |
| 10371 | |
| 10372 | # If we're using GNU nm, then use its standard symbol codes. |
| 10373 | case `$NM -V 2>&1` in |
| 10374 | *GNU* | *'with BFD'*) |
| 10375 | symcode='[ABCDGIRSTW]' ;; |
| 10376 | esac |
| 10377 | |
| 10378 | # Try without a prefix undercore, then with it. |
| 10379 | for ac_symprfx in "" "_"; do |
| 10380 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10381 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 10382 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 10383 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10384 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10385 | 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] | 10386 | |
| 10387 | # Check to see that the pipe works correctly. |
| 10388 | pipe_works=no |
| 10389 | |
| 10390 | rm -f conftest* |
| 10391 | cat > conftest.$ac_ext <<EOF |
| 10392 | #ifdef __cplusplus |
| 10393 | extern "C" { |
| 10394 | #endif |
| 10395 | char nm_test_var; |
| 10396 | void nm_test_func(){} |
| 10397 | #ifdef __cplusplus |
| 10398 | } |
| 10399 | #endif |
| 10400 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 10401 | EOF |
| 10402 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10404 | (eval $ac_compile) 2>&5 |
| 10405 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10407 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10408 | # Now try to grab the symbols. |
| 10409 | nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10410 | 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] | 10411 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 10412 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10414 | (exit $ac_status); } && test -s "$nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10415 | # Try sorting and uniquifying the output. |
| 10416 | if sort "$nlist" | uniq > "$nlist"T; then |
| 10417 | mv -f "$nlist"T "$nlist" |
| 10418 | else |
| 10419 | rm -f "$nlist"T |
| 10420 | fi |
| 10421 | |
| 10422 | # Make sure that we snagged all the symbols we need. |
| 10423 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 10424 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 10425 | cat <<EOF > conftest.$ac_ext |
| 10426 | #ifdef __cplusplus |
| 10427 | extern "C" { |
| 10428 | #endif |
| 10429 | |
| 10430 | EOF |
| 10431 | # Now generate the symbol file. |
| 10432 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 10433 | |
| 10434 | cat <<EOF >> conftest.$ac_ext |
| 10435 | #if defined (__STDC__) && __STDC__ |
| 10436 | # define lt_ptr_t void * |
| 10437 | #else |
| 10438 | # define lt_ptr_t char * |
| 10439 | # define const |
| 10440 | #endif |
| 10441 | |
| 10442 | /* The mapping between symbol names and symbols. */ |
| 10443 | const struct { |
| 10444 | const char *name; |
| 10445 | lt_ptr_t address; |
| 10446 | } |
| 10447 | lt_preloaded_symbols[] = |
| 10448 | { |
| 10449 | EOF |
| 10450 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 10451 | cat <<\EOF >> conftest.$ac_ext |
| 10452 | {0, (lt_ptr_t) 0} |
| 10453 | }; |
| 10454 | |
| 10455 | #ifdef __cplusplus |
| 10456 | } |
| 10457 | #endif |
| 10458 | EOF |
| 10459 | # Now try linking the two files. |
| 10460 | mv conftest.$ac_objext conftstm.$ac_objext |
| 10461 | lt_save_LIBS="$LIBS" |
| 10462 | lt_save_CFLAGS="$CFLAGS" |
| 10463 | LIBS="conftstm.$ac_objext" |
| 10464 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10465 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10466 | (eval $ac_link) 2>&5 |
| 10467 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10469 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10470 | pipe_works=yes |
| 10471 | fi |
| 10472 | LIBS="$lt_save_LIBS" |
| 10473 | CFLAGS="$lt_save_CFLAGS" |
| 10474 | else |
| 10475 | echo "cannot find nm_test_func in $nlist" >&5 |
| 10476 | fi |
| 10477 | else |
| 10478 | echo "cannot find nm_test_var in $nlist" >&5 |
| 10479 | fi |
| 10480 | else |
| 10481 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10482 | fi |
| 10483 | else |
| 10484 | echo "$progname: failed program was:" >&5 |
| 10485 | cat conftest.$ac_ext >&5 |
| 10486 | fi |
| 10487 | rm -f conftest* conftst* |
| 10488 | |
| 10489 | # Do not use the global_symbol_pipe unless it works. |
| 10490 | if test "$pipe_works" = yes; then |
| 10491 | break |
| 10492 | else |
| 10493 | lt_cv_sys_global_symbol_pipe= |
| 10494 | fi |
| 10495 | done |
| 10496 | |
| 10497 | fi |
| 10498 | |
| 10499 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 10500 | lt_cv_sys_global_symbol_to_cdecl= |
| 10501 | fi |
| 10502 | 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] | 10503 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 10504 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10505 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10506 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 10507 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10508 | fi |
| 10509 | |
| 10510 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10511 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 10512 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
| 10513 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 10514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10515 | else |
| 10516 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 10517 | libltdl_cv_preloaded_symbols=yes |
| 10518 | else |
| 10519 | libltdl_cv_preloaded_symbols=no |
| 10520 | fi |
| 10521 | |
| 10522 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10523 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 10524 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10525 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 10526 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10527 | cat >>confdefs.h <<\_ACEOF |
| 10528 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 10529 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10530 | |
| 10531 | fi |
| 10532 | |
| 10533 | LIBADD_DL= |
| 10534 | |
| 10535 | ac_ext=c |
| 10536 | ac_cpp='$CPP $CPPFLAGS' |
| 10537 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10538 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10539 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10540 | |
| 10541 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10542 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10543 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 10544 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 10545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10546 | else |
| 10547 | cat >conftest.$ac_ext <<_ACEOF |
| 10548 | /* confdefs.h. */ |
| 10549 | _ACEOF |
| 10550 | cat confdefs.h >>conftest.$ac_ext |
| 10551 | cat >>conftest.$ac_ext <<_ACEOF |
| 10552 | /* end confdefs.h. */ |
| 10553 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10554 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10555 | #define shl_load innocuous_shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10556 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10557 | /* System header to define __stub macros and hopefully few prototypes, |
| 10558 | which can conflict with char shl_load (); below. |
| 10559 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10560 | <limits.h> exists even on freestanding compilers. */ |
| 10561 | |
| 10562 | #ifdef __STDC__ |
| 10563 | # include <limits.h> |
| 10564 | #else |
| 10565 | # include <assert.h> |
| 10566 | #endif |
| 10567 | |
| 10568 | #undef shl_load |
| 10569 | |
| 10570 | /* Override any GCC internal prototype to avoid an error. |
| 10571 | Use char because int might match the return type of a GCC |
| 10572 | builtin and then its argument prototype would still apply. */ |
| 10573 | #ifdef __cplusplus |
| 10574 | extern "C" |
| 10575 | #endif |
| 10576 | char shl_load (); |
| 10577 | /* The GNU C library defines this for functions which it implements |
| 10578 | to always fail with ENOSYS. Some functions are actually named |
| 10579 | something starting with __ and the normal name is an alias. */ |
| 10580 | #if defined __stub_shl_load || defined __stub___shl_load |
| 10581 | choke me |
| 10582 | #endif |
| 10583 | |
| 10584 | int |
| 10585 | main () |
| 10586 | { |
| 10587 | return shl_load (); |
| 10588 | ; |
| 10589 | return 0; |
| 10590 | } |
| 10591 | _ACEOF |
| 10592 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10593 | if { (ac_try="$ac_link" |
| 10594 | case "(($ac_try" in |
| 10595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10596 | *) ac_try_echo=$ac_try;; |
| 10597 | esac |
| 10598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10599 | (eval "$ac_link") 2>conftest.er1 |
| 10600 | ac_status=$? |
| 10601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10602 | rm -f conftest.er1 |
| 10603 | cat conftest.err >&5 |
| 10604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10605 | (exit $ac_status); } && |
| 10606 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10607 | { (case "(($ac_try" in |
| 10608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10609 | *) ac_try_echo=$ac_try;; |
| 10610 | esac |
| 10611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10612 | (eval "$ac_try") 2>&5 |
| 10613 | ac_status=$? |
| 10614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10615 | (exit $ac_status); }; } && |
| 10616 | { ac_try='test -s conftest$ac_exeext' |
| 10617 | { (case "(($ac_try" in |
| 10618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10619 | *) ac_try_echo=$ac_try;; |
| 10620 | esac |
| 10621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10622 | (eval "$ac_try") 2>&5 |
| 10623 | ac_status=$? |
| 10624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10625 | (exit $ac_status); }; }; then |
| 10626 | ac_cv_func_shl_load=yes |
| 10627 | else |
| 10628 | echo "$as_me: failed program was:" >&5 |
| 10629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10630 | |
| 10631 | ac_cv_func_shl_load=no |
| 10632 | fi |
| 10633 | |
| 10634 | rm -f core conftest.err conftest.$ac_objext \ |
| 10635 | conftest$ac_exeext conftest.$ac_ext |
| 10636 | fi |
| 10637 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10638 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 10639 | if test $ac_cv_func_shl_load = yes; then |
| 10640 | |
| 10641 | cat >>confdefs.h <<\_ACEOF |
| 10642 | #define HAVE_SHL_LOAD 1 |
| 10643 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10644 | |
| 10645 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10646 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10647 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 10648 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10650 | else |
| 10651 | ac_check_lib_save_LIBS=$LIBS |
| 10652 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10653 | cat >conftest.$ac_ext <<_ACEOF |
| 10654 | /* confdefs.h. */ |
| 10655 | _ACEOF |
| 10656 | cat confdefs.h >>conftest.$ac_ext |
| 10657 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10658 | /* end confdefs.h. */ |
| 10659 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10660 | /* Override any GCC internal prototype to avoid an error. |
| 10661 | Use char because int might match the return type of a GCC |
| 10662 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10663 | #ifdef __cplusplus |
| 10664 | extern "C" |
| 10665 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10666 | char shl_load (); |
| 10667 | int |
| 10668 | main () |
| 10669 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10670 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10671 | ; |
| 10672 | return 0; |
| 10673 | } |
| 10674 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10675 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10676 | if { (ac_try="$ac_link" |
| 10677 | case "(($ac_try" in |
| 10678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10679 | *) ac_try_echo=$ac_try;; |
| 10680 | esac |
| 10681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10682 | (eval "$ac_link") 2>conftest.er1 |
| 10683 | ac_status=$? |
| 10684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10685 | rm -f conftest.er1 |
| 10686 | cat conftest.err >&5 |
| 10687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10688 | (exit $ac_status); } && |
| 10689 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10690 | { (case "(($ac_try" in |
| 10691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10692 | *) ac_try_echo=$ac_try;; |
| 10693 | esac |
| 10694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10695 | (eval "$ac_try") 2>&5 |
| 10696 | ac_status=$? |
| 10697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10698 | (exit $ac_status); }; } && |
| 10699 | { ac_try='test -s conftest$ac_exeext' |
| 10700 | { (case "(($ac_try" in |
| 10701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10702 | *) ac_try_echo=$ac_try;; |
| 10703 | esac |
| 10704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10705 | (eval "$ac_try") 2>&5 |
| 10706 | ac_status=$? |
| 10707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10708 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10709 | ac_cv_lib_dld_shl_load=yes |
| 10710 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10711 | echo "$as_me: failed program was:" >&5 |
| 10712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10713 | |
| 10714 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10715 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10716 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10717 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10718 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10719 | LIBS=$ac_check_lib_save_LIBS |
| 10720 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10721 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10722 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 10723 | if test $ac_cv_lib_dld_shl_load = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10724 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10725 | cat >>confdefs.h <<\_ACEOF |
| 10726 | #define HAVE_SHL_LOAD 1 |
| 10727 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10728 | |
| 10729 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10730 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10731 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10732 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 10733 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10735 | else |
| 10736 | ac_check_lib_save_LIBS=$LIBS |
| 10737 | LIBS="-ldl $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10738 | cat >conftest.$ac_ext <<_ACEOF |
| 10739 | /* confdefs.h. */ |
| 10740 | _ACEOF |
| 10741 | cat confdefs.h >>conftest.$ac_ext |
| 10742 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10743 | /* end confdefs.h. */ |
| 10744 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10745 | /* Override any GCC internal prototype to avoid an error. |
| 10746 | Use char because int might match the return type of a GCC |
| 10747 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10748 | #ifdef __cplusplus |
| 10749 | extern "C" |
| 10750 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10751 | char dlopen (); |
| 10752 | int |
| 10753 | main () |
| 10754 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10755 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10756 | ; |
| 10757 | return 0; |
| 10758 | } |
| 10759 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10760 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10761 | if { (ac_try="$ac_link" |
| 10762 | case "(($ac_try" in |
| 10763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10764 | *) ac_try_echo=$ac_try;; |
| 10765 | esac |
| 10766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10767 | (eval "$ac_link") 2>conftest.er1 |
| 10768 | ac_status=$? |
| 10769 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10770 | rm -f conftest.er1 |
| 10771 | cat conftest.err >&5 |
| 10772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10773 | (exit $ac_status); } && |
| 10774 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10775 | { (case "(($ac_try" in |
| 10776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10777 | *) ac_try_echo=$ac_try;; |
| 10778 | esac |
| 10779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10780 | (eval "$ac_try") 2>&5 |
| 10781 | ac_status=$? |
| 10782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10783 | (exit $ac_status); }; } && |
| 10784 | { ac_try='test -s conftest$ac_exeext' |
| 10785 | { (case "(($ac_try" in |
| 10786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10787 | *) ac_try_echo=$ac_try;; |
| 10788 | esac |
| 10789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10790 | (eval "$ac_try") 2>&5 |
| 10791 | ac_status=$? |
| 10792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10793 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10794 | ac_cv_lib_dl_dlopen=yes |
| 10795 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10796 | echo "$as_me: failed program was:" >&5 |
| 10797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10798 | |
| 10799 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10800 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10801 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10802 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10803 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10804 | LIBS=$ac_check_lib_save_LIBS |
| 10805 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10806 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10807 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 10808 | if test $ac_cv_lib_dl_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10809 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10810 | cat >>confdefs.h <<\_ACEOF |
| 10811 | #define HAVE_LIBDL 1 |
| 10812 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10813 | |
| 10814 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 10815 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10816 | cat >conftest.$ac_ext <<_ACEOF |
| 10817 | /* confdefs.h. */ |
| 10818 | _ACEOF |
| 10819 | cat confdefs.h >>conftest.$ac_ext |
| 10820 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10821 | /* end confdefs.h. */ |
| 10822 | #if HAVE_DLFCN_H |
| 10823 | # include <dlfcn.h> |
| 10824 | #endif |
| 10825 | |
| 10826 | int |
| 10827 | main () |
| 10828 | { |
| 10829 | dlopen(0, 0); |
| 10830 | ; |
| 10831 | return 0; |
| 10832 | } |
| 10833 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10834 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10835 | if { (ac_try="$ac_link" |
| 10836 | case "(($ac_try" in |
| 10837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10838 | *) ac_try_echo=$ac_try;; |
| 10839 | esac |
| 10840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10841 | (eval "$ac_link") 2>conftest.er1 |
| 10842 | ac_status=$? |
| 10843 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10844 | rm -f conftest.er1 |
| 10845 | cat conftest.err >&5 |
| 10846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10847 | (exit $ac_status); } && |
| 10848 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10849 | { (case "(($ac_try" in |
| 10850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10851 | *) ac_try_echo=$ac_try;; |
| 10852 | esac |
| 10853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10854 | (eval "$ac_try") 2>&5 |
| 10855 | ac_status=$? |
| 10856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10857 | (exit $ac_status); }; } && |
| 10858 | { ac_try='test -s conftest$ac_exeext' |
| 10859 | { (case "(($ac_try" in |
| 10860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10861 | *) ac_try_echo=$ac_try;; |
| 10862 | esac |
| 10863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10864 | (eval "$ac_try") 2>&5 |
| 10865 | ac_status=$? |
| 10866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10867 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10868 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10869 | cat >>confdefs.h <<\_ACEOF |
| 10870 | #define HAVE_LIBDL 1 |
| 10871 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10872 | libltdl_cv_func_dlopen="yes" |
| 10873 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10874 | echo "$as_me: failed program was:" >&5 |
| 10875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10876 | |
| 10877 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10878 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 10879 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10881 | else |
| 10882 | ac_check_lib_save_LIBS=$LIBS |
| 10883 | LIBS="-lsvld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10884 | cat >conftest.$ac_ext <<_ACEOF |
| 10885 | /* confdefs.h. */ |
| 10886 | _ACEOF |
| 10887 | cat confdefs.h >>conftest.$ac_ext |
| 10888 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10889 | /* end confdefs.h. */ |
| 10890 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10891 | /* Override any GCC internal prototype to avoid an error. |
| 10892 | Use char because int might match the return type of a GCC |
| 10893 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10894 | #ifdef __cplusplus |
| 10895 | extern "C" |
| 10896 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10897 | char dlopen (); |
| 10898 | int |
| 10899 | main () |
| 10900 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10901 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10902 | ; |
| 10903 | return 0; |
| 10904 | } |
| 10905 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10906 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10907 | if { (ac_try="$ac_link" |
| 10908 | case "(($ac_try" in |
| 10909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10910 | *) ac_try_echo=$ac_try;; |
| 10911 | esac |
| 10912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10913 | (eval "$ac_link") 2>conftest.er1 |
| 10914 | ac_status=$? |
| 10915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10916 | rm -f conftest.er1 |
| 10917 | cat conftest.err >&5 |
| 10918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10919 | (exit $ac_status); } && |
| 10920 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10921 | { (case "(($ac_try" in |
| 10922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10923 | *) ac_try_echo=$ac_try;; |
| 10924 | esac |
| 10925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10926 | (eval "$ac_try") 2>&5 |
| 10927 | ac_status=$? |
| 10928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10929 | (exit $ac_status); }; } && |
| 10930 | { ac_try='test -s conftest$ac_exeext' |
| 10931 | { (case "(($ac_try" in |
| 10932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10933 | *) ac_try_echo=$ac_try;; |
| 10934 | esac |
| 10935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10936 | (eval "$ac_try") 2>&5 |
| 10937 | ac_status=$? |
| 10938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10939 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10940 | ac_cv_lib_svld_dlopen=yes |
| 10941 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10942 | echo "$as_me: failed program was:" >&5 |
| 10943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10944 | |
| 10945 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10946 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10947 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10948 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10949 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10950 | LIBS=$ac_check_lib_save_LIBS |
| 10951 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10952 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10953 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 10954 | if test $ac_cv_lib_svld_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10955 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10956 | cat >>confdefs.h <<\_ACEOF |
| 10957 | #define HAVE_LIBDL 1 |
| 10958 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10959 | |
| 10960 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10961 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10962 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10963 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 10964 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10966 | else |
| 10967 | ac_check_lib_save_LIBS=$LIBS |
| 10968 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10969 | cat >conftest.$ac_ext <<_ACEOF |
| 10970 | /* confdefs.h. */ |
| 10971 | _ACEOF |
| 10972 | cat confdefs.h >>conftest.$ac_ext |
| 10973 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10974 | /* end confdefs.h. */ |
| 10975 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10976 | /* Override any GCC internal prototype to avoid an error. |
| 10977 | Use char because int might match the return type of a GCC |
| 10978 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10979 | #ifdef __cplusplus |
| 10980 | extern "C" |
| 10981 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10982 | char dld_link (); |
| 10983 | int |
| 10984 | main () |
| 10985 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10986 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10987 | ; |
| 10988 | return 0; |
| 10989 | } |
| 10990 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10991 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10992 | if { (ac_try="$ac_link" |
| 10993 | case "(($ac_try" in |
| 10994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10995 | *) ac_try_echo=$ac_try;; |
| 10996 | esac |
| 10997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10998 | (eval "$ac_link") 2>conftest.er1 |
| 10999 | ac_status=$? |
| 11000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11001 | rm -f conftest.er1 |
| 11002 | cat conftest.err >&5 |
| 11003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11004 | (exit $ac_status); } && |
| 11005 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11006 | { (case "(($ac_try" in |
| 11007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11008 | *) ac_try_echo=$ac_try;; |
| 11009 | esac |
| 11010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11011 | (eval "$ac_try") 2>&5 |
| 11012 | ac_status=$? |
| 11013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11014 | (exit $ac_status); }; } && |
| 11015 | { ac_try='test -s conftest$ac_exeext' |
| 11016 | { (case "(($ac_try" in |
| 11017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11018 | *) ac_try_echo=$ac_try;; |
| 11019 | esac |
| 11020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11021 | (eval "$ac_try") 2>&5 |
| 11022 | ac_status=$? |
| 11023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11024 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11025 | ac_cv_lib_dld_dld_link=yes |
| 11026 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11027 | echo "$as_me: failed program was:" >&5 |
| 11028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11029 | |
| 11030 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11031 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11032 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11033 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11034 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11035 | LIBS=$ac_check_lib_save_LIBS |
| 11036 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11037 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11038 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 11039 | if test $ac_cv_lib_dld_dld_link = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11040 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11041 | cat >>confdefs.h <<\_ACEOF |
| 11042 | #define HAVE_DLD 1 |
| 11043 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11044 | |
| 11045 | LIBADD_DL="$LIBADD_DL -ldld" |
| 11046 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11047 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 11048 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
| 11049 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 11050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11051 | else |
| 11052 | cat >conftest.$ac_ext <<_ACEOF |
| 11053 | /* confdefs.h. */ |
| 11054 | _ACEOF |
| 11055 | cat confdefs.h >>conftest.$ac_ext |
| 11056 | cat >>conftest.$ac_ext <<_ACEOF |
| 11057 | /* end confdefs.h. */ |
| 11058 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 11059 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11060 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11061 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11062 | /* System header to define __stub macros and hopefully few prototypes, |
| 11063 | which can conflict with char _dyld_func_lookup (); below. |
| 11064 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11065 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11066 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11067 | #ifdef __STDC__ |
| 11068 | # include <limits.h> |
| 11069 | #else |
| 11070 | # include <assert.h> |
| 11071 | #endif |
| 11072 | |
| 11073 | #undef _dyld_func_lookup |
| 11074 | |
| 11075 | /* Override any GCC internal prototype to avoid an error. |
| 11076 | Use char because int might match the return type of a GCC |
| 11077 | builtin and then its argument prototype would still apply. */ |
| 11078 | #ifdef __cplusplus |
| 11079 | extern "C" |
| 11080 | #endif |
| 11081 | char _dyld_func_lookup (); |
| 11082 | /* The GNU C library defines this for functions which it implements |
| 11083 | to always fail with ENOSYS. Some functions are actually named |
| 11084 | something starting with __ and the normal name is an alias. */ |
| 11085 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
| 11086 | choke me |
| 11087 | #endif |
| 11088 | |
| 11089 | int |
| 11090 | main () |
| 11091 | { |
| 11092 | return _dyld_func_lookup (); |
| 11093 | ; |
| 11094 | return 0; |
| 11095 | } |
| 11096 | _ACEOF |
| 11097 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11098 | if { (ac_try="$ac_link" |
| 11099 | case "(($ac_try" in |
| 11100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11101 | *) ac_try_echo=$ac_try;; |
| 11102 | esac |
| 11103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11104 | (eval "$ac_link") 2>conftest.er1 |
| 11105 | ac_status=$? |
| 11106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11107 | rm -f conftest.er1 |
| 11108 | cat conftest.err >&5 |
| 11109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11110 | (exit $ac_status); } && |
| 11111 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11112 | { (case "(($ac_try" in |
| 11113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11114 | *) ac_try_echo=$ac_try;; |
| 11115 | esac |
| 11116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11117 | (eval "$ac_try") 2>&5 |
| 11118 | ac_status=$? |
| 11119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11120 | (exit $ac_status); }; } && |
| 11121 | { ac_try='test -s conftest$ac_exeext' |
| 11122 | { (case "(($ac_try" in |
| 11123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11124 | *) ac_try_echo=$ac_try;; |
| 11125 | esac |
| 11126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11127 | (eval "$ac_try") 2>&5 |
| 11128 | ac_status=$? |
| 11129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11130 | (exit $ac_status); }; }; then |
| 11131 | ac_cv_func__dyld_func_lookup=yes |
| 11132 | else |
| 11133 | echo "$as_me: failed program was:" >&5 |
| 11134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11135 | |
| 11136 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11137 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11138 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11139 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11140 | conftest$ac_exeext conftest.$ac_ext |
| 11141 | fi |
| 11142 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 11143 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
| 11144 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 11145 | |
| 11146 | cat >>confdefs.h <<\_ACEOF |
| 11147 | #define HAVE_DYLD 1 |
| 11148 | _ACEOF |
| 11149 | |
| 11150 | fi |
| 11151 | |
| 11152 | |
| 11153 | fi |
| 11154 | |
| 11155 | |
| 11156 | fi |
| 11157 | |
| 11158 | |
| 11159 | fi |
| 11160 | |
| 11161 | rm -f core conftest.err conftest.$ac_objext \ |
| 11162 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11163 | |
| 11164 | fi |
| 11165 | |
| 11166 | |
| 11167 | fi |
| 11168 | |
| 11169 | |
| 11170 | fi |
| 11171 | |
| 11172 | |
| 11173 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 11174 | then |
| 11175 | lt_save_LIBS="$LIBS" |
| 11176 | LIBS="$LIBS $LIBADD_DL" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11177 | |
| 11178 | for ac_func in dlerror |
| 11179 | do |
| 11180 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11181 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11182 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11183 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11185 | else |
| 11186 | cat >conftest.$ac_ext <<_ACEOF |
| 11187 | /* confdefs.h. */ |
| 11188 | _ACEOF |
| 11189 | cat confdefs.h >>conftest.$ac_ext |
| 11190 | cat >>conftest.$ac_ext <<_ACEOF |
| 11191 | /* end confdefs.h. */ |
| 11192 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11193 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11194 | #define $ac_func innocuous_$ac_func |
| 11195 | |
| 11196 | /* System header to define __stub macros and hopefully few prototypes, |
| 11197 | which can conflict with char $ac_func (); below. |
| 11198 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11199 | <limits.h> exists even on freestanding compilers. */ |
| 11200 | |
| 11201 | #ifdef __STDC__ |
| 11202 | # include <limits.h> |
| 11203 | #else |
| 11204 | # include <assert.h> |
| 11205 | #endif |
| 11206 | |
| 11207 | #undef $ac_func |
| 11208 | |
| 11209 | /* Override any GCC internal prototype to avoid an error. |
| 11210 | Use char because int might match the return type of a GCC |
| 11211 | builtin and then its argument prototype would still apply. */ |
| 11212 | #ifdef __cplusplus |
| 11213 | extern "C" |
| 11214 | #endif |
| 11215 | char $ac_func (); |
| 11216 | /* The GNU C library defines this for functions which it implements |
| 11217 | to always fail with ENOSYS. Some functions are actually named |
| 11218 | something starting with __ and the normal name is an alias. */ |
| 11219 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11220 | choke me |
| 11221 | #endif |
| 11222 | |
| 11223 | int |
| 11224 | main () |
| 11225 | { |
| 11226 | return $ac_func (); |
| 11227 | ; |
| 11228 | return 0; |
| 11229 | } |
| 11230 | _ACEOF |
| 11231 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11232 | if { (ac_try="$ac_link" |
| 11233 | case "(($ac_try" in |
| 11234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11235 | *) ac_try_echo=$ac_try;; |
| 11236 | esac |
| 11237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11238 | (eval "$ac_link") 2>conftest.er1 |
| 11239 | ac_status=$? |
| 11240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11241 | rm -f conftest.er1 |
| 11242 | cat conftest.err >&5 |
| 11243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11244 | (exit $ac_status); } && |
| 11245 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11246 | { (case "(($ac_try" in |
| 11247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11248 | *) ac_try_echo=$ac_try;; |
| 11249 | esac |
| 11250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11251 | (eval "$ac_try") 2>&5 |
| 11252 | ac_status=$? |
| 11253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11254 | (exit $ac_status); }; } && |
| 11255 | { ac_try='test -s conftest$ac_exeext' |
| 11256 | { (case "(($ac_try" in |
| 11257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11258 | *) ac_try_echo=$ac_try;; |
| 11259 | esac |
| 11260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11261 | (eval "$ac_try") 2>&5 |
| 11262 | ac_status=$? |
| 11263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11264 | (exit $ac_status); }; }; then |
| 11265 | eval "$as_ac_var=yes" |
| 11266 | else |
| 11267 | echo "$as_me: failed program was:" >&5 |
| 11268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11269 | |
| 11270 | eval "$as_ac_var=no" |
| 11271 | fi |
| 11272 | |
| 11273 | rm -f core conftest.err conftest.$ac_objext \ |
| 11274 | conftest$ac_exeext conftest.$ac_ext |
| 11275 | fi |
| 11276 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11277 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11278 | echo "${ECHO_T}$ac_res" >&6; } |
| 11279 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11280 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11281 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11282 | _ACEOF |
| 11283 | |
| 11284 | fi |
| 11285 | done |
| 11286 | |
| 11287 | LIBS="$lt_save_LIBS" |
| 11288 | fi |
| 11289 | ac_ext=c |
| 11290 | ac_cpp='$CPP $CPPFLAGS' |
| 11291 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11292 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11293 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11294 | |
| 11295 | |
| 11296 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11297 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 11298 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
| 11299 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 11300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11301 | else |
| 11302 | ac_cv_sys_symbol_underscore=no |
| 11303 | cat > conftest.$ac_ext <<EOF |
| 11304 | void nm_test_func(){} |
| 11305 | int main(){nm_test_func;return 0;} |
| 11306 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11308 | (eval $ac_compile) 2>&5 |
| 11309 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11311 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11312 | # Now try to grab the symbols. |
| 11313 | ac_nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11314 | 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] | 11315 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 11316 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11318 | (exit $ac_status); } && test -s "$ac_nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11319 | # See whether the symbols have a leading underscore. |
| 11320 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 11321 | ac_cv_sys_symbol_underscore=yes |
| 11322 | else |
| 11323 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 11324 | : |
| 11325 | else |
| 11326 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 11327 | fi |
| 11328 | fi |
| 11329 | else |
| 11330 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 11331 | fi |
| 11332 | else |
| 11333 | echo "configure: failed program was:" >&5 |
| 11334 | cat conftest.c >&5 |
| 11335 | fi |
| 11336 | rm -rf conftest* |
| 11337 | |
| 11338 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11339 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 11340 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11341 | |
| 11342 | |
| 11343 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 11344 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 11345 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11346 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 11347 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
| 11348 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 11349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11350 | else |
| 11351 | libltdl_cv_need_uscore=unknown |
| 11352 | save_LIBS="$LIBS" |
| 11353 | LIBS="$LIBS $LIBADD_DL" |
| 11354 | if test "$cross_compiling" = yes; then : |
| 11355 | libltdl_cv_need_uscore=cross |
| 11356 | else |
| 11357 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11358 | lt_status=$lt_dlunknown |
| 11359 | cat > conftest.$ac_ext <<EOF |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame^] | 11360 | #line 11360 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11361 | #include "confdefs.h" |
| 11362 | |
| 11363 | #if HAVE_DLFCN_H |
| 11364 | #include <dlfcn.h> |
| 11365 | #endif |
| 11366 | |
| 11367 | #include <stdio.h> |
| 11368 | |
| 11369 | #ifdef RTLD_GLOBAL |
| 11370 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11371 | #else |
| 11372 | # ifdef DL_GLOBAL |
| 11373 | # define LT_DLGLOBAL DL_GLOBAL |
| 11374 | # else |
| 11375 | # define LT_DLGLOBAL 0 |
| 11376 | # endif |
| 11377 | #endif |
| 11378 | |
| 11379 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11380 | find out it does not work in some platform. */ |
| 11381 | #ifndef LT_DLLAZY_OR_NOW |
| 11382 | # ifdef RTLD_LAZY |
| 11383 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11384 | # else |
| 11385 | # ifdef DL_LAZY |
| 11386 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11387 | # else |
| 11388 | # ifdef RTLD_NOW |
| 11389 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11390 | # else |
| 11391 | # ifdef DL_NOW |
| 11392 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11393 | # else |
| 11394 | # define LT_DLLAZY_OR_NOW 0 |
| 11395 | # endif |
| 11396 | # endif |
| 11397 | # endif |
| 11398 | # endif |
| 11399 | #endif |
| 11400 | |
| 11401 | #ifdef __cplusplus |
| 11402 | extern "C" void exit (int); |
| 11403 | #endif |
| 11404 | |
| 11405 | void fnord() { int i=42;} |
| 11406 | int main () |
| 11407 | { |
| 11408 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11409 | int status = $lt_dlunknown; |
| 11410 | |
| 11411 | if (self) |
| 11412 | { |
| 11413 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11414 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11415 | /* dlclose (self); */ |
| 11416 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11417 | else |
| 11418 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11419 | |
| 11420 | exit (status); |
| 11421 | } |
| 11422 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11423 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11424 | (eval $ac_link) 2>&5 |
| 11425 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11427 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11428 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11429 | lt_status=$? |
| 11430 | case x$lt_status in |
| 11431 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 11432 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11433 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11434 | esac |
| 11435 | else : |
| 11436 | # compilation failed |
| 11437 | |
| 11438 | fi |
| 11439 | fi |
| 11440 | rm -fr conftest* |
| 11441 | |
| 11442 | LIBS="$save_LIBS" |
| 11443 | |
| 11444 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11445 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 11446 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11447 | fi |
| 11448 | fi |
| 11449 | |
| 11450 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 11451 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11452 | cat >>confdefs.h <<\_ACEOF |
| 11453 | #define NEED_USCORE 1 |
| 11454 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11455 | |
| 11456 | fi |
| 11457 | |
| 11458 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11459 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 11460 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
| 11461 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 11462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11463 | else |
| 11464 | # PORTME does your system automatically load deplibs for dlopen? |
| 11465 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 11466 | # For now, we just catch OSes we know something about -- in the |
| 11467 | # future, we'll try test this programmatically. |
| 11468 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11469 | case "$host_os" in |
| 11470 | aix3*|aix4.1.*|aix4.2.*) |
| 11471 | # Unknown whether this is true for these versions of AIX, but |
| 11472 | # we want this `case' here to explicitly catch those versions. |
| 11473 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11474 | ;; |
| 11475 | aix[45]*) |
| 11476 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11477 | ;; |
| 11478 | darwin*) |
| 11479 | # Assuming the user has installed a libdl from somewhere, this is true |
| 11480 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 11481 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11482 | ;; |
| 11483 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 11484 | # GNU and its variants, using gnu ld.so (Glibc) |
| 11485 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11486 | ;; |
| 11487 | hpux10*|hpux11*) |
| 11488 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11489 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11490 | interix*) |
| 11491 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11492 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11493 | irix[12345]*|irix6.[01]*) |
| 11494 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 11495 | # know how it worked for any of those versions. |
| 11496 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11497 | ;; |
| 11498 | irix*) |
| 11499 | # The case above catches anything before 6.2, and it's known that |
| 11500 | # at 6.2 and later dlopen does load deplibs. |
| 11501 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11502 | ;; |
| 11503 | netbsd*) |
| 11504 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11505 | ;; |
| 11506 | openbsd*) |
| 11507 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11508 | ;; |
| 11509 | osf[1234]*) |
| 11510 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 11511 | # it did *not* use an RPATH in a shared library to find objects the |
| 11512 | # library depends on, so we explictly say `no'. |
| 11513 | libltdl_cv_sys_dlopen_deplibs=no |
| 11514 | ;; |
| 11515 | osf5.0|osf5.0a|osf5.1) |
| 11516 | # dlopen *does* load deplibs and with the right loader patch applied |
| 11517 | # it even uses RPATH in a shared library to search for shared objects |
| 11518 | # that the library depends on, but there's no easy way to know if that |
| 11519 | # patch is installed. Since this is the case, all we can really |
| 11520 | # say is unknown -- it depends on the patch being installed. If |
| 11521 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 11522 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11523 | ;; |
| 11524 | osf*) |
| 11525 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 11526 | # the comments above for what we know about them. |
| 11527 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 11528 | # is used to find them so we can finally say `yes'. |
| 11529 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11530 | ;; |
| 11531 | solaris*) |
| 11532 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11533 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11534 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11535 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11536 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11537 | esac |
| 11538 | |
| 11539 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11540 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 11541 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11542 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 11543 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11544 | cat >>confdefs.h <<\_ACEOF |
| 11545 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 11546 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11547 | |
| 11548 | fi |
| 11549 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11550 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11551 | for ac_header in argz.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11552 | do |
| 11553 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11554 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11555 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11556 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11557 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11559 | fi |
| 11560 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11561 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11562 | echo "${ECHO_T}$ac_res" >&6; } |
| 11563 | else |
| 11564 | # Is the header compilable? |
| 11565 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11566 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11567 | cat >conftest.$ac_ext <<_ACEOF |
| 11568 | /* confdefs.h. */ |
| 11569 | _ACEOF |
| 11570 | cat confdefs.h >>conftest.$ac_ext |
| 11571 | cat >>conftest.$ac_ext <<_ACEOF |
| 11572 | /* end confdefs.h. */ |
| 11573 | $ac_includes_default |
| 11574 | #include <$ac_header> |
| 11575 | _ACEOF |
| 11576 | rm -f conftest.$ac_objext |
| 11577 | if { (ac_try="$ac_compile" |
| 11578 | case "(($ac_try" in |
| 11579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11580 | *) ac_try_echo=$ac_try;; |
| 11581 | esac |
| 11582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11583 | (eval "$ac_compile") 2>conftest.er1 |
| 11584 | ac_status=$? |
| 11585 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11586 | rm -f conftest.er1 |
| 11587 | cat conftest.err >&5 |
| 11588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11589 | (exit $ac_status); } && |
| 11590 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11591 | { (case "(($ac_try" in |
| 11592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11593 | *) ac_try_echo=$ac_try;; |
| 11594 | esac |
| 11595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11596 | (eval "$ac_try") 2>&5 |
| 11597 | ac_status=$? |
| 11598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11599 | (exit $ac_status); }; } && |
| 11600 | { ac_try='test -s conftest.$ac_objext' |
| 11601 | { (case "(($ac_try" in |
| 11602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11603 | *) ac_try_echo=$ac_try;; |
| 11604 | esac |
| 11605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11606 | (eval "$ac_try") 2>&5 |
| 11607 | ac_status=$? |
| 11608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11609 | (exit $ac_status); }; }; then |
| 11610 | ac_header_compiler=yes |
| 11611 | else |
| 11612 | echo "$as_me: failed program was:" >&5 |
| 11613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11614 | |
| 11615 | ac_header_compiler=no |
| 11616 | fi |
| 11617 | |
| 11618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11619 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11620 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11621 | |
| 11622 | # Is the header present? |
| 11623 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11624 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11625 | cat >conftest.$ac_ext <<_ACEOF |
| 11626 | /* confdefs.h. */ |
| 11627 | _ACEOF |
| 11628 | cat confdefs.h >>conftest.$ac_ext |
| 11629 | cat >>conftest.$ac_ext <<_ACEOF |
| 11630 | /* end confdefs.h. */ |
| 11631 | #include <$ac_header> |
| 11632 | _ACEOF |
| 11633 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11634 | case "(($ac_try" in |
| 11635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11636 | *) ac_try_echo=$ac_try;; |
| 11637 | esac |
| 11638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11639 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11640 | ac_status=$? |
| 11641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11642 | rm -f conftest.er1 |
| 11643 | cat conftest.err >&5 |
| 11644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11645 | (exit $ac_status); } >/dev/null; then |
| 11646 | if test -s conftest.err; then |
| 11647 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11648 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11649 | else |
| 11650 | ac_cpp_err= |
| 11651 | fi |
| 11652 | else |
| 11653 | ac_cpp_err=yes |
| 11654 | fi |
| 11655 | if test -z "$ac_cpp_err"; then |
| 11656 | ac_header_preproc=yes |
| 11657 | else |
| 11658 | echo "$as_me: failed program was:" >&5 |
| 11659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11660 | |
| 11661 | ac_header_preproc=no |
| 11662 | fi |
| 11663 | |
| 11664 | rm -f conftest.err conftest.$ac_ext |
| 11665 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11666 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11667 | |
| 11668 | # So? What about this header? |
| 11669 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11670 | yes:no: ) |
| 11671 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11672 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11673 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11674 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11675 | ac_header_preproc=yes |
| 11676 | ;; |
| 11677 | no:yes:* ) |
| 11678 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11679 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11680 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11681 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11682 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11683 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11684 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11685 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11686 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11687 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11688 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11689 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11690 | ( cat <<\_ASBOX |
| 11691 | ## ----------------------------------- ## |
| 11692 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11693 | ## ----------------------------------- ## |
| 11694 | _ASBOX |
| 11695 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11696 | ;; |
| 11697 | esac |
| 11698 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11699 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11700 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11702 | else |
| 11703 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11704 | fi |
| 11705 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11706 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11707 | echo "${ECHO_T}$ac_res" >&6; } |
| 11708 | |
| 11709 | fi |
| 11710 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11711 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11712 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11713 | _ACEOF |
| 11714 | |
| 11715 | fi |
| 11716 | |
| 11717 | done |
| 11718 | |
| 11719 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11720 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 11721 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
| 11722 | if test "${ac_cv_type_error_t+set}" = set; then |
| 11723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11724 | else |
| 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 | #if HAVE_ARGZ_H |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11732 | # include <argz.h> |
| 11733 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11734 | |
| 11735 | typedef error_t ac__type_new_; |
| 11736 | int |
| 11737 | main () |
| 11738 | { |
| 11739 | if ((ac__type_new_ *) 0) |
| 11740 | return 0; |
| 11741 | if (sizeof (ac__type_new_)) |
| 11742 | return 0; |
| 11743 | ; |
| 11744 | return 0; |
| 11745 | } |
| 11746 | _ACEOF |
| 11747 | rm -f conftest.$ac_objext |
| 11748 | if { (ac_try="$ac_compile" |
| 11749 | case "(($ac_try" in |
| 11750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11751 | *) ac_try_echo=$ac_try;; |
| 11752 | esac |
| 11753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11754 | (eval "$ac_compile") 2>conftest.er1 |
| 11755 | ac_status=$? |
| 11756 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11757 | rm -f conftest.er1 |
| 11758 | cat conftest.err >&5 |
| 11759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11760 | (exit $ac_status); } && |
| 11761 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11762 | { (case "(($ac_try" in |
| 11763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11764 | *) ac_try_echo=$ac_try;; |
| 11765 | esac |
| 11766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11767 | (eval "$ac_try") 2>&5 |
| 11768 | ac_status=$? |
| 11769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11770 | (exit $ac_status); }; } && |
| 11771 | { ac_try='test -s conftest.$ac_objext' |
| 11772 | { (case "(($ac_try" in |
| 11773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11774 | *) ac_try_echo=$ac_try;; |
| 11775 | esac |
| 11776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11777 | (eval "$ac_try") 2>&5 |
| 11778 | ac_status=$? |
| 11779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11780 | (exit $ac_status); }; }; then |
| 11781 | ac_cv_type_error_t=yes |
| 11782 | else |
| 11783 | echo "$as_me: failed program was:" >&5 |
| 11784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11785 | |
| 11786 | ac_cv_type_error_t=no |
| 11787 | fi |
| 11788 | |
| 11789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11790 | fi |
| 11791 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 11792 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
| 11793 | if test $ac_cv_type_error_t = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11794 | |
| 11795 | cat >>confdefs.h <<_ACEOF |
| 11796 | #define HAVE_ERROR_T 1 |
| 11797 | _ACEOF |
| 11798 | |
| 11799 | |
| 11800 | else |
| 11801 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11802 | cat >>confdefs.h <<\_ACEOF |
| 11803 | #define error_t int |
| 11804 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11805 | |
| 11806 | fi |
| 11807 | |
| 11808 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11809 | |
| 11810 | |
| 11811 | |
| 11812 | |
| 11813 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11814 | 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] | 11815 | do |
| 11816 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11817 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11818 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11819 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11821 | else |
| 11822 | cat >conftest.$ac_ext <<_ACEOF |
| 11823 | /* confdefs.h. */ |
| 11824 | _ACEOF |
| 11825 | cat confdefs.h >>conftest.$ac_ext |
| 11826 | cat >>conftest.$ac_ext <<_ACEOF |
| 11827 | /* end confdefs.h. */ |
| 11828 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11829 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11830 | #define $ac_func innocuous_$ac_func |
| 11831 | |
| 11832 | /* System header to define __stub macros and hopefully few prototypes, |
| 11833 | which can conflict with char $ac_func (); below. |
| 11834 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11835 | <limits.h> exists even on freestanding compilers. */ |
| 11836 | |
| 11837 | #ifdef __STDC__ |
| 11838 | # include <limits.h> |
| 11839 | #else |
| 11840 | # include <assert.h> |
| 11841 | #endif |
| 11842 | |
| 11843 | #undef $ac_func |
| 11844 | |
| 11845 | /* Override any GCC internal prototype to avoid an error. |
| 11846 | Use char because int might match the return type of a GCC |
| 11847 | builtin and then its argument prototype would still apply. */ |
| 11848 | #ifdef __cplusplus |
| 11849 | extern "C" |
| 11850 | #endif |
| 11851 | char $ac_func (); |
| 11852 | /* The GNU C library defines this for functions which it implements |
| 11853 | to always fail with ENOSYS. Some functions are actually named |
| 11854 | something starting with __ and the normal name is an alias. */ |
| 11855 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11856 | choke me |
| 11857 | #endif |
| 11858 | |
| 11859 | int |
| 11860 | main () |
| 11861 | { |
| 11862 | return $ac_func (); |
| 11863 | ; |
| 11864 | return 0; |
| 11865 | } |
| 11866 | _ACEOF |
| 11867 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11868 | if { (ac_try="$ac_link" |
| 11869 | case "(($ac_try" in |
| 11870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11871 | *) ac_try_echo=$ac_try;; |
| 11872 | esac |
| 11873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11874 | (eval "$ac_link") 2>conftest.er1 |
| 11875 | ac_status=$? |
| 11876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11877 | rm -f conftest.er1 |
| 11878 | cat conftest.err >&5 |
| 11879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11880 | (exit $ac_status); } && |
| 11881 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11882 | { (case "(($ac_try" in |
| 11883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11884 | *) ac_try_echo=$ac_try;; |
| 11885 | esac |
| 11886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11887 | (eval "$ac_try") 2>&5 |
| 11888 | ac_status=$? |
| 11889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11890 | (exit $ac_status); }; } && |
| 11891 | { ac_try='test -s conftest$ac_exeext' |
| 11892 | { (case "(($ac_try" in |
| 11893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11894 | *) ac_try_echo=$ac_try;; |
| 11895 | esac |
| 11896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11897 | (eval "$ac_try") 2>&5 |
| 11898 | ac_status=$? |
| 11899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11900 | (exit $ac_status); }; }; then |
| 11901 | eval "$as_ac_var=yes" |
| 11902 | else |
| 11903 | echo "$as_me: failed program was:" >&5 |
| 11904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11905 | |
| 11906 | eval "$as_ac_var=no" |
| 11907 | fi |
| 11908 | |
| 11909 | rm -f core conftest.err conftest.$ac_objext \ |
| 11910 | conftest$ac_exeext conftest.$ac_ext |
| 11911 | fi |
| 11912 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11913 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11914 | echo "${ECHO_T}$ac_res" >&6; } |
| 11915 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11916 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11917 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11918 | _ACEOF |
| 11919 | |
| 11920 | fi |
| 11921 | done |
| 11922 | |
| 11923 | |
| 11924 | |
| 11925 | |
| 11926 | |
| 11927 | |
| 11928 | |
| 11929 | |
| 11930 | |
| 11931 | |
| 11932 | |
| 11933 | |
| 11934 | |
| 11935 | |
| 11936 | |
| 11937 | |
| 11938 | |
| 11939 | |
| 11940 | |
| 11941 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11942 | |
| 11943 | |
| 11944 | |
| 11945 | |
| 11946 | |
| 11947 | |
| 11948 | |
| 11949 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11950 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11951 | stdio.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11952 | do |
| 11953 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11954 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11955 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11956 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11957 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11959 | fi |
| 11960 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11961 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11962 | echo "${ECHO_T}$ac_res" >&6; } |
| 11963 | else |
| 11964 | # Is the header compilable? |
| 11965 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11966 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11967 | cat >conftest.$ac_ext <<_ACEOF |
| 11968 | /* confdefs.h. */ |
| 11969 | _ACEOF |
| 11970 | cat confdefs.h >>conftest.$ac_ext |
| 11971 | cat >>conftest.$ac_ext <<_ACEOF |
| 11972 | /* end confdefs.h. */ |
| 11973 | $ac_includes_default |
| 11974 | #include <$ac_header> |
| 11975 | _ACEOF |
| 11976 | rm -f conftest.$ac_objext |
| 11977 | if { (ac_try="$ac_compile" |
| 11978 | case "(($ac_try" in |
| 11979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11980 | *) ac_try_echo=$ac_try;; |
| 11981 | esac |
| 11982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11983 | (eval "$ac_compile") 2>conftest.er1 |
| 11984 | ac_status=$? |
| 11985 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11986 | rm -f conftest.er1 |
| 11987 | cat conftest.err >&5 |
| 11988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11989 | (exit $ac_status); } && |
| 11990 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11991 | { (case "(($ac_try" in |
| 11992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11993 | *) ac_try_echo=$ac_try;; |
| 11994 | esac |
| 11995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11996 | (eval "$ac_try") 2>&5 |
| 11997 | ac_status=$? |
| 11998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11999 | (exit $ac_status); }; } && |
| 12000 | { ac_try='test -s conftest.$ac_objext' |
| 12001 | { (case "(($ac_try" in |
| 12002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12003 | *) ac_try_echo=$ac_try;; |
| 12004 | esac |
| 12005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12006 | (eval "$ac_try") 2>&5 |
| 12007 | ac_status=$? |
| 12008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12009 | (exit $ac_status); }; }; then |
| 12010 | ac_header_compiler=yes |
| 12011 | else |
| 12012 | echo "$as_me: failed program was:" >&5 |
| 12013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12014 | |
| 12015 | ac_header_compiler=no |
| 12016 | fi |
| 12017 | |
| 12018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12019 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12020 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12021 | |
| 12022 | # Is the header present? |
| 12023 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12024 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12025 | cat >conftest.$ac_ext <<_ACEOF |
| 12026 | /* confdefs.h. */ |
| 12027 | _ACEOF |
| 12028 | cat confdefs.h >>conftest.$ac_ext |
| 12029 | cat >>conftest.$ac_ext <<_ACEOF |
| 12030 | /* end confdefs.h. */ |
| 12031 | #include <$ac_header> |
| 12032 | _ACEOF |
| 12033 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12034 | case "(($ac_try" in |
| 12035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12036 | *) ac_try_echo=$ac_try;; |
| 12037 | esac |
| 12038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12039 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12040 | ac_status=$? |
| 12041 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12042 | rm -f conftest.er1 |
| 12043 | cat conftest.err >&5 |
| 12044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12045 | (exit $ac_status); } >/dev/null; then |
| 12046 | if test -s conftest.err; then |
| 12047 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12048 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12049 | else |
| 12050 | ac_cpp_err= |
| 12051 | fi |
| 12052 | else |
| 12053 | ac_cpp_err=yes |
| 12054 | fi |
| 12055 | if test -z "$ac_cpp_err"; then |
| 12056 | ac_header_preproc=yes |
| 12057 | else |
| 12058 | echo "$as_me: failed program was:" >&5 |
| 12059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12060 | |
| 12061 | ac_header_preproc=no |
| 12062 | fi |
| 12063 | |
| 12064 | rm -f conftest.err conftest.$ac_ext |
| 12065 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12066 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12067 | |
| 12068 | # So? What about this header? |
| 12069 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12070 | yes:no: ) |
| 12071 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12072 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12073 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12074 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12075 | ac_header_preproc=yes |
| 12076 | ;; |
| 12077 | no:yes:* ) |
| 12078 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12079 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12080 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12081 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12082 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12083 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12084 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12085 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12086 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12087 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12088 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12089 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12090 | ( cat <<\_ASBOX |
| 12091 | ## ----------------------------------- ## |
| 12092 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12093 | ## ----------------------------------- ## |
| 12094 | _ASBOX |
| 12095 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12096 | ;; |
| 12097 | esac |
| 12098 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12099 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12100 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12102 | else |
| 12103 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12104 | fi |
| 12105 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12106 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12107 | echo "${ECHO_T}$ac_res" >&6; } |
| 12108 | |
| 12109 | fi |
| 12110 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12111 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12112 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12113 | _ACEOF |
| 12114 | |
| 12115 | fi |
| 12116 | |
| 12117 | done |
| 12118 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12119 | |
| 12120 | |
| 12121 | |
| 12122 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12123 | 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] | 12124 | do |
| 12125 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12126 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12127 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12128 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12129 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12131 | fi |
| 12132 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12133 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12134 | echo "${ECHO_T}$ac_res" >&6; } |
| 12135 | else |
| 12136 | # Is the header compilable? |
| 12137 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12138 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12139 | cat >conftest.$ac_ext <<_ACEOF |
| 12140 | /* confdefs.h. */ |
| 12141 | _ACEOF |
| 12142 | cat confdefs.h >>conftest.$ac_ext |
| 12143 | cat >>conftest.$ac_ext <<_ACEOF |
| 12144 | /* end confdefs.h. */ |
| 12145 | $ac_includes_default |
| 12146 | #include <$ac_header> |
| 12147 | _ACEOF |
| 12148 | rm -f conftest.$ac_objext |
| 12149 | if { (ac_try="$ac_compile" |
| 12150 | case "(($ac_try" in |
| 12151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12152 | *) ac_try_echo=$ac_try;; |
| 12153 | esac |
| 12154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12155 | (eval "$ac_compile") 2>conftest.er1 |
| 12156 | ac_status=$? |
| 12157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12158 | rm -f conftest.er1 |
| 12159 | cat conftest.err >&5 |
| 12160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12161 | (exit $ac_status); } && |
| 12162 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12163 | { (case "(($ac_try" in |
| 12164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12165 | *) ac_try_echo=$ac_try;; |
| 12166 | esac |
| 12167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12168 | (eval "$ac_try") 2>&5 |
| 12169 | ac_status=$? |
| 12170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12171 | (exit $ac_status); }; } && |
| 12172 | { ac_try='test -s conftest.$ac_objext' |
| 12173 | { (case "(($ac_try" in |
| 12174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12175 | *) ac_try_echo=$ac_try;; |
| 12176 | esac |
| 12177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12178 | (eval "$ac_try") 2>&5 |
| 12179 | ac_status=$? |
| 12180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12181 | (exit $ac_status); }; }; then |
| 12182 | ac_header_compiler=yes |
| 12183 | else |
| 12184 | echo "$as_me: failed program was:" >&5 |
| 12185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12186 | |
| 12187 | ac_header_compiler=no |
| 12188 | fi |
| 12189 | |
| 12190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12191 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12192 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12193 | |
| 12194 | # Is the header present? |
| 12195 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12196 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12197 | cat >conftest.$ac_ext <<_ACEOF |
| 12198 | /* confdefs.h. */ |
| 12199 | _ACEOF |
| 12200 | cat confdefs.h >>conftest.$ac_ext |
| 12201 | cat >>conftest.$ac_ext <<_ACEOF |
| 12202 | /* end confdefs.h. */ |
| 12203 | #include <$ac_header> |
| 12204 | _ACEOF |
| 12205 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12206 | case "(($ac_try" in |
| 12207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12208 | *) ac_try_echo=$ac_try;; |
| 12209 | esac |
| 12210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12211 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12212 | ac_status=$? |
| 12213 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12214 | rm -f conftest.er1 |
| 12215 | cat conftest.err >&5 |
| 12216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12217 | (exit $ac_status); } >/dev/null; then |
| 12218 | if test -s conftest.err; then |
| 12219 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12220 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12221 | else |
| 12222 | ac_cpp_err= |
| 12223 | fi |
| 12224 | else |
| 12225 | ac_cpp_err=yes |
| 12226 | fi |
| 12227 | if test -z "$ac_cpp_err"; then |
| 12228 | ac_header_preproc=yes |
| 12229 | else |
| 12230 | echo "$as_me: failed program was:" >&5 |
| 12231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12232 | |
| 12233 | ac_header_preproc=no |
| 12234 | fi |
| 12235 | |
| 12236 | rm -f conftest.err conftest.$ac_ext |
| 12237 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12238 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12239 | |
| 12240 | # So? What about this header? |
| 12241 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12242 | yes:no: ) |
| 12243 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12244 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12245 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12246 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12247 | ac_header_preproc=yes |
| 12248 | ;; |
| 12249 | no:yes:* ) |
| 12250 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12251 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12252 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12253 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12254 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12255 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12256 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12257 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12258 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12259 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12260 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12261 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12262 | ( cat <<\_ASBOX |
| 12263 | ## ----------------------------------- ## |
| 12264 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12265 | ## ----------------------------------- ## |
| 12266 | _ASBOX |
| 12267 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12268 | ;; |
| 12269 | esac |
| 12270 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12271 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12272 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12274 | else |
| 12275 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12276 | fi |
| 12277 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12278 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12279 | echo "${ECHO_T}$ac_res" >&6; } |
| 12280 | |
| 12281 | fi |
| 12282 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12283 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12284 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12285 | _ACEOF |
| 12286 | |
| 12287 | fi |
| 12288 | |
| 12289 | done |
| 12290 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12291 | |
| 12292 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12293 | for ac_header in string.h strings.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12294 | do |
| 12295 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12296 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12297 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12298 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12299 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12301 | fi |
| 12302 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12303 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12304 | echo "${ECHO_T}$ac_res" >&6; } |
| 12305 | else |
| 12306 | # Is the header compilable? |
| 12307 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12308 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12309 | cat >conftest.$ac_ext <<_ACEOF |
| 12310 | /* confdefs.h. */ |
| 12311 | _ACEOF |
| 12312 | cat confdefs.h >>conftest.$ac_ext |
| 12313 | cat >>conftest.$ac_ext <<_ACEOF |
| 12314 | /* end confdefs.h. */ |
| 12315 | $ac_includes_default |
| 12316 | #include <$ac_header> |
| 12317 | _ACEOF |
| 12318 | rm -f conftest.$ac_objext |
| 12319 | if { (ac_try="$ac_compile" |
| 12320 | case "(($ac_try" in |
| 12321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12322 | *) ac_try_echo=$ac_try;; |
| 12323 | esac |
| 12324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12325 | (eval "$ac_compile") 2>conftest.er1 |
| 12326 | ac_status=$? |
| 12327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12328 | rm -f conftest.er1 |
| 12329 | cat conftest.err >&5 |
| 12330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12331 | (exit $ac_status); } && |
| 12332 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12333 | { (case "(($ac_try" in |
| 12334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12335 | *) ac_try_echo=$ac_try;; |
| 12336 | esac |
| 12337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12338 | (eval "$ac_try") 2>&5 |
| 12339 | ac_status=$? |
| 12340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12341 | (exit $ac_status); }; } && |
| 12342 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 12352 | ac_header_compiler=yes |
| 12353 | else |
| 12354 | echo "$as_me: failed program was:" >&5 |
| 12355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12356 | |
| 12357 | ac_header_compiler=no |
| 12358 | fi |
| 12359 | |
| 12360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12361 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12362 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12363 | |
| 12364 | # Is the header present? |
| 12365 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12366 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12367 | cat >conftest.$ac_ext <<_ACEOF |
| 12368 | /* confdefs.h. */ |
| 12369 | _ACEOF |
| 12370 | cat confdefs.h >>conftest.$ac_ext |
| 12371 | cat >>conftest.$ac_ext <<_ACEOF |
| 12372 | /* end confdefs.h. */ |
| 12373 | #include <$ac_header> |
| 12374 | _ACEOF |
| 12375 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12376 | case "(($ac_try" in |
| 12377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12378 | *) ac_try_echo=$ac_try;; |
| 12379 | esac |
| 12380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12381 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12382 | ac_status=$? |
| 12383 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12384 | rm -f conftest.er1 |
| 12385 | cat conftest.err >&5 |
| 12386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12387 | (exit $ac_status); } >/dev/null; then |
| 12388 | if test -s conftest.err; then |
| 12389 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12390 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12391 | else |
| 12392 | ac_cpp_err= |
| 12393 | fi |
| 12394 | else |
| 12395 | ac_cpp_err=yes |
| 12396 | fi |
| 12397 | if test -z "$ac_cpp_err"; then |
| 12398 | ac_header_preproc=yes |
| 12399 | else |
| 12400 | echo "$as_me: failed program was:" >&5 |
| 12401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12402 | |
| 12403 | ac_header_preproc=no |
| 12404 | fi |
| 12405 | |
| 12406 | rm -f conftest.err conftest.$ac_ext |
| 12407 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12408 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12409 | |
| 12410 | # So? What about this header? |
| 12411 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12412 | yes:no: ) |
| 12413 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12414 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12415 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12416 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12417 | ac_header_preproc=yes |
| 12418 | ;; |
| 12419 | no:yes:* ) |
| 12420 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12421 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12422 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12423 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12424 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12425 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12426 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12427 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12428 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12429 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12430 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12431 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12432 | ( cat <<\_ASBOX |
| 12433 | ## ----------------------------------- ## |
| 12434 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12435 | ## ----------------------------------- ## |
| 12436 | _ASBOX |
| 12437 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12438 | ;; |
| 12439 | esac |
| 12440 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12441 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12442 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12444 | else |
| 12445 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12446 | fi |
| 12447 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12448 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12449 | echo "${ECHO_T}$ac_res" >&6; } |
| 12450 | |
| 12451 | fi |
| 12452 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12453 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12454 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12455 | _ACEOF |
| 12456 | break |
| 12457 | fi |
| 12458 | |
| 12459 | done |
| 12460 | |
| 12461 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12462 | |
| 12463 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12464 | for ac_func in strchr index |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12465 | do |
| 12466 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12467 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12468 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12469 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12471 | else |
| 12472 | cat >conftest.$ac_ext <<_ACEOF |
| 12473 | /* confdefs.h. */ |
| 12474 | _ACEOF |
| 12475 | cat confdefs.h >>conftest.$ac_ext |
| 12476 | cat >>conftest.$ac_ext <<_ACEOF |
| 12477 | /* end confdefs.h. */ |
| 12478 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12479 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12480 | #define $ac_func innocuous_$ac_func |
| 12481 | |
| 12482 | /* System header to define __stub macros and hopefully few prototypes, |
| 12483 | which can conflict with char $ac_func (); below. |
| 12484 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12485 | <limits.h> exists even on freestanding compilers. */ |
| 12486 | |
| 12487 | #ifdef __STDC__ |
| 12488 | # include <limits.h> |
| 12489 | #else |
| 12490 | # include <assert.h> |
| 12491 | #endif |
| 12492 | |
| 12493 | #undef $ac_func |
| 12494 | |
| 12495 | /* Override any GCC internal prototype to avoid an error. |
| 12496 | Use char because int might match the return type of a GCC |
| 12497 | builtin and then its argument prototype would still apply. */ |
| 12498 | #ifdef __cplusplus |
| 12499 | extern "C" |
| 12500 | #endif |
| 12501 | char $ac_func (); |
| 12502 | /* The GNU C library defines this for functions which it implements |
| 12503 | to always fail with ENOSYS. Some functions are actually named |
| 12504 | something starting with __ and the normal name is an alias. */ |
| 12505 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12506 | choke me |
| 12507 | #endif |
| 12508 | |
| 12509 | int |
| 12510 | main () |
| 12511 | { |
| 12512 | return $ac_func (); |
| 12513 | ; |
| 12514 | return 0; |
| 12515 | } |
| 12516 | _ACEOF |
| 12517 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12518 | if { (ac_try="$ac_link" |
| 12519 | case "(($ac_try" in |
| 12520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12521 | *) ac_try_echo=$ac_try;; |
| 12522 | esac |
| 12523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12524 | (eval "$ac_link") 2>conftest.er1 |
| 12525 | ac_status=$? |
| 12526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12527 | rm -f conftest.er1 |
| 12528 | cat conftest.err >&5 |
| 12529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12530 | (exit $ac_status); } && |
| 12531 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12532 | { (case "(($ac_try" in |
| 12533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12534 | *) ac_try_echo=$ac_try;; |
| 12535 | esac |
| 12536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12537 | (eval "$ac_try") 2>&5 |
| 12538 | ac_status=$? |
| 12539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12540 | (exit $ac_status); }; } && |
| 12541 | { ac_try='test -s conftest$ac_exeext' |
| 12542 | { (case "(($ac_try" in |
| 12543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12544 | *) ac_try_echo=$ac_try;; |
| 12545 | esac |
| 12546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12547 | (eval "$ac_try") 2>&5 |
| 12548 | ac_status=$? |
| 12549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12550 | (exit $ac_status); }; }; then |
| 12551 | eval "$as_ac_var=yes" |
| 12552 | else |
| 12553 | echo "$as_me: failed program was:" >&5 |
| 12554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12555 | |
| 12556 | eval "$as_ac_var=no" |
| 12557 | fi |
| 12558 | |
| 12559 | rm -f core conftest.err conftest.$ac_objext \ |
| 12560 | conftest$ac_exeext conftest.$ac_ext |
| 12561 | fi |
| 12562 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12563 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12564 | echo "${ECHO_T}$ac_res" >&6; } |
| 12565 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12566 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12567 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12568 | _ACEOF |
| 12569 | break |
| 12570 | fi |
| 12571 | done |
| 12572 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12573 | |
| 12574 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12575 | for ac_func in strrchr rindex |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12576 | do |
| 12577 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12578 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12579 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12580 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12582 | else |
| 12583 | cat >conftest.$ac_ext <<_ACEOF |
| 12584 | /* confdefs.h. */ |
| 12585 | _ACEOF |
| 12586 | cat confdefs.h >>conftest.$ac_ext |
| 12587 | cat >>conftest.$ac_ext <<_ACEOF |
| 12588 | /* end confdefs.h. */ |
| 12589 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12590 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12591 | #define $ac_func innocuous_$ac_func |
| 12592 | |
| 12593 | /* System header to define __stub macros and hopefully few prototypes, |
| 12594 | which can conflict with char $ac_func (); below. |
| 12595 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12596 | <limits.h> exists even on freestanding compilers. */ |
| 12597 | |
| 12598 | #ifdef __STDC__ |
| 12599 | # include <limits.h> |
| 12600 | #else |
| 12601 | # include <assert.h> |
| 12602 | #endif |
| 12603 | |
| 12604 | #undef $ac_func |
| 12605 | |
| 12606 | /* Override any GCC internal prototype to avoid an error. |
| 12607 | Use char because int might match the return type of a GCC |
| 12608 | builtin and then its argument prototype would still apply. */ |
| 12609 | #ifdef __cplusplus |
| 12610 | extern "C" |
| 12611 | #endif |
| 12612 | char $ac_func (); |
| 12613 | /* The GNU C library defines this for functions which it implements |
| 12614 | to always fail with ENOSYS. Some functions are actually named |
| 12615 | something starting with __ and the normal name is an alias. */ |
| 12616 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12617 | choke me |
| 12618 | #endif |
| 12619 | |
| 12620 | int |
| 12621 | main () |
| 12622 | { |
| 12623 | return $ac_func (); |
| 12624 | ; |
| 12625 | return 0; |
| 12626 | } |
| 12627 | _ACEOF |
| 12628 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12629 | if { (ac_try="$ac_link" |
| 12630 | case "(($ac_try" in |
| 12631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12632 | *) ac_try_echo=$ac_try;; |
| 12633 | esac |
| 12634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12635 | (eval "$ac_link") 2>conftest.er1 |
| 12636 | ac_status=$? |
| 12637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12638 | rm -f conftest.er1 |
| 12639 | cat conftest.err >&5 |
| 12640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12641 | (exit $ac_status); } && |
| 12642 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12643 | { (case "(($ac_try" in |
| 12644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12645 | *) ac_try_echo=$ac_try;; |
| 12646 | esac |
| 12647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12648 | (eval "$ac_try") 2>&5 |
| 12649 | ac_status=$? |
| 12650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12651 | (exit $ac_status); }; } && |
| 12652 | { ac_try='test -s conftest$ac_exeext' |
| 12653 | { (case "(($ac_try" in |
| 12654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12655 | *) ac_try_echo=$ac_try;; |
| 12656 | esac |
| 12657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12658 | (eval "$ac_try") 2>&5 |
| 12659 | ac_status=$? |
| 12660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12661 | (exit $ac_status); }; }; then |
| 12662 | eval "$as_ac_var=yes" |
| 12663 | else |
| 12664 | echo "$as_me: failed program was:" >&5 |
| 12665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12666 | |
| 12667 | eval "$as_ac_var=no" |
| 12668 | fi |
| 12669 | |
| 12670 | rm -f core conftest.err conftest.$ac_objext \ |
| 12671 | conftest$ac_exeext conftest.$ac_ext |
| 12672 | fi |
| 12673 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12674 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12675 | echo "${ECHO_T}$ac_res" >&6; } |
| 12676 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12677 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12678 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12679 | _ACEOF |
| 12680 | break |
| 12681 | fi |
| 12682 | done |
| 12683 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12684 | |
| 12685 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12686 | for ac_func in memcpy bcopy |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12687 | do |
| 12688 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12689 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12690 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12691 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12693 | else |
| 12694 | cat >conftest.$ac_ext <<_ACEOF |
| 12695 | /* confdefs.h. */ |
| 12696 | _ACEOF |
| 12697 | cat confdefs.h >>conftest.$ac_ext |
| 12698 | cat >>conftest.$ac_ext <<_ACEOF |
| 12699 | /* end confdefs.h. */ |
| 12700 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12701 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12702 | #define $ac_func innocuous_$ac_func |
| 12703 | |
| 12704 | /* System header to define __stub macros and hopefully few prototypes, |
| 12705 | which can conflict with char $ac_func (); below. |
| 12706 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12707 | <limits.h> exists even on freestanding compilers. */ |
| 12708 | |
| 12709 | #ifdef __STDC__ |
| 12710 | # include <limits.h> |
| 12711 | #else |
| 12712 | # include <assert.h> |
| 12713 | #endif |
| 12714 | |
| 12715 | #undef $ac_func |
| 12716 | |
| 12717 | /* Override any GCC internal prototype to avoid an error. |
| 12718 | Use char because int might match the return type of a GCC |
| 12719 | builtin and then its argument prototype would still apply. */ |
| 12720 | #ifdef __cplusplus |
| 12721 | extern "C" |
| 12722 | #endif |
| 12723 | char $ac_func (); |
| 12724 | /* The GNU C library defines this for functions which it implements |
| 12725 | to always fail with ENOSYS. Some functions are actually named |
| 12726 | something starting with __ and the normal name is an alias. */ |
| 12727 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12728 | choke me |
| 12729 | #endif |
| 12730 | |
| 12731 | int |
| 12732 | main () |
| 12733 | { |
| 12734 | return $ac_func (); |
| 12735 | ; |
| 12736 | return 0; |
| 12737 | } |
| 12738 | _ACEOF |
| 12739 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12740 | if { (ac_try="$ac_link" |
| 12741 | case "(($ac_try" in |
| 12742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12743 | *) ac_try_echo=$ac_try;; |
| 12744 | esac |
| 12745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12746 | (eval "$ac_link") 2>conftest.er1 |
| 12747 | ac_status=$? |
| 12748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12749 | rm -f conftest.er1 |
| 12750 | cat conftest.err >&5 |
| 12751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12752 | (exit $ac_status); } && |
| 12753 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12754 | { (case "(($ac_try" in |
| 12755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12756 | *) ac_try_echo=$ac_try;; |
| 12757 | esac |
| 12758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12759 | (eval "$ac_try") 2>&5 |
| 12760 | ac_status=$? |
| 12761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12762 | (exit $ac_status); }; } && |
| 12763 | { ac_try='test -s conftest$ac_exeext' |
| 12764 | { (case "(($ac_try" in |
| 12765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12766 | *) ac_try_echo=$ac_try;; |
| 12767 | esac |
| 12768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12769 | (eval "$ac_try") 2>&5 |
| 12770 | ac_status=$? |
| 12771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12772 | (exit $ac_status); }; }; then |
| 12773 | eval "$as_ac_var=yes" |
| 12774 | else |
| 12775 | echo "$as_me: failed program was:" >&5 |
| 12776 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12777 | |
| 12778 | eval "$as_ac_var=no" |
| 12779 | fi |
| 12780 | |
| 12781 | rm -f core conftest.err conftest.$ac_objext \ |
| 12782 | conftest$ac_exeext conftest.$ac_ext |
| 12783 | fi |
| 12784 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12785 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12786 | echo "${ECHO_T}$ac_res" >&6; } |
| 12787 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12788 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12789 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12790 | _ACEOF |
| 12791 | break |
| 12792 | fi |
| 12793 | done |
| 12794 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12795 | |
| 12796 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12797 | for ac_func in memmove strcmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12798 | do |
| 12799 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12800 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12801 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12802 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12804 | else |
| 12805 | cat >conftest.$ac_ext <<_ACEOF |
| 12806 | /* confdefs.h. */ |
| 12807 | _ACEOF |
| 12808 | cat confdefs.h >>conftest.$ac_ext |
| 12809 | cat >>conftest.$ac_ext <<_ACEOF |
| 12810 | /* end confdefs.h. */ |
| 12811 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12812 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12813 | #define $ac_func innocuous_$ac_func |
| 12814 | |
| 12815 | /* System header to define __stub macros and hopefully few prototypes, |
| 12816 | which can conflict with char $ac_func (); below. |
| 12817 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12818 | <limits.h> exists even on freestanding compilers. */ |
| 12819 | |
| 12820 | #ifdef __STDC__ |
| 12821 | # include <limits.h> |
| 12822 | #else |
| 12823 | # include <assert.h> |
| 12824 | #endif |
| 12825 | |
| 12826 | #undef $ac_func |
| 12827 | |
| 12828 | /* Override any GCC internal prototype to avoid an error. |
| 12829 | Use char because int might match the return type of a GCC |
| 12830 | builtin and then its argument prototype would still apply. */ |
| 12831 | #ifdef __cplusplus |
| 12832 | extern "C" |
| 12833 | #endif |
| 12834 | char $ac_func (); |
| 12835 | /* The GNU C library defines this for functions which it implements |
| 12836 | to always fail with ENOSYS. Some functions are actually named |
| 12837 | something starting with __ and the normal name is an alias. */ |
| 12838 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12839 | choke me |
| 12840 | #endif |
| 12841 | |
| 12842 | int |
| 12843 | main () |
| 12844 | { |
| 12845 | return $ac_func (); |
| 12846 | ; |
| 12847 | return 0; |
| 12848 | } |
| 12849 | _ACEOF |
| 12850 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12851 | if { (ac_try="$ac_link" |
| 12852 | case "(($ac_try" in |
| 12853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12854 | *) ac_try_echo=$ac_try;; |
| 12855 | esac |
| 12856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12857 | (eval "$ac_link") 2>conftest.er1 |
| 12858 | ac_status=$? |
| 12859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12860 | rm -f conftest.er1 |
| 12861 | cat conftest.err >&5 |
| 12862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12863 | (exit $ac_status); } && |
| 12864 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12865 | { (case "(($ac_try" in |
| 12866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12867 | *) ac_try_echo=$ac_try;; |
| 12868 | esac |
| 12869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12870 | (eval "$ac_try") 2>&5 |
| 12871 | ac_status=$? |
| 12872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12873 | (exit $ac_status); }; } && |
| 12874 | { ac_try='test -s conftest$ac_exeext' |
| 12875 | { (case "(($ac_try" in |
| 12876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12877 | *) ac_try_echo=$ac_try;; |
| 12878 | esac |
| 12879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12880 | (eval "$ac_try") 2>&5 |
| 12881 | ac_status=$? |
| 12882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12883 | (exit $ac_status); }; }; then |
| 12884 | eval "$as_ac_var=yes" |
| 12885 | else |
| 12886 | echo "$as_me: failed program was:" >&5 |
| 12887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12888 | |
| 12889 | eval "$as_ac_var=no" |
| 12890 | fi |
| 12891 | |
| 12892 | rm -f core conftest.err conftest.$ac_objext \ |
| 12893 | conftest$ac_exeext conftest.$ac_ext |
| 12894 | fi |
| 12895 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12896 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12897 | echo "${ECHO_T}$ac_res" >&6; } |
| 12898 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12899 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12900 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12901 | _ACEOF |
| 12902 | |
| 12903 | fi |
| 12904 | done |
| 12905 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12906 | |
| 12907 | |
| 12908 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12909 | for ac_func in closedir opendir readdir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12910 | do |
| 12911 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12912 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12913 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12914 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12916 | else |
| 12917 | cat >conftest.$ac_ext <<_ACEOF |
| 12918 | /* confdefs.h. */ |
| 12919 | _ACEOF |
| 12920 | cat confdefs.h >>conftest.$ac_ext |
| 12921 | cat >>conftest.$ac_ext <<_ACEOF |
| 12922 | /* end confdefs.h. */ |
| 12923 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12924 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12925 | #define $ac_func innocuous_$ac_func |
| 12926 | |
| 12927 | /* System header to define __stub macros and hopefully few prototypes, |
| 12928 | which can conflict with char $ac_func (); below. |
| 12929 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12930 | <limits.h> exists even on freestanding compilers. */ |
| 12931 | |
| 12932 | #ifdef __STDC__ |
| 12933 | # include <limits.h> |
| 12934 | #else |
| 12935 | # include <assert.h> |
| 12936 | #endif |
| 12937 | |
| 12938 | #undef $ac_func |
| 12939 | |
| 12940 | /* Override any GCC internal prototype to avoid an error. |
| 12941 | Use char because int might match the return type of a GCC |
| 12942 | builtin and then its argument prototype would still apply. */ |
| 12943 | #ifdef __cplusplus |
| 12944 | extern "C" |
| 12945 | #endif |
| 12946 | char $ac_func (); |
| 12947 | /* The GNU C library defines this for functions which it implements |
| 12948 | to always fail with ENOSYS. Some functions are actually named |
| 12949 | something starting with __ and the normal name is an alias. */ |
| 12950 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12951 | choke me |
| 12952 | #endif |
| 12953 | |
| 12954 | int |
| 12955 | main () |
| 12956 | { |
| 12957 | return $ac_func (); |
| 12958 | ; |
| 12959 | return 0; |
| 12960 | } |
| 12961 | _ACEOF |
| 12962 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12963 | if { (ac_try="$ac_link" |
| 12964 | case "(($ac_try" in |
| 12965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12966 | *) ac_try_echo=$ac_try;; |
| 12967 | esac |
| 12968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12969 | (eval "$ac_link") 2>conftest.er1 |
| 12970 | ac_status=$? |
| 12971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12972 | rm -f conftest.er1 |
| 12973 | cat conftest.err >&5 |
| 12974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12975 | (exit $ac_status); } && |
| 12976 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12977 | { (case "(($ac_try" in |
| 12978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12979 | *) ac_try_echo=$ac_try;; |
| 12980 | esac |
| 12981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12982 | (eval "$ac_try") 2>&5 |
| 12983 | ac_status=$? |
| 12984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12985 | (exit $ac_status); }; } && |
| 12986 | { ac_try='test -s conftest$ac_exeext' |
| 12987 | { (case "(($ac_try" in |
| 12988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12989 | *) ac_try_echo=$ac_try;; |
| 12990 | esac |
| 12991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12992 | (eval "$ac_try") 2>&5 |
| 12993 | ac_status=$? |
| 12994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12995 | (exit $ac_status); }; }; then |
| 12996 | eval "$as_ac_var=yes" |
| 12997 | else |
| 12998 | echo "$as_me: failed program was:" >&5 |
| 12999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13000 | |
| 13001 | eval "$as_ac_var=no" |
| 13002 | fi |
| 13003 | |
| 13004 | rm -f core conftest.err conftest.$ac_objext \ |
| 13005 | conftest$ac_exeext conftest.$ac_ext |
| 13006 | fi |
| 13007 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 13008 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13009 | echo "${ECHO_T}$ac_res" >&6; } |
| 13010 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13011 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13012 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13013 | _ACEOF |
| 13014 | |
| 13015 | fi |
| 13016 | done |
| 13017 | |
| 13018 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 13019 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 13020 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13021 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 13022 | LLVMGXX="llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13023 | LLVMGCCCOMMAND="$LLVMGCC" |
| 13024 | LLVMGXXCOMMAND="$LLVMGXX" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13025 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 13026 | |
| 13027 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 13028 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13029 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 13030 | set dummy $LLVMGCC; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13031 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13032 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 13033 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 13034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13035 | else |
| 13036 | case $LLVMGCC in |
| 13037 | [\\/]* | ?:[\\/]*) |
| 13038 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 13039 | ;; |
| 13040 | *) |
| 13041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13042 | for as_dir in $PATH |
| 13043 | do |
| 13044 | IFS=$as_save_IFS |
| 13045 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13046 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13047 | 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] | 13048 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13049 | 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] | 13050 | break 2 |
| 13051 | fi |
| 13052 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13053 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13054 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13055 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13056 | ;; |
| 13057 | esac |
| 13058 | fi |
| 13059 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13060 | if test -n "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13061 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 13062 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13063 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13064 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13065 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13066 | fi |
| 13067 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13068 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13069 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 13070 | set dummy $LLVMGXX; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13071 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13072 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 13073 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 13074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13075 | else |
| 13076 | case $LLVMGXX in |
| 13077 | [\\/]* | ?:[\\/]*) |
| 13078 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 13079 | ;; |
| 13080 | *) |
| 13081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13082 | for as_dir in $PATH |
| 13083 | do |
| 13084 | IFS=$as_save_IFS |
| 13085 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13086 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13087 | 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] | 13088 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13089 | 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] | 13090 | break 2 |
| 13091 | fi |
| 13092 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13093 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13094 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13095 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13096 | ;; |
| 13097 | esac |
| 13098 | fi |
| 13099 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13100 | if test -n "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13101 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 13102 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13103 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13104 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13105 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13106 | fi |
| 13107 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13108 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13109 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13110 | if test -z "$LLVMGCC"; then |
| 13111 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13112 | LLVMGCCCOMMAND="$LLVMGCC" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13113 | fi |
| 13114 | if test -z "$LLVMGXX"; then |
| 13115 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13116 | LLVMGXXCOMMAND="$LLVMGXX" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13117 | fi |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13118 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13119 | LLVMGCC=$LLVMGCC |
| 13120 | |
| 13121 | LLVMGXX=$LLVMGXX |
| 13122 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13123 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 13124 | |
| 13125 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 13126 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13127 | fi |
| 13128 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13129 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 13130 | # Check whether --with-llvmcc was given. |
| 13131 | if test "${with_llvmcc+set}" = set; then |
| 13132 | withval=$with_llvmcc; |
| 13133 | else |
| 13134 | with_llvmcc=check |
| 13135 | fi |
| 13136 | |
| 13137 | { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5 |
| 13138 | echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; } |
| 13139 | if test "$with_llvmcc" != "check"; then |
| 13140 | if (test "$with_llvmcc" != "llvm-gcc" && |
| 13141 | test "$with_llvmcc" != "clang" && |
| 13142 | test "$with_llvmcc" != "none"); then |
| 13143 | { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5 |
| 13144 | echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;} |
| 13145 | { (exit 1); exit 1; }; } |
| 13146 | fi |
| 13147 | WITH_LLVMCC="$with_llvmcc" |
| 13148 | elif test -n "$LLVMGCC"; then |
| 13149 | WITH_LLVMCC=llvm-gcc |
| 13150 | elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then |
| 13151 | WITH_LLVMCC=clang |
| 13152 | else |
| 13153 | WITH_LLVMCC=none |
| 13154 | fi |
| 13155 | { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5 |
| 13156 | echo "${ECHO_T}$WITH_LLVMCC" >&6; } |
| 13157 | LLVMCC_OPTION=$WITH_LLVMCC |
| 13158 | |
| 13159 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13160 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 13161 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13162 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 13163 | ICC=no |
| 13164 | IXX=no |
| 13165 | case $CC in |
| 13166 | icc*|icpc*) |
| 13167 | ICC=yes |
| 13168 | IXX=yes |
| 13169 | ;; |
| 13170 | *) |
| 13171 | ;; |
| 13172 | esac |
| 13173 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13174 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 13175 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13176 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 13177 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 13178 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13179 | fi |
| 13180 | |
| 13181 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 13182 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13183 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 13184 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 13185 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13186 | fi |
| 13187 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 13188 | if test "$GCC" = "yes" |
| 13189 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13190 | cat >conftest.$ac_ext <<_ACEOF |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13191 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 13192 | #error Unsupported GCC version |
| 13193 | #endif |
| 13194 | |
| 13195 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13196 | rm -f conftest.$ac_objext |
| 13197 | if { (ac_try="$ac_compile" |
| 13198 | case "(($ac_try" in |
| 13199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13200 | *) ac_try_echo=$ac_try;; |
| 13201 | esac |
| 13202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13203 | (eval "$ac_compile") 2>conftest.er1 |
| 13204 | ac_status=$? |
| 13205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13206 | rm -f conftest.er1 |
| 13207 | cat conftest.err >&5 |
| 13208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13209 | (exit $ac_status); } && |
| 13210 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13211 | { (case "(($ac_try" in |
| 13212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13213 | *) ac_try_echo=$ac_try;; |
| 13214 | esac |
| 13215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13216 | (eval "$ac_try") 2>&5 |
| 13217 | ac_status=$? |
| 13218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13219 | (exit $ac_status); }; } && |
| 13220 | { ac_try='test -s conftest.$ac_objext' |
| 13221 | { (case "(($ac_try" in |
| 13222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13223 | *) ac_try_echo=$ac_try;; |
| 13224 | esac |
| 13225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13226 | (eval "$ac_try") 2>&5 |
| 13227 | ac_status=$? |
| 13228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13229 | (exit $ac_status); }; }; then |
| 13230 | : |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13231 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13232 | echo "$as_me: failed program was:" >&5 |
| 13233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13234 | |
| 13235 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 13236 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 13237 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13238 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13239 | |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13241 | fi |
| 13242 | |
| 13243 | if test -z "$llvm_cv_gnu_make_command" |
| 13244 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13245 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 13246 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 13247 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13248 | fi |
| 13249 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13250 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 13251 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13252 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13253 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 13254 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13255 | NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` |
| 13256 | |
| 13257 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` |
| 13258 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13259 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 |
| 13260 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13261 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 13262 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13263 | |
| 13264 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 13265 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
| 13266 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 13267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13268 | else |
| 13269 | ac_check_lib_save_LIBS=$LIBS |
| 13270 | LIBS="-lm $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13271 | cat >conftest.$ac_ext <<_ACEOF |
| 13272 | /* confdefs.h. */ |
| 13273 | _ACEOF |
| 13274 | cat confdefs.h >>conftest.$ac_ext |
| 13275 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13276 | /* end confdefs.h. */ |
| 13277 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13278 | /* Override any GCC internal prototype to avoid an error. |
| 13279 | Use char because int might match the return type of a GCC |
| 13280 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13281 | #ifdef __cplusplus |
| 13282 | extern "C" |
| 13283 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13284 | char sin (); |
| 13285 | int |
| 13286 | main () |
| 13287 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13288 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13289 | ; |
| 13290 | return 0; |
| 13291 | } |
| 13292 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13293 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13294 | if { (ac_try="$ac_link" |
| 13295 | case "(($ac_try" in |
| 13296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13297 | *) ac_try_echo=$ac_try;; |
| 13298 | esac |
| 13299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13300 | (eval "$ac_link") 2>conftest.er1 |
| 13301 | ac_status=$? |
| 13302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13303 | rm -f conftest.er1 |
| 13304 | cat conftest.err >&5 |
| 13305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13306 | (exit $ac_status); } && |
| 13307 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13308 | { (case "(($ac_try" in |
| 13309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13310 | *) ac_try_echo=$ac_try;; |
| 13311 | esac |
| 13312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13313 | (eval "$ac_try") 2>&5 |
| 13314 | ac_status=$? |
| 13315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13316 | (exit $ac_status); }; } && |
| 13317 | { ac_try='test -s conftest$ac_exeext' |
| 13318 | { (case "(($ac_try" in |
| 13319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13320 | *) ac_try_echo=$ac_try;; |
| 13321 | esac |
| 13322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13323 | (eval "$ac_try") 2>&5 |
| 13324 | ac_status=$? |
| 13325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13326 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13327 | ac_cv_lib_m_sin=yes |
| 13328 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13329 | echo "$as_me: failed program was:" >&5 |
| 13330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13331 | |
| 13332 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13333 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13334 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13335 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13336 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13337 | LIBS=$ac_check_lib_save_LIBS |
| 13338 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13339 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 13340 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
| 13341 | if test $ac_cv_lib_m_sin = yes; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13342 | cat >>confdefs.h <<_ACEOF |
| 13343 | #define HAVE_LIBM 1 |
| 13344 | _ACEOF |
| 13345 | |
| 13346 | LIBS="-lm $LIBS" |
| 13347 | |
| 13348 | fi |
| 13349 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 13350 | if test "$llvm_cv_os_type" = "MingW" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13351 | |
| 13352 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 13353 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
| 13354 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
| 13355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13356 | else |
| 13357 | ac_check_lib_save_LIBS=$LIBS |
| 13358 | LIBS="-limagehlp $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13359 | cat >conftest.$ac_ext <<_ACEOF |
| 13360 | /* confdefs.h. */ |
| 13361 | _ACEOF |
| 13362 | cat confdefs.h >>conftest.$ac_ext |
| 13363 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13364 | /* end confdefs.h. */ |
| 13365 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13366 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13367 | int |
| 13368 | main () |
| 13369 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13370 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13371 | ; |
| 13372 | return 0; |
| 13373 | } |
| 13374 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13375 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13376 | if { (ac_try="$ac_link" |
| 13377 | case "(($ac_try" in |
| 13378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13379 | *) ac_try_echo=$ac_try;; |
| 13380 | esac |
| 13381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13382 | (eval "$ac_link") 2>conftest.er1 |
| 13383 | ac_status=$? |
| 13384 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13385 | rm -f conftest.er1 |
| 13386 | cat conftest.err >&5 |
| 13387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13388 | (exit $ac_status); } && |
| 13389 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13390 | { (case "(($ac_try" in |
| 13391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13392 | *) ac_try_echo=$ac_try;; |
| 13393 | esac |
| 13394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13395 | (eval "$ac_try") 2>&5 |
| 13396 | ac_status=$? |
| 13397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13398 | (exit $ac_status); }; } && |
| 13399 | { ac_try='test -s conftest$ac_exeext' |
| 13400 | { (case "(($ac_try" in |
| 13401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13402 | *) ac_try_echo=$ac_try;; |
| 13403 | esac |
| 13404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13405 | (eval "$ac_try") 2>&5 |
| 13406 | ac_status=$? |
| 13407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13408 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13409 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13410 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13411 | echo "$as_me: failed program was:" >&5 |
| 13412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13413 | |
| 13414 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13415 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13416 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13417 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13418 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13419 | LIBS=$ac_check_lib_save_LIBS |
| 13420 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13421 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 13422 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
| 13423 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13424 | cat >>confdefs.h <<_ACEOF |
| 13425 | #define HAVE_LIBIMAGEHLP 1 |
| 13426 | _ACEOF |
| 13427 | |
| 13428 | LIBS="-limagehlp $LIBS" |
| 13429 | |
| 13430 | fi |
| 13431 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13432 | |
| 13433 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 13434 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
| 13435 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
| 13436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13437 | else |
| 13438 | ac_check_lib_save_LIBS=$LIBS |
| 13439 | LIBS="-lpsapi $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13440 | cat >conftest.$ac_ext <<_ACEOF |
| 13441 | /* confdefs.h. */ |
| 13442 | _ACEOF |
| 13443 | cat confdefs.h >>conftest.$ac_ext |
| 13444 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13445 | /* end confdefs.h. */ |
| 13446 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13447 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13448 | int |
| 13449 | main () |
| 13450 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13451 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13452 | ; |
| 13453 | return 0; |
| 13454 | } |
| 13455 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13456 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13457 | if { (ac_try="$ac_link" |
| 13458 | case "(($ac_try" in |
| 13459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13460 | *) ac_try_echo=$ac_try;; |
| 13461 | esac |
| 13462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13463 | (eval "$ac_link") 2>conftest.er1 |
| 13464 | ac_status=$? |
| 13465 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13466 | rm -f conftest.er1 |
| 13467 | cat conftest.err >&5 |
| 13468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13469 | (exit $ac_status); } && |
| 13470 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13471 | { (case "(($ac_try" in |
| 13472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13473 | *) ac_try_echo=$ac_try;; |
| 13474 | esac |
| 13475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13476 | (eval "$ac_try") 2>&5 |
| 13477 | ac_status=$? |
| 13478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13479 | (exit $ac_status); }; } && |
| 13480 | { ac_try='test -s conftest$ac_exeext' |
| 13481 | { (case "(($ac_try" in |
| 13482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13483 | *) ac_try_echo=$ac_try;; |
| 13484 | esac |
| 13485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13486 | (eval "$ac_try") 2>&5 |
| 13487 | ac_status=$? |
| 13488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13489 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13490 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13491 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13492 | echo "$as_me: failed program was:" >&5 |
| 13493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13494 | |
| 13495 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13496 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13497 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13498 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13499 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13500 | LIBS=$ac_check_lib_save_LIBS |
| 13501 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13502 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 13503 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
| 13504 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13505 | cat >>confdefs.h <<_ACEOF |
| 13506 | #define HAVE_LIBPSAPI 1 |
| 13507 | _ACEOF |
| 13508 | |
| 13509 | LIBS="-lpsapi $LIBS" |
| 13510 | |
| 13511 | fi |
| 13512 | |
| 13513 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13514 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13515 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 13516 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
| 13517 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13519 | else |
| 13520 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13521 | cat >conftest.$ac_ext <<_ACEOF |
| 13522 | /* confdefs.h. */ |
| 13523 | _ACEOF |
| 13524 | cat confdefs.h >>conftest.$ac_ext |
| 13525 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13526 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13527 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13528 | /* Override any GCC internal prototype to avoid an error. |
| 13529 | Use char because int might match the return type of a GCC |
| 13530 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13531 | #ifdef __cplusplus |
| 13532 | extern "C" |
| 13533 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13534 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13535 | int |
| 13536 | main () |
| 13537 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13538 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13539 | ; |
| 13540 | return 0; |
| 13541 | } |
| 13542 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13543 | for ac_lib in '' dl; do |
| 13544 | if test -z "$ac_lib"; then |
| 13545 | ac_res="none required" |
| 13546 | else |
| 13547 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13548 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13549 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13550 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13551 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 13558 | ac_status=$? |
| 13559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13560 | rm -f conftest.er1 |
| 13561 | cat conftest.err >&5 |
| 13562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13563 | (exit $ac_status); } && |
| 13564 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13565 | { (case "(($ac_try" in |
| 13566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13567 | *) ac_try_echo=$ac_try;; |
| 13568 | esac |
| 13569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13570 | (eval "$ac_try") 2>&5 |
| 13571 | ac_status=$? |
| 13572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13573 | (exit $ac_status); }; } && |
| 13574 | { ac_try='test -s conftest$ac_exeext' |
| 13575 | { (case "(($ac_try" in |
| 13576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13577 | *) ac_try_echo=$ac_try;; |
| 13578 | esac |
| 13579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13580 | (eval "$ac_try") 2>&5 |
| 13581 | ac_status=$? |
| 13582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13583 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13584 | ac_cv_search_dlopen=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13585 | else |
| 13586 | echo "$as_me: failed program was:" >&5 |
| 13587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13588 | |
| 13589 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13590 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13591 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13592 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13593 | conftest$ac_exeext |
| 13594 | if test "${ac_cv_search_dlopen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13595 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13596 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13597 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13598 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13599 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13600 | else |
| 13601 | ac_cv_search_dlopen=no |
| 13602 | fi |
| 13603 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13604 | LIBS=$ac_func_search_save_LIBS |
| 13605 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13606 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 13607 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13608 | ac_res=$ac_cv_search_dlopen |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13609 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13610 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13611 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13612 | cat >>confdefs.h <<\_ACEOF |
| 13613 | #define HAVE_DLOPEN 1 |
| 13614 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13615 | |
| 13616 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13617 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 13618 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13619 | fi |
| 13620 | |
| 13621 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13622 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13623 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
| 13624 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 13625 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13627 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13628 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13629 | cat >conftest.$ac_ext <<_ACEOF |
| 13630 | /* confdefs.h. */ |
| 13631 | _ACEOF |
| 13632 | cat confdefs.h >>conftest.$ac_ext |
| 13633 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13634 | /* end confdefs.h. */ |
| 13635 | |
| 13636 | /* Override any GCC internal prototype to avoid an error. |
| 13637 | Use char because int might match the return type of a GCC |
| 13638 | builtin and then its argument prototype would still apply. */ |
| 13639 | #ifdef __cplusplus |
| 13640 | extern "C" |
| 13641 | #endif |
| 13642 | char ffi_call (); |
| 13643 | int |
| 13644 | main () |
| 13645 | { |
| 13646 | return ffi_call (); |
| 13647 | ; |
| 13648 | return 0; |
| 13649 | } |
| 13650 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13651 | for ac_lib in '' ffi; do |
| 13652 | if test -z "$ac_lib"; then |
| 13653 | ac_res="none required" |
| 13654 | else |
| 13655 | ac_res=-l$ac_lib |
| 13656 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13657 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13658 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13659 | if { (ac_try="$ac_link" |
| 13660 | case "(($ac_try" in |
| 13661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13662 | *) ac_try_echo=$ac_try;; |
| 13663 | esac |
| 13664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13665 | (eval "$ac_link") 2>conftest.er1 |
| 13666 | ac_status=$? |
| 13667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13668 | rm -f conftest.er1 |
| 13669 | cat conftest.err >&5 |
| 13670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13671 | (exit $ac_status); } && |
| 13672 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13673 | { (case "(($ac_try" in |
| 13674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13675 | *) ac_try_echo=$ac_try;; |
| 13676 | esac |
| 13677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13678 | (eval "$ac_try") 2>&5 |
| 13679 | ac_status=$? |
| 13680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13681 | (exit $ac_status); }; } && |
| 13682 | { ac_try='test -s conftest$ac_exeext' |
| 13683 | { (case "(($ac_try" in |
| 13684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13685 | *) ac_try_echo=$ac_try;; |
| 13686 | esac |
| 13687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13688 | (eval "$ac_try") 2>&5 |
| 13689 | ac_status=$? |
| 13690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13691 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13692 | ac_cv_search_ffi_call=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13693 | else |
| 13694 | echo "$as_me: failed program was:" >&5 |
| 13695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13696 | |
| 13697 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13698 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13699 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13700 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13701 | conftest$ac_exeext |
| 13702 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13703 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13704 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13705 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13706 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13707 | : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13708 | else |
| 13709 | ac_cv_search_ffi_call=no |
| 13710 | fi |
| 13711 | rm conftest.$ac_ext |
| 13712 | LIBS=$ac_func_search_save_LIBS |
| 13713 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13714 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 13715 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13716 | ac_res=$ac_cv_search_ffi_call |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13717 | if test "$ac_res" != no; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13718 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13719 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13720 | cat >>confdefs.h <<\_ACEOF |
| 13721 | #define HAVE_FFI_CALL 1 |
| 13722 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13723 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13724 | else |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 13725 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 |
| 13726 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} |
| 13727 | { (exit 1); exit 1; }; } |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13728 | fi |
| 13729 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13730 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13731 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13732 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 13733 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
| 13734 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13736 | else |
| 13737 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13738 | cat >conftest.$ac_ext <<_ACEOF |
| 13739 | /* confdefs.h. */ |
| 13740 | _ACEOF |
| 13741 | cat confdefs.h >>conftest.$ac_ext |
| 13742 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13743 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13744 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13745 | /* Override any GCC internal prototype to avoid an error. |
| 13746 | Use char because int might match the return type of a GCC |
| 13747 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13748 | #ifdef __cplusplus |
| 13749 | extern "C" |
| 13750 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13751 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13752 | int |
| 13753 | main () |
| 13754 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13755 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13756 | ; |
| 13757 | return 0; |
| 13758 | } |
| 13759 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13760 | for ac_lib in '' malloc; do |
| 13761 | if test -z "$ac_lib"; then |
| 13762 | ac_res="none required" |
| 13763 | else |
| 13764 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13765 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13766 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13767 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13768 | if { (ac_try="$ac_link" |
| 13769 | case "(($ac_try" in |
| 13770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13771 | *) ac_try_echo=$ac_try;; |
| 13772 | esac |
| 13773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13774 | (eval "$ac_link") 2>conftest.er1 |
| 13775 | ac_status=$? |
| 13776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13777 | rm -f conftest.er1 |
| 13778 | cat conftest.err >&5 |
| 13779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13780 | (exit $ac_status); } && |
| 13781 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13782 | { (case "(($ac_try" in |
| 13783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13784 | *) ac_try_echo=$ac_try;; |
| 13785 | esac |
| 13786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13787 | (eval "$ac_try") 2>&5 |
| 13788 | ac_status=$? |
| 13789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13790 | (exit $ac_status); }; } && |
| 13791 | { ac_try='test -s conftest$ac_exeext' |
| 13792 | { (case "(($ac_try" in |
| 13793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13794 | *) ac_try_echo=$ac_try;; |
| 13795 | esac |
| 13796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13797 | (eval "$ac_try") 2>&5 |
| 13798 | ac_status=$? |
| 13799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13800 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13801 | ac_cv_search_mallinfo=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13802 | else |
| 13803 | echo "$as_me: failed program was:" >&5 |
| 13804 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13805 | |
| 13806 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13807 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13808 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13809 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13810 | conftest$ac_exeext |
| 13811 | if test "${ac_cv_search_mallinfo+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13812 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13813 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13814 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13815 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13816 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13817 | else |
| 13818 | ac_cv_search_mallinfo=no |
| 13819 | fi |
| 13820 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13821 | LIBS=$ac_func_search_save_LIBS |
| 13822 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13823 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 13824 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13825 | ac_res=$ac_cv_search_mallinfo |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13826 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13827 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13828 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13829 | cat >>confdefs.h <<\_ACEOF |
| 13830 | #define HAVE_MALLINFO 1 |
| 13831 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13832 | |
| 13833 | fi |
| 13834 | |
| 13835 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13836 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13837 | |
| 13838 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 13839 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 13840 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 13841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13842 | else |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13843 | ac_check_lib_save_LIBS=$LIBS |
| 13844 | LIBS="-lpthread $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13845 | cat >conftest.$ac_ext <<_ACEOF |
| 13846 | /* confdefs.h. */ |
| 13847 | _ACEOF |
| 13848 | cat confdefs.h >>conftest.$ac_ext |
| 13849 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13850 | /* end confdefs.h. */ |
| 13851 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13852 | /* Override any GCC internal prototype to avoid an error. |
| 13853 | Use char because int might match the return type of a GCC |
| 13854 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13855 | #ifdef __cplusplus |
| 13856 | extern "C" |
| 13857 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13858 | char pthread_mutex_init (); |
| 13859 | int |
| 13860 | main () |
| 13861 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13862 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13863 | ; |
| 13864 | return 0; |
| 13865 | } |
| 13866 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13867 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13868 | if { (ac_try="$ac_link" |
| 13869 | case "(($ac_try" in |
| 13870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13871 | *) ac_try_echo=$ac_try;; |
| 13872 | esac |
| 13873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13874 | (eval "$ac_link") 2>conftest.er1 |
| 13875 | ac_status=$? |
| 13876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13877 | rm -f conftest.er1 |
| 13878 | cat conftest.err >&5 |
| 13879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13880 | (exit $ac_status); } && |
| 13881 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13882 | { (case "(($ac_try" in |
| 13883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13884 | *) ac_try_echo=$ac_try;; |
| 13885 | esac |
| 13886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13887 | (eval "$ac_try") 2>&5 |
| 13888 | ac_status=$? |
| 13889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13890 | (exit $ac_status); }; } && |
| 13891 | { ac_try='test -s conftest$ac_exeext' |
| 13892 | { (case "(($ac_try" in |
| 13893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13894 | *) ac_try_echo=$ac_try;; |
| 13895 | esac |
| 13896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13897 | (eval "$ac_try") 2>&5 |
| 13898 | ac_status=$? |
| 13899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13900 | (exit $ac_status); }; }; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13901 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13902 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13903 | echo "$as_me: failed program was:" >&5 |
| 13904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13905 | |
| 13906 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13907 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13908 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13909 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13910 | conftest$ac_exeext conftest.$ac_ext |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13911 | LIBS=$ac_check_lib_save_LIBS |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13912 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13913 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 13914 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 13915 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13916 | cat >>confdefs.h <<_ACEOF |
| 13917 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 13918 | _ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13919 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13920 | LIBS="-lpthread $LIBS" |
| 13921 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13922 | fi |
| 13923 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13924 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 13925 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
| 13926 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 13927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13928 | else |
| 13929 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13930 | cat >conftest.$ac_ext <<_ACEOF |
| 13931 | /* confdefs.h. */ |
| 13932 | _ACEOF |
| 13933 | cat confdefs.h >>conftest.$ac_ext |
| 13934 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13935 | /* end confdefs.h. */ |
| 13936 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13937 | /* Override any GCC internal prototype to avoid an error. |
| 13938 | Use char because int might match the return type of a GCC |
| 13939 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13940 | #ifdef __cplusplus |
| 13941 | extern "C" |
| 13942 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13943 | char pthread_mutex_lock (); |
| 13944 | int |
| 13945 | main () |
| 13946 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13947 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13948 | ; |
| 13949 | return 0; |
| 13950 | } |
| 13951 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13952 | for ac_lib in '' pthread; do |
| 13953 | if test -z "$ac_lib"; then |
| 13954 | ac_res="none required" |
| 13955 | else |
| 13956 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13957 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13958 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13959 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13960 | if { (ac_try="$ac_link" |
| 13961 | case "(($ac_try" in |
| 13962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13963 | *) ac_try_echo=$ac_try;; |
| 13964 | esac |
| 13965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13966 | (eval "$ac_link") 2>conftest.er1 |
| 13967 | ac_status=$? |
| 13968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13969 | rm -f conftest.er1 |
| 13970 | cat conftest.err >&5 |
| 13971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13972 | (exit $ac_status); } && |
| 13973 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13974 | { (case "(($ac_try" in |
| 13975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13976 | *) ac_try_echo=$ac_try;; |
| 13977 | esac |
| 13978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13979 | (eval "$ac_try") 2>&5 |
| 13980 | ac_status=$? |
| 13981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13982 | (exit $ac_status); }; } && |
| 13983 | { ac_try='test -s conftest$ac_exeext' |
| 13984 | { (case "(($ac_try" in |
| 13985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13986 | *) ac_try_echo=$ac_try;; |
| 13987 | esac |
| 13988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13989 | (eval "$ac_try") 2>&5 |
| 13990 | ac_status=$? |
| 13991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13992 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13993 | ac_cv_search_pthread_mutex_lock=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13994 | else |
| 13995 | echo "$as_me: failed program was:" >&5 |
| 13996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13997 | |
| 13998 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13999 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14000 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14001 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14002 | conftest$ac_exeext |
| 14003 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14004 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14005 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14006 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14007 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 14008 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14009 | else |
| 14010 | ac_cv_search_pthread_mutex_lock=no |
| 14011 | fi |
| 14012 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14013 | LIBS=$ac_func_search_save_LIBS |
| 14014 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14015 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 14016 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14017 | ac_res=$ac_cv_search_pthread_mutex_lock |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14018 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14019 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14020 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14021 | cat >>confdefs.h <<\_ACEOF |
| 14022 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 14023 | _ACEOF |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 14024 | |
| 14025 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14026 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14027 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 14028 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 14029 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 14030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14031 | else |
| 14032 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14033 | cat >conftest.$ac_ext <<_ACEOF |
| 14034 | /* confdefs.h. */ |
| 14035 | _ACEOF |
| 14036 | cat confdefs.h >>conftest.$ac_ext |
| 14037 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14038 | /* end confdefs.h. */ |
| 14039 | |
| 14040 | /* Override any GCC internal prototype to avoid an error. |
| 14041 | Use char because int might match the return type of a GCC |
| 14042 | builtin and then its argument prototype would still apply. */ |
| 14043 | #ifdef __cplusplus |
| 14044 | extern "C" |
| 14045 | #endif |
| 14046 | char pthread_rwlock_init (); |
| 14047 | int |
| 14048 | main () |
| 14049 | { |
| 14050 | return pthread_rwlock_init (); |
| 14051 | ; |
| 14052 | return 0; |
| 14053 | } |
| 14054 | _ACEOF |
| 14055 | for ac_lib in '' pthread; do |
| 14056 | if test -z "$ac_lib"; then |
| 14057 | ac_res="none required" |
| 14058 | else |
| 14059 | ac_res=-l$ac_lib |
| 14060 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14061 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14062 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14063 | if { (ac_try="$ac_link" |
| 14064 | case "(($ac_try" in |
| 14065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14066 | *) ac_try_echo=$ac_try;; |
| 14067 | esac |
| 14068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14069 | (eval "$ac_link") 2>conftest.er1 |
| 14070 | ac_status=$? |
| 14071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14072 | rm -f conftest.er1 |
| 14073 | cat conftest.err >&5 |
| 14074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14075 | (exit $ac_status); } && |
| 14076 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14077 | { (case "(($ac_try" in |
| 14078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14079 | *) ac_try_echo=$ac_try;; |
| 14080 | esac |
| 14081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14082 | (eval "$ac_try") 2>&5 |
| 14083 | ac_status=$? |
| 14084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14085 | (exit $ac_status); }; } && |
| 14086 | { ac_try='test -s conftest$ac_exeext' |
| 14087 | { (case "(($ac_try" in |
| 14088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14089 | *) ac_try_echo=$ac_try;; |
| 14090 | esac |
| 14091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14092 | (eval "$ac_try") 2>&5 |
| 14093 | ac_status=$? |
| 14094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14095 | (exit $ac_status); }; }; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14096 | ac_cv_search_pthread_rwlock_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14097 | else |
| 14098 | echo "$as_me: failed program was:" >&5 |
| 14099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14100 | |
| 14101 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14102 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14103 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14104 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14105 | conftest$ac_exeext |
| 14106 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14107 | break |
| 14108 | fi |
| 14109 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14110 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 14111 | : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14112 | else |
| 14113 | ac_cv_search_pthread_rwlock_init=no |
| 14114 | fi |
| 14115 | rm conftest.$ac_ext |
| 14116 | LIBS=$ac_func_search_save_LIBS |
| 14117 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14118 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 14119 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14120 | ac_res=$ac_cv_search_pthread_rwlock_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14121 | if test "$ac_res" != no; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14122 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14123 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14124 | cat >>confdefs.h <<\_ACEOF |
| 14125 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 14126 | _ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14127 | |
| 14128 | fi |
| 14129 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14130 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 14131 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 14132 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 14133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14134 | else |
| 14135 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14136 | cat >conftest.$ac_ext <<_ACEOF |
| 14137 | /* confdefs.h. */ |
| 14138 | _ACEOF |
| 14139 | cat confdefs.h >>conftest.$ac_ext |
| 14140 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14141 | /* end confdefs.h. */ |
| 14142 | |
| 14143 | /* Override any GCC internal prototype to avoid an error. |
| 14144 | Use char because int might match the return type of a GCC |
| 14145 | builtin and then its argument prototype would still apply. */ |
| 14146 | #ifdef __cplusplus |
| 14147 | extern "C" |
| 14148 | #endif |
| 14149 | char pthread_getspecific (); |
| 14150 | int |
| 14151 | main () |
| 14152 | { |
| 14153 | return pthread_getspecific (); |
| 14154 | ; |
| 14155 | return 0; |
| 14156 | } |
| 14157 | _ACEOF |
| 14158 | for ac_lib in '' pthread; do |
| 14159 | if test -z "$ac_lib"; then |
| 14160 | ac_res="none required" |
| 14161 | else |
| 14162 | ac_res=-l$ac_lib |
| 14163 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14164 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14165 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14166 | if { (ac_try="$ac_link" |
| 14167 | case "(($ac_try" in |
| 14168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14169 | *) ac_try_echo=$ac_try;; |
| 14170 | esac |
| 14171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14172 | (eval "$ac_link") 2>conftest.er1 |
| 14173 | ac_status=$? |
| 14174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14175 | rm -f conftest.er1 |
| 14176 | cat conftest.err >&5 |
| 14177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14178 | (exit $ac_status); } && |
| 14179 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14180 | { (case "(($ac_try" in |
| 14181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14182 | *) ac_try_echo=$ac_try;; |
| 14183 | esac |
| 14184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14185 | (eval "$ac_try") 2>&5 |
| 14186 | ac_status=$? |
| 14187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14188 | (exit $ac_status); }; } && |
| 14189 | { ac_try='test -s conftest$ac_exeext' |
| 14190 | { (case "(($ac_try" in |
| 14191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14192 | *) ac_try_echo=$ac_try;; |
| 14193 | esac |
| 14194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14195 | (eval "$ac_try") 2>&5 |
| 14196 | ac_status=$? |
| 14197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14198 | (exit $ac_status); }; }; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14199 | ac_cv_search_pthread_getspecific=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14200 | else |
| 14201 | echo "$as_me: failed program was:" >&5 |
| 14202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14203 | |
| 14204 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14205 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14206 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14207 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14208 | conftest$ac_exeext |
| 14209 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14210 | break |
| 14211 | fi |
| 14212 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14213 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 14214 | : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14215 | else |
| 14216 | ac_cv_search_pthread_getspecific=no |
| 14217 | fi |
| 14218 | rm conftest.$ac_ext |
| 14219 | LIBS=$ac_func_search_save_LIBS |
| 14220 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14221 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 14222 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14223 | ac_res=$ac_cv_search_pthread_getspecific |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14224 | if test "$ac_res" != no; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14225 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14226 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14227 | cat >>confdefs.h <<\_ACEOF |
| 14228 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 14229 | _ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14230 | |
| 14231 | fi |
| 14232 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 14233 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 14234 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14235 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14236 | # Check whether --with-udis86 was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14237 | if test "${with_udis86+set}" = set; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14238 | withval=$with_udis86; |
| 14239 | USE_UDIS86=1 |
| 14240 | |
| 14241 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 14242 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14243 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 14244 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14245 | |
| 14246 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 14247 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 14248 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 14249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14250 | else |
| 14251 | ac_check_lib_save_LIBS=$LIBS |
| 14252 | LIBS="-ludis86 $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14253 | cat >conftest.$ac_ext <<_ACEOF |
| 14254 | /* confdefs.h. */ |
| 14255 | _ACEOF |
| 14256 | cat confdefs.h >>conftest.$ac_ext |
| 14257 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14258 | /* end confdefs.h. */ |
| 14259 | |
| 14260 | /* Override any GCC internal prototype to avoid an error. |
| 14261 | Use char because int might match the return type of a GCC |
| 14262 | builtin and then its argument prototype would still apply. */ |
| 14263 | #ifdef __cplusplus |
| 14264 | extern "C" |
| 14265 | #endif |
| 14266 | char ud_init (); |
| 14267 | int |
| 14268 | main () |
| 14269 | { |
| 14270 | return ud_init (); |
| 14271 | ; |
| 14272 | return 0; |
| 14273 | } |
| 14274 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14275 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14276 | if { (ac_try="$ac_link" |
| 14277 | case "(($ac_try" in |
| 14278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14279 | *) ac_try_echo=$ac_try;; |
| 14280 | esac |
| 14281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14282 | (eval "$ac_link") 2>conftest.er1 |
| 14283 | ac_status=$? |
| 14284 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14285 | rm -f conftest.er1 |
| 14286 | cat conftest.err >&5 |
| 14287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14288 | (exit $ac_status); } && |
| 14289 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14290 | { (case "(($ac_try" in |
| 14291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14292 | *) ac_try_echo=$ac_try;; |
| 14293 | esac |
| 14294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14295 | (eval "$ac_try") 2>&5 |
| 14296 | ac_status=$? |
| 14297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14298 | (exit $ac_status); }; } && |
| 14299 | { ac_try='test -s conftest$ac_exeext' |
| 14300 | { (case "(($ac_try" in |
| 14301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14302 | *) ac_try_echo=$ac_try;; |
| 14303 | esac |
| 14304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14305 | (eval "$ac_try") 2>&5 |
| 14306 | ac_status=$? |
| 14307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14308 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14309 | ac_cv_lib_udis86_ud_init=yes |
| 14310 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14311 | echo "$as_me: failed program was:" >&5 |
| 14312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14313 | |
| 14314 | ac_cv_lib_udis86_ud_init=no |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14315 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14316 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14317 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14318 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14319 | LIBS=$ac_check_lib_save_LIBS |
| 14320 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14321 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 14322 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 14323 | if test $ac_cv_lib_udis86_ud_init = yes; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14324 | cat >>confdefs.h <<_ACEOF |
| 14325 | #define HAVE_LIBUDIS86 1 |
| 14326 | _ACEOF |
| 14327 | |
| 14328 | LIBS="-ludis86 $LIBS" |
| 14329 | |
| 14330 | else |
| 14331 | |
| 14332 | echo "Error! You need to have libudis86 around." |
| 14333 | exit -1 |
| 14334 | |
| 14335 | fi |
| 14336 | |
| 14337 | |
| 14338 | else |
| 14339 | USE_UDIS86=0 |
| 14340 | |
| 14341 | fi |
| 14342 | |
| 14343 | |
| 14344 | cat >>confdefs.h <<_ACEOF |
| 14345 | #define USE_UDIS86 $USE_UDIS86 |
| 14346 | _ACEOF |
| 14347 | |
| 14348 | |
| 14349 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14350 | # Check whether --with-oprofile was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14351 | if test "${with_oprofile+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14352 | withval=$with_oprofile; |
| 14353 | USE_OPROFILE=1 |
| 14354 | |
| 14355 | case "$withval" in |
| 14356 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14357 | no) llvm_cv_oppath= |
| 14358 | USE_OPROFILE=0 |
| 14359 | ;; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14360 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 14361 | CPPFLAGS="-I${withval}/include";; |
| 14362 | esac |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14363 | if test -n "$llvm_cv_oppath" ; then |
| 14364 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14365 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
| 14366 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 14367 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14369 | else |
| 14370 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14371 | cat >conftest.$ac_ext <<_ACEOF |
| 14372 | /* confdefs.h. */ |
| 14373 | _ACEOF |
| 14374 | cat confdefs.h >>conftest.$ac_ext |
| 14375 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14376 | /* end confdefs.h. */ |
| 14377 | |
| 14378 | /* Override any GCC internal prototype to avoid an error. |
| 14379 | Use char because int might match the return type of a GCC |
| 14380 | builtin and then its argument prototype would still apply. */ |
| 14381 | #ifdef __cplusplus |
| 14382 | extern "C" |
| 14383 | #endif |
| 14384 | char bfd_init (); |
| 14385 | int |
| 14386 | main () |
| 14387 | { |
| 14388 | return bfd_init (); |
| 14389 | ; |
| 14390 | return 0; |
| 14391 | } |
| 14392 | _ACEOF |
| 14393 | for ac_lib in '' bfd; do |
| 14394 | if test -z "$ac_lib"; then |
| 14395 | ac_res="none required" |
| 14396 | else |
| 14397 | ac_res=-l$ac_lib |
| 14398 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14399 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14400 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14401 | if { (ac_try="$ac_link" |
| 14402 | case "(($ac_try" in |
| 14403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14404 | *) ac_try_echo=$ac_try;; |
| 14405 | esac |
| 14406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14407 | (eval "$ac_link") 2>conftest.er1 |
| 14408 | ac_status=$? |
| 14409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14410 | rm -f conftest.er1 |
| 14411 | cat conftest.err >&5 |
| 14412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14413 | (exit $ac_status); } && |
| 14414 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14415 | { (case "(($ac_try" in |
| 14416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14417 | *) ac_try_echo=$ac_try;; |
| 14418 | esac |
| 14419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14420 | (eval "$ac_try") 2>&5 |
| 14421 | ac_status=$? |
| 14422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14423 | (exit $ac_status); }; } && |
| 14424 | { ac_try='test -s conftest$ac_exeext' |
| 14425 | { (case "(($ac_try" in |
| 14426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14427 | *) ac_try_echo=$ac_try;; |
| 14428 | esac |
| 14429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14430 | (eval "$ac_try") 2>&5 |
| 14431 | ac_status=$? |
| 14432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14433 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14434 | ac_cv_search_bfd_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14435 | else |
| 14436 | echo "$as_me: failed program was:" >&5 |
| 14437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14438 | |
| 14439 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14440 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14441 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14442 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14443 | conftest$ac_exeext |
| 14444 | if test "${ac_cv_search_bfd_init+set}" = set; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14445 | break |
| 14446 | fi |
| 14447 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14448 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14449 | : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14450 | else |
| 14451 | ac_cv_search_bfd_init=no |
| 14452 | fi |
| 14453 | rm conftest.$ac_ext |
| 14454 | LIBS=$ac_func_search_save_LIBS |
| 14455 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14456 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 |
| 14457 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14458 | ac_res=$ac_cv_search_bfd_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14459 | if test "$ac_res" != no; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14460 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14461 | |
| 14462 | fi |
| 14463 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14464 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 14465 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 14466 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14468 | else |
| 14469 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14470 | cat >conftest.$ac_ext <<_ACEOF |
| 14471 | /* confdefs.h. */ |
| 14472 | _ACEOF |
| 14473 | cat confdefs.h >>conftest.$ac_ext |
| 14474 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14475 | /* end confdefs.h. */ |
| 14476 | |
| 14477 | /* Override any GCC internal prototype to avoid an error. |
| 14478 | Use char because int might match the return type of a GCC |
| 14479 | builtin and then its argument prototype would still apply. */ |
| 14480 | #ifdef __cplusplus |
| 14481 | extern "C" |
| 14482 | #endif |
| 14483 | char op_open_agent (); |
| 14484 | int |
| 14485 | main () |
| 14486 | { |
| 14487 | return op_open_agent (); |
| 14488 | ; |
| 14489 | return 0; |
| 14490 | } |
| 14491 | _ACEOF |
| 14492 | for ac_lib in '' opagent; do |
| 14493 | if test -z "$ac_lib"; then |
| 14494 | ac_res="none required" |
| 14495 | else |
| 14496 | ac_res=-l$ac_lib |
| 14497 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14498 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14499 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14500 | if { (ac_try="$ac_link" |
| 14501 | case "(($ac_try" in |
| 14502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14503 | *) ac_try_echo=$ac_try;; |
| 14504 | esac |
| 14505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14506 | (eval "$ac_link") 2>conftest.er1 |
| 14507 | ac_status=$? |
| 14508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14509 | rm -f conftest.er1 |
| 14510 | cat conftest.err >&5 |
| 14511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14512 | (exit $ac_status); } && |
| 14513 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14514 | { (case "(($ac_try" in |
| 14515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14516 | *) ac_try_echo=$ac_try;; |
| 14517 | esac |
| 14518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14519 | (eval "$ac_try") 2>&5 |
| 14520 | ac_status=$? |
| 14521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14522 | (exit $ac_status); }; } && |
| 14523 | { ac_try='test -s conftest$ac_exeext' |
| 14524 | { (case "(($ac_try" in |
| 14525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14526 | *) ac_try_echo=$ac_try;; |
| 14527 | esac |
| 14528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14529 | (eval "$ac_try") 2>&5 |
| 14530 | ac_status=$? |
| 14531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14532 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14533 | ac_cv_search_op_open_agent=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14534 | else |
| 14535 | echo "$as_me: failed program was:" >&5 |
| 14536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14537 | |
| 14538 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14539 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14540 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14541 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14542 | conftest$ac_exeext |
| 14543 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14544 | break |
| 14545 | fi |
| 14546 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14547 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14548 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14549 | else |
| 14550 | ac_cv_search_op_open_agent=no |
| 14551 | fi |
| 14552 | rm conftest.$ac_ext |
| 14553 | LIBS=$ac_func_search_save_LIBS |
| 14554 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14555 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 14556 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14557 | ac_res=$ac_cv_search_op_open_agent |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14558 | if test "$ac_res" != no; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14559 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14560 | |
| 14561 | else |
| 14562 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14563 | echo "Error! You need to have libopagent around." |
| 14564 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14565 | |
| 14566 | fi |
| 14567 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14568 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14569 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14570 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14571 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14573 | fi |
| 14574 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14575 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14576 | else |
| 14577 | # Is the header compilable? |
| 14578 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 14579 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 14580 | cat >conftest.$ac_ext <<_ACEOF |
| 14581 | /* confdefs.h. */ |
| 14582 | _ACEOF |
| 14583 | cat confdefs.h >>conftest.$ac_ext |
| 14584 | cat >>conftest.$ac_ext <<_ACEOF |
| 14585 | /* end confdefs.h. */ |
| 14586 | $ac_includes_default |
| 14587 | #include <opagent.h> |
| 14588 | _ACEOF |
| 14589 | rm -f conftest.$ac_objext |
| 14590 | if { (ac_try="$ac_compile" |
| 14591 | case "(($ac_try" in |
| 14592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14593 | *) ac_try_echo=$ac_try;; |
| 14594 | esac |
| 14595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14596 | (eval "$ac_compile") 2>conftest.er1 |
| 14597 | ac_status=$? |
| 14598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14599 | rm -f conftest.er1 |
| 14600 | cat conftest.err >&5 |
| 14601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14602 | (exit $ac_status); } && |
| 14603 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14604 | { (case "(($ac_try" in |
| 14605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14606 | *) ac_try_echo=$ac_try;; |
| 14607 | esac |
| 14608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14609 | (eval "$ac_try") 2>&5 |
| 14610 | ac_status=$? |
| 14611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14612 | (exit $ac_status); }; } && |
| 14613 | { ac_try='test -s conftest.$ac_objext' |
| 14614 | { (case "(($ac_try" in |
| 14615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14616 | *) ac_try_echo=$ac_try;; |
| 14617 | esac |
| 14618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14619 | (eval "$ac_try") 2>&5 |
| 14620 | ac_status=$? |
| 14621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14622 | (exit $ac_status); }; }; then |
| 14623 | ac_header_compiler=yes |
| 14624 | else |
| 14625 | echo "$as_me: failed program was:" >&5 |
| 14626 | sed 's/^/| /' conftest.$ac_ext >&5 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14627 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14628 | ac_header_compiler=no |
| 14629 | fi |
| 14630 | |
| 14631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14632 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14633 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14634 | |
| 14635 | # Is the header present? |
| 14636 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 14637 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 14638 | cat >conftest.$ac_ext <<_ACEOF |
| 14639 | /* confdefs.h. */ |
| 14640 | _ACEOF |
| 14641 | cat confdefs.h >>conftest.$ac_ext |
| 14642 | cat >>conftest.$ac_ext <<_ACEOF |
| 14643 | /* end confdefs.h. */ |
| 14644 | #include <opagent.h> |
| 14645 | _ACEOF |
| 14646 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14647 | case "(($ac_try" in |
| 14648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14649 | *) ac_try_echo=$ac_try;; |
| 14650 | esac |
| 14651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14652 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14653 | ac_status=$? |
| 14654 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14655 | rm -f conftest.er1 |
| 14656 | cat conftest.err >&5 |
| 14657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14658 | (exit $ac_status); } >/dev/null; then |
| 14659 | if test -s conftest.err; then |
| 14660 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14661 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14662 | else |
| 14663 | ac_cpp_err= |
| 14664 | fi |
| 14665 | else |
| 14666 | ac_cpp_err=yes |
| 14667 | fi |
| 14668 | if test -z "$ac_cpp_err"; then |
| 14669 | ac_header_preproc=yes |
| 14670 | else |
| 14671 | echo "$as_me: failed program was:" >&5 |
| 14672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14673 | |
| 14674 | ac_header_preproc=no |
| 14675 | fi |
| 14676 | |
| 14677 | rm -f conftest.err conftest.$ac_ext |
| 14678 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14679 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14680 | |
| 14681 | # So? What about this header? |
| 14682 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14683 | yes:no: ) |
| 14684 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14685 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14686 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 14687 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 14688 | ac_header_preproc=yes |
| 14689 | ;; |
| 14690 | no:yes:* ) |
| 14691 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 14692 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 14693 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 14694 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 14695 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 14696 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 14697 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14698 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14699 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 14700 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 14701 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 14702 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 14703 | ( cat <<\_ASBOX |
| 14704 | ## ----------------------------------- ## |
| 14705 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 14706 | ## ----------------------------------- ## |
| 14707 | _ASBOX |
| 14708 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14709 | ;; |
| 14710 | esac |
| 14711 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14712 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14713 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14715 | else |
| 14716 | ac_cv_header_opagent_h=$ac_header_preproc |
| 14717 | fi |
| 14718 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14719 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14720 | |
| 14721 | fi |
| 14722 | if test $ac_cv_header_opagent_h = yes; then |
| 14723 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14724 | else |
| 14725 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14726 | echo "Error! You need to have opagent.h around." |
| 14727 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14728 | |
| 14729 | fi |
| 14730 | |
| 14731 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14732 | fi |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14733 | |
| 14734 | else |
| 14735 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14736 | USE_OPROFILE=0 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14737 | |
| 14738 | |
| 14739 | fi |
| 14740 | |
| 14741 | |
| 14742 | cat >>confdefs.h <<_ACEOF |
| 14743 | #define USE_OPROFILE $USE_OPROFILE |
| 14744 | _ACEOF |
| 14745 | |
| 14746 | |
| 14747 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14748 | |
| 14749 | |
| 14750 | |
| 14751 | |
| 14752 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14753 | ac_header_dirent=no |
| 14754 | 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] | 14755 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 14756 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 14757 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 14758 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14760 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14761 | cat >conftest.$ac_ext <<_ACEOF |
| 14762 | /* confdefs.h. */ |
| 14763 | _ACEOF |
| 14764 | cat confdefs.h >>conftest.$ac_ext |
| 14765 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14766 | /* end confdefs.h. */ |
| 14767 | #include <sys/types.h> |
| 14768 | #include <$ac_hdr> |
| 14769 | |
| 14770 | int |
| 14771 | main () |
| 14772 | { |
| 14773 | if ((DIR *) 0) |
| 14774 | return 0; |
| 14775 | ; |
| 14776 | return 0; |
| 14777 | } |
| 14778 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14779 | rm -f conftest.$ac_objext |
| 14780 | if { (ac_try="$ac_compile" |
| 14781 | case "(($ac_try" in |
| 14782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14783 | *) ac_try_echo=$ac_try;; |
| 14784 | esac |
| 14785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14786 | (eval "$ac_compile") 2>conftest.er1 |
| 14787 | ac_status=$? |
| 14788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14789 | rm -f conftest.er1 |
| 14790 | cat conftest.err >&5 |
| 14791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14792 | (exit $ac_status); } && |
| 14793 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14794 | { (case "(($ac_try" in |
| 14795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14796 | *) ac_try_echo=$ac_try;; |
| 14797 | esac |
| 14798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14799 | (eval "$ac_try") 2>&5 |
| 14800 | ac_status=$? |
| 14801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14802 | (exit $ac_status); }; } && |
| 14803 | { ac_try='test -s conftest.$ac_objext' |
| 14804 | { (case "(($ac_try" in |
| 14805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14806 | *) ac_try_echo=$ac_try;; |
| 14807 | esac |
| 14808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14809 | (eval "$ac_try") 2>&5 |
| 14810 | ac_status=$? |
| 14811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14812 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14813 | eval "$as_ac_Header=yes" |
| 14814 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14815 | echo "$as_me: failed program was:" >&5 |
| 14816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14817 | |
| 14818 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14819 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14820 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14822 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14823 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14824 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14825 | echo "${ECHO_T}$ac_res" >&6; } |
| 14826 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14827 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14828 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14829 | _ACEOF |
| 14830 | |
| 14831 | ac_header_dirent=$ac_hdr; break |
| 14832 | fi |
| 14833 | |
| 14834 | done |
| 14835 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 14836 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14837 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14838 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14839 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14841 | else |
| 14842 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14843 | cat >conftest.$ac_ext <<_ACEOF |
| 14844 | /* confdefs.h. */ |
| 14845 | _ACEOF |
| 14846 | cat confdefs.h >>conftest.$ac_ext |
| 14847 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14848 | /* end confdefs.h. */ |
| 14849 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14850 | /* Override any GCC internal prototype to avoid an error. |
| 14851 | Use char because int might match the return type of a GCC |
| 14852 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14853 | #ifdef __cplusplus |
| 14854 | extern "C" |
| 14855 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14856 | char opendir (); |
| 14857 | int |
| 14858 | main () |
| 14859 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14860 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14861 | ; |
| 14862 | return 0; |
| 14863 | } |
| 14864 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14865 | for ac_lib in '' dir; do |
| 14866 | if test -z "$ac_lib"; then |
| 14867 | ac_res="none required" |
| 14868 | else |
| 14869 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14870 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14871 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14872 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14873 | if { (ac_try="$ac_link" |
| 14874 | case "(($ac_try" in |
| 14875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14876 | *) ac_try_echo=$ac_try;; |
| 14877 | esac |
| 14878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14879 | (eval "$ac_link") 2>conftest.er1 |
| 14880 | ac_status=$? |
| 14881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14882 | rm -f conftest.er1 |
| 14883 | cat conftest.err >&5 |
| 14884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14885 | (exit $ac_status); } && |
| 14886 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14887 | { (case "(($ac_try" in |
| 14888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14889 | *) ac_try_echo=$ac_try;; |
| 14890 | esac |
| 14891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14892 | (eval "$ac_try") 2>&5 |
| 14893 | ac_status=$? |
| 14894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14895 | (exit $ac_status); }; } && |
| 14896 | { ac_try='test -s conftest$ac_exeext' |
| 14897 | { (case "(($ac_try" in |
| 14898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14899 | *) ac_try_echo=$ac_try;; |
| 14900 | esac |
| 14901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14902 | (eval "$ac_try") 2>&5 |
| 14903 | ac_status=$? |
| 14904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14905 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14906 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14907 | else |
| 14908 | echo "$as_me: failed program was:" >&5 |
| 14909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14910 | |
| 14911 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14912 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14913 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14914 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14915 | conftest$ac_exeext |
| 14916 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14917 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14918 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14919 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14920 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14921 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14922 | else |
| 14923 | ac_cv_search_opendir=no |
| 14924 | fi |
| 14925 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14926 | LIBS=$ac_func_search_save_LIBS |
| 14927 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14928 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 14929 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14930 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14931 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14932 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14933 | |
| 14934 | fi |
| 14935 | |
| 14936 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14937 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14938 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14939 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14941 | else |
| 14942 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14943 | cat >conftest.$ac_ext <<_ACEOF |
| 14944 | /* confdefs.h. */ |
| 14945 | _ACEOF |
| 14946 | cat confdefs.h >>conftest.$ac_ext |
| 14947 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14948 | /* end confdefs.h. */ |
| 14949 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14950 | /* Override any GCC internal prototype to avoid an error. |
| 14951 | Use char because int might match the return type of a GCC |
| 14952 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14953 | #ifdef __cplusplus |
| 14954 | extern "C" |
| 14955 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14956 | char opendir (); |
| 14957 | int |
| 14958 | main () |
| 14959 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14960 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14961 | ; |
| 14962 | return 0; |
| 14963 | } |
| 14964 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14965 | for ac_lib in '' x; do |
| 14966 | if test -z "$ac_lib"; then |
| 14967 | ac_res="none required" |
| 14968 | else |
| 14969 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14970 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14971 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14972 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14973 | if { (ac_try="$ac_link" |
| 14974 | case "(($ac_try" in |
| 14975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14976 | *) ac_try_echo=$ac_try;; |
| 14977 | esac |
| 14978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14979 | (eval "$ac_link") 2>conftest.er1 |
| 14980 | ac_status=$? |
| 14981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14982 | rm -f conftest.er1 |
| 14983 | cat conftest.err >&5 |
| 14984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14985 | (exit $ac_status); } && |
| 14986 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14987 | { (case "(($ac_try" in |
| 14988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14989 | *) ac_try_echo=$ac_try;; |
| 14990 | esac |
| 14991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14992 | (eval "$ac_try") 2>&5 |
| 14993 | ac_status=$? |
| 14994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14995 | (exit $ac_status); }; } && |
| 14996 | { ac_try='test -s conftest$ac_exeext' |
| 14997 | { (case "(($ac_try" in |
| 14998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14999 | *) ac_try_echo=$ac_try;; |
| 15000 | esac |
| 15001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15002 | (eval "$ac_try") 2>&5 |
| 15003 | ac_status=$? |
| 15004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15005 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15006 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15007 | else |
| 15008 | echo "$as_me: failed program was:" >&5 |
| 15009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15010 | |
| 15011 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15012 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15013 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15014 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15015 | conftest$ac_exeext |
| 15016 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15017 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15018 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15019 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15020 | if test "${ac_cv_search_opendir+set}" = set; then |
| 15021 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15022 | else |
| 15023 | ac_cv_search_opendir=no |
| 15024 | fi |
| 15025 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15026 | LIBS=$ac_func_search_save_LIBS |
| 15027 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15028 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 15029 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15030 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15031 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15032 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15033 | |
| 15034 | fi |
| 15035 | |
| 15036 | fi |
| 15037 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15038 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 15039 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
| 15040 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 15041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15042 | else |
| 15043 | ac_ext=c |
| 15044 | ac_cpp='$CPP $CPPFLAGS' |
| 15045 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15046 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15047 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15048 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15049 | cat >conftest.$ac_ext <<_ACEOF |
| 15050 | /* confdefs.h. */ |
| 15051 | _ACEOF |
| 15052 | cat confdefs.h >>conftest.$ac_ext |
| 15053 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15054 | /* end confdefs.h. */ |
| 15055 | #include <sys/mman.h> |
| 15056 | #include <unistd.h> |
| 15057 | #include <fcntl.h> |
| 15058 | int |
| 15059 | main () |
| 15060 | { |
| 15061 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 15062 | ; |
| 15063 | return 0; |
| 15064 | } |
| 15065 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15066 | rm -f conftest.$ac_objext |
| 15067 | if { (ac_try="$ac_compile" |
| 15068 | case "(($ac_try" in |
| 15069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15070 | *) ac_try_echo=$ac_try;; |
| 15071 | esac |
| 15072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15073 | (eval "$ac_compile") 2>conftest.er1 |
| 15074 | ac_status=$? |
| 15075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15076 | rm -f conftest.er1 |
| 15077 | cat conftest.err >&5 |
| 15078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15079 | (exit $ac_status); } && |
| 15080 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15081 | { (case "(($ac_try" in |
| 15082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15083 | *) ac_try_echo=$ac_try;; |
| 15084 | esac |
| 15085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15086 | (eval "$ac_try") 2>&5 |
| 15087 | ac_status=$? |
| 15088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15089 | (exit $ac_status); }; } && |
| 15090 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15100 | ac_cv_header_mmap_anon=yes |
| 15101 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15102 | echo "$as_me: failed program was:" >&5 |
| 15103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15104 | |
| 15105 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15106 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15107 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15109 | ac_ext=c |
| 15110 | ac_cpp='$CPP $CPPFLAGS' |
| 15111 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15112 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15113 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15114 | |
| 15115 | |
| 15116 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15117 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 15118 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15119 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 15120 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15121 | cat >>confdefs.h <<\_ACEOF |
| 15122 | #define HAVE_MMAP_ANONYMOUS 1 |
| 15123 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15124 | |
| 15125 | fi |
| 15126 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15127 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 15128 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
| 15129 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 15130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15131 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15132 | cat >conftest.$ac_ext <<_ACEOF |
| 15133 | /* confdefs.h. */ |
| 15134 | _ACEOF |
| 15135 | cat confdefs.h >>conftest.$ac_ext |
| 15136 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15137 | /* end confdefs.h. */ |
| 15138 | #include <sys/types.h> |
| 15139 | #include <sys/stat.h> |
| 15140 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15141 | #if defined S_ISBLK && defined S_IFDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15142 | # if S_ISBLK (S_IFDIR) |
| 15143 | You lose. |
| 15144 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15145 | #endif |
| 15146 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15147 | #if defined S_ISBLK && defined S_IFCHR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15148 | # if S_ISBLK (S_IFCHR) |
| 15149 | You lose. |
| 15150 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15151 | #endif |
| 15152 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15153 | #if defined S_ISLNK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15154 | # if S_ISLNK (S_IFREG) |
| 15155 | You lose. |
| 15156 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15157 | #endif |
| 15158 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15159 | #if defined S_ISSOCK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15160 | # if S_ISSOCK (S_IFREG) |
| 15161 | You lose. |
| 15162 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15163 | #endif |
| 15164 | |
| 15165 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15166 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15167 | $EGREP "You lose" >/dev/null 2>&1; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 15168 | ac_cv_header_stat_broken=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15169 | else |
| 15170 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 15171 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15172 | rm -f conftest* |
| 15173 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15174 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15175 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 15176 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15177 | if test $ac_cv_header_stat_broken = yes; then |
| 15178 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15179 | cat >>confdefs.h <<\_ACEOF |
| 15180 | #define STAT_MACROS_BROKEN 1 |
| 15181 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15182 | |
| 15183 | fi |
| 15184 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15185 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 15186 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 15187 | if test "${ac_cv_header_stdc+set}" = set; then |
| 15188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15189 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15190 | cat >conftest.$ac_ext <<_ACEOF |
| 15191 | /* confdefs.h. */ |
| 15192 | _ACEOF |
| 15193 | cat confdefs.h >>conftest.$ac_ext |
| 15194 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15195 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15196 | #include <stdlib.h> |
| 15197 | #include <stdarg.h> |
| 15198 | #include <string.h> |
| 15199 | #include <float.h> |
| 15200 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15201 | int |
| 15202 | main () |
| 15203 | { |
| 15204 | |
| 15205 | ; |
| 15206 | return 0; |
| 15207 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15208 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15209 | rm -f conftest.$ac_objext |
| 15210 | if { (ac_try="$ac_compile" |
| 15211 | case "(($ac_try" in |
| 15212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15213 | *) ac_try_echo=$ac_try;; |
| 15214 | esac |
| 15215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15216 | (eval "$ac_compile") 2>conftest.er1 |
| 15217 | ac_status=$? |
| 15218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15219 | rm -f conftest.er1 |
| 15220 | cat conftest.err >&5 |
| 15221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15222 | (exit $ac_status); } && |
| 15223 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15224 | { (case "(($ac_try" in |
| 15225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15226 | *) ac_try_echo=$ac_try;; |
| 15227 | esac |
| 15228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15229 | (eval "$ac_try") 2>&5 |
| 15230 | ac_status=$? |
| 15231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15232 | (exit $ac_status); }; } && |
| 15233 | { ac_try='test -s conftest.$ac_objext' |
| 15234 | { (case "(($ac_try" in |
| 15235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15236 | *) ac_try_echo=$ac_try;; |
| 15237 | esac |
| 15238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15239 | (eval "$ac_try") 2>&5 |
| 15240 | ac_status=$? |
| 15241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15242 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15243 | ac_cv_header_stdc=yes |
| 15244 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15245 | echo "$as_me: failed program was:" >&5 |
| 15246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15247 | |
| 15248 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15249 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15250 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15252 | |
| 15253 | if test $ac_cv_header_stdc = yes; then |
| 15254 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15255 | cat >conftest.$ac_ext <<_ACEOF |
| 15256 | /* confdefs.h. */ |
| 15257 | _ACEOF |
| 15258 | cat confdefs.h >>conftest.$ac_ext |
| 15259 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15260 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15261 | #include <string.h> |
| 15262 | |
| 15263 | _ACEOF |
| 15264 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15265 | $EGREP "memchr" >/dev/null 2>&1; then |
| 15266 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15267 | else |
| 15268 | ac_cv_header_stdc=no |
| 15269 | fi |
| 15270 | rm -f conftest* |
| 15271 | |
| 15272 | fi |
| 15273 | |
| 15274 | if test $ac_cv_header_stdc = yes; then |
| 15275 | # 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] | 15276 | cat >conftest.$ac_ext <<_ACEOF |
| 15277 | /* confdefs.h. */ |
| 15278 | _ACEOF |
| 15279 | cat confdefs.h >>conftest.$ac_ext |
| 15280 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15281 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15282 | #include <stdlib.h> |
| 15283 | |
| 15284 | _ACEOF |
| 15285 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15286 | $EGREP "free" >/dev/null 2>&1; then |
| 15287 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15288 | else |
| 15289 | ac_cv_header_stdc=no |
| 15290 | fi |
| 15291 | rm -f conftest* |
| 15292 | |
| 15293 | fi |
| 15294 | |
| 15295 | if test $ac_cv_header_stdc = yes; then |
| 15296 | # /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] | 15297 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15298 | : |
| 15299 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15300 | cat >conftest.$ac_ext <<_ACEOF |
| 15301 | /* confdefs.h. */ |
| 15302 | _ACEOF |
| 15303 | cat confdefs.h >>conftest.$ac_ext |
| 15304 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15305 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15306 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15307 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15308 | #if ((' ' & 0x0FF) == 0x020) |
| 15309 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 15310 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 15311 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15312 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15313 | (('a' <= (c) && (c) <= 'i') \ |
| 15314 | || ('j' <= (c) && (c) <= 'r') \ |
| 15315 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15316 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 15317 | #endif |
| 15318 | |
| 15319 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 15320 | int |
| 15321 | main () |
| 15322 | { |
| 15323 | int i; |
| 15324 | for (i = 0; i < 256; i++) |
| 15325 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15326 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15327 | return 2; |
| 15328 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15329 | } |
| 15330 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15331 | rm -f conftest$ac_exeext |
| 15332 | if { (ac_try="$ac_link" |
| 15333 | case "(($ac_try" in |
| 15334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15335 | *) ac_try_echo=$ac_try;; |
| 15336 | esac |
| 15337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15338 | (eval "$ac_link") 2>&5 |
| 15339 | ac_status=$? |
| 15340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15341 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15342 | { (case "(($ac_try" in |
| 15343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15344 | *) ac_try_echo=$ac_try;; |
| 15345 | esac |
| 15346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15347 | (eval "$ac_try") 2>&5 |
| 15348 | ac_status=$? |
| 15349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15350 | (exit $ac_status); }; }; then |
| 15351 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15352 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15353 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15354 | echo "$as_me: failed program was:" >&5 |
| 15355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15356 | |
| 15357 | ( exit $ac_status ) |
| 15358 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15359 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15360 | 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] | 15361 | fi |
| 15362 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15363 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15364 | fi |
| 15365 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15366 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 15367 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15368 | if test $ac_cv_header_stdc = yes; then |
| 15369 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15370 | cat >>confdefs.h <<\_ACEOF |
| 15371 | #define STDC_HEADERS 1 |
| 15372 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15373 | |
| 15374 | fi |
| 15375 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15376 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 15377 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
| 15378 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 15379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15380 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15381 | cat >conftest.$ac_ext <<_ACEOF |
| 15382 | /* confdefs.h. */ |
| 15383 | _ACEOF |
| 15384 | cat confdefs.h >>conftest.$ac_ext |
| 15385 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15386 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15387 | #include <sys/types.h> |
| 15388 | #include <sys/wait.h> |
| 15389 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15390 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15391 | #endif |
| 15392 | #ifndef WIFEXITED |
| 15393 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 15394 | #endif |
| 15395 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15396 | int |
| 15397 | main () |
| 15398 | { |
| 15399 | int s; |
| 15400 | wait (&s); |
| 15401 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 15402 | ; |
| 15403 | return 0; |
| 15404 | } |
| 15405 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15406 | rm -f conftest.$ac_objext |
| 15407 | if { (ac_try="$ac_compile" |
| 15408 | case "(($ac_try" in |
| 15409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15410 | *) ac_try_echo=$ac_try;; |
| 15411 | esac |
| 15412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15413 | (eval "$ac_compile") 2>conftest.er1 |
| 15414 | ac_status=$? |
| 15415 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15416 | rm -f conftest.er1 |
| 15417 | cat conftest.err >&5 |
| 15418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15419 | (exit $ac_status); } && |
| 15420 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15421 | { (case "(($ac_try" in |
| 15422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15423 | *) ac_try_echo=$ac_try;; |
| 15424 | esac |
| 15425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15426 | (eval "$ac_try") 2>&5 |
| 15427 | ac_status=$? |
| 15428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15429 | (exit $ac_status); }; } && |
| 15430 | { ac_try='test -s conftest.$ac_objext' |
| 15431 | { (case "(($ac_try" in |
| 15432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15433 | *) ac_try_echo=$ac_try;; |
| 15434 | esac |
| 15435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15436 | (eval "$ac_try") 2>&5 |
| 15437 | ac_status=$? |
| 15438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15439 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15440 | ac_cv_header_sys_wait_h=yes |
| 15441 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15442 | echo "$as_me: failed program was:" >&5 |
| 15443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15444 | |
| 15445 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15446 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15447 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15449 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15450 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 15451 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15452 | if test $ac_cv_header_sys_wait_h = yes; then |
| 15453 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15454 | cat >>confdefs.h <<\_ACEOF |
| 15455 | #define HAVE_SYS_WAIT_H 1 |
| 15456 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15457 | |
| 15458 | fi |
| 15459 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15460 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15461 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
| 15462 | if test "${ac_cv_header_time+set}" = set; then |
| 15463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15464 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15465 | cat >conftest.$ac_ext <<_ACEOF |
| 15466 | /* confdefs.h. */ |
| 15467 | _ACEOF |
| 15468 | cat confdefs.h >>conftest.$ac_ext |
| 15469 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15470 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15471 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15472 | #include <sys/time.h> |
| 15473 | #include <time.h> |
| 15474 | |
| 15475 | int |
| 15476 | main () |
| 15477 | { |
| 15478 | if ((struct tm *) 0) |
| 15479 | return 0; |
| 15480 | ; |
| 15481 | return 0; |
| 15482 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15483 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15484 | rm -f conftest.$ac_objext |
| 15485 | if { (ac_try="$ac_compile" |
| 15486 | case "(($ac_try" in |
| 15487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15488 | *) ac_try_echo=$ac_try;; |
| 15489 | esac |
| 15490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15491 | (eval "$ac_compile") 2>conftest.er1 |
| 15492 | ac_status=$? |
| 15493 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15494 | rm -f conftest.er1 |
| 15495 | cat conftest.err >&5 |
| 15496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15497 | (exit $ac_status); } && |
| 15498 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15499 | { (case "(($ac_try" in |
| 15500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15501 | *) ac_try_echo=$ac_try;; |
| 15502 | esac |
| 15503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15504 | (eval "$ac_try") 2>&5 |
| 15505 | ac_status=$? |
| 15506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15507 | (exit $ac_status); }; } && |
| 15508 | { ac_try='test -s conftest.$ac_objext' |
| 15509 | { (case "(($ac_try" in |
| 15510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15511 | *) ac_try_echo=$ac_try;; |
| 15512 | esac |
| 15513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15514 | (eval "$ac_try") 2>&5 |
| 15515 | ac_status=$? |
| 15516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15517 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15518 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15519 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15520 | echo "$as_me: failed program was:" >&5 |
| 15521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15522 | |
| 15523 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15524 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15525 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15527 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15528 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15529 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15530 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15531 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15532 | cat >>confdefs.h <<\_ACEOF |
| 15533 | #define TIME_WITH_SYS_TIME 1 |
| 15534 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15535 | |
| 15536 | fi |
| 15537 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15538 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15539 | |
| 15540 | |
| 15541 | |
| 15542 | |
| 15543 | |
| 15544 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15545 | 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] | 15546 | do |
| 15547 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15548 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15549 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15550 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15551 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15553 | fi |
| 15554 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15555 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15556 | echo "${ECHO_T}$ac_res" >&6; } |
| 15557 | else |
| 15558 | # Is the header compilable? |
| 15559 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15560 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15561 | cat >conftest.$ac_ext <<_ACEOF |
| 15562 | /* confdefs.h. */ |
| 15563 | _ACEOF |
| 15564 | cat confdefs.h >>conftest.$ac_ext |
| 15565 | cat >>conftest.$ac_ext <<_ACEOF |
| 15566 | /* end confdefs.h. */ |
| 15567 | $ac_includes_default |
| 15568 | #include <$ac_header> |
| 15569 | _ACEOF |
| 15570 | rm -f conftest.$ac_objext |
| 15571 | if { (ac_try="$ac_compile" |
| 15572 | case "(($ac_try" in |
| 15573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15574 | *) ac_try_echo=$ac_try;; |
| 15575 | esac |
| 15576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15577 | (eval "$ac_compile") 2>conftest.er1 |
| 15578 | ac_status=$? |
| 15579 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15580 | rm -f conftest.er1 |
| 15581 | cat conftest.err >&5 |
| 15582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15583 | (exit $ac_status); } && |
| 15584 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15585 | { (case "(($ac_try" in |
| 15586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15587 | *) ac_try_echo=$ac_try;; |
| 15588 | esac |
| 15589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15590 | (eval "$ac_try") 2>&5 |
| 15591 | ac_status=$? |
| 15592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15593 | (exit $ac_status); }; } && |
| 15594 | { ac_try='test -s conftest.$ac_objext' |
| 15595 | { (case "(($ac_try" in |
| 15596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15597 | *) ac_try_echo=$ac_try;; |
| 15598 | esac |
| 15599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15600 | (eval "$ac_try") 2>&5 |
| 15601 | ac_status=$? |
| 15602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15603 | (exit $ac_status); }; }; then |
| 15604 | ac_header_compiler=yes |
| 15605 | else |
| 15606 | echo "$as_me: failed program was:" >&5 |
| 15607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15608 | |
| 15609 | ac_header_compiler=no |
| 15610 | fi |
| 15611 | |
| 15612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15613 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15614 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15615 | |
| 15616 | # Is the header present? |
| 15617 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15618 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15619 | cat >conftest.$ac_ext <<_ACEOF |
| 15620 | /* confdefs.h. */ |
| 15621 | _ACEOF |
| 15622 | cat confdefs.h >>conftest.$ac_ext |
| 15623 | cat >>conftest.$ac_ext <<_ACEOF |
| 15624 | /* end confdefs.h. */ |
| 15625 | #include <$ac_header> |
| 15626 | _ACEOF |
| 15627 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15628 | case "(($ac_try" in |
| 15629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15630 | *) ac_try_echo=$ac_try;; |
| 15631 | esac |
| 15632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15633 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15634 | ac_status=$? |
| 15635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15636 | rm -f conftest.er1 |
| 15637 | cat conftest.err >&5 |
| 15638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15639 | (exit $ac_status); } >/dev/null; then |
| 15640 | if test -s conftest.err; then |
| 15641 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15642 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15643 | else |
| 15644 | ac_cpp_err= |
| 15645 | fi |
| 15646 | else |
| 15647 | ac_cpp_err=yes |
| 15648 | fi |
| 15649 | if test -z "$ac_cpp_err"; then |
| 15650 | ac_header_preproc=yes |
| 15651 | else |
| 15652 | echo "$as_me: failed program was:" >&5 |
| 15653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15654 | |
| 15655 | ac_header_preproc=no |
| 15656 | fi |
| 15657 | |
| 15658 | rm -f conftest.err conftest.$ac_ext |
| 15659 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15660 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15661 | |
| 15662 | # So? What about this header? |
| 15663 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15664 | yes:no: ) |
| 15665 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15666 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15667 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15668 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15669 | ac_header_preproc=yes |
| 15670 | ;; |
| 15671 | no:yes:* ) |
| 15672 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15673 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15674 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15675 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15676 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15677 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15678 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15679 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15680 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15681 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15682 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15683 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15684 | ( cat <<\_ASBOX |
| 15685 | ## ----------------------------------- ## |
| 15686 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15687 | ## ----------------------------------- ## |
| 15688 | _ASBOX |
| 15689 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15690 | ;; |
| 15691 | esac |
| 15692 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15693 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15694 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15696 | else |
| 15697 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15698 | fi |
| 15699 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15700 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15701 | echo "${ECHO_T}$ac_res" >&6; } |
| 15702 | |
| 15703 | fi |
| 15704 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15705 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15706 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15707 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15708 | |
| 15709 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15710 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15711 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15712 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15713 | |
| 15714 | |
| 15715 | |
| 15716 | |
| 15717 | |
| 15718 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15719 | 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] | 15720 | do |
| 15721 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15722 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15723 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15724 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15725 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15727 | fi |
| 15728 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15729 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15730 | echo "${ECHO_T}$ac_res" >&6; } |
| 15731 | else |
| 15732 | # Is the header compilable? |
| 15733 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15734 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15735 | cat >conftest.$ac_ext <<_ACEOF |
| 15736 | /* confdefs.h. */ |
| 15737 | _ACEOF |
| 15738 | cat confdefs.h >>conftest.$ac_ext |
| 15739 | cat >>conftest.$ac_ext <<_ACEOF |
| 15740 | /* end confdefs.h. */ |
| 15741 | $ac_includes_default |
| 15742 | #include <$ac_header> |
| 15743 | _ACEOF |
| 15744 | rm -f conftest.$ac_objext |
| 15745 | if { (ac_try="$ac_compile" |
| 15746 | case "(($ac_try" in |
| 15747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15748 | *) ac_try_echo=$ac_try;; |
| 15749 | esac |
| 15750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15751 | (eval "$ac_compile") 2>conftest.er1 |
| 15752 | ac_status=$? |
| 15753 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15754 | rm -f conftest.er1 |
| 15755 | cat conftest.err >&5 |
| 15756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15757 | (exit $ac_status); } && |
| 15758 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15759 | { (case "(($ac_try" in |
| 15760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15761 | *) ac_try_echo=$ac_try;; |
| 15762 | esac |
| 15763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15764 | (eval "$ac_try") 2>&5 |
| 15765 | ac_status=$? |
| 15766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15767 | (exit $ac_status); }; } && |
| 15768 | { ac_try='test -s conftest.$ac_objext' |
| 15769 | { (case "(($ac_try" in |
| 15770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15771 | *) ac_try_echo=$ac_try;; |
| 15772 | esac |
| 15773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15774 | (eval "$ac_try") 2>&5 |
| 15775 | ac_status=$? |
| 15776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15777 | (exit $ac_status); }; }; then |
| 15778 | ac_header_compiler=yes |
| 15779 | else |
| 15780 | echo "$as_me: failed program was:" >&5 |
| 15781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15782 | |
| 15783 | ac_header_compiler=no |
| 15784 | fi |
| 15785 | |
| 15786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15787 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15788 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15789 | |
| 15790 | # Is the header present? |
| 15791 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15792 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15793 | cat >conftest.$ac_ext <<_ACEOF |
| 15794 | /* confdefs.h. */ |
| 15795 | _ACEOF |
| 15796 | cat confdefs.h >>conftest.$ac_ext |
| 15797 | cat >>conftest.$ac_ext <<_ACEOF |
| 15798 | /* end confdefs.h. */ |
| 15799 | #include <$ac_header> |
| 15800 | _ACEOF |
| 15801 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15802 | case "(($ac_try" in |
| 15803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15804 | *) ac_try_echo=$ac_try;; |
| 15805 | esac |
| 15806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15807 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15808 | ac_status=$? |
| 15809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15810 | rm -f conftest.er1 |
| 15811 | cat conftest.err >&5 |
| 15812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15813 | (exit $ac_status); } >/dev/null; then |
| 15814 | if test -s conftest.err; then |
| 15815 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15816 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15817 | else |
| 15818 | ac_cpp_err= |
| 15819 | fi |
| 15820 | else |
| 15821 | ac_cpp_err=yes |
| 15822 | fi |
| 15823 | if test -z "$ac_cpp_err"; then |
| 15824 | ac_header_preproc=yes |
| 15825 | else |
| 15826 | echo "$as_me: failed program was:" >&5 |
| 15827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15828 | |
| 15829 | ac_header_preproc=no |
| 15830 | fi |
| 15831 | |
| 15832 | rm -f conftest.err conftest.$ac_ext |
| 15833 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15834 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15835 | |
| 15836 | # So? What about this header? |
| 15837 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15838 | yes:no: ) |
| 15839 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15840 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15841 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15842 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15843 | ac_header_preproc=yes |
| 15844 | ;; |
| 15845 | no:yes:* ) |
| 15846 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15847 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15848 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15849 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15850 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15851 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15852 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15853 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15854 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15855 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15856 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15857 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15858 | ( cat <<\_ASBOX |
| 15859 | ## ----------------------------------- ## |
| 15860 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15861 | ## ----------------------------------- ## |
| 15862 | _ASBOX |
| 15863 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15864 | ;; |
| 15865 | esac |
| 15866 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15867 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15868 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15870 | else |
| 15871 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15872 | fi |
| 15873 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15874 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15875 | echo "${ECHO_T}$ac_res" >&6; } |
| 15876 | |
| 15877 | fi |
| 15878 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15879 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15880 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15881 | _ACEOF |
| 15882 | |
| 15883 | fi |
| 15884 | |
| 15885 | done |
| 15886 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15887 | |
| 15888 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15889 | for ac_header in utime.h windows.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15890 | do |
| 15891 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15892 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15893 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15894 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15895 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15897 | fi |
| 15898 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15899 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15900 | echo "${ECHO_T}$ac_res" >&6; } |
| 15901 | else |
| 15902 | # Is the header compilable? |
| 15903 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15904 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15905 | cat >conftest.$ac_ext <<_ACEOF |
| 15906 | /* confdefs.h. */ |
| 15907 | _ACEOF |
| 15908 | cat confdefs.h >>conftest.$ac_ext |
| 15909 | cat >>conftest.$ac_ext <<_ACEOF |
| 15910 | /* end confdefs.h. */ |
| 15911 | $ac_includes_default |
| 15912 | #include <$ac_header> |
| 15913 | _ACEOF |
| 15914 | rm -f conftest.$ac_objext |
| 15915 | if { (ac_try="$ac_compile" |
| 15916 | case "(($ac_try" in |
| 15917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15918 | *) ac_try_echo=$ac_try;; |
| 15919 | esac |
| 15920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15921 | (eval "$ac_compile") 2>conftest.er1 |
| 15922 | ac_status=$? |
| 15923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15924 | rm -f conftest.er1 |
| 15925 | cat conftest.err >&5 |
| 15926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15927 | (exit $ac_status); } && |
| 15928 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15929 | { (case "(($ac_try" in |
| 15930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15931 | *) ac_try_echo=$ac_try;; |
| 15932 | esac |
| 15933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15934 | (eval "$ac_try") 2>&5 |
| 15935 | ac_status=$? |
| 15936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15937 | (exit $ac_status); }; } && |
| 15938 | { ac_try='test -s conftest.$ac_objext' |
| 15939 | { (case "(($ac_try" in |
| 15940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15941 | *) ac_try_echo=$ac_try;; |
| 15942 | esac |
| 15943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15944 | (eval "$ac_try") 2>&5 |
| 15945 | ac_status=$? |
| 15946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15947 | (exit $ac_status); }; }; then |
| 15948 | ac_header_compiler=yes |
| 15949 | else |
| 15950 | echo "$as_me: failed program was:" >&5 |
| 15951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15952 | |
| 15953 | ac_header_compiler=no |
| 15954 | fi |
| 15955 | |
| 15956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15957 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15958 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15959 | |
| 15960 | # Is the header present? |
| 15961 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15962 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15963 | cat >conftest.$ac_ext <<_ACEOF |
| 15964 | /* confdefs.h. */ |
| 15965 | _ACEOF |
| 15966 | cat confdefs.h >>conftest.$ac_ext |
| 15967 | cat >>conftest.$ac_ext <<_ACEOF |
| 15968 | /* end confdefs.h. */ |
| 15969 | #include <$ac_header> |
| 15970 | _ACEOF |
| 15971 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15972 | case "(($ac_try" in |
| 15973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15974 | *) ac_try_echo=$ac_try;; |
| 15975 | esac |
| 15976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15977 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15978 | ac_status=$? |
| 15979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15980 | rm -f conftest.er1 |
| 15981 | cat conftest.err >&5 |
| 15982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15983 | (exit $ac_status); } >/dev/null; then |
| 15984 | if test -s conftest.err; then |
| 15985 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15986 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15987 | else |
| 15988 | ac_cpp_err= |
| 15989 | fi |
| 15990 | else |
| 15991 | ac_cpp_err=yes |
| 15992 | fi |
| 15993 | if test -z "$ac_cpp_err"; then |
| 15994 | ac_header_preproc=yes |
| 15995 | else |
| 15996 | echo "$as_me: failed program was:" >&5 |
| 15997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15998 | |
| 15999 | ac_header_preproc=no |
| 16000 | fi |
| 16001 | |
| 16002 | rm -f conftest.err conftest.$ac_ext |
| 16003 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16004 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16005 | |
| 16006 | # So? What about this header? |
| 16007 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16008 | yes:no: ) |
| 16009 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16010 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16011 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16012 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16013 | ac_header_preproc=yes |
| 16014 | ;; |
| 16015 | no:yes:* ) |
| 16016 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16017 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16018 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16019 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16020 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16021 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16022 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16023 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16024 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16025 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16026 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16027 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16028 | ( cat <<\_ASBOX |
| 16029 | ## ----------------------------------- ## |
| 16030 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16031 | ## ----------------------------------- ## |
| 16032 | _ASBOX |
| 16033 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16034 | ;; |
| 16035 | esac |
| 16036 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16037 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16038 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16040 | else |
| 16041 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16042 | fi |
| 16043 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16044 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16045 | echo "${ECHO_T}$ac_res" >&6; } |
| 16046 | |
| 16047 | fi |
| 16048 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16049 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16050 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16051 | _ACEOF |
| 16052 | |
| 16053 | fi |
| 16054 | |
| 16055 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 16056 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16057 | |
| 16058 | |
| 16059 | |
| 16060 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16061 | 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] | 16062 | do |
| 16063 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16064 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16065 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16066 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16067 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16069 | fi |
| 16070 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16071 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16072 | echo "${ECHO_T}$ac_res" >&6; } |
| 16073 | else |
| 16074 | # Is the header compilable? |
| 16075 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16076 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16077 | cat >conftest.$ac_ext <<_ACEOF |
| 16078 | /* confdefs.h. */ |
| 16079 | _ACEOF |
| 16080 | cat confdefs.h >>conftest.$ac_ext |
| 16081 | cat >>conftest.$ac_ext <<_ACEOF |
| 16082 | /* end confdefs.h. */ |
| 16083 | $ac_includes_default |
| 16084 | #include <$ac_header> |
| 16085 | _ACEOF |
| 16086 | rm -f conftest.$ac_objext |
| 16087 | if { (ac_try="$ac_compile" |
| 16088 | case "(($ac_try" in |
| 16089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16090 | *) ac_try_echo=$ac_try;; |
| 16091 | esac |
| 16092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16093 | (eval "$ac_compile") 2>conftest.er1 |
| 16094 | ac_status=$? |
| 16095 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16096 | rm -f conftest.er1 |
| 16097 | cat conftest.err >&5 |
| 16098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16099 | (exit $ac_status); } && |
| 16100 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16101 | { (case "(($ac_try" in |
| 16102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16103 | *) ac_try_echo=$ac_try;; |
| 16104 | esac |
| 16105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16106 | (eval "$ac_try") 2>&5 |
| 16107 | ac_status=$? |
| 16108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16109 | (exit $ac_status); }; } && |
| 16110 | { ac_try='test -s conftest.$ac_objext' |
| 16111 | { (case "(($ac_try" in |
| 16112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16113 | *) ac_try_echo=$ac_try;; |
| 16114 | esac |
| 16115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16116 | (eval "$ac_try") 2>&5 |
| 16117 | ac_status=$? |
| 16118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16119 | (exit $ac_status); }; }; then |
| 16120 | ac_header_compiler=yes |
| 16121 | else |
| 16122 | echo "$as_me: failed program was:" >&5 |
| 16123 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16124 | |
| 16125 | ac_header_compiler=no |
| 16126 | fi |
| 16127 | |
| 16128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16129 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16130 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16131 | |
| 16132 | # Is the header present? |
| 16133 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16134 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16135 | cat >conftest.$ac_ext <<_ACEOF |
| 16136 | /* confdefs.h. */ |
| 16137 | _ACEOF |
| 16138 | cat confdefs.h >>conftest.$ac_ext |
| 16139 | cat >>conftest.$ac_ext <<_ACEOF |
| 16140 | /* end confdefs.h. */ |
| 16141 | #include <$ac_header> |
| 16142 | _ACEOF |
| 16143 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16144 | case "(($ac_try" in |
| 16145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16146 | *) ac_try_echo=$ac_try;; |
| 16147 | esac |
| 16148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16149 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16150 | ac_status=$? |
| 16151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16152 | rm -f conftest.er1 |
| 16153 | cat conftest.err >&5 |
| 16154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16155 | (exit $ac_status); } >/dev/null; then |
| 16156 | if test -s conftest.err; then |
| 16157 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16158 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16159 | else |
| 16160 | ac_cpp_err= |
| 16161 | fi |
| 16162 | else |
| 16163 | ac_cpp_err=yes |
| 16164 | fi |
| 16165 | if test -z "$ac_cpp_err"; then |
| 16166 | ac_header_preproc=yes |
| 16167 | else |
| 16168 | echo "$as_me: failed program was:" >&5 |
| 16169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16170 | |
| 16171 | ac_header_preproc=no |
| 16172 | fi |
| 16173 | |
| 16174 | rm -f conftest.err conftest.$ac_ext |
| 16175 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16176 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16177 | |
| 16178 | # So? What about this header? |
| 16179 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16180 | yes:no: ) |
| 16181 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16182 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16183 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16184 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16185 | ac_header_preproc=yes |
| 16186 | ;; |
| 16187 | no:yes:* ) |
| 16188 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16189 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16190 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16191 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16192 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16193 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16194 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16195 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16196 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16197 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16198 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16199 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16200 | ( cat <<\_ASBOX |
| 16201 | ## ----------------------------------- ## |
| 16202 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16203 | ## ----------------------------------- ## |
| 16204 | _ASBOX |
| 16205 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16206 | ;; |
| 16207 | esac |
| 16208 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16209 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16210 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16212 | else |
| 16213 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16214 | fi |
| 16215 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16216 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16217 | echo "${ECHO_T}$ac_res" >&6; } |
| 16218 | |
| 16219 | fi |
| 16220 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16221 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16222 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16223 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16224 | |
| 16225 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16226 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16227 | done |
| 16228 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16229 | |
| 16230 | |
| 16231 | |
| 16232 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 16233 | 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] | 16234 | do |
| 16235 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16236 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16237 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16238 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16239 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16241 | fi |
| 16242 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16243 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16244 | echo "${ECHO_T}$ac_res" >&6; } |
| 16245 | else |
| 16246 | # Is the header compilable? |
| 16247 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16248 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16249 | cat >conftest.$ac_ext <<_ACEOF |
| 16250 | /* confdefs.h. */ |
| 16251 | _ACEOF |
| 16252 | cat confdefs.h >>conftest.$ac_ext |
| 16253 | cat >>conftest.$ac_ext <<_ACEOF |
| 16254 | /* end confdefs.h. */ |
| 16255 | $ac_includes_default |
| 16256 | #include <$ac_header> |
| 16257 | _ACEOF |
| 16258 | rm -f conftest.$ac_objext |
| 16259 | if { (ac_try="$ac_compile" |
| 16260 | case "(($ac_try" in |
| 16261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16262 | *) ac_try_echo=$ac_try;; |
| 16263 | esac |
| 16264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16265 | (eval "$ac_compile") 2>conftest.er1 |
| 16266 | ac_status=$? |
| 16267 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16268 | rm -f conftest.er1 |
| 16269 | cat conftest.err >&5 |
| 16270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16271 | (exit $ac_status); } && |
| 16272 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16273 | { (case "(($ac_try" in |
| 16274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16275 | *) ac_try_echo=$ac_try;; |
| 16276 | esac |
| 16277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16278 | (eval "$ac_try") 2>&5 |
| 16279 | ac_status=$? |
| 16280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16281 | (exit $ac_status); }; } && |
| 16282 | { ac_try='test -s conftest.$ac_objext' |
| 16283 | { (case "(($ac_try" in |
| 16284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16285 | *) ac_try_echo=$ac_try;; |
| 16286 | esac |
| 16287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16288 | (eval "$ac_try") 2>&5 |
| 16289 | ac_status=$? |
| 16290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16291 | (exit $ac_status); }; }; then |
| 16292 | ac_header_compiler=yes |
| 16293 | else |
| 16294 | echo "$as_me: failed program was:" >&5 |
| 16295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16296 | |
| 16297 | ac_header_compiler=no |
| 16298 | fi |
| 16299 | |
| 16300 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16301 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16302 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16303 | |
| 16304 | # Is the header present? |
| 16305 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16306 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16307 | cat >conftest.$ac_ext <<_ACEOF |
| 16308 | /* confdefs.h. */ |
| 16309 | _ACEOF |
| 16310 | cat confdefs.h >>conftest.$ac_ext |
| 16311 | cat >>conftest.$ac_ext <<_ACEOF |
| 16312 | /* end confdefs.h. */ |
| 16313 | #include <$ac_header> |
| 16314 | _ACEOF |
| 16315 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16316 | case "(($ac_try" in |
| 16317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16318 | *) ac_try_echo=$ac_try;; |
| 16319 | esac |
| 16320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16321 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16322 | ac_status=$? |
| 16323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16324 | rm -f conftest.er1 |
| 16325 | cat conftest.err >&5 |
| 16326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16327 | (exit $ac_status); } >/dev/null; then |
| 16328 | if test -s conftest.err; then |
| 16329 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16330 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16331 | else |
| 16332 | ac_cpp_err= |
| 16333 | fi |
| 16334 | else |
| 16335 | ac_cpp_err=yes |
| 16336 | fi |
| 16337 | if test -z "$ac_cpp_err"; then |
| 16338 | ac_header_preproc=yes |
| 16339 | else |
| 16340 | echo "$as_me: failed program was:" >&5 |
| 16341 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16342 | |
| 16343 | ac_header_preproc=no |
| 16344 | fi |
| 16345 | |
| 16346 | rm -f conftest.err conftest.$ac_ext |
| 16347 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16348 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16349 | |
| 16350 | # So? What about this header? |
| 16351 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16352 | yes:no: ) |
| 16353 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16354 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16355 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16356 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16357 | ac_header_preproc=yes |
| 16358 | ;; |
| 16359 | no:yes:* ) |
| 16360 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16361 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16362 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16363 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16364 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16365 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16366 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16367 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16368 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16369 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16370 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16371 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16372 | ( cat <<\_ASBOX |
| 16373 | ## ----------------------------------- ## |
| 16374 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16375 | ## ----------------------------------- ## |
| 16376 | _ASBOX |
| 16377 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16378 | ;; |
| 16379 | esac |
| 16380 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16381 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16382 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16384 | else |
| 16385 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16386 | fi |
| 16387 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16388 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16389 | echo "${ECHO_T}$ac_res" >&6; } |
| 16390 | |
| 16391 | fi |
| 16392 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16393 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16394 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16395 | _ACEOF |
| 16396 | |
| 16397 | fi |
| 16398 | |
| 16399 | done |
| 16400 | |
Jeffrey Yasskin | f28411f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 16401 | |
| 16402 | for ac_header in valgrind/valgrind.h |
| 16403 | do |
| 16404 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16405 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16406 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16407 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16408 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16410 | fi |
| 16411 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16412 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16413 | echo "${ECHO_T}$ac_res" >&6; } |
| 16414 | else |
| 16415 | # Is the header compilable? |
| 16416 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16417 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16418 | cat >conftest.$ac_ext <<_ACEOF |
| 16419 | /* confdefs.h. */ |
| 16420 | _ACEOF |
| 16421 | cat confdefs.h >>conftest.$ac_ext |
| 16422 | cat >>conftest.$ac_ext <<_ACEOF |
| 16423 | /* end confdefs.h. */ |
| 16424 | $ac_includes_default |
| 16425 | #include <$ac_header> |
| 16426 | _ACEOF |
| 16427 | rm -f conftest.$ac_objext |
| 16428 | if { (ac_try="$ac_compile" |
| 16429 | case "(($ac_try" in |
| 16430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16431 | *) ac_try_echo=$ac_try;; |
| 16432 | esac |
| 16433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16434 | (eval "$ac_compile") 2>conftest.er1 |
| 16435 | ac_status=$? |
| 16436 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16437 | rm -f conftest.er1 |
| 16438 | cat conftest.err >&5 |
| 16439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16440 | (exit $ac_status); } && |
| 16441 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16442 | { (case "(($ac_try" in |
| 16443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16444 | *) ac_try_echo=$ac_try;; |
| 16445 | esac |
| 16446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16447 | (eval "$ac_try") 2>&5 |
| 16448 | ac_status=$? |
| 16449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16450 | (exit $ac_status); }; } && |
| 16451 | { ac_try='test -s conftest.$ac_objext' |
| 16452 | { (case "(($ac_try" in |
| 16453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16454 | *) ac_try_echo=$ac_try;; |
| 16455 | esac |
| 16456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16457 | (eval "$ac_try") 2>&5 |
| 16458 | ac_status=$? |
| 16459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16460 | (exit $ac_status); }; }; then |
| 16461 | ac_header_compiler=yes |
| 16462 | else |
| 16463 | echo "$as_me: failed program was:" >&5 |
| 16464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16465 | |
| 16466 | ac_header_compiler=no |
| 16467 | fi |
| 16468 | |
| 16469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16470 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16471 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16472 | |
| 16473 | # Is the header present? |
| 16474 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16475 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16476 | cat >conftest.$ac_ext <<_ACEOF |
| 16477 | /* confdefs.h. */ |
| 16478 | _ACEOF |
| 16479 | cat confdefs.h >>conftest.$ac_ext |
| 16480 | cat >>conftest.$ac_ext <<_ACEOF |
| 16481 | /* end confdefs.h. */ |
| 16482 | #include <$ac_header> |
| 16483 | _ACEOF |
| 16484 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16485 | case "(($ac_try" in |
| 16486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16487 | *) ac_try_echo=$ac_try;; |
| 16488 | esac |
| 16489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16490 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16491 | ac_status=$? |
| 16492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16493 | rm -f conftest.er1 |
| 16494 | cat conftest.err >&5 |
| 16495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16496 | (exit $ac_status); } >/dev/null; then |
| 16497 | if test -s conftest.err; then |
| 16498 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16499 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16500 | else |
| 16501 | ac_cpp_err= |
| 16502 | fi |
| 16503 | else |
| 16504 | ac_cpp_err=yes |
| 16505 | fi |
| 16506 | if test -z "$ac_cpp_err"; then |
| 16507 | ac_header_preproc=yes |
| 16508 | else |
| 16509 | echo "$as_me: failed program was:" >&5 |
| 16510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16511 | |
| 16512 | ac_header_preproc=no |
| 16513 | fi |
| 16514 | |
| 16515 | rm -f conftest.err conftest.$ac_ext |
| 16516 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16517 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16518 | |
| 16519 | # So? What about this header? |
| 16520 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16521 | yes:no: ) |
| 16522 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16523 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16524 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16525 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16526 | ac_header_preproc=yes |
| 16527 | ;; |
| 16528 | no:yes:* ) |
| 16529 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16530 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16531 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16532 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16533 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16534 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16535 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16536 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16537 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16538 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16539 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16540 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16541 | ( cat <<\_ASBOX |
| 16542 | ## ----------------------------------- ## |
| 16543 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16544 | ## ----------------------------------- ## |
| 16545 | _ASBOX |
| 16546 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16547 | ;; |
| 16548 | esac |
| 16549 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16550 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16551 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16553 | else |
| 16554 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16555 | fi |
| 16556 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16557 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16558 | echo "${ECHO_T}$ac_res" >&6; } |
| 16559 | |
| 16560 | fi |
| 16561 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16562 | cat >>confdefs.h <<_ACEOF |
| 16563 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16564 | _ACEOF |
| 16565 | |
| 16566 | fi |
| 16567 | |
| 16568 | done |
| 16569 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16570 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16571 | |
| 16572 | for ac_header in pthread.h |
| 16573 | do |
| 16574 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16575 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16576 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16577 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16578 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16580 | fi |
| 16581 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16582 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16583 | echo "${ECHO_T}$ac_res" >&6; } |
| 16584 | else |
| 16585 | # Is the header compilable? |
| 16586 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16587 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 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 | #include <$ac_header> |
| 16596 | _ACEOF |
| 16597 | rm -f conftest.$ac_objext |
| 16598 | if { (ac_try="$ac_compile" |
| 16599 | case "(($ac_try" in |
| 16600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16601 | *) ac_try_echo=$ac_try;; |
| 16602 | esac |
| 16603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16604 | (eval "$ac_compile") 2>conftest.er1 |
| 16605 | ac_status=$? |
| 16606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16607 | rm -f conftest.er1 |
| 16608 | cat conftest.err >&5 |
| 16609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16610 | (exit $ac_status); } && |
| 16611 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16612 | { (case "(($ac_try" in |
| 16613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16614 | *) ac_try_echo=$ac_try;; |
| 16615 | esac |
| 16616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16617 | (eval "$ac_try") 2>&5 |
| 16618 | ac_status=$? |
| 16619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16620 | (exit $ac_status); }; } && |
| 16621 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 16631 | ac_header_compiler=yes |
| 16632 | else |
| 16633 | echo "$as_me: failed program was:" >&5 |
| 16634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16635 | |
| 16636 | ac_header_compiler=no |
| 16637 | fi |
| 16638 | |
| 16639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16640 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16641 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16642 | |
| 16643 | # Is the header present? |
| 16644 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16645 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16646 | cat >conftest.$ac_ext <<_ACEOF |
| 16647 | /* confdefs.h. */ |
| 16648 | _ACEOF |
| 16649 | cat confdefs.h >>conftest.$ac_ext |
| 16650 | cat >>conftest.$ac_ext <<_ACEOF |
| 16651 | /* end confdefs.h. */ |
| 16652 | #include <$ac_header> |
| 16653 | _ACEOF |
| 16654 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16655 | case "(($ac_try" in |
| 16656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16657 | *) ac_try_echo=$ac_try;; |
| 16658 | esac |
| 16659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16660 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16661 | ac_status=$? |
| 16662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16663 | rm -f conftest.er1 |
| 16664 | cat conftest.err >&5 |
| 16665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16666 | (exit $ac_status); } >/dev/null; then |
| 16667 | if test -s conftest.err; then |
| 16668 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16669 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16670 | else |
| 16671 | ac_cpp_err= |
| 16672 | fi |
| 16673 | else |
| 16674 | ac_cpp_err=yes |
| 16675 | fi |
| 16676 | if test -z "$ac_cpp_err"; then |
| 16677 | ac_header_preproc=yes |
| 16678 | else |
| 16679 | echo "$as_me: failed program was:" >&5 |
| 16680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16681 | |
| 16682 | ac_header_preproc=no |
| 16683 | fi |
| 16684 | |
| 16685 | rm -f conftest.err conftest.$ac_ext |
| 16686 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16687 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16688 | |
| 16689 | # So? What about this header? |
| 16690 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16691 | yes:no: ) |
| 16692 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16693 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16694 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16695 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16696 | ac_header_preproc=yes |
| 16697 | ;; |
| 16698 | no:yes:* ) |
| 16699 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16700 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16701 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16702 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16703 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16704 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16705 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16706 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16707 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16708 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16709 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16710 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16711 | ( cat <<\_ASBOX |
| 16712 | ## ----------------------------------- ## |
| 16713 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16714 | ## ----------------------------------- ## |
| 16715 | _ASBOX |
| 16716 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16717 | ;; |
| 16718 | esac |
| 16719 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16720 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16721 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16723 | else |
| 16724 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16725 | fi |
| 16726 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16727 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16728 | echo "${ECHO_T}$ac_res" >&6; } |
| 16729 | |
| 16730 | fi |
| 16731 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16732 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16733 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16734 | _ACEOF |
| 16735 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 16736 | |
| 16737 | else |
| 16738 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16739 | |
| 16740 | fi |
| 16741 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16742 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 16743 | |
| 16744 | else |
| 16745 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16746 | |
| 16747 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16748 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16749 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16750 | |
| 16751 | |
| 16752 | for ac_header in ffi.h ffi/ffi.h |
| 16753 | do |
| 16754 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16755 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16756 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16757 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16758 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16760 | fi |
| 16761 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16762 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16763 | echo "${ECHO_T}$ac_res" >&6; } |
| 16764 | else |
| 16765 | # Is the header compilable? |
| 16766 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16767 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16768 | cat >conftest.$ac_ext <<_ACEOF |
| 16769 | /* confdefs.h. */ |
| 16770 | _ACEOF |
| 16771 | cat confdefs.h >>conftest.$ac_ext |
| 16772 | cat >>conftest.$ac_ext <<_ACEOF |
| 16773 | /* end confdefs.h. */ |
| 16774 | $ac_includes_default |
| 16775 | #include <$ac_header> |
| 16776 | _ACEOF |
| 16777 | rm -f conftest.$ac_objext |
| 16778 | if { (ac_try="$ac_compile" |
| 16779 | case "(($ac_try" in |
| 16780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16781 | *) ac_try_echo=$ac_try;; |
| 16782 | esac |
| 16783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16784 | (eval "$ac_compile") 2>conftest.er1 |
| 16785 | ac_status=$? |
| 16786 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16787 | rm -f conftest.er1 |
| 16788 | cat conftest.err >&5 |
| 16789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16790 | (exit $ac_status); } && |
| 16791 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16792 | { (case "(($ac_try" in |
| 16793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16794 | *) ac_try_echo=$ac_try;; |
| 16795 | esac |
| 16796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16797 | (eval "$ac_try") 2>&5 |
| 16798 | ac_status=$? |
| 16799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16800 | (exit $ac_status); }; } && |
| 16801 | { ac_try='test -s conftest.$ac_objext' |
| 16802 | { (case "(($ac_try" in |
| 16803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16804 | *) ac_try_echo=$ac_try;; |
| 16805 | esac |
| 16806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16807 | (eval "$ac_try") 2>&5 |
| 16808 | ac_status=$? |
| 16809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16810 | (exit $ac_status); }; }; then |
| 16811 | ac_header_compiler=yes |
| 16812 | else |
| 16813 | echo "$as_me: failed program was:" >&5 |
| 16814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16815 | |
| 16816 | ac_header_compiler=no |
| 16817 | fi |
| 16818 | |
| 16819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16820 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16821 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16822 | |
| 16823 | # Is the header present? |
| 16824 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16825 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16826 | cat >conftest.$ac_ext <<_ACEOF |
| 16827 | /* confdefs.h. */ |
| 16828 | _ACEOF |
| 16829 | cat confdefs.h >>conftest.$ac_ext |
| 16830 | cat >>conftest.$ac_ext <<_ACEOF |
| 16831 | /* end confdefs.h. */ |
| 16832 | #include <$ac_header> |
| 16833 | _ACEOF |
| 16834 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16835 | case "(($ac_try" in |
| 16836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16837 | *) ac_try_echo=$ac_try;; |
| 16838 | esac |
| 16839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16840 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16841 | ac_status=$? |
| 16842 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16843 | rm -f conftest.er1 |
| 16844 | cat conftest.err >&5 |
| 16845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16846 | (exit $ac_status); } >/dev/null; then |
| 16847 | if test -s conftest.err; then |
| 16848 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16849 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16850 | else |
| 16851 | ac_cpp_err= |
| 16852 | fi |
| 16853 | else |
| 16854 | ac_cpp_err=yes |
| 16855 | fi |
| 16856 | if test -z "$ac_cpp_err"; then |
| 16857 | ac_header_preproc=yes |
| 16858 | else |
| 16859 | echo "$as_me: failed program was:" >&5 |
| 16860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16861 | |
| 16862 | ac_header_preproc=no |
| 16863 | fi |
| 16864 | |
| 16865 | rm -f conftest.err conftest.$ac_ext |
| 16866 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16867 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16868 | |
| 16869 | # So? What about this header? |
| 16870 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16871 | yes:no: ) |
| 16872 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16873 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16874 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16875 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16876 | ac_header_preproc=yes |
| 16877 | ;; |
| 16878 | no:yes:* ) |
| 16879 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16880 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16881 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16882 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16883 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16884 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16885 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16886 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16887 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16888 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16889 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16890 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16891 | ( cat <<\_ASBOX |
| 16892 | ## ----------------------------------- ## |
| 16893 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16894 | ## ----------------------------------- ## |
| 16895 | _ASBOX |
| 16896 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16897 | ;; |
| 16898 | esac |
| 16899 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16900 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16901 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16903 | else |
| 16904 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16905 | fi |
| 16906 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16907 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16908 | echo "${ECHO_T}$ac_res" >&6; } |
| 16909 | |
| 16910 | fi |
| 16911 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16912 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16913 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16914 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16915 | |
| 16916 | fi |
| 16917 | |
| 16918 | done |
| 16919 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16920 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16921 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 16922 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16923 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16924 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16925 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 16926 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 16927 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 16928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16929 | else |
| 16930 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16931 | ac_ext=cpp |
| 16932 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16933 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16934 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16935 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16936 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16937 | ac_save_CXXFLAGS=$CXXFLAGS |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16938 | CXXFLAGS=-pedantic |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16939 | if test "$cross_compiling" = yes; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16940 | ac_cv_huge_val_sanity=yes |
| 16941 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16942 | cat >conftest.$ac_ext <<_ACEOF |
| 16943 | /* confdefs.h. */ |
| 16944 | _ACEOF |
| 16945 | cat confdefs.h >>conftest.$ac_ext |
| 16946 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16947 | /* end confdefs.h. */ |
| 16948 | #include <math.h> |
| 16949 | int |
| 16950 | main () |
| 16951 | { |
| 16952 | double x = HUGE_VAL; return x != x; |
| 16953 | ; |
| 16954 | return 0; |
| 16955 | } |
| 16956 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16957 | rm -f conftest$ac_exeext |
| 16958 | if { (ac_try="$ac_link" |
| 16959 | case "(($ac_try" in |
| 16960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16961 | *) ac_try_echo=$ac_try;; |
| 16962 | esac |
| 16963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16964 | (eval "$ac_link") 2>&5 |
| 16965 | ac_status=$? |
| 16966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16967 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16968 | { (case "(($ac_try" in |
| 16969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16970 | *) ac_try_echo=$ac_try;; |
| 16971 | esac |
| 16972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16973 | (eval "$ac_try") 2>&5 |
| 16974 | ac_status=$? |
| 16975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16976 | (exit $ac_status); }; }; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16977 | ac_cv_huge_val_sanity=yes |
| 16978 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16979 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16980 | echo "$as_me: failed program was:" >&5 |
| 16981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16982 | |
| 16983 | ( exit $ac_status ) |
| 16984 | ac_cv_huge_val_sanity=no |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16985 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16986 | 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] | 16987 | fi |
| 16988 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16989 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16990 | CXXFLAGS=$ac_save_CXXFLAGS |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16991 | ac_ext=c |
| 16992 | ac_cpp='$CPP $CPPFLAGS' |
| 16993 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16994 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16995 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16996 | |
| 16997 | |
| 16998 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16999 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 17000 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17001 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 17002 | |
| 17003 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17004 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 17005 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 17006 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 17007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17008 | else |
| 17009 | cat >conftest.$ac_ext <<_ACEOF |
| 17010 | /* confdefs.h. */ |
| 17011 | _ACEOF |
| 17012 | cat confdefs.h >>conftest.$ac_ext |
| 17013 | cat >>conftest.$ac_ext <<_ACEOF |
| 17014 | /* end confdefs.h. */ |
| 17015 | $ac_includes_default |
| 17016 | typedef pid_t ac__type_new_; |
| 17017 | int |
| 17018 | main () |
| 17019 | { |
| 17020 | if ((ac__type_new_ *) 0) |
| 17021 | return 0; |
| 17022 | if (sizeof (ac__type_new_)) |
| 17023 | return 0; |
| 17024 | ; |
| 17025 | return 0; |
| 17026 | } |
| 17027 | _ACEOF |
| 17028 | rm -f conftest.$ac_objext |
| 17029 | if { (ac_try="$ac_compile" |
| 17030 | case "(($ac_try" in |
| 17031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17032 | *) ac_try_echo=$ac_try;; |
| 17033 | esac |
| 17034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17035 | (eval "$ac_compile") 2>conftest.er1 |
| 17036 | ac_status=$? |
| 17037 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17038 | rm -f conftest.er1 |
| 17039 | cat conftest.err >&5 |
| 17040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17041 | (exit $ac_status); } && |
| 17042 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17043 | { (case "(($ac_try" in |
| 17044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17045 | *) ac_try_echo=$ac_try;; |
| 17046 | esac |
| 17047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17048 | (eval "$ac_try") 2>&5 |
| 17049 | ac_status=$? |
| 17050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17051 | (exit $ac_status); }; } && |
| 17052 | { ac_try='test -s conftest.$ac_objext' |
| 17053 | { (case "(($ac_try" in |
| 17054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17055 | *) ac_try_echo=$ac_try;; |
| 17056 | esac |
| 17057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17058 | (eval "$ac_try") 2>&5 |
| 17059 | ac_status=$? |
| 17060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17061 | (exit $ac_status); }; }; then |
| 17062 | ac_cv_type_pid_t=yes |
| 17063 | else |
| 17064 | echo "$as_me: failed program was:" >&5 |
| 17065 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17066 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17067 | ac_cv_type_pid_t=no |
| 17068 | fi |
| 17069 | |
| 17070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17071 | fi |
| 17072 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 17073 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 17074 | if test $ac_cv_type_pid_t = yes; then |
| 17075 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17076 | else |
| 17077 | |
| 17078 | cat >>confdefs.h <<_ACEOF |
| 17079 | #define pid_t int |
| 17080 | _ACEOF |
| 17081 | |
| 17082 | fi |
| 17083 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17084 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 17085 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 17086 | if test "${ac_cv_type_size_t+set}" = set; then |
| 17087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17088 | else |
| 17089 | cat >conftest.$ac_ext <<_ACEOF |
| 17090 | /* confdefs.h. */ |
| 17091 | _ACEOF |
| 17092 | cat confdefs.h >>conftest.$ac_ext |
| 17093 | cat >>conftest.$ac_ext <<_ACEOF |
| 17094 | /* end confdefs.h. */ |
| 17095 | $ac_includes_default |
| 17096 | typedef size_t ac__type_new_; |
| 17097 | int |
| 17098 | main () |
| 17099 | { |
| 17100 | if ((ac__type_new_ *) 0) |
| 17101 | return 0; |
| 17102 | if (sizeof (ac__type_new_)) |
| 17103 | return 0; |
| 17104 | ; |
| 17105 | return 0; |
| 17106 | } |
| 17107 | _ACEOF |
| 17108 | rm -f conftest.$ac_objext |
| 17109 | if { (ac_try="$ac_compile" |
| 17110 | case "(($ac_try" in |
| 17111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17112 | *) ac_try_echo=$ac_try;; |
| 17113 | esac |
| 17114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17115 | (eval "$ac_compile") 2>conftest.er1 |
| 17116 | ac_status=$? |
| 17117 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17118 | rm -f conftest.er1 |
| 17119 | cat conftest.err >&5 |
| 17120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17121 | (exit $ac_status); } && |
| 17122 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17123 | { (case "(($ac_try" in |
| 17124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17125 | *) ac_try_echo=$ac_try;; |
| 17126 | esac |
| 17127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17128 | (eval "$ac_try") 2>&5 |
| 17129 | ac_status=$? |
| 17130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17131 | (exit $ac_status); }; } && |
| 17132 | { ac_try='test -s conftest.$ac_objext' |
| 17133 | { (case "(($ac_try" in |
| 17134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17135 | *) ac_try_echo=$ac_try;; |
| 17136 | esac |
| 17137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17138 | (eval "$ac_try") 2>&5 |
| 17139 | ac_status=$? |
| 17140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17141 | (exit $ac_status); }; }; then |
| 17142 | ac_cv_type_size_t=yes |
| 17143 | else |
| 17144 | echo "$as_me: failed program was:" >&5 |
| 17145 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17146 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17147 | ac_cv_type_size_t=no |
| 17148 | fi |
| 17149 | |
| 17150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17151 | fi |
| 17152 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 17153 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 17154 | if test $ac_cv_type_size_t = yes; then |
| 17155 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17156 | else |
| 17157 | |
| 17158 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17159 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17160 | _ACEOF |
| 17161 | |
| 17162 | fi |
| 17163 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17164 | |
| 17165 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17166 | #define RETSIGTYPE void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17167 | _ACEOF |
| 17168 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17169 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 17170 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
| 17171 | if test "${ac_cv_struct_tm+set}" = set; then |
| 17172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17173 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17174 | cat >conftest.$ac_ext <<_ACEOF |
| 17175 | /* confdefs.h. */ |
| 17176 | _ACEOF |
| 17177 | cat confdefs.h >>conftest.$ac_ext |
| 17178 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17179 | /* end confdefs.h. */ |
| 17180 | #include <sys/types.h> |
| 17181 | #include <time.h> |
| 17182 | |
| 17183 | int |
| 17184 | main () |
| 17185 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17186 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17187 | ; |
| 17188 | return 0; |
| 17189 | } |
| 17190 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17191 | rm -f conftest.$ac_objext |
| 17192 | if { (ac_try="$ac_compile" |
| 17193 | case "(($ac_try" in |
| 17194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17195 | *) ac_try_echo=$ac_try;; |
| 17196 | esac |
| 17197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17198 | (eval "$ac_compile") 2>conftest.er1 |
| 17199 | ac_status=$? |
| 17200 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17201 | rm -f conftest.er1 |
| 17202 | cat conftest.err >&5 |
| 17203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17204 | (exit $ac_status); } && |
| 17205 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17206 | { (case "(($ac_try" in |
| 17207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17208 | *) ac_try_echo=$ac_try;; |
| 17209 | esac |
| 17210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17211 | (eval "$ac_try") 2>&5 |
| 17212 | ac_status=$? |
| 17213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17214 | (exit $ac_status); }; } && |
| 17215 | { ac_try='test -s conftest.$ac_objext' |
| 17216 | { (case "(($ac_try" in |
| 17217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17218 | *) ac_try_echo=$ac_try;; |
| 17219 | esac |
| 17220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17221 | (eval "$ac_try") 2>&5 |
| 17222 | ac_status=$? |
| 17223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17224 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17225 | ac_cv_struct_tm=time.h |
| 17226 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17227 | echo "$as_me: failed program was:" >&5 |
| 17228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17229 | |
| 17230 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17231 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17232 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17234 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17235 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 17236 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17237 | if test $ac_cv_struct_tm = sys/time.h; then |
| 17238 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17239 | cat >>confdefs.h <<\_ACEOF |
| 17240 | #define TM_IN_SYS_TIME 1 |
| 17241 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17242 | |
| 17243 | fi |
| 17244 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17245 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 17246 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 17247 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 17248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17249 | else |
| 17250 | cat >conftest.$ac_ext <<_ACEOF |
| 17251 | /* confdefs.h. */ |
| 17252 | _ACEOF |
| 17253 | cat confdefs.h >>conftest.$ac_ext |
| 17254 | cat >>conftest.$ac_ext <<_ACEOF |
| 17255 | /* end confdefs.h. */ |
| 17256 | $ac_includes_default |
| 17257 | typedef int64_t ac__type_new_; |
| 17258 | int |
| 17259 | main () |
| 17260 | { |
| 17261 | if ((ac__type_new_ *) 0) |
| 17262 | return 0; |
| 17263 | if (sizeof (ac__type_new_)) |
| 17264 | return 0; |
| 17265 | ; |
| 17266 | return 0; |
| 17267 | } |
| 17268 | _ACEOF |
| 17269 | rm -f conftest.$ac_objext |
| 17270 | if { (ac_try="$ac_compile" |
| 17271 | case "(($ac_try" in |
| 17272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17273 | *) ac_try_echo=$ac_try;; |
| 17274 | esac |
| 17275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17276 | (eval "$ac_compile") 2>conftest.er1 |
| 17277 | ac_status=$? |
| 17278 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17279 | rm -f conftest.er1 |
| 17280 | cat conftest.err >&5 |
| 17281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17282 | (exit $ac_status); } && |
| 17283 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17284 | { (case "(($ac_try" in |
| 17285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17286 | *) ac_try_echo=$ac_try;; |
| 17287 | esac |
| 17288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17289 | (eval "$ac_try") 2>&5 |
| 17290 | ac_status=$? |
| 17291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17292 | (exit $ac_status); }; } && |
| 17293 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 17303 | ac_cv_type_int64_t=yes |
| 17304 | else |
| 17305 | echo "$as_me: failed program was:" >&5 |
| 17306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17307 | |
| 17308 | ac_cv_type_int64_t=no |
| 17309 | fi |
| 17310 | |
| 17311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17312 | fi |
| 17313 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 17314 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 17315 | if test $ac_cv_type_int64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17316 | |
| 17317 | cat >>confdefs.h <<_ACEOF |
| 17318 | #define HAVE_INT64_T 1 |
| 17319 | _ACEOF |
| 17320 | |
| 17321 | |
| 17322 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17323 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 17324 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 17325 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17326 | fi |
| 17327 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17328 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 17329 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 17330 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 17331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17332 | else |
| 17333 | cat >conftest.$ac_ext <<_ACEOF |
| 17334 | /* confdefs.h. */ |
| 17335 | _ACEOF |
| 17336 | cat confdefs.h >>conftest.$ac_ext |
| 17337 | cat >>conftest.$ac_ext <<_ACEOF |
| 17338 | /* end confdefs.h. */ |
| 17339 | $ac_includes_default |
| 17340 | typedef uint64_t ac__type_new_; |
| 17341 | int |
| 17342 | main () |
| 17343 | { |
| 17344 | if ((ac__type_new_ *) 0) |
| 17345 | return 0; |
| 17346 | if (sizeof (ac__type_new_)) |
| 17347 | return 0; |
| 17348 | ; |
| 17349 | return 0; |
| 17350 | } |
| 17351 | _ACEOF |
| 17352 | rm -f conftest.$ac_objext |
| 17353 | if { (ac_try="$ac_compile" |
| 17354 | case "(($ac_try" in |
| 17355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17356 | *) ac_try_echo=$ac_try;; |
| 17357 | esac |
| 17358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17359 | (eval "$ac_compile") 2>conftest.er1 |
| 17360 | ac_status=$? |
| 17361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17362 | rm -f conftest.er1 |
| 17363 | cat conftest.err >&5 |
| 17364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17365 | (exit $ac_status); } && |
| 17366 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17367 | { (case "(($ac_try" in |
| 17368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17369 | *) ac_try_echo=$ac_try;; |
| 17370 | esac |
| 17371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17372 | (eval "$ac_try") 2>&5 |
| 17373 | ac_status=$? |
| 17374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17375 | (exit $ac_status); }; } && |
| 17376 | { ac_try='test -s conftest.$ac_objext' |
| 17377 | { (case "(($ac_try" in |
| 17378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17379 | *) ac_try_echo=$ac_try;; |
| 17380 | esac |
| 17381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17382 | (eval "$ac_try") 2>&5 |
| 17383 | ac_status=$? |
| 17384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17385 | (exit $ac_status); }; }; then |
| 17386 | ac_cv_type_uint64_t=yes |
| 17387 | else |
| 17388 | echo "$as_me: failed program was:" >&5 |
| 17389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17390 | |
| 17391 | ac_cv_type_uint64_t=no |
| 17392 | fi |
| 17393 | |
| 17394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17395 | fi |
| 17396 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 17397 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 17398 | if test $ac_cv_type_uint64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17399 | |
| 17400 | cat >>confdefs.h <<_ACEOF |
| 17401 | #define HAVE_UINT64_T 1 |
| 17402 | _ACEOF |
| 17403 | |
| 17404 | |
| 17405 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17406 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 17407 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
| 17408 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 17409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17410 | else |
| 17411 | cat >conftest.$ac_ext <<_ACEOF |
| 17412 | /* confdefs.h. */ |
| 17413 | _ACEOF |
| 17414 | cat confdefs.h >>conftest.$ac_ext |
| 17415 | cat >>conftest.$ac_ext <<_ACEOF |
| 17416 | /* end confdefs.h. */ |
| 17417 | $ac_includes_default |
| 17418 | typedef u_int64_t ac__type_new_; |
| 17419 | int |
| 17420 | main () |
| 17421 | { |
| 17422 | if ((ac__type_new_ *) 0) |
| 17423 | return 0; |
| 17424 | if (sizeof (ac__type_new_)) |
| 17425 | return 0; |
| 17426 | ; |
| 17427 | return 0; |
| 17428 | } |
| 17429 | _ACEOF |
| 17430 | rm -f conftest.$ac_objext |
| 17431 | if { (ac_try="$ac_compile" |
| 17432 | case "(($ac_try" in |
| 17433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17434 | *) ac_try_echo=$ac_try;; |
| 17435 | esac |
| 17436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17437 | (eval "$ac_compile") 2>conftest.er1 |
| 17438 | ac_status=$? |
| 17439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17440 | rm -f conftest.er1 |
| 17441 | cat conftest.err >&5 |
| 17442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17443 | (exit $ac_status); } && |
| 17444 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17445 | { (case "(($ac_try" in |
| 17446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17447 | *) ac_try_echo=$ac_try;; |
| 17448 | esac |
| 17449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17450 | (eval "$ac_try") 2>&5 |
| 17451 | ac_status=$? |
| 17452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17453 | (exit $ac_status); }; } && |
| 17454 | { ac_try='test -s conftest.$ac_objext' |
| 17455 | { (case "(($ac_try" in |
| 17456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17457 | *) ac_try_echo=$ac_try;; |
| 17458 | esac |
| 17459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17460 | (eval "$ac_try") 2>&5 |
| 17461 | ac_status=$? |
| 17462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17463 | (exit $ac_status); }; }; then |
| 17464 | ac_cv_type_u_int64_t=yes |
| 17465 | else |
| 17466 | echo "$as_me: failed program was:" >&5 |
| 17467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17468 | |
| 17469 | ac_cv_type_u_int64_t=no |
| 17470 | fi |
| 17471 | |
| 17472 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17473 | fi |
| 17474 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 17475 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
| 17476 | if test $ac_cv_type_u_int64_t = yes; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 17477 | |
| 17478 | cat >>confdefs.h <<_ACEOF |
| 17479 | #define HAVE_U_INT64_T 1 |
| 17480 | _ACEOF |
| 17481 | |
| 17482 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 17483 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17484 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 17485 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 17486 | { (exit 1); exit 1; }; } |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 17487 | fi |
| 17488 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 17489 | fi |
| 17490 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17491 | |
| 17492 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17493 | |
| 17494 | |
| 17495 | |
| 17496 | |
| 17497 | |
| 17498 | |
| 17499 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17500 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17501 | do |
| 17502 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17503 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17504 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17505 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17507 | else |
| 17508 | cat >conftest.$ac_ext <<_ACEOF |
| 17509 | /* confdefs.h. */ |
| 17510 | _ACEOF |
| 17511 | cat confdefs.h >>conftest.$ac_ext |
| 17512 | cat >>conftest.$ac_ext <<_ACEOF |
| 17513 | /* end confdefs.h. */ |
| 17514 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17515 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17516 | #define $ac_func innocuous_$ac_func |
| 17517 | |
| 17518 | /* System header to define __stub macros and hopefully few prototypes, |
| 17519 | which can conflict with char $ac_func (); below. |
| 17520 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17521 | <limits.h> exists even on freestanding compilers. */ |
| 17522 | |
| 17523 | #ifdef __STDC__ |
| 17524 | # include <limits.h> |
| 17525 | #else |
| 17526 | # include <assert.h> |
| 17527 | #endif |
| 17528 | |
| 17529 | #undef $ac_func |
| 17530 | |
| 17531 | /* Override any GCC internal prototype to avoid an error. |
| 17532 | Use char because int might match the return type of a GCC |
| 17533 | builtin and then its argument prototype would still apply. */ |
| 17534 | #ifdef __cplusplus |
| 17535 | extern "C" |
| 17536 | #endif |
| 17537 | char $ac_func (); |
| 17538 | /* The GNU C library defines this for functions which it implements |
| 17539 | to always fail with ENOSYS. Some functions are actually named |
| 17540 | something starting with __ and the normal name is an alias. */ |
| 17541 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17542 | choke me |
| 17543 | #endif |
| 17544 | |
| 17545 | int |
| 17546 | main () |
| 17547 | { |
| 17548 | return $ac_func (); |
| 17549 | ; |
| 17550 | return 0; |
| 17551 | } |
| 17552 | _ACEOF |
| 17553 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17554 | if { (ac_try="$ac_link" |
| 17555 | case "(($ac_try" in |
| 17556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17557 | *) ac_try_echo=$ac_try;; |
| 17558 | esac |
| 17559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17560 | (eval "$ac_link") 2>conftest.er1 |
| 17561 | ac_status=$? |
| 17562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17563 | rm -f conftest.er1 |
| 17564 | cat conftest.err >&5 |
| 17565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17566 | (exit $ac_status); } && |
| 17567 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17568 | { (case "(($ac_try" in |
| 17569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17570 | *) ac_try_echo=$ac_try;; |
| 17571 | esac |
| 17572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17573 | (eval "$ac_try") 2>&5 |
| 17574 | ac_status=$? |
| 17575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17576 | (exit $ac_status); }; } && |
| 17577 | { ac_try='test -s conftest$ac_exeext' |
| 17578 | { (case "(($ac_try" in |
| 17579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17580 | *) ac_try_echo=$ac_try;; |
| 17581 | esac |
| 17582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17583 | (eval "$ac_try") 2>&5 |
| 17584 | ac_status=$? |
| 17585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17586 | (exit $ac_status); }; }; then |
| 17587 | eval "$as_ac_var=yes" |
| 17588 | else |
| 17589 | echo "$as_me: failed program was:" >&5 |
| 17590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17591 | |
| 17592 | eval "$as_ac_var=no" |
| 17593 | fi |
| 17594 | |
| 17595 | rm -f core conftest.err conftest.$ac_objext \ |
| 17596 | conftest$ac_exeext conftest.$ac_ext |
| 17597 | fi |
| 17598 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17599 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17600 | echo "${ECHO_T}$ac_res" >&6; } |
| 17601 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17602 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17603 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17604 | _ACEOF |
| 17605 | |
| 17606 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17607 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17608 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17609 | |
| 17610 | |
| 17611 | |
| 17612 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17613 | for ac_func in powf fmodf strtof round |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17614 | do |
| 17615 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17616 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17617 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17618 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17620 | else |
| 17621 | cat >conftest.$ac_ext <<_ACEOF |
| 17622 | /* confdefs.h. */ |
| 17623 | _ACEOF |
| 17624 | cat confdefs.h >>conftest.$ac_ext |
| 17625 | cat >>conftest.$ac_ext <<_ACEOF |
| 17626 | /* end confdefs.h. */ |
| 17627 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17628 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17629 | #define $ac_func innocuous_$ac_func |
| 17630 | |
| 17631 | /* System header to define __stub macros and hopefully few prototypes, |
| 17632 | which can conflict with char $ac_func (); below. |
| 17633 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17634 | <limits.h> exists even on freestanding compilers. */ |
| 17635 | |
| 17636 | #ifdef __STDC__ |
| 17637 | # include <limits.h> |
| 17638 | #else |
| 17639 | # include <assert.h> |
| 17640 | #endif |
| 17641 | |
| 17642 | #undef $ac_func |
| 17643 | |
| 17644 | /* Override any GCC internal prototype to avoid an error. |
| 17645 | Use char because int might match the return type of a GCC |
| 17646 | builtin and then its argument prototype would still apply. */ |
| 17647 | #ifdef __cplusplus |
| 17648 | extern "C" |
| 17649 | #endif |
| 17650 | char $ac_func (); |
| 17651 | /* The GNU C library defines this for functions which it implements |
| 17652 | to always fail with ENOSYS. Some functions are actually named |
| 17653 | something starting with __ and the normal name is an alias. */ |
| 17654 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17655 | choke me |
| 17656 | #endif |
| 17657 | |
| 17658 | int |
| 17659 | main () |
| 17660 | { |
| 17661 | return $ac_func (); |
| 17662 | ; |
| 17663 | return 0; |
| 17664 | } |
| 17665 | _ACEOF |
| 17666 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17667 | if { (ac_try="$ac_link" |
| 17668 | case "(($ac_try" in |
| 17669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17670 | *) ac_try_echo=$ac_try;; |
| 17671 | esac |
| 17672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17673 | (eval "$ac_link") 2>conftest.er1 |
| 17674 | ac_status=$? |
| 17675 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17676 | rm -f conftest.er1 |
| 17677 | cat conftest.err >&5 |
| 17678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17679 | (exit $ac_status); } && |
| 17680 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17681 | { (case "(($ac_try" in |
| 17682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17683 | *) ac_try_echo=$ac_try;; |
| 17684 | esac |
| 17685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17686 | (eval "$ac_try") 2>&5 |
| 17687 | ac_status=$? |
| 17688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17689 | (exit $ac_status); }; } && |
| 17690 | { ac_try='test -s conftest$ac_exeext' |
| 17691 | { (case "(($ac_try" in |
| 17692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17693 | *) ac_try_echo=$ac_try;; |
| 17694 | esac |
| 17695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17696 | (eval "$ac_try") 2>&5 |
| 17697 | ac_status=$? |
| 17698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17699 | (exit $ac_status); }; }; then |
| 17700 | eval "$as_ac_var=yes" |
| 17701 | else |
| 17702 | echo "$as_me: failed program was:" >&5 |
| 17703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17704 | |
| 17705 | eval "$as_ac_var=no" |
| 17706 | fi |
| 17707 | |
| 17708 | rm -f core conftest.err conftest.$ac_objext \ |
| 17709 | conftest$ac_exeext conftest.$ac_ext |
| 17710 | fi |
| 17711 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17712 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17713 | echo "${ECHO_T}$ac_res" >&6; } |
| 17714 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17715 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17716 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17717 | _ACEOF |
| 17718 | |
| 17719 | fi |
| 17720 | done |
| 17721 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17722 | |
| 17723 | |
| 17724 | |
| 17725 | |
| 17726 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17727 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17728 | do |
| 17729 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17730 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17731 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17732 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17734 | else |
| 17735 | cat >conftest.$ac_ext <<_ACEOF |
| 17736 | /* confdefs.h. */ |
| 17737 | _ACEOF |
| 17738 | cat confdefs.h >>conftest.$ac_ext |
| 17739 | cat >>conftest.$ac_ext <<_ACEOF |
| 17740 | /* end confdefs.h. */ |
| 17741 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17742 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17743 | #define $ac_func innocuous_$ac_func |
| 17744 | |
| 17745 | /* System header to define __stub macros and hopefully few prototypes, |
| 17746 | which can conflict with char $ac_func (); below. |
| 17747 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17748 | <limits.h> exists even on freestanding compilers. */ |
| 17749 | |
| 17750 | #ifdef __STDC__ |
| 17751 | # include <limits.h> |
| 17752 | #else |
| 17753 | # include <assert.h> |
| 17754 | #endif |
| 17755 | |
| 17756 | #undef $ac_func |
| 17757 | |
| 17758 | /* Override any GCC internal prototype to avoid an error. |
| 17759 | Use char because int might match the return type of a GCC |
| 17760 | builtin and then its argument prototype would still apply. */ |
| 17761 | #ifdef __cplusplus |
| 17762 | extern "C" |
| 17763 | #endif |
| 17764 | char $ac_func (); |
| 17765 | /* The GNU C library defines this for functions which it implements |
| 17766 | to always fail with ENOSYS. Some functions are actually named |
| 17767 | something starting with __ and the normal name is an alias. */ |
| 17768 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17769 | choke me |
| 17770 | #endif |
| 17771 | |
| 17772 | int |
| 17773 | main () |
| 17774 | { |
| 17775 | return $ac_func (); |
| 17776 | ; |
| 17777 | return 0; |
| 17778 | } |
| 17779 | _ACEOF |
| 17780 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17781 | if { (ac_try="$ac_link" |
| 17782 | case "(($ac_try" in |
| 17783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17784 | *) ac_try_echo=$ac_try;; |
| 17785 | esac |
| 17786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17787 | (eval "$ac_link") 2>conftest.er1 |
| 17788 | ac_status=$? |
| 17789 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17790 | rm -f conftest.er1 |
| 17791 | cat conftest.err >&5 |
| 17792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17793 | (exit $ac_status); } && |
| 17794 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17795 | { (case "(($ac_try" in |
| 17796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17797 | *) ac_try_echo=$ac_try;; |
| 17798 | esac |
| 17799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17800 | (eval "$ac_try") 2>&5 |
| 17801 | ac_status=$? |
| 17802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17803 | (exit $ac_status); }; } && |
| 17804 | { ac_try='test -s conftest$ac_exeext' |
| 17805 | { (case "(($ac_try" in |
| 17806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17807 | *) ac_try_echo=$ac_try;; |
| 17808 | esac |
| 17809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17810 | (eval "$ac_try") 2>&5 |
| 17811 | ac_status=$? |
| 17812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17813 | (exit $ac_status); }; }; then |
| 17814 | eval "$as_ac_var=yes" |
| 17815 | else |
| 17816 | echo "$as_me: failed program was:" >&5 |
| 17817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17818 | |
| 17819 | eval "$as_ac_var=no" |
| 17820 | fi |
| 17821 | |
| 17822 | rm -f core conftest.err conftest.$ac_objext \ |
| 17823 | conftest$ac_exeext conftest.$ac_ext |
| 17824 | fi |
| 17825 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17826 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17827 | echo "${ECHO_T}$ac_res" >&6; } |
| 17828 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17829 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17830 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17831 | _ACEOF |
| 17832 | |
| 17833 | fi |
| 17834 | done |
| 17835 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17836 | |
| 17837 | |
| 17838 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17839 | for ac_func in isatty mkdtemp mkstemp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17840 | do |
| 17841 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17842 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17843 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17844 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17846 | else |
| 17847 | cat >conftest.$ac_ext <<_ACEOF |
| 17848 | /* confdefs.h. */ |
| 17849 | _ACEOF |
| 17850 | cat confdefs.h >>conftest.$ac_ext |
| 17851 | cat >>conftest.$ac_ext <<_ACEOF |
| 17852 | /* end confdefs.h. */ |
| 17853 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17854 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17855 | #define $ac_func innocuous_$ac_func |
| 17856 | |
| 17857 | /* System header to define __stub macros and hopefully few prototypes, |
| 17858 | which can conflict with char $ac_func (); below. |
| 17859 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17860 | <limits.h> exists even on freestanding compilers. */ |
| 17861 | |
| 17862 | #ifdef __STDC__ |
| 17863 | # include <limits.h> |
| 17864 | #else |
| 17865 | # include <assert.h> |
| 17866 | #endif |
| 17867 | |
| 17868 | #undef $ac_func |
| 17869 | |
| 17870 | /* Override any GCC internal prototype to avoid an error. |
| 17871 | Use char because int might match the return type of a GCC |
| 17872 | builtin and then its argument prototype would still apply. */ |
| 17873 | #ifdef __cplusplus |
| 17874 | extern "C" |
| 17875 | #endif |
| 17876 | char $ac_func (); |
| 17877 | /* The GNU C library defines this for functions which it implements |
| 17878 | to always fail with ENOSYS. Some functions are actually named |
| 17879 | something starting with __ and the normal name is an alias. */ |
| 17880 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17881 | choke me |
| 17882 | #endif |
| 17883 | |
| 17884 | int |
| 17885 | main () |
| 17886 | { |
| 17887 | return $ac_func (); |
| 17888 | ; |
| 17889 | return 0; |
| 17890 | } |
| 17891 | _ACEOF |
| 17892 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17893 | if { (ac_try="$ac_link" |
| 17894 | case "(($ac_try" in |
| 17895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17896 | *) ac_try_echo=$ac_try;; |
| 17897 | esac |
| 17898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17899 | (eval "$ac_link") 2>conftest.er1 |
| 17900 | ac_status=$? |
| 17901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17902 | rm -f conftest.er1 |
| 17903 | cat conftest.err >&5 |
| 17904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17905 | (exit $ac_status); } && |
| 17906 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17907 | { (case "(($ac_try" in |
| 17908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17909 | *) ac_try_echo=$ac_try;; |
| 17910 | esac |
| 17911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17912 | (eval "$ac_try") 2>&5 |
| 17913 | ac_status=$? |
| 17914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17915 | (exit $ac_status); }; } && |
| 17916 | { ac_try='test -s conftest$ac_exeext' |
| 17917 | { (case "(($ac_try" in |
| 17918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17919 | *) ac_try_echo=$ac_try;; |
| 17920 | esac |
| 17921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17922 | (eval "$ac_try") 2>&5 |
| 17923 | ac_status=$? |
| 17924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17925 | (exit $ac_status); }; }; then |
| 17926 | eval "$as_ac_var=yes" |
| 17927 | else |
| 17928 | echo "$as_me: failed program was:" >&5 |
| 17929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17930 | |
| 17931 | eval "$as_ac_var=no" |
| 17932 | fi |
| 17933 | |
| 17934 | rm -f core conftest.err conftest.$ac_objext \ |
| 17935 | conftest$ac_exeext conftest.$ac_ext |
| 17936 | fi |
| 17937 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17938 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17939 | echo "${ECHO_T}$ac_res" >&6; } |
| 17940 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17941 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17942 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17943 | _ACEOF |
| 17944 | |
| 17945 | fi |
| 17946 | done |
| 17947 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17948 | |
| 17949 | |
| 17950 | |
| 17951 | |
| 17952 | |
Eric Christopher | e429182 | 2010-04-16 05:14:21 +0000 | [diff] [blame] | 17953 | |
| 17954 | for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17955 | do |
| 17956 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17957 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17958 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17959 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17961 | else |
| 17962 | cat >conftest.$ac_ext <<_ACEOF |
| 17963 | /* confdefs.h. */ |
| 17964 | _ACEOF |
| 17965 | cat confdefs.h >>conftest.$ac_ext |
| 17966 | cat >>conftest.$ac_ext <<_ACEOF |
| 17967 | /* end confdefs.h. */ |
| 17968 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17969 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17970 | #define $ac_func innocuous_$ac_func |
| 17971 | |
| 17972 | /* System header to define __stub macros and hopefully few prototypes, |
| 17973 | which can conflict with char $ac_func (); below. |
| 17974 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17975 | <limits.h> exists even on freestanding compilers. */ |
| 17976 | |
| 17977 | #ifdef __STDC__ |
| 17978 | # include <limits.h> |
| 17979 | #else |
| 17980 | # include <assert.h> |
| 17981 | #endif |
| 17982 | |
| 17983 | #undef $ac_func |
| 17984 | |
| 17985 | /* Override any GCC internal prototype to avoid an error. |
| 17986 | Use char because int might match the return type of a GCC |
| 17987 | builtin and then its argument prototype would still apply. */ |
| 17988 | #ifdef __cplusplus |
| 17989 | extern "C" |
| 17990 | #endif |
| 17991 | char $ac_func (); |
| 17992 | /* The GNU C library defines this for functions which it implements |
| 17993 | to always fail with ENOSYS. Some functions are actually named |
| 17994 | something starting with __ and the normal name is an alias. */ |
| 17995 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17996 | choke me |
| 17997 | #endif |
| 17998 | |
| 17999 | int |
| 18000 | main () |
| 18001 | { |
| 18002 | return $ac_func (); |
| 18003 | ; |
| 18004 | return 0; |
| 18005 | } |
| 18006 | _ACEOF |
| 18007 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18008 | if { (ac_try="$ac_link" |
| 18009 | case "(($ac_try" in |
| 18010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18011 | *) ac_try_echo=$ac_try;; |
| 18012 | esac |
| 18013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18014 | (eval "$ac_link") 2>conftest.er1 |
| 18015 | ac_status=$? |
| 18016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18017 | rm -f conftest.er1 |
| 18018 | cat conftest.err >&5 |
| 18019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18020 | (exit $ac_status); } && |
| 18021 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18022 | { (case "(($ac_try" in |
| 18023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18024 | *) ac_try_echo=$ac_try;; |
| 18025 | esac |
| 18026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18027 | (eval "$ac_try") 2>&5 |
| 18028 | ac_status=$? |
| 18029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18030 | (exit $ac_status); }; } && |
| 18031 | { ac_try='test -s conftest$ac_exeext' |
| 18032 | { (case "(($ac_try" in |
| 18033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18034 | *) ac_try_echo=$ac_try;; |
| 18035 | esac |
| 18036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18037 | (eval "$ac_try") 2>&5 |
| 18038 | ac_status=$? |
| 18039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18040 | (exit $ac_status); }; }; then |
| 18041 | eval "$as_ac_var=yes" |
| 18042 | else |
| 18043 | echo "$as_me: failed program was:" >&5 |
| 18044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18045 | |
| 18046 | eval "$as_ac_var=no" |
| 18047 | fi |
| 18048 | |
| 18049 | rm -f core conftest.err conftest.$ac_objext \ |
| 18050 | conftest$ac_exeext conftest.$ac_ext |
| 18051 | fi |
| 18052 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18053 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18054 | echo "${ECHO_T}$ac_res" >&6; } |
| 18055 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 18056 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18057 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 18058 | _ACEOF |
| 18059 | |
| 18060 | fi |
| 18061 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18062 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18063 | |
| 18064 | |
| 18065 | |
| 18066 | |
Jeffrey Yasskin | b7a8d40 | 2009-09-25 21:07:20 +0000 | [diff] [blame] | 18067 | for ac_func in strerror strerror_r strerror_s setenv |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18068 | do |
| 18069 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18070 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18071 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18072 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18074 | else |
| 18075 | cat >conftest.$ac_ext <<_ACEOF |
| 18076 | /* confdefs.h. */ |
| 18077 | _ACEOF |
| 18078 | cat confdefs.h >>conftest.$ac_ext |
| 18079 | cat >>conftest.$ac_ext <<_ACEOF |
| 18080 | /* end confdefs.h. */ |
| 18081 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18082 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18083 | #define $ac_func innocuous_$ac_func |
| 18084 | |
| 18085 | /* System header to define __stub macros and hopefully few prototypes, |
| 18086 | which can conflict with char $ac_func (); below. |
| 18087 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18088 | <limits.h> exists even on freestanding compilers. */ |
| 18089 | |
| 18090 | #ifdef __STDC__ |
| 18091 | # include <limits.h> |
| 18092 | #else |
| 18093 | # include <assert.h> |
| 18094 | #endif |
| 18095 | |
| 18096 | #undef $ac_func |
| 18097 | |
| 18098 | /* Override any GCC internal prototype to avoid an error. |
| 18099 | Use char because int might match the return type of a GCC |
| 18100 | builtin and then its argument prototype would still apply. */ |
| 18101 | #ifdef __cplusplus |
| 18102 | extern "C" |
| 18103 | #endif |
| 18104 | char $ac_func (); |
| 18105 | /* The GNU C library defines this for functions which it implements |
| 18106 | to always fail with ENOSYS. Some functions are actually named |
| 18107 | something starting with __ and the normal name is an alias. */ |
| 18108 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18109 | choke me |
| 18110 | #endif |
| 18111 | |
| 18112 | int |
| 18113 | main () |
| 18114 | { |
| 18115 | return $ac_func (); |
| 18116 | ; |
| 18117 | return 0; |
| 18118 | } |
| 18119 | _ACEOF |
| 18120 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18121 | if { (ac_try="$ac_link" |
| 18122 | case "(($ac_try" in |
| 18123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18124 | *) ac_try_echo=$ac_try;; |
| 18125 | esac |
| 18126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18127 | (eval "$ac_link") 2>conftest.er1 |
| 18128 | ac_status=$? |
| 18129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18130 | rm -f conftest.er1 |
| 18131 | cat conftest.err >&5 |
| 18132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18133 | (exit $ac_status); } && |
| 18134 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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); }; } && |
| 18144 | { ac_try='test -s conftest$ac_exeext' |
| 18145 | { (case "(($ac_try" in |
| 18146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18147 | *) ac_try_echo=$ac_try;; |
| 18148 | esac |
| 18149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18150 | (eval "$ac_try") 2>&5 |
| 18151 | ac_status=$? |
| 18152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18153 | (exit $ac_status); }; }; then |
| 18154 | eval "$as_ac_var=yes" |
| 18155 | else |
| 18156 | echo "$as_me: failed program was:" >&5 |
| 18157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18158 | |
| 18159 | eval "$as_ac_var=no" |
| 18160 | fi |
| 18161 | |
| 18162 | rm -f core conftest.err conftest.$ac_objext \ |
| 18163 | conftest$ac_exeext conftest.$ac_ext |
| 18164 | fi |
| 18165 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18166 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18167 | echo "${ECHO_T}$ac_res" >&6; } |
| 18168 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 18169 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18170 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 18171 | _ACEOF |
| 18172 | |
| 18173 | fi |
| 18174 | done |
| 18175 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18176 | |
| 18177 | |
| 18178 | |
| 18179 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 18180 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18181 | do |
| 18182 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18183 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18184 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18185 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18187 | else |
| 18188 | cat >conftest.$ac_ext <<_ACEOF |
| 18189 | /* confdefs.h. */ |
| 18190 | _ACEOF |
| 18191 | cat confdefs.h >>conftest.$ac_ext |
| 18192 | cat >>conftest.$ac_ext <<_ACEOF |
| 18193 | /* end confdefs.h. */ |
| 18194 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18195 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18196 | #define $ac_func innocuous_$ac_func |
| 18197 | |
| 18198 | /* System header to define __stub macros and hopefully few prototypes, |
| 18199 | which can conflict with char $ac_func (); below. |
| 18200 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18201 | <limits.h> exists even on freestanding compilers. */ |
| 18202 | |
| 18203 | #ifdef __STDC__ |
| 18204 | # include <limits.h> |
| 18205 | #else |
| 18206 | # include <assert.h> |
| 18207 | #endif |
| 18208 | |
| 18209 | #undef $ac_func |
| 18210 | |
| 18211 | /* Override any GCC internal prototype to avoid an error. |
| 18212 | Use char because int might match the return type of a GCC |
| 18213 | builtin and then its argument prototype would still apply. */ |
| 18214 | #ifdef __cplusplus |
| 18215 | extern "C" |
| 18216 | #endif |
| 18217 | char $ac_func (); |
| 18218 | /* The GNU C library defines this for functions which it implements |
| 18219 | to always fail with ENOSYS. Some functions are actually named |
| 18220 | something starting with __ and the normal name is an alias. */ |
| 18221 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18222 | choke me |
| 18223 | #endif |
| 18224 | |
| 18225 | int |
| 18226 | main () |
| 18227 | { |
| 18228 | return $ac_func (); |
| 18229 | ; |
| 18230 | return 0; |
| 18231 | } |
| 18232 | _ACEOF |
| 18233 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18234 | if { (ac_try="$ac_link" |
| 18235 | case "(($ac_try" in |
| 18236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18237 | *) ac_try_echo=$ac_try;; |
| 18238 | esac |
| 18239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18240 | (eval "$ac_link") 2>conftest.er1 |
| 18241 | ac_status=$? |
| 18242 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18243 | rm -f conftest.er1 |
| 18244 | cat conftest.err >&5 |
| 18245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18246 | (exit $ac_status); } && |
| 18247 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18248 | { (case "(($ac_try" in |
| 18249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18250 | *) ac_try_echo=$ac_try;; |
| 18251 | esac |
| 18252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18253 | (eval "$ac_try") 2>&5 |
| 18254 | ac_status=$? |
| 18255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18256 | (exit $ac_status); }; } && |
| 18257 | { ac_try='test -s conftest$ac_exeext' |
| 18258 | { (case "(($ac_try" in |
| 18259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18260 | *) ac_try_echo=$ac_try;; |
| 18261 | esac |
| 18262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18263 | (eval "$ac_try") 2>&5 |
| 18264 | ac_status=$? |
| 18265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18266 | (exit $ac_status); }; }; then |
| 18267 | eval "$as_ac_var=yes" |
| 18268 | else |
| 18269 | echo "$as_me: failed program was:" >&5 |
| 18270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18271 | |
| 18272 | eval "$as_ac_var=no" |
| 18273 | fi |
| 18274 | |
| 18275 | rm -f core conftest.err conftest.$ac_objext \ |
| 18276 | conftest$ac_exeext conftest.$ac_ext |
| 18277 | fi |
| 18278 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18279 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18280 | echo "${ECHO_T}$ac_res" >&6; } |
| 18281 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18282 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18283 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18284 | _ACEOF |
| 18285 | |
| 18286 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18287 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18288 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18289 | |
| 18290 | |
| 18291 | |
| 18292 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 18293 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18294 | do |
| 18295 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18296 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18297 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18298 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18300 | else |
| 18301 | cat >conftest.$ac_ext <<_ACEOF |
| 18302 | /* confdefs.h. */ |
| 18303 | _ACEOF |
| 18304 | cat confdefs.h >>conftest.$ac_ext |
| 18305 | cat >>conftest.$ac_ext <<_ACEOF |
| 18306 | /* end confdefs.h. */ |
| 18307 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18308 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18309 | #define $ac_func innocuous_$ac_func |
| 18310 | |
| 18311 | /* System header to define __stub macros and hopefully few prototypes, |
| 18312 | which can conflict with char $ac_func (); below. |
| 18313 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18314 | <limits.h> exists even on freestanding compilers. */ |
| 18315 | |
| 18316 | #ifdef __STDC__ |
| 18317 | # include <limits.h> |
| 18318 | #else |
| 18319 | # include <assert.h> |
| 18320 | #endif |
| 18321 | |
| 18322 | #undef $ac_func |
| 18323 | |
| 18324 | /* Override any GCC internal prototype to avoid an error. |
| 18325 | Use char because int might match the return type of a GCC |
| 18326 | builtin and then its argument prototype would still apply. */ |
| 18327 | #ifdef __cplusplus |
| 18328 | extern "C" |
| 18329 | #endif |
| 18330 | char $ac_func (); |
| 18331 | /* The GNU C library defines this for functions which it implements |
| 18332 | to always fail with ENOSYS. Some functions are actually named |
| 18333 | something starting with __ and the normal name is an alias. */ |
| 18334 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18335 | choke me |
| 18336 | #endif |
| 18337 | |
| 18338 | int |
| 18339 | main () |
| 18340 | { |
| 18341 | return $ac_func (); |
| 18342 | ; |
| 18343 | return 0; |
| 18344 | } |
| 18345 | _ACEOF |
| 18346 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18347 | if { (ac_try="$ac_link" |
| 18348 | case "(($ac_try" in |
| 18349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18350 | *) ac_try_echo=$ac_try;; |
| 18351 | esac |
| 18352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18353 | (eval "$ac_link") 2>conftest.er1 |
| 18354 | ac_status=$? |
| 18355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18356 | rm -f conftest.er1 |
| 18357 | cat conftest.err >&5 |
| 18358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18359 | (exit $ac_status); } && |
| 18360 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18361 | { (case "(($ac_try" in |
| 18362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18363 | *) ac_try_echo=$ac_try;; |
| 18364 | esac |
| 18365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18366 | (eval "$ac_try") 2>&5 |
| 18367 | ac_status=$? |
| 18368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18369 | (exit $ac_status); }; } && |
| 18370 | { ac_try='test -s conftest$ac_exeext' |
| 18371 | { (case "(($ac_try" in |
| 18372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18373 | *) ac_try_echo=$ac_try;; |
| 18374 | esac |
| 18375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18376 | (eval "$ac_try") 2>&5 |
| 18377 | ac_status=$? |
| 18378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18379 | (exit $ac_status); }; }; then |
| 18380 | eval "$as_ac_var=yes" |
| 18381 | else |
| 18382 | echo "$as_me: failed program was:" >&5 |
| 18383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18384 | |
| 18385 | eval "$as_ac_var=no" |
| 18386 | fi |
| 18387 | |
| 18388 | rm -f core conftest.err conftest.$ac_objext \ |
| 18389 | conftest$ac_exeext conftest.$ac_ext |
| 18390 | fi |
| 18391 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18392 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18393 | echo "${ECHO_T}$ac_res" >&6; } |
| 18394 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 18395 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18396 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 18397 | _ACEOF |
| 18398 | |
| 18399 | fi |
| 18400 | done |
| 18401 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18402 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 18403 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
| 18404 | if test "${llvm_cv_c_printf_a+set}" = set; then |
| 18405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18406 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18407 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18408 | ac_cpp='$CPP $CPPFLAGS' |
| 18409 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18410 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18411 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18412 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18413 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18414 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18415 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18416 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18417 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18418 | /* confdefs.h. */ |
| 18419 | _ACEOF |
| 18420 | cat confdefs.h >>conftest.$ac_ext |
| 18421 | cat >>conftest.$ac_ext <<_ACEOF |
| 18422 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 18423 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18424 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18425 | #include <stdlib.h> |
| 18426 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18427 | int |
| 18428 | main () |
| 18429 | { |
| 18430 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18431 | volatile double A, B; |
| 18432 | char Buffer[100]; |
| 18433 | A = 1; |
| 18434 | A /= 10.0; |
| 18435 | sprintf(Buffer, "%a", A); |
| 18436 | B = atof(Buffer); |
| 18437 | if (A != B) |
| 18438 | return (1); |
| 18439 | if (A != 0x1.999999999999ap-4) |
| 18440 | return (1); |
| 18441 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18442 | ; |
| 18443 | return 0; |
| 18444 | } |
| 18445 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18446 | rm -f conftest$ac_exeext |
| 18447 | if { (ac_try="$ac_link" |
| 18448 | case "(($ac_try" in |
| 18449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18450 | *) ac_try_echo=$ac_try;; |
| 18451 | esac |
| 18452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18453 | (eval "$ac_link") 2>&5 |
| 18454 | ac_status=$? |
| 18455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18456 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18457 | { (case "(($ac_try" in |
| 18458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18459 | *) ac_try_echo=$ac_try;; |
| 18460 | esac |
| 18461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18462 | (eval "$ac_try") 2>&5 |
| 18463 | ac_status=$? |
| 18464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18465 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18466 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18467 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18468 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18469 | echo "$as_me: failed program was:" >&5 |
| 18470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18471 | |
| 18472 | ( exit $ac_status ) |
| 18473 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18474 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18475 | 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] | 18476 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18477 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18478 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18479 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18480 | ac_cpp='$CPP $CPPFLAGS' |
| 18481 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18482 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18483 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18484 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18485 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18486 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 18487 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18488 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18489 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18490 | cat >>confdefs.h <<\_ACEOF |
| 18491 | #define HAVE_PRINTF_A 1 |
| 18492 | _ACEOF |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18493 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18494 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18495 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18496 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18497 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 18498 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
| 18499 | if test "${ac_cv_func_rand48+set}" = set; then |
| 18500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18501 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18502 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18503 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18504 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18505 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18506 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18507 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18508 | cat >conftest.$ac_ext <<_ACEOF |
| 18509 | /* confdefs.h. */ |
| 18510 | _ACEOF |
| 18511 | cat confdefs.h >>conftest.$ac_ext |
| 18512 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18513 | /* end confdefs.h. */ |
| 18514 | #include <stdlib.h> |
| 18515 | int |
| 18516 | main () |
| 18517 | { |
| 18518 | srand48(0);lrand48();drand48(); |
| 18519 | ; |
| 18520 | return 0; |
| 18521 | } |
| 18522 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18523 | rm -f conftest.$ac_objext |
| 18524 | if { (ac_try="$ac_compile" |
| 18525 | case "(($ac_try" in |
| 18526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18527 | *) ac_try_echo=$ac_try;; |
| 18528 | esac |
| 18529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18530 | (eval "$ac_compile") 2>conftest.er1 |
| 18531 | ac_status=$? |
| 18532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18533 | rm -f conftest.er1 |
| 18534 | cat conftest.err >&5 |
| 18535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18536 | (exit $ac_status); } && |
| 18537 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18538 | { (case "(($ac_try" in |
| 18539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18540 | *) ac_try_echo=$ac_try;; |
| 18541 | esac |
| 18542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18543 | (eval "$ac_try") 2>&5 |
| 18544 | ac_status=$? |
| 18545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18546 | (exit $ac_status); }; } && |
| 18547 | { ac_try='test -s conftest.$ac_objext' |
| 18548 | { (case "(($ac_try" in |
| 18549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18550 | *) ac_try_echo=$ac_try;; |
| 18551 | esac |
| 18552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18553 | (eval "$ac_try") 2>&5 |
| 18554 | ac_status=$? |
| 18555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18556 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18557 | ac_cv_func_rand48=yes |
| 18558 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18559 | echo "$as_me: failed program was:" >&5 |
| 18560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18561 | |
| 18562 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18563 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18564 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18566 | ac_ext=c |
| 18567 | ac_cpp='$CPP $CPPFLAGS' |
| 18568 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18569 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18570 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18571 | |
| 18572 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18573 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 18574 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18575 | |
| 18576 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 18577 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18578 | cat >>confdefs.h <<\_ACEOF |
| 18579 | #define HAVE_RAND48 1 |
| 18580 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18581 | |
| 18582 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 18583 | |
| 18584 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 18585 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18586 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 18587 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
| 18588 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 18589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18590 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18591 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18592 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18593 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18594 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18595 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18596 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18597 | cat >conftest.$ac_ext <<_ACEOF |
| 18598 | /* confdefs.h. */ |
| 18599 | _ACEOF |
| 18600 | cat confdefs.h >>conftest.$ac_ext |
| 18601 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18602 | /* end confdefs.h. */ |
| 18603 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18604 | int |
| 18605 | main () |
| 18606 | { |
| 18607 | float f; isnan(f); |
| 18608 | ; |
| 18609 | return 0; |
| 18610 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18611 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18612 | rm -f conftest.$ac_objext |
| 18613 | if { (ac_try="$ac_compile" |
| 18614 | case "(($ac_try" in |
| 18615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18616 | *) ac_try_echo=$ac_try;; |
| 18617 | esac |
| 18618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18619 | (eval "$ac_compile") 2>conftest.er1 |
| 18620 | ac_status=$? |
| 18621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18622 | rm -f conftest.er1 |
| 18623 | cat conftest.err >&5 |
| 18624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18625 | (exit $ac_status); } && |
| 18626 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18627 | { (case "(($ac_try" in |
| 18628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18629 | *) ac_try_echo=$ac_try;; |
| 18630 | esac |
| 18631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18632 | (eval "$ac_try") 2>&5 |
| 18633 | ac_status=$? |
| 18634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18635 | (exit $ac_status); }; } && |
| 18636 | { ac_try='test -s conftest.$ac_objext' |
| 18637 | { (case "(($ac_try" in |
| 18638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18639 | *) ac_try_echo=$ac_try;; |
| 18640 | esac |
| 18641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18642 | (eval "$ac_try") 2>&5 |
| 18643 | ac_status=$? |
| 18644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18645 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18646 | ac_cv_func_isnan_in_math_h=yes |
| 18647 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18648 | echo "$as_me: failed program was:" >&5 |
| 18649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18650 | |
| 18651 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18652 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18653 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18655 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18656 | ac_cpp='$CPP $CPPFLAGS' |
| 18657 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18658 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18659 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18660 | |
| 18661 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18662 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 18663 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18664 | |
| 18665 | |
| 18666 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18667 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18668 | cat >>confdefs.h <<\_ACEOF |
| 18669 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 18670 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18671 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18672 | fi |
| 18673 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18674 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 18675 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
| 18676 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 18677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18678 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18679 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18680 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18681 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18682 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18683 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18684 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18685 | cat >conftest.$ac_ext <<_ACEOF |
| 18686 | /* confdefs.h. */ |
| 18687 | _ACEOF |
| 18688 | cat confdefs.h >>conftest.$ac_ext |
| 18689 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18690 | /* end confdefs.h. */ |
| 18691 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18692 | int |
| 18693 | main () |
| 18694 | { |
| 18695 | float f; isnan(f); |
| 18696 | ; |
| 18697 | return 0; |
| 18698 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18699 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18700 | rm -f conftest.$ac_objext |
| 18701 | if { (ac_try="$ac_compile" |
| 18702 | case "(($ac_try" in |
| 18703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18704 | *) ac_try_echo=$ac_try;; |
| 18705 | esac |
| 18706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18707 | (eval "$ac_compile") 2>conftest.er1 |
| 18708 | ac_status=$? |
| 18709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18710 | rm -f conftest.er1 |
| 18711 | cat conftest.err >&5 |
| 18712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18713 | (exit $ac_status); } && |
| 18714 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18715 | { (case "(($ac_try" in |
| 18716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18717 | *) ac_try_echo=$ac_try;; |
| 18718 | esac |
| 18719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18720 | (eval "$ac_try") 2>&5 |
| 18721 | ac_status=$? |
| 18722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18723 | (exit $ac_status); }; } && |
| 18724 | { ac_try='test -s conftest.$ac_objext' |
| 18725 | { (case "(($ac_try" in |
| 18726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18727 | *) ac_try_echo=$ac_try;; |
| 18728 | esac |
| 18729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18730 | (eval "$ac_try") 2>&5 |
| 18731 | ac_status=$? |
| 18732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18733 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18734 | ac_cv_func_isnan_in_cmath=yes |
| 18735 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18736 | echo "$as_me: failed program was:" >&5 |
| 18737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18738 | |
| 18739 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18740 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18741 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18743 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18744 | ac_cpp='$CPP $CPPFLAGS' |
| 18745 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18746 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18747 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18748 | |
| 18749 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18750 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 18751 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18752 | |
| 18753 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18754 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18755 | cat >>confdefs.h <<\_ACEOF |
| 18756 | #define HAVE_ISNAN_IN_CMATH 1 |
| 18757 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18758 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18759 | fi |
| 18760 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18761 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 18762 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
| 18763 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 18764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18765 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18766 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18767 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18768 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18769 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18770 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18771 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18772 | cat >conftest.$ac_ext <<_ACEOF |
| 18773 | /* confdefs.h. */ |
| 18774 | _ACEOF |
| 18775 | cat confdefs.h >>conftest.$ac_ext |
| 18776 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18777 | /* end confdefs.h. */ |
| 18778 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18779 | int |
| 18780 | main () |
| 18781 | { |
| 18782 | float f; std::isnan(f); |
| 18783 | ; |
| 18784 | return 0; |
| 18785 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18786 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18787 | rm -f conftest.$ac_objext |
| 18788 | if { (ac_try="$ac_compile" |
| 18789 | case "(($ac_try" in |
| 18790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18791 | *) ac_try_echo=$ac_try;; |
| 18792 | esac |
| 18793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18794 | (eval "$ac_compile") 2>conftest.er1 |
| 18795 | ac_status=$? |
| 18796 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18797 | rm -f conftest.er1 |
| 18798 | cat conftest.err >&5 |
| 18799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18800 | (exit $ac_status); } && |
| 18801 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18802 | { (case "(($ac_try" in |
| 18803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18804 | *) ac_try_echo=$ac_try;; |
| 18805 | esac |
| 18806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18807 | (eval "$ac_try") 2>&5 |
| 18808 | ac_status=$? |
| 18809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18810 | (exit $ac_status); }; } && |
| 18811 | { ac_try='test -s conftest.$ac_objext' |
| 18812 | { (case "(($ac_try" in |
| 18813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18814 | *) ac_try_echo=$ac_try;; |
| 18815 | esac |
| 18816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18817 | (eval "$ac_try") 2>&5 |
| 18818 | ac_status=$? |
| 18819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18820 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18821 | ac_cv_func_std_isnan_in_cmath=yes |
| 18822 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18823 | echo "$as_me: failed program was:" >&5 |
| 18824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18825 | |
| 18826 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18827 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18828 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18830 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18831 | ac_cpp='$CPP $CPPFLAGS' |
| 18832 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18833 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18834 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18835 | |
| 18836 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18837 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 18838 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18839 | |
| 18840 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18841 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18842 | cat >>confdefs.h <<\_ACEOF |
| 18843 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 18844 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18845 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18846 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18847 | |
| 18848 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18849 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 18850 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
| 18851 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 18852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18853 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18854 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18855 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18856 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18857 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18858 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18859 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18860 | cat >conftest.$ac_ext <<_ACEOF |
| 18861 | /* confdefs.h. */ |
| 18862 | _ACEOF |
| 18863 | cat confdefs.h >>conftest.$ac_ext |
| 18864 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18865 | /* end confdefs.h. */ |
| 18866 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18867 | int |
| 18868 | main () |
| 18869 | { |
| 18870 | float f; isinf(f); |
| 18871 | ; |
| 18872 | return 0; |
| 18873 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18874 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18875 | rm -f conftest.$ac_objext |
| 18876 | if { (ac_try="$ac_compile" |
| 18877 | case "(($ac_try" in |
| 18878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18879 | *) ac_try_echo=$ac_try;; |
| 18880 | esac |
| 18881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18882 | (eval "$ac_compile") 2>conftest.er1 |
| 18883 | ac_status=$? |
| 18884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18885 | rm -f conftest.er1 |
| 18886 | cat conftest.err >&5 |
| 18887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18888 | (exit $ac_status); } && |
| 18889 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18890 | { (case "(($ac_try" in |
| 18891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18892 | *) ac_try_echo=$ac_try;; |
| 18893 | esac |
| 18894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18895 | (eval "$ac_try") 2>&5 |
| 18896 | ac_status=$? |
| 18897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18898 | (exit $ac_status); }; } && |
| 18899 | { ac_try='test -s conftest.$ac_objext' |
| 18900 | { (case "(($ac_try" in |
| 18901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18902 | *) ac_try_echo=$ac_try;; |
| 18903 | esac |
| 18904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18905 | (eval "$ac_try") 2>&5 |
| 18906 | ac_status=$? |
| 18907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18908 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18909 | ac_cv_func_isinf_in_math_h=yes |
| 18910 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18911 | echo "$as_me: failed program was:" >&5 |
| 18912 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18913 | |
| 18914 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18915 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18916 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18917 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18918 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18919 | ac_cpp='$CPP $CPPFLAGS' |
| 18920 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18921 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18922 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18923 | |
| 18924 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18925 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 18926 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18927 | |
| 18928 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18929 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18930 | cat >>confdefs.h <<\_ACEOF |
| 18931 | #define HAVE_ISINF_IN_MATH_H 1 |
| 18932 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18933 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18934 | fi |
| 18935 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18936 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 18937 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
| 18938 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 18939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18940 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18941 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18942 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18943 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18944 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18945 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18946 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18947 | cat >conftest.$ac_ext <<_ACEOF |
| 18948 | /* confdefs.h. */ |
| 18949 | _ACEOF |
| 18950 | cat confdefs.h >>conftest.$ac_ext |
| 18951 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18952 | /* end confdefs.h. */ |
| 18953 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18954 | int |
| 18955 | main () |
| 18956 | { |
| 18957 | float f; isinf(f); |
| 18958 | ; |
| 18959 | return 0; |
| 18960 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18961 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18962 | rm -f conftest.$ac_objext |
| 18963 | if { (ac_try="$ac_compile" |
| 18964 | case "(($ac_try" in |
| 18965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18966 | *) ac_try_echo=$ac_try;; |
| 18967 | esac |
| 18968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18969 | (eval "$ac_compile") 2>conftest.er1 |
| 18970 | ac_status=$? |
| 18971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18972 | rm -f conftest.er1 |
| 18973 | cat conftest.err >&5 |
| 18974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18975 | (exit $ac_status); } && |
| 18976 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18977 | { (case "(($ac_try" in |
| 18978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18979 | *) ac_try_echo=$ac_try;; |
| 18980 | esac |
| 18981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18982 | (eval "$ac_try") 2>&5 |
| 18983 | ac_status=$? |
| 18984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18985 | (exit $ac_status); }; } && |
| 18986 | { ac_try='test -s conftest.$ac_objext' |
| 18987 | { (case "(($ac_try" in |
| 18988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18989 | *) ac_try_echo=$ac_try;; |
| 18990 | esac |
| 18991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18992 | (eval "$ac_try") 2>&5 |
| 18993 | ac_status=$? |
| 18994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18995 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18996 | ac_cv_func_isinf_in_cmath=yes |
| 18997 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18998 | echo "$as_me: failed program was:" >&5 |
| 18999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19000 | |
| 19001 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19002 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19003 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19005 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19006 | ac_cpp='$CPP $CPPFLAGS' |
| 19007 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19008 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19009 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19010 | |
| 19011 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19012 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 19013 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19014 | |
| 19015 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19016 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19017 | cat >>confdefs.h <<\_ACEOF |
| 19018 | #define HAVE_ISINF_IN_CMATH 1 |
| 19019 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19020 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19021 | fi |
| 19022 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19023 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 19024 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
| 19025 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 19026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19027 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19028 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19029 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19030 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19031 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19032 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19033 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19034 | cat >conftest.$ac_ext <<_ACEOF |
| 19035 | /* confdefs.h. */ |
| 19036 | _ACEOF |
| 19037 | cat confdefs.h >>conftest.$ac_ext |
| 19038 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19039 | /* end confdefs.h. */ |
| 19040 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19041 | int |
| 19042 | main () |
| 19043 | { |
| 19044 | float f; std::isinf(f)} |
| 19045 | ; |
| 19046 | return 0; |
| 19047 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19048 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19049 | rm -f conftest.$ac_objext |
| 19050 | if { (ac_try="$ac_compile" |
| 19051 | case "(($ac_try" in |
| 19052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19053 | *) ac_try_echo=$ac_try;; |
| 19054 | esac |
| 19055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19056 | (eval "$ac_compile") 2>conftest.er1 |
| 19057 | ac_status=$? |
| 19058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19059 | rm -f conftest.er1 |
| 19060 | cat conftest.err >&5 |
| 19061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19062 | (exit $ac_status); } && |
| 19063 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19064 | { (case "(($ac_try" in |
| 19065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19066 | *) ac_try_echo=$ac_try;; |
| 19067 | esac |
| 19068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19069 | (eval "$ac_try") 2>&5 |
| 19070 | ac_status=$? |
| 19071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19072 | (exit $ac_status); }; } && |
| 19073 | { ac_try='test -s conftest.$ac_objext' |
| 19074 | { (case "(($ac_try" in |
| 19075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19076 | *) ac_try_echo=$ac_try;; |
| 19077 | esac |
| 19078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19079 | (eval "$ac_try") 2>&5 |
| 19080 | ac_status=$? |
| 19081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19082 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19083 | ac_cv_func_std_isinf_in_cmath=yes |
| 19084 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19085 | echo "$as_me: failed program was:" >&5 |
| 19086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19087 | |
| 19088 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19089 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19090 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19092 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19093 | ac_cpp='$CPP $CPPFLAGS' |
| 19094 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19095 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19096 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19097 | |
| 19098 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19099 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 19100 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19101 | |
| 19102 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19103 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19104 | cat >>confdefs.h <<\_ACEOF |
| 19105 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 19106 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19107 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19108 | fi |
| 19109 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19110 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 19111 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
| 19112 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 19113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19114 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19115 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19116 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19117 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19118 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19119 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19120 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19121 | cat >conftest.$ac_ext <<_ACEOF |
| 19122 | /* confdefs.h. */ |
| 19123 | _ACEOF |
| 19124 | cat confdefs.h >>conftest.$ac_ext |
| 19125 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19126 | /* end confdefs.h. */ |
| 19127 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19128 | int |
| 19129 | main () |
| 19130 | { |
| 19131 | float f; finite(f); |
| 19132 | ; |
| 19133 | return 0; |
| 19134 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19135 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19136 | rm -f conftest.$ac_objext |
| 19137 | if { (ac_try="$ac_compile" |
| 19138 | case "(($ac_try" in |
| 19139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19140 | *) ac_try_echo=$ac_try;; |
| 19141 | esac |
| 19142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19143 | (eval "$ac_compile") 2>conftest.er1 |
| 19144 | ac_status=$? |
| 19145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19146 | rm -f conftest.er1 |
| 19147 | cat conftest.err >&5 |
| 19148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19149 | (exit $ac_status); } && |
| 19150 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19151 | { (case "(($ac_try" in |
| 19152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19153 | *) ac_try_echo=$ac_try;; |
| 19154 | esac |
| 19155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19156 | (eval "$ac_try") 2>&5 |
| 19157 | ac_status=$? |
| 19158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19159 | (exit $ac_status); }; } && |
| 19160 | { ac_try='test -s conftest.$ac_objext' |
| 19161 | { (case "(($ac_try" in |
| 19162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19163 | *) ac_try_echo=$ac_try;; |
| 19164 | esac |
| 19165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19166 | (eval "$ac_try") 2>&5 |
| 19167 | ac_status=$? |
| 19168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19169 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19170 | ac_cv_func_finite_in_ieeefp_h=yes |
| 19171 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19172 | echo "$as_me: failed program was:" >&5 |
| 19173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19174 | |
| 19175 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19176 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19177 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19179 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19180 | ac_cpp='$CPP $CPPFLAGS' |
| 19181 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19182 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19183 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19184 | |
| 19185 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19186 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 19187 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19188 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 19189 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19190 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19191 | cat >>confdefs.h <<\_ACEOF |
| 19192 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
| 19193 | _ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19194 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19195 | fi |
| 19196 | |
| 19197 | |
| 19198 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19199 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19200 | |
| 19201 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19202 | for ac_header in stdlib.h unistd.h |
| 19203 | do |
| 19204 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19205 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19206 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19207 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19208 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19210 | fi |
| 19211 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19212 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19213 | echo "${ECHO_T}$ac_res" >&6; } |
| 19214 | else |
| 19215 | # Is the header compilable? |
| 19216 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19217 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 19218 | cat >conftest.$ac_ext <<_ACEOF |
| 19219 | /* confdefs.h. */ |
| 19220 | _ACEOF |
| 19221 | cat confdefs.h >>conftest.$ac_ext |
| 19222 | cat >>conftest.$ac_ext <<_ACEOF |
| 19223 | /* end confdefs.h. */ |
| 19224 | $ac_includes_default |
| 19225 | #include <$ac_header> |
| 19226 | _ACEOF |
| 19227 | rm -f conftest.$ac_objext |
| 19228 | if { (ac_try="$ac_compile" |
| 19229 | case "(($ac_try" in |
| 19230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19231 | *) ac_try_echo=$ac_try;; |
| 19232 | esac |
| 19233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19234 | (eval "$ac_compile") 2>conftest.er1 |
| 19235 | ac_status=$? |
| 19236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19237 | rm -f conftest.er1 |
| 19238 | cat conftest.err >&5 |
| 19239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19240 | (exit $ac_status); } && |
| 19241 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19242 | { (case "(($ac_try" in |
| 19243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19244 | *) ac_try_echo=$ac_try;; |
| 19245 | esac |
| 19246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19247 | (eval "$ac_try") 2>&5 |
| 19248 | ac_status=$? |
| 19249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19250 | (exit $ac_status); }; } && |
| 19251 | { ac_try='test -s conftest.$ac_objext' |
| 19252 | { (case "(($ac_try" in |
| 19253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19254 | *) ac_try_echo=$ac_try;; |
| 19255 | esac |
| 19256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19257 | (eval "$ac_try") 2>&5 |
| 19258 | ac_status=$? |
| 19259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19260 | (exit $ac_status); }; }; then |
| 19261 | ac_header_compiler=yes |
| 19262 | else |
| 19263 | echo "$as_me: failed program was:" >&5 |
| 19264 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19265 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19266 | ac_header_compiler=no |
| 19267 | fi |
| 19268 | |
| 19269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19270 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19271 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 19272 | |
| 19273 | # Is the header present? |
| 19274 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19275 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 19276 | cat >conftest.$ac_ext <<_ACEOF |
| 19277 | /* confdefs.h. */ |
| 19278 | _ACEOF |
| 19279 | cat confdefs.h >>conftest.$ac_ext |
| 19280 | cat >>conftest.$ac_ext <<_ACEOF |
| 19281 | /* end confdefs.h. */ |
| 19282 | #include <$ac_header> |
| 19283 | _ACEOF |
| 19284 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 19285 | case "(($ac_try" in |
| 19286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19287 | *) ac_try_echo=$ac_try;; |
| 19288 | esac |
| 19289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19290 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 19291 | ac_status=$? |
| 19292 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19293 | rm -f conftest.er1 |
| 19294 | cat conftest.err >&5 |
| 19295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19296 | (exit $ac_status); } >/dev/null; then |
| 19297 | if test -s conftest.err; then |
| 19298 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 19299 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 19300 | else |
| 19301 | ac_cpp_err= |
| 19302 | fi |
| 19303 | else |
| 19304 | ac_cpp_err=yes |
| 19305 | fi |
| 19306 | if test -z "$ac_cpp_err"; then |
| 19307 | ac_header_preproc=yes |
| 19308 | else |
| 19309 | echo "$as_me: failed program was:" >&5 |
| 19310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19311 | |
| 19312 | ac_header_preproc=no |
| 19313 | fi |
| 19314 | |
| 19315 | rm -f conftest.err conftest.$ac_ext |
| 19316 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19317 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 19318 | |
| 19319 | # So? What about this header? |
| 19320 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 19321 | yes:no: ) |
| 19322 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19323 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 19324 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 19325 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 19326 | ac_header_preproc=yes |
| 19327 | ;; |
| 19328 | no:yes:* ) |
| 19329 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 19330 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 19331 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 19332 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 19333 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 19334 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 19335 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 19336 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 19337 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 19338 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19339 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 19340 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 19341 | ( cat <<\_ASBOX |
| 19342 | ## ----------------------------------- ## |
| 19343 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 19344 | ## ----------------------------------- ## |
| 19345 | _ASBOX |
| 19346 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 19347 | ;; |
| 19348 | esac |
| 19349 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19350 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19351 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19353 | else |
| 19354 | eval "$as_ac_Header=\$ac_header_preproc" |
| 19355 | fi |
| 19356 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19357 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19358 | echo "${ECHO_T}$ac_res" >&6; } |
| 19359 | |
| 19360 | fi |
| 19361 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19362 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19363 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19364 | _ACEOF |
| 19365 | |
| 19366 | fi |
| 19367 | |
| 19368 | done |
| 19369 | |
| 19370 | |
| 19371 | for ac_func in getpagesize |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19372 | do |
| 19373 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19374 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19375 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19376 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19378 | else |
| 19379 | cat >conftest.$ac_ext <<_ACEOF |
| 19380 | /* confdefs.h. */ |
| 19381 | _ACEOF |
| 19382 | cat confdefs.h >>conftest.$ac_ext |
| 19383 | cat >>conftest.$ac_ext <<_ACEOF |
| 19384 | /* end confdefs.h. */ |
| 19385 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19386 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19387 | #define $ac_func innocuous_$ac_func |
| 19388 | |
| 19389 | /* System header to define __stub macros and hopefully few prototypes, |
| 19390 | which can conflict with char $ac_func (); below. |
| 19391 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19392 | <limits.h> exists even on freestanding compilers. */ |
| 19393 | |
| 19394 | #ifdef __STDC__ |
| 19395 | # include <limits.h> |
| 19396 | #else |
| 19397 | # include <assert.h> |
| 19398 | #endif |
| 19399 | |
| 19400 | #undef $ac_func |
| 19401 | |
| 19402 | /* Override any GCC internal prototype to avoid an error. |
| 19403 | Use char because int might match the return type of a GCC |
| 19404 | builtin and then its argument prototype would still apply. */ |
| 19405 | #ifdef __cplusplus |
| 19406 | extern "C" |
| 19407 | #endif |
| 19408 | char $ac_func (); |
| 19409 | /* The GNU C library defines this for functions which it implements |
| 19410 | to always fail with ENOSYS. Some functions are actually named |
| 19411 | something starting with __ and the normal name is an alias. */ |
| 19412 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 19413 | choke me |
| 19414 | #endif |
| 19415 | |
| 19416 | int |
| 19417 | main () |
| 19418 | { |
| 19419 | return $ac_func (); |
| 19420 | ; |
| 19421 | return 0; |
| 19422 | } |
| 19423 | _ACEOF |
| 19424 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19425 | if { (ac_try="$ac_link" |
| 19426 | case "(($ac_try" in |
| 19427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19428 | *) ac_try_echo=$ac_try;; |
| 19429 | esac |
| 19430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19431 | (eval "$ac_link") 2>conftest.er1 |
| 19432 | ac_status=$? |
| 19433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19434 | rm -f conftest.er1 |
| 19435 | cat conftest.err >&5 |
| 19436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19437 | (exit $ac_status); } && |
| 19438 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19439 | { (case "(($ac_try" in |
| 19440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19441 | *) ac_try_echo=$ac_try;; |
| 19442 | esac |
| 19443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19444 | (eval "$ac_try") 2>&5 |
| 19445 | ac_status=$? |
| 19446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19447 | (exit $ac_status); }; } && |
| 19448 | { ac_try='test -s conftest$ac_exeext' |
| 19449 | { (case "(($ac_try" in |
| 19450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19451 | *) ac_try_echo=$ac_try;; |
| 19452 | esac |
| 19453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19454 | (eval "$ac_try") 2>&5 |
| 19455 | ac_status=$? |
| 19456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19457 | (exit $ac_status); }; }; then |
| 19458 | eval "$as_ac_var=yes" |
| 19459 | else |
| 19460 | echo "$as_me: failed program was:" >&5 |
| 19461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19462 | |
| 19463 | eval "$as_ac_var=no" |
| 19464 | fi |
| 19465 | |
| 19466 | rm -f core conftest.err conftest.$ac_objext \ |
| 19467 | conftest$ac_exeext conftest.$ac_ext |
| 19468 | fi |
| 19469 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19470 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19471 | echo "${ECHO_T}$ac_res" >&6; } |
| 19472 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19473 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19474 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19475 | _ACEOF |
| 19476 | |
| 19477 | fi |
| 19478 | done |
| 19479 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19480 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 19481 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 19482 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 19483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19484 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19485 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19486 | ac_cv_func_mmap_fixed_mapped=no |
| 19487 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19488 | cat >conftest.$ac_ext <<_ACEOF |
| 19489 | /* confdefs.h. */ |
| 19490 | _ACEOF |
| 19491 | cat confdefs.h >>conftest.$ac_ext |
| 19492 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19493 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19494 | $ac_includes_default |
| 19495 | /* malloc might have been renamed as rpl_malloc. */ |
| 19496 | #undef malloc |
| 19497 | |
| 19498 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 19499 | Here is a matrix of mmap possibilities: |
| 19500 | mmap private not fixed |
| 19501 | mmap private fixed at somewhere currently unmapped |
| 19502 | mmap private fixed at somewhere already mapped |
| 19503 | mmap shared not fixed |
| 19504 | mmap shared fixed at somewhere currently unmapped |
| 19505 | mmap shared fixed at somewhere already mapped |
| 19506 | For private mappings, we should verify that changes cannot be read() |
| 19507 | back from the file, nor mmap's back from the file at a different |
| 19508 | address. (There have been systems where private was not correctly |
| 19509 | implemented like the infamous i386 svr4.0, and systems where the |
| 19510 | VM page cache was not coherent with the file system buffer cache |
| 19511 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 19512 | For shared mappings, we should conversely verify that changes get |
| 19513 | propagated back to all the places they're supposed to be. |
| 19514 | |
| 19515 | Grep wants private fixed already mapped. |
| 19516 | The main things grep needs to know about mmap are: |
| 19517 | * does it exist and is it safe to write into the mmap'd area |
| 19518 | * how to use it (BSD variants) */ |
| 19519 | |
| 19520 | #include <fcntl.h> |
| 19521 | #include <sys/mman.h> |
| 19522 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19523 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19524 | char *malloc (); |
| 19525 | #endif |
| 19526 | |
| 19527 | /* This mess was copied from the GNU getpagesize.h. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19528 | #if !HAVE_GETPAGESIZE |
| 19529 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 19530 | # if !HAVE_SYS_PARAM_H |
| 19531 | # define HAVE_SYS_PARAM_H 1 |
| 19532 | # endif |
| 19533 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19534 | # ifdef _SC_PAGESIZE |
| 19535 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 19536 | # else /* no _SC_PAGESIZE */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19537 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19538 | # include <sys/param.h> |
| 19539 | # ifdef EXEC_PAGESIZE |
| 19540 | # define getpagesize() EXEC_PAGESIZE |
| 19541 | # else /* no EXEC_PAGESIZE */ |
| 19542 | # ifdef NBPG |
| 19543 | # define getpagesize() NBPG * CLSIZE |
| 19544 | # ifndef CLSIZE |
| 19545 | # define CLSIZE 1 |
| 19546 | # endif /* no CLSIZE */ |
| 19547 | # else /* no NBPG */ |
| 19548 | # ifdef NBPC |
| 19549 | # define getpagesize() NBPC |
| 19550 | # else /* no NBPC */ |
| 19551 | # ifdef PAGESIZE |
| 19552 | # define getpagesize() PAGESIZE |
| 19553 | # endif /* PAGESIZE */ |
| 19554 | # endif /* no NBPC */ |
| 19555 | # endif /* no NBPG */ |
| 19556 | # endif /* no EXEC_PAGESIZE */ |
| 19557 | # else /* no HAVE_SYS_PARAM_H */ |
| 19558 | # define getpagesize() 8192 /* punt totally */ |
| 19559 | # endif /* no HAVE_SYS_PARAM_H */ |
| 19560 | # endif /* no _SC_PAGESIZE */ |
| 19561 | |
| 19562 | #endif /* no HAVE_GETPAGESIZE */ |
| 19563 | |
| 19564 | int |
| 19565 | main () |
| 19566 | { |
| 19567 | char *data, *data2, *data3; |
| 19568 | int i, pagesize; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19569 | int fd; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19570 | |
| 19571 | pagesize = getpagesize (); |
| 19572 | |
| 19573 | /* First, make a file with some known garbage in it. */ |
| 19574 | data = (char *) malloc (pagesize); |
| 19575 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19576 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19577 | for (i = 0; i < pagesize; ++i) |
| 19578 | *(data + i) = rand (); |
| 19579 | umask (0); |
| 19580 | fd = creat ("conftest.mmap", 0600); |
| 19581 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19582 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19583 | if (write (fd, data, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19584 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19585 | close (fd); |
| 19586 | |
| 19587 | /* Next, try to mmap the file at a fixed address which already has |
| 19588 | something else allocated at it. If we can, also make sure that |
| 19589 | we see the same garbage. */ |
| 19590 | fd = open ("conftest.mmap", O_RDWR); |
| 19591 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19592 | return 1; |
| 19593 | data2 = (char *) malloc (2 * pagesize); |
| 19594 | if (!data2) |
| 19595 | return 1; |
| 19596 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19597 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19598 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19599 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19600 | for (i = 0; i < pagesize; ++i) |
| 19601 | if (*(data + i) != *(data2 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19602 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19603 | |
| 19604 | /* Finally, make sure that changes to the mapped area do not |
| 19605 | percolate back to the file as seen by read(). (This is a bug on |
| 19606 | some variants of i386 svr4.0.) */ |
| 19607 | for (i = 0; i < pagesize; ++i) |
| 19608 | *(data2 + i) = *(data2 + i) + 1; |
| 19609 | data3 = (char *) malloc (pagesize); |
| 19610 | if (!data3) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19611 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19612 | if (read (fd, data3, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19613 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19614 | for (i = 0; i < pagesize; ++i) |
| 19615 | if (*(data + i) != *(data3 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19616 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19617 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19618 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19619 | } |
| 19620 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19621 | rm -f conftest$ac_exeext |
| 19622 | if { (ac_try="$ac_link" |
| 19623 | case "(($ac_try" in |
| 19624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19625 | *) ac_try_echo=$ac_try;; |
| 19626 | esac |
| 19627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19628 | (eval "$ac_link") 2>&5 |
| 19629 | ac_status=$? |
| 19630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19631 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19632 | { (case "(($ac_try" in |
| 19633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19634 | *) ac_try_echo=$ac_try;; |
| 19635 | esac |
| 19636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19637 | (eval "$ac_try") 2>&5 |
| 19638 | ac_status=$? |
| 19639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19640 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19641 | ac_cv_func_mmap_fixed_mapped=yes |
| 19642 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19643 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19644 | echo "$as_me: failed program was:" >&5 |
| 19645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19646 | |
| 19647 | ( exit $ac_status ) |
| 19648 | ac_cv_func_mmap_fixed_mapped=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19649 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19650 | 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] | 19651 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19652 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19653 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19654 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19655 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 19656 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19657 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 19658 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19659 | cat >>confdefs.h <<\_ACEOF |
| 19660 | #define HAVE_MMAP 1 |
| 19661 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19662 | |
| 19663 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19664 | rm -f conftest.mmap |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19665 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19666 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 19667 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
| 19668 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 19669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19670 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19671 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19672 | ac_cpp='$CPP $CPPFLAGS' |
| 19673 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19674 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19675 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19676 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19677 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 19678 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19679 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19680 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19681 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19682 | /* confdefs.h. */ |
| 19683 | _ACEOF |
| 19684 | cat confdefs.h >>conftest.$ac_ext |
| 19685 | cat >>conftest.$ac_ext <<_ACEOF |
| 19686 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 19687 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19688 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 19689 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19690 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19691 | |
| 19692 | int |
| 19693 | main () |
| 19694 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19695 | |
| 19696 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19697 | fd = creat ("foo",0777); |
| 19698 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 19699 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 19700 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19701 | ; |
| 19702 | return 0; |
| 19703 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19704 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19705 | rm -f conftest$ac_exeext |
| 19706 | if { (ac_try="$ac_link" |
| 19707 | case "(($ac_try" in |
| 19708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19709 | *) ac_try_echo=$ac_try;; |
| 19710 | esac |
| 19711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19712 | (eval "$ac_link") 2>&5 |
| 19713 | ac_status=$? |
| 19714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19715 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19716 | { (case "(($ac_try" in |
| 19717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19718 | *) ac_try_echo=$ac_try;; |
| 19719 | esac |
| 19720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19721 | (eval "$ac_try") 2>&5 |
| 19722 | ac_status=$? |
| 19723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19724 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19725 | ac_cv_func_mmap_file=yes |
| 19726 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19727 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19728 | echo "$as_me: failed program was:" >&5 |
| 19729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19730 | |
| 19731 | ( exit $ac_status ) |
| 19732 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19733 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19734 | 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] | 19735 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19736 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19737 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19738 | ac_ext=c |
| 19739 | ac_cpp='$CPP $CPPFLAGS' |
| 19740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19743 | |
| 19744 | |
| 19745 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19746 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 19747 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19748 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 19749 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19750 | cat >>confdefs.h <<\_ACEOF |
| 19751 | #define HAVE_MMAP_FILE |
| 19752 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19753 | |
| 19754 | MMAP_FILE=yes |
| 19755 | |
| 19756 | fi |
| 19757 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19758 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 19759 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
| 19760 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 19761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19762 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 19763 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19764 | ac_cv_need_dev_zero_for_mmap=yes |
| 19765 | else |
| 19766 | ac_cv_need_dev_zero_for_mmap=no |
| 19767 | fi |
| 19768 | |
| 19769 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19770 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 19771 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19772 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 19773 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19774 | cat >>confdefs.h <<\_ACEOF |
| 19775 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 19776 | _ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19777 | |
| 19778 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19779 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19780 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 19781 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19782 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 19783 | 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] | 19784 | fi |
| 19785 | if test "$ac_cv_func_mmap_file" = "no" |
| 19786 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19787 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 19788 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19789 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 19790 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19791 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19792 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
| 19793 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
| 19794 | cat >conftest.$ac_ext <<_ACEOF |
| 19795 | /* confdefs.h. */ |
| 19796 | _ACEOF |
| 19797 | cat confdefs.h >>conftest.$ac_ext |
| 19798 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19799 | /* end confdefs.h. */ |
| 19800 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19801 | volatile unsigned long val = 1; |
| 19802 | __sync_synchronize(); |
| 19803 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 19804 | __sync_add_and_fetch(&val, 1); |
| 19805 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19806 | return 0; |
| 19807 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19808 | |
| 19809 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19810 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19811 | if { (ac_try="$ac_link" |
| 19812 | case "(($ac_try" in |
| 19813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19814 | *) ac_try_echo=$ac_try;; |
| 19815 | esac |
| 19816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19817 | (eval "$ac_link") 2>conftest.er1 |
| 19818 | ac_status=$? |
| 19819 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19820 | rm -f conftest.er1 |
| 19821 | cat conftest.err >&5 |
| 19822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19823 | (exit $ac_status); } && |
| 19824 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19825 | { (case "(($ac_try" in |
| 19826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19827 | *) ac_try_echo=$ac_try;; |
| 19828 | esac |
| 19829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19830 | (eval "$ac_try") 2>&5 |
| 19831 | ac_status=$? |
| 19832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19833 | (exit $ac_status); }; } && |
| 19834 | { ac_try='test -s conftest$ac_exeext' |
| 19835 | { (case "(($ac_try" in |
| 19836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19837 | *) ac_try_echo=$ac_try;; |
| 19838 | esac |
| 19839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19840 | (eval "$ac_try") 2>&5 |
| 19841 | ac_status=$? |
| 19842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19843 | (exit $ac_status); }; }; then |
| 19844 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19845 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19846 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19847 | cat >>confdefs.h <<\_ACEOF |
| 19848 | #define LLVM_MULTITHREADED 1 |
| 19849 | _ACEOF |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19850 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19851 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19852 | echo "$as_me: failed program was:" >&5 |
| 19853 | sed 's/^/| /' conftest.$ac_ext >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19854 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19855 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19856 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19857 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19858 | cat >>confdefs.h <<\_ACEOF |
| 19859 | #define LLVM_MULTITHREADED 0 |
| 19860 | _ACEOF |
| 19861 | |
| 19862 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 19863 | 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] | 19864 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19865 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19866 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19867 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19868 | |
| 19869 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19870 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19871 | 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] | 19872 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 19873 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 19874 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 19875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19876 | else |
| 19877 | ac_ext=c |
| 19878 | ac_cpp='$CPP $CPPFLAGS' |
| 19879 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19880 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19881 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19882 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19883 | cat >conftest.$ac_ext <<_ACEOF |
| 19884 | /* confdefs.h. */ |
| 19885 | _ACEOF |
| 19886 | cat confdefs.h >>conftest.$ac_ext |
| 19887 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19888 | /* end confdefs.h. */ |
| 19889 | #ifndef __x86_64__ |
| 19890 | error: Not x86-64 even if uname says so! |
| 19891 | #endif |
| 19892 | |
| 19893 | int |
| 19894 | main () |
| 19895 | { |
| 19896 | |
| 19897 | ; |
| 19898 | return 0; |
| 19899 | } |
| 19900 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19901 | rm -f conftest.$ac_objext |
| 19902 | if { (ac_try="$ac_compile" |
| 19903 | case "(($ac_try" in |
| 19904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19905 | *) ac_try_echo=$ac_try;; |
| 19906 | esac |
| 19907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19908 | (eval "$ac_compile") 2>conftest.er1 |
| 19909 | ac_status=$? |
| 19910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19911 | rm -f conftest.er1 |
| 19912 | cat conftest.err >&5 |
| 19913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19914 | (exit $ac_status); } && |
| 19915 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19916 | { (case "(($ac_try" in |
| 19917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19918 | *) ac_try_echo=$ac_try;; |
| 19919 | esac |
| 19920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19921 | (eval "$ac_try") 2>&5 |
| 19922 | ac_status=$? |
| 19923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19924 | (exit $ac_status); }; } && |
| 19925 | { ac_try='test -s conftest.$ac_objext' |
| 19926 | { (case "(($ac_try" in |
| 19927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19928 | *) ac_try_echo=$ac_try;; |
| 19929 | esac |
| 19930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19931 | (eval "$ac_try") 2>&5 |
| 19932 | ac_status=$? |
| 19933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19934 | (exit $ac_status); }; }; then |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19935 | llvm_cv_linux_mixed=no |
| 19936 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19937 | echo "$as_me: failed program was:" >&5 |
| 19938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19939 | |
| 19940 | llvm_cv_linux_mixed=yes |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19941 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19942 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19944 | ac_ext=c |
| 19945 | ac_cpp='$CPP $CPPFLAGS' |
| 19946 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19947 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19948 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19949 | |
| 19950 | |
| 19951 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19952 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 19953 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19954 | |
| 19955 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 19956 | llvm_cv_target_arch="x86" |
| 19957 | ARCH="x86" |
| 19958 | fi |
| 19959 | fi |
| 19960 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19961 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 19962 | for ac_func in __dso_handle |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19963 | do |
| 19964 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19965 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19966 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19967 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19969 | else |
| 19970 | cat >conftest.$ac_ext <<_ACEOF |
| 19971 | /* confdefs.h. */ |
| 19972 | _ACEOF |
| 19973 | cat confdefs.h >>conftest.$ac_ext |
| 19974 | cat >>conftest.$ac_ext <<_ACEOF |
| 19975 | /* end confdefs.h. */ |
| 19976 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19977 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19978 | #define $ac_func innocuous_$ac_func |
| 19979 | |
| 19980 | /* System header to define __stub macros and hopefully few prototypes, |
| 19981 | which can conflict with char $ac_func (); below. |
| 19982 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19983 | <limits.h> exists even on freestanding compilers. */ |
| 19984 | |
| 19985 | #ifdef __STDC__ |
| 19986 | # include <limits.h> |
| 19987 | #else |
| 19988 | # include <assert.h> |
| 19989 | #endif |
| 19990 | |
| 19991 | #undef $ac_func |
| 19992 | |
| 19993 | /* Override any GCC internal prototype to avoid an error. |
| 19994 | Use char because int might match the return type of a GCC |
| 19995 | builtin and then its argument prototype would still apply. */ |
| 19996 | #ifdef __cplusplus |
| 19997 | extern "C" |
| 19998 | #endif |
| 19999 | char $ac_func (); |
| 20000 | /* The GNU C library defines this for functions which it implements |
| 20001 | to always fail with ENOSYS. Some functions are actually named |
| 20002 | something starting with __ and the normal name is an alias. */ |
| 20003 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20004 | choke me |
| 20005 | #endif |
| 20006 | |
| 20007 | int |
| 20008 | main () |
| 20009 | { |
| 20010 | return $ac_func (); |
| 20011 | ; |
| 20012 | return 0; |
| 20013 | } |
| 20014 | _ACEOF |
| 20015 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20016 | if { (ac_try="$ac_link" |
| 20017 | case "(($ac_try" in |
| 20018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20019 | *) ac_try_echo=$ac_try;; |
| 20020 | esac |
| 20021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20022 | (eval "$ac_link") 2>conftest.er1 |
| 20023 | ac_status=$? |
| 20024 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20025 | rm -f conftest.er1 |
| 20026 | cat conftest.err >&5 |
| 20027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20028 | (exit $ac_status); } && |
| 20029 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20030 | { (case "(($ac_try" in |
| 20031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20032 | *) ac_try_echo=$ac_try;; |
| 20033 | esac |
| 20034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20035 | (eval "$ac_try") 2>&5 |
| 20036 | ac_status=$? |
| 20037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20038 | (exit $ac_status); }; } && |
| 20039 | { ac_try='test -s conftest$ac_exeext' |
| 20040 | { (case "(($ac_try" in |
| 20041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20042 | *) ac_try_echo=$ac_try;; |
| 20043 | esac |
| 20044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20045 | (eval "$ac_try") 2>&5 |
| 20046 | ac_status=$? |
| 20047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20048 | (exit $ac_status); }; }; then |
| 20049 | eval "$as_ac_var=yes" |
| 20050 | else |
| 20051 | echo "$as_me: failed program was:" >&5 |
| 20052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20053 | |
| 20054 | eval "$as_ac_var=no" |
| 20055 | fi |
| 20056 | |
| 20057 | rm -f core conftest.err conftest.$ac_objext \ |
| 20058 | conftest$ac_exeext conftest.$ac_ext |
| 20059 | fi |
| 20060 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20061 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20062 | echo "${ECHO_T}$ac_res" >&6; } |
| 20063 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20064 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20065 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20066 | _ACEOF |
| 20067 | |
| 20068 | fi |
| 20069 | done |
| 20070 | |
| 20071 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20072 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 20073 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
| 20074 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 20075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20076 | else |
| 20077 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 20078 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20079 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 20080 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 20081 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20082 | if test $? -eq 0 ; then |
| 20083 | llvm_cv_llvmgcc_sanity="yes" |
| 20084 | fi |
| 20085 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 20086 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20087 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20088 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 20089 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20090 | |
| 20091 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20092 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 20093 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 20094 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20095 | LLVMCC1=$llvmcc1path |
| 20096 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 20097 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20098 | LLVMCC1PLUS=$llvmcc1pluspath |
| 20099 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 20100 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 20101 | LLVMGCCDIR=$llvmgccdir |
| 20102 | |
Tanya Lattner | f85e74c | 2008-10-07 22:21:03 +0000 | [diff] [blame] | 20103 | 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] | 20104 | LLVMGCC_LANGS=$llvmgcclangs |
| 20105 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20106 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 20107 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 20108 | fi |
| 20109 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20110 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 20111 | |
| 20112 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 20113 | SHLIBPATH_VAR=$libltdl_cv_shlibpath_var |
| 20114 | |
| 20115 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20116 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20117 | # information into substitutions that will end up in Makefile.config.in |
| 20118 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 20119 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 20120 | prefix="/usr/local" |
| 20121 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20122 | eval LLVM_PREFIX="${prefix}"; |
| 20123 | eval LLVM_BINDIR="${prefix}/bin"; |
| 20124 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20125 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
Eric Christopher | ec27496 | 2010-03-02 05:17:21 +0000 | [diff] [blame] | 20126 | eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20127 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20128 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 20129 | eval LLVM_INFODIR="${prefix}/info"; |
| 20130 | eval LLVM_MANDIR="${prefix}/man"; |
| 20131 | LLVM_CONFIGTIME=`date` |
| 20132 | |
| 20133 | |
| 20134 | |
| 20135 | |
| 20136 | |
| 20137 | |
| 20138 | |
| 20139 | |
| 20140 | |
| 20141 | |
| 20142 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20143 | # Place the various directores into the config.h file as #defines so that we |
| 20144 | # can know about the installation paths within LLVM. |
| 20145 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20146 | cat >>confdefs.h <<_ACEOF |
| 20147 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 20148 | _ACEOF |
| 20149 | |
| 20150 | |
| 20151 | cat >>confdefs.h <<_ACEOF |
| 20152 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 20153 | _ACEOF |
| 20154 | |
| 20155 | |
| 20156 | cat >>confdefs.h <<_ACEOF |
| 20157 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 20158 | _ACEOF |
| 20159 | |
| 20160 | |
| 20161 | cat >>confdefs.h <<_ACEOF |
| 20162 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 20163 | _ACEOF |
| 20164 | |
| 20165 | |
| 20166 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 20167 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20168 | _ACEOF |
| 20169 | |
| 20170 | |
| 20171 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 20172 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20173 | _ACEOF |
| 20174 | |
| 20175 | |
| 20176 | cat >>confdefs.h <<_ACEOF |
| 20177 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 20178 | _ACEOF |
| 20179 | |
| 20180 | |
| 20181 | cat >>confdefs.h <<_ACEOF |
| 20182 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 20183 | _ACEOF |
| 20184 | |
| 20185 | |
| 20186 | cat >>confdefs.h <<_ACEOF |
| 20187 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 20188 | _ACEOF |
| 20189 | |
| 20190 | |
| 20191 | cat >>confdefs.h <<_ACEOF |
| 20192 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 20193 | _ACEOF |
| 20194 | |
| 20195 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 20196 | cat >>confdefs.h <<_ACEOF |
| 20197 | #define LLVM_HOSTTRIPLE "$host" |
| 20198 | _ACEOF |
| 20199 | |
| 20200 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 20201 | # Determine which bindings to build. |
| 20202 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 20203 | BINDINGS_TO_BUILD="" |
| 20204 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 20205 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 20206 | fi |
| 20207 | fi |
| 20208 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 20209 | |
| 20210 | |
| 20211 | # This isn't really configurey, but it avoids having to repeat the list in |
| 20212 | # other files. |
| 20213 | ALL_BINDINGS=ocaml |
| 20214 | |
| 20215 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20216 | # Do any work necessary to ensure that bindings have what they need. |
| 20217 | binding_prereqs_failed=0 |
| 20218 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 20219 | case "$a_binding" in |
| 20220 | ocaml) |
| 20221 | if test "x$OCAMLC" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20222 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 20223 | 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] | 20224 | binding_prereqs_failed=1 |
| 20225 | fi |
| 20226 | if test "x$OCAMLDEP" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20227 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 20228 | 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] | 20229 | binding_prereqs_failed=1 |
| 20230 | fi |
| 20231 | if test "x$OCAMLOPT" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20232 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 20233 | 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] | 20234 | fi |
| 20235 | if test "x$with_ocaml_libdir" != xauto ; then |
| 20236 | OCAML_LIBDIR=$with_ocaml_libdir |
| 20237 | |
| 20238 | else |
| 20239 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 20240 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 20241 | then |
| 20242 | # ocaml stdlib is beneath our prefix; use stdlib |
| 20243 | OCAML_LIBDIR=$ocaml_stdlib |
| 20244 | |
| 20245 | else |
| 20246 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 20247 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 20248 | |
| 20249 | fi |
| 20250 | fi |
| 20251 | ;; |
| 20252 | esac |
| 20253 | done |
| 20254 | if test "$binding_prereqs_failed" = 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20255 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 20256 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 20257 | { (exit 1); exit 1; }; } |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20258 | fi |
| 20259 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20260 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 20261 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 20262 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 20263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20264 | else |
| 20265 | ac_ext=cpp |
| 20266 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20267 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20268 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20269 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20270 | |
| 20271 | oldcxxflags="$CXXFLAGS" |
| 20272 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20273 | cat >conftest.$ac_ext <<_ACEOF |
| 20274 | /* confdefs.h. */ |
| 20275 | _ACEOF |
| 20276 | cat confdefs.h >>conftest.$ac_ext |
| 20277 | cat >>conftest.$ac_ext <<_ACEOF |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20278 | /* end confdefs.h. */ |
| 20279 | |
| 20280 | int |
| 20281 | main () |
| 20282 | { |
| 20283 | |
| 20284 | ; |
| 20285 | return 0; |
| 20286 | } |
| 20287 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20288 | rm -f conftest.$ac_objext |
| 20289 | if { (ac_try="$ac_compile" |
| 20290 | case "(($ac_try" in |
| 20291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20292 | *) ac_try_echo=$ac_try;; |
| 20293 | esac |
| 20294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20295 | (eval "$ac_compile") 2>conftest.er1 |
| 20296 | ac_status=$? |
| 20297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20298 | rm -f conftest.er1 |
| 20299 | cat conftest.err >&5 |
| 20300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20301 | (exit $ac_status); } && |
| 20302 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 20303 | { (case "(($ac_try" in |
| 20304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20305 | *) ac_try_echo=$ac_try;; |
| 20306 | esac |
| 20307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20308 | (eval "$ac_try") 2>&5 |
| 20309 | ac_status=$? |
| 20310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20311 | (exit $ac_status); }; } && |
| 20312 | { ac_try='test -s conftest.$ac_objext' |
| 20313 | { (case "(($ac_try" in |
| 20314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20315 | *) ac_try_echo=$ac_try;; |
| 20316 | esac |
| 20317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20318 | (eval "$ac_try") 2>&5 |
| 20319 | ac_status=$? |
| 20320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20321 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20322 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 20323 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20324 | echo "$as_me: failed program was:" >&5 |
| 20325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20326 | |
| 20327 | llvm_cv_cxx_visibility_inlines_hidden=no |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20328 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20329 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20331 | CXXFLAGS="$oldcxxflags" |
| 20332 | ac_ext=c |
| 20333 | ac_cpp='$CPP $CPPFLAGS' |
| 20334 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20335 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20336 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20337 | |
| 20338 | |
| 20339 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20340 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 20341 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20342 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 20343 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 20344 | |
| 20345 | else |
| 20346 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 20347 | |
| 20348 | fi |
| 20349 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20350 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 20351 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 20352 | RPATH="-Wl,-R" |
| 20353 | else |
| 20354 | RPATH="-Wl,-rpath" |
| 20355 | fi |
| 20356 | |
| 20357 | |
| 20358 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 20359 | RDYNAMIC="-Wl,-export-dynamic" |
| 20360 | else |
| 20361 | RDYNAMIC="" |
| 20362 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 20363 | |
| 20364 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20365 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20366 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20367 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 20368 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 20369 | |
| 20370 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 20371 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 20372 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 20373 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 20374 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" |
| 20375 | |
Chandler Carruth | 8b67f77 | 2009-10-26 01:35:46 +0000 | [diff] [blame] | 20376 | ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20377 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20378 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20379 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20380 | |
| 20381 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 20382 | ac_config_files="$ac_config_files llvm.spec" |
| 20383 | |
| 20384 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 20385 | ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td" |
| 20386 | |
| 20387 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20388 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 20389 | |
| 20390 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20391 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 20392 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20393 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20394 | |
| 20395 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20396 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20397 | |
| 20398 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20399 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20400 | |
| 20401 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20402 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20403 | |
| 20404 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 20405 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 20406 | |
| 20407 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20408 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20409 | |
| 20410 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20411 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20412 | |
| 20413 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 20414 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 20415 | |
| 20416 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20417 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20418 | |
| 20419 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20420 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20421 | |
| 20422 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20423 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20424 | |
| 20425 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 20426 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 20427 | |
| 20428 | |
| 20429 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 20430 | |
| 20431 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20432 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20433 | cat >confcache <<\_ACEOF |
| 20434 | # This file is a shell script that caches the results of configure |
| 20435 | # tests run on this system so they can be shared between configure |
| 20436 | # scripts and configure runs, see configure's option --config-cache. |
| 20437 | # It is not useful on other systems. If it contains results you don't |
| 20438 | # want to keep, you may remove or edit it. |
| 20439 | # |
| 20440 | # config.status only pays attention to the cache file if you give it |
| 20441 | # the --recheck option to rerun configure. |
| 20442 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20443 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20444 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20445 | # following values. |
| 20446 | |
| 20447 | _ACEOF |
| 20448 | |
| 20449 | # The following way of writing the cache mishandles newlines in values, |
| 20450 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20451 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20452 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20453 | # 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] | 20454 | ( |
| 20455 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 20456 | eval ac_val=\$$ac_var |
| 20457 | case $ac_val in #( |
| 20458 | *${as_nl}*) |
| 20459 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20460 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 20461 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20462 | esac |
| 20463 | case $ac_var in #( |
| 20464 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20465 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20466 | esac ;; |
| 20467 | esac |
| 20468 | done |
| 20469 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20470 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20471 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 20472 | *${as_nl}ac_space=\ *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20473 | # `set' does not quote correctly, so add quotes (double-quote |
| 20474 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20475 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20476 | "s/'/'\\\\''/g; |
| 20477 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20478 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20479 | *) |
| 20480 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20481 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20482 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20483 | esac | |
| 20484 | sort |
| 20485 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20486 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20487 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20488 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20489 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20490 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 20491 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20492 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20493 | :end' >>confcache |
| 20494 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 20495 | if test -w "$cache_file"; then |
| 20496 | test "x$cache_file" != "x/dev/null" && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20497 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 20498 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20499 | cat confcache >$cache_file |
| 20500 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20501 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 20502 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20503 | fi |
| 20504 | fi |
| 20505 | rm -f confcache |
| 20506 | |
| 20507 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20508 | # Let make expand exec_prefix. |
| 20509 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 20510 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20511 | DEFS=-DHAVE_CONFIG_H |
| 20512 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20513 | ac_libobjs= |
| 20514 | ac_ltlibobjs= |
| 20515 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20516 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20517 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20518 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20519 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 20520 | # will be set to the directory where LIBOBJS objects are built. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20521 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 20522 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20523 | done |
| 20524 | LIBOBJS=$ac_libobjs |
| 20525 | |
| 20526 | LTLIBOBJS=$ac_ltlibobjs |
| 20527 | |
| 20528 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20529 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20530 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 20531 | Usually this means the macro was only invoked conditionally." >&5 |
| 20532 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 20533 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20534 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20535 | fi |
| 20536 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20537 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 20538 | Usually this means the macro was only invoked conditionally." >&5 |
| 20539 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 20540 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20541 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20542 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20543 | |
| 20544 | : ${CONFIG_STATUS=./config.status} |
| 20545 | ac_clean_files_save=$ac_clean_files |
| 20546 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20547 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 20548 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20549 | cat >$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20550 | #! $SHELL |
| 20551 | # Generated by $as_me. |
| 20552 | # Run this file to recreate the current configuration. |
| 20553 | # Compiler output produced by configure, useful for debugging |
| 20554 | # configure, is in config.log if it exists. |
| 20555 | |
| 20556 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20557 | ac_cs_recheck=false |
| 20558 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20559 | SHELL=\${CONFIG_SHELL-$SHELL} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20560 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20561 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20562 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20563 | ## --------------------- ## |
| 20564 | ## M4sh Initialization. ## |
| 20565 | ## --------------------- ## |
| 20566 | |
| 20567 | # Be Bourne compatible |
| 20568 | 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] | 20569 | emulate sh |
| 20570 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20571 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20572 | # is contrary to our usage. Disable this feature. |
| 20573 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20574 | setopt NO_GLOB_SUBST |
| 20575 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20576 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20577 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20578 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 20579 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20580 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20581 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20582 | # PATH needs CR |
| 20583 | # Avoid depending upon Character Ranges. |
| 20584 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20585 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20586 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20587 | as_cr_digits='0123456789' |
| 20588 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20589 | |
| 20590 | # The user is always right. |
| 20591 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20592 | echo "#! /bin/sh" >conf$$.sh |
| 20593 | echo "exit 0" >>conf$$.sh |
| 20594 | chmod +x conf$$.sh |
| 20595 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 20596 | PATH_SEPARATOR=';' |
| 20597 | else |
| 20598 | PATH_SEPARATOR=: |
| 20599 | fi |
| 20600 | rm -f conf$$.sh |
| 20601 | fi |
| 20602 | |
| 20603 | # Support unset when possible. |
| 20604 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 20605 | as_unset=unset |
| 20606 | else |
| 20607 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20608 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20609 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20610 | |
| 20611 | # IFS |
| 20612 | # We need space, tab and new line, in precisely that order. Quoting is |
| 20613 | # there to prevent editors from complaining about space-tab. |
| 20614 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 20615 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20616 | as_nl=' |
| 20617 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20618 | IFS=" "" $as_nl" |
| 20619 | |
| 20620 | # 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] | 20621 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20622 | *[\\/]* ) as_myself=$0 ;; |
| 20623 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20624 | for as_dir in $PATH |
| 20625 | do |
| 20626 | IFS=$as_save_IFS |
| 20627 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20628 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20629 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20630 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20631 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20632 | ;; |
| 20633 | esac |
| 20634 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20635 | # in which case we are not to be found in the path. |
| 20636 | if test "x$as_myself" = x; then |
| 20637 | as_myself=$0 |
| 20638 | fi |
| 20639 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20640 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 20641 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20642 | fi |
| 20643 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20644 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20645 | for as_var in ENV MAIL MAILPATH |
| 20646 | 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] | 20647 | done |
| 20648 | PS1='$ ' |
| 20649 | PS2='> ' |
| 20650 | PS4='+ ' |
| 20651 | |
| 20652 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20653 | for as_var in \ |
| 20654 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20655 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20656 | LC_TELEPHONE LC_TIME |
| 20657 | do |
| 20658 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 20659 | eval $as_var=C; export $as_var |
| 20660 | else |
| 20661 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20662 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20663 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20664 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20665 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20666 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20667 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20668 | as_expr=expr |
| 20669 | else |
| 20670 | as_expr=false |
| 20671 | fi |
| 20672 | |
| 20673 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 20674 | as_basename=basename |
| 20675 | else |
| 20676 | as_basename=false |
| 20677 | fi |
| 20678 | |
| 20679 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20680 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20681 | as_me=`$as_basename -- "$0" || |
| 20682 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20683 | X"$0" : 'X\(//\)$' \| \ |
| 20684 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20685 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20686 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 20687 | s//\1/ |
| 20688 | q |
| 20689 | } |
| 20690 | /^X\/\(\/\/\)$/{ |
| 20691 | s//\1/ |
| 20692 | q |
| 20693 | } |
| 20694 | /^X\/\(\/\).*/{ |
| 20695 | s//\1/ |
| 20696 | q |
| 20697 | } |
| 20698 | s/.*/./; q'` |
| 20699 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20700 | # CDPATH. |
| 20701 | $as_unset CDPATH |
| 20702 | |
| 20703 | |
| 20704 | |
| 20705 | as_lineno_1=$LINENO |
| 20706 | as_lineno_2=$LINENO |
| 20707 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20708 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 20709 | |
| 20710 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20711 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 20712 | # line-number line after each line using $LINENO; the second 'sed' |
| 20713 | # does the real work. The second script uses 'N' to pair each |
| 20714 | # line-number line with the line containing $LINENO, and appends |
| 20715 | # trailing '-' during substitution so that $LINENO is not a special |
| 20716 | # case at line end. |
| 20717 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 20718 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 20719 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 20720 | sed -n ' |
| 20721 | p |
| 20722 | /[$]LINENO/= |
| 20723 | ' <$as_myself | |
| 20724 | sed ' |
| 20725 | s/[$]LINENO.*/&-/ |
| 20726 | t lineno |
| 20727 | b |
| 20728 | :lineno |
| 20729 | N |
| 20730 | :loop |
| 20731 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 20732 | t loop |
| 20733 | s/-\n.*// |
| 20734 | ' >$as_me.lineno && |
| 20735 | chmod +x "$as_me.lineno" || |
| 20736 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 20737 | { (exit 1); exit 1; }; } |
| 20738 | |
| 20739 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20740 | # (the dirname of $[0] is not the place where we might find the |
| 20741 | # original and so on. Autoconf is especially sensitive to this). |
| 20742 | . "./$as_me.lineno" |
| 20743 | # Exit status is that of the last command. |
| 20744 | exit |
| 20745 | } |
| 20746 | |
| 20747 | |
| 20748 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 20749 | as_dirname=dirname |
| 20750 | else |
| 20751 | as_dirname=false |
| 20752 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20753 | |
| 20754 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20755 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20756 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20757 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20758 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20759 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20760 | esac;; |
| 20761 | *) |
| 20762 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20763 | esac |
| 20764 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20765 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20766 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20767 | as_expr=expr |
| 20768 | else |
| 20769 | as_expr=false |
| 20770 | fi |
| 20771 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20772 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20773 | if test -d conf$$.dir; then |
| 20774 | rm -f conf$$.dir/conf$$.file |
| 20775 | else |
| 20776 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20777 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20778 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20779 | echo >conf$$.file |
| 20780 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20781 | as_ln_s='ln -s' |
| 20782 | # ... but there are two gotchas: |
| 20783 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 20784 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 20785 | # In both cases, we have to default to `cp -p'. |
| 20786 | 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] | 20787 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20788 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20789 | as_ln_s=ln |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20790 | else |
| 20791 | as_ln_s='cp -p' |
| 20792 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20793 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 20794 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20795 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20796 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20797 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20798 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20799 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20800 | as_mkdir_p=false |
| 20801 | fi |
| 20802 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20803 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 20804 | # systems may use methods other than mode bits to determine executability. |
| 20805 | cat >conf$$.file <<_ASEOF |
| 20806 | #! /bin/sh |
| 20807 | exit 0 |
| 20808 | _ASEOF |
| 20809 | chmod +x conf$$.file |
| 20810 | if test -x conf$$.file >/dev/null 2>&1; then |
| 20811 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20812 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20813 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20814 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20815 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20816 | |
| 20817 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20818 | 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] | 20819 | |
| 20820 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20821 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20822 | |
| 20823 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20824 | exec 6>&1 |
| 20825 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20826 | # 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] | 20827 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20828 | # values after options handling. |
| 20829 | ac_log=" |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 20830 | This file was extended by llvm $as_me 2.8svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20831 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20832 | |
| 20833 | CONFIG_FILES = $CONFIG_FILES |
| 20834 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20835 | CONFIG_LINKS = $CONFIG_LINKS |
| 20836 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20837 | $ $0 $@ |
| 20838 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20839 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 20840 | " |
| 20841 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20842 | _ACEOF |
| 20843 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20844 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20845 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20846 | config_files="$ac_config_files" |
| 20847 | config_headers="$ac_config_headers" |
| 20848 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20849 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20850 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20851 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20852 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20853 | ac_cs_usage="\ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20854 | \`$as_me' instantiates files from templates according to the |
| 20855 | current configuration. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20856 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20857 | Usage: $0 [OPTIONS] [FILE]... |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20858 | |
| 20859 | -h, --help print this help, then exit |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20860 | -V, --version print version number, then exit |
| 20861 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20862 | -d, --debug don't remove temporary files |
| 20863 | --recheck update $as_me by reconfiguring in the same conditions |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20864 | --file=FILE[:TEMPLATE] |
| 20865 | instantiate the configuration file FILE |
| 20866 | --header=FILE[:TEMPLATE] |
| 20867 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20868 | |
| 20869 | Configuration files: |
| 20870 | $config_files |
| 20871 | |
| 20872 | Configuration headers: |
| 20873 | $config_headers |
| 20874 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20875 | Configuration commands: |
| 20876 | $config_commands |
| 20877 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20878 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20879 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20880 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20881 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20882 | ac_cs_version="\\ |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 20883 | llvm config.status 2.8svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20884 | configured by $0, generated by GNU Autoconf 2.60, |
| 20885 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20886 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20887 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20888 | This config.status script is free software; the Free Software Foundation |
| 20889 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20890 | |
| 20891 | ac_pwd='$ac_pwd' |
| 20892 | srcdir='$srcdir' |
| 20893 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20894 | _ACEOF |
| 20895 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20896 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20897 | # If no file are specified by the user, then we need to provide default |
| 20898 | # 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] | 20899 | ac_need_defaults=: |
| 20900 | while test $# != 0 |
| 20901 | do |
| 20902 | case $1 in |
| 20903 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20904 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 20905 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20906 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20907 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20908 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20909 | ac_option=$1 |
| 20910 | ac_optarg=$2 |
| 20911 | ac_shift=shift |
| 20912 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20913 | esac |
| 20914 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20915 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20916 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20917 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 20918 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20919 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20920 | echo "$ac_cs_version"; exit ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20921 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20922 | debug=: ;; |
| 20923 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20924 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20925 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20926 | ac_need_defaults=false;; |
| 20927 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20928 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20929 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20930 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20931 | --he | --h) |
| 20932 | # Conflict between --help and --header |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20933 | { echo "$as_me: error: ambiguous option: $1 |
| 20934 | Try \`$0 --help' for more information." >&2 |
| 20935 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20936 | --help | --hel | -h ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20937 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20938 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 20939 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 20940 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20941 | |
| 20942 | # This is an error. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20943 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 20944 | Try \`$0 --help' for more information." >&2 |
| 20945 | { (exit 1); exit 1; }; } ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20946 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20947 | *) ac_config_targets="$ac_config_targets $1" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20948 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20949 | |
| 20950 | esac |
| 20951 | shift |
| 20952 | done |
| 20953 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20954 | ac_configure_extra_args= |
| 20955 | |
| 20956 | if $ac_cs_silent; then |
| 20957 | exec 6>/dev/null |
| 20958 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20959 | fi |
| 20960 | |
| 20961 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20962 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20963 | if \$ac_cs_recheck; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20964 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 20965 | CONFIG_SHELL=$SHELL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20966 | export CONFIG_SHELL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20967 | 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] | 20968 | fi |
| 20969 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20970 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20971 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20972 | exec 5>>config.log |
| 20973 | { |
| 20974 | echo |
| 20975 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20976 | ## Running $as_me. ## |
| 20977 | _ASBOX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20978 | echo "$ac_log" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20979 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20980 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20981 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20982 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20983 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20984 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20985 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 20986 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20987 | |
| 20988 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20989 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20990 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20991 | |
| 20992 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20993 | for ac_config_target in $ac_config_targets |
| 20994 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20995 | case $ac_config_target in |
| 20996 | "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] | 20997 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 20998 | "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] | 20999 | "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] | 21000 | "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] | 21001 | "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] | 21002 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21003 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 21004 | "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] | 21005 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 21006 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 21007 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 21008 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 21009 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 21010 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21011 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21012 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 21013 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21014 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21015 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 21016 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 21017 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21018 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 21019 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21020 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21021 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 21022 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 21023 | { (exit 1); exit 1; }; };; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21024 | esac |
| 21025 | done |
| 21026 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21027 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21028 | # If the user did not use the arguments to specify the items to instantiate, |
| 21029 | # then the envvar interface is used. Set only those that are not. |
| 21030 | # We use the long form for the default assignment because of an extremely |
| 21031 | # bizarre bug on SunOS 4.1.3. |
| 21032 | if $ac_need_defaults; then |
| 21033 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 21034 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21035 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21036 | fi |
| 21037 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21038 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21039 | # 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] | 21040 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21041 | # Hook for its removal unless debugging. |
| 21042 | # Note that there is a small window in which the directory will not be cleaned: |
| 21043 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21044 | $debug || |
| 21045 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21046 | tmp= |
| 21047 | trap 'exit_status=$? |
| 21048 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 21049 | ' 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21050 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21051 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21052 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21053 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21054 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21055 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21056 | test -n "$tmp" && test -d "$tmp" |
| 21057 | } || |
| 21058 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21059 | tmp=./conf$$-$RANDOM |
| 21060 | (umask 077 && mkdir "$tmp") |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21061 | } || |
| 21062 | { |
| 21063 | echo "$me: cannot create a temporary directory in ." >&2 |
| 21064 | { (exit 1); exit 1; } |
| 21065 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21066 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21067 | # |
| 21068 | # Set up the sed scripts for CONFIG_FILES section. |
| 21069 | # |
| 21070 | |
| 21071 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 21072 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21073 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21074 | |
| 21075 | _ACEOF |
| 21076 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21077 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21078 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21079 | ac_delim='%!_!# ' |
| 21080 | for ac_last_try in false false false false false :; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21081 | cat >conf$$subs.sed <<_ACEOF |
| 21082 | SHELL!$SHELL$ac_delim |
| 21083 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 21084 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 21085 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 21086 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 21087 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 21088 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 21089 | exec_prefix!$exec_prefix$ac_delim |
| 21090 | prefix!$prefix$ac_delim |
| 21091 | program_transform_name!$program_transform_name$ac_delim |
| 21092 | bindir!$bindir$ac_delim |
| 21093 | sbindir!$sbindir$ac_delim |
| 21094 | libexecdir!$libexecdir$ac_delim |
| 21095 | datarootdir!$datarootdir$ac_delim |
| 21096 | datadir!$datadir$ac_delim |
| 21097 | sysconfdir!$sysconfdir$ac_delim |
| 21098 | sharedstatedir!$sharedstatedir$ac_delim |
| 21099 | localstatedir!$localstatedir$ac_delim |
| 21100 | includedir!$includedir$ac_delim |
| 21101 | oldincludedir!$oldincludedir$ac_delim |
| 21102 | docdir!$docdir$ac_delim |
| 21103 | infodir!$infodir$ac_delim |
| 21104 | htmldir!$htmldir$ac_delim |
| 21105 | dvidir!$dvidir$ac_delim |
| 21106 | pdfdir!$pdfdir$ac_delim |
| 21107 | psdir!$psdir$ac_delim |
| 21108 | libdir!$libdir$ac_delim |
| 21109 | localedir!$localedir$ac_delim |
| 21110 | mandir!$mandir$ac_delim |
| 21111 | DEFS!$DEFS$ac_delim |
| 21112 | ECHO_C!$ECHO_C$ac_delim |
| 21113 | ECHO_N!$ECHO_N$ac_delim |
| 21114 | ECHO_T!$ECHO_T$ac_delim |
| 21115 | LIBS!$LIBS$ac_delim |
| 21116 | build_alias!$build_alias$ac_delim |
| 21117 | host_alias!$host_alias$ac_delim |
| 21118 | target_alias!$target_alias$ac_delim |
| 21119 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 21120 | subdirs!$subdirs$ac_delim |
| 21121 | build!$build$ac_delim |
| 21122 | build_cpu!$build_cpu$ac_delim |
| 21123 | build_vendor!$build_vendor$ac_delim |
| 21124 | build_os!$build_os$ac_delim |
| 21125 | host!$host$ac_delim |
| 21126 | host_cpu!$host_cpu$ac_delim |
| 21127 | host_vendor!$host_vendor$ac_delim |
| 21128 | host_os!$host_os$ac_delim |
| 21129 | target!$target$ac_delim |
| 21130 | target_cpu!$target_cpu$ac_delim |
| 21131 | target_vendor!$target_vendor$ac_delim |
| 21132 | target_os!$target_os$ac_delim |
| 21133 | OS!$OS$ac_delim |
| 21134 | HOST_OS!$HOST_OS$ac_delim |
| 21135 | TARGET_OS!$TARGET_OS$ac_delim |
| 21136 | LINKALL!$LINKALL$ac_delim |
| 21137 | NOLINKALL!$NOLINKALL$ac_delim |
| 21138 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 21139 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 21140 | ARCH!$ARCH$ac_delim |
| 21141 | ENDIAN!$ENDIAN$ac_delim |
| 21142 | CC!$CC$ac_delim |
| 21143 | CFLAGS!$CFLAGS$ac_delim |
| 21144 | LDFLAGS!$LDFLAGS$ac_delim |
| 21145 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 21146 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 21147 | EXEEXT!$EXEEXT$ac_delim |
| 21148 | OBJEXT!$OBJEXT$ac_delim |
| 21149 | CPP!$CPP$ac_delim |
| 21150 | GREP!$GREP$ac_delim |
| 21151 | EGREP!$EGREP$ac_delim |
| 21152 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 21153 | BUILD_CC!$BUILD_CC$ac_delim |
| 21154 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 21155 | BUILD_CXX!$BUILD_CXX$ac_delim |
| 21156 | CVSBUILD!$CVSBUILD$ac_delim |
| 21157 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 21158 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
| 21159 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
| 21160 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 21161 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
| 21162 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 21163 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
| 21164 | JIT!$JIT$ac_delim |
| 21165 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 21166 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 21167 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
| 21168 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21169 | ENABLE_SHARED!$ENABLE_SHARED$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21170 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 21171 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 21172 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
| 21173 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
| 21174 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim |
| 21175 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21176 | CLANGPATH!$CLANGPATH$ac_delim |
| 21177 | CLANGXXPATH!$CLANGXXPATH$ac_delim |
| 21178 | ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21179 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21180 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21181 | 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] | 21182 | break |
| 21183 | elif $ac_last_try; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21184 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21185 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21186 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21187 | else |
| 21188 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21189 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21190 | done |
| 21191 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21192 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21193 | if test -n "$ac_eof"; then |
| 21194 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21195 | ac_eof=`expr $ac_eof + 1` |
| 21196 | fi |
| 21197 | |
| 21198 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21199 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 21200 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21201 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21202 | sed ' |
| 21203 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21204 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21205 | :n |
| 21206 | t n |
| 21207 | s/'"$ac_delim"'$/,g/; t |
| 21208 | s/$/\\/; p |
| 21209 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21210 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21211 | rm -f conf$$subs.sed |
| 21212 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21213 | CEOF$ac_eof |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21214 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21215 | |
| 21216 | |
| 21217 | ac_delim='%!_!# ' |
| 21218 | for ac_last_try in false false false false false :; do |
| 21219 | cat >conf$$subs.sed <<_ACEOF |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21220 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21221 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 21222 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
| 21223 | ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21224 | ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim |
| 21225 | CXX!$CXX$ac_delim |
| 21226 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 21227 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 21228 | NM!$NM$ac_delim |
| 21229 | ifGNUmake!$ifGNUmake$ac_delim |
| 21230 | LN_S!$LN_S$ac_delim |
| 21231 | CMP!$CMP$ac_delim |
| 21232 | CP!$CP$ac_delim |
| 21233 | DATE!$DATE$ac_delim |
| 21234 | FIND!$FIND$ac_delim |
| 21235 | MKDIR!$MKDIR$ac_delim |
| 21236 | MV!$MV$ac_delim |
| 21237 | RANLIB!$RANLIB$ac_delim |
| 21238 | AR!$AR$ac_delim |
| 21239 | RM!$RM$ac_delim |
| 21240 | SED!$SED$ac_delim |
| 21241 | TAR!$TAR$ac_delim |
| 21242 | BINPWD!$BINPWD$ac_delim |
| 21243 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 21244 | DOT!$DOT$ac_delim |
| 21245 | FDP!$FDP$ac_delim |
| 21246 | NEATO!$NEATO$ac_delim |
| 21247 | TWOPI!$TWOPI$ac_delim |
| 21248 | CIRCO!$CIRCO$ac_delim |
| 21249 | GV!$GV$ac_delim |
| 21250 | DOTTY!$DOTTY$ac_delim |
| 21251 | PERL!$PERL$ac_delim |
| 21252 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 21253 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 21254 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 21255 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 21256 | BZIP2!$BZIP2$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame^] | 21257 | CAT!$CAT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21258 | DOXYGEN!$DOXYGEN$ac_delim |
| 21259 | GROFF!$GROFF$ac_delim |
| 21260 | GZIP!$GZIP$ac_delim |
| 21261 | POD2HTML!$POD2HTML$ac_delim |
| 21262 | POD2MAN!$POD2MAN$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame^] | 21263 | PDFROFF!$PDFROFF$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21264 | RUNTEST!$RUNTEST$ac_delim |
| 21265 | TCLSH!$TCLSH$ac_delim |
| 21266 | ZIP!$ZIP$ac_delim |
| 21267 | OCAMLC!$OCAMLC$ac_delim |
| 21268 | OCAMLOPT!$OCAMLOPT$ac_delim |
| 21269 | OCAMLDEP!$OCAMLDEP$ac_delim |
| 21270 | OCAMLDOC!$OCAMLDOC$ac_delim |
| 21271 | GAS!$GAS$ac_delim |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 21272 | HAVE_LINK_RETAIN_SYMBOLS_FILE!$HAVE_LINK_RETAIN_SYMBOLS_FILE$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21273 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 21274 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 21275 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 21276 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 21277 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 21278 | LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim |
| 21279 | LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim |
| 21280 | LLVMGCC!$LLVMGCC$ac_delim |
| 21281 | LLVMGXX!$LLVMGXX$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21282 | LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21283 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 21284 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
| 21285 | USE_UDIS86!$USE_UDIS86$ac_delim |
| 21286 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
| 21287 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
| 21288 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
| 21289 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 21290 | LLVMCC1!$LLVMCC1$ac_delim |
| 21291 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 21292 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21293 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
| 21294 | SHLIBEXT!$SHLIBEXT$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21295 | SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21296 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 21297 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 21298 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 21299 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 21300 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 21301 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 21302 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 21303 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 21304 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 21305 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 21306 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 21307 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
| 21308 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
| 21309 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
| 21310 | RPATH!$RPATH$ac_delim |
| 21311 | RDYNAMIC!$RDYNAMIC$ac_delim |
| 21312 | LIBOBJS!$LIBOBJS$ac_delim |
| 21313 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21314 | _ACEOF |
| 21315 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame^] | 21316 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21317 | break |
| 21318 | elif $ac_last_try; then |
| 21319 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21320 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21321 | { (exit 1); exit 1; }; } |
| 21322 | else |
| 21323 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 21324 | fi |
| 21325 | done |
| 21326 | |
| 21327 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21328 | if test -n "$ac_eof"; then |
| 21329 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21330 | ac_eof=`expr $ac_eof + 1` |
| 21331 | fi |
| 21332 | |
| 21333 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21334 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 21335 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 21336 | _ACEOF |
| 21337 | sed ' |
| 21338 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21339 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21340 | :n |
| 21341 | t n |
| 21342 | s/'"$ac_delim"'$/,g/; t |
| 21343 | s/$/\\/; p |
| 21344 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21345 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21346 | rm -f conf$$subs.sed |
| 21347 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21348 | :end |
| 21349 | s/|#_!!_#|//g |
| 21350 | CEOF$ac_eof |
| 21351 | _ACEOF |
| 21352 | |
| 21353 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21354 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 21355 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 21356 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 21357 | # (actually we leave an empty line to preserve line numbers). |
| 21358 | if test "x$srcdir" = x.; then |
| 21359 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 21360 | s/:*\$(srcdir):*/:/ |
| 21361 | s/:*\${srcdir}:*/:/ |
| 21362 | s/:*@srcdir@:*/:/ |
| 21363 | s/^\([^=]*=[ ]*\):*/\1/ |
| 21364 | s/:*$// |
| 21365 | s/^[^=]*=[ ]*$// |
| 21366 | }' |
| 21367 | fi |
| 21368 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21369 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21370 | fi # test -n "$CONFIG_FILES" |
| 21371 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21372 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21373 | 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] | 21374 | do |
| 21375 | case $ac_tag in |
| 21376 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 21377 | esac |
| 21378 | case $ac_mode$ac_tag in |
| 21379 | :[FHL]*:*);; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21380 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 21381 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 21382 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21383 | :[FH]-) ac_tag=-:-;; |
| 21384 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 21385 | esac |
| 21386 | ac_save_IFS=$IFS |
| 21387 | IFS=: |
| 21388 | set x $ac_tag |
| 21389 | IFS=$ac_save_IFS |
| 21390 | shift |
| 21391 | ac_file=$1 |
| 21392 | shift |
| 21393 | |
| 21394 | case $ac_mode in |
| 21395 | :L) ac_source=$1;; |
| 21396 | :[FH]) |
| 21397 | ac_file_inputs= |
| 21398 | for ac_f |
| 21399 | do |
| 21400 | case $ac_f in |
| 21401 | -) ac_f="$tmp/stdin";; |
| 21402 | *) # Look for the file first in the build tree, then in the source tree |
| 21403 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 21404 | # because $ac_f cannot contain `:'. |
| 21405 | test -f "$ac_f" || |
| 21406 | case $ac_f in |
| 21407 | [\\/$]*) false;; |
| 21408 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 21409 | esac || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21410 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 21411 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 21412 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21413 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21414 | ac_file_inputs="$ac_file_inputs $ac_f" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21415 | done |
| 21416 | |
| 21417 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21418 | # use $as_me), people would be surprised to read: |
| 21419 | # /* config.h. Generated by config.status. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21420 | configure_input="Generated from "`IFS=: |
| 21421 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21422 | if test x"$ac_file" != x-; then |
| 21423 | configure_input="$ac_file. $configure_input" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21424 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21425 | echo "$as_me: creating $ac_file" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21426 | fi |
| 21427 | |
| 21428 | case $ac_tag in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21429 | *:-:* | *:-) cat >"$tmp/stdin";; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21430 | esac |
| 21431 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21432 | esac |
| 21433 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21434 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21435 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21436 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21437 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21438 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21439 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21440 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21441 | s//\1/ |
| 21442 | q |
| 21443 | } |
| 21444 | /^X\(\/\/\)[^/].*/{ |
| 21445 | s//\1/ |
| 21446 | q |
| 21447 | } |
| 21448 | /^X\(\/\/\)$/{ |
| 21449 | s//\1/ |
| 21450 | q |
| 21451 | } |
| 21452 | /^X\(\/\).*/{ |
| 21453 | s//\1/ |
| 21454 | q |
| 21455 | } |
| 21456 | s/.*/./; q'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21457 | { as_dir="$ac_dir" |
| 21458 | case $as_dir in #( |
| 21459 | -*) as_dir=./$as_dir;; |
| 21460 | esac |
| 21461 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 21462 | as_dirs= |
| 21463 | while :; do |
| 21464 | case $as_dir in #( |
| 21465 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 21466 | *) as_qdir=$as_dir;; |
| 21467 | esac |
| 21468 | as_dirs="'$as_qdir' $as_dirs" |
| 21469 | as_dir=`$as_dirname -- "$as_dir" || |
| 21470 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21471 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21472 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21473 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 21474 | echo X"$as_dir" | |
| 21475 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21476 | s//\1/ |
| 21477 | q |
| 21478 | } |
| 21479 | /^X\(\/\/\)[^/].*/{ |
| 21480 | s//\1/ |
| 21481 | q |
| 21482 | } |
| 21483 | /^X\(\/\/\)$/{ |
| 21484 | s//\1/ |
| 21485 | q |
| 21486 | } |
| 21487 | /^X\(\/\).*/{ |
| 21488 | s//\1/ |
| 21489 | q |
| 21490 | } |
| 21491 | s/.*/./; q'` |
| 21492 | test -d "$as_dir" && break |
| 21493 | done |
| 21494 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21495 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 21496 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 21497 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21498 | ac_builddir=. |
| 21499 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21500 | case "$ac_dir" in |
| 21501 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21502 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21503 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21504 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21505 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21506 | case $ac_top_builddir_sub in |
| 21507 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21508 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 21509 | esac ;; |
| 21510 | esac |
| 21511 | ac_abs_top_builddir=$ac_pwd |
| 21512 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 21513 | # for backward compatibility: |
| 21514 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21515 | |
| 21516 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21517 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21518 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21519 | ac_top_srcdir=$ac_top_builddir_sub |
| 21520 | ac_abs_top_srcdir=$ac_pwd ;; |
| 21521 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21522 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21523 | ac_top_srcdir=$srcdir |
| 21524 | ac_abs_top_srcdir=$srcdir ;; |
| 21525 | *) # Relative name. |
| 21526 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21527 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21528 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21529 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21530 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21531 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21532 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21533 | case $ac_mode in |
| 21534 | :F) |
| 21535 | # |
| 21536 | # CONFIG_FILE |
| 21537 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21538 | |
| 21539 | case $INSTALL in |
| 21540 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21541 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21542 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21543 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21544 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21545 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21546 | # If the template does not know about datarootdir, expand it. |
| 21547 | # FIXME: This hack should be removed a few years after 2.60. |
| 21548 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21549 | |
| 21550 | case `sed -n '/datarootdir/ { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21551 | p |
| 21552 | q |
| 21553 | } |
| 21554 | /@datadir@/p |
| 21555 | /@docdir@/p |
| 21556 | /@infodir@/p |
| 21557 | /@localedir@/p |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21558 | /@mandir@/p |
| 21559 | ' $ac_file_inputs` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21560 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 21561 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21562 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 21563 | 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] | 21564 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21565 | cat >>$CONFIG_STATUS <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21566 | ac_datarootdir_hack=' |
| 21567 | s&@datadir@&$datadir&g |
| 21568 | s&@docdir@&$docdir&g |
| 21569 | s&@infodir@&$infodir&g |
| 21570 | s&@localedir@&$localedir&g |
| 21571 | s&@mandir@&$mandir&g |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21572 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21573 | esac |
| 21574 | _ACEOF |
| 21575 | |
| 21576 | # Neutralize VPATH when `$srcdir' = `.'. |
| 21577 | # Shell code in configure.ac might set extrasub. |
| 21578 | # FIXME: do we really want to maintain this feature? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21579 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21580 | sed "$ac_vpsub |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21581 | $extrasub |
| 21582 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21583 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21584 | :t |
| 21585 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21586 | s&@configure_input@&$configure_input&;t t |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21587 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 21588 | s&@srcdir@&$ac_srcdir&;t t |
| 21589 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 21590 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 21591 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 21592 | s&@builddir@&$ac_builddir&;t t |
| 21593 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 21594 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 21595 | s&@INSTALL@&$ac_INSTALL&;t t |
| 21596 | $ac_datarootdir_hack |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21597 | " $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] | 21598 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21599 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 21600 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 21601 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21602 | { 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] | 21603 | which seems to be undefined. Please make sure it is defined." >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21604 | 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] | 21605 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21606 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21607 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21608 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21609 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 21610 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 21611 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21612 | ;; |
| 21613 | :H) |
| 21614 | # |
| 21615 | # CONFIG_HEADER |
| 21616 | # |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21617 | _ACEOF |
| 21618 | |
| 21619 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 21620 | # substitutes the proper values into config.h.in to produce config.h. |
| 21621 | rm -f conftest.defines conftest.tail |
| 21622 | # First, append a space to every undef/define line, to ease matching. |
| 21623 | echo 's/$/ /' >conftest.defines |
| 21624 | # Then, protect against being on the right side of a sed subst, or in |
| 21625 | # an unquoted here document, in config.status. If some macros were |
| 21626 | # called several times there might be several #defines for the same |
| 21627 | # symbol, which is useless. But do not sort them, since the last |
| 21628 | # AC_DEFINE must be honored. |
| 21629 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 21630 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 21631 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 21632 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 21633 | # just an empty string. |
| 21634 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 21635 | ac_dB='\\)[ (].*,\\1define\\2' |
| 21636 | ac_dC=' ' |
| 21637 | ac_dD=' ,' |
| 21638 | |
| 21639 | uniq confdefs.h | |
| 21640 | sed -n ' |
| 21641 | t rset |
| 21642 | :rset |
| 21643 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 21644 | t ok |
| 21645 | d |
| 21646 | :ok |
| 21647 | s/[\\&,]/\\&/g |
| 21648 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 21649 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 21650 | ' >>conftest.defines |
| 21651 | |
| 21652 | # Remove the space that was appended to ease matching. |
| 21653 | # Then replace #undef with comments. This is necessary, for |
| 21654 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 21655 | # on some systems where configure will not decide to define it. |
| 21656 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 21657 | echo 's/ $// |
| 21658 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 21659 | |
| 21660 | # Break up conftest.defines: |
| 21661 | ac_max_sed_lines=50 |
| 21662 | |
| 21663 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 21664 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 21665 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 21666 | # et cetera. |
| 21667 | ac_in='$ac_file_inputs' |
| 21668 | ac_out='"$tmp/out1"' |
| 21669 | ac_nxt='"$tmp/out2"' |
| 21670 | |
| 21671 | while : |
| 21672 | do |
| 21673 | # Write a here document: |
| 21674 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21675 | # First, check the format of the line: |
| 21676 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 21677 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 21678 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 21679 | b |
| 21680 | :def |
| 21681 | _ACEOF |
| 21682 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 21683 | echo 'CEOF |
| 21684 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 21685 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 21686 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 21687 | grep . conftest.tail >/dev/null || break |
| 21688 | rm -f conftest.defines |
| 21689 | mv conftest.tail conftest.defines |
| 21690 | done |
| 21691 | rm -f conftest.defines conftest.tail |
| 21692 | |
| 21693 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 21694 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21695 | if test x"$ac_file" != x-; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21696 | echo "/* $configure_input */" >"$tmp/config.h" |
| 21697 | cat "$ac_result" >>"$tmp/config.h" |
| 21698 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 21699 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 21700 | echo "$as_me: $ac_file is unchanged" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21701 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21702 | rm -f $ac_file |
| 21703 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21704 | fi |
| 21705 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21706 | echo "/* $configure_input */" |
| 21707 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21708 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21709 | rm -f "$tmp/out12" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21710 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21711 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21712 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 21713 | echo "$as_me: executing $ac_file commands" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21714 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21715 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21716 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21717 | |
| 21718 | case $ac_file$ac_mode in |
| 21719 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21720 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21721 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21722 | ${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] | 21723 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21724 | ${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] | 21725 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21726 | ${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] | 21727 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21728 | ${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] | 21729 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21730 | ${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] | 21731 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21732 | ${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] | 21733 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21734 | ${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] | 21735 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21736 | ${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] | 21737 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21738 | ${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] | 21739 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21740 | ${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] | 21741 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21742 | ${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] | 21743 | "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] | 21744 | ${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] | 21745 | |
| 21746 | esac |
| 21747 | done # for ac_tag |
| 21748 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21749 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21750 | { (exit 0); exit 0; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21751 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21752 | chmod +x $CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21753 | ac_clean_files=$ac_clean_files_save |
| 21754 | |
| 21755 | |
| 21756 | # configure is writing to config.log, and then calls config.status. |
| 21757 | # config.status does its own redirection, appending to config.log. |
| 21758 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21759 | # by configure, so config.status won't be able to write to it; its |
| 21760 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21761 | # effectively closing config.log, so it can be properly (re)opened and |
| 21762 | # appended to by config.status. When coming back to configure, we |
| 21763 | # need to make the FD available again. |
| 21764 | if test "$no_create" != yes; then |
| 21765 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21766 | ac_config_status_args= |
| 21767 | test "$silent" = yes && |
| 21768 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21769 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21770 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21771 | exec 5>>config.log |
| 21772 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21773 | # would make configure fail if this is the last instruction. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21774 | $ac_cs_success || { (exit 1); exit 1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21775 | fi |
| 21776 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21777 | # |
| 21778 | # CONFIG_SUBDIRS section. |
| 21779 | # |
| 21780 | if test "$no_recursion" != yes; then |
| 21781 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21782 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21783 | ac_sub_configure_args= |
| 21784 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21785 | eval "set x $ac_configure_args" |
| 21786 | shift |
| 21787 | for ac_arg |
| 21788 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21789 | if test -n "$ac_prev"; then |
| 21790 | ac_prev= |
| 21791 | continue |
| 21792 | fi |
| 21793 | case $ac_arg in |
| 21794 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 21795 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 21796 | ac_prev=cache_file ;; |
| 21797 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 21798 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 21799 | | --c=*) |
| 21800 | ;; |
| 21801 | --config-cache | -C) |
| 21802 | ;; |
| 21803 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 21804 | ac_prev=srcdir ;; |
| 21805 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 21806 | ;; |
| 21807 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 21808 | ac_prev=prefix ;; |
| 21809 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 21810 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21811 | *) |
| 21812 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21813 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21814 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21815 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21816 | esac |
| 21817 | done |
| 21818 | |
| 21819 | # Always prepend --prefix to ensure using the same prefix |
| 21820 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21821 | ac_arg="--prefix=$prefix" |
| 21822 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21823 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21824 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21825 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21826 | |
| 21827 | ac_popdir=`pwd` |
| 21828 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 21829 | |
| 21830 | # Do not complain, so a configure script can configure whichever |
| 21831 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21832 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21833 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21834 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21835 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 21836 | echo "$ac_msg" >&6 |
| 21837 | { as_dir="$ac_dir" |
| 21838 | case $as_dir in #( |
| 21839 | -*) as_dir=./$as_dir;; |
| 21840 | esac |
| 21841 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 21842 | as_dirs= |
| 21843 | while :; do |
| 21844 | case $as_dir in #( |
| 21845 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 21846 | *) as_qdir=$as_dir;; |
| 21847 | esac |
| 21848 | as_dirs="'$as_qdir' $as_dirs" |
| 21849 | as_dir=`$as_dirname -- "$as_dir" || |
| 21850 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21851 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21852 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21853 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 21854 | echo X"$as_dir" | |
| 21855 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21856 | s//\1/ |
| 21857 | q |
| 21858 | } |
| 21859 | /^X\(\/\/\)[^/].*/{ |
| 21860 | s//\1/ |
| 21861 | q |
| 21862 | } |
| 21863 | /^X\(\/\/\)$/{ |
| 21864 | s//\1/ |
| 21865 | q |
| 21866 | } |
| 21867 | /^X\(\/\).*/{ |
| 21868 | s//\1/ |
| 21869 | q |
| 21870 | } |
| 21871 | s/.*/./; q'` |
| 21872 | test -d "$as_dir" && break |
| 21873 | done |
| 21874 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21875 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 21876 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 21877 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21878 | ac_builddir=. |
| 21879 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21880 | case "$ac_dir" in |
| 21881 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21882 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21883 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21884 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21885 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21886 | case $ac_top_builddir_sub in |
| 21887 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21888 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 21889 | esac ;; |
| 21890 | esac |
| 21891 | ac_abs_top_builddir=$ac_pwd |
| 21892 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 21893 | # for backward compatibility: |
| 21894 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21895 | |
| 21896 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21897 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21898 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21899 | ac_top_srcdir=$ac_top_builddir_sub |
| 21900 | ac_abs_top_srcdir=$ac_pwd ;; |
| 21901 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21902 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21903 | ac_top_srcdir=$srcdir |
| 21904 | ac_abs_top_srcdir=$srcdir ;; |
| 21905 | *) # Relative name. |
| 21906 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21907 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21908 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21909 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21910 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21911 | |
| 21912 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21913 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21914 | |
| 21915 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21916 | if test -f "$ac_srcdir/configure.gnu"; then |
| 21917 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 21918 | elif test -f "$ac_srcdir/configure"; then |
| 21919 | ac_sub_configure=$ac_srcdir/configure |
| 21920 | elif test -f "$ac_srcdir/configure.in"; then |
| 21921 | # This should be Cygnus configure. |
| 21922 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21923 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21924 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 21925 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21926 | ac_sub_configure= |
| 21927 | fi |
| 21928 | |
| 21929 | # The recursion is here. |
| 21930 | if test -n "$ac_sub_configure"; then |
| 21931 | # Make the cache file name correct relative to the subdirectory. |
| 21932 | case $cache_file in |
| 21933 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21934 | *) # Relative name. |
| 21935 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21936 | esac |
| 21937 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21938 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 21939 | 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] | 21940 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21941 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 21942 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21943 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 21944 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 21945 | { (exit 1); exit 1; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21946 | fi |
| 21947 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21948 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21949 | done |
| 21950 | fi |
| 21951 | |