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 |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 693 | ENABLE_TIMESTAMPS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 694 | TARGETS_TO_BUILD |
| 695 | LLVM_ENUM_TARGETS |
| 696 | LLVM_ENUM_ASM_PRINTERS |
| 697 | LLVM_ENUM_ASM_PARSERS |
| 698 | LLVM_ENUM_DISASSEMBLERS |
| 699 | ENABLE_CBE_PRINTF_A |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 700 | CLANGPATH |
| 701 | CLANGXXPATH |
| 702 | ENABLE_BUILT_CLANG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 703 | OPTIMIZE_OPTION |
| 704 | EXTRA_OPTIONS |
| 705 | BINUTILS_INCDIR |
| 706 | ENABLE_LLVMC_DYNAMIC |
| 707 | ENABLE_LLVMC_DYNAMIC_PLUGINS |
| 708 | CXX |
| 709 | CXXFLAGS |
| 710 | ac_ct_CXX |
| 711 | NM |
| 712 | ifGNUmake |
| 713 | LN_S |
| 714 | CMP |
| 715 | CP |
| 716 | DATE |
| 717 | FIND |
| 718 | MKDIR |
| 719 | MV |
| 720 | RANLIB |
| 721 | AR |
| 722 | RM |
| 723 | SED |
| 724 | TAR |
| 725 | BINPWD |
| 726 | GRAPHVIZ |
| 727 | DOT |
| 728 | FDP |
| 729 | NEATO |
| 730 | TWOPI |
| 731 | CIRCO |
| 732 | GV |
| 733 | DOTTY |
| 734 | PERL |
| 735 | HAVE_PERL |
| 736 | INSTALL_PROGRAM |
| 737 | INSTALL_SCRIPT |
| 738 | INSTALL_DATA |
| 739 | BZIP2 |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 740 | CAT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 741 | DOXYGEN |
| 742 | GROFF |
| 743 | GZIP |
| 744 | POD2HTML |
| 745 | POD2MAN |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 746 | PDFROFF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 747 | RUNTEST |
| 748 | TCLSH |
| 749 | ZIP |
| 750 | OCAMLC |
| 751 | OCAMLOPT |
| 752 | OCAMLDEP |
| 753 | OCAMLDOC |
| 754 | GAS |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 755 | HAVE_LINK_VERSION_SCRIPT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 756 | INSTALL_LTDL_TRUE |
| 757 | INSTALL_LTDL_FALSE |
| 758 | CONVENIENCE_LTDL_TRUE |
| 759 | CONVENIENCE_LTDL_FALSE |
| 760 | LIBADD_DL |
| 761 | LLVMGCCCOMMAND |
| 762 | LLVMGXXCOMMAND |
| 763 | LLVMGCC |
| 764 | LLVMGXX |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 765 | LLVMCC_OPTION |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 766 | NO_VARIADIC_MACROS |
| 767 | NO_MISSING_FIELD_INITIALIZERS |
| 768 | USE_UDIS86 |
| 769 | USE_OPROFILE |
| 770 | HAVE_PTHREAD |
| 771 | HUGE_VAL_SANITY |
| 772 | MMAP_FILE |
| 773 | LLVMCC1 |
| 774 | LLVMCC1PLUS |
| 775 | LLVMGCCDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 776 | LLVMGCC_LANGS |
| 777 | SHLIBEXT |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 778 | SHLIBPATH_VAR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 779 | LLVM_PREFIX |
| 780 | LLVM_BINDIR |
| 781 | LLVM_LIBDIR |
| 782 | LLVM_DATADIR |
| 783 | LLVM_DOCSDIR |
| 784 | LLVM_ETCDIR |
| 785 | LLVM_INCLUDEDIR |
| 786 | LLVM_INFODIR |
| 787 | LLVM_MANDIR |
| 788 | LLVM_CONFIGTIME |
| 789 | BINDINGS_TO_BUILD |
| 790 | ALL_BINDINGS |
| 791 | OCAML_LIBDIR |
| 792 | ENABLE_VISIBILITY_INLINES_HIDDEN |
| 793 | RPATH |
| 794 | RDYNAMIC |
| 795 | LIBOBJS |
| 796 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 797 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 798 | ac_precious_vars='build_alias |
| 799 | host_alias |
| 800 | target_alias |
| 801 | CC |
| 802 | CFLAGS |
| 803 | LDFLAGS |
| 804 | CPPFLAGS |
| 805 | CPP |
| 806 | CXX |
| 807 | CXXFLAGS |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 808 | CCC' |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame] | 809 | ac_subdirs_all='projects/llvm-gcc |
| 810 | projects/test-suite |
| 811 | projects/llvm-test |
| 812 | projects/poolalloc |
| 813 | projects/llvm-poolalloc |
| 814 | projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 815 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 816 | projects/llvm-stacker |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 817 | projects/llvm-reopt |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 818 | projects/llvm-java |
| 819 | projects/llvm-tv |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 820 | projects/safecode |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 821 | projects/llvm-kernel' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 822 | |
| 823 | # Initialize some variables set by options. |
| 824 | ac_init_help= |
| 825 | ac_init_version=false |
| 826 | # The variables have the same names as the options, with |
| 827 | # dashes changed to underlines. |
| 828 | cache_file=/dev/null |
| 829 | exec_prefix=NONE |
| 830 | no_create= |
| 831 | no_recursion= |
| 832 | prefix=NONE |
| 833 | program_prefix=NONE |
| 834 | program_suffix=NONE |
| 835 | program_transform_name=s,x,x, |
| 836 | silent= |
| 837 | site= |
| 838 | srcdir= |
| 839 | verbose= |
| 840 | x_includes=NONE |
| 841 | x_libraries=NONE |
| 842 | |
| 843 | # Installation directory options. |
| 844 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 845 | # and all the variables that are supposed to be based on exec_prefix |
| 846 | # by default will actually change. |
| 847 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 848 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 849 | bindir='${exec_prefix}/bin' |
| 850 | sbindir='${exec_prefix}/sbin' |
| 851 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 852 | datarootdir='${prefix}/share' |
| 853 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 854 | sysconfdir='${prefix}/etc' |
| 855 | sharedstatedir='${prefix}/com' |
| 856 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 857 | includedir='${prefix}/include' |
| 858 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 859 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 860 | infodir='${datarootdir}/info' |
| 861 | htmldir='${docdir}' |
| 862 | dvidir='${docdir}' |
| 863 | pdfdir='${docdir}' |
| 864 | psdir='${docdir}' |
| 865 | libdir='${exec_prefix}/lib' |
| 866 | localedir='${datarootdir}/locale' |
| 867 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 868 | |
| 869 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 870 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 871 | for ac_option |
| 872 | do |
| 873 | # If the previous option needs an argument, assign it. |
| 874 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 875 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 876 | ac_prev= |
| 877 | continue |
| 878 | fi |
| 879 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 880 | case $ac_option in |
| 881 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 882 | *) ac_optarg=yes ;; |
| 883 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 884 | |
| 885 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 886 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 887 | case $ac_dashdash$ac_option in |
| 888 | --) |
| 889 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 890 | |
| 891 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 892 | ac_prev=bindir ;; |
| 893 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 894 | bindir=$ac_optarg ;; |
| 895 | |
| 896 | -build | --build | --buil | --bui | --bu) |
| 897 | ac_prev=build_alias ;; |
| 898 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 899 | build_alias=$ac_optarg ;; |
| 900 | |
| 901 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 902 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 903 | ac_prev=cache_file ;; |
| 904 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 905 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 906 | cache_file=$ac_optarg ;; |
| 907 | |
| 908 | --config-cache | -C) |
| 909 | cache_file=config.cache ;; |
| 910 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 911 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 912 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 913 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 914 | datadir=$ac_optarg ;; |
| 915 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 916 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 917 | | --dataroo | --dataro | --datar) |
| 918 | ac_prev=datarootdir ;; |
| 919 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 920 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 921 | datarootdir=$ac_optarg ;; |
| 922 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 923 | -disable-* | --disable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 924 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 925 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 926 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 927 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 928 | { (exit 1); exit 1; }; } |
| 929 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 930 | eval enable_$ac_feature=no ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 931 | |
| 932 | -docdir | --docdir | --docdi | --doc | --do) |
| 933 | ac_prev=docdir ;; |
| 934 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 935 | docdir=$ac_optarg ;; |
| 936 | |
| 937 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 938 | ac_prev=dvidir ;; |
| 939 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 940 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 941 | |
| 942 | -enable-* | --enable-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 943 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 944 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 945 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 946 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 947 | { (exit 1); exit 1; }; } |
| 948 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 949 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 950 | |
| 951 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 952 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 953 | | --exec | --exe | --ex) |
| 954 | ac_prev=exec_prefix ;; |
| 955 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 956 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 957 | | --exec=* | --exe=* | --ex=*) |
| 958 | exec_prefix=$ac_optarg ;; |
| 959 | |
| 960 | -gas | --gas | --ga | --g) |
| 961 | # Obsolete; use --with-gas. |
| 962 | with_gas=yes ;; |
| 963 | |
| 964 | -help | --help | --hel | --he | -h) |
| 965 | ac_init_help=long ;; |
| 966 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 967 | ac_init_help=recursive ;; |
| 968 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 969 | ac_init_help=short ;; |
| 970 | |
| 971 | -host | --host | --hos | --ho) |
| 972 | ac_prev=host_alias ;; |
| 973 | -host=* | --host=* | --hos=* | --ho=*) |
| 974 | host_alias=$ac_optarg ;; |
| 975 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 976 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 977 | ac_prev=htmldir ;; |
| 978 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 979 | | --ht=*) |
| 980 | htmldir=$ac_optarg ;; |
| 981 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 982 | -includedir | --includedir | --includedi | --included | --include \ |
| 983 | | --includ | --inclu | --incl | --inc) |
| 984 | ac_prev=includedir ;; |
| 985 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 986 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 987 | includedir=$ac_optarg ;; |
| 988 | |
| 989 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 990 | ac_prev=infodir ;; |
| 991 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 992 | infodir=$ac_optarg ;; |
| 993 | |
| 994 | -libdir | --libdir | --libdi | --libd) |
| 995 | ac_prev=libdir ;; |
| 996 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 997 | libdir=$ac_optarg ;; |
| 998 | |
| 999 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1000 | | --libexe | --libex | --libe) |
| 1001 | ac_prev=libexecdir ;; |
| 1002 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1003 | | --libexe=* | --libex=* | --libe=*) |
| 1004 | libexecdir=$ac_optarg ;; |
| 1005 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1006 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1007 | ac_prev=localedir ;; |
| 1008 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1009 | localedir=$ac_optarg ;; |
| 1010 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1011 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1012 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1013 | ac_prev=localstatedir ;; |
| 1014 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1015 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1016 | localstatedir=$ac_optarg ;; |
| 1017 | |
| 1018 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1019 | ac_prev=mandir ;; |
| 1020 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1021 | mandir=$ac_optarg ;; |
| 1022 | |
| 1023 | -nfp | --nfp | --nf) |
| 1024 | # Obsolete; use --without-fp. |
| 1025 | with_fp=no ;; |
| 1026 | |
| 1027 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1028 | | --no-cr | --no-c | -n) |
| 1029 | no_create=yes ;; |
| 1030 | |
| 1031 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1032 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1033 | no_recursion=yes ;; |
| 1034 | |
| 1035 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1036 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1037 | | --oldin | --oldi | --old | --ol | --o) |
| 1038 | ac_prev=oldincludedir ;; |
| 1039 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1040 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1041 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1042 | oldincludedir=$ac_optarg ;; |
| 1043 | |
| 1044 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1045 | ac_prev=prefix ;; |
| 1046 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1047 | prefix=$ac_optarg ;; |
| 1048 | |
| 1049 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1050 | | --program-pre | --program-pr | --program-p) |
| 1051 | ac_prev=program_prefix ;; |
| 1052 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1053 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1054 | program_prefix=$ac_optarg ;; |
| 1055 | |
| 1056 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1057 | | --program-suf | --program-su | --program-s) |
| 1058 | ac_prev=program_suffix ;; |
| 1059 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1060 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1061 | program_suffix=$ac_optarg ;; |
| 1062 | |
| 1063 | -program-transform-name | --program-transform-name \ |
| 1064 | | --program-transform-nam | --program-transform-na \ |
| 1065 | | --program-transform-n | --program-transform- \ |
| 1066 | | --program-transform | --program-transfor \ |
| 1067 | | --program-transfo | --program-transf \ |
| 1068 | | --program-trans | --program-tran \ |
| 1069 | | --progr-tra | --program-tr | --program-t) |
| 1070 | ac_prev=program_transform_name ;; |
| 1071 | -program-transform-name=* | --program-transform-name=* \ |
| 1072 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1073 | | --program-transform-n=* | --program-transform-=* \ |
| 1074 | | --program-transform=* | --program-transfor=* \ |
| 1075 | | --program-transfo=* | --program-transf=* \ |
| 1076 | | --program-trans=* | --program-tran=* \ |
| 1077 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1078 | program_transform_name=$ac_optarg ;; |
| 1079 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1080 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1081 | ac_prev=pdfdir ;; |
| 1082 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1083 | pdfdir=$ac_optarg ;; |
| 1084 | |
| 1085 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1086 | ac_prev=psdir ;; |
| 1087 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1088 | psdir=$ac_optarg ;; |
| 1089 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1090 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1091 | | -silent | --silent | --silen | --sile | --sil) |
| 1092 | silent=yes ;; |
| 1093 | |
| 1094 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1095 | ac_prev=sbindir ;; |
| 1096 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1097 | | --sbi=* | --sb=*) |
| 1098 | sbindir=$ac_optarg ;; |
| 1099 | |
| 1100 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1101 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1102 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1103 | | --sha | --sh) |
| 1104 | ac_prev=sharedstatedir ;; |
| 1105 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1106 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1107 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1108 | | --sha=* | --sh=*) |
| 1109 | sharedstatedir=$ac_optarg ;; |
| 1110 | |
| 1111 | -site | --site | --sit) |
| 1112 | ac_prev=site ;; |
| 1113 | -site=* | --site=* | --sit=*) |
| 1114 | site=$ac_optarg ;; |
| 1115 | |
| 1116 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1117 | ac_prev=srcdir ;; |
| 1118 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1119 | srcdir=$ac_optarg ;; |
| 1120 | |
| 1121 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1122 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1123 | ac_prev=sysconfdir ;; |
| 1124 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1125 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1126 | sysconfdir=$ac_optarg ;; |
| 1127 | |
| 1128 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1129 | ac_prev=target_alias ;; |
| 1130 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1131 | target_alias=$ac_optarg ;; |
| 1132 | |
| 1133 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1134 | verbose=yes ;; |
| 1135 | |
| 1136 | -version | --version | --versio | --versi | --vers | -V) |
| 1137 | ac_init_version=: ;; |
| 1138 | |
| 1139 | -with-* | --with-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1140 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1141 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1142 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1143 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1144 | { (exit 1); exit 1; }; } |
| 1145 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 1146 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1147 | |
| 1148 | -without-* | --without-*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1149 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1150 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1151 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1152 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1153 | { (exit 1); exit 1; }; } |
| 1154 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 1155 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1156 | |
| 1157 | --x) |
| 1158 | # Obsolete; use --with-x. |
| 1159 | with_x=yes ;; |
| 1160 | |
| 1161 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1162 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1163 | ac_prev=x_includes ;; |
| 1164 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1165 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1166 | x_includes=$ac_optarg ;; |
| 1167 | |
| 1168 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1169 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1170 | ac_prev=x_libraries ;; |
| 1171 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1172 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1173 | x_libraries=$ac_optarg ;; |
| 1174 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1175 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1176 | Try \`$0 --help' for more information." >&2 |
| 1177 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1178 | ;; |
| 1179 | |
| 1180 | *=*) |
| 1181 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1182 | # Reject names that are not valid shell variable names. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1183 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1184 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1185 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1186 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1187 | export $ac_envvar ;; |
| 1188 | |
| 1189 | *) |
| 1190 | # FIXME: should be removed in autoconf 3.0. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1191 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1192 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1193 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1194 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1195 | ;; |
| 1196 | |
| 1197 | esac |
| 1198 | done |
| 1199 | |
| 1200 | if test -n "$ac_prev"; then |
| 1201 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1202 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1203 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1204 | fi |
| 1205 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1206 | # Be sure to have absolute directory names. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1207 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1208 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1209 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1210 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1211 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1212 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1213 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1214 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1215 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1216 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1217 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1218 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1219 | done |
| 1220 | |
| 1221 | # There might be people who depend on the old broken behavior: `$host' |
| 1222 | # used to hold the argument of --host etc. |
| 1223 | # FIXME: To remove some day. |
| 1224 | build=$build_alias |
| 1225 | host=$host_alias |
| 1226 | target=$target_alias |
| 1227 | |
| 1228 | # FIXME: To remove some day. |
| 1229 | if test "x$host_alias" != x; then |
| 1230 | if test "x$build_alias" = x; then |
| 1231 | cross_compiling=maybe |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1232 | 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] | 1233 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1234 | elif test "x$build_alias" != "x$host_alias"; then |
| 1235 | cross_compiling=yes |
| 1236 | fi |
| 1237 | fi |
| 1238 | |
| 1239 | ac_tool_prefix= |
| 1240 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1241 | |
| 1242 | test "$silent" = yes && exec 6>/dev/null |
| 1243 | |
| 1244 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1245 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1246 | ac_ls_di=`ls -di .` && |
| 1247 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1248 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1249 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1250 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1251 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1252 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1253 | |
| 1254 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1255 | # Find the source files, if location was not specified. |
| 1256 | if test -z "$srcdir"; then |
| 1257 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1258 | # Try the directory containing this script, then the parent directory. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1259 | ac_confdir=`$as_dirname -- "$0" || |
| 1260 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1261 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1262 | X"$0" : 'X\(//\)$' \| \ |
| 1263 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 1264 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1265 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1266 | s//\1/ |
| 1267 | q |
| 1268 | } |
| 1269 | /^X\(\/\/\)[^/].*/{ |
| 1270 | s//\1/ |
| 1271 | q |
| 1272 | } |
| 1273 | /^X\(\/\/\)$/{ |
| 1274 | s//\1/ |
| 1275 | q |
| 1276 | } |
| 1277 | /^X\(\/\).*/{ |
| 1278 | s//\1/ |
| 1279 | q |
| 1280 | } |
| 1281 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1282 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1283 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1284 | srcdir=.. |
| 1285 | fi |
| 1286 | else |
| 1287 | ac_srcdir_defaulted=no |
| 1288 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1289 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1290 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1291 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1292 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1293 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1294 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1295 | ac_abs_confdir=`( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1296 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
| 1297 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1298 | pwd)` |
| 1299 | # When building in place, set srcdir=. |
| 1300 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1301 | srcdir=. |
| 1302 | fi |
| 1303 | # Remove unnecessary trailing slashes from srcdir. |
| 1304 | # Double slashes in file names in object file debugging info |
| 1305 | # mess up M-x gdb in Emacs. |
| 1306 | case $srcdir in |
| 1307 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1308 | esac |
| 1309 | for ac_var in $ac_precious_vars; do |
| 1310 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1311 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1312 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1313 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1314 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1315 | |
| 1316 | # |
| 1317 | # Report the --help message. |
| 1318 | # |
| 1319 | if test "$ac_init_help" = "long"; then |
| 1320 | # Omit some internal or obsolete options to make the list less imposing. |
| 1321 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1322 | cat <<_ACEOF |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 1323 | \`configure' configures llvm 2.8svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1324 | |
| 1325 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1326 | |
| 1327 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1328 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1329 | |
| 1330 | Defaults for the options are specified in brackets. |
| 1331 | |
| 1332 | Configuration: |
| 1333 | -h, --help display this help and exit |
| 1334 | --help=short display options specific to this package |
| 1335 | --help=recursive display the short help of all the included packages |
| 1336 | -V, --version display version information and exit |
| 1337 | -q, --quiet, --silent do not print \`checking...' messages |
| 1338 | --cache-file=FILE cache test results in FILE [disabled] |
| 1339 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1340 | -n, --no-create do not create output files |
| 1341 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1342 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1343 | Installation directories: |
| 1344 | --prefix=PREFIX install architecture-independent files in PREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1345 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1346 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1347 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1348 | |
| 1349 | By default, \`make install' will install all the files in |
| 1350 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1351 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1352 | for instance \`--prefix=\$HOME'. |
| 1353 | |
| 1354 | For better control, use the options below. |
| 1355 | |
| 1356 | Fine tuning of the installation directories: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1357 | --bindir=DIR user executables [EPREFIX/bin] |
| 1358 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1359 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1360 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1361 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1362 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1363 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1364 | --includedir=DIR C header files [PREFIX/include] |
| 1365 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1366 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1367 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1368 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1369 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1370 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1371 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1372 | --htmldir=DIR html documentation [DOCDIR] |
| 1373 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1374 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1375 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1376 | _ACEOF |
| 1377 | |
| 1378 | cat <<\_ACEOF |
| 1379 | |
| 1380 | System types: |
| 1381 | --build=BUILD configure for building on BUILD [guessed] |
| 1382 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1383 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1384 | _ACEOF |
| 1385 | fi |
| 1386 | |
| 1387 | if test -n "$ac_init_help"; then |
| 1388 | case $ac_init_help in |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 1389 | short | recursive ) echo "Configuration of llvm 2.8svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1390 | esac |
| 1391 | cat <<\_ACEOF |
| 1392 | |
| 1393 | Optional Features: |
| 1394 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1395 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1396 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1397 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1398 | --enable-assertions Compile with assertion checks enabled (default is |
| 1399 | YES) |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1400 | --enable-expensive-checks |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 1401 | Compile with expensive debug checks enabled (default |
| 1402 | is NO) |
| 1403 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1404 | NO) |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 1405 | --enable-debug-symbols Build compiler with debug symbols (default is NO if |
| 1406 | optimization is on and YES if it's off) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1407 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1408 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1409 | --enable-threads Use threads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1410 | --enable-pic Build LLVM with Position Independent Code (default |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 1411 | is YES) |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 1412 | --enable-shared Build a shared library and link tools against it |
| 1413 | (default is NO) |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 1414 | --enable-timestamps Enable embedding timestamp information in build |
| 1415 | (default is YES) |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 1416 | --enable-targets Build specific host targets: all or |
| 1417 | target1,target2,... Valid targets are: host, x86, |
| 1418 | x86_64, sparc, powerpc, alpha, arm, mips, spu, |
| 1419 | pic16, xcore, msp430, systemz, blackfin, cbe, msil, |
| 1420 | and cpp (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1421 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1422 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1423 | --enable-bindings Build specific language bindings: |
| 1424 | all,auto,none,{binding-name} (default=auto) |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 1425 | --enable-libffi Check for the presence of libffi (default is NO) |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 1426 | --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on |
| 1427 | Win32) |
| 1428 | --enable-llvmc-dynamic-plugins |
| 1429 | Enable dynamic LLVMC plugins (default is YES) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1430 | --enable-ltdl-install install libltdl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1431 | |
| 1432 | Optional Packages: |
| 1433 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1434 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1435 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1436 | searches PATH) |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 1437 | --with-llvmgcc Specify location of llvm-gcc driver (default |
| 1438 | searches PATH) |
| 1439 | --with-llvmgxx Specify location of llvm-g++ driver (default |
| 1440 | searches PATH) |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 1441 | --with-clang Specify location of clang compiler (default is |
| 1442 | --with-built-clang) |
| 1443 | --with-built-clang Use the compiled Clang as the LLVM compiler |
| 1444 | (default=check) |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 1445 | --with-optimize-option Select the compiler options to use for optimized |
| 1446 | builds |
Duncan Sands | e4eb2d2 | 2009-05-13 13:13:18 +0000 | [diff] [blame] | 1447 | --with-extra-options Specify additional options to compile LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1448 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1449 | is stdlib) |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 1450 | --with-c-include-dirs Colon separated list of directories clang will |
| 1451 | search for headers |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 1452 | --with-cxx-include-root Directory with the libstdc++ headers. |
| 1453 | --with-cxx-include-arch Architecture of the libstdc++ headers. |
| 1454 | --with-cxx-include-32bit-dir |
| 1455 | 32 bit multilib dir. |
| 1456 | --with-cxx-include-64bit-dir |
| 1457 | 64 bit multilib directory. |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 1458 | --with-binutils-include Specify path to binutils/include/ containing |
| 1459 | plugin-api.h file for gold plugin. |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1460 | --with-tclinclude directory where tcl headers are |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 1461 | --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc, |
| 1462 | clang, or none; default=check) |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1463 | --with-udis86=<path> Use udis86 external x86 disassembler library |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 1464 | --with-oprofile=<prefix> |
| 1465 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1466 | |
| 1467 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1468 | CC C compiler command |
| 1469 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1470 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1471 | nonstandard directory <lib dir> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1472 | 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] | 1473 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1474 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1475 | CXX C++ compiler command |
| 1476 | CXXFLAGS C++ compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1477 | |
| 1478 | Use these variables to override the choices made by `configure' or to help |
| 1479 | it to find libraries and programs with nonstandard names/locations. |
| 1480 | |
| 1481 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1482 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1483 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1484 | fi |
| 1485 | |
| 1486 | if test "$ac_init_help" = "recursive"; then |
| 1487 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1488 | 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] | 1489 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1490 | ac_builddir=. |
| 1491 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1492 | case "$ac_dir" in |
| 1493 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1494 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1495 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1496 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1497 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1498 | case $ac_top_builddir_sub in |
| 1499 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1500 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1501 | esac ;; |
| 1502 | esac |
| 1503 | ac_abs_top_builddir=$ac_pwd |
| 1504 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1505 | # for backward compatibility: |
| 1506 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1507 | |
| 1508 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1509 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1510 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1511 | ac_top_srcdir=$ac_top_builddir_sub |
| 1512 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1513 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1514 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1515 | ac_top_srcdir=$srcdir |
| 1516 | ac_abs_top_srcdir=$srcdir ;; |
| 1517 | *) # Relative name. |
| 1518 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1519 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1520 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1521 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1522 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1523 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1524 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1525 | # Check for guested configure. |
| 1526 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1527 | echo && |
| 1528 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1529 | elif test -f "$ac_srcdir/configure"; then |
| 1530 | echo && |
| 1531 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1532 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1533 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1534 | fi || ac_status=$? |
| 1535 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1536 | done |
| 1537 | fi |
| 1538 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1539 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1540 | if $ac_init_version; then |
| 1541 | cat <<\_ACEOF |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 1542 | llvm configure 2.8svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1543 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1544 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1545 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1546 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1547 | This configure script is free software; the Free Software Foundation |
| 1548 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1549 | |
John Criswell | 5a12971 | 2010-03-19 21:04:16 +0000 | [diff] [blame] | 1550 | Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1551 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1552 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1553 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1554 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1555 | This file contains any messages produced by compilers while |
| 1556 | running configure, to aid debugging if configure makes a mistake. |
| 1557 | |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 1558 | It was created by llvm $as_me 2.8svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1559 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1560 | |
| 1561 | $ $0 $@ |
| 1562 | |
| 1563 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1564 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1565 | { |
| 1566 | cat <<_ASUNAME |
| 1567 | ## --------- ## |
| 1568 | ## Platform. ## |
| 1569 | ## --------- ## |
| 1570 | |
| 1571 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1572 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1573 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1574 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1575 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1576 | |
| 1577 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1578 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1579 | |
| 1580 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1581 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1582 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1583 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1584 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1585 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1586 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1587 | |
| 1588 | _ASUNAME |
| 1589 | |
| 1590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1591 | for as_dir in $PATH |
| 1592 | do |
| 1593 | IFS=$as_save_IFS |
| 1594 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1595 | echo "PATH: $as_dir" |
| 1596 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1597 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1598 | |
| 1599 | } >&5 |
| 1600 | |
| 1601 | cat >&5 <<_ACEOF |
| 1602 | |
| 1603 | |
| 1604 | ## ----------- ## |
| 1605 | ## Core tests. ## |
| 1606 | ## ----------- ## |
| 1607 | |
| 1608 | _ACEOF |
| 1609 | |
| 1610 | |
| 1611 | # Keep a trace of the command line. |
| 1612 | # 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] | 1613 | # 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] | 1614 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1615 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1616 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1617 | ac_configure_args0= |
| 1618 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1619 | ac_must_keep_next=false |
| 1620 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1621 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1622 | for ac_arg |
| 1623 | do |
| 1624 | case $ac_arg in |
| 1625 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1626 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1627 | | -silent | --silent | --silen | --sile | --sil) |
| 1628 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1629 | *\'*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1630 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1631 | esac |
| 1632 | case $ac_pass in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1633 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1634 | 2) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1635 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1636 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1637 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1638 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1639 | case $ac_arg in |
| 1640 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1641 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1642 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1643 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1644 | case "$ac_configure_args0 " in |
| 1645 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1646 | esac |
| 1647 | ;; |
| 1648 | -* ) ac_must_keep_next=true ;; |
| 1649 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1650 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1651 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1652 | ;; |
| 1653 | esac |
| 1654 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1655 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1656 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1657 | $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] | 1658 | |
| 1659 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1660 | # config.log. We remove comments because anyway the quotes in there |
| 1661 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1662 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1663 | # 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] | 1664 | trap 'exit_status=$? |
| 1665 | # Save into config.log some information that might help in debugging. |
| 1666 | { |
| 1667 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1668 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1669 | cat <<\_ASBOX |
| 1670 | ## ---------------- ## |
| 1671 | ## Cache variables. ## |
| 1672 | ## ---------------- ## |
| 1673 | _ASBOX |
| 1674 | echo |
| 1675 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1676 | ( |
| 1677 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1678 | eval ac_val=\$$ac_var |
| 1679 | case $ac_val in #( |
| 1680 | *${as_nl}*) |
| 1681 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1682 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1683 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1684 | esac |
| 1685 | case $ac_var in #( |
| 1686 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1687 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1688 | esac ;; |
| 1689 | esac |
| 1690 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1691 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1692 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1693 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1694 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1695 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1696 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1697 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1698 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1699 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1700 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1701 | esac | |
| 1702 | sort |
| 1703 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1704 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1705 | |
| 1706 | cat <<\_ASBOX |
| 1707 | ## ----------------- ## |
| 1708 | ## Output variables. ## |
| 1709 | ## ----------------- ## |
| 1710 | _ASBOX |
| 1711 | echo |
| 1712 | for ac_var in $ac_subst_vars |
| 1713 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1714 | eval ac_val=\$$ac_var |
| 1715 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1716 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1717 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1718 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1719 | done | sort |
| 1720 | echo |
| 1721 | |
| 1722 | if test -n "$ac_subst_files"; then |
| 1723 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1724 | ## ------------------- ## |
| 1725 | ## File substitutions. ## |
| 1726 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1727 | _ASBOX |
| 1728 | echo |
| 1729 | for ac_var in $ac_subst_files |
| 1730 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1731 | eval ac_val=\$$ac_var |
| 1732 | case $ac_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1733 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1734 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1735 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1736 | done | sort |
| 1737 | echo |
| 1738 | fi |
| 1739 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1740 | if test -s confdefs.h; then |
| 1741 | cat <<\_ASBOX |
| 1742 | ## ----------- ## |
| 1743 | ## confdefs.h. ## |
| 1744 | ## ----------- ## |
| 1745 | _ASBOX |
| 1746 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1747 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1748 | echo |
| 1749 | fi |
| 1750 | test "$ac_signal" != 0 && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1751 | echo "$as_me: caught signal $ac_signal" |
| 1752 | echo "$as_me: exit $exit_status" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1753 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1754 | rm -f core *.core core.conftest.* && |
| 1755 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1756 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1757 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1758 | for ac_signal in 1 2 13 15; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1759 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1760 | done |
| 1761 | ac_signal=0 |
| 1762 | |
| 1763 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1764 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1765 | |
| 1766 | # Predefined preprocessor variables. |
| 1767 | |
| 1768 | cat >>confdefs.h <<_ACEOF |
| 1769 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1770 | _ACEOF |
| 1771 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1772 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1773 | cat >>confdefs.h <<_ACEOF |
| 1774 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1775 | _ACEOF |
| 1776 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1777 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1778 | cat >>confdefs.h <<_ACEOF |
| 1779 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1780 | _ACEOF |
| 1781 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1782 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1783 | cat >>confdefs.h <<_ACEOF |
| 1784 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1785 | _ACEOF |
| 1786 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1787 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1788 | cat >>confdefs.h <<_ACEOF |
| 1789 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1790 | _ACEOF |
| 1791 | |
| 1792 | |
| 1793 | # 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] | 1794 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1795 | if test -n "$CONFIG_SITE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1796 | set x "$CONFIG_SITE" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1797 | elif test "x$prefix" != xNONE; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1798 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1799 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1800 | set x "$ac_default_prefix/share/config.site" \ |
| 1801 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1802 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1803 | shift |
| 1804 | for ac_site_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1805 | do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1806 | if test -r "$ac_site_file"; then |
| 1807 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1808 | echo "$as_me: loading site script $ac_site_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1809 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1810 | . "$ac_site_file" |
| 1811 | fi |
| 1812 | done |
| 1813 | |
| 1814 | if test -r "$cache_file"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1815 | # Some versions of bash will fail to source /dev/null (special |
| 1816 | # files actually), so we avoid doing that. |
| 1817 | if test -f "$cache_file"; then |
| 1818 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1819 | echo "$as_me: loading cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1820 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1821 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1822 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1823 | esac |
| 1824 | fi |
| 1825 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1826 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1827 | echo "$as_me: creating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1828 | >$cache_file |
| 1829 | fi |
| 1830 | |
| 1831 | # Check that the precious variables saved in the cache have kept the same |
| 1832 | # value. |
| 1833 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1834 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1835 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1836 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1837 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1838 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1839 | case $ac_old_set,$ac_new_set in |
| 1840 | set,) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1841 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1842 | 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] | 1843 | ac_cache_corrupted=: ;; |
| 1844 | ,set) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1845 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1846 | 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] | 1847 | ac_cache_corrupted=: ;; |
| 1848 | ,);; |
| 1849 | *) |
| 1850 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1851 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1852 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1853 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1854 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1855 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1856 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1857 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1858 | fi;; |
| 1859 | esac |
| 1860 | # Pass precious variables to config.status. |
| 1861 | if test "$ac_new_set" = set; then |
| 1862 | case $ac_new_val in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1863 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1864 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1865 | esac |
| 1866 | case " $ac_configure_args " in |
| 1867 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1868 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1869 | esac |
| 1870 | fi |
| 1871 | done |
| 1872 | if $ac_cache_corrupted; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1873 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1874 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1875 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1876 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1877 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1878 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1879 | |
| 1880 | |
| 1881 | |
| 1882 | |
| 1883 | |
| 1884 | |
| 1885 | |
| 1886 | |
| 1887 | |
| 1888 | |
| 1889 | |
| 1890 | |
| 1891 | |
| 1892 | |
| 1893 | |
| 1894 | |
| 1895 | |
| 1896 | |
| 1897 | |
| 1898 | |
| 1899 | |
| 1900 | |
| 1901 | |
| 1902 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1903 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1904 | ac_ext=c |
| 1905 | ac_cpp='$CPP $CPPFLAGS' |
| 1906 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1907 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1908 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1909 | |
| 1910 | |
| 1911 | |
John Criswell | 5a12971 | 2010-03-19 21:04:16 +0000 | [diff] [blame] | 1912 | LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1913 | |
| 1914 | |
| 1915 | |
| 1916 | |
| 1917 | |
| 1918 | |
| 1919 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1920 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1921 | for ac_dir in autoconf "$srcdir"/autoconf; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1922 | if test -f "$ac_dir/install-sh"; then |
| 1923 | ac_aux_dir=$ac_dir |
| 1924 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1925 | break |
| 1926 | elif test -f "$ac_dir/install.sh"; then |
| 1927 | ac_aux_dir=$ac_dir |
| 1928 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1929 | break |
| 1930 | elif test -f "$ac_dir/shtool"; then |
| 1931 | ac_aux_dir=$ac_dir |
| 1932 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1933 | break |
| 1934 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1935 | done |
| 1936 | if test -z "$ac_aux_dir"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1937 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 1938 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} |
| 1939 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1940 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1941 | |
| 1942 | # These three variables are undocumented and unsupported, |
| 1943 | # and are intended to be withdrawn in a future Autoconf release. |
| 1944 | # They can cause serious problems if a builder's source tree is in a directory |
| 1945 | # whose full name contains unusual characters. |
| 1946 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1947 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1948 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1949 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1950 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 1951 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1952 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1953 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1954 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
| 1955 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 1956 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1957 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 1958 | fi |
| 1959 | |
John Criswell | 0157f50 | 2010-03-19 21:31:39 +0000 | [diff] [blame] | 1960 | |
| 1961 | |
| 1962 | if test -d ${srcdir}/projects/llvm-gcc ; then |
| 1963 | subdirs="$subdirs projects/llvm-gcc" |
| 1964 | |
| 1965 | fi |
| 1966 | |
| 1967 | if test -d ${srcdir}/projects/test-suite ; then |
| 1968 | subdirs="$subdirs projects/test-suite" |
| 1969 | |
| 1970 | fi |
| 1971 | |
| 1972 | if test -d ${srcdir}/projects/llvm-test ; then |
| 1973 | subdirs="$subdirs projects/llvm-test" |
| 1974 | |
| 1975 | fi |
| 1976 | |
| 1977 | if test -d ${srcdir}/projects/poolalloc ; then |
| 1978 | subdirs="$subdirs projects/poolalloc" |
| 1979 | |
| 1980 | fi |
| 1981 | |
| 1982 | if test -d ${srcdir}/projects/llvm-poolalloc ; then |
| 1983 | subdirs="$subdirs projects/llvm-poolalloc" |
| 1984 | |
| 1985 | fi |
| 1986 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 1987 | for i in `ls ${srcdir}/projects` |
| 1988 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1989 | if test -d ${srcdir}/projects/${i} ; then |
| 1990 | case ${i} in |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1991 | CVS) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 1992 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1993 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1994 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 1995 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1996 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1997 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 1998 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 1999 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2000 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 2001 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2002 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2003 | ;; |
John Criswell | 7def293 | 2010-02-25 22:57:19 +0000 | [diff] [blame] | 2004 | safecode) subdirs="$subdirs projects/safecode" |
| 2005 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2006 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2007 | ;; |
John Criswell | 52c0286 | 2010-03-25 13:59:09 +0000 | [diff] [blame] | 2008 | llvm-gcc) ;; |
| 2009 | test-suite) ;; |
| 2010 | llvm-test) ;; |
| 2011 | poolalloc) ;; |
| 2012 | llvm-poolalloc) ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2013 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2014 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2015 | 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] | 2016 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2017 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2018 | fi |
| 2019 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2020 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2021 | |
| 2022 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2023 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2024 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2025 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 2026 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2027 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2028 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2029 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 2030 | if test "${ac_cv_build+set}" = set; then |
| 2031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2032 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2033 | ac_build_alias=$build_alias |
| 2034 | test "x$ac_build_alias" = x && |
| 2035 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2036 | test "x$ac_build_alias" = x && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2037 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2038 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2039 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2040 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2041 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2042 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 2043 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2044 | |
| 2045 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2046 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2047 | echo "${ECHO_T}$ac_cv_build" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2048 | case $ac_cv_build in |
| 2049 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2050 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2051 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2052 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2053 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2054 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2055 | ac_save_IFS=$IFS; IFS='-' |
| 2056 | set x $ac_cv_build |
| 2057 | shift |
| 2058 | build_cpu=$1 |
| 2059 | build_vendor=$2 |
| 2060 | shift; shift |
| 2061 | # Remember, the first character of IFS is used to create $*, |
| 2062 | # except with old shells: |
| 2063 | build_os=$* |
| 2064 | IFS=$ac_save_IFS |
| 2065 | 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] | 2066 | |
| 2067 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2068 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2069 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 2070 | if test "${ac_cv_host+set}" = set; then |
| 2071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2072 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2073 | if test "x$host_alias" = x; then |
| 2074 | ac_cv_host=$ac_cv_build |
| 2075 | else |
| 2076 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2077 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2078 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 2079 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2080 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2081 | |
| 2082 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2083 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2084 | echo "${ECHO_T}$ac_cv_host" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2085 | case $ac_cv_host in |
| 2086 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2087 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2088 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2089 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2090 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2091 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2092 | ac_save_IFS=$IFS; IFS='-' |
| 2093 | set x $ac_cv_host |
| 2094 | shift |
| 2095 | host_cpu=$1 |
| 2096 | host_vendor=$2 |
| 2097 | shift; shift |
| 2098 | # Remember, the first character of IFS is used to create $*, |
| 2099 | # except with old shells: |
| 2100 | host_os=$* |
| 2101 | IFS=$ac_save_IFS |
| 2102 | 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] | 2103 | |
| 2104 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2105 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2106 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 2107 | if test "${ac_cv_target+set}" = set; then |
| 2108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2109 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2110 | if test "x$target_alias" = x; then |
| 2111 | ac_cv_target=$ac_cv_host |
| 2112 | else |
| 2113 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2114 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2115 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 2116 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2117 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2118 | |
| 2119 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2120 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2121 | echo "${ECHO_T}$ac_cv_target" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2122 | case $ac_cv_target in |
| 2123 | *-*-*) ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2124 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2125 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2126 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2127 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2128 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2129 | ac_save_IFS=$IFS; IFS='-' |
| 2130 | set x $ac_cv_target |
| 2131 | shift |
| 2132 | target_cpu=$1 |
| 2133 | target_vendor=$2 |
| 2134 | shift; shift |
| 2135 | # Remember, the first character of IFS is used to create $*, |
| 2136 | # except with old shells: |
| 2137 | target_os=$* |
| 2138 | IFS=$ac_save_IFS |
| 2139 | 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] | 2140 | |
| 2141 | |
| 2142 | # The aliases save the names the user supplied, while $host etc. |
| 2143 | # will get canonicalized. |
| 2144 | test -n "$target_alias" && |
| 2145 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2146 | NONENONEs,x,x, && |
| 2147 | program_prefix=${target_alias}- |
| 2148 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2149 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2150 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } |
| 2151 | if test "${llvm_cv_os_type+set}" = set; then |
| 2152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2153 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2154 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2155 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2156 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2157 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2158 | llvm_cv_os_type="AIX" |
| 2159 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2160 | *-*-irix*) |
| 2161 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2162 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2163 | llvm_cv_os_type="IRIX" |
| 2164 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2165 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2166 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2167 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2168 | llvm_cv_os_type="Cygwin" |
| 2169 | llvm_cv_platform_type="Unix" ;; |
| 2170 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2171 | llvm_cv_link_all_option="-Wl,-all_load" |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 2172 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2173 | llvm_cv_os_type="Darwin" |
| 2174 | llvm_cv_platform_type="Unix" ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 2175 | *-*-minix*) |
| 2176 | llvm_cv_link_all_option="-Wl,-all_load" |
| 2177 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 2178 | llvm_cv_os_type="Minix" |
| 2179 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2180 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2181 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2182 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2183 | llvm_cv_os_type="FreeBSD" |
| 2184 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2185 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2186 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2187 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2188 | llvm_cv_os_type="OpenBSD" |
| 2189 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2190 | *-*-netbsd*) |
| 2191 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2192 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2193 | llvm_cv_os_type="NetBSD" |
| 2194 | llvm_cv_platform_type="Unix" ;; |
Matthijs Kooijman | f512281 | 2008-06-26 10:36:58 +0000 | [diff] [blame] | 2195 | *-*-dragonfly*) |
| 2196 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2197 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2198 | llvm_cv_os_type="DragonFly" |
| 2199 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2200 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2201 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2202 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2203 | llvm_cv_os_type="HP-UX" |
| 2204 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2205 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2206 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2207 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2208 | llvm_cv_os_type="Interix" |
| 2209 | llvm_cv_platform_type="Unix" ;; |
| 2210 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2211 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2212 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2213 | llvm_cv_os_type="Linux" |
| 2214 | llvm_cv_platform_type="Unix" ;; |
| 2215 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2216 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2217 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2218 | llvm_cv_os_type="SunOS" |
| 2219 | llvm_cv_platform_type="Unix" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2220 | *-*-auroraux*) |
| 2221 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2222 | llvm_cv_link_all_option="-Wl,-z,defaultextract" |
| 2223 | llvm_cv_os_type="AuroraUX" |
| 2224 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2225 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2226 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2227 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2228 | llvm_cv_os_type="Win32" |
| 2229 | llvm_cv_platform_type="Win32" ;; |
| 2230 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2231 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2232 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2233 | llvm_cv_os_type="MingW" |
| 2234 | llvm_cv_platform_type="Win32" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2235 | *-*-haiku*) |
| 2236 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2237 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2238 | llvm_cv_os_type="Haiku" |
| 2239 | llvm_cv_platform_type="Unix" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2240 | *-unknown-eabi*) |
| 2241 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2242 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2243 | llvm_cv_os_type="Freestanding" |
| 2244 | llvm_cv_platform_type="Unix" ;; |
| 2245 | *-unknown-elf*) |
| 2246 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2247 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2248 | llvm_cv_os_type="Freestanding" |
| 2249 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2250 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2251 | llvm_cv_link_all_option="" |
| 2252 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2253 | llvm_cv_os_type="Unknown" |
| 2254 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2255 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2256 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2257 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2258 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2259 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2260 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 2261 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 2262 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 2263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2264 | else |
| 2265 | case $target in |
| 2266 | *-*-aix*) |
| 2267 | llvm_cv_target_os_type="AIX" ;; |
| 2268 | *-*-irix*) |
| 2269 | llvm_cv_target_os_type="IRIX" ;; |
| 2270 | *-*-cygwin*) |
| 2271 | llvm_cv_target_os_type="Cygwin" ;; |
| 2272 | *-*-darwin*) |
| 2273 | llvm_cv_target_os_type="Darwin" ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 2274 | *-*-minix*) |
| 2275 | llvm_cv_target_os_type="Minix" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2276 | *-*-freebsd*) |
| 2277 | llvm_cv_target_os_type="FreeBSD" ;; |
| 2278 | *-*-openbsd*) |
| 2279 | llvm_cv_target_os_type="OpenBSD" ;; |
| 2280 | *-*-netbsd*) |
| 2281 | llvm_cv_target_os_type="NetBSD" ;; |
| 2282 | *-*-dragonfly*) |
| 2283 | llvm_cv_target_os_type="DragonFly" ;; |
| 2284 | *-*-hpux*) |
| 2285 | llvm_cv_target_os_type="HP-UX" ;; |
| 2286 | *-*-interix*) |
| 2287 | llvm_cv_target_os_type="Interix" ;; |
| 2288 | *-*-linux*) |
| 2289 | llvm_cv_target_os_type="Linux" ;; |
| 2290 | *-*-solaris*) |
| 2291 | llvm_cv_target_os_type="SunOS" ;; |
Edward O'Callaghan | 2b19d69 | 2009-10-14 00:44:50 +0000 | [diff] [blame] | 2292 | *-*-auroraux*) |
| 2293 | llvm_cv_target_os_type="AuroraUX" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2294 | *-*-win32*) |
| 2295 | llvm_cv_target_os_type="Win32" ;; |
| 2296 | *-*-mingw*) |
| 2297 | llvm_cv_target_os_type="MingW" ;; |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 2298 | *-*-haiku*) |
| 2299 | llvm_cv_target_os_type="Haiku" ;; |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2300 | *-unknown-eabi*) |
| 2301 | llvm_cv_target_os_type="Freestanding" ;; |
| 2302 | *) |
| 2303 | llvm_cv_target_os_type="Unknown" ;; |
| 2304 | esac |
| 2305 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2306 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 2307 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2308 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2309 | if test "$llvm_cv_os_type" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2310 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2311 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
| 2312 | { (exit 1); exit 1; }; } |
Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 2313 | fi |
| 2314 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2315 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2316 | |
Anton Korobeynikov | 0855f10 | 2009-08-18 00:40:51 +0000 | [diff] [blame] | 2317 | HOST_OS=$llvm_cv_os_type |
| 2318 | |
| 2319 | TARGET_OS=$llvm_cv_target_os_type |
| 2320 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2321 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2322 | LINKALL=$llvm_cv_link_all_option |
| 2323 | |
| 2324 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2325 | |
| 2326 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2327 | case $llvm_cv_platform_type in |
| 2328 | Unix) |
| 2329 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2330 | cat >>confdefs.h <<\_ACEOF |
| 2331 | #define LLVM_ON_UNIX 1 |
| 2332 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2333 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2334 | LLVM_ON_UNIX=1 |
| 2335 | |
| 2336 | LLVM_ON_WIN32=0 |
| 2337 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2338 | ;; |
| 2339 | Win32) |
| 2340 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2341 | cat >>confdefs.h <<\_ACEOF |
| 2342 | #define LLVM_ON_WIN32 1 |
| 2343 | _ACEOF |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2344 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2345 | LLVM_ON_UNIX=0 |
| 2346 | |
| 2347 | LLVM_ON_WIN32=1 |
| 2348 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2349 | ;; |
| 2350 | esac |
| 2351 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2352 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2353 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
| 2354 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2356 | else |
| 2357 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2358 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2359 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2360 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2361 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2362 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Nick Lewycky | fa8ffc1 | 2009-04-18 18:11:26 +0000 | [diff] [blame] | 2363 | arm*-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2364 | mips-*) llvm_cv_target_arch="Mips" ;; |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 2365 | pic16-*) llvm_cv_target_arch="PIC16" ;; |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 2366 | xcore-*) llvm_cv_target_arch="XCore" ;; |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 2367 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 2368 | s390x-*) llvm_cv_target_arch="SystemZ" ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 2369 | bfin-*) llvm_cv_target_arch="Blackfin" ;; |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 2370 | mblaze-*) llvm_cv_target_arch="MBlaze" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2371 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2372 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2373 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2374 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2375 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2376 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2377 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2378 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2379 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2380 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2381 | |
Nick Lewycky | 83fc447 | 2009-09-29 05:48:51 +0000 | [diff] [blame] | 2382 | # Determine the LLVM native architecture for the target |
| 2383 | case "$llvm_cv_target_arch" in |
| 2384 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 2385 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 2386 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 2387 | esac |
| 2388 | |
| 2389 | ARCH=$llvm_cv_target_arch |
| 2390 | |
| 2391 | |
| 2392 | ac_ext=c |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2393 | ac_cpp='$CPP $CPPFLAGS' |
| 2394 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2395 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2396 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2397 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2398 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2399 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2400 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2401 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2402 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2404 | else |
| 2405 | if test -n "$CC"; then |
| 2406 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2407 | else |
| 2408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2409 | for as_dir in $PATH |
| 2410 | do |
| 2411 | IFS=$as_save_IFS |
| 2412 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2413 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2414 | 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] | 2415 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2416 | 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] | 2417 | break 2 |
| 2418 | fi |
| 2419 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2420 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2421 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2422 | |
| 2423 | fi |
| 2424 | fi |
| 2425 | CC=$ac_cv_prog_CC |
| 2426 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2427 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2428 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2429 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2430 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2431 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2432 | fi |
| 2433 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2434 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2435 | fi |
| 2436 | if test -z "$ac_cv_prog_CC"; then |
| 2437 | ac_ct_CC=$CC |
| 2438 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2439 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2440 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2441 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2442 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2444 | else |
| 2445 | if test -n "$ac_ct_CC"; then |
| 2446 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2447 | else |
| 2448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2449 | for as_dir in $PATH |
| 2450 | do |
| 2451 | IFS=$as_save_IFS |
| 2452 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2453 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2454 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2455 | ac_cv_prog_ac_ct_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2456 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2457 | break 2 |
| 2458 | fi |
| 2459 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2460 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2461 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2462 | |
| 2463 | fi |
| 2464 | fi |
| 2465 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2466 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2467 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2468 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2469 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2470 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2471 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2472 | fi |
| 2473 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2474 | if test "x$ac_ct_CC" = x; then |
| 2475 | CC="" |
| 2476 | else |
| 2477 | case $cross_compiling:$ac_tool_warned in |
| 2478 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2479 | { echo "$as_me:$LINENO: 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." >&5 |
| 2482 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2483 | whose name does not start with the host triplet. If you think this |
| 2484 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2485 | ac_tool_warned=yes ;; |
| 2486 | esac |
| 2487 | CC=$ac_ct_CC |
| 2488 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2489 | else |
| 2490 | CC="$ac_cv_prog_CC" |
| 2491 | fi |
| 2492 | |
| 2493 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2494 | if test -n "$ac_tool_prefix"; then |
| 2495 | # 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] | 2496 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2497 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2498 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2499 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2501 | else |
| 2502 | if test -n "$CC"; then |
| 2503 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2504 | else |
| 2505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2506 | for as_dir in $PATH |
| 2507 | do |
| 2508 | IFS=$as_save_IFS |
| 2509 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2510 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2511 | 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] | 2512 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2513 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2514 | break 2 |
| 2515 | fi |
| 2516 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2517 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2518 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2519 | |
| 2520 | fi |
| 2521 | fi |
| 2522 | CC=$ac_cv_prog_CC |
| 2523 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2524 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2525 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2526 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2527 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2528 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2529 | fi |
| 2530 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2531 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2532 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2533 | fi |
| 2534 | if test -z "$CC"; then |
| 2535 | # Extract the first word of "cc", so it can be a program name with args. |
| 2536 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2537 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2538 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2539 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2541 | else |
| 2542 | if test -n "$CC"; then |
| 2543 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2544 | else |
| 2545 | ac_prog_rejected=no |
| 2546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2547 | for as_dir in $PATH |
| 2548 | do |
| 2549 | IFS=$as_save_IFS |
| 2550 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2551 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2552 | 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] | 2553 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2554 | ac_prog_rejected=yes |
| 2555 | continue |
| 2556 | fi |
| 2557 | ac_cv_prog_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2558 | 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] | 2559 | break 2 |
| 2560 | fi |
| 2561 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2562 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2563 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2564 | |
| 2565 | if test $ac_prog_rejected = yes; then |
| 2566 | # We found a bogon in the path, so make sure we never use it. |
| 2567 | set dummy $ac_cv_prog_CC |
| 2568 | shift |
| 2569 | if test $# != 0; then |
| 2570 | # We chose a different compiler from the bogus one. |
| 2571 | # However, it has the same basename, so the bogon will be chosen |
| 2572 | # first if we set CC to just the basename; use the full file name. |
| 2573 | shift |
| 2574 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2575 | fi |
| 2576 | fi |
| 2577 | fi |
| 2578 | fi |
| 2579 | CC=$ac_cv_prog_CC |
| 2580 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2581 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2582 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2583 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2584 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2585 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2586 | fi |
| 2587 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2588 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2589 | fi |
| 2590 | if test -z "$CC"; then |
| 2591 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2592 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2593 | do |
| 2594 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2595 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2596 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2597 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2598 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2600 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2601 | if test -n "$CC"; then |
| 2602 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2603 | else |
| 2604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2605 | for as_dir in $PATH |
| 2606 | do |
| 2607 | IFS=$as_save_IFS |
| 2608 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2609 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2610 | 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] | 2611 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2612 | 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] | 2613 | break 2 |
| 2614 | fi |
| 2615 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2616 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2617 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2618 | |
| 2619 | fi |
| 2620 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2621 | CC=$ac_cv_prog_CC |
| 2622 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2623 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2624 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2625 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2626 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2627 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2628 | fi |
| 2629 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2630 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2631 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2632 | done |
| 2633 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2634 | if test -z "$CC"; then |
| 2635 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2636 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2637 | do |
| 2638 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2639 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2640 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2641 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2642 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2644 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2645 | if test -n "$ac_ct_CC"; then |
| 2646 | 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] | 2647 | else |
| 2648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2649 | for as_dir in $PATH |
| 2650 | do |
| 2651 | IFS=$as_save_IFS |
| 2652 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2653 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2654 | 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] | 2655 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2656 | 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] | 2657 | break 2 |
| 2658 | fi |
| 2659 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2660 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2661 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2662 | |
| 2663 | fi |
| 2664 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2665 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2666 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2667 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2668 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2669 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2670 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2671 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2672 | fi |
| 2673 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2674 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2675 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2676 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2677 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2678 | if test "x$ac_ct_CC" = x; then |
| 2679 | CC="" |
| 2680 | else |
| 2681 | case $cross_compiling:$ac_tool_warned in |
| 2682 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2683 | { echo "$as_me:$LINENO: 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." >&5 |
| 2686 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2687 | whose name does not start with the host triplet. If you think this |
| 2688 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2689 | ac_tool_warned=yes ;; |
| 2690 | esac |
| 2691 | CC=$ac_ct_CC |
| 2692 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2693 | fi |
| 2694 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2695 | fi |
| 2696 | |
| 2697 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2698 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2699 | See \`config.log' for more details." >&5 |
| 2700 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2701 | See \`config.log' for more details." >&2;} |
| 2702 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2703 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2704 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2705 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2706 | ac_compiler=`set X $ac_compile; echo $2` |
| 2707 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2708 | case "(($ac_try" in |
| 2709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2710 | *) ac_try_echo=$ac_try;; |
| 2711 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2713 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2714 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2716 | (exit $ac_status); } |
| 2717 | { (ac_try="$ac_compiler -v >&5" |
| 2718 | case "(($ac_try" in |
| 2719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2720 | *) ac_try_echo=$ac_try;; |
| 2721 | esac |
| 2722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2723 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2724 | ac_status=$? |
| 2725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2726 | (exit $ac_status); } |
| 2727 | { (ac_try="$ac_compiler -V >&5" |
| 2728 | case "(($ac_try" in |
| 2729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2730 | *) ac_try_echo=$ac_try;; |
| 2731 | esac |
| 2732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2733 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2734 | ac_status=$? |
| 2735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2736 | (exit $ac_status); } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2737 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2738 | cat >conftest.$ac_ext <<_ACEOF |
| 2739 | /* confdefs.h. */ |
| 2740 | _ACEOF |
| 2741 | cat confdefs.h >>conftest.$ac_ext |
| 2742 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2743 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2744 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2745 | int |
| 2746 | main () |
| 2747 | { |
| 2748 | |
| 2749 | ; |
| 2750 | return 0; |
| 2751 | } |
| 2752 | _ACEOF |
| 2753 | ac_clean_files_save=$ac_clean_files |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2754 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2755 | # Try to create an executable without -o first, disregard a.out. |
| 2756 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2757 | # of exeext. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2758 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2759 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2760 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2761 | # |
| 2762 | # List of possible output files, starting from the most likely. |
| 2763 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2764 | # only as a last resort. b.out is created by i960 compilers. |
| 2765 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2766 | # |
| 2767 | # The IRIX 6 linker writes into existing files which may not be |
| 2768 | # executable, retaining their permissions. Remove them first so a |
| 2769 | # subsequent execution test works. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2770 | ac_rmfiles= |
| 2771 | for ac_file in $ac_files |
| 2772 | do |
| 2773 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2774 | *.$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] | 2775 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2776 | esac |
| 2777 | done |
| 2778 | rm -f $ac_rmfiles |
| 2779 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2780 | if { (ac_try="$ac_link_default" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2781 | case "(($ac_try" in |
| 2782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2783 | *) ac_try_echo=$ac_try;; |
| 2784 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2786 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2787 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2789 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2790 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2791 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2792 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2793 | # so that the user can short-circuit this test for compilers unknown to |
| 2794 | # Autoconf. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2795 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2796 | do |
| 2797 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2798 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2799 | *.$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] | 2800 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2801 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2802 | # We found the default executable, but exeext='' is most |
| 2803 | # certainly right. |
| 2804 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2805 | *.* ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2806 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2807 | then :; else |
| 2808 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2809 | fi |
| 2810 | # We set ac_cv_exeext here because the later test for it is not |
| 2811 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2812 | # argument, so we may need to know it at that point already. |
| 2813 | # Even if this section looks crufty: it has the advantage of |
| 2814 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2815 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2816 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2817 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2818 | esac |
| 2819 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2820 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2821 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2822 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2823 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2825 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2826 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2827 | See \`config.log' for more details." >&5 |
| 2828 | echo "$as_me: error: C compiler cannot create executables |
| 2829 | See \`config.log' for more details." >&2;} |
| 2830 | { (exit 77); exit 77; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2831 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2832 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2833 | ac_exeext=$ac_cv_exeext |
| 2834 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2835 | echo "${ECHO_T}$ac_file" >&6; } |
| 2836 | |
| 2837 | # Check that the compiler produces executables we can run. If not, either |
| 2838 | # the compiler is broken, or we cross compile. |
| 2839 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2840 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2841 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2842 | # If not cross compiling, check that we can run a simple program. |
| 2843 | if test "$cross_compiling" != yes; then |
| 2844 | if { ac_try='./$ac_file' |
| 2845 | { (case "(($ac_try" in |
| 2846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2847 | *) ac_try_echo=$ac_try;; |
| 2848 | esac |
| 2849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2850 | (eval "$ac_try") 2>&5 |
| 2851 | ac_status=$? |
| 2852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2853 | (exit $ac_status); }; }; then |
| 2854 | cross_compiling=no |
| 2855 | else |
| 2856 | if test "$cross_compiling" = maybe; then |
| 2857 | cross_compiling=yes |
| 2858 | else |
| 2859 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2860 | If you meant to cross compile, use \`--host'. |
| 2861 | See \`config.log' for more details." >&5 |
| 2862 | echo "$as_me: error: cannot run C compiled programs. |
| 2863 | If you meant to cross compile, use \`--host'. |
| 2864 | See \`config.log' for more details." >&2;} |
| 2865 | { (exit 1); exit 1; }; } |
| 2866 | fi |
| 2867 | fi |
| 2868 | fi |
| 2869 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2870 | echo "${ECHO_T}yes" >&6; } |
| 2871 | |
| 2872 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2873 | ac_clean_files=$ac_clean_files_save |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2874 | # Check that the compiler produces executables we can run. If not, either |
| 2875 | # the compiler is broken, or we cross compile. |
| 2876 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2877 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2878 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2879 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2880 | |
| 2881 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2882 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2883 | if { (ac_try="$ac_link" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2884 | case "(($ac_try" in |
| 2885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2886 | *) ac_try_echo=$ac_try;; |
| 2887 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2889 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2890 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2892 | (exit $ac_status); }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2893 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2894 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2895 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2896 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2897 | for ac_file in conftest.exe conftest conftest.*; do |
| 2898 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2899 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2900 | *.$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] | 2901 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2902 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2903 | * ) break;; |
| 2904 | esac |
| 2905 | done |
| 2906 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2907 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2908 | See \`config.log' for more details." >&5 |
| 2909 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2910 | See \`config.log' for more details." >&2;} |
| 2911 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2912 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2913 | |
| 2914 | rm -f conftest$ac_cv_exeext |
| 2915 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2916 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2917 | |
| 2918 | rm -f conftest.$ac_ext |
| 2919 | EXEEXT=$ac_cv_exeext |
| 2920 | ac_exeext=$EXEEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2921 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2922 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2923 | if test "${ac_cv_objext+set}" = set; then |
| 2924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 2925 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2926 | cat >conftest.$ac_ext <<_ACEOF |
| 2927 | /* confdefs.h. */ |
| 2928 | _ACEOF |
| 2929 | cat confdefs.h >>conftest.$ac_ext |
| 2930 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2931 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2932 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2933 | int |
| 2934 | main () |
| 2935 | { |
| 2936 | |
| 2937 | ; |
| 2938 | return 0; |
| 2939 | } |
| 2940 | _ACEOF |
| 2941 | rm -f conftest.o conftest.obj |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2942 | if { (ac_try="$ac_compile" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2943 | case "(($ac_try" in |
| 2944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2945 | *) ac_try_echo=$ac_try;; |
| 2946 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2948 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2949 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2951 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2952 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2953 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2954 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2955 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2956 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2957 | break;; |
| 2958 | esac |
| 2959 | done |
| 2960 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2961 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2963 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2964 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2965 | See \`config.log' for more details." >&5 |
| 2966 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2967 | See \`config.log' for more details." >&2;} |
| 2968 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2969 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2970 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2971 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2972 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2973 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2974 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2975 | OBJEXT=$ac_cv_objext |
| 2976 | ac_objext=$OBJEXT |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2977 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2978 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 2979 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2981 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 2982 | cat >conftest.$ac_ext <<_ACEOF |
| 2983 | /* confdefs.h. */ |
| 2984 | _ACEOF |
| 2985 | cat confdefs.h >>conftest.$ac_ext |
| 2986 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2987 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2988 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2989 | int |
| 2990 | main () |
| 2991 | { |
| 2992 | #ifndef __GNUC__ |
| 2993 | choke me |
| 2994 | #endif |
| 2995 | |
| 2996 | ; |
| 2997 | return 0; |
| 2998 | } |
| 2999 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3000 | rm -f conftest.$ac_objext |
| 3001 | if { (ac_try="$ac_compile" |
| 3002 | case "(($ac_try" in |
| 3003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3004 | *) ac_try_echo=$ac_try;; |
| 3005 | esac |
| 3006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3007 | (eval "$ac_compile") 2>conftest.er1 |
| 3008 | ac_status=$? |
| 3009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3010 | rm -f conftest.er1 |
| 3011 | cat conftest.err >&5 |
| 3012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3013 | (exit $ac_status); } && |
| 3014 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3015 | { (case "(($ac_try" in |
| 3016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3017 | *) ac_try_echo=$ac_try;; |
| 3018 | esac |
| 3019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3020 | (eval "$ac_try") 2>&5 |
| 3021 | ac_status=$? |
| 3022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3023 | (exit $ac_status); }; } && |
| 3024 | { ac_try='test -s conftest.$ac_objext' |
| 3025 | { (case "(($ac_try" in |
| 3026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3027 | *) ac_try_echo=$ac_try;; |
| 3028 | esac |
| 3029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3030 | (eval "$ac_try") 2>&5 |
| 3031 | ac_status=$? |
| 3032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3033 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3034 | ac_compiler_gnu=yes |
| 3035 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3036 | echo "$as_me: failed program was:" >&5 |
| 3037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3038 | |
| 3039 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3040 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3041 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3043 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3044 | |
| 3045 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3046 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3047 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 3048 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3049 | ac_test_CFLAGS=${CFLAGS+set} |
| 3050 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3051 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3052 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 3053 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3055 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3056 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3057 | ac_c_werror_flag=yes |
| 3058 | ac_cv_prog_cc_g=no |
| 3059 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3060 | cat >conftest.$ac_ext <<_ACEOF |
| 3061 | /* confdefs.h. */ |
| 3062 | _ACEOF |
| 3063 | cat confdefs.h >>conftest.$ac_ext |
| 3064 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3065 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3066 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3067 | int |
| 3068 | main () |
| 3069 | { |
| 3070 | |
| 3071 | ; |
| 3072 | return 0; |
| 3073 | } |
| 3074 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3075 | rm -f conftest.$ac_objext |
| 3076 | if { (ac_try="$ac_compile" |
| 3077 | case "(($ac_try" in |
| 3078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3079 | *) ac_try_echo=$ac_try;; |
| 3080 | esac |
| 3081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3082 | (eval "$ac_compile") 2>conftest.er1 |
| 3083 | ac_status=$? |
| 3084 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3085 | rm -f conftest.er1 |
| 3086 | cat conftest.err >&5 |
| 3087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3088 | (exit $ac_status); } && |
| 3089 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3090 | { (case "(($ac_try" in |
| 3091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3092 | *) ac_try_echo=$ac_try;; |
| 3093 | esac |
| 3094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3095 | (eval "$ac_try") 2>&5 |
| 3096 | ac_status=$? |
| 3097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3098 | (exit $ac_status); }; } && |
| 3099 | { ac_try='test -s conftest.$ac_objext' |
| 3100 | { (case "(($ac_try" in |
| 3101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3102 | *) ac_try_echo=$ac_try;; |
| 3103 | esac |
| 3104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3105 | (eval "$ac_try") 2>&5 |
| 3106 | ac_status=$? |
| 3107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3108 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3109 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3110 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3111 | echo "$as_me: failed program was:" >&5 |
| 3112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3113 | |
| 3114 | CFLAGS="" |
| 3115 | cat >conftest.$ac_ext <<_ACEOF |
| 3116 | /* confdefs.h. */ |
| 3117 | _ACEOF |
| 3118 | cat confdefs.h >>conftest.$ac_ext |
| 3119 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3120 | /* end confdefs.h. */ |
| 3121 | |
| 3122 | int |
| 3123 | main () |
| 3124 | { |
| 3125 | |
| 3126 | ; |
| 3127 | return 0; |
| 3128 | } |
| 3129 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3130 | rm -f conftest.$ac_objext |
| 3131 | if { (ac_try="$ac_compile" |
| 3132 | case "(($ac_try" in |
| 3133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3134 | *) ac_try_echo=$ac_try;; |
| 3135 | esac |
| 3136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3137 | (eval "$ac_compile") 2>conftest.er1 |
| 3138 | ac_status=$? |
| 3139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3140 | rm -f conftest.er1 |
| 3141 | cat conftest.err >&5 |
| 3142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3143 | (exit $ac_status); } && |
| 3144 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3145 | { (case "(($ac_try" in |
| 3146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3147 | *) ac_try_echo=$ac_try;; |
| 3148 | esac |
| 3149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3150 | (eval "$ac_try") 2>&5 |
| 3151 | ac_status=$? |
| 3152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3153 | (exit $ac_status); }; } && |
| 3154 | { ac_try='test -s conftest.$ac_objext' |
| 3155 | { (case "(($ac_try" in |
| 3156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3157 | *) ac_try_echo=$ac_try;; |
| 3158 | esac |
| 3159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3160 | (eval "$ac_try") 2>&5 |
| 3161 | ac_status=$? |
| 3162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3163 | (exit $ac_status); }; }; then |
| 3164 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3165 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3166 | echo "$as_me: failed program was:" >&5 |
| 3167 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3168 | |
| 3169 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3170 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3171 | cat >conftest.$ac_ext <<_ACEOF |
| 3172 | /* confdefs.h. */ |
| 3173 | _ACEOF |
| 3174 | cat confdefs.h >>conftest.$ac_ext |
| 3175 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3176 | /* end confdefs.h. */ |
| 3177 | |
| 3178 | int |
| 3179 | main () |
| 3180 | { |
| 3181 | |
| 3182 | ; |
| 3183 | return 0; |
| 3184 | } |
| 3185 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3186 | rm -f conftest.$ac_objext |
| 3187 | if { (ac_try="$ac_compile" |
| 3188 | case "(($ac_try" in |
| 3189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3190 | *) ac_try_echo=$ac_try;; |
| 3191 | esac |
| 3192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3193 | (eval "$ac_compile") 2>conftest.er1 |
| 3194 | ac_status=$? |
| 3195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3196 | rm -f conftest.er1 |
| 3197 | cat conftest.err >&5 |
| 3198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3199 | (exit $ac_status); } && |
| 3200 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3201 | { (case "(($ac_try" in |
| 3202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3203 | *) ac_try_echo=$ac_try;; |
| 3204 | esac |
| 3205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3206 | (eval "$ac_try") 2>&5 |
| 3207 | ac_status=$? |
| 3208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3209 | (exit $ac_status); }; } && |
| 3210 | { ac_try='test -s conftest.$ac_objext' |
| 3211 | { (case "(($ac_try" in |
| 3212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3213 | *) ac_try_echo=$ac_try;; |
| 3214 | esac |
| 3215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3216 | (eval "$ac_try") 2>&5 |
| 3217 | ac_status=$? |
| 3218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3219 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3220 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3221 | else |
| 3222 | echo "$as_me: failed program was:" >&5 |
| 3223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3224 | |
| 3225 | |
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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 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 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3233 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3235 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3236 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3237 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3238 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3239 | if test "$ac_test_CFLAGS" = set; then |
| 3240 | CFLAGS=$ac_save_CFLAGS |
| 3241 | elif test $ac_cv_prog_cc_g = yes; then |
| 3242 | if test "$GCC" = yes; then |
| 3243 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3244 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3245 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3246 | fi |
| 3247 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3248 | if test "$GCC" = yes; then |
| 3249 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3250 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3251 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3252 | fi |
| 3253 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3254 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3255 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3256 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 3257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3258 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3259 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3260 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3261 | cat >conftest.$ac_ext <<_ACEOF |
| 3262 | /* confdefs.h. */ |
| 3263 | _ACEOF |
| 3264 | cat confdefs.h >>conftest.$ac_ext |
| 3265 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3266 | /* end confdefs.h. */ |
| 3267 | #include <stdarg.h> |
| 3268 | #include <stdio.h> |
| 3269 | #include <sys/types.h> |
| 3270 | #include <sys/stat.h> |
| 3271 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3272 | struct buf { int x; }; |
| 3273 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3274 | static char *e (p, i) |
| 3275 | char **p; |
| 3276 | int i; |
| 3277 | { |
| 3278 | return p[i]; |
| 3279 | } |
| 3280 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3281 | { |
| 3282 | char *s; |
| 3283 | va_list v; |
| 3284 | va_start (v,p); |
| 3285 | s = g (p, va_arg (v,int)); |
| 3286 | va_end (v); |
| 3287 | return s; |
| 3288 | } |
| 3289 | |
| 3290 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3291 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3292 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3293 | 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] | 3294 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3295 | 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] | 3296 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3297 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3298 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3299 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3300 | inside strings and character constants. */ |
| 3301 | #define FOO(x) 'x' |
| 3302 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3303 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3304 | int test (int i, double x); |
| 3305 | struct s1 {int (*f) (int a);}; |
| 3306 | struct s2 {int (*f) (double a);}; |
| 3307 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3308 | int argc; |
| 3309 | char **argv; |
| 3310 | int |
| 3311 | main () |
| 3312 | { |
| 3313 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3314 | ; |
| 3315 | return 0; |
| 3316 | } |
| 3317 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3318 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3319 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3320 | do |
| 3321 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3322 | rm -f conftest.$ac_objext |
| 3323 | if { (ac_try="$ac_compile" |
| 3324 | case "(($ac_try" in |
| 3325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3326 | *) ac_try_echo=$ac_try;; |
| 3327 | esac |
| 3328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3329 | (eval "$ac_compile") 2>conftest.er1 |
| 3330 | ac_status=$? |
| 3331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3332 | rm -f conftest.er1 |
| 3333 | cat conftest.err >&5 |
| 3334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3335 | (exit $ac_status); } && |
| 3336 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3337 | { (case "(($ac_try" in |
| 3338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3339 | *) ac_try_echo=$ac_try;; |
| 3340 | esac |
| 3341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3342 | (eval "$ac_try") 2>&5 |
| 3343 | ac_status=$? |
| 3344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3345 | (exit $ac_status); }; } && |
| 3346 | { ac_try='test -s conftest.$ac_objext' |
| 3347 | { (case "(($ac_try" in |
| 3348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3349 | *) ac_try_echo=$ac_try;; |
| 3350 | esac |
| 3351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3352 | (eval "$ac_try") 2>&5 |
| 3353 | ac_status=$? |
| 3354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3355 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3356 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3357 | else |
| 3358 | echo "$as_me: failed program was:" >&5 |
| 3359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3360 | |
| 3361 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3362 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3363 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3364 | rm -f core conftest.err conftest.$ac_objext |
| 3365 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3366 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3367 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3368 | CC=$ac_save_CC |
| 3369 | |
| 3370 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3371 | # AC_CACHE_VAL |
| 3372 | case "x$ac_cv_prog_cc_c89" in |
| 3373 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3374 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3375 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3376 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3377 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3378 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3379 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3380 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3381 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3382 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3383 | esac |
| 3384 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3385 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3386 | ac_ext=c |
| 3387 | ac_cpp='$CPP $CPPFLAGS' |
| 3388 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3389 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3390 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3391 | |
| 3392 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3393 | ac_ext=c |
| 3394 | ac_cpp='$CPP $CPPFLAGS' |
| 3395 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3396 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3397 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3398 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3399 | 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] | 3400 | # On Suns, sometimes $CPP names a directory. |
| 3401 | if test -n "$CPP" && test -d "$CPP"; then |
| 3402 | CPP= |
| 3403 | fi |
| 3404 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3405 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3407 | else |
| 3408 | # Double quotes because CPP needs to be expanded |
| 3409 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3410 | do |
| 3411 | ac_preproc_ok=false |
| 3412 | for ac_c_preproc_warn_flag in '' yes |
| 3413 | do |
| 3414 | # Use a header file that comes with gcc, so configuring glibc |
| 3415 | # with a fresh cross-compiler works. |
| 3416 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3417 | # <limits.h> exists even on freestanding compilers. |
| 3418 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3419 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3420 | cat >conftest.$ac_ext <<_ACEOF |
| 3421 | /* confdefs.h. */ |
| 3422 | _ACEOF |
| 3423 | cat confdefs.h >>conftest.$ac_ext |
| 3424 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3425 | /* end confdefs.h. */ |
| 3426 | #ifdef __STDC__ |
| 3427 | # include <limits.h> |
| 3428 | #else |
| 3429 | # include <assert.h> |
| 3430 | #endif |
| 3431 | Syntax error |
| 3432 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3433 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3434 | case "(($ac_try" in |
| 3435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3436 | *) ac_try_echo=$ac_try;; |
| 3437 | esac |
| 3438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3439 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3440 | ac_status=$? |
| 3441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3442 | rm -f conftest.er1 |
| 3443 | cat conftest.err >&5 |
| 3444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3445 | (exit $ac_status); } >/dev/null; then |
| 3446 | if test -s conftest.err; then |
| 3447 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3448 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3449 | else |
| 3450 | ac_cpp_err= |
| 3451 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3452 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3453 | ac_cpp_err=yes |
| 3454 | fi |
| 3455 | if test -z "$ac_cpp_err"; then |
| 3456 | : |
| 3457 | else |
| 3458 | echo "$as_me: failed program was:" >&5 |
| 3459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3460 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3461 | # Broken: fails on valid input. |
| 3462 | continue |
| 3463 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3464 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3465 | rm -f conftest.err conftest.$ac_ext |
| 3466 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3467 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3468 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3469 | cat >conftest.$ac_ext <<_ACEOF |
| 3470 | /* confdefs.h. */ |
| 3471 | _ACEOF |
| 3472 | cat confdefs.h >>conftest.$ac_ext |
| 3473 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3474 | /* end confdefs.h. */ |
| 3475 | #include <ac_nonexistent.h> |
| 3476 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3477 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3478 | case "(($ac_try" in |
| 3479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3480 | *) ac_try_echo=$ac_try;; |
| 3481 | esac |
| 3482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3483 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3484 | ac_status=$? |
| 3485 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3486 | rm -f conftest.er1 |
| 3487 | cat conftest.err >&5 |
| 3488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3489 | (exit $ac_status); } >/dev/null; then |
| 3490 | if test -s conftest.err; then |
| 3491 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3492 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3493 | else |
| 3494 | ac_cpp_err= |
| 3495 | fi |
| 3496 | else |
| 3497 | ac_cpp_err=yes |
| 3498 | fi |
| 3499 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3500 | # Broken: success on invalid input. |
| 3501 | continue |
| 3502 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3503 | echo "$as_me: failed program was:" >&5 |
| 3504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3505 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3506 | # Passes both tests. |
| 3507 | ac_preproc_ok=: |
| 3508 | break |
| 3509 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3510 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3511 | rm -f conftest.err conftest.$ac_ext |
| 3512 | |
| 3513 | done |
| 3514 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3515 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3516 | if $ac_preproc_ok; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3517 | break |
| 3518 | fi |
| 3519 | |
| 3520 | done |
| 3521 | ac_cv_prog_CPP=$CPP |
| 3522 | |
| 3523 | fi |
| 3524 | CPP=$ac_cv_prog_CPP |
| 3525 | else |
| 3526 | ac_cv_prog_CPP=$CPP |
| 3527 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3528 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3529 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3530 | ac_preproc_ok=false |
| 3531 | for ac_c_preproc_warn_flag in '' yes |
| 3532 | do |
| 3533 | # Use a header file that comes with gcc, so configuring glibc |
| 3534 | # with a fresh cross-compiler works. |
| 3535 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3536 | # <limits.h> exists even on freestanding compilers. |
| 3537 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3538 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3539 | cat >conftest.$ac_ext <<_ACEOF |
| 3540 | /* confdefs.h. */ |
| 3541 | _ACEOF |
| 3542 | cat confdefs.h >>conftest.$ac_ext |
| 3543 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3544 | /* end confdefs.h. */ |
| 3545 | #ifdef __STDC__ |
| 3546 | # include <limits.h> |
| 3547 | #else |
| 3548 | # include <assert.h> |
| 3549 | #endif |
| 3550 | Syntax error |
| 3551 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3552 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3553 | case "(($ac_try" in |
| 3554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3555 | *) ac_try_echo=$ac_try;; |
| 3556 | esac |
| 3557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3558 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3559 | ac_status=$? |
| 3560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3561 | rm -f conftest.er1 |
| 3562 | cat conftest.err >&5 |
| 3563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3564 | (exit $ac_status); } >/dev/null; then |
| 3565 | if test -s conftest.err; then |
| 3566 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3567 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3568 | else |
| 3569 | ac_cpp_err= |
| 3570 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 3571 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3572 | ac_cpp_err=yes |
| 3573 | fi |
| 3574 | if test -z "$ac_cpp_err"; then |
| 3575 | : |
| 3576 | else |
| 3577 | echo "$as_me: failed program was:" >&5 |
| 3578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3579 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3580 | # Broken: fails on valid input. |
| 3581 | continue |
| 3582 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3583 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3584 | rm -f conftest.err conftest.$ac_ext |
| 3585 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3586 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3587 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3588 | cat >conftest.$ac_ext <<_ACEOF |
| 3589 | /* confdefs.h. */ |
| 3590 | _ACEOF |
| 3591 | cat confdefs.h >>conftest.$ac_ext |
| 3592 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3593 | /* end confdefs.h. */ |
| 3594 | #include <ac_nonexistent.h> |
| 3595 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3596 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3597 | case "(($ac_try" in |
| 3598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3599 | *) ac_try_echo=$ac_try;; |
| 3600 | esac |
| 3601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3602 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3603 | ac_status=$? |
| 3604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3605 | rm -f conftest.er1 |
| 3606 | cat conftest.err >&5 |
| 3607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3608 | (exit $ac_status); } >/dev/null; then |
| 3609 | if test -s conftest.err; then |
| 3610 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3611 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3612 | else |
| 3613 | ac_cpp_err= |
| 3614 | fi |
| 3615 | else |
| 3616 | ac_cpp_err=yes |
| 3617 | fi |
| 3618 | if test -z "$ac_cpp_err"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3619 | # Broken: success on invalid input. |
| 3620 | continue |
| 3621 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3622 | echo "$as_me: failed program was:" >&5 |
| 3623 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3624 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3625 | # Passes both tests. |
| 3626 | ac_preproc_ok=: |
| 3627 | break |
| 3628 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3629 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3630 | rm -f conftest.err conftest.$ac_ext |
| 3631 | |
| 3632 | done |
| 3633 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3634 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3635 | if $ac_preproc_ok; then |
| 3636 | : |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3637 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3638 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3639 | See \`config.log' for more details." >&5 |
| 3640 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3641 | See \`config.log' for more details." >&2;} |
| 3642 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3643 | fi |
| 3644 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3645 | ac_ext=c |
| 3646 | ac_cpp='$CPP $CPPFLAGS' |
| 3647 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3648 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3649 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3650 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3651 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3652 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3653 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3654 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3656 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3657 | # Extract the first word of "grep ggrep" to use in msg output |
| 3658 | if test -z "$GREP"; then |
| 3659 | set dummy grep ggrep; ac_prog_name=$2 |
| 3660 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3662 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3663 | ac_path_GREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3664 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3666 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3667 | do |
| 3668 | IFS=$as_save_IFS |
| 3669 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3670 | for ac_prog in grep ggrep; do |
| 3671 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3672 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3673 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3674 | # 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] | 3675 | # Check for GNU $ac_path_GREP |
| 3676 | case `"$ac_path_GREP" --version 2>&1` in |
| 3677 | *GNU*) |
| 3678 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3679 | *) |
| 3680 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3681 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3682 | while : |
| 3683 | do |
| 3684 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3685 | mv "conftest.tmp" "conftest.in" |
| 3686 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3687 | echo 'GREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3688 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3689 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3690 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3691 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3692 | # Best one so far, save it but keep looking for a better one |
| 3693 | ac_cv_path_GREP="$ac_path_GREP" |
| 3694 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3695 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3696 | # 10*(2^10) chars as input seems more than enough |
| 3697 | test $ac_count -gt 10 && break |
| 3698 | done |
| 3699 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3700 | esac |
| 3701 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3702 | |
| 3703 | $ac_path_GREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3704 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3705 | done |
| 3706 | |
| 3707 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3708 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3709 | |
| 3710 | |
| 3711 | fi |
| 3712 | |
| 3713 | GREP="$ac_cv_path_GREP" |
| 3714 | if test -z "$GREP"; then |
| 3715 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3716 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3717 | { (exit 1); exit 1; }; } |
| 3718 | fi |
| 3719 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3720 | else |
| 3721 | ac_cv_path_GREP=$GREP |
| 3722 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3723 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3724 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3725 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3726 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3727 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3728 | GREP="$ac_cv_path_GREP" |
| 3729 | |
| 3730 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3731 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3732 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3733 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3735 | else |
| 3736 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3737 | then ac_cv_path_EGREP="$GREP -E" |
| 3738 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3739 | # Extract the first word of "egrep" to use in msg output |
| 3740 | if test -z "$EGREP"; then |
| 3741 | set dummy egrep; ac_prog_name=$2 |
| 3742 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3744 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3745 | ac_path_EGREP_found=false |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3746 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3748 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3749 | do |
| 3750 | IFS=$as_save_IFS |
| 3751 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3752 | for ac_prog in egrep; do |
| 3753 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3754 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3755 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3756 | # 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] | 3757 | # Check for GNU $ac_path_EGREP |
| 3758 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3759 | *GNU*) |
| 3760 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3761 | *) |
| 3762 | ac_count=0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3763 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3764 | while : |
| 3765 | do |
| 3766 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3767 | mv "conftest.tmp" "conftest.in" |
| 3768 | cp "conftest.in" "conftest.nl" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3769 | echo 'EGREP' >> "conftest.nl" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3770 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3771 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3772 | ac_count=`expr $ac_count + 1` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3773 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3774 | # Best one so far, save it but keep looking for a better one |
| 3775 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3776 | ac_path_EGREP_max=$ac_count |
| 3777 | fi |
| 3778 | # 10*(2^10) chars as input seems more than enough |
| 3779 | test $ac_count -gt 10 && break |
| 3780 | done |
| 3781 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3782 | esac |
| 3783 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3784 | |
| 3785 | $ac_path_EGREP_found && break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3786 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3787 | done |
| 3788 | |
| 3789 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3790 | IFS=$as_save_IFS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3791 | |
| 3792 | |
| 3793 | fi |
| 3794 | |
| 3795 | EGREP="$ac_cv_path_EGREP" |
| 3796 | if test -z "$EGREP"; then |
| 3797 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3798 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3799 | { (exit 1); exit 1; }; } |
| 3800 | fi |
| 3801 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3802 | else |
| 3803 | ac_cv_path_EGREP=$EGREP |
| 3804 | fi |
| 3805 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3806 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3807 | fi |
| 3808 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3809 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3810 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3811 | EGREP="$ac_cv_path_EGREP" |
| 3812 | |
| 3813 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3814 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3815 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 3816 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3818 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3819 | cat >conftest.$ac_ext <<_ACEOF |
| 3820 | /* confdefs.h. */ |
| 3821 | _ACEOF |
| 3822 | cat confdefs.h >>conftest.$ac_ext |
| 3823 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3824 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3825 | #include <stdlib.h> |
| 3826 | #include <stdarg.h> |
| 3827 | #include <string.h> |
| 3828 | #include <float.h> |
| 3829 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3830 | int |
| 3831 | main () |
| 3832 | { |
| 3833 | |
| 3834 | ; |
| 3835 | return 0; |
| 3836 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3837 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3838 | rm -f conftest.$ac_objext |
| 3839 | if { (ac_try="$ac_compile" |
| 3840 | case "(($ac_try" in |
| 3841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3842 | *) ac_try_echo=$ac_try;; |
| 3843 | esac |
| 3844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3845 | (eval "$ac_compile") 2>conftest.er1 |
| 3846 | ac_status=$? |
| 3847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3848 | rm -f conftest.er1 |
| 3849 | cat conftest.err >&5 |
| 3850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3851 | (exit $ac_status); } && |
| 3852 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3853 | { (case "(($ac_try" in |
| 3854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3855 | *) ac_try_echo=$ac_try;; |
| 3856 | esac |
| 3857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3858 | (eval "$ac_try") 2>&5 |
| 3859 | ac_status=$? |
| 3860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3861 | (exit $ac_status); }; } && |
| 3862 | { ac_try='test -s conftest.$ac_objext' |
| 3863 | { (case "(($ac_try" in |
| 3864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3865 | *) ac_try_echo=$ac_try;; |
| 3866 | esac |
| 3867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3868 | (eval "$ac_try") 2>&5 |
| 3869 | ac_status=$? |
| 3870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3871 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3872 | ac_cv_header_stdc=yes |
| 3873 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3874 | echo "$as_me: failed program was:" >&5 |
| 3875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3876 | |
| 3877 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3878 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3879 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3880 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3881 | |
| 3882 | if test $ac_cv_header_stdc = yes; then |
| 3883 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3884 | cat >conftest.$ac_ext <<_ACEOF |
| 3885 | /* confdefs.h. */ |
| 3886 | _ACEOF |
| 3887 | cat confdefs.h >>conftest.$ac_ext |
| 3888 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3889 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3890 | #include <string.h> |
| 3891 | |
| 3892 | _ACEOF |
| 3893 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3894 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3895 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3896 | else |
| 3897 | ac_cv_header_stdc=no |
| 3898 | fi |
| 3899 | rm -f conftest* |
| 3900 | |
| 3901 | fi |
| 3902 | |
| 3903 | if test $ac_cv_header_stdc = yes; then |
| 3904 | # 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] | 3905 | cat >conftest.$ac_ext <<_ACEOF |
| 3906 | /* confdefs.h. */ |
| 3907 | _ACEOF |
| 3908 | cat confdefs.h >>conftest.$ac_ext |
| 3909 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3910 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3911 | #include <stdlib.h> |
| 3912 | |
| 3913 | _ACEOF |
| 3914 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3915 | $EGREP "free" >/dev/null 2>&1; then |
| 3916 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3917 | else |
| 3918 | ac_cv_header_stdc=no |
| 3919 | fi |
| 3920 | rm -f conftest* |
| 3921 | |
| 3922 | fi |
| 3923 | |
| 3924 | if test $ac_cv_header_stdc = yes; then |
| 3925 | # /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] | 3926 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3927 | : |
| 3928 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3929 | cat >conftest.$ac_ext <<_ACEOF |
| 3930 | /* confdefs.h. */ |
| 3931 | _ACEOF |
| 3932 | cat confdefs.h >>conftest.$ac_ext |
| 3933 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3934 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3935 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3936 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3937 | #if ((' ' & 0x0FF) == 0x020) |
| 3938 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3939 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3940 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3941 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3942 | (('a' <= (c) && (c) <= 'i') \ |
| 3943 | || ('j' <= (c) && (c) <= 'r') \ |
| 3944 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3945 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3946 | #endif |
| 3947 | |
| 3948 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3949 | int |
| 3950 | main () |
| 3951 | { |
| 3952 | int i; |
| 3953 | for (i = 0; i < 256; i++) |
| 3954 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3955 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3956 | return 2; |
| 3957 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3958 | } |
| 3959 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3960 | rm -f conftest$ac_exeext |
| 3961 | if { (ac_try="$ac_link" |
| 3962 | case "(($ac_try" in |
| 3963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3964 | *) ac_try_echo=$ac_try;; |
| 3965 | esac |
| 3966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3967 | (eval "$ac_link") 2>&5 |
| 3968 | ac_status=$? |
| 3969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3970 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3971 | { (case "(($ac_try" in |
| 3972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3973 | *) ac_try_echo=$ac_try;; |
| 3974 | esac |
| 3975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3976 | (eval "$ac_try") 2>&5 |
| 3977 | ac_status=$? |
| 3978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3979 | (exit $ac_status); }; }; then |
| 3980 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3981 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3982 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3983 | echo "$as_me: failed program was:" >&5 |
| 3984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3985 | |
| 3986 | ( exit $ac_status ) |
| 3987 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3988 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3989 | 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] | 3990 | fi |
| 3991 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3992 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3993 | fi |
| 3994 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3995 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3996 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3997 | if test $ac_cv_header_stdc = yes; then |
| 3998 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 3999 | cat >>confdefs.h <<\_ACEOF |
| 4000 | #define STDC_HEADERS 1 |
| 4001 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4002 | |
| 4003 | fi |
| 4004 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4005 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4006 | |
| 4007 | |
| 4008 | |
| 4009 | |
| 4010 | |
| 4011 | |
| 4012 | |
| 4013 | |
| 4014 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4015 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4016 | inttypes.h stdint.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4017 | do |
| 4018 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4019 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4020 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4021 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4023 | else |
| 4024 | cat >conftest.$ac_ext <<_ACEOF |
| 4025 | /* confdefs.h. */ |
| 4026 | _ACEOF |
| 4027 | cat confdefs.h >>conftest.$ac_ext |
| 4028 | cat >>conftest.$ac_ext <<_ACEOF |
| 4029 | /* end confdefs.h. */ |
| 4030 | $ac_includes_default |
| 4031 | |
| 4032 | #include <$ac_header> |
| 4033 | _ACEOF |
| 4034 | rm -f conftest.$ac_objext |
| 4035 | if { (ac_try="$ac_compile" |
| 4036 | case "(($ac_try" in |
| 4037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4038 | *) ac_try_echo=$ac_try;; |
| 4039 | esac |
| 4040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4041 | (eval "$ac_compile") 2>conftest.er1 |
| 4042 | ac_status=$? |
| 4043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4044 | rm -f conftest.er1 |
| 4045 | cat conftest.err >&5 |
| 4046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4047 | (exit $ac_status); } && |
| 4048 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4049 | { (case "(($ac_try" in |
| 4050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4051 | *) ac_try_echo=$ac_try;; |
| 4052 | esac |
| 4053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4054 | (eval "$ac_try") 2>&5 |
| 4055 | ac_status=$? |
| 4056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4057 | (exit $ac_status); }; } && |
| 4058 | { ac_try='test -s conftest.$ac_objext' |
| 4059 | { (case "(($ac_try" in |
| 4060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4061 | *) ac_try_echo=$ac_try;; |
| 4062 | esac |
| 4063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4064 | (eval "$ac_try") 2>&5 |
| 4065 | ac_status=$? |
| 4066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4067 | (exit $ac_status); }; }; then |
| 4068 | eval "$as_ac_Header=yes" |
| 4069 | else |
| 4070 | echo "$as_me: failed program was:" >&5 |
| 4071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4072 | |
| 4073 | eval "$as_ac_Header=no" |
| 4074 | fi |
| 4075 | |
| 4076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4077 | fi |
| 4078 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4079 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4080 | echo "${ECHO_T}$ac_res" >&6; } |
| 4081 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4082 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4083 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4084 | _ACEOF |
| 4085 | |
| 4086 | fi |
| 4087 | |
| 4088 | done |
| 4089 | |
| 4090 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4091 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4092 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4093 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4095 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4096 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4097 | cat >conftest.$ac_ext <<_ACEOF |
| 4098 | /* confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4099 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4100 | cat confdefs.h >>conftest.$ac_ext |
| 4101 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4102 | /* end confdefs.h. */ |
| 4103 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4104 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4105 | |
| 4106 | int |
| 4107 | main () |
| 4108 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4109 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4110 | bogus endian macros |
| 4111 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4112 | |
| 4113 | ; |
| 4114 | return 0; |
| 4115 | } |
| 4116 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4117 | rm -f conftest.$ac_objext |
| 4118 | if { (ac_try="$ac_compile" |
| 4119 | case "(($ac_try" in |
| 4120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4121 | *) ac_try_echo=$ac_try;; |
| 4122 | esac |
| 4123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4124 | (eval "$ac_compile") 2>conftest.er1 |
| 4125 | ac_status=$? |
| 4126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4127 | rm -f conftest.er1 |
| 4128 | cat conftest.err >&5 |
| 4129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4130 | (exit $ac_status); } && |
| 4131 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4132 | { (case "(($ac_try" in |
| 4133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4134 | *) ac_try_echo=$ac_try;; |
| 4135 | esac |
| 4136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4137 | (eval "$ac_try") 2>&5 |
| 4138 | ac_status=$? |
| 4139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4140 | (exit $ac_status); }; } && |
| 4141 | { ac_try='test -s conftest.$ac_objext' |
| 4142 | { (case "(($ac_try" in |
| 4143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4144 | *) ac_try_echo=$ac_try;; |
| 4145 | esac |
| 4146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4147 | (eval "$ac_try") 2>&5 |
| 4148 | ac_status=$? |
| 4149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4150 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4151 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4152 | cat >conftest.$ac_ext <<_ACEOF |
| 4153 | /* confdefs.h. */ |
| 4154 | _ACEOF |
| 4155 | cat confdefs.h >>conftest.$ac_ext |
| 4156 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4157 | /* end confdefs.h. */ |
| 4158 | #include <sys/types.h> |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4159 | #include <sys/param.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4160 | |
| 4161 | int |
| 4162 | main () |
| 4163 | { |
| 4164 | #if BYTE_ORDER != BIG_ENDIAN |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4165 | not big endian |
| 4166 | #endif |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4167 | |
| 4168 | ; |
| 4169 | return 0; |
| 4170 | } |
| 4171 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4172 | rm -f conftest.$ac_objext |
| 4173 | if { (ac_try="$ac_compile" |
| 4174 | case "(($ac_try" in |
| 4175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4176 | *) ac_try_echo=$ac_try;; |
| 4177 | esac |
| 4178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4179 | (eval "$ac_compile") 2>conftest.er1 |
| 4180 | ac_status=$? |
| 4181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4182 | rm -f conftest.er1 |
| 4183 | cat conftest.err >&5 |
| 4184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4185 | (exit $ac_status); } && |
| 4186 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4187 | { (case "(($ac_try" in |
| 4188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4189 | *) ac_try_echo=$ac_try;; |
| 4190 | esac |
| 4191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4192 | (eval "$ac_try") 2>&5 |
| 4193 | ac_status=$? |
| 4194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4195 | (exit $ac_status); }; } && |
| 4196 | { ac_try='test -s conftest.$ac_objext' |
| 4197 | { (case "(($ac_try" in |
| 4198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4199 | *) ac_try_echo=$ac_try;; |
| 4200 | esac |
| 4201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4202 | (eval "$ac_try") 2>&5 |
| 4203 | ac_status=$? |
| 4204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4205 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4206 | ac_cv_c_bigendian=yes |
| 4207 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4208 | echo "$as_me: failed program was:" >&5 |
| 4209 | sed 's/^/| /' conftest.$ac_ext >&5 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4210 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4211 | ac_cv_c_bigendian=no |
| 4212 | fi |
| 4213 | |
| 4214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4215 | else |
| 4216 | echo "$as_me: failed program was:" >&5 |
| 4217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4218 | |
| 4219 | # It does not; compile a test program. |
| 4220 | if test "$cross_compiling" = yes; then |
| 4221 | # try to guess the endianness by grepping values into an object file |
| 4222 | ac_cv_c_bigendian=unknown |
| 4223 | cat >conftest.$ac_ext <<_ACEOF |
| 4224 | /* confdefs.h. */ |
| 4225 | _ACEOF |
| 4226 | cat confdefs.h >>conftest.$ac_ext |
| 4227 | cat >>conftest.$ac_ext <<_ACEOF |
| 4228 | /* end confdefs.h. */ |
| 4229 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4230 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4231 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4232 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4233 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4234 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4235 | int |
| 4236 | main () |
| 4237 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4238 | _ascii (); _ebcdic (); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4239 | ; |
| 4240 | return 0; |
| 4241 | } |
| 4242 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4243 | rm -f conftest.$ac_objext |
| 4244 | if { (ac_try="$ac_compile" |
| 4245 | case "(($ac_try" in |
| 4246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4247 | *) ac_try_echo=$ac_try;; |
| 4248 | esac |
| 4249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4250 | (eval "$ac_compile") 2>conftest.er1 |
| 4251 | ac_status=$? |
| 4252 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4253 | rm -f conftest.er1 |
| 4254 | cat conftest.err >&5 |
| 4255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4256 | (exit $ac_status); } && |
| 4257 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4258 | { (case "(($ac_try" in |
| 4259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4260 | *) ac_try_echo=$ac_try;; |
| 4261 | esac |
| 4262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4263 | (eval "$ac_try") 2>&5 |
| 4264 | ac_status=$? |
| 4265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4266 | (exit $ac_status); }; } && |
| 4267 | { ac_try='test -s conftest.$ac_objext' |
| 4268 | { (case "(($ac_try" in |
| 4269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4270 | *) ac_try_echo=$ac_try;; |
| 4271 | esac |
| 4272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4273 | (eval "$ac_try") 2>&5 |
| 4274 | ac_status=$? |
| 4275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4276 | (exit $ac_status); }; }; then |
| 4277 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4278 | ac_cv_c_bigendian=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4279 | fi |
| 4280 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4281 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4282 | ac_cv_c_bigendian=no |
| 4283 | else |
| 4284 | # finding both strings is unlikely to happen, but who knows? |
| 4285 | ac_cv_c_bigendian=unknown |
| 4286 | fi |
| 4287 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4288 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4289 | echo "$as_me: failed program was:" >&5 |
| 4290 | sed 's/^/| /' conftest.$ac_ext >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4291 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4292 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 4293 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4294 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4296 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4297 | cat >conftest.$ac_ext <<_ACEOF |
| 4298 | /* confdefs.h. */ |
| 4299 | _ACEOF |
| 4300 | cat confdefs.h >>conftest.$ac_ext |
| 4301 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4302 | /* end confdefs.h. */ |
| 4303 | $ac_includes_default |
| 4304 | int |
| 4305 | main () |
| 4306 | { |
| 4307 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4308 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4309 | union |
| 4310 | { |
| 4311 | long int l; |
| 4312 | char c[sizeof (long int)]; |
| 4313 | } u; |
| 4314 | u.l = 1; |
| 4315 | return u.c[sizeof (long int) - 1] == 1; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4316 | |
| 4317 | ; |
| 4318 | return 0; |
| 4319 | } |
| 4320 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4321 | rm -f conftest$ac_exeext |
| 4322 | if { (ac_try="$ac_link" |
| 4323 | case "(($ac_try" in |
| 4324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4325 | *) ac_try_echo=$ac_try;; |
| 4326 | esac |
| 4327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4328 | (eval "$ac_link") 2>&5 |
| 4329 | ac_status=$? |
| 4330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4331 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4332 | { (case "(($ac_try" in |
| 4333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4334 | *) ac_try_echo=$ac_try;; |
| 4335 | esac |
| 4336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4337 | (eval "$ac_try") 2>&5 |
| 4338 | ac_status=$? |
| 4339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4340 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4341 | ac_cv_c_bigendian=no |
| 4342 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4343 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4344 | echo "$as_me: failed program was:" >&5 |
| 4345 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4346 | |
| 4347 | ( exit $ac_status ) |
| 4348 | ac_cv_c_bigendian=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4349 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4350 | 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] | 4351 | fi |
| 4352 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4353 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4354 | fi |
| 4355 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4357 | fi |
| 4358 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4359 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4360 | case $ac_cv_c_bigendian in |
| 4361 | yes) |
| 4362 | ENDIAN=big |
| 4363 | ;; |
| 4364 | no) |
| 4365 | ENDIAN=little |
| 4366 | ;; |
| 4367 | *) |
| 4368 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4369 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4370 | echo "$as_me: error: unknown endianness |
| 4371 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4372 | { (exit 1); exit 1; }; } ;; |
| 4373 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4374 | |
| 4375 | |
| 4376 | if test "$cross_compiling" = yes; then |
| 4377 | LLVM_CROSS_COMPILING=1 |
| 4378 | |
| 4379 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4380 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4381 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4382 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4384 | else |
| 4385 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4386 | ac_cv_build_exeext=.exe |
| 4387 | else |
| 4388 | ac_build_prefix=${build_alias}- |
| 4389 | |
| 4390 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4391 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4392 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4393 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4394 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4396 | else |
| 4397 | if test -n "$BUILD_CC"; then |
| 4398 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4399 | else |
| 4400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4401 | for as_dir in $PATH |
| 4402 | do |
| 4403 | IFS=$as_save_IFS |
| 4404 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4405 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4406 | 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] | 4407 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4408 | 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] | 4409 | break 2 |
| 4410 | fi |
| 4411 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4412 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4413 | IFS=$as_save_IFS |
| 4414 | |
| 4415 | fi |
| 4416 | fi |
| 4417 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4418 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4419 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4420 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4421 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4422 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4423 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4424 | fi |
| 4425 | |
| 4426 | |
| 4427 | if test -z "$BUILD_CC"; then |
| 4428 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4429 | set dummy gcc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4430 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4431 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4432 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4434 | else |
| 4435 | if test -n "$BUILD_CC"; then |
| 4436 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4437 | else |
| 4438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4439 | for as_dir in $PATH |
| 4440 | do |
| 4441 | IFS=$as_save_IFS |
| 4442 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4443 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4444 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4445 | ac_cv_prog_BUILD_CC="gcc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4446 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4447 | break 2 |
| 4448 | fi |
| 4449 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4450 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4451 | IFS=$as_save_IFS |
| 4452 | |
| 4453 | fi |
| 4454 | fi |
| 4455 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4456 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4457 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4458 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4459 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4460 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4461 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4462 | fi |
| 4463 | |
| 4464 | |
| 4465 | if test -z "$BUILD_CC"; then |
| 4466 | # Extract the first word of "cc", so it can be a program name with args. |
| 4467 | set dummy cc; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4468 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4470 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4472 | else |
| 4473 | if test -n "$BUILD_CC"; then |
| 4474 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4475 | else |
| 4476 | ac_prog_rejected=no |
| 4477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4478 | for as_dir in $PATH |
| 4479 | do |
| 4480 | IFS=$as_save_IFS |
| 4481 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4482 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4483 | 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] | 4484 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4485 | ac_prog_rejected=yes |
| 4486 | continue |
| 4487 | fi |
| 4488 | ac_cv_prog_BUILD_CC="cc" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4489 | 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] | 4490 | break 2 |
| 4491 | fi |
| 4492 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4493 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4494 | IFS=$as_save_IFS |
| 4495 | |
| 4496 | if test $ac_prog_rejected = yes; then |
| 4497 | # We found a bogon in the path, so make sure we never use it. |
| 4498 | set dummy $ac_cv_prog_BUILD_CC |
| 4499 | shift |
| 4500 | if test $# != 0; then |
| 4501 | # We chose a different compiler from the bogus one. |
| 4502 | # However, it has the same basename, so the bogon will be chosen |
| 4503 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4504 | shift |
| 4505 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4506 | fi |
| 4507 | fi |
| 4508 | fi |
| 4509 | fi |
| 4510 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4511 | if test -n "$BUILD_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4512 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4513 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4514 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4515 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4516 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4517 | fi |
| 4518 | |
| 4519 | |
| 4520 | fi |
| 4521 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4522 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4523 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4524 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4525 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4526 | rm -f conftest* |
| 4527 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4528 | ac_cv_build_exeext= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4529 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4530 | (eval $ac_build_link) 2>&5 |
| 4531 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4533 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4534 | for file in conftest.*; do |
| 4535 | case $file in |
Jim Grosbach | 0eecd89 | 2008-09-26 17:27:58 +0000 | [diff] [blame] | 4536 | *.c | *.o | *.obj | *.dSYM) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4537 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4538 | esac |
| 4539 | done |
| 4540 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4541 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4542 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4543 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4544 | fi |
| 4545 | rm -f conftest* |
| 4546 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4547 | fi |
| 4548 | fi |
| 4549 | |
| 4550 | BUILD_EXEEXT="" |
| 4551 | 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] | 4552 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4553 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4554 | ac_build_exeext=$BUILD_EXEEXT |
| 4555 | |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4556 | ac_build_prefix=${build_alias}- |
| 4557 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4558 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4559 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4560 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4561 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4563 | else |
| 4564 | if test -n "$BUILD_CXX"; then |
| 4565 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4566 | else |
| 4567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4568 | for as_dir in $PATH |
| 4569 | do |
| 4570 | IFS=$as_save_IFS |
| 4571 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4572 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4573 | 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] | 4574 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4575 | 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] | 4576 | break 2 |
| 4577 | fi |
| 4578 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4579 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4580 | IFS=$as_save_IFS |
| 4581 | |
| 4582 | fi |
| 4583 | fi |
| 4584 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4585 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4586 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4587 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4588 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4589 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4590 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4591 | fi |
| 4592 | |
| 4593 | |
| 4594 | if test -z "$BUILD_CXX"; then |
| 4595 | # Extract the first word of "g++", so it can be a program name with args. |
| 4596 | set dummy g++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4597 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4598 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4599 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4601 | else |
| 4602 | if test -n "$BUILD_CXX"; then |
| 4603 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4604 | else |
| 4605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4606 | for as_dir in $PATH |
| 4607 | do |
| 4608 | IFS=$as_save_IFS |
| 4609 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4610 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4611 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4612 | ac_cv_prog_BUILD_CXX="g++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4613 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4614 | break 2 |
| 4615 | fi |
| 4616 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4617 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4618 | IFS=$as_save_IFS |
| 4619 | |
| 4620 | fi |
| 4621 | fi |
| 4622 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4623 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4624 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4625 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4626 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4627 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4628 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4629 | fi |
| 4630 | |
| 4631 | |
| 4632 | if test -z "$BUILD_CXX"; then |
| 4633 | # Extract the first word of "c++", so it can be a program name with args. |
| 4634 | set dummy c++; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4635 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4637 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4639 | else |
| 4640 | if test -n "$BUILD_CXX"; then |
| 4641 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4642 | else |
| 4643 | ac_prog_rejected=no |
| 4644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4645 | for as_dir in $PATH |
| 4646 | do |
| 4647 | IFS=$as_save_IFS |
| 4648 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4649 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4650 | 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] | 4651 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4652 | ac_prog_rejected=yes |
| 4653 | continue |
| 4654 | fi |
| 4655 | ac_cv_prog_BUILD_CXX="c++" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4656 | 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] | 4657 | break 2 |
| 4658 | fi |
| 4659 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4660 | done |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4661 | IFS=$as_save_IFS |
| 4662 | |
| 4663 | if test $ac_prog_rejected = yes; then |
| 4664 | # We found a bogon in the path, so make sure we never use it. |
| 4665 | set dummy $ac_cv_prog_BUILD_CXX |
| 4666 | shift |
| 4667 | if test $# != 0; then |
| 4668 | # We chose a different compiler from the bogus one. |
| 4669 | # However, it has the same basename, so the bogon will be chosen |
| 4670 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4671 | shift |
| 4672 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4673 | fi |
| 4674 | fi |
| 4675 | fi |
| 4676 | fi |
| 4677 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4678 | if test -n "$BUILD_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4679 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4680 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4681 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4682 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4683 | echo "${ECHO_T}no" >&6; } |
Jim Grosbach | 673612e | 2008-10-02 22:56:44 +0000 | [diff] [blame] | 4684 | fi |
| 4685 | |
| 4686 | |
| 4687 | fi |
| 4688 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4689 | else |
| 4690 | LLVM_CROSS_COMPILING=0 |
| 4691 | |
| 4692 | fi |
| 4693 | |
Nick Lewycky | 5b28f86 | 2009-04-10 05:18:27 +0000 | [diff] [blame] | 4694 | 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] | 4695 | cvsbuild="yes" |
| 4696 | optimize="no" |
| 4697 | CVSBUILD=CVSBUILD=1 |
| 4698 | |
| 4699 | else |
| 4700 | cvsbuild="no" |
| 4701 | optimize="yes" |
| 4702 | fi |
| 4703 | |
| 4704 | |
| 4705 | # Check whether --enable-optimized was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4706 | if test "${enable_optimized+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4707 | enableval=$enable_optimized; |
| 4708 | else |
| 4709 | enableval=$optimize |
| 4710 | fi |
| 4711 | |
| 4712 | if test ${enableval} = "no" ; then |
| 4713 | ENABLE_OPTIMIZED= |
| 4714 | |
| 4715 | else |
| 4716 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4717 | |
| 4718 | fi |
| 4719 | |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4720 | # Check whether --enable-profiling was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4721 | if test "${enable_profiling+set}" = set; then |
David Greene | 2a5a12c | 2009-04-17 14:50:39 +0000 | [diff] [blame] | 4722 | enableval=$enable_profiling; |
| 4723 | else |
| 4724 | enableval="no" |
| 4725 | fi |
| 4726 | |
| 4727 | if test ${enableval} = "no" ; then |
| 4728 | ENABLE_PROFILING= |
| 4729 | |
| 4730 | else |
| 4731 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 4732 | |
| 4733 | fi |
| 4734 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4735 | # Check whether --enable-assertions was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4736 | if test "${enable_assertions+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4737 | enableval=$enable_assertions; |
| 4738 | else |
| 4739 | enableval="yes" |
| 4740 | fi |
| 4741 | |
| 4742 | if test ${enableval} = "yes" ; then |
| 4743 | DISABLE_ASSERTIONS= |
| 4744 | |
| 4745 | else |
| 4746 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4747 | |
| 4748 | fi |
| 4749 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4750 | # Check whether --enable-expensive-checks was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4751 | if test "${enable_expensive_checks+set}" = set; then |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4752 | enableval=$enable_expensive_checks; |
| 4753 | else |
| 4754 | enableval="no" |
| 4755 | fi |
| 4756 | |
| 4757 | if test ${enableval} = "yes" ; then |
| 4758 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4759 | |
| 4760 | EXPENSIVE_CHECKS=yes |
| 4761 | |
| 4762 | else |
| 4763 | ENABLE_EXPENSIVE_CHECKS= |
| 4764 | |
| 4765 | EXPENSIVE_CHECKS=no |
| 4766 | |
| 4767 | fi |
| 4768 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4769 | # Check whether --enable-debug-runtime was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4770 | if test "${enable_debug_runtime+set}" = set; then |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4771 | enableval=$enable_debug_runtime; |
| 4772 | else |
| 4773 | enableval=no |
| 4774 | fi |
| 4775 | |
| 4776 | if test ${enableval} = "no" ; then |
| 4777 | DEBUG_RUNTIME= |
| 4778 | |
| 4779 | else |
| 4780 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4781 | |
| 4782 | fi |
| 4783 | |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4784 | # Check whether --enable-debug-symbols was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4785 | if test "${enable_debug_symbols+set}" = set; then |
Jeffrey Yasskin | 7fd82e5 | 2009-09-27 17:47:29 +0000 | [diff] [blame] | 4786 | enableval=$enable_debug_symbols; |
| 4787 | else |
| 4788 | enableval=no |
| 4789 | fi |
| 4790 | |
| 4791 | if test ${enableval} = "no" ; then |
| 4792 | DEBUG_SYMBOLS= |
| 4793 | |
| 4794 | else |
| 4795 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 4796 | |
| 4797 | fi |
| 4798 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4799 | # Check whether --enable-jit was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4800 | if test "${enable_jit+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4801 | enableval=$enable_jit; |
| 4802 | else |
| 4803 | enableval=default |
| 4804 | fi |
| 4805 | |
| 4806 | if test ${enableval} = "no" |
| 4807 | then |
| 4808 | JIT= |
| 4809 | |
| 4810 | else |
| 4811 | case "$llvm_cv_target_arch" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4812 | x86) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4813 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4814 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4815 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4816 | PowerPC) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4817 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4818 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4819 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4820 | Alpha) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4821 | ;; |
Eric Christopher | 030e5a0 | 2009-09-14 16:38:49 +0000 | [diff] [blame] | 4822 | ARM) TARGET_HAS_JIT=1 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4823 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4824 | Mips) TARGET_HAS_JIT=0 |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4825 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4826 | PIC16) TARGET_HAS_JIT=0 |
Sanjiv Gupta | 0234f51 | 2008-05-13 17:37:32 +0000 | [diff] [blame] | 4827 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4828 | XCore) TARGET_HAS_JIT=0 |
Richard Osborne | b25baef | 2008-11-07 10:59:00 +0000 | [diff] [blame] | 4829 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4830 | MSP430) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 2c4718b | 2009-05-03 13:42:23 +0000 | [diff] [blame] | 4831 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4832 | SystemZ) TARGET_HAS_JIT=0 |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 4833 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4834 | Blackfin) TARGET_HAS_JIT=0 |
| 4835 | ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4836 | MBlaze) TARGET_HAS_JIT=0 |
| 4837 | ;; |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4838 | *) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4839 | ;; |
| 4840 | esac |
| 4841 | fi |
| 4842 | |
| 4843 | # Check whether --enable-doxygen was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4844 | if test "${enable_doxygen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4845 | enableval=$enable_doxygen; |
| 4846 | else |
| 4847 | enableval=default |
| 4848 | fi |
| 4849 | |
| 4850 | case "$enableval" in |
| 4851 | yes) ENABLE_DOXYGEN=1 |
| 4852 | ;; |
| 4853 | no) ENABLE_DOXYGEN=0 |
| 4854 | ;; |
| 4855 | default) ENABLE_DOXYGEN=0 |
| 4856 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4857 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4858 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4859 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4860 | esac |
| 4861 | |
| 4862 | # Check whether --enable-threads was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4863 | if test "${enable_threads+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4864 | enableval=$enable_threads; |
| 4865 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4866 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4867 | fi |
| 4868 | |
| 4869 | case "$enableval" in |
| 4870 | yes) ENABLE_THREADS=1 |
| 4871 | ;; |
| 4872 | no) ENABLE_THREADS=0 |
| 4873 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4874 | default) ENABLE_THREADS=1 |
| 4875 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4876 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4877 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4878 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4879 | esac |
| 4880 | |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 4881 | cat >>confdefs.h <<_ACEOF |
| 4882 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4883 | _ACEOF |
| 4884 | |
| 4885 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4886 | # Check whether --enable-pic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4887 | if test "${enable_pic+set}" = set; then |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4888 | enableval=$enable_pic; |
| 4889 | else |
| 4890 | enableval=default |
| 4891 | fi |
| 4892 | |
| 4893 | case "$enableval" in |
| 4894 | yes) ENABLE_PIC=1 |
| 4895 | ;; |
| 4896 | no) ENABLE_PIC=0 |
| 4897 | ;; |
Nick Lewycky | 5d24957 | 2009-02-19 06:18:56 +0000 | [diff] [blame] | 4898 | default) ENABLE_PIC=1 |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4899 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4900 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4901 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4902 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4903 | esac |
| 4904 | |
| 4905 | cat >>confdefs.h <<_ACEOF |
| 4906 | #define ENABLE_PIC $ENABLE_PIC |
| 4907 | _ACEOF |
| 4908 | |
| 4909 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 4910 | # Check whether --enable-shared was given. |
| 4911 | if test "${enable_shared+set}" = set; then |
| 4912 | enableval=$enable_shared; |
| 4913 | else |
| 4914 | enableval=default |
| 4915 | fi |
| 4916 | |
| 4917 | case "$enableval" in |
| 4918 | yes) ENABLE_SHARED=1 |
| 4919 | ;; |
| 4920 | no) ENABLE_SHARED=0 |
| 4921 | ;; |
| 4922 | default) ENABLE_SHARED=0 |
| 4923 | ;; |
| 4924 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 |
| 4925 | echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} |
| 4926 | { (exit 1); exit 1; }; } ;; |
| 4927 | esac |
| 4928 | |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 4929 | # Check whether --enable-timestamps was given. |
| 4930 | if test "${enable_timestamps+set}" = set; then |
| 4931 | enableval=$enable_timestamps; |
| 4932 | else |
| 4933 | enableval=default |
| 4934 | fi |
| 4935 | |
| 4936 | case "$enableval" in |
| 4937 | yes) ENABLE_TIMESTAMPS=1 |
| 4938 | ;; |
| 4939 | no) ENABLE_TIMESTAMPS=0 |
| 4940 | ;; |
| 4941 | default) ENABLE_TIMESTAMPS=1 |
| 4942 | ;; |
| 4943 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 |
| 4944 | echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} |
| 4945 | { (exit 1); exit 1; }; } ;; |
| 4946 | esac |
| 4947 | |
| 4948 | cat >>confdefs.h <<_ACEOF |
| 4949 | #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS |
| 4950 | _ACEOF |
| 4951 | |
| 4952 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4953 | TARGETS_TO_BUILD="" |
| 4954 | # Check whether --enable-targets was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 4955 | if test "${enable_targets+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4956 | enableval=$enable_targets; |
| 4957 | else |
| 4958 | enableval=all |
| 4959 | fi |
| 4960 | |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4961 | if test "$enableval" = host-only ; then |
| 4962 | enableval=host |
| 4963 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4964 | case "$enableval" in |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4965 | 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] | 4966 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4967 | case "$a_target" in |
Shantonu Sen | 7e83697 | 2009-08-11 13:39:52 +0000 | [diff] [blame] | 4968 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4969 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4970 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4971 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4972 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4973 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 4974 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 4975 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 4976 | pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 4977 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 4978 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
| 4979 | systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
| 4980 | blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
| 4981 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
| 4982 | msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; |
| 4983 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4984 | mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4985 | host) case "$llvm_cv_target_arch" in |
| 4986 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4987 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4988 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4989 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4990 | Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4991 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 4992 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Wesley Peck | a70f28c | 2010-02-23 19:15:24 +0000 | [diff] [blame] | 4993 | MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4994 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 4995 | PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; |
| 4996 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 4997 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Anton Korobeynikov | 6ca835d | 2010-01-05 20:45:43 +0000 | [diff] [blame] | 4998 | s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 4999 | Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5000 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 5001 | echo "$as_me: error: Can not set target to build" >&2;} |
| 5002 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | e04701a | 2009-09-23 17:05:42 +0000 | [diff] [blame] | 5003 | esac ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5004 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 5005 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 5006 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5007 | esac |
| 5008 | done |
| 5009 | ;; |
| 5010 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5011 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 5012 | |
| 5013 | |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5014 | # Determine whether we are building LLVM support for the native architecture. |
| 5015 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. |
| 5016 | for a_target in $TARGETS_TO_BUILD; do |
| 5017 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 5018 | LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target" |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5019 | |
| 5020 | cat >>confdefs.h <<_ACEOF |
Daniel Dunbar | b1247c3 | 2010-08-03 14:26:17 +0000 | [diff] [blame^] | 5021 | #define LLVM_NATIVE_ARCHNAME $LLVM_NATIVE_ARCH |
| 5022 | _ACEOF |
| 5023 | |
| 5024 | |
| 5025 | cat >>confdefs.h <<_ACEOF |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 5026 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5027 | _ACEOF |
| 5028 | |
| 5029 | fi |
| 5030 | done |
| 5031 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5032 | # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual |
| 5033 | # target feature def files. |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5034 | LLVM_ENUM_TARGETS="" |
| 5035 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5036 | LLVM_ENUM_ASM_PARSERS="" |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5037 | LLVM_ENUM_DISASSEMBLERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5038 | for target_to_build in $TARGETS_TO_BUILD; do |
| 5039 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
| 5040 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then |
| 5041 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 5042 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5043 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 5044 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 5045 | fi |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5046 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then |
| 5047 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; |
| 5048 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5049 | done |
| 5050 | |
| 5051 | |
| 5052 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5053 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5054 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5055 | # Check whether --enable-cbe-printf-a was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5056 | if test "${enable_cbe_printf_a+set}" = set; then |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5057 | enableval=$enable_cbe_printf_a; |
| 5058 | else |
| 5059 | enableval=default |
| 5060 | fi |
| 5061 | |
| 5062 | case "$enableval" in |
| 5063 | yes) ENABLE_CBE_PRINTF_A=1 |
| 5064 | ;; |
| 5065 | no) ENABLE_CBE_PRINTF_A=0 |
| 5066 | ;; |
| 5067 | default) ENABLE_CBE_PRINTF_A=1 |
| 5068 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5069 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 5070 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 5071 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5072 | esac |
| 5073 | |
| 5074 | cat >>confdefs.h <<_ACEOF |
| 5075 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 5076 | _ACEOF |
| 5077 | |
| 5078 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5079 | |
| 5080 | # Check whether --with-llvmgccdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5081 | if test "${with_llvmgccdir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5082 | withval=$with_llvmgccdir; |
| 5083 | else |
| 5084 | withval=default |
| 5085 | fi |
| 5086 | |
| 5087 | case "$withval" in |
| 5088 | default) WITH_LLVMGCCDIR=default ;; |
| 5089 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5090 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 5091 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 5092 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5093 | esac |
| 5094 | |
| 5095 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5096 | # Check whether --with-llvmgcc was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5097 | if test "${with_llvmgcc+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5098 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 5099 | WITH_LLVMGCCDIR="" |
| 5100 | fi |
| 5101 | |
| 5102 | |
| 5103 | |
| 5104 | # Check whether --with-llvmgxx was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5105 | if test "${with_llvmgxx+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5106 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 5107 | WITH_LLVMGCCDIR="" |
| 5108 | fi |
| 5109 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 5110 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 5111 | if test -n "$LLVMGCC"; then |
| 5112 | LLVMGCCCOMMAND="$LLVMGCC" |
| 5113 | fi |
| 5114 | |
| 5115 | if test -n "$LLVMGXX"; then |
| 5116 | LLVMGXXCOMMAND="$LLVMGXX" |
| 5117 | fi |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5118 | |
| 5119 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5120 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 5121 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 5122 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5123 | fi |
| 5124 | |
| 5125 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5126 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 5127 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 5128 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5129 | fi |
| 5130 | |
| 5131 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 5132 | # Check whether --with-clang was given. |
| 5133 | if test "${with_clang+set}" = set; then |
| 5134 | withval=$with_clang; |
| 5135 | else |
| 5136 | with_clang=default |
| 5137 | fi |
| 5138 | |
| 5139 | |
| 5140 | |
| 5141 | # Check whether --with-built-clang was given. |
| 5142 | if test "${with_built_clang+set}" = set; then |
| 5143 | withval=$with_built_clang; |
| 5144 | else |
| 5145 | with_built_clang=check |
| 5146 | fi |
| 5147 | |
| 5148 | |
| 5149 | { echo "$as_me:$LINENO: checking clang compiler" >&5 |
| 5150 | echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; } |
| 5151 | WITH_CLANGPATH="" |
| 5152 | WITH_BUILT_CLANG=0 |
| 5153 | if test "$with_clang" != "default"; then |
| 5154 | WITH_CLANGPATH="$with_clang" |
| 5155 | if ! test -x "$WITH_CLANGPATH"; then |
| 5156 | { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5 |
| 5157 | echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;} |
| 5158 | { (exit 1); exit 1; }; } |
| 5159 | fi |
| 5160 | elif test "$with_built_clang" = "yes"; then |
| 5161 | WITH_BUILT_CLANG=1 |
| 5162 | elif test "$with_built_clang" = "no"; then |
| 5163 | WITH_BUILT_CLANG=0 |
| 5164 | else |
| 5165 | if test "$with_built_clang" != "check"; then |
| 5166 | { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5 |
| 5167 | echo "$as_me: error: invalid value for --with-built-clang." >&2;} |
| 5168 | { (exit 1); exit 1; }; } |
| 5169 | fi |
| 5170 | |
| 5171 | if test -f ${srcdir}/tools/clang/README.txt; then |
| 5172 | WITH_BUILT_CLANG=1 |
| 5173 | fi |
| 5174 | fi |
| 5175 | |
| 5176 | if ! test -z "$WITH_CLANGPATH"; then |
| 5177 | { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5 |
| 5178 | echo "${ECHO_T}$WITH_CLANGPATH" >&6; } |
| 5179 | WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++` |
| 5180 | elif test "$WITH_BUILT_CLANG" = "1"; then |
| 5181 | { echo "$as_me:$LINENO: result: built" >&5 |
| 5182 | echo "${ECHO_T}built" >&6; } |
| 5183 | else |
| 5184 | { echo "$as_me:$LINENO: result: none" >&5 |
| 5185 | echo "${ECHO_T}none" >&6; } |
| 5186 | fi |
| 5187 | CLANGPATH=$WITH_CLANGPATH |
| 5188 | |
| 5189 | CLANGXXPATH=$WITH_CLANGXXPATH |
| 5190 | |
| 5191 | ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG |
| 5192 | |
| 5193 | |
| 5194 | |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5195 | # Check whether --with-optimize-option was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5196 | if test "${with_optimize_option+set}" = set; then |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5197 | withval=$with_optimize_option; |
| 5198 | else |
| 5199 | withval=default |
| 5200 | fi |
| 5201 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5202 | { echo "$as_me:$LINENO: checking optimization flags" >&5 |
| 5203 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5204 | case "$withval" in |
| 5205 | default) |
| 5206 | case "$llvm_cv_os_type" in |
Daniel Dunbar | f913878 | 2010-04-30 17:12:26 +0000 | [diff] [blame] | 5207 | FreeBSD) optimize_option=-O2 ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 5208 | MingW) optimize_option=-O2 ;; |
| 5209 | *) optimize_option=-O3 ;; |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5210 | esac ;; |
| 5211 | *) optimize_option="$withval" ;; |
| 5212 | esac |
| 5213 | OPTIMIZE_OPTION=$optimize_option |
| 5214 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5215 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 |
| 5216 | echo "${ECHO_T}$optimize_option" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5217 | |
| 5218 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5219 | # Check whether --with-extra-options was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5220 | if test "${with_extra_options+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5221 | withval=$with_extra_options; |
| 5222 | else |
| 5223 | withval=default |
| 5224 | fi |
| 5225 | |
| 5226 | case "$withval" in |
| 5227 | default) EXTRA_OPTIONS= ;; |
| 5228 | *) EXTRA_OPTIONS=$withval ;; |
| 5229 | esac |
| 5230 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5231 | |
| 5232 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5233 | # Check whether --enable-bindings was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5234 | if test "${enable_bindings+set}" = set; then |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5235 | enableval=$enable_bindings; |
| 5236 | else |
| 5237 | enableval=default |
| 5238 | fi |
| 5239 | |
| 5240 | BINDINGS_TO_BUILD="" |
| 5241 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5242 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5243 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5244 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5245 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5246 | case "$a_binding" in |
| 5247 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5248 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5249 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5250 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5251 | esac |
| 5252 | done |
| 5253 | ;; |
| 5254 | esac |
| 5255 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5256 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5257 | # Check whether --with-ocaml-libdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5258 | if test "${with_ocaml_libdir+set}" = set; then |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5259 | withval=$with_ocaml_libdir; |
| 5260 | else |
| 5261 | withval=auto |
| 5262 | fi |
| 5263 | |
| 5264 | case "$withval" in |
| 5265 | auto) with_ocaml_libdir="$withval" ;; |
| 5266 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5267 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5268 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5269 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5270 | esac |
| 5271 | |
| 5272 | |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5273 | # Check whether --with-c-include-dirs was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5274 | if test "${with_c_include_dirs+set}" = set; then |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5275 | withval=$with_c_include_dirs; |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5276 | else |
| 5277 | withval="" |
| 5278 | fi |
| 5279 | |
| 5280 | |
| 5281 | cat >>confdefs.h <<_ACEOF |
| 5282 | #define C_INCLUDE_DIRS "$withval" |
| 5283 | _ACEOF |
| 5284 | |
| 5285 | |
| 5286 | |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5287 | # Check whether --with-cxx-include-root was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5288 | if test "${with_cxx_include_root+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5289 | withval=$with_cxx_include_root; |
| 5290 | else |
| 5291 | withval="" |
| 5292 | fi |
| 5293 | |
| 5294 | |
| 5295 | cat >>confdefs.h <<_ACEOF |
| 5296 | #define CXX_INCLUDE_ROOT "$withval" |
| 5297 | _ACEOF |
| 5298 | |
| 5299 | |
| 5300 | |
| 5301 | # Check whether --with-cxx-include-arch was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5302 | if test "${with_cxx_include_arch+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5303 | withval=$with_cxx_include_arch; |
| 5304 | else |
| 5305 | withval="" |
| 5306 | fi |
| 5307 | |
| 5308 | |
| 5309 | cat >>confdefs.h <<_ACEOF |
| 5310 | #define CXX_INCLUDE_ARCH "$withval" |
| 5311 | _ACEOF |
| 5312 | |
| 5313 | |
| 5314 | |
| 5315 | # Check whether --with-cxx-include-32bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5316 | if test "${with_cxx_include_32bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5317 | withval=$with_cxx_include_32bit_dir; |
| 5318 | else |
| 5319 | withval="" |
| 5320 | fi |
| 5321 | |
| 5322 | |
| 5323 | cat >>confdefs.h <<_ACEOF |
| 5324 | #define CXX_INCLUDE_32BIT_DIR "$withval" |
| 5325 | _ACEOF |
| 5326 | |
| 5327 | |
| 5328 | |
| 5329 | # Check whether --with-cxx-include-64bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5330 | if test "${with_cxx_include_64bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5331 | withval=$with_cxx_include_64bit_dir; |
| 5332 | else |
| 5333 | withval="" |
| 5334 | fi |
| 5335 | |
| 5336 | |
| 5337 | cat >>confdefs.h <<_ACEOF |
| 5338 | #define CXX_INCLUDE_64BIT_DIR "$withval" |
| 5339 | _ACEOF |
| 5340 | |
| 5341 | |
| 5342 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5343 | # Check whether --with-binutils-include was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5344 | if test "${with_binutils_include+set}" = set; then |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5345 | withval=$with_binutils_include; |
| 5346 | else |
| 5347 | withval=default |
| 5348 | fi |
| 5349 | |
| 5350 | case "$withval" in |
| 5351 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5352 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5353 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5354 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5355 | { (exit 1); exit 1; }; } ;; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5356 | esac |
| 5357 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5358 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5359 | |
| 5360 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5361 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5362 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5363 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5364 | { (exit 1); exit 1; }; }; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5365 | fi |
| 5366 | fi |
| 5367 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5368 | # Check whether --enable-libffi was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5369 | if test "${enable_libffi+set}" = set; then |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5370 | enableval=$enable_libffi; case "$enableval" in |
| 5371 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5372 | no) llvm_cv_enable_libffi="no" ;; |
| 5373 | *) { { 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] | 5374 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5375 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5376 | esac |
| 5377 | else |
| 5378 | llvm_cv_enable_libffi=no |
| 5379 | fi |
| 5380 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5381 | |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5382 | if test "$llvm_cv_os_type" = "Win32" ; then |
| 5383 | llvmc_dynamic="yes" |
| 5384 | else |
| 5385 | llvmc_dynamic="no" |
| 5386 | fi |
| 5387 | |
| 5388 | # Check whether --enable-llvmc-dynamic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5389 | if test "${enable_llvmc_dynamic+set}" = set; then |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5390 | enableval=$enable_llvmc_dynamic; |
| 5391 | else |
| 5392 | enableval=$llvmc_dynamic |
| 5393 | fi |
| 5394 | |
| 5395 | if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then |
| 5396 | ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1 |
| 5397 | |
| 5398 | else |
| 5399 | ENABLE_LLVMC_DYNAMIC= |
| 5400 | |
| 5401 | fi |
| 5402 | |
| 5403 | # Check whether --enable-llvmc-dynamic-plugins was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5404 | if test "${enable_llvmc_dynamic_plugins+set}" = set; then |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5405 | enableval=$enable_llvmc_dynamic_plugins; |
| 5406 | else |
| 5407 | enableval=yes |
| 5408 | fi |
| 5409 | |
| 5410 | if test ${enableval} = "yes" ; then |
| 5411 | ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1 |
| 5412 | |
| 5413 | else |
| 5414 | ENABLE_LLVMC_DYNAMIC_PLUGINS= |
| 5415 | |
| 5416 | fi |
| 5417 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5418 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5419 | ac_ext=c |
| 5420 | ac_cpp='$CPP $CPPFLAGS' |
| 5421 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5422 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5423 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5424 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5425 | 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] | 5426 | # On Suns, sometimes $CPP names a directory. |
| 5427 | if test -n "$CPP" && test -d "$CPP"; then |
| 5428 | CPP= |
| 5429 | fi |
| 5430 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5431 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5433 | else |
| 5434 | # Double quotes because CPP needs to be expanded |
| 5435 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5436 | do |
| 5437 | ac_preproc_ok=false |
| 5438 | for ac_c_preproc_warn_flag in '' yes |
| 5439 | do |
| 5440 | # Use a header file that comes with gcc, so configuring glibc |
| 5441 | # with a fresh cross-compiler works. |
| 5442 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5443 | # <limits.h> exists even on freestanding compilers. |
| 5444 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5445 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5446 | cat >conftest.$ac_ext <<_ACEOF |
| 5447 | /* confdefs.h. */ |
| 5448 | _ACEOF |
| 5449 | cat confdefs.h >>conftest.$ac_ext |
| 5450 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5451 | /* end confdefs.h. */ |
| 5452 | #ifdef __STDC__ |
| 5453 | # include <limits.h> |
| 5454 | #else |
| 5455 | # include <assert.h> |
| 5456 | #endif |
| 5457 | Syntax error |
| 5458 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5459 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5460 | case "(($ac_try" in |
| 5461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5462 | *) ac_try_echo=$ac_try;; |
| 5463 | esac |
| 5464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5465 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5466 | ac_status=$? |
| 5467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5468 | rm -f conftest.er1 |
| 5469 | cat conftest.err >&5 |
| 5470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5471 | (exit $ac_status); } >/dev/null; then |
| 5472 | if test -s conftest.err; then |
| 5473 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5474 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5475 | else |
| 5476 | ac_cpp_err= |
| 5477 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5478 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5479 | ac_cpp_err=yes |
| 5480 | fi |
| 5481 | if test -z "$ac_cpp_err"; then |
| 5482 | : |
| 5483 | else |
| 5484 | echo "$as_me: failed program was:" >&5 |
| 5485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5486 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5487 | # Broken: fails on valid input. |
| 5488 | continue |
| 5489 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5490 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5491 | rm -f conftest.err conftest.$ac_ext |
| 5492 | |
| 5493 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5494 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5495 | cat >conftest.$ac_ext <<_ACEOF |
| 5496 | /* confdefs.h. */ |
| 5497 | _ACEOF |
| 5498 | cat confdefs.h >>conftest.$ac_ext |
| 5499 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5500 | /* end confdefs.h. */ |
| 5501 | #include <ac_nonexistent.h> |
| 5502 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5503 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5504 | case "(($ac_try" in |
| 5505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5506 | *) ac_try_echo=$ac_try;; |
| 5507 | esac |
| 5508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5509 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5510 | ac_status=$? |
| 5511 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5512 | rm -f conftest.er1 |
| 5513 | cat conftest.err >&5 |
| 5514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5515 | (exit $ac_status); } >/dev/null; then |
| 5516 | if test -s conftest.err; then |
| 5517 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5518 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5519 | else |
| 5520 | ac_cpp_err= |
| 5521 | fi |
| 5522 | else |
| 5523 | ac_cpp_err=yes |
| 5524 | fi |
| 5525 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5526 | # Broken: success on invalid input. |
| 5527 | continue |
| 5528 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5529 | echo "$as_me: failed program was:" >&5 |
| 5530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5531 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5532 | # Passes both tests. |
| 5533 | ac_preproc_ok=: |
| 5534 | break |
| 5535 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5536 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5537 | rm -f conftest.err conftest.$ac_ext |
| 5538 | |
| 5539 | done |
| 5540 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5541 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5542 | if $ac_preproc_ok; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5543 | break |
| 5544 | fi |
| 5545 | |
| 5546 | done |
| 5547 | ac_cv_prog_CPP=$CPP |
| 5548 | |
| 5549 | fi |
| 5550 | CPP=$ac_cv_prog_CPP |
| 5551 | else |
| 5552 | ac_cv_prog_CPP=$CPP |
| 5553 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5554 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5555 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5556 | ac_preproc_ok=false |
| 5557 | for ac_c_preproc_warn_flag in '' yes |
| 5558 | do |
| 5559 | # Use a header file that comes with gcc, so configuring glibc |
| 5560 | # with a fresh cross-compiler works. |
| 5561 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5562 | # <limits.h> exists even on freestanding compilers. |
| 5563 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5564 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5565 | cat >conftest.$ac_ext <<_ACEOF |
| 5566 | /* confdefs.h. */ |
| 5567 | _ACEOF |
| 5568 | cat confdefs.h >>conftest.$ac_ext |
| 5569 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5570 | /* end confdefs.h. */ |
| 5571 | #ifdef __STDC__ |
| 5572 | # include <limits.h> |
| 5573 | #else |
| 5574 | # include <assert.h> |
| 5575 | #endif |
| 5576 | Syntax error |
| 5577 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5578 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5579 | case "(($ac_try" in |
| 5580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5581 | *) ac_try_echo=$ac_try;; |
| 5582 | esac |
| 5583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5584 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5585 | ac_status=$? |
| 5586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5587 | rm -f conftest.er1 |
| 5588 | cat conftest.err >&5 |
| 5589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5590 | (exit $ac_status); } >/dev/null; then |
| 5591 | if test -s conftest.err; then |
| 5592 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5593 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5594 | else |
| 5595 | ac_cpp_err= |
| 5596 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5597 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5598 | ac_cpp_err=yes |
| 5599 | fi |
| 5600 | if test -z "$ac_cpp_err"; then |
| 5601 | : |
| 5602 | else |
| 5603 | echo "$as_me: failed program was:" >&5 |
| 5604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5605 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5606 | # Broken: fails on valid input. |
| 5607 | continue |
| 5608 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5609 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5610 | rm -f conftest.err conftest.$ac_ext |
| 5611 | |
| 5612 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5613 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5614 | cat >conftest.$ac_ext <<_ACEOF |
| 5615 | /* confdefs.h. */ |
| 5616 | _ACEOF |
| 5617 | cat confdefs.h >>conftest.$ac_ext |
| 5618 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5619 | /* end confdefs.h. */ |
| 5620 | #include <ac_nonexistent.h> |
| 5621 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5622 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5623 | case "(($ac_try" in |
| 5624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5625 | *) ac_try_echo=$ac_try;; |
| 5626 | esac |
| 5627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5628 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5629 | ac_status=$? |
| 5630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5631 | rm -f conftest.er1 |
| 5632 | cat conftest.err >&5 |
| 5633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5634 | (exit $ac_status); } >/dev/null; then |
| 5635 | if test -s conftest.err; then |
| 5636 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5637 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5638 | else |
| 5639 | ac_cpp_err= |
| 5640 | fi |
| 5641 | else |
| 5642 | ac_cpp_err=yes |
| 5643 | fi |
| 5644 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5645 | # Broken: success on invalid input. |
| 5646 | continue |
| 5647 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5648 | echo "$as_me: failed program was:" >&5 |
| 5649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5650 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5651 | # Passes both tests. |
| 5652 | ac_preproc_ok=: |
| 5653 | break |
| 5654 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5655 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5656 | rm -f conftest.err conftest.$ac_ext |
| 5657 | |
| 5658 | done |
| 5659 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5660 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5661 | if $ac_preproc_ok; then |
| 5662 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5663 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5664 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5665 | See \`config.log' for more details." >&5 |
| 5666 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5667 | See \`config.log' for more details." >&2;} |
| 5668 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5669 | fi |
| 5670 | |
| 5671 | ac_ext=c |
| 5672 | ac_cpp='$CPP $CPPFLAGS' |
| 5673 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5674 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5675 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5676 | |
| 5677 | ac_ext=c |
| 5678 | ac_cpp='$CPP $CPPFLAGS' |
| 5679 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5680 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5681 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5682 | if test -n "$ac_tool_prefix"; then |
| 5683 | for ac_prog in gcc |
| 5684 | do |
| 5685 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5686 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5687 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5688 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5689 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5691 | else |
| 5692 | if test -n "$CC"; then |
| 5693 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5694 | else |
| 5695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5696 | for as_dir in $PATH |
| 5697 | do |
| 5698 | IFS=$as_save_IFS |
| 5699 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5700 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5701 | 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] | 5702 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5703 | 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] | 5704 | break 2 |
| 5705 | fi |
| 5706 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5707 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5708 | IFS=$as_save_IFS |
| 5709 | |
| 5710 | fi |
| 5711 | fi |
| 5712 | CC=$ac_cv_prog_CC |
| 5713 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5714 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5715 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5716 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5717 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5718 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5719 | fi |
| 5720 | |
| 5721 | |
| 5722 | test -n "$CC" && break |
| 5723 | done |
| 5724 | fi |
| 5725 | if test -z "$CC"; then |
| 5726 | ac_ct_CC=$CC |
| 5727 | for ac_prog in gcc |
| 5728 | do |
| 5729 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5730 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5731 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5732 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5733 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5735 | else |
| 5736 | if test -n "$ac_ct_CC"; then |
| 5737 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5738 | else |
| 5739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5740 | for as_dir in $PATH |
| 5741 | do |
| 5742 | IFS=$as_save_IFS |
| 5743 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5744 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5745 | 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] | 5746 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5747 | 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] | 5748 | break 2 |
| 5749 | fi |
| 5750 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5751 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5752 | IFS=$as_save_IFS |
| 5753 | |
| 5754 | fi |
| 5755 | fi |
| 5756 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5757 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5758 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5759 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5760 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5761 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5762 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5763 | fi |
| 5764 | |
| 5765 | |
| 5766 | test -n "$ac_ct_CC" && break |
| 5767 | done |
| 5768 | |
| 5769 | if test "x$ac_ct_CC" = x; then |
| 5770 | CC="" |
| 5771 | else |
| 5772 | case $cross_compiling:$ac_tool_warned in |
| 5773 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5774 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5775 | whose name does not start with the host triplet. If you think this |
| 5776 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5777 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5778 | whose name does not start with the host triplet. If you think this |
| 5779 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5780 | ac_tool_warned=yes ;; |
| 5781 | esac |
| 5782 | CC=$ac_ct_CC |
| 5783 | fi |
| 5784 | fi |
| 5785 | |
| 5786 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5787 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5788 | See \`config.log' for more details." >&5 |
| 5789 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5790 | See \`config.log' for more details." >&2;} |
| 5791 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5792 | |
| 5793 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5794 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5795 | ac_compiler=`set X $ac_compile; echo $2` |
| 5796 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5797 | case "(($ac_try" in |
| 5798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5799 | *) ac_try_echo=$ac_try;; |
| 5800 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5802 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5803 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5805 | (exit $ac_status); } |
| 5806 | { (ac_try="$ac_compiler -v >&5" |
| 5807 | case "(($ac_try" in |
| 5808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5809 | *) ac_try_echo=$ac_try;; |
| 5810 | esac |
| 5811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5812 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5813 | ac_status=$? |
| 5814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5815 | (exit $ac_status); } |
| 5816 | { (ac_try="$ac_compiler -V >&5" |
| 5817 | case "(($ac_try" in |
| 5818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5819 | *) ac_try_echo=$ac_try;; |
| 5820 | esac |
| 5821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5822 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5823 | ac_status=$? |
| 5824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5825 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5826 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5827 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5828 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5829 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5831 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5832 | cat >conftest.$ac_ext <<_ACEOF |
| 5833 | /* confdefs.h. */ |
| 5834 | _ACEOF |
| 5835 | cat confdefs.h >>conftest.$ac_ext |
| 5836 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5837 | /* end confdefs.h. */ |
| 5838 | |
| 5839 | int |
| 5840 | main () |
| 5841 | { |
| 5842 | #ifndef __GNUC__ |
| 5843 | choke me |
| 5844 | #endif |
| 5845 | |
| 5846 | ; |
| 5847 | return 0; |
| 5848 | } |
| 5849 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5850 | rm -f conftest.$ac_objext |
| 5851 | if { (ac_try="$ac_compile" |
| 5852 | case "(($ac_try" in |
| 5853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5854 | *) ac_try_echo=$ac_try;; |
| 5855 | esac |
| 5856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5857 | (eval "$ac_compile") 2>conftest.er1 |
| 5858 | ac_status=$? |
| 5859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5860 | rm -f conftest.er1 |
| 5861 | cat conftest.err >&5 |
| 5862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5863 | (exit $ac_status); } && |
| 5864 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5865 | { (case "(($ac_try" in |
| 5866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5867 | *) ac_try_echo=$ac_try;; |
| 5868 | esac |
| 5869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5870 | (eval "$ac_try") 2>&5 |
| 5871 | ac_status=$? |
| 5872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5873 | (exit $ac_status); }; } && |
| 5874 | { ac_try='test -s conftest.$ac_objext' |
| 5875 | { (case "(($ac_try" in |
| 5876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5877 | *) ac_try_echo=$ac_try;; |
| 5878 | esac |
| 5879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5880 | (eval "$ac_try") 2>&5 |
| 5881 | ac_status=$? |
| 5882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5883 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5884 | ac_compiler_gnu=yes |
| 5885 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5886 | echo "$as_me: failed program was:" >&5 |
| 5887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5888 | |
| 5889 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5890 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5891 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5893 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5894 | |
| 5895 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5896 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5897 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5898 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5899 | ac_test_CFLAGS=${CFLAGS+set} |
| 5900 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5901 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5902 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5903 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5905 | else |
| 5906 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5907 | ac_c_werror_flag=yes |
| 5908 | ac_cv_prog_cc_g=no |
| 5909 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5910 | cat >conftest.$ac_ext <<_ACEOF |
| 5911 | /* confdefs.h. */ |
| 5912 | _ACEOF |
| 5913 | cat confdefs.h >>conftest.$ac_ext |
| 5914 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5915 | /* end confdefs.h. */ |
| 5916 | |
| 5917 | int |
| 5918 | main () |
| 5919 | { |
| 5920 | |
| 5921 | ; |
| 5922 | return 0; |
| 5923 | } |
| 5924 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5925 | rm -f conftest.$ac_objext |
| 5926 | if { (ac_try="$ac_compile" |
| 5927 | case "(($ac_try" in |
| 5928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5929 | *) ac_try_echo=$ac_try;; |
| 5930 | esac |
| 5931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5932 | (eval "$ac_compile") 2>conftest.er1 |
| 5933 | ac_status=$? |
| 5934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5935 | rm -f conftest.er1 |
| 5936 | cat conftest.err >&5 |
| 5937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5938 | (exit $ac_status); } && |
| 5939 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5940 | { (case "(($ac_try" in |
| 5941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5942 | *) ac_try_echo=$ac_try;; |
| 5943 | esac |
| 5944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5945 | (eval "$ac_try") 2>&5 |
| 5946 | ac_status=$? |
| 5947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5948 | (exit $ac_status); }; } && |
| 5949 | { ac_try='test -s conftest.$ac_objext' |
| 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_try") 2>&5 |
| 5956 | ac_status=$? |
| 5957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5958 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5959 | ac_cv_prog_cc_g=yes |
| 5960 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5961 | echo "$as_me: failed program was:" >&5 |
| 5962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5963 | |
| 5964 | CFLAGS="" |
| 5965 | cat >conftest.$ac_ext <<_ACEOF |
| 5966 | /* confdefs.h. */ |
| 5967 | _ACEOF |
| 5968 | cat confdefs.h >>conftest.$ac_ext |
| 5969 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5970 | /* end confdefs.h. */ |
| 5971 | |
| 5972 | int |
| 5973 | main () |
| 5974 | { |
| 5975 | |
| 5976 | ; |
| 5977 | return 0; |
| 5978 | } |
| 5979 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5980 | rm -f conftest.$ac_objext |
| 5981 | if { (ac_try="$ac_compile" |
| 5982 | case "(($ac_try" in |
| 5983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5984 | *) ac_try_echo=$ac_try;; |
| 5985 | esac |
| 5986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5987 | (eval "$ac_compile") 2>conftest.er1 |
| 5988 | ac_status=$? |
| 5989 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5990 | rm -f conftest.er1 |
| 5991 | cat conftest.err >&5 |
| 5992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5993 | (exit $ac_status); } && |
| 5994 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5995 | { (case "(($ac_try" in |
| 5996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5997 | *) ac_try_echo=$ac_try;; |
| 5998 | esac |
| 5999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6000 | (eval "$ac_try") 2>&5 |
| 6001 | ac_status=$? |
| 6002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6003 | (exit $ac_status); }; } && |
| 6004 | { ac_try='test -s conftest.$ac_objext' |
| 6005 | { (case "(($ac_try" in |
| 6006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6007 | *) ac_try_echo=$ac_try;; |
| 6008 | esac |
| 6009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6010 | (eval "$ac_try") 2>&5 |
| 6011 | ac_status=$? |
| 6012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6013 | (exit $ac_status); }; }; then |
| 6014 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6015 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6016 | echo "$as_me: failed program was:" >&5 |
| 6017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6018 | |
| 6019 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6020 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6021 | cat >conftest.$ac_ext <<_ACEOF |
| 6022 | /* confdefs.h. */ |
| 6023 | _ACEOF |
| 6024 | cat confdefs.h >>conftest.$ac_ext |
| 6025 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6026 | /* end confdefs.h. */ |
| 6027 | |
| 6028 | int |
| 6029 | main () |
| 6030 | { |
| 6031 | |
| 6032 | ; |
| 6033 | return 0; |
| 6034 | } |
| 6035 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6036 | rm -f conftest.$ac_objext |
| 6037 | if { (ac_try="$ac_compile" |
| 6038 | case "(($ac_try" in |
| 6039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6040 | *) ac_try_echo=$ac_try;; |
| 6041 | esac |
| 6042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6043 | (eval "$ac_compile") 2>conftest.er1 |
| 6044 | ac_status=$? |
| 6045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6046 | rm -f conftest.er1 |
| 6047 | cat conftest.err >&5 |
| 6048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6049 | (exit $ac_status); } && |
| 6050 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6051 | { (case "(($ac_try" in |
| 6052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6053 | *) ac_try_echo=$ac_try;; |
| 6054 | esac |
| 6055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6056 | (eval "$ac_try") 2>&5 |
| 6057 | ac_status=$? |
| 6058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6059 | (exit $ac_status); }; } && |
| 6060 | { ac_try='test -s conftest.$ac_objext' |
| 6061 | { (case "(($ac_try" in |
| 6062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6063 | *) ac_try_echo=$ac_try;; |
| 6064 | esac |
| 6065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6066 | (eval "$ac_try") 2>&5 |
| 6067 | ac_status=$? |
| 6068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6069 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6070 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6071 | else |
| 6072 | echo "$as_me: failed program was:" >&5 |
| 6073 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6074 | |
| 6075 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6076 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6077 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6079 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6080 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6082 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6083 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6085 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 6086 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6087 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 6088 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6089 | if test "$ac_test_CFLAGS" = set; then |
| 6090 | CFLAGS=$ac_save_CFLAGS |
| 6091 | elif test $ac_cv_prog_cc_g = yes; then |
| 6092 | if test "$GCC" = yes; then |
| 6093 | CFLAGS="-g -O2" |
| 6094 | else |
| 6095 | CFLAGS="-g" |
| 6096 | fi |
| 6097 | else |
| 6098 | if test "$GCC" = yes; then |
| 6099 | CFLAGS="-O2" |
| 6100 | else |
| 6101 | CFLAGS= |
| 6102 | fi |
| 6103 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6104 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 6105 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 6106 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 6107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6108 | else |
| 6109 | ac_cv_prog_cc_c89=no |
| 6110 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6111 | cat >conftest.$ac_ext <<_ACEOF |
| 6112 | /* confdefs.h. */ |
| 6113 | _ACEOF |
| 6114 | cat confdefs.h >>conftest.$ac_ext |
| 6115 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6116 | /* end confdefs.h. */ |
| 6117 | #include <stdarg.h> |
| 6118 | #include <stdio.h> |
| 6119 | #include <sys/types.h> |
| 6120 | #include <sys/stat.h> |
| 6121 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 6122 | struct buf { int x; }; |
| 6123 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 6124 | static char *e (p, i) |
| 6125 | char **p; |
| 6126 | int i; |
| 6127 | { |
| 6128 | return p[i]; |
| 6129 | } |
| 6130 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 6131 | { |
| 6132 | char *s; |
| 6133 | va_list v; |
| 6134 | va_start (v,p); |
| 6135 | s = g (p, va_arg (v,int)); |
| 6136 | va_end (v); |
| 6137 | return s; |
| 6138 | } |
| 6139 | |
| 6140 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6141 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6142 | These don't provoke an error unfortunately, instead are silently treated |
| 6143 | as 'x'. The following induces an error, until -std is added to get |
| 6144 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6145 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6146 | that's true only with -std. */ |
| 6147 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6148 | |
| 6149 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6150 | inside strings and character constants. */ |
| 6151 | #define FOO(x) 'x' |
| 6152 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6153 | |
| 6154 | int test (int i, double x); |
| 6155 | struct s1 {int (*f) (int a);}; |
| 6156 | struct s2 {int (*f) (double a);}; |
| 6157 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6158 | int argc; |
| 6159 | char **argv; |
| 6160 | int |
| 6161 | main () |
| 6162 | { |
| 6163 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6164 | ; |
| 6165 | return 0; |
| 6166 | } |
| 6167 | _ACEOF |
| 6168 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6169 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6170 | do |
| 6171 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6172 | rm -f conftest.$ac_objext |
| 6173 | if { (ac_try="$ac_compile" |
| 6174 | case "(($ac_try" in |
| 6175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6176 | *) ac_try_echo=$ac_try;; |
| 6177 | esac |
| 6178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6179 | (eval "$ac_compile") 2>conftest.er1 |
| 6180 | ac_status=$? |
| 6181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6182 | rm -f conftest.er1 |
| 6183 | cat conftest.err >&5 |
| 6184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6185 | (exit $ac_status); } && |
| 6186 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6187 | { (case "(($ac_try" in |
| 6188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6189 | *) ac_try_echo=$ac_try;; |
| 6190 | esac |
| 6191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6192 | (eval "$ac_try") 2>&5 |
| 6193 | ac_status=$? |
| 6194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6195 | (exit $ac_status); }; } && |
| 6196 | { ac_try='test -s conftest.$ac_objext' |
| 6197 | { (case "(($ac_try" in |
| 6198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6199 | *) ac_try_echo=$ac_try;; |
| 6200 | esac |
| 6201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6202 | (eval "$ac_try") 2>&5 |
| 6203 | ac_status=$? |
| 6204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6205 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6206 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6207 | else |
| 6208 | echo "$as_me: failed program was:" >&5 |
| 6209 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6210 | |
| 6211 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6212 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6213 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6214 | rm -f core conftest.err conftest.$ac_objext |
| 6215 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6216 | done |
| 6217 | rm -f conftest.$ac_ext |
| 6218 | CC=$ac_save_CC |
| 6219 | |
| 6220 | fi |
| 6221 | # AC_CACHE_VAL |
| 6222 | case "x$ac_cv_prog_cc_c89" in |
| 6223 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6224 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 6225 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6226 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6227 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 6228 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6229 | *) |
| 6230 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6231 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 6232 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6233 | esac |
| 6234 | |
| 6235 | |
| 6236 | ac_ext=c |
| 6237 | ac_cpp='$CPP $CPPFLAGS' |
| 6238 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6239 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6240 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6241 | |
| 6242 | ac_ext=cpp |
| 6243 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6244 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6245 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6246 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6247 | if test -z "$CXX"; then |
| 6248 | if test -n "$CCC"; then |
| 6249 | CXX=$CCC |
| 6250 | else |
| 6251 | if test -n "$ac_tool_prefix"; then |
| 6252 | for ac_prog in g++ |
| 6253 | do |
| 6254 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6255 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6256 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6257 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6258 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 6259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6260 | else |
| 6261 | if test -n "$CXX"; then |
| 6262 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6263 | else |
| 6264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6265 | for as_dir in $PATH |
| 6266 | do |
| 6267 | IFS=$as_save_IFS |
| 6268 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6269 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6270 | 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] | 6271 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6272 | 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] | 6273 | break 2 |
| 6274 | fi |
| 6275 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6276 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6277 | IFS=$as_save_IFS |
| 6278 | |
| 6279 | fi |
| 6280 | fi |
| 6281 | CXX=$ac_cv_prog_CXX |
| 6282 | if test -n "$CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6283 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 6284 | echo "${ECHO_T}$CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6285 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6286 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6287 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6288 | fi |
| 6289 | |
| 6290 | |
| 6291 | test -n "$CXX" && break |
| 6292 | done |
| 6293 | fi |
| 6294 | if test -z "$CXX"; then |
| 6295 | ac_ct_CXX=$CXX |
| 6296 | for ac_prog in g++ |
| 6297 | do |
| 6298 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6299 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6300 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6301 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6302 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 6303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6304 | else |
| 6305 | if test -n "$ac_ct_CXX"; then |
| 6306 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6307 | else |
| 6308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6309 | for as_dir in $PATH |
| 6310 | do |
| 6311 | IFS=$as_save_IFS |
| 6312 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6313 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6314 | 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] | 6315 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6316 | 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] | 6317 | break 2 |
| 6318 | fi |
| 6319 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6320 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6321 | IFS=$as_save_IFS |
| 6322 | |
| 6323 | fi |
| 6324 | fi |
| 6325 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6326 | if test -n "$ac_ct_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6327 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 6328 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6329 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6330 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6331 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6332 | fi |
| 6333 | |
| 6334 | |
| 6335 | test -n "$ac_ct_CXX" && break |
| 6336 | done |
| 6337 | |
| 6338 | if test "x$ac_ct_CXX" = x; then |
| 6339 | CXX="g++" |
| 6340 | else |
| 6341 | case $cross_compiling:$ac_tool_warned in |
| 6342 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6343 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6344 | whose name does not start with the host triplet. If you think this |
| 6345 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6346 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6347 | whose name does not start with the host triplet. If you think this |
| 6348 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6349 | ac_tool_warned=yes ;; |
| 6350 | esac |
| 6351 | CXX=$ac_ct_CXX |
| 6352 | fi |
| 6353 | fi |
| 6354 | |
| 6355 | fi |
| 6356 | fi |
| 6357 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6358 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 6359 | ac_compiler=`set X $ac_compile; echo $2` |
| 6360 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6361 | case "(($ac_try" in |
| 6362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6363 | *) ac_try_echo=$ac_try;; |
| 6364 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6366 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6367 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6369 | (exit $ac_status); } |
| 6370 | { (ac_try="$ac_compiler -v >&5" |
| 6371 | case "(($ac_try" in |
| 6372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6373 | *) ac_try_echo=$ac_try;; |
| 6374 | esac |
| 6375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6376 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6377 | ac_status=$? |
| 6378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6379 | (exit $ac_status); } |
| 6380 | { (ac_try="$ac_compiler -V >&5" |
| 6381 | case "(($ac_try" in |
| 6382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6383 | *) ac_try_echo=$ac_try;; |
| 6384 | esac |
| 6385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6386 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6387 | ac_status=$? |
| 6388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6389 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6390 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6391 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 6392 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 6393 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 6394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6395 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6396 | cat >conftest.$ac_ext <<_ACEOF |
| 6397 | /* confdefs.h. */ |
| 6398 | _ACEOF |
| 6399 | cat confdefs.h >>conftest.$ac_ext |
| 6400 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6401 | /* end confdefs.h. */ |
| 6402 | |
| 6403 | int |
| 6404 | main () |
| 6405 | { |
| 6406 | #ifndef __GNUC__ |
| 6407 | choke me |
| 6408 | #endif |
| 6409 | |
| 6410 | ; |
| 6411 | return 0; |
| 6412 | } |
| 6413 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6414 | rm -f conftest.$ac_objext |
| 6415 | if { (ac_try="$ac_compile" |
| 6416 | case "(($ac_try" in |
| 6417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6418 | *) ac_try_echo=$ac_try;; |
| 6419 | esac |
| 6420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6421 | (eval "$ac_compile") 2>conftest.er1 |
| 6422 | ac_status=$? |
| 6423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6424 | rm -f conftest.er1 |
| 6425 | cat conftest.err >&5 |
| 6426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6427 | (exit $ac_status); } && |
| 6428 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6429 | { (case "(($ac_try" in |
| 6430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6431 | *) ac_try_echo=$ac_try;; |
| 6432 | esac |
| 6433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6434 | (eval "$ac_try") 2>&5 |
| 6435 | ac_status=$? |
| 6436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6437 | (exit $ac_status); }; } && |
| 6438 | { ac_try='test -s conftest.$ac_objext' |
| 6439 | { (case "(($ac_try" in |
| 6440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6441 | *) ac_try_echo=$ac_try;; |
| 6442 | esac |
| 6443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6444 | (eval "$ac_try") 2>&5 |
| 6445 | ac_status=$? |
| 6446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6447 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6448 | ac_compiler_gnu=yes |
| 6449 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6450 | echo "$as_me: failed program was:" >&5 |
| 6451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6452 | |
| 6453 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6454 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6455 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6457 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6458 | |
| 6459 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6460 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6461 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 6462 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6463 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6464 | ac_save_CXXFLAGS=$CXXFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6465 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 6466 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 6467 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 6468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6469 | else |
| 6470 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6471 | ac_cxx_werror_flag=yes |
| 6472 | ac_cv_prog_cxx_g=no |
| 6473 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6474 | cat >conftest.$ac_ext <<_ACEOF |
| 6475 | /* confdefs.h. */ |
| 6476 | _ACEOF |
| 6477 | cat confdefs.h >>conftest.$ac_ext |
| 6478 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6479 | /* end confdefs.h. */ |
| 6480 | |
| 6481 | int |
| 6482 | main () |
| 6483 | { |
| 6484 | |
| 6485 | ; |
| 6486 | return 0; |
| 6487 | } |
| 6488 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6489 | rm -f conftest.$ac_objext |
| 6490 | if { (ac_try="$ac_compile" |
| 6491 | case "(($ac_try" in |
| 6492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6493 | *) ac_try_echo=$ac_try;; |
| 6494 | esac |
| 6495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6496 | (eval "$ac_compile") 2>conftest.er1 |
| 6497 | ac_status=$? |
| 6498 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6499 | rm -f conftest.er1 |
| 6500 | cat conftest.err >&5 |
| 6501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6502 | (exit $ac_status); } && |
| 6503 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6504 | { (case "(($ac_try" in |
| 6505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6506 | *) ac_try_echo=$ac_try;; |
| 6507 | esac |
| 6508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6509 | (eval "$ac_try") 2>&5 |
| 6510 | ac_status=$? |
| 6511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6512 | (exit $ac_status); }; } && |
| 6513 | { ac_try='test -s conftest.$ac_objext' |
| 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_try") 2>&5 |
| 6520 | ac_status=$? |
| 6521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6522 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6523 | ac_cv_prog_cxx_g=yes |
| 6524 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6525 | echo "$as_me: failed program was:" >&5 |
| 6526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6527 | |
| 6528 | CXXFLAGS="" |
| 6529 | cat >conftest.$ac_ext <<_ACEOF |
| 6530 | /* confdefs.h. */ |
| 6531 | _ACEOF |
| 6532 | cat confdefs.h >>conftest.$ac_ext |
| 6533 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6534 | /* end confdefs.h. */ |
| 6535 | |
| 6536 | int |
| 6537 | main () |
| 6538 | { |
| 6539 | |
| 6540 | ; |
| 6541 | return 0; |
| 6542 | } |
| 6543 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6544 | rm -f conftest.$ac_objext |
| 6545 | if { (ac_try="$ac_compile" |
| 6546 | case "(($ac_try" in |
| 6547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6548 | *) ac_try_echo=$ac_try;; |
| 6549 | esac |
| 6550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6551 | (eval "$ac_compile") 2>conftest.er1 |
| 6552 | ac_status=$? |
| 6553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6554 | rm -f conftest.er1 |
| 6555 | cat conftest.err >&5 |
| 6556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6557 | (exit $ac_status); } && |
| 6558 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6559 | { (case "(($ac_try" in |
| 6560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6561 | *) ac_try_echo=$ac_try;; |
| 6562 | esac |
| 6563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6564 | (eval "$ac_try") 2>&5 |
| 6565 | ac_status=$? |
| 6566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6567 | (exit $ac_status); }; } && |
| 6568 | { ac_try='test -s conftest.$ac_objext' |
| 6569 | { (case "(($ac_try" in |
| 6570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6571 | *) ac_try_echo=$ac_try;; |
| 6572 | esac |
| 6573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6574 | (eval "$ac_try") 2>&5 |
| 6575 | ac_status=$? |
| 6576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6577 | (exit $ac_status); }; }; then |
| 6578 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6579 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6580 | echo "$as_me: failed program was:" >&5 |
| 6581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6582 | |
| 6583 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6584 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6585 | cat >conftest.$ac_ext <<_ACEOF |
| 6586 | /* confdefs.h. */ |
| 6587 | _ACEOF |
| 6588 | cat confdefs.h >>conftest.$ac_ext |
| 6589 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6590 | /* end confdefs.h. */ |
| 6591 | |
| 6592 | int |
| 6593 | main () |
| 6594 | { |
| 6595 | |
| 6596 | ; |
| 6597 | return 0; |
| 6598 | } |
| 6599 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6600 | rm -f conftest.$ac_objext |
| 6601 | if { (ac_try="$ac_compile" |
| 6602 | case "(($ac_try" in |
| 6603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6604 | *) ac_try_echo=$ac_try;; |
| 6605 | esac |
| 6606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6607 | (eval "$ac_compile") 2>conftest.er1 |
| 6608 | ac_status=$? |
| 6609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6610 | rm -f conftest.er1 |
| 6611 | cat conftest.err >&5 |
| 6612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6613 | (exit $ac_status); } && |
| 6614 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6615 | { (case "(($ac_try" in |
| 6616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6617 | *) ac_try_echo=$ac_try;; |
| 6618 | esac |
| 6619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6620 | (eval "$ac_try") 2>&5 |
| 6621 | ac_status=$? |
| 6622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6623 | (exit $ac_status); }; } && |
| 6624 | { ac_try='test -s conftest.$ac_objext' |
| 6625 | { (case "(($ac_try" in |
| 6626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6627 | *) ac_try_echo=$ac_try;; |
| 6628 | esac |
| 6629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6630 | (eval "$ac_try") 2>&5 |
| 6631 | ac_status=$? |
| 6632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6633 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6634 | ac_cv_prog_cxx_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6635 | else |
| 6636 | echo "$as_me: failed program was:" >&5 |
| 6637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6638 | |
| 6639 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6640 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6641 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6643 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6644 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6646 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6647 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6649 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6650 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6651 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6652 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6653 | if test "$ac_test_CXXFLAGS" = set; then |
| 6654 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6655 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6656 | if test "$GXX" = yes; then |
| 6657 | CXXFLAGS="-g -O2" |
| 6658 | else |
| 6659 | CXXFLAGS="-g" |
| 6660 | fi |
| 6661 | else |
| 6662 | if test "$GXX" = yes; then |
| 6663 | CXXFLAGS="-O2" |
| 6664 | else |
| 6665 | CXXFLAGS= |
| 6666 | fi |
| 6667 | fi |
| 6668 | ac_ext=c |
| 6669 | ac_cpp='$CPP $CPPFLAGS' |
| 6670 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6671 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6672 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6673 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6674 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6675 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6676 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6677 | if test "${lt_cv_path_NM+set}" = set; then |
| 6678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6679 | else |
| 6680 | if test -n "$NM"; then |
| 6681 | # Let the user override the test. |
| 6682 | lt_cv_path_NM="$NM" |
| 6683 | else |
| 6684 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6685 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6686 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6687 | fi |
| 6688 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6689 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6690 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6691 | IFS="$lt_save_ifs" |
| 6692 | test -z "$ac_dir" && ac_dir=. |
| 6693 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6694 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6695 | # Check to see if the nm accepts a BSD-compat flag. |
| 6696 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6697 | # nm: unknown option "B" ignored |
| 6698 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6699 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6700 | */dev/null* | *'Invalid file or object type'*) |
| 6701 | lt_cv_path_NM="$tmp_nm -B" |
| 6702 | break |
| 6703 | ;; |
| 6704 | *) |
| 6705 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6706 | */dev/null*) |
| 6707 | lt_cv_path_NM="$tmp_nm -p" |
| 6708 | break |
| 6709 | ;; |
| 6710 | *) |
| 6711 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6712 | continue # so that we can try to find one that supports BSD flags |
| 6713 | ;; |
| 6714 | esac |
| 6715 | ;; |
| 6716 | esac |
| 6717 | fi |
| 6718 | done |
| 6719 | IFS="$lt_save_ifs" |
| 6720 | done |
| 6721 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6722 | fi |
| 6723 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6724 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6725 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6726 | NM="$lt_cv_path_NM" |
| 6727 | |
| 6728 | |
| 6729 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6730 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6731 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6732 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6734 | else |
| 6735 | llvm_cv_gnu_make_command='' |
| 6736 | for a in "$MAKE" make gmake gnumake ; do |
| 6737 | if test -z "$a" ; then continue ; fi ; |
| 6738 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6739 | then |
| 6740 | llvm_cv_gnu_make_command=$a ; |
| 6741 | break; |
| 6742 | fi |
| 6743 | done |
| 6744 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6745 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6746 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6747 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6748 | ifGNUmake='' ; |
| 6749 | else |
| 6750 | ifGNUmake='#' ; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6751 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6752 | echo "${ECHO_T}\"Not found\"" >&6; }; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6753 | fi |
| 6754 | |
| 6755 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6756 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6757 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6758 | LN_S=$as_ln_s |
| 6759 | if test "$LN_S" = "ln -s"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6760 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6761 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6762 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6763 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6764 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6765 | fi |
| 6766 | |
| 6767 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6768 | set dummy cmp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6769 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6770 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6771 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6773 | else |
| 6774 | case $CMP in |
| 6775 | [\\/]* | ?:[\\/]*) |
| 6776 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6777 | ;; |
| 6778 | *) |
| 6779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6780 | for as_dir in $PATH |
| 6781 | do |
| 6782 | IFS=$as_save_IFS |
| 6783 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6784 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6785 | 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] | 6786 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6787 | 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] | 6788 | break 2 |
| 6789 | fi |
| 6790 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6791 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6792 | IFS=$as_save_IFS |
| 6793 | |
| 6794 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6795 | ;; |
| 6796 | esac |
| 6797 | fi |
| 6798 | CMP=$ac_cv_path_CMP |
| 6799 | if test -n "$CMP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6800 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6801 | echo "${ECHO_T}$CMP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6802 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6803 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6804 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6805 | fi |
| 6806 | |
| 6807 | |
| 6808 | # Extract the first word of "cp", so it can be a program name with args. |
| 6809 | set dummy cp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6810 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6811 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6812 | if test "${ac_cv_path_CP+set}" = set; then |
| 6813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6814 | else |
| 6815 | case $CP in |
| 6816 | [\\/]* | ?:[\\/]*) |
| 6817 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6818 | ;; |
| 6819 | *) |
| 6820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6821 | for as_dir in $PATH |
| 6822 | do |
| 6823 | IFS=$as_save_IFS |
| 6824 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6825 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6826 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6827 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6828 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6829 | break 2 |
| 6830 | fi |
| 6831 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6832 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6833 | IFS=$as_save_IFS |
| 6834 | |
| 6835 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6836 | ;; |
| 6837 | esac |
| 6838 | fi |
| 6839 | CP=$ac_cv_path_CP |
| 6840 | if test -n "$CP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6841 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6842 | echo "${ECHO_T}$CP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6843 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6844 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6845 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6846 | fi |
| 6847 | |
| 6848 | |
| 6849 | # Extract the first word of "date", so it can be a program name with args. |
| 6850 | set dummy date; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6851 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6852 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6853 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6855 | else |
| 6856 | case $DATE in |
| 6857 | [\\/]* | ?:[\\/]*) |
| 6858 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6859 | ;; |
| 6860 | *) |
| 6861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6862 | for as_dir in $PATH |
| 6863 | do |
| 6864 | IFS=$as_save_IFS |
| 6865 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6866 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6867 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6868 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6869 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6870 | break 2 |
| 6871 | fi |
| 6872 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6873 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6874 | IFS=$as_save_IFS |
| 6875 | |
| 6876 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6877 | ;; |
| 6878 | esac |
| 6879 | fi |
| 6880 | DATE=$ac_cv_path_DATE |
| 6881 | if test -n "$DATE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6882 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6883 | echo "${ECHO_T}$DATE" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6884 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6885 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6886 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6887 | fi |
| 6888 | |
| 6889 | |
| 6890 | # Extract the first word of "find", so it can be a program name with args. |
| 6891 | set dummy find; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6892 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6893 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6894 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6896 | else |
| 6897 | case $FIND in |
| 6898 | [\\/]* | ?:[\\/]*) |
| 6899 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6900 | ;; |
| 6901 | *) |
| 6902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6903 | for as_dir in $PATH |
| 6904 | do |
| 6905 | IFS=$as_save_IFS |
| 6906 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6907 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6908 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6909 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6910 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6911 | break 2 |
| 6912 | fi |
| 6913 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6914 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6915 | IFS=$as_save_IFS |
| 6916 | |
| 6917 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6918 | ;; |
| 6919 | esac |
| 6920 | fi |
| 6921 | FIND=$ac_cv_path_FIND |
| 6922 | if test -n "$FIND"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6923 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6924 | echo "${ECHO_T}$FIND" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6925 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6926 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6927 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6928 | fi |
| 6929 | |
| 6930 | |
| 6931 | # Extract the first word of "grep", so it can be a program name with args. |
| 6932 | set dummy grep; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6933 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6934 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6935 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6937 | else |
| 6938 | case $GREP in |
| 6939 | [\\/]* | ?:[\\/]*) |
| 6940 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6941 | ;; |
| 6942 | *) |
| 6943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6944 | for as_dir in $PATH |
| 6945 | do |
| 6946 | IFS=$as_save_IFS |
| 6947 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6948 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6949 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6950 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6951 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6952 | break 2 |
| 6953 | fi |
| 6954 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6955 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6956 | IFS=$as_save_IFS |
| 6957 | |
| 6958 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6959 | ;; |
| 6960 | esac |
| 6961 | fi |
| 6962 | GREP=$ac_cv_path_GREP |
| 6963 | if test -n "$GREP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6964 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6965 | echo "${ECHO_T}$GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6966 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6967 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6968 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6969 | fi |
| 6970 | |
| 6971 | |
| 6972 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6973 | set dummy mkdir; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6974 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6975 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6976 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6978 | else |
| 6979 | case $MKDIR in |
| 6980 | [\\/]* | ?:[\\/]*) |
| 6981 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6982 | ;; |
| 6983 | *) |
| 6984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6985 | for as_dir in $PATH |
| 6986 | do |
| 6987 | IFS=$as_save_IFS |
| 6988 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6989 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6990 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6991 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6992 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6993 | break 2 |
| 6994 | fi |
| 6995 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6996 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6997 | IFS=$as_save_IFS |
| 6998 | |
| 6999 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 7000 | ;; |
| 7001 | esac |
| 7002 | fi |
| 7003 | MKDIR=$ac_cv_path_MKDIR |
| 7004 | if test -n "$MKDIR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7005 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 7006 | echo "${ECHO_T}$MKDIR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7007 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7008 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7009 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7010 | fi |
| 7011 | |
| 7012 | |
| 7013 | # Extract the first word of "mv", so it can be a program name with args. |
| 7014 | set dummy mv; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7015 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7016 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7017 | if test "${ac_cv_path_MV+set}" = set; then |
| 7018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7019 | else |
| 7020 | case $MV in |
| 7021 | [\\/]* | ?:[\\/]*) |
| 7022 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 7023 | ;; |
| 7024 | *) |
| 7025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7026 | for as_dir in $PATH |
| 7027 | do |
| 7028 | IFS=$as_save_IFS |
| 7029 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7030 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7031 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7032 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7033 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7034 | break 2 |
| 7035 | fi |
| 7036 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7037 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7038 | IFS=$as_save_IFS |
| 7039 | |
| 7040 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 7041 | ;; |
| 7042 | esac |
| 7043 | fi |
| 7044 | MV=$ac_cv_path_MV |
| 7045 | if test -n "$MV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7046 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 7047 | echo "${ECHO_T}$MV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7048 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7049 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7050 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7051 | fi |
| 7052 | |
| 7053 | |
| 7054 | if test -n "$ac_tool_prefix"; then |
| 7055 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7056 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7057 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7058 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7059 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 7060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7061 | else |
| 7062 | if test -n "$RANLIB"; then |
| 7063 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7064 | else |
| 7065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7066 | for as_dir in $PATH |
| 7067 | do |
| 7068 | IFS=$as_save_IFS |
| 7069 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7070 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7071 | 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] | 7072 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7073 | 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] | 7074 | break 2 |
| 7075 | fi |
| 7076 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7077 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7078 | IFS=$as_save_IFS |
| 7079 | |
| 7080 | fi |
| 7081 | fi |
| 7082 | RANLIB=$ac_cv_prog_RANLIB |
| 7083 | if test -n "$RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7084 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 7085 | echo "${ECHO_T}$RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7086 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7087 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7088 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7089 | fi |
| 7090 | |
| 7091 | |
| 7092 | fi |
| 7093 | if test -z "$ac_cv_prog_RANLIB"; then |
| 7094 | ac_ct_RANLIB=$RANLIB |
| 7095 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7096 | set dummy ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7097 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7098 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7099 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 7100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7101 | else |
| 7102 | if test -n "$ac_ct_RANLIB"; then |
| 7103 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7104 | else |
| 7105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7106 | for as_dir in $PATH |
| 7107 | do |
| 7108 | IFS=$as_save_IFS |
| 7109 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7110 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7111 | 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] | 7112 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7113 | 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] | 7114 | break 2 |
| 7115 | fi |
| 7116 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7117 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7118 | IFS=$as_save_IFS |
| 7119 | |
| 7120 | fi |
| 7121 | fi |
| 7122 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7123 | if test -n "$ac_ct_RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7124 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 7125 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7126 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7127 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7128 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7129 | fi |
| 7130 | |
| 7131 | if test "x$ac_ct_RANLIB" = x; then |
| 7132 | RANLIB=":" |
| 7133 | else |
| 7134 | case $cross_compiling:$ac_tool_warned in |
| 7135 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7136 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7137 | whose name does not start with the host triplet. If you think this |
| 7138 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7139 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7140 | whose name does not start with the host triplet. If you think this |
| 7141 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7142 | ac_tool_warned=yes ;; |
| 7143 | esac |
| 7144 | RANLIB=$ac_ct_RANLIB |
| 7145 | fi |
| 7146 | else |
| 7147 | RANLIB="$ac_cv_prog_RANLIB" |
| 7148 | fi |
| 7149 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7150 | if test -n "$ac_tool_prefix"; then |
| 7151 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 7152 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7153 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7154 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7155 | if test "${ac_cv_prog_AR+set}" = set; then |
| 7156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7157 | else |
| 7158 | if test -n "$AR"; then |
| 7159 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7160 | else |
| 7161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7162 | for as_dir in $PATH |
| 7163 | do |
| 7164 | IFS=$as_save_IFS |
| 7165 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7166 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7167 | 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] | 7168 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7169 | 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] | 7170 | break 2 |
| 7171 | fi |
| 7172 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7173 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7174 | IFS=$as_save_IFS |
| 7175 | |
| 7176 | fi |
| 7177 | fi |
| 7178 | AR=$ac_cv_prog_AR |
| 7179 | if test -n "$AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7180 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 7181 | echo "${ECHO_T}$AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7182 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7183 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7184 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7185 | fi |
| 7186 | |
| 7187 | |
| 7188 | fi |
| 7189 | if test -z "$ac_cv_prog_AR"; then |
| 7190 | ac_ct_AR=$AR |
| 7191 | # Extract the first word of "ar", so it can be a program name with args. |
| 7192 | set dummy ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7193 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7194 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7195 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 7196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7197 | else |
| 7198 | if test -n "$ac_ct_AR"; then |
| 7199 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7200 | else |
| 7201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7202 | for as_dir in $PATH |
| 7203 | do |
| 7204 | IFS=$as_save_IFS |
| 7205 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7206 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7207 | 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] | 7208 | ac_cv_prog_ac_ct_AR="ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7209 | 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] | 7210 | break 2 |
| 7211 | fi |
| 7212 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7213 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7214 | IFS=$as_save_IFS |
| 7215 | |
| 7216 | fi |
| 7217 | fi |
| 7218 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7219 | if test -n "$ac_ct_AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7220 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 7221 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7222 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7223 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7224 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7225 | fi |
| 7226 | |
| 7227 | if test "x$ac_ct_AR" = x; then |
| 7228 | AR="false" |
| 7229 | else |
| 7230 | case $cross_compiling:$ac_tool_warned in |
| 7231 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7232 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7233 | whose name does not start with the host triplet. If you think this |
| 7234 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7235 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7236 | whose name does not start with the host triplet. If you think this |
| 7237 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7238 | ac_tool_warned=yes ;; |
| 7239 | esac |
| 7240 | AR=$ac_ct_AR |
| 7241 | fi |
| 7242 | else |
| 7243 | AR="$ac_cv_prog_AR" |
| 7244 | fi |
| 7245 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7246 | # Extract the first word of "rm", so it can be a program name with args. |
| 7247 | set dummy rm; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7248 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7249 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7250 | if test "${ac_cv_path_RM+set}" = set; then |
| 7251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7252 | else |
| 7253 | case $RM in |
| 7254 | [\\/]* | ?:[\\/]*) |
| 7255 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 7256 | ;; |
| 7257 | *) |
| 7258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7259 | for as_dir in $PATH |
| 7260 | do |
| 7261 | IFS=$as_save_IFS |
| 7262 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7263 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7264 | 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] | 7265 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7266 | 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] | 7267 | break 2 |
| 7268 | fi |
| 7269 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7270 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7271 | IFS=$as_save_IFS |
| 7272 | |
| 7273 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 7274 | ;; |
| 7275 | esac |
| 7276 | fi |
| 7277 | RM=$ac_cv_path_RM |
| 7278 | if test -n "$RM"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7279 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 7280 | echo "${ECHO_T}$RM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7281 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7282 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7283 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7284 | fi |
| 7285 | |
| 7286 | |
| 7287 | # Extract the first word of "sed", so it can be a program name with args. |
| 7288 | set dummy sed; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7289 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7290 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7291 | if test "${ac_cv_path_SED+set}" = set; then |
| 7292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7293 | else |
| 7294 | case $SED in |
| 7295 | [\\/]* | ?:[\\/]*) |
| 7296 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7297 | ;; |
| 7298 | *) |
| 7299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7300 | for as_dir in $PATH |
| 7301 | do |
| 7302 | IFS=$as_save_IFS |
| 7303 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7304 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7305 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7306 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7307 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7308 | break 2 |
| 7309 | fi |
| 7310 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7311 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7312 | IFS=$as_save_IFS |
| 7313 | |
| 7314 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7315 | ;; |
| 7316 | esac |
| 7317 | fi |
| 7318 | SED=$ac_cv_path_SED |
| 7319 | if test -n "$SED"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7320 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7321 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7322 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7323 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7324 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7325 | fi |
| 7326 | |
| 7327 | |
| 7328 | # Extract the first word of "tar", so it can be a program name with args. |
| 7329 | set dummy tar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7330 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7331 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7332 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7334 | else |
| 7335 | case $TAR in |
| 7336 | [\\/]* | ?:[\\/]*) |
| 7337 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7338 | ;; |
| 7339 | *) |
| 7340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7341 | for as_dir in $PATH |
| 7342 | do |
| 7343 | IFS=$as_save_IFS |
| 7344 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7345 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7346 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7347 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7348 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7349 | break 2 |
| 7350 | fi |
| 7351 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7352 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7353 | IFS=$as_save_IFS |
| 7354 | |
| 7355 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7356 | ;; |
| 7357 | esac |
| 7358 | fi |
| 7359 | TAR=$ac_cv_path_TAR |
| 7360 | if test -n "$TAR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7361 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7362 | echo "${ECHO_T}$TAR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7363 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7364 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7365 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7366 | fi |
| 7367 | |
| 7368 | |
| 7369 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7370 | set dummy pwd; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7371 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7372 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7373 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7375 | else |
| 7376 | case $BINPWD in |
| 7377 | [\\/]* | ?:[\\/]*) |
| 7378 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7379 | ;; |
| 7380 | *) |
| 7381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7382 | for as_dir in $PATH |
| 7383 | do |
| 7384 | IFS=$as_save_IFS |
| 7385 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7386 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7387 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7388 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7389 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7390 | break 2 |
| 7391 | fi |
| 7392 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7393 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7394 | IFS=$as_save_IFS |
| 7395 | |
| 7396 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7397 | ;; |
| 7398 | esac |
| 7399 | fi |
| 7400 | BINPWD=$ac_cv_path_BINPWD |
| 7401 | if test -n "$BINPWD"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7402 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7403 | echo "${ECHO_T}$BINPWD" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7404 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7405 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7406 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7407 | fi |
| 7408 | |
| 7409 | |
| 7410 | |
| 7411 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7412 | set dummy Graphviz; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7413 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7414 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7415 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7417 | else |
| 7418 | case $GRAPHVIZ in |
| 7419 | [\\/]* | ?:[\\/]*) |
| 7420 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7421 | ;; |
| 7422 | *) |
| 7423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7424 | for as_dir in $PATH |
| 7425 | do |
| 7426 | IFS=$as_save_IFS |
| 7427 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7428 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7429 | 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] | 7430 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7431 | 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] | 7432 | break 2 |
| 7433 | fi |
| 7434 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7435 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7436 | IFS=$as_save_IFS |
| 7437 | |
| 7438 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7439 | ;; |
| 7440 | esac |
| 7441 | fi |
| 7442 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7443 | if test -n "$GRAPHVIZ"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7444 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7445 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7446 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7447 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7448 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7449 | fi |
| 7450 | |
| 7451 | |
| 7452 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7453 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7454 | cat >>confdefs.h <<\_ACEOF |
| 7455 | #define HAVE_GRAPHVIZ 1 |
| 7456 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7457 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7458 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7459 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7460 | fi |
| 7461 | |
| 7462 | cat >>confdefs.h <<_ACEOF |
| 7463 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7464 | _ACEOF |
| 7465 | |
| 7466 | fi |
| 7467 | # Extract the first word of "dot", so it can be a program name with args. |
| 7468 | set dummy dot; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7469 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7470 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7471 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7473 | else |
| 7474 | case $DOT in |
| 7475 | [\\/]* | ?:[\\/]*) |
| 7476 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7477 | ;; |
| 7478 | *) |
| 7479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7480 | for as_dir in $PATH |
| 7481 | do |
| 7482 | IFS=$as_save_IFS |
| 7483 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7484 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7485 | 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] | 7486 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7487 | 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] | 7488 | break 2 |
| 7489 | fi |
| 7490 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7491 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7492 | IFS=$as_save_IFS |
| 7493 | |
| 7494 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7495 | ;; |
| 7496 | esac |
| 7497 | fi |
| 7498 | DOT=$ac_cv_path_DOT |
| 7499 | if test -n "$DOT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7500 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7501 | echo "${ECHO_T}$DOT" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7502 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7503 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7504 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7505 | fi |
| 7506 | |
| 7507 | |
| 7508 | if test "$DOT" != "echo dot" ; then |
| 7509 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7510 | cat >>confdefs.h <<\_ACEOF |
| 7511 | #define HAVE_DOT 1 |
| 7512 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7513 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7514 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7515 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7516 | fi |
| 7517 | |
| 7518 | cat >>confdefs.h <<_ACEOF |
| 7519 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7520 | _ACEOF |
| 7521 | |
| 7522 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7523 | # Extract the first word of "fdp", so it can be a program name with args. |
| 7524 | set dummy fdp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7525 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7526 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7527 | if test "${ac_cv_path_FDP+set}" = set; then |
| 7528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7529 | else |
| 7530 | case $FDP in |
| 7531 | [\\/]* | ?:[\\/]*) |
| 7532 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 7533 | ;; |
| 7534 | *) |
| 7535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7536 | for as_dir in $PATH |
| 7537 | do |
| 7538 | IFS=$as_save_IFS |
| 7539 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7540 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7541 | 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] | 7542 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7543 | 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] | 7544 | break 2 |
| 7545 | fi |
| 7546 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7547 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7548 | IFS=$as_save_IFS |
| 7549 | |
| 7550 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 7551 | ;; |
| 7552 | esac |
| 7553 | fi |
| 7554 | FDP=$ac_cv_path_FDP |
| 7555 | if test -n "$FDP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7556 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 7557 | echo "${ECHO_T}$FDP" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7558 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7559 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7560 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7561 | fi |
| 7562 | |
| 7563 | |
| 7564 | if test "$FDP" != "echo fdp" ; then |
| 7565 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7566 | cat >>confdefs.h <<\_ACEOF |
| 7567 | #define HAVE_FDP 1 |
| 7568 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7569 | |
| 7570 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7571 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7572 | fi |
| 7573 | |
| 7574 | cat >>confdefs.h <<_ACEOF |
| 7575 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 7576 | _ACEOF |
| 7577 | |
| 7578 | fi |
| 7579 | # Extract the first word of "neato", so it can be a program name with args. |
| 7580 | set dummy neato; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7581 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7582 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7583 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 7584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7585 | else |
| 7586 | case $NEATO in |
| 7587 | [\\/]* | ?:[\\/]*) |
| 7588 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 7589 | ;; |
| 7590 | *) |
| 7591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7592 | for as_dir in $PATH |
| 7593 | do |
| 7594 | IFS=$as_save_IFS |
| 7595 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7596 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7597 | 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] | 7598 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7599 | 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] | 7600 | break 2 |
| 7601 | fi |
| 7602 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7603 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7604 | IFS=$as_save_IFS |
| 7605 | |
| 7606 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 7607 | ;; |
| 7608 | esac |
| 7609 | fi |
| 7610 | NEATO=$ac_cv_path_NEATO |
| 7611 | if test -n "$NEATO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7612 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 7613 | echo "${ECHO_T}$NEATO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7614 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7615 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7616 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7617 | fi |
| 7618 | |
| 7619 | |
| 7620 | if test "$NEATO" != "echo neato" ; then |
| 7621 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7622 | cat >>confdefs.h <<\_ACEOF |
| 7623 | #define HAVE_NEATO 1 |
| 7624 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7625 | |
| 7626 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7627 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7628 | fi |
| 7629 | |
| 7630 | cat >>confdefs.h <<_ACEOF |
| 7631 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 7632 | _ACEOF |
| 7633 | |
| 7634 | fi |
| 7635 | # Extract the first word of "twopi", so it can be a program name with args. |
| 7636 | set dummy twopi; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7637 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7639 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 7640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7641 | else |
| 7642 | case $TWOPI in |
| 7643 | [\\/]* | ?:[\\/]*) |
| 7644 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 7645 | ;; |
| 7646 | *) |
| 7647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7648 | for as_dir in $PATH |
| 7649 | do |
| 7650 | IFS=$as_save_IFS |
| 7651 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7652 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7653 | 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] | 7654 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7655 | 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] | 7656 | break 2 |
| 7657 | fi |
| 7658 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7659 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7660 | IFS=$as_save_IFS |
| 7661 | |
| 7662 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 7663 | ;; |
| 7664 | esac |
| 7665 | fi |
| 7666 | TWOPI=$ac_cv_path_TWOPI |
| 7667 | if test -n "$TWOPI"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7668 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 7669 | echo "${ECHO_T}$TWOPI" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7670 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7671 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7672 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7673 | fi |
| 7674 | |
| 7675 | |
| 7676 | if test "$TWOPI" != "echo twopi" ; then |
| 7677 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7678 | cat >>confdefs.h <<\_ACEOF |
| 7679 | #define HAVE_TWOPI 1 |
| 7680 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7681 | |
| 7682 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7683 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7684 | fi |
| 7685 | |
| 7686 | cat >>confdefs.h <<_ACEOF |
| 7687 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 7688 | _ACEOF |
| 7689 | |
| 7690 | fi |
| 7691 | # Extract the first word of "circo", so it can be a program name with args. |
| 7692 | set dummy circo; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7693 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7694 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7695 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 7696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7697 | else |
| 7698 | case $CIRCO in |
| 7699 | [\\/]* | ?:[\\/]*) |
| 7700 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 7701 | ;; |
| 7702 | *) |
| 7703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7704 | for as_dir in $PATH |
| 7705 | do |
| 7706 | IFS=$as_save_IFS |
| 7707 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7708 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7709 | 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] | 7710 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7711 | 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] | 7712 | break 2 |
| 7713 | fi |
| 7714 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7715 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7716 | IFS=$as_save_IFS |
| 7717 | |
| 7718 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 7719 | ;; |
| 7720 | esac |
| 7721 | fi |
| 7722 | CIRCO=$ac_cv_path_CIRCO |
| 7723 | if test -n "$CIRCO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7724 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 7725 | echo "${ECHO_T}$CIRCO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7726 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7727 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7728 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7729 | fi |
| 7730 | |
| 7731 | |
| 7732 | if test "$CIRCO" != "echo circo" ; then |
| 7733 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7734 | cat >>confdefs.h <<\_ACEOF |
| 7735 | #define HAVE_CIRCO 1 |
| 7736 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7737 | |
| 7738 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7739 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7740 | fi |
| 7741 | |
| 7742 | cat >>confdefs.h <<_ACEOF |
| 7743 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 7744 | _ACEOF |
| 7745 | |
| 7746 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7747 | for ac_prog in gv gsview32 |
| 7748 | do |
| 7749 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7750 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7751 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7752 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7753 | if test "${ac_cv_path_GV+set}" = set; then |
| 7754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7755 | else |
| 7756 | case $GV in |
| 7757 | [\\/]* | ?:[\\/]*) |
| 7758 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7759 | ;; |
| 7760 | *) |
| 7761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7762 | for as_dir in $PATH |
| 7763 | do |
| 7764 | IFS=$as_save_IFS |
| 7765 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7766 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7767 | 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] | 7768 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7769 | 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] | 7770 | break 2 |
| 7771 | fi |
| 7772 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7773 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7774 | IFS=$as_save_IFS |
| 7775 | |
| 7776 | ;; |
| 7777 | esac |
| 7778 | fi |
| 7779 | GV=$ac_cv_path_GV |
| 7780 | if test -n "$GV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7781 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7782 | echo "${ECHO_T}$GV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7783 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7784 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7785 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7786 | fi |
| 7787 | |
| 7788 | |
| 7789 | test -n "$GV" && break |
| 7790 | done |
| 7791 | test -n "$GV" || GV="echo gv" |
| 7792 | |
| 7793 | if test "$GV" != "echo gv" ; then |
| 7794 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7795 | cat >>confdefs.h <<\_ACEOF |
| 7796 | #define HAVE_GV 1 |
| 7797 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7798 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7799 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7800 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7801 | fi |
| 7802 | |
| 7803 | cat >>confdefs.h <<_ACEOF |
| 7804 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7805 | _ACEOF |
| 7806 | |
| 7807 | fi |
| 7808 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7809 | set dummy dotty; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7810 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7811 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7812 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7814 | else |
| 7815 | case $DOTTY in |
| 7816 | [\\/]* | ?:[\\/]*) |
| 7817 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7818 | ;; |
| 7819 | *) |
| 7820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7821 | for as_dir in $PATH |
| 7822 | do |
| 7823 | IFS=$as_save_IFS |
| 7824 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7825 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7826 | 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] | 7827 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7828 | 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] | 7829 | break 2 |
| 7830 | fi |
| 7831 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7832 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7833 | IFS=$as_save_IFS |
| 7834 | |
| 7835 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7836 | ;; |
| 7837 | esac |
| 7838 | fi |
| 7839 | DOTTY=$ac_cv_path_DOTTY |
| 7840 | if test -n "$DOTTY"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7841 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7842 | echo "${ECHO_T}$DOTTY" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7843 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7844 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7845 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7846 | fi |
| 7847 | |
| 7848 | |
| 7849 | if test "$DOTTY" != "echo dotty" ; then |
| 7850 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7851 | cat >>confdefs.h <<\_ACEOF |
| 7852 | #define HAVE_DOTTY 1 |
| 7853 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7854 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7855 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7856 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7857 | fi |
| 7858 | |
| 7859 | cat >>confdefs.h <<_ACEOF |
| 7860 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7861 | _ACEOF |
| 7862 | |
| 7863 | fi |
| 7864 | |
| 7865 | |
| 7866 | # Extract the first word of "perl", so it can be a program name with args. |
| 7867 | set dummy perl; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7868 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7870 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7872 | else |
| 7873 | case $PERL in |
| 7874 | [\\/]* | ?:[\\/]*) |
| 7875 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7876 | ;; |
| 7877 | *) |
| 7878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7879 | for as_dir in $PATH |
| 7880 | do |
| 7881 | IFS=$as_save_IFS |
| 7882 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7883 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7884 | 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] | 7885 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7886 | 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] | 7887 | break 2 |
| 7888 | fi |
| 7889 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7890 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7891 | IFS=$as_save_IFS |
| 7892 | |
| 7893 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7894 | ;; |
| 7895 | esac |
| 7896 | fi |
| 7897 | PERL=$ac_cv_path_PERL |
| 7898 | if test -n "$PERL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7899 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7900 | echo "${ECHO_T}$PERL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7901 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7902 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7903 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7904 | fi |
| 7905 | |
| 7906 | |
| 7907 | if test "$PERL" != "none"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7908 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7909 | 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] | 7910 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7911 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7912 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7913 | else |
| 7914 | PERL=none |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7915 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7916 | echo "${ECHO_T}not found" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7917 | fi |
| 7918 | fi |
| 7919 | |
| 7920 | |
| 7921 | if test x"$PERL" = xnone; then |
| 7922 | HAVE_PERL=0 |
| 7923 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7924 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7925 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7926 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7927 | else |
| 7928 | HAVE_PERL=1 |
| 7929 | |
| 7930 | fi |
| 7931 | |
| 7932 | # Find a good install program. We prefer a C program (faster), |
| 7933 | # so one script is as good as another. But avoid the broken or |
| 7934 | # incompatible versions: |
| 7935 | # SysV /etc/install, /usr/sbin/install |
| 7936 | # SunOS /usr/etc/install |
| 7937 | # IRIX /sbin/install |
| 7938 | # AIX /bin/install |
| 7939 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7940 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7941 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7942 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7943 | # OS/2's system install, which has a completely different semantic |
| 7944 | # ./install, which can be erroneously created by make from ./install.sh. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7945 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7946 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7947 | if test -z "$INSTALL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7948 | if test "${ac_cv_path_install+set}" = set; then |
| 7949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7950 | else |
| 7951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7952 | for as_dir in $PATH |
| 7953 | do |
| 7954 | IFS=$as_save_IFS |
| 7955 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7956 | # Account for people who put trailing slashes in PATH elements. |
| 7957 | case $as_dir/ in |
| 7958 | ./ | .// | /cC/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7959 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7960 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7961 | /usr/ucb/* ) ;; |
| 7962 | *) |
| 7963 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7964 | # Don't use installbsd from OSF since it installs stuff as root |
| 7965 | # by default. |
| 7966 | for ac_prog in ginstall scoinst install; do |
| 7967 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7968 | 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] | 7969 | if test $ac_prog = install && |
| 7970 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7971 | # AIX install. It has an incompatible calling convention. |
| 7972 | : |
| 7973 | elif test $ac_prog = install && |
| 7974 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7975 | # program-specific install script used by HP pwplus--don't use. |
| 7976 | : |
| 7977 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7978 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7979 | break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7980 | fi |
| 7981 | fi |
| 7982 | done |
| 7983 | done |
| 7984 | ;; |
| 7985 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7986 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7987 | IFS=$as_save_IFS |
| 7988 | |
| 7989 | |
| 7990 | fi |
| 7991 | if test "${ac_cv_path_install+set}" = set; then |
| 7992 | INSTALL=$ac_cv_path_install |
| 7993 | else |
| 7994 | # As a last resort, use the slow shell script. Don't cache a |
| 7995 | # value for INSTALL within a source directory, because that will |
| 7996 | # break other packages using the cache if that directory is |
| 7997 | # removed, or if the value is a relative name. |
| 7998 | INSTALL=$ac_install_sh |
| 7999 | fi |
| 8000 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8001 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 8002 | echo "${ECHO_T}$INSTALL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8003 | |
| 8004 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 8005 | # It thinks the first close brace ends the variable substitution. |
| 8006 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 8007 | |
| 8008 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 8009 | |
| 8010 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 8011 | |
Eric Christopher | 2a1a44f | 2010-07-22 21:13:48 +0000 | [diff] [blame] | 8012 | case "$INSTALL" in |
| 8013 | [\\/$]* | ?:[\\/]* ) ;; |
| 8014 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 8015 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8016 | |
| 8017 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 8018 | set dummy bzip2; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8019 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8020 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8021 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 8022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8023 | else |
| 8024 | case $BZIP2 in |
| 8025 | [\\/]* | ?:[\\/]*) |
| 8026 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 8027 | ;; |
| 8028 | *) |
| 8029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8030 | for as_dir in $PATH |
| 8031 | do |
| 8032 | IFS=$as_save_IFS |
| 8033 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8034 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8035 | 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] | 8036 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8037 | 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] | 8038 | break 2 |
| 8039 | fi |
| 8040 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8041 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8042 | IFS=$as_save_IFS |
| 8043 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8044 | ;; |
| 8045 | esac |
| 8046 | fi |
| 8047 | BZIP2=$ac_cv_path_BZIP2 |
| 8048 | if test -n "$BZIP2"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8049 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 8050 | echo "${ECHO_T}$BZIP2" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8051 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8052 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8053 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8054 | fi |
| 8055 | |
| 8056 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 8057 | # Extract the first word of "cat", so it can be a program name with args. |
| 8058 | set dummy cat; ac_word=$2 |
| 8059 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8060 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8061 | if test "${ac_cv_path_CAT+set}" = set; then |
| 8062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8063 | else |
| 8064 | case $CAT in |
| 8065 | [\\/]* | ?:[\\/]*) |
| 8066 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
| 8067 | ;; |
| 8068 | *) |
| 8069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8070 | for as_dir in $PATH |
| 8071 | do |
| 8072 | IFS=$as_save_IFS |
| 8073 | test -z "$as_dir" && as_dir=. |
| 8074 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8075 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8076 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" |
| 8077 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8078 | break 2 |
| 8079 | fi |
| 8080 | done |
| 8081 | done |
| 8082 | IFS=$as_save_IFS |
| 8083 | |
| 8084 | ;; |
| 8085 | esac |
| 8086 | fi |
| 8087 | CAT=$ac_cv_path_CAT |
| 8088 | if test -n "$CAT"; then |
| 8089 | { echo "$as_me:$LINENO: result: $CAT" >&5 |
| 8090 | echo "${ECHO_T}$CAT" >&6; } |
| 8091 | else |
| 8092 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8093 | echo "${ECHO_T}no" >&6; } |
| 8094 | fi |
| 8095 | |
| 8096 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8097 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 8098 | set dummy doxygen; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8099 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8100 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8101 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 8102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8103 | else |
| 8104 | case $DOXYGEN in |
| 8105 | [\\/]* | ?:[\\/]*) |
| 8106 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 8107 | ;; |
| 8108 | *) |
| 8109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8110 | for as_dir in $PATH |
| 8111 | do |
| 8112 | IFS=$as_save_IFS |
| 8113 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8114 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8115 | 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] | 8116 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8117 | 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] | 8118 | break 2 |
| 8119 | fi |
| 8120 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8121 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8122 | IFS=$as_save_IFS |
| 8123 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8124 | ;; |
| 8125 | esac |
| 8126 | fi |
| 8127 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 8128 | if test -n "$DOXYGEN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8129 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 8130 | echo "${ECHO_T}$DOXYGEN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8131 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8132 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8133 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8134 | fi |
| 8135 | |
| 8136 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8137 | # Extract the first word of "groff", so it can be a program name with args. |
| 8138 | set dummy groff; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8139 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8140 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8141 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 8142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8143 | else |
| 8144 | case $GROFF in |
| 8145 | [\\/]* | ?:[\\/]*) |
| 8146 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 8147 | ;; |
| 8148 | *) |
| 8149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8150 | for as_dir in $PATH |
| 8151 | do |
| 8152 | IFS=$as_save_IFS |
| 8153 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8154 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8155 | 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] | 8156 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8157 | 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] | 8158 | break 2 |
| 8159 | fi |
| 8160 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8161 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8162 | IFS=$as_save_IFS |
| 8163 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8164 | ;; |
| 8165 | esac |
| 8166 | fi |
| 8167 | GROFF=$ac_cv_path_GROFF |
| 8168 | if test -n "$GROFF"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8169 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 8170 | echo "${ECHO_T}$GROFF" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8171 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8172 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8173 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8174 | fi |
| 8175 | |
| 8176 | |
| 8177 | # Extract the first word of "gzip", so it can be a program name with args. |
| 8178 | set dummy gzip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8179 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8180 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8181 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 8182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8183 | else |
| 8184 | case $GZIP in |
| 8185 | [\\/]* | ?:[\\/]*) |
| 8186 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 8187 | ;; |
| 8188 | *) |
| 8189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8190 | for as_dir in $PATH |
| 8191 | do |
| 8192 | IFS=$as_save_IFS |
| 8193 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8194 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8195 | 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] | 8196 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8197 | 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] | 8198 | break 2 |
| 8199 | fi |
| 8200 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8201 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8202 | IFS=$as_save_IFS |
| 8203 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8204 | ;; |
| 8205 | esac |
| 8206 | fi |
| 8207 | GZIP=$ac_cv_path_GZIP |
| 8208 | if test -n "$GZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8209 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 8210 | echo "${ECHO_T}$GZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8211 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8212 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8213 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8214 | fi |
| 8215 | |
| 8216 | |
| 8217 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 8218 | set dummy pod2html; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8219 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8220 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8221 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 8222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8223 | else |
| 8224 | case $POD2HTML in |
| 8225 | [\\/]* | ?:[\\/]*) |
| 8226 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 8227 | ;; |
| 8228 | *) |
| 8229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8230 | for as_dir in $PATH |
| 8231 | do |
| 8232 | IFS=$as_save_IFS |
| 8233 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8234 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8235 | 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] | 8236 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8237 | 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] | 8238 | break 2 |
| 8239 | fi |
| 8240 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8241 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8242 | IFS=$as_save_IFS |
| 8243 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8244 | ;; |
| 8245 | esac |
| 8246 | fi |
| 8247 | POD2HTML=$ac_cv_path_POD2HTML |
| 8248 | if test -n "$POD2HTML"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8249 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 8250 | echo "${ECHO_T}$POD2HTML" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8251 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8252 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8253 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8254 | fi |
| 8255 | |
| 8256 | |
| 8257 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 8258 | set dummy pod2man; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8259 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8260 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8261 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 8262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8263 | else |
| 8264 | case $POD2MAN in |
| 8265 | [\\/]* | ?:[\\/]*) |
| 8266 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 8267 | ;; |
| 8268 | *) |
| 8269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8270 | for as_dir in $PATH |
| 8271 | do |
| 8272 | IFS=$as_save_IFS |
| 8273 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8274 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8275 | 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] | 8276 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8277 | 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] | 8278 | break 2 |
| 8279 | fi |
| 8280 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8281 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8282 | IFS=$as_save_IFS |
| 8283 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8284 | ;; |
| 8285 | esac |
| 8286 | fi |
| 8287 | POD2MAN=$ac_cv_path_POD2MAN |
| 8288 | if test -n "$POD2MAN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8289 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 8290 | echo "${ECHO_T}$POD2MAN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8291 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8292 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8293 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8294 | fi |
| 8295 | |
| 8296 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 8297 | # Extract the first word of "pdfroff", so it can be a program name with args. |
| 8298 | set dummy pdfroff; ac_word=$2 |
| 8299 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8300 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8301 | if test "${ac_cv_path_PDFROFF+set}" = set; then |
| 8302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8303 | else |
| 8304 | case $PDFROFF in |
| 8305 | [\\/]* | ?:[\\/]*) |
| 8306 | ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. |
| 8307 | ;; |
| 8308 | *) |
| 8309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8310 | for as_dir in $PATH |
| 8311 | do |
| 8312 | IFS=$as_save_IFS |
| 8313 | test -z "$as_dir" && as_dir=. |
| 8314 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8315 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8316 | ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" |
| 8317 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8318 | break 2 |
| 8319 | fi |
| 8320 | done |
| 8321 | done |
| 8322 | IFS=$as_save_IFS |
| 8323 | |
| 8324 | ;; |
| 8325 | esac |
| 8326 | fi |
| 8327 | PDFROFF=$ac_cv_path_PDFROFF |
| 8328 | if test -n "$PDFROFF"; then |
| 8329 | { echo "$as_me:$LINENO: result: $PDFROFF" >&5 |
| 8330 | echo "${ECHO_T}$PDFROFF" >&6; } |
| 8331 | else |
| 8332 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8333 | echo "${ECHO_T}no" >&6; } |
| 8334 | fi |
| 8335 | |
| 8336 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8337 | # Extract the first word of "runtest", so it can be a program name with args. |
| 8338 | set dummy runtest; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8339 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8340 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8341 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 8342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8343 | else |
| 8344 | case $RUNTEST in |
| 8345 | [\\/]* | ?:[\\/]*) |
| 8346 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 8347 | ;; |
| 8348 | *) |
| 8349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8350 | for as_dir in $PATH |
| 8351 | do |
| 8352 | IFS=$as_save_IFS |
| 8353 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8354 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8355 | 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] | 8356 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8357 | 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] | 8358 | break 2 |
| 8359 | fi |
| 8360 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8361 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8362 | IFS=$as_save_IFS |
| 8363 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8364 | ;; |
| 8365 | esac |
| 8366 | fi |
| 8367 | RUNTEST=$ac_cv_path_RUNTEST |
| 8368 | if test -n "$RUNTEST"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8369 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 8370 | echo "${ECHO_T}$RUNTEST" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8371 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8372 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8373 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8374 | fi |
| 8375 | |
| 8376 | |
| 8377 | |
| 8378 | no_itcl=true |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8379 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 8380 | 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] | 8381 | |
| 8382 | # Check whether --with-tclinclude was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8383 | if test "${with_tclinclude+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8384 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 8385 | else |
| 8386 | with_tclinclude='' |
| 8387 | fi |
| 8388 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8389 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 8390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8391 | else |
| 8392 | |
| 8393 | if test x"${with_tclinclude}" != x ; then |
| 8394 | if test -f ${with_tclinclude}/tclsh ; then |
| 8395 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 8396 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 8397 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 8398 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8399 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 8400 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 8401 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8402 | fi |
| 8403 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 8404 | fi |
| 8405 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8406 | |
| 8407 | if test x"${ac_cv_path_tclsh}" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8408 | { echo "$as_me:$LINENO: result: none" >&5 |
| 8409 | echo "${ECHO_T}none" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8410 | 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 |
| 8411 | do |
| 8412 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8413 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8414 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8415 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8416 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 8417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8418 | else |
| 8419 | case $TCLSH in |
| 8420 | [\\/]* | ?:[\\/]*) |
| 8421 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 8422 | ;; |
| 8423 | *) |
| 8424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8425 | for as_dir in $PATH |
| 8426 | do |
| 8427 | IFS=$as_save_IFS |
| 8428 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8429 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8430 | 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] | 8431 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8432 | 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] | 8433 | break 2 |
| 8434 | fi |
| 8435 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8436 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8437 | IFS=$as_save_IFS |
| 8438 | |
| 8439 | ;; |
| 8440 | esac |
| 8441 | fi |
| 8442 | TCLSH=$ac_cv_path_TCLSH |
| 8443 | if test -n "$TCLSH"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8444 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 8445 | echo "${ECHO_T}$TCLSH" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8446 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8447 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8448 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8449 | fi |
| 8450 | |
| 8451 | |
| 8452 | test -n "$TCLSH" && break |
| 8453 | done |
| 8454 | |
| 8455 | if test x"${TCLSH}" = x ; then |
| 8456 | ac_cv_path_tclsh=''; |
| 8457 | else |
| 8458 | ac_cv_path_tclsh="${TCLSH}"; |
| 8459 | fi |
| 8460 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8461 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 8462 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8463 | TCLSH="${ac_cv_path_tclsh}" |
| 8464 | |
| 8465 | fi |
| 8466 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8467 | # Extract the first word of "zip", so it can be a program name with args. |
| 8468 | set dummy zip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8469 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8470 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8471 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 8472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8473 | else |
| 8474 | case $ZIP in |
| 8475 | [\\/]* | ?:[\\/]*) |
| 8476 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 8477 | ;; |
| 8478 | *) |
| 8479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8480 | for as_dir in $PATH |
| 8481 | do |
| 8482 | IFS=$as_save_IFS |
| 8483 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8484 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8485 | 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] | 8486 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8487 | 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] | 8488 | break 2 |
| 8489 | fi |
| 8490 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8491 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8492 | IFS=$as_save_IFS |
| 8493 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8494 | ;; |
| 8495 | esac |
| 8496 | fi |
| 8497 | ZIP=$ac_cv_path_ZIP |
| 8498 | if test -n "$ZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8499 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 8500 | echo "${ECHO_T}$ZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8501 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8502 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8503 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8504 | fi |
| 8505 | |
| 8506 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8507 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8508 | do |
| 8509 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8510 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8511 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8512 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8513 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8515 | else |
| 8516 | case $OCAMLC in |
| 8517 | [\\/]* | ?:[\\/]*) |
| 8518 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8519 | ;; |
| 8520 | *) |
| 8521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8522 | for as_dir in $PATH |
| 8523 | do |
| 8524 | IFS=$as_save_IFS |
| 8525 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8526 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8527 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8528 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8529 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8530 | break 2 |
| 8531 | fi |
| 8532 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8533 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8534 | IFS=$as_save_IFS |
| 8535 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8536 | ;; |
| 8537 | esac |
| 8538 | fi |
| 8539 | OCAMLC=$ac_cv_path_OCAMLC |
| 8540 | if test -n "$OCAMLC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8541 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8542 | echo "${ECHO_T}$OCAMLC" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8543 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8544 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8545 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8546 | fi |
| 8547 | |
| 8548 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8549 | test -n "$OCAMLC" && break |
| 8550 | done |
| 8551 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8552 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8553 | do |
| 8554 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8555 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8556 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8557 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8558 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8560 | else |
| 8561 | case $OCAMLOPT in |
| 8562 | [\\/]* | ?:[\\/]*) |
| 8563 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8564 | ;; |
| 8565 | *) |
| 8566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8567 | for as_dir in $PATH |
| 8568 | do |
| 8569 | IFS=$as_save_IFS |
| 8570 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8571 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8572 | 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] | 8573 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8574 | 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] | 8575 | break 2 |
| 8576 | fi |
| 8577 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8578 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8579 | IFS=$as_save_IFS |
| 8580 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8581 | ;; |
| 8582 | esac |
| 8583 | fi |
| 8584 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8585 | if test -n "$OCAMLOPT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8586 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8587 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8588 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8589 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8590 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8591 | fi |
| 8592 | |
| 8593 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8594 | test -n "$OCAMLOPT" && break |
| 8595 | done |
| 8596 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8597 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8598 | do |
| 8599 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8600 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8601 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8602 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8603 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8605 | else |
| 8606 | case $OCAMLDEP in |
| 8607 | [\\/]* | ?:[\\/]*) |
| 8608 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8609 | ;; |
| 8610 | *) |
| 8611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8612 | for as_dir in $PATH |
| 8613 | do |
| 8614 | IFS=$as_save_IFS |
| 8615 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8616 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8617 | 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] | 8618 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8619 | 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] | 8620 | break 2 |
| 8621 | fi |
| 8622 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8623 | done |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8624 | IFS=$as_save_IFS |
| 8625 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8626 | ;; |
| 8627 | esac |
| 8628 | fi |
| 8629 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8630 | if test -n "$OCAMLDEP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8631 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8632 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8633 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8634 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8635 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8636 | fi |
| 8637 | |
| 8638 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8639 | test -n "$OCAMLDEP" && break |
| 8640 | done |
| 8641 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8642 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8643 | do |
| 8644 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8645 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8646 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8647 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8648 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 8649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8650 | else |
| 8651 | case $OCAMLDOC in |
| 8652 | [\\/]* | ?:[\\/]*) |
| 8653 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 8654 | ;; |
| 8655 | *) |
| 8656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8657 | for as_dir in $PATH |
| 8658 | do |
| 8659 | IFS=$as_save_IFS |
| 8660 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8661 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8662 | 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] | 8663 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8664 | 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] | 8665 | break 2 |
| 8666 | fi |
| 8667 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8668 | done |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8669 | IFS=$as_save_IFS |
| 8670 | |
| 8671 | ;; |
| 8672 | esac |
| 8673 | fi |
| 8674 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 8675 | if test -n "$OCAMLDOC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8676 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 8677 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8678 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8679 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8680 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8681 | fi |
| 8682 | |
| 8683 | |
| 8684 | test -n "$OCAMLDOC" && break |
| 8685 | done |
| 8686 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8687 | for ac_prog in gas as |
| 8688 | do |
| 8689 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8690 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8691 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8692 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8693 | if test "${ac_cv_path_GAS+set}" = set; then |
| 8694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8695 | else |
| 8696 | case $GAS in |
| 8697 | [\\/]* | ?:[\\/]*) |
| 8698 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 8699 | ;; |
| 8700 | *) |
| 8701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8702 | for as_dir in $PATH |
| 8703 | do |
| 8704 | IFS=$as_save_IFS |
| 8705 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8706 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8707 | 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] | 8708 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8709 | 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] | 8710 | break 2 |
| 8711 | fi |
| 8712 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8713 | done |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8714 | IFS=$as_save_IFS |
| 8715 | |
| 8716 | ;; |
| 8717 | esac |
| 8718 | fi |
| 8719 | GAS=$ac_cv_path_GAS |
| 8720 | if test -n "$GAS"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8721 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 8722 | echo "${ECHO_T}$GAS" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8723 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8724 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8725 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8726 | fi |
| 8727 | |
| 8728 | |
| 8729 | test -n "$GAS" && break |
| 8730 | done |
| 8731 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8732 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8733 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8734 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8735 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8737 | else |
| 8738 | ac_ext=c |
| 8739 | ac_cpp='$CPP $CPPFLAGS' |
| 8740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8743 | |
| 8744 | oldcflags="$CFLAGS" |
| 8745 | CFLAGS="$CFLAGS -Wl,-R." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8746 | cat >conftest.$ac_ext <<_ACEOF |
| 8747 | /* confdefs.h. */ |
| 8748 | _ACEOF |
| 8749 | cat confdefs.h >>conftest.$ac_ext |
| 8750 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8751 | /* end confdefs.h. */ |
| 8752 | |
| 8753 | int |
| 8754 | main () |
| 8755 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8756 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8757 | ; |
| 8758 | return 0; |
| 8759 | } |
| 8760 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8761 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8762 | if { (ac_try="$ac_link" |
| 8763 | case "(($ac_try" in |
| 8764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8765 | *) ac_try_echo=$ac_try;; |
| 8766 | esac |
| 8767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8768 | (eval "$ac_link") 2>conftest.er1 |
| 8769 | ac_status=$? |
| 8770 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8771 | rm -f conftest.er1 |
| 8772 | cat conftest.err >&5 |
| 8773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8774 | (exit $ac_status); } && |
| 8775 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8776 | { (case "(($ac_try" in |
| 8777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8778 | *) ac_try_echo=$ac_try;; |
| 8779 | esac |
| 8780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8781 | (eval "$ac_try") 2>&5 |
| 8782 | ac_status=$? |
| 8783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8784 | (exit $ac_status); }; } && |
| 8785 | { ac_try='test -s conftest$ac_exeext' |
| 8786 | { (case "(($ac_try" in |
| 8787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8788 | *) ac_try_echo=$ac_try;; |
| 8789 | esac |
| 8790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8791 | (eval "$ac_try") 2>&5 |
| 8792 | ac_status=$? |
| 8793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8794 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8795 | llvm_cv_link_use_r=yes |
| 8796 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8797 | echo "$as_me: failed program was:" >&5 |
| 8798 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8799 | |
| 8800 | llvm_cv_link_use_r=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8801 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8802 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8803 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8804 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8805 | CFLAGS="$oldcflags" |
| 8806 | ac_ext=c |
| 8807 | ac_cpp='$CPP $CPPFLAGS' |
| 8808 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8809 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8810 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8811 | |
| 8812 | |
| 8813 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8814 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8815 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8816 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8817 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8818 | cat >>confdefs.h <<\_ACEOF |
| 8819 | #define HAVE_LINK_R 1 |
| 8820 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8821 | |
| 8822 | fi |
| 8823 | |
| 8824 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8825 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 8826 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 8827 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 8828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8829 | else |
| 8830 | ac_ext=c |
| 8831 | ac_cpp='$CPP $CPPFLAGS' |
| 8832 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8833 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8834 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8835 | |
| 8836 | oldcflags="$CFLAGS" |
| 8837 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8838 | cat >conftest.$ac_ext <<_ACEOF |
| 8839 | /* confdefs.h. */ |
| 8840 | _ACEOF |
| 8841 | cat confdefs.h >>conftest.$ac_ext |
| 8842 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8843 | /* end confdefs.h. */ |
| 8844 | |
| 8845 | int |
| 8846 | main () |
| 8847 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8848 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8849 | ; |
| 8850 | return 0; |
| 8851 | } |
| 8852 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8853 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8854 | if { (ac_try="$ac_link" |
| 8855 | case "(($ac_try" in |
| 8856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8857 | *) ac_try_echo=$ac_try;; |
| 8858 | esac |
| 8859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8860 | (eval "$ac_link") 2>conftest.er1 |
| 8861 | ac_status=$? |
| 8862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8863 | rm -f conftest.er1 |
| 8864 | cat conftest.err >&5 |
| 8865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8866 | (exit $ac_status); } && |
| 8867 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8868 | { (case "(($ac_try" in |
| 8869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8870 | *) ac_try_echo=$ac_try;; |
| 8871 | esac |
| 8872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8873 | (eval "$ac_try") 2>&5 |
| 8874 | ac_status=$? |
| 8875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8876 | (exit $ac_status); }; } && |
| 8877 | { ac_try='test -s conftest$ac_exeext' |
| 8878 | { (case "(($ac_try" in |
| 8879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8880 | *) ac_try_echo=$ac_try;; |
| 8881 | esac |
| 8882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8883 | (eval "$ac_try") 2>&5 |
| 8884 | ac_status=$? |
| 8885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8886 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8887 | llvm_cv_link_use_export_dynamic=yes |
| 8888 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8889 | echo "$as_me: failed program was:" >&5 |
| 8890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8891 | |
| 8892 | llvm_cv_link_use_export_dynamic=no |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8893 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8894 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8895 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8896 | conftest$ac_exeext conftest.$ac_ext |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8897 | CFLAGS="$oldcflags" |
| 8898 | ac_ext=c |
| 8899 | ac_cpp='$CPP $CPPFLAGS' |
| 8900 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8901 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8902 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8903 | |
| 8904 | |
| 8905 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8906 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 8907 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8908 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 8909 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8910 | cat >>confdefs.h <<\_ACEOF |
| 8911 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 8912 | _ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8913 | |
| 8914 | fi |
| 8915 | |
| 8916 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8917 | { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 |
| 8918 | echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } |
| 8919 | if test "${llvm_cv_link_use_version_script+set}" = set; then |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8921 | else |
| 8922 | ac_ext=c |
| 8923 | ac_cpp='$CPP $CPPFLAGS' |
| 8924 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8925 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8926 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8927 | |
| 8928 | oldcflags="$CFLAGS" |
| 8929 | |
| 8930 | # The following code is from the autoconf manual, |
| 8931 | # "11.13: Limitations of Usual Tools". |
| 8932 | # Create a temporary directory $tmp in $TMPDIR (default /tmp). |
| 8933 | # Use mktemp if possible; otherwise fall back on mkdir, |
| 8934 | # with $RANDOM to make collisions less likely. |
| 8935 | : ${TMPDIR=/tmp} |
| 8936 | { |
| 8937 | tmp=` |
| 8938 | (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null |
| 8939 | ` && |
| 8940 | test -n "$tmp" && test -d "$tmp" |
| 8941 | } || { |
| 8942 | tmp=$TMPDIR/foo$$-$RANDOM |
| 8943 | (umask 077 && mkdir "$tmp") |
| 8944 | } || exit $? |
| 8945 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8946 | echo "{" > "$tmp/export.map" |
| 8947 | echo " global: main;" >> "$tmp/export.map" |
| 8948 | echo " local: *;" >> "$tmp/export.map" |
| 8949 | echo "};" >> "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8950 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8951 | CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8952 | cat >conftest.$ac_ext <<_ACEOF |
| 8953 | /* confdefs.h. */ |
| 8954 | _ACEOF |
| 8955 | cat confdefs.h >>conftest.$ac_ext |
| 8956 | cat >>conftest.$ac_ext <<_ACEOF |
| 8957 | /* end confdefs.h. */ |
| 8958 | |
| 8959 | int |
| 8960 | main () |
| 8961 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8962 | |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8963 | ; |
| 8964 | return 0; |
| 8965 | } |
| 8966 | _ACEOF |
| 8967 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8968 | if { (ac_try="$ac_link" |
| 8969 | case "(($ac_try" in |
| 8970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8971 | *) ac_try_echo=$ac_try;; |
| 8972 | esac |
| 8973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8974 | (eval "$ac_link") 2>conftest.er1 |
| 8975 | ac_status=$? |
| 8976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8977 | rm -f conftest.er1 |
| 8978 | cat conftest.err >&5 |
| 8979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8980 | (exit $ac_status); } && |
| 8981 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8982 | { (case "(($ac_try" in |
| 8983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8984 | *) ac_try_echo=$ac_try;; |
| 8985 | esac |
| 8986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8987 | (eval "$ac_try") 2>&5 |
| 8988 | ac_status=$? |
| 8989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8990 | (exit $ac_status); }; } && |
| 8991 | { ac_try='test -s conftest$ac_exeext' |
| 8992 | { (case "(($ac_try" in |
| 8993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8994 | *) ac_try_echo=$ac_try;; |
| 8995 | esac |
| 8996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8997 | (eval "$ac_try") 2>&5 |
| 8998 | ac_status=$? |
| 8999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9000 | (exit $ac_status); }; }; then |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9001 | llvm_cv_link_use_version_script=yes |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9002 | else |
| 9003 | echo "$as_me: failed program was:" >&5 |
| 9004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9005 | |
Dan Gohman | 943005e | 2010-06-01 16:22:27 +0000 | [diff] [blame] | 9006 | llvm_cv_link_use_version_script=no |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9007 | fi |
| 9008 | |
| 9009 | rm -f core conftest.err conftest.$ac_objext \ |
| 9010 | conftest$ac_exeext conftest.$ac_ext |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9011 | rm "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9012 | rmdir "$tmp" |
| 9013 | CFLAGS="$oldcflags" |
| 9014 | ac_ext=c |
| 9015 | ac_cpp='$CPP $CPPFLAGS' |
| 9016 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9017 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9018 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9019 | |
| 9020 | |
| 9021 | fi |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9022 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 |
| 9023 | echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } |
| 9024 | if test "$llvm_cv_link_use_version_script" = yes ; then |
| 9025 | HAVE_LINK_VERSION_SCRIPT=1 |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9026 | |
| 9027 | fi |
| 9028 | |
| 9029 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9030 | |
| 9031 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9032 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 9033 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 9034 | if test "${ac_cv_c_const+set}" = set; then |
| 9035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9036 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9037 | cat >conftest.$ac_ext <<_ACEOF |
| 9038 | /* confdefs.h. */ |
| 9039 | _ACEOF |
| 9040 | cat confdefs.h >>conftest.$ac_ext |
| 9041 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9042 | /* end confdefs.h. */ |
| 9043 | |
| 9044 | int |
| 9045 | main () |
| 9046 | { |
| 9047 | /* FIXME: Include the comments suggested by Paul. */ |
| 9048 | #ifndef __cplusplus |
| 9049 | /* Ultrix mips cc rejects this. */ |
| 9050 | typedef int charset[2]; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9051 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9052 | /* SunOS 4.1.1 cc rejects this. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9053 | char const *const *ccp; |
| 9054 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9055 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 9056 | struct point {int x, y;}; |
| 9057 | static struct point const zero = {0,0}; |
| 9058 | /* AIX XL C 1.02.0.0 rejects this. |
| 9059 | It does not let you subtract one const X* pointer from another in |
| 9060 | an arm of an if-expression whose if-part is not a constant |
| 9061 | expression */ |
| 9062 | const char *g = "string"; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9063 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9064 | /* HPUX 7.0 cc rejects these. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9065 | ++ccp; |
| 9066 | p = (char**) ccp; |
| 9067 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9068 | { /* SCO 3.2v4 cc rejects this. */ |
| 9069 | char *t; |
| 9070 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 9071 | |
| 9072 | *t++ = 0; |
| 9073 | if (s) return 0; |
| 9074 | } |
| 9075 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 9076 | int x[] = {25, 17}; |
| 9077 | const int *foo = &x[0]; |
| 9078 | ++foo; |
| 9079 | } |
| 9080 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 9081 | typedef const int *iptr; |
| 9082 | iptr p = 0; |
| 9083 | ++p; |
| 9084 | } |
| 9085 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 9086 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 9087 | struct s { int j; const int *ap[3]; }; |
| 9088 | struct s *b; b->j = 5; |
| 9089 | } |
| 9090 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 9091 | const int foo = 10; |
| 9092 | if (!foo) return 0; |
| 9093 | } |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9094 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9095 | #endif |
| 9096 | |
| 9097 | ; |
| 9098 | return 0; |
| 9099 | } |
| 9100 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9101 | rm -f conftest.$ac_objext |
| 9102 | if { (ac_try="$ac_compile" |
| 9103 | case "(($ac_try" in |
| 9104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9105 | *) ac_try_echo=$ac_try;; |
| 9106 | esac |
| 9107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9108 | (eval "$ac_compile") 2>conftest.er1 |
| 9109 | ac_status=$? |
| 9110 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9111 | rm -f conftest.er1 |
| 9112 | cat conftest.err >&5 |
| 9113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9114 | (exit $ac_status); } && |
| 9115 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9116 | { (case "(($ac_try" in |
| 9117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9118 | *) ac_try_echo=$ac_try;; |
| 9119 | esac |
| 9120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9121 | (eval "$ac_try") 2>&5 |
| 9122 | ac_status=$? |
| 9123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9124 | (exit $ac_status); }; } && |
| 9125 | { ac_try='test -s conftest.$ac_objext' |
| 9126 | { (case "(($ac_try" in |
| 9127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9128 | *) ac_try_echo=$ac_try;; |
| 9129 | esac |
| 9130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9131 | (eval "$ac_try") 2>&5 |
| 9132 | ac_status=$? |
| 9133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9134 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9135 | ac_cv_c_const=yes |
| 9136 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9137 | echo "$as_me: failed program was:" >&5 |
| 9138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9139 | |
| 9140 | ac_cv_c_const=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9141 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9142 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9144 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9145 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 9146 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9147 | if test $ac_cv_c_const = no; then |
| 9148 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9149 | cat >>confdefs.h <<\_ACEOF |
| 9150 | #define const |
| 9151 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9152 | |
| 9153 | fi |
| 9154 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9155 | |
| 9156 | |
| 9157 | |
| 9158 | |
| 9159 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9160 | ac_header_dirent=no |
| 9161 | 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] | 9162 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 9163 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 9164 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 9165 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9167 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9168 | cat >conftest.$ac_ext <<_ACEOF |
| 9169 | /* confdefs.h. */ |
| 9170 | _ACEOF |
| 9171 | cat confdefs.h >>conftest.$ac_ext |
| 9172 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9173 | /* end confdefs.h. */ |
| 9174 | #include <sys/types.h> |
| 9175 | #include <$ac_hdr> |
| 9176 | |
| 9177 | int |
| 9178 | main () |
| 9179 | { |
| 9180 | if ((DIR *) 0) |
| 9181 | return 0; |
| 9182 | ; |
| 9183 | return 0; |
| 9184 | } |
| 9185 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9186 | rm -f conftest.$ac_objext |
| 9187 | if { (ac_try="$ac_compile" |
| 9188 | case "(($ac_try" in |
| 9189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9190 | *) ac_try_echo=$ac_try;; |
| 9191 | esac |
| 9192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9193 | (eval "$ac_compile") 2>conftest.er1 |
| 9194 | ac_status=$? |
| 9195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9196 | rm -f conftest.er1 |
| 9197 | cat conftest.err >&5 |
| 9198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9199 | (exit $ac_status); } && |
| 9200 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9201 | { (case "(($ac_try" in |
| 9202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9203 | *) ac_try_echo=$ac_try;; |
| 9204 | esac |
| 9205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9206 | (eval "$ac_try") 2>&5 |
| 9207 | ac_status=$? |
| 9208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9209 | (exit $ac_status); }; } && |
| 9210 | { ac_try='test -s conftest.$ac_objext' |
| 9211 | { (case "(($ac_try" in |
| 9212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9213 | *) ac_try_echo=$ac_try;; |
| 9214 | esac |
| 9215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9216 | (eval "$ac_try") 2>&5 |
| 9217 | ac_status=$? |
| 9218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9219 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9220 | eval "$as_ac_Header=yes" |
| 9221 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9222 | echo "$as_me: failed program was:" >&5 |
| 9223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9224 | |
| 9225 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9226 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9227 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9229 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9230 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9231 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9232 | echo "${ECHO_T}$ac_res" >&6; } |
| 9233 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9234 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9235 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9236 | _ACEOF |
| 9237 | |
| 9238 | ac_header_dirent=$ac_hdr; break |
| 9239 | fi |
| 9240 | |
| 9241 | done |
| 9242 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 9243 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9244 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9245 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9246 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9248 | else |
| 9249 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9250 | cat >conftest.$ac_ext <<_ACEOF |
| 9251 | /* confdefs.h. */ |
| 9252 | _ACEOF |
| 9253 | cat confdefs.h >>conftest.$ac_ext |
| 9254 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9255 | /* end confdefs.h. */ |
| 9256 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9257 | /* Override any GCC internal prototype to avoid an error. |
| 9258 | Use char because int might match the return type of a GCC |
| 9259 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9260 | #ifdef __cplusplus |
| 9261 | extern "C" |
| 9262 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9263 | char opendir (); |
| 9264 | int |
| 9265 | main () |
| 9266 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9267 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9268 | ; |
| 9269 | return 0; |
| 9270 | } |
| 9271 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9272 | for ac_lib in '' dir; do |
| 9273 | if test -z "$ac_lib"; then |
| 9274 | ac_res="none required" |
| 9275 | else |
| 9276 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9277 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9278 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9279 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9280 | if { (ac_try="$ac_link" |
| 9281 | case "(($ac_try" in |
| 9282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9283 | *) ac_try_echo=$ac_try;; |
| 9284 | esac |
| 9285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9286 | (eval "$ac_link") 2>conftest.er1 |
| 9287 | ac_status=$? |
| 9288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9289 | rm -f conftest.er1 |
| 9290 | cat conftest.err >&5 |
| 9291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9292 | (exit $ac_status); } && |
| 9293 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9294 | { (case "(($ac_try" in |
| 9295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9296 | *) ac_try_echo=$ac_try;; |
| 9297 | esac |
| 9298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9299 | (eval "$ac_try") 2>&5 |
| 9300 | ac_status=$? |
| 9301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9302 | (exit $ac_status); }; } && |
| 9303 | { ac_try='test -s conftest$ac_exeext' |
| 9304 | { (case "(($ac_try" in |
| 9305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9306 | *) ac_try_echo=$ac_try;; |
| 9307 | esac |
| 9308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9309 | (eval "$ac_try") 2>&5 |
| 9310 | ac_status=$? |
| 9311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9312 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9313 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9314 | else |
| 9315 | echo "$as_me: failed program was:" >&5 |
| 9316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9317 | |
| 9318 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9319 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9320 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9321 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9322 | conftest$ac_exeext |
| 9323 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9324 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9325 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9326 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9327 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9328 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9329 | else |
| 9330 | ac_cv_search_opendir=no |
| 9331 | fi |
| 9332 | rm conftest.$ac_ext |
| 9333 | LIBS=$ac_func_search_save_LIBS |
| 9334 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9335 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9336 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9337 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9338 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9339 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9340 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9341 | fi |
| 9342 | |
| 9343 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9344 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9345 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9346 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9348 | else |
| 9349 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9350 | cat >conftest.$ac_ext <<_ACEOF |
| 9351 | /* confdefs.h. */ |
| 9352 | _ACEOF |
| 9353 | cat confdefs.h >>conftest.$ac_ext |
| 9354 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9355 | /* end confdefs.h. */ |
| 9356 | |
| 9357 | /* Override any GCC internal prototype to avoid an error. |
| 9358 | Use char because int might match the return type of a GCC |
| 9359 | builtin and then its argument prototype would still apply. */ |
| 9360 | #ifdef __cplusplus |
| 9361 | extern "C" |
| 9362 | #endif |
| 9363 | char opendir (); |
| 9364 | int |
| 9365 | main () |
| 9366 | { |
| 9367 | return opendir (); |
| 9368 | ; |
| 9369 | return 0; |
| 9370 | } |
| 9371 | _ACEOF |
| 9372 | for ac_lib in '' x; do |
| 9373 | if test -z "$ac_lib"; then |
| 9374 | ac_res="none required" |
| 9375 | else |
| 9376 | ac_res=-l$ac_lib |
| 9377 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9378 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9379 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9380 | if { (ac_try="$ac_link" |
| 9381 | case "(($ac_try" in |
| 9382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9383 | *) ac_try_echo=$ac_try;; |
| 9384 | esac |
| 9385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9386 | (eval "$ac_link") 2>conftest.er1 |
| 9387 | ac_status=$? |
| 9388 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9389 | rm -f conftest.er1 |
| 9390 | cat conftest.err >&5 |
| 9391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9392 | (exit $ac_status); } && |
| 9393 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9394 | { (case "(($ac_try" in |
| 9395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9396 | *) ac_try_echo=$ac_try;; |
| 9397 | esac |
| 9398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9399 | (eval "$ac_try") 2>&5 |
| 9400 | ac_status=$? |
| 9401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9402 | (exit $ac_status); }; } && |
| 9403 | { ac_try='test -s conftest$ac_exeext' |
| 9404 | { (case "(($ac_try" in |
| 9405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9406 | *) ac_try_echo=$ac_try;; |
| 9407 | esac |
| 9408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9409 | (eval "$ac_try") 2>&5 |
| 9410 | ac_status=$? |
| 9411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9412 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9413 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9414 | else |
| 9415 | echo "$as_me: failed program was:" >&5 |
| 9416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9417 | |
| 9418 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9419 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9420 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9421 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9422 | conftest$ac_exeext |
| 9423 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9424 | break |
| 9425 | fi |
| 9426 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9427 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9428 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9429 | else |
| 9430 | ac_cv_search_opendir=no |
| 9431 | fi |
| 9432 | rm conftest.$ac_ext |
| 9433 | LIBS=$ac_func_search_save_LIBS |
| 9434 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9435 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9436 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9437 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9438 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9439 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9440 | |
| 9441 | fi |
| 9442 | |
| 9443 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9444 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9445 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9446 | for ac_header in dlfcn.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9447 | do |
| 9448 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9449 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9450 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9451 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9452 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9454 | fi |
| 9455 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9456 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9457 | echo "${ECHO_T}$ac_res" >&6; } |
| 9458 | else |
| 9459 | # Is the header compilable? |
| 9460 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9461 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 9462 | cat >conftest.$ac_ext <<_ACEOF |
| 9463 | /* confdefs.h. */ |
| 9464 | _ACEOF |
| 9465 | cat confdefs.h >>conftest.$ac_ext |
| 9466 | cat >>conftest.$ac_ext <<_ACEOF |
| 9467 | /* end confdefs.h. */ |
| 9468 | $ac_includes_default |
| 9469 | #include <$ac_header> |
| 9470 | _ACEOF |
| 9471 | rm -f conftest.$ac_objext |
| 9472 | if { (ac_try="$ac_compile" |
| 9473 | case "(($ac_try" in |
| 9474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9475 | *) ac_try_echo=$ac_try;; |
| 9476 | esac |
| 9477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9478 | (eval "$ac_compile") 2>conftest.er1 |
| 9479 | ac_status=$? |
| 9480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9481 | rm -f conftest.er1 |
| 9482 | cat conftest.err >&5 |
| 9483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9484 | (exit $ac_status); } && |
| 9485 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9486 | { (case "(($ac_try" in |
| 9487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9488 | *) ac_try_echo=$ac_try;; |
| 9489 | esac |
| 9490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9491 | (eval "$ac_try") 2>&5 |
| 9492 | ac_status=$? |
| 9493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9494 | (exit $ac_status); }; } && |
| 9495 | { ac_try='test -s conftest.$ac_objext' |
| 9496 | { (case "(($ac_try" in |
| 9497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9498 | *) ac_try_echo=$ac_try;; |
| 9499 | esac |
| 9500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9501 | (eval "$ac_try") 2>&5 |
| 9502 | ac_status=$? |
| 9503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9504 | (exit $ac_status); }; }; then |
| 9505 | ac_header_compiler=yes |
| 9506 | else |
| 9507 | echo "$as_me: failed program was:" >&5 |
| 9508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9509 | |
| 9510 | ac_header_compiler=no |
| 9511 | fi |
| 9512 | |
| 9513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9514 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9515 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9516 | |
| 9517 | # Is the header present? |
| 9518 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9519 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 9520 | cat >conftest.$ac_ext <<_ACEOF |
| 9521 | /* confdefs.h. */ |
| 9522 | _ACEOF |
| 9523 | cat confdefs.h >>conftest.$ac_ext |
| 9524 | cat >>conftest.$ac_ext <<_ACEOF |
| 9525 | /* end confdefs.h. */ |
| 9526 | #include <$ac_header> |
| 9527 | _ACEOF |
| 9528 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9529 | case "(($ac_try" in |
| 9530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9531 | *) ac_try_echo=$ac_try;; |
| 9532 | esac |
| 9533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9534 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9535 | ac_status=$? |
| 9536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9537 | rm -f conftest.er1 |
| 9538 | cat conftest.err >&5 |
| 9539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9540 | (exit $ac_status); } >/dev/null; then |
| 9541 | if test -s conftest.err; then |
| 9542 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9543 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9544 | else |
| 9545 | ac_cpp_err= |
| 9546 | fi |
| 9547 | else |
| 9548 | ac_cpp_err=yes |
| 9549 | fi |
| 9550 | if test -z "$ac_cpp_err"; then |
| 9551 | ac_header_preproc=yes |
| 9552 | else |
| 9553 | echo "$as_me: failed program was:" >&5 |
| 9554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9555 | |
| 9556 | ac_header_preproc=no |
| 9557 | fi |
| 9558 | |
| 9559 | rm -f conftest.err conftest.$ac_ext |
| 9560 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9561 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9562 | |
| 9563 | # So? What about this header? |
| 9564 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9565 | yes:no: ) |
| 9566 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9567 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9568 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9569 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9570 | ac_header_preproc=yes |
| 9571 | ;; |
| 9572 | no:yes:* ) |
| 9573 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9574 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9575 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9576 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9577 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9578 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9579 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9580 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9581 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9582 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9583 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9584 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9585 | ( cat <<\_ASBOX |
| 9586 | ## ----------------------------------- ## |
| 9587 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9588 | ## ----------------------------------- ## |
| 9589 | _ASBOX |
| 9590 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 9591 | ;; |
| 9592 | esac |
| 9593 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9594 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9595 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9597 | else |
| 9598 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9599 | fi |
| 9600 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9601 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9602 | echo "${ECHO_T}$ac_res" >&6; } |
| 9603 | |
| 9604 | fi |
| 9605 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9606 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9607 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9608 | _ACEOF |
| 9609 | |
| 9610 | fi |
| 9611 | |
| 9612 | done |
| 9613 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9614 | # Check whether --enable-ltdl-install was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9615 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9616 | enableval=$enable_ltdl_install; |
| 9617 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9618 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9619 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9620 | |
| 9621 | |
| 9622 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9623 | INSTALL_LTDL_TRUE= |
| 9624 | INSTALL_LTDL_FALSE='#' |
| 9625 | else |
| 9626 | INSTALL_LTDL_TRUE='#' |
| 9627 | INSTALL_LTDL_FALSE= |
| 9628 | fi |
| 9629 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9630 | |
| 9631 | |
| 9632 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9633 | CONVENIENCE_LTDL_TRUE= |
| 9634 | CONVENIENCE_LTDL_FALSE='#' |
| 9635 | else |
| 9636 | CONVENIENCE_LTDL_TRUE='#' |
| 9637 | CONVENIENCE_LTDL_FALSE= |
| 9638 | fi |
| 9639 | |
| 9640 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9641 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9642 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9643 | library_names_spec= |
| 9644 | libname_spec='lib$name' |
| 9645 | soname_spec= |
| 9646 | shrext_cmds=".so" |
| 9647 | postinstall_cmds= |
| 9648 | postuninstall_cmds= |
| 9649 | finish_cmds= |
| 9650 | finish_eval= |
| 9651 | shlibpath_var= |
| 9652 | shlibpath_overrides_runpath=unknown |
| 9653 | version_type=none |
| 9654 | dynamic_linker="$host_os ld.so" |
| 9655 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9656 | if test "$GCC" = yes; then |
| 9657 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9658 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 9659 | # if the path contains ";" then we assume it to be the separator |
| 9660 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9661 | # assumed that no part of a normal pathname contains ";" but that should |
| 9662 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9663 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9664 | else |
| 9665 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9666 | fi |
| 9667 | else |
| 9668 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9669 | fi |
| 9670 | need_lib_prefix=unknown |
| 9671 | hardcode_into_libs=no |
| 9672 | |
| 9673 | # when you set need_version to no, make sure it does not cause -set_version |
| 9674 | # flags to be left without arguments |
| 9675 | need_version=unknown |
| 9676 | |
| 9677 | case $host_os in |
| 9678 | aix3*) |
| 9679 | version_type=linux |
| 9680 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9681 | shlibpath_var=LIBPATH |
| 9682 | |
| 9683 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9684 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9685 | ;; |
| 9686 | |
| 9687 | aix4* | aix5*) |
| 9688 | version_type=linux |
| 9689 | need_lib_prefix=no |
| 9690 | need_version=no |
| 9691 | hardcode_into_libs=yes |
| 9692 | if test "$host_cpu" = ia64; then |
| 9693 | # AIX 5 supports IA64 |
| 9694 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9695 | shlibpath_var=LD_LIBRARY_PATH |
| 9696 | else |
| 9697 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9698 | # for dependence libraries. The import file would start with |
| 9699 | # the line `#! .'. This would cause the generated library to |
| 9700 | # depend on `.', always an invalid library. This was fixed in |
| 9701 | # development snapshots of GCC prior to 3.0. |
| 9702 | case $host_os in |
| 9703 | aix4 | aix4.[01] | aix4.[01].*) |
| 9704 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9705 | echo ' yes ' |
| 9706 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 9707 | : |
| 9708 | else |
| 9709 | can_build_shared=no |
| 9710 | fi |
| 9711 | ;; |
| 9712 | esac |
| 9713 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9714 | # soname into executable. Probably we can add versioning support to |
| 9715 | # collect2, so additional links can be useful in future. |
| 9716 | if test "$aix_use_runtimelinking" = yes; then |
| 9717 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9718 | # instead of lib<name>.a to let people know that these are not |
| 9719 | # typical AIX shared libraries. |
| 9720 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9721 | else |
| 9722 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9723 | # and later when we are not doing run time linking. |
| 9724 | library_names_spec='${libname}${release}.a $libname.a' |
| 9725 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9726 | fi |
| 9727 | shlibpath_var=LIBPATH |
| 9728 | fi |
| 9729 | ;; |
| 9730 | |
| 9731 | amigaos*) |
| 9732 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9733 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9734 | 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' |
| 9735 | ;; |
| 9736 | |
| 9737 | beos*) |
| 9738 | library_names_spec='${libname}${shared_ext}' |
| 9739 | dynamic_linker="$host_os ld.so" |
| 9740 | shlibpath_var=LIBRARY_PATH |
| 9741 | ;; |
| 9742 | |
| 9743 | bsdi[45]*) |
| 9744 | version_type=linux |
| 9745 | need_version=no |
| 9746 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9747 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9748 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9749 | shlibpath_var=LD_LIBRARY_PATH |
| 9750 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9751 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9752 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9753 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9754 | # libtool to hard-code these into programs |
| 9755 | ;; |
| 9756 | |
| 9757 | cygwin* | mingw* | pw32*) |
| 9758 | version_type=windows |
| 9759 | shrext_cmds=".dll" |
| 9760 | need_version=no |
| 9761 | need_lib_prefix=no |
| 9762 | |
| 9763 | case $GCC,$host_os in |
| 9764 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9765 | library_names_spec='$libname.dll.a' |
| 9766 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9767 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9768 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9769 | dldir=$destdir/`dirname \$dlpath`~ |
| 9770 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9771 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9772 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9773 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9774 | dlpath=$dir/\$dldll~ |
| 9775 | $rm \$dlpath' |
| 9776 | shlibpath_overrides_runpath=yes |
| 9777 | |
| 9778 | case $host_os in |
| 9779 | cygwin*) |
| 9780 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9781 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9782 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9783 | ;; |
| 9784 | mingw*) |
| 9785 | # MinGW DLLs use traditional 'lib' prefix |
| 9786 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9787 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9788 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9789 | # It is most probably a Windows format PATH printed by |
| 9790 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9791 | # path with ; separators, and with drive letters. We can handle the |
| 9792 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9793 | # especially as we might pass files found there to a mingw objdump, |
| 9794 | # which wouldn't understand a cygwinified path. Ahh. |
| 9795 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9796 | else |
| 9797 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9798 | fi |
| 9799 | ;; |
| 9800 | pw32*) |
| 9801 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9802 | 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] | 9803 | ;; |
| 9804 | esac |
| 9805 | ;; |
| 9806 | |
| 9807 | *) |
| 9808 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9809 | ;; |
| 9810 | esac |
| 9811 | dynamic_linker='Win32 ld.exe' |
| 9812 | # FIXME: first we should search . and the directory the executable is in |
| 9813 | shlibpath_var=PATH |
| 9814 | ;; |
| 9815 | |
| 9816 | darwin* | rhapsody*) |
| 9817 | dynamic_linker="$host_os dyld" |
| 9818 | version_type=darwin |
| 9819 | need_lib_prefix=no |
| 9820 | need_version=no |
| 9821 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9822 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9823 | shlibpath_overrides_runpath=yes |
| 9824 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9825 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9826 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9827 | if test "$GCC" = yes; then |
| 9828 | 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"` |
| 9829 | else |
| 9830 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9831 | fi |
| 9832 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9833 | ;; |
| 9834 | |
| 9835 | dgux*) |
| 9836 | version_type=linux |
| 9837 | need_lib_prefix=no |
| 9838 | need_version=no |
| 9839 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9840 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9841 | shlibpath_var=LD_LIBRARY_PATH |
| 9842 | ;; |
| 9843 | |
| 9844 | freebsd1*) |
| 9845 | dynamic_linker=no |
| 9846 | ;; |
| 9847 | |
| 9848 | kfreebsd*-gnu) |
| 9849 | version_type=linux |
| 9850 | need_lib_prefix=no |
| 9851 | need_version=no |
| 9852 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9853 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9854 | shlibpath_var=LD_LIBRARY_PATH |
| 9855 | shlibpath_overrides_runpath=no |
| 9856 | hardcode_into_libs=yes |
| 9857 | dynamic_linker='GNU ld.so' |
| 9858 | ;; |
| 9859 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9860 | freebsd* | dragonfly*) |
| 9861 | # DragonFly does not have aout. When/if they implement a new |
| 9862 | # versioning mechanism, adjust this. |
| 9863 | if test -x /usr/bin/objformat; then |
| 9864 | objformat=`/usr/bin/objformat` |
| 9865 | else |
| 9866 | case $host_os in |
| 9867 | freebsd[123]*) objformat=aout ;; |
| 9868 | *) objformat=elf ;; |
| 9869 | esac |
| 9870 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9871 | version_type=freebsd-$objformat |
| 9872 | case $version_type in |
| 9873 | freebsd-elf*) |
| 9874 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9875 | need_version=no |
| 9876 | need_lib_prefix=no |
| 9877 | ;; |
| 9878 | freebsd-*) |
| 9879 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9880 | need_version=yes |
| 9881 | ;; |
| 9882 | esac |
| 9883 | shlibpath_var=LD_LIBRARY_PATH |
| 9884 | case $host_os in |
| 9885 | freebsd2*) |
| 9886 | shlibpath_overrides_runpath=yes |
| 9887 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9888 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9889 | shlibpath_overrides_runpath=yes |
| 9890 | hardcode_into_libs=yes |
| 9891 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9892 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9893 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9894 | shlibpath_overrides_runpath=no |
| 9895 | hardcode_into_libs=yes |
| 9896 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9897 | freebsd*) # from 4.6 on |
| 9898 | shlibpath_overrides_runpath=yes |
| 9899 | hardcode_into_libs=yes |
| 9900 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9901 | esac |
| 9902 | ;; |
| 9903 | |
| 9904 | gnu*) |
| 9905 | version_type=linux |
| 9906 | need_lib_prefix=no |
| 9907 | need_version=no |
| 9908 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9909 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9910 | shlibpath_var=LD_LIBRARY_PATH |
| 9911 | hardcode_into_libs=yes |
| 9912 | ;; |
| 9913 | |
| 9914 | hpux9* | hpux10* | hpux11*) |
| 9915 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9916 | # link against other versions. |
| 9917 | version_type=sunos |
| 9918 | need_lib_prefix=no |
| 9919 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9920 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9921 | ia64*) |
| 9922 | shrext_cmds='.so' |
| 9923 | hardcode_into_libs=yes |
| 9924 | dynamic_linker="$host_os dld.so" |
| 9925 | shlibpath_var=LD_LIBRARY_PATH |
| 9926 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9927 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9928 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9929 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9930 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9931 | else |
| 9932 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9933 | fi |
| 9934 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9935 | ;; |
| 9936 | hppa*64*) |
| 9937 | shrext_cmds='.sl' |
| 9938 | hardcode_into_libs=yes |
| 9939 | dynamic_linker="$host_os dld.sl" |
| 9940 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9941 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9942 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9943 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9944 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9945 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9946 | ;; |
| 9947 | *) |
| 9948 | shrext_cmds='.sl' |
| 9949 | dynamic_linker="$host_os dld.sl" |
| 9950 | shlibpath_var=SHLIB_PATH |
| 9951 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9952 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9953 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9954 | ;; |
| 9955 | esac |
| 9956 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9957 | postinstall_cmds='chmod 555 $lib' |
| 9958 | ;; |
| 9959 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9960 | interix3*) |
| 9961 | version_type=linux |
| 9962 | need_lib_prefix=no |
| 9963 | need_version=no |
| 9964 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9965 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9966 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9967 | shlibpath_var=LD_LIBRARY_PATH |
| 9968 | shlibpath_overrides_runpath=no |
| 9969 | hardcode_into_libs=yes |
| 9970 | ;; |
| 9971 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9972 | irix5* | irix6* | nonstopux*) |
| 9973 | case $host_os in |
| 9974 | nonstopux*) version_type=nonstopux ;; |
| 9975 | *) |
| 9976 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9977 | version_type=linux |
| 9978 | else |
| 9979 | version_type=irix |
| 9980 | fi ;; |
| 9981 | esac |
| 9982 | need_lib_prefix=no |
| 9983 | need_version=no |
| 9984 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9985 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9986 | case $host_os in |
| 9987 | irix5* | nonstopux*) |
| 9988 | libsuff= shlibsuff= |
| 9989 | ;; |
| 9990 | *) |
| 9991 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9992 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9993 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9994 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9995 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9996 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9997 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9998 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9999 | esac |
| 10000 | ;; |
| 10001 | esac |
| 10002 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 10003 | shlibpath_overrides_runpath=no |
| 10004 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 10005 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 10006 | hardcode_into_libs=yes |
| 10007 | ;; |
| 10008 | |
| 10009 | # No shared lib support for Linux oldld, aout, or coff. |
| 10010 | linux*oldld* | linux*aout* | linux*coff*) |
| 10011 | dynamic_linker=no |
| 10012 | ;; |
| 10013 | |
| 10014 | # This must be Linux ELF. |
| 10015 | linux*) |
| 10016 | version_type=linux |
| 10017 | need_lib_prefix=no |
| 10018 | need_version=no |
| 10019 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10020 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10021 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10022 | shlibpath_var=LD_LIBRARY_PATH |
| 10023 | shlibpath_overrides_runpath=no |
| 10024 | # This implies no fast_install, which is unacceptable. |
| 10025 | # Some rework will be needed to allow for fast_install |
| 10026 | # before this can be enabled. |
| 10027 | hardcode_into_libs=yes |
| 10028 | |
| 10029 | # Append ld.so.conf contents to the search path |
| 10030 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10031 | 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] | 10032 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 10033 | fi |
| 10034 | |
| 10035 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10036 | # powerpc, because MkLinux only supported shared libraries with the |
| 10037 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 10038 | # most powerpc-linux boxes support dynamic linking these days and |
| 10039 | # people can always --disable-shared, the test was removed, and we |
| 10040 | # assume the GNU/Linux dynamic linker is in use. |
| 10041 | dynamic_linker='GNU/Linux ld.so' |
| 10042 | ;; |
| 10043 | |
| 10044 | knetbsd*-gnu) |
| 10045 | version_type=linux |
| 10046 | need_lib_prefix=no |
| 10047 | need_version=no |
| 10048 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10049 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10050 | shlibpath_var=LD_LIBRARY_PATH |
| 10051 | shlibpath_overrides_runpath=no |
| 10052 | hardcode_into_libs=yes |
| 10053 | dynamic_linker='GNU ld.so' |
| 10054 | ;; |
| 10055 | |
| 10056 | netbsd*) |
| 10057 | version_type=sunos |
| 10058 | need_lib_prefix=no |
| 10059 | need_version=no |
| 10060 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 10061 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10062 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10063 | dynamic_linker='NetBSD (a.out) ld.so' |
| 10064 | else |
| 10065 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10066 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10067 | dynamic_linker='NetBSD ld.elf_so' |
| 10068 | fi |
| 10069 | shlibpath_var=LD_LIBRARY_PATH |
| 10070 | shlibpath_overrides_runpath=yes |
| 10071 | hardcode_into_libs=yes |
| 10072 | ;; |
| 10073 | |
| 10074 | newsos6) |
| 10075 | version_type=linux |
| 10076 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10077 | shlibpath_var=LD_LIBRARY_PATH |
| 10078 | shlibpath_overrides_runpath=yes |
| 10079 | ;; |
| 10080 | |
| 10081 | nto-qnx*) |
| 10082 | version_type=linux |
| 10083 | need_lib_prefix=no |
| 10084 | need_version=no |
| 10085 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10086 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10087 | shlibpath_var=LD_LIBRARY_PATH |
| 10088 | shlibpath_overrides_runpath=yes |
| 10089 | ;; |
| 10090 | |
| 10091 | openbsd*) |
| 10092 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10093 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10094 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10095 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 10096 | case $host_os in |
| 10097 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 10098 | *) need_version=no ;; |
| 10099 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10100 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10101 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10102 | shlibpath_var=LD_LIBRARY_PATH |
| 10103 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10104 | case $host_os in |
| 10105 | openbsd2.[89] | openbsd2.[89].*) |
| 10106 | shlibpath_overrides_runpath=no |
| 10107 | ;; |
| 10108 | *) |
| 10109 | shlibpath_overrides_runpath=yes |
| 10110 | ;; |
| 10111 | esac |
| 10112 | else |
| 10113 | shlibpath_overrides_runpath=yes |
| 10114 | fi |
| 10115 | ;; |
| 10116 | |
| 10117 | os2*) |
| 10118 | libname_spec='$name' |
| 10119 | shrext_cmds=".dll" |
| 10120 | need_lib_prefix=no |
| 10121 | library_names_spec='$libname${shared_ext} $libname.a' |
| 10122 | dynamic_linker='OS/2 ld.exe' |
| 10123 | shlibpath_var=LIBPATH |
| 10124 | ;; |
| 10125 | |
| 10126 | osf3* | osf4* | osf5*) |
| 10127 | version_type=osf |
| 10128 | need_lib_prefix=no |
| 10129 | need_version=no |
| 10130 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10131 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10132 | shlibpath_var=LD_LIBRARY_PATH |
| 10133 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 10134 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10135 | ;; |
| 10136 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10137 | solaris*) |
| 10138 | version_type=linux |
| 10139 | need_lib_prefix=no |
| 10140 | need_version=no |
| 10141 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10142 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10143 | shlibpath_var=LD_LIBRARY_PATH |
| 10144 | shlibpath_overrides_runpath=yes |
| 10145 | hardcode_into_libs=yes |
| 10146 | # ldd complains unless libraries are executable |
| 10147 | postinstall_cmds='chmod +x $lib' |
| 10148 | ;; |
| 10149 | |
| 10150 | sunos4*) |
| 10151 | version_type=sunos |
| 10152 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10153 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10154 | shlibpath_var=LD_LIBRARY_PATH |
| 10155 | shlibpath_overrides_runpath=yes |
| 10156 | if test "$with_gnu_ld" = yes; then |
| 10157 | need_lib_prefix=no |
| 10158 | fi |
| 10159 | need_version=yes |
| 10160 | ;; |
| 10161 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10162 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10163 | version_type=linux |
| 10164 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10165 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10166 | shlibpath_var=LD_LIBRARY_PATH |
| 10167 | case $host_vendor in |
| 10168 | sni) |
| 10169 | shlibpath_overrides_runpath=no |
| 10170 | need_lib_prefix=no |
| 10171 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 10172 | runpath_var=LD_RUN_PATH |
| 10173 | ;; |
| 10174 | siemens) |
| 10175 | need_lib_prefix=no |
| 10176 | ;; |
| 10177 | motorola) |
| 10178 | need_lib_prefix=no |
| 10179 | need_version=no |
| 10180 | shlibpath_overrides_runpath=no |
| 10181 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 10182 | ;; |
| 10183 | esac |
| 10184 | ;; |
| 10185 | |
| 10186 | sysv4*MP*) |
| 10187 | if test -d /usr/nec ;then |
| 10188 | version_type=linux |
| 10189 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 10190 | soname_spec='$libname${shared_ext}.$major' |
| 10191 | shlibpath_var=LD_LIBRARY_PATH |
| 10192 | fi |
| 10193 | ;; |
| 10194 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10195 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10196 | version_type=freebsd-elf |
| 10197 | need_lib_prefix=no |
| 10198 | need_version=no |
| 10199 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10200 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10201 | shlibpath_var=LD_LIBRARY_PATH |
| 10202 | hardcode_into_libs=yes |
| 10203 | if test "$with_gnu_ld" = yes; then |
| 10204 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 10205 | shlibpath_overrides_runpath=no |
| 10206 | else |
| 10207 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 10208 | shlibpath_overrides_runpath=yes |
| 10209 | case $host_os in |
| 10210 | sco3.2v5*) |
| 10211 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 10212 | ;; |
| 10213 | esac |
| 10214 | fi |
| 10215 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 10216 | ;; |
| 10217 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10218 | uts4*) |
| 10219 | version_type=linux |
| 10220 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10221 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10222 | shlibpath_var=LD_LIBRARY_PATH |
| 10223 | ;; |
| 10224 | |
| 10225 | *) |
| 10226 | dynamic_linker=no |
| 10227 | ;; |
| 10228 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10229 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 10230 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10231 | test "$dynamic_linker" = no && can_build_shared=no |
| 10232 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10233 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10234 | if test "$GCC" = yes; then |
| 10235 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10236 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10237 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10238 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10239 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 10240 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
| 10241 | if test "${libltdl_cv_shlibext+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 | |
| 10245 | module=yes |
| 10246 | eval libltdl_cv_shlibext=$shrext_cmds |
| 10247 | |
| 10248 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10249 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 10250 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10251 | if test -n "$libltdl_cv_shlibext"; then |
| 10252 | |
| 10253 | cat >>confdefs.h <<_ACEOF |
| 10254 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 10255 | _ACEOF |
| 10256 | |
| 10257 | fi |
| 10258 | |
| 10259 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10260 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 10261 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
| 10262 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 10263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10264 | else |
| 10265 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 10266 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10267 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 10268 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10269 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 10270 | |
| 10271 | cat >>confdefs.h <<_ACEOF |
| 10272 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 10273 | _ACEOF |
| 10274 | |
| 10275 | fi |
| 10276 | |
| 10277 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10278 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 10279 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
| 10280 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 10281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10282 | else |
| 10283 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 10284 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10285 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 10286 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10287 | if test -n "$libltdl_cv_sys_search_path"; then |
| 10288 | sys_search_path= |
| 10289 | for dir in $libltdl_cv_sys_search_path; do |
| 10290 | if test -z "$sys_search_path"; then |
| 10291 | sys_search_path="$dir" |
| 10292 | else |
| 10293 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 10294 | fi |
| 10295 | done |
| 10296 | |
| 10297 | cat >>confdefs.h <<_ACEOF |
| 10298 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 10299 | _ACEOF |
| 10300 | |
| 10301 | fi |
| 10302 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10303 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 10304 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 10305 | if test "${libltdl_cv_objdir+set}" = set; then |
| 10306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10307 | else |
| 10308 | libltdl_cv_objdir="$objdir" |
| 10309 | if test -n "$objdir"; then |
| 10310 | : |
| 10311 | else |
| 10312 | rm -f .libs 2>/dev/null |
| 10313 | mkdir .libs 2>/dev/null |
| 10314 | if test -d .libs; then |
| 10315 | libltdl_cv_objdir=.libs |
| 10316 | else |
| 10317 | # MS-DOS does not allow filenames that begin with a dot. |
| 10318 | libltdl_cv_objdir=_libs |
| 10319 | fi |
| 10320 | rmdir .libs 2>/dev/null |
| 10321 | fi |
| 10322 | |
| 10323 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10324 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 10325 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10326 | |
| 10327 | cat >>confdefs.h <<_ACEOF |
| 10328 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 10329 | _ACEOF |
| 10330 | |
| 10331 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10332 | |
| 10333 | |
| 10334 | |
| 10335 | |
| 10336 | # 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] | 10337 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 10338 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 10339 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 10340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10341 | else |
| 10342 | |
| 10343 | # These are sane defaults that work on at least a few old systems. |
| 10344 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 10345 | |
| 10346 | # Character class describing NM global symbol codes. |
| 10347 | symcode='[BCDEGRST]' |
| 10348 | |
| 10349 | # Regexp to match symbols that can be accessed directly from C. |
| 10350 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 10351 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10352 | # Transform an extracted symbol line into a proper C declaration |
| 10353 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 10354 | |
| 10355 | # Transform an extracted symbol line into symbol name and symbol address |
| 10356 | 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'" |
| 10357 | |
| 10358 | # Define system-specific variables. |
| 10359 | case $host_os in |
| 10360 | aix*) |
| 10361 | symcode='[BCDT]' |
| 10362 | ;; |
| 10363 | cygwin* | mingw* | pw32*) |
| 10364 | symcode='[ABCDGISTW]' |
| 10365 | ;; |
| 10366 | hpux*) # Its linker distinguishes data from code symbols |
| 10367 | if test "$host_cpu" = ia64; then |
| 10368 | symcode='[ABCDEGRST]' |
| 10369 | fi |
| 10370 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10371 | 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'" |
| 10372 | ;; |
| 10373 | linux*) |
| 10374 | if test "$host_cpu" = ia64; then |
| 10375 | symcode='[ABCDGIRSTW]' |
| 10376 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10377 | 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'" |
| 10378 | fi |
| 10379 | ;; |
| 10380 | irix* | nonstopux*) |
| 10381 | symcode='[BCDEGRST]' |
| 10382 | ;; |
| 10383 | osf*) |
| 10384 | symcode='[BCDEGQRST]' |
| 10385 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10386 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10387 | symcode='[BDRT]' |
| 10388 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10389 | sco3.2v5*) |
| 10390 | symcode='[DT]' |
| 10391 | ;; |
| 10392 | sysv4.2uw2*) |
| 10393 | symcode='[DT]' |
| 10394 | ;; |
| 10395 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 10396 | symcode='[ABDT]' |
| 10397 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10398 | sysv4) |
| 10399 | symcode='[DFNSTU]' |
| 10400 | ;; |
| 10401 | esac |
| 10402 | |
| 10403 | # Handle CRLF in mingw tool chain |
| 10404 | opt_cr= |
| 10405 | case $build_os in |
| 10406 | mingw*) |
| 10407 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 10408 | ;; |
| 10409 | esac |
| 10410 | |
| 10411 | # If we're using GNU nm, then use its standard symbol codes. |
| 10412 | case `$NM -V 2>&1` in |
| 10413 | *GNU* | *'with BFD'*) |
| 10414 | symcode='[ABCDGIRSTW]' ;; |
| 10415 | esac |
| 10416 | |
| 10417 | # Try without a prefix undercore, then with it. |
| 10418 | for ac_symprfx in "" "_"; do |
| 10419 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10420 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 10421 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 10422 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10423 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10424 | 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] | 10425 | |
| 10426 | # Check to see that the pipe works correctly. |
| 10427 | pipe_works=no |
| 10428 | |
| 10429 | rm -f conftest* |
| 10430 | cat > conftest.$ac_ext <<EOF |
| 10431 | #ifdef __cplusplus |
| 10432 | extern "C" { |
| 10433 | #endif |
| 10434 | char nm_test_var; |
| 10435 | void nm_test_func(){} |
| 10436 | #ifdef __cplusplus |
| 10437 | } |
| 10438 | #endif |
| 10439 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 10440 | EOF |
| 10441 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10443 | (eval $ac_compile) 2>&5 |
| 10444 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10446 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10447 | # Now try to grab the symbols. |
| 10448 | nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10449 | 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] | 10450 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 10451 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10453 | (exit $ac_status); } && test -s "$nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10454 | # Try sorting and uniquifying the output. |
| 10455 | if sort "$nlist" | uniq > "$nlist"T; then |
| 10456 | mv -f "$nlist"T "$nlist" |
| 10457 | else |
| 10458 | rm -f "$nlist"T |
| 10459 | fi |
| 10460 | |
| 10461 | # Make sure that we snagged all the symbols we need. |
| 10462 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 10463 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 10464 | cat <<EOF > conftest.$ac_ext |
| 10465 | #ifdef __cplusplus |
| 10466 | extern "C" { |
| 10467 | #endif |
| 10468 | |
| 10469 | EOF |
| 10470 | # Now generate the symbol file. |
| 10471 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 10472 | |
| 10473 | cat <<EOF >> conftest.$ac_ext |
| 10474 | #if defined (__STDC__) && __STDC__ |
| 10475 | # define lt_ptr_t void * |
| 10476 | #else |
| 10477 | # define lt_ptr_t char * |
| 10478 | # define const |
| 10479 | #endif |
| 10480 | |
| 10481 | /* The mapping between symbol names and symbols. */ |
| 10482 | const struct { |
| 10483 | const char *name; |
| 10484 | lt_ptr_t address; |
| 10485 | } |
| 10486 | lt_preloaded_symbols[] = |
| 10487 | { |
| 10488 | EOF |
| 10489 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 10490 | cat <<\EOF >> conftest.$ac_ext |
| 10491 | {0, (lt_ptr_t) 0} |
| 10492 | }; |
| 10493 | |
| 10494 | #ifdef __cplusplus |
| 10495 | } |
| 10496 | #endif |
| 10497 | EOF |
| 10498 | # Now try linking the two files. |
| 10499 | mv conftest.$ac_objext conftstm.$ac_objext |
| 10500 | lt_save_LIBS="$LIBS" |
| 10501 | lt_save_CFLAGS="$CFLAGS" |
| 10502 | LIBS="conftstm.$ac_objext" |
| 10503 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10505 | (eval $ac_link) 2>&5 |
| 10506 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10508 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10509 | pipe_works=yes |
| 10510 | fi |
| 10511 | LIBS="$lt_save_LIBS" |
| 10512 | CFLAGS="$lt_save_CFLAGS" |
| 10513 | else |
| 10514 | echo "cannot find nm_test_func in $nlist" >&5 |
| 10515 | fi |
| 10516 | else |
| 10517 | echo "cannot find nm_test_var in $nlist" >&5 |
| 10518 | fi |
| 10519 | else |
| 10520 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10521 | fi |
| 10522 | else |
| 10523 | echo "$progname: failed program was:" >&5 |
| 10524 | cat conftest.$ac_ext >&5 |
| 10525 | fi |
| 10526 | rm -f conftest* conftst* |
| 10527 | |
| 10528 | # Do not use the global_symbol_pipe unless it works. |
| 10529 | if test "$pipe_works" = yes; then |
| 10530 | break |
| 10531 | else |
| 10532 | lt_cv_sys_global_symbol_pipe= |
| 10533 | fi |
| 10534 | done |
| 10535 | |
| 10536 | fi |
| 10537 | |
| 10538 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 10539 | lt_cv_sys_global_symbol_to_cdecl= |
| 10540 | fi |
| 10541 | 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] | 10542 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 10543 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10544 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10545 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 10546 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10547 | fi |
| 10548 | |
| 10549 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10550 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 10551 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
| 10552 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 10553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10554 | else |
| 10555 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 10556 | libltdl_cv_preloaded_symbols=yes |
| 10557 | else |
| 10558 | libltdl_cv_preloaded_symbols=no |
| 10559 | fi |
| 10560 | |
| 10561 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10562 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 10563 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10564 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 10565 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10566 | cat >>confdefs.h <<\_ACEOF |
| 10567 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 10568 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10569 | |
| 10570 | fi |
| 10571 | |
| 10572 | LIBADD_DL= |
| 10573 | |
| 10574 | ac_ext=c |
| 10575 | ac_cpp='$CPP $CPPFLAGS' |
| 10576 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10577 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10578 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10579 | |
| 10580 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10581 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10582 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 10583 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 10584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10585 | else |
| 10586 | cat >conftest.$ac_ext <<_ACEOF |
| 10587 | /* confdefs.h. */ |
| 10588 | _ACEOF |
| 10589 | cat confdefs.h >>conftest.$ac_ext |
| 10590 | cat >>conftest.$ac_ext <<_ACEOF |
| 10591 | /* end confdefs.h. */ |
| 10592 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10593 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10594 | #define shl_load innocuous_shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10595 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10596 | /* System header to define __stub macros and hopefully few prototypes, |
| 10597 | which can conflict with char shl_load (); below. |
| 10598 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10599 | <limits.h> exists even on freestanding compilers. */ |
| 10600 | |
| 10601 | #ifdef __STDC__ |
| 10602 | # include <limits.h> |
| 10603 | #else |
| 10604 | # include <assert.h> |
| 10605 | #endif |
| 10606 | |
| 10607 | #undef shl_load |
| 10608 | |
| 10609 | /* Override any GCC internal prototype to avoid an error. |
| 10610 | Use char because int might match the return type of a GCC |
| 10611 | builtin and then its argument prototype would still apply. */ |
| 10612 | #ifdef __cplusplus |
| 10613 | extern "C" |
| 10614 | #endif |
| 10615 | char shl_load (); |
| 10616 | /* The GNU C library defines this for functions which it implements |
| 10617 | to always fail with ENOSYS. Some functions are actually named |
| 10618 | something starting with __ and the normal name is an alias. */ |
| 10619 | #if defined __stub_shl_load || defined __stub___shl_load |
| 10620 | choke me |
| 10621 | #endif |
| 10622 | |
| 10623 | int |
| 10624 | main () |
| 10625 | { |
| 10626 | return shl_load (); |
| 10627 | ; |
| 10628 | return 0; |
| 10629 | } |
| 10630 | _ACEOF |
| 10631 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10632 | if { (ac_try="$ac_link" |
| 10633 | case "(($ac_try" in |
| 10634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10635 | *) ac_try_echo=$ac_try;; |
| 10636 | esac |
| 10637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10638 | (eval "$ac_link") 2>conftest.er1 |
| 10639 | ac_status=$? |
| 10640 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10641 | rm -f conftest.er1 |
| 10642 | cat conftest.err >&5 |
| 10643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10644 | (exit $ac_status); } && |
| 10645 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10646 | { (case "(($ac_try" in |
| 10647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10648 | *) ac_try_echo=$ac_try;; |
| 10649 | esac |
| 10650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10651 | (eval "$ac_try") 2>&5 |
| 10652 | ac_status=$? |
| 10653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10654 | (exit $ac_status); }; } && |
| 10655 | { ac_try='test -s conftest$ac_exeext' |
| 10656 | { (case "(($ac_try" in |
| 10657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10658 | *) ac_try_echo=$ac_try;; |
| 10659 | esac |
| 10660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10661 | (eval "$ac_try") 2>&5 |
| 10662 | ac_status=$? |
| 10663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10664 | (exit $ac_status); }; }; then |
| 10665 | ac_cv_func_shl_load=yes |
| 10666 | else |
| 10667 | echo "$as_me: failed program was:" >&5 |
| 10668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10669 | |
| 10670 | ac_cv_func_shl_load=no |
| 10671 | fi |
| 10672 | |
| 10673 | rm -f core conftest.err conftest.$ac_objext \ |
| 10674 | conftest$ac_exeext conftest.$ac_ext |
| 10675 | fi |
| 10676 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10677 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 10678 | if test $ac_cv_func_shl_load = yes; then |
| 10679 | |
| 10680 | cat >>confdefs.h <<\_ACEOF |
| 10681 | #define HAVE_SHL_LOAD 1 |
| 10682 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10683 | |
| 10684 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10685 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10686 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 10687 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10689 | else |
| 10690 | ac_check_lib_save_LIBS=$LIBS |
| 10691 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10692 | cat >conftest.$ac_ext <<_ACEOF |
| 10693 | /* confdefs.h. */ |
| 10694 | _ACEOF |
| 10695 | cat confdefs.h >>conftest.$ac_ext |
| 10696 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10697 | /* end confdefs.h. */ |
| 10698 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10699 | /* Override any GCC internal prototype to avoid an error. |
| 10700 | Use char because int might match the return type of a GCC |
| 10701 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10702 | #ifdef __cplusplus |
| 10703 | extern "C" |
| 10704 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10705 | char shl_load (); |
| 10706 | int |
| 10707 | main () |
| 10708 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10709 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10710 | ; |
| 10711 | return 0; |
| 10712 | } |
| 10713 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10714 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10715 | if { (ac_try="$ac_link" |
| 10716 | case "(($ac_try" in |
| 10717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10718 | *) ac_try_echo=$ac_try;; |
| 10719 | esac |
| 10720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10721 | (eval "$ac_link") 2>conftest.er1 |
| 10722 | ac_status=$? |
| 10723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10724 | rm -f conftest.er1 |
| 10725 | cat conftest.err >&5 |
| 10726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10727 | (exit $ac_status); } && |
| 10728 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10729 | { (case "(($ac_try" in |
| 10730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10731 | *) ac_try_echo=$ac_try;; |
| 10732 | esac |
| 10733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10734 | (eval "$ac_try") 2>&5 |
| 10735 | ac_status=$? |
| 10736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10737 | (exit $ac_status); }; } && |
| 10738 | { ac_try='test -s conftest$ac_exeext' |
| 10739 | { (case "(($ac_try" in |
| 10740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10741 | *) ac_try_echo=$ac_try;; |
| 10742 | esac |
| 10743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10744 | (eval "$ac_try") 2>&5 |
| 10745 | ac_status=$? |
| 10746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10747 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10748 | ac_cv_lib_dld_shl_load=yes |
| 10749 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10750 | echo "$as_me: failed program was:" >&5 |
| 10751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10752 | |
| 10753 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10754 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10755 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10756 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10757 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10758 | LIBS=$ac_check_lib_save_LIBS |
| 10759 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10760 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10761 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 10762 | if test $ac_cv_lib_dld_shl_load = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10763 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10764 | cat >>confdefs.h <<\_ACEOF |
| 10765 | #define HAVE_SHL_LOAD 1 |
| 10766 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10767 | |
| 10768 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10769 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10770 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10771 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 10772 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10774 | else |
| 10775 | ac_check_lib_save_LIBS=$LIBS |
| 10776 | LIBS="-ldl $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10777 | cat >conftest.$ac_ext <<_ACEOF |
| 10778 | /* confdefs.h. */ |
| 10779 | _ACEOF |
| 10780 | cat confdefs.h >>conftest.$ac_ext |
| 10781 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10782 | /* end confdefs.h. */ |
| 10783 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10784 | /* Override any GCC internal prototype to avoid an error. |
| 10785 | Use char because int might match the return type of a GCC |
| 10786 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10787 | #ifdef __cplusplus |
| 10788 | extern "C" |
| 10789 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10790 | char dlopen (); |
| 10791 | int |
| 10792 | main () |
| 10793 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10794 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10795 | ; |
| 10796 | return 0; |
| 10797 | } |
| 10798 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10799 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10800 | if { (ac_try="$ac_link" |
| 10801 | case "(($ac_try" in |
| 10802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10803 | *) ac_try_echo=$ac_try;; |
| 10804 | esac |
| 10805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10806 | (eval "$ac_link") 2>conftest.er1 |
| 10807 | ac_status=$? |
| 10808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10809 | rm -f conftest.er1 |
| 10810 | cat conftest.err >&5 |
| 10811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10812 | (exit $ac_status); } && |
| 10813 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10814 | { (case "(($ac_try" in |
| 10815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10816 | *) ac_try_echo=$ac_try;; |
| 10817 | esac |
| 10818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10819 | (eval "$ac_try") 2>&5 |
| 10820 | ac_status=$? |
| 10821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10822 | (exit $ac_status); }; } && |
| 10823 | { ac_try='test -s conftest$ac_exeext' |
| 10824 | { (case "(($ac_try" in |
| 10825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10826 | *) ac_try_echo=$ac_try;; |
| 10827 | esac |
| 10828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10829 | (eval "$ac_try") 2>&5 |
| 10830 | ac_status=$? |
| 10831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10832 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10833 | ac_cv_lib_dl_dlopen=yes |
| 10834 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10835 | echo "$as_me: failed program was:" >&5 |
| 10836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10837 | |
| 10838 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10839 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10840 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10841 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10842 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10843 | LIBS=$ac_check_lib_save_LIBS |
| 10844 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10845 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10846 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 10847 | if test $ac_cv_lib_dl_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10848 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10849 | cat >>confdefs.h <<\_ACEOF |
| 10850 | #define HAVE_LIBDL 1 |
| 10851 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10852 | |
| 10853 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 10854 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10855 | cat >conftest.$ac_ext <<_ACEOF |
| 10856 | /* confdefs.h. */ |
| 10857 | _ACEOF |
| 10858 | cat confdefs.h >>conftest.$ac_ext |
| 10859 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10860 | /* end confdefs.h. */ |
| 10861 | #if HAVE_DLFCN_H |
| 10862 | # include <dlfcn.h> |
| 10863 | #endif |
| 10864 | |
| 10865 | int |
| 10866 | main () |
| 10867 | { |
| 10868 | dlopen(0, 0); |
| 10869 | ; |
| 10870 | return 0; |
| 10871 | } |
| 10872 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10873 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10874 | if { (ac_try="$ac_link" |
| 10875 | case "(($ac_try" in |
| 10876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10877 | *) ac_try_echo=$ac_try;; |
| 10878 | esac |
| 10879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10880 | (eval "$ac_link") 2>conftest.er1 |
| 10881 | ac_status=$? |
| 10882 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10883 | rm -f conftest.er1 |
| 10884 | cat conftest.err >&5 |
| 10885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10886 | (exit $ac_status); } && |
| 10887 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10888 | { (case "(($ac_try" in |
| 10889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10890 | *) ac_try_echo=$ac_try;; |
| 10891 | esac |
| 10892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10893 | (eval "$ac_try") 2>&5 |
| 10894 | ac_status=$? |
| 10895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10896 | (exit $ac_status); }; } && |
| 10897 | { ac_try='test -s conftest$ac_exeext' |
| 10898 | { (case "(($ac_try" in |
| 10899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10900 | *) ac_try_echo=$ac_try;; |
| 10901 | esac |
| 10902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10903 | (eval "$ac_try") 2>&5 |
| 10904 | ac_status=$? |
| 10905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10906 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10907 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10908 | cat >>confdefs.h <<\_ACEOF |
| 10909 | #define HAVE_LIBDL 1 |
| 10910 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10911 | libltdl_cv_func_dlopen="yes" |
| 10912 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10913 | echo "$as_me: failed program was:" >&5 |
| 10914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10915 | |
| 10916 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10917 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 10918 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10920 | else |
| 10921 | ac_check_lib_save_LIBS=$LIBS |
| 10922 | LIBS="-lsvld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10923 | cat >conftest.$ac_ext <<_ACEOF |
| 10924 | /* confdefs.h. */ |
| 10925 | _ACEOF |
| 10926 | cat confdefs.h >>conftest.$ac_ext |
| 10927 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10928 | /* end confdefs.h. */ |
| 10929 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10930 | /* Override any GCC internal prototype to avoid an error. |
| 10931 | Use char because int might match the return type of a GCC |
| 10932 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10933 | #ifdef __cplusplus |
| 10934 | extern "C" |
| 10935 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10936 | char dlopen (); |
| 10937 | int |
| 10938 | main () |
| 10939 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10940 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10941 | ; |
| 10942 | return 0; |
| 10943 | } |
| 10944 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10945 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10946 | if { (ac_try="$ac_link" |
| 10947 | case "(($ac_try" in |
| 10948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10949 | *) ac_try_echo=$ac_try;; |
| 10950 | esac |
| 10951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10952 | (eval "$ac_link") 2>conftest.er1 |
| 10953 | ac_status=$? |
| 10954 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10955 | rm -f conftest.er1 |
| 10956 | cat conftest.err >&5 |
| 10957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10958 | (exit $ac_status); } && |
| 10959 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10960 | { (case "(($ac_try" in |
| 10961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10962 | *) ac_try_echo=$ac_try;; |
| 10963 | esac |
| 10964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10965 | (eval "$ac_try") 2>&5 |
| 10966 | ac_status=$? |
| 10967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10968 | (exit $ac_status); }; } && |
| 10969 | { ac_try='test -s conftest$ac_exeext' |
| 10970 | { (case "(($ac_try" in |
| 10971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10972 | *) ac_try_echo=$ac_try;; |
| 10973 | esac |
| 10974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10975 | (eval "$ac_try") 2>&5 |
| 10976 | ac_status=$? |
| 10977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10978 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10979 | ac_cv_lib_svld_dlopen=yes |
| 10980 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10981 | echo "$as_me: failed program was:" >&5 |
| 10982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10983 | |
| 10984 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10985 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10986 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10987 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10988 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10989 | LIBS=$ac_check_lib_save_LIBS |
| 10990 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10991 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10992 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 10993 | if test $ac_cv_lib_svld_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10994 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10995 | cat >>confdefs.h <<\_ACEOF |
| 10996 | #define HAVE_LIBDL 1 |
| 10997 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10998 | |
| 10999 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 11000 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11001 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 11002 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 11003 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 11004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11005 | else |
| 11006 | ac_check_lib_save_LIBS=$LIBS |
| 11007 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11008 | cat >conftest.$ac_ext <<_ACEOF |
| 11009 | /* confdefs.h. */ |
| 11010 | _ACEOF |
| 11011 | cat confdefs.h >>conftest.$ac_ext |
| 11012 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11013 | /* end confdefs.h. */ |
| 11014 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11015 | /* Override any GCC internal prototype to avoid an error. |
| 11016 | Use char because int might match the return type of a GCC |
| 11017 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11018 | #ifdef __cplusplus |
| 11019 | extern "C" |
| 11020 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11021 | char dld_link (); |
| 11022 | int |
| 11023 | main () |
| 11024 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11025 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11026 | ; |
| 11027 | return 0; |
| 11028 | } |
| 11029 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11030 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11031 | if { (ac_try="$ac_link" |
| 11032 | case "(($ac_try" in |
| 11033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11034 | *) ac_try_echo=$ac_try;; |
| 11035 | esac |
| 11036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11037 | (eval "$ac_link") 2>conftest.er1 |
| 11038 | ac_status=$? |
| 11039 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11040 | rm -f conftest.er1 |
| 11041 | cat conftest.err >&5 |
| 11042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11043 | (exit $ac_status); } && |
| 11044 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11045 | { (case "(($ac_try" in |
| 11046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11047 | *) ac_try_echo=$ac_try;; |
| 11048 | esac |
| 11049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11050 | (eval "$ac_try") 2>&5 |
| 11051 | ac_status=$? |
| 11052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11053 | (exit $ac_status); }; } && |
| 11054 | { ac_try='test -s conftest$ac_exeext' |
| 11055 | { (case "(($ac_try" in |
| 11056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11057 | *) ac_try_echo=$ac_try;; |
| 11058 | esac |
| 11059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11060 | (eval "$ac_try") 2>&5 |
| 11061 | ac_status=$? |
| 11062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11063 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11064 | ac_cv_lib_dld_dld_link=yes |
| 11065 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11066 | echo "$as_me: failed program was:" >&5 |
| 11067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11068 | |
| 11069 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11070 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11071 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11072 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11073 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11074 | LIBS=$ac_check_lib_save_LIBS |
| 11075 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11076 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11077 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 11078 | if test $ac_cv_lib_dld_dld_link = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11079 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11080 | cat >>confdefs.h <<\_ACEOF |
| 11081 | #define HAVE_DLD 1 |
| 11082 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11083 | |
| 11084 | LIBADD_DL="$LIBADD_DL -ldld" |
| 11085 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11086 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 11087 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
| 11088 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 11089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11090 | else |
| 11091 | cat >conftest.$ac_ext <<_ACEOF |
| 11092 | /* confdefs.h. */ |
| 11093 | _ACEOF |
| 11094 | cat confdefs.h >>conftest.$ac_ext |
| 11095 | cat >>conftest.$ac_ext <<_ACEOF |
| 11096 | /* end confdefs.h. */ |
| 11097 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 11098 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11099 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11100 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11101 | /* System header to define __stub macros and hopefully few prototypes, |
| 11102 | which can conflict with char _dyld_func_lookup (); below. |
| 11103 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11104 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11105 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11106 | #ifdef __STDC__ |
| 11107 | # include <limits.h> |
| 11108 | #else |
| 11109 | # include <assert.h> |
| 11110 | #endif |
| 11111 | |
| 11112 | #undef _dyld_func_lookup |
| 11113 | |
| 11114 | /* Override any GCC internal prototype to avoid an error. |
| 11115 | Use char because int might match the return type of a GCC |
| 11116 | builtin and then its argument prototype would still apply. */ |
| 11117 | #ifdef __cplusplus |
| 11118 | extern "C" |
| 11119 | #endif |
| 11120 | char _dyld_func_lookup (); |
| 11121 | /* The GNU C library defines this for functions which it implements |
| 11122 | to always fail with ENOSYS. Some functions are actually named |
| 11123 | something starting with __ and the normal name is an alias. */ |
| 11124 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
| 11125 | choke me |
| 11126 | #endif |
| 11127 | |
| 11128 | int |
| 11129 | main () |
| 11130 | { |
| 11131 | return _dyld_func_lookup (); |
| 11132 | ; |
| 11133 | return 0; |
| 11134 | } |
| 11135 | _ACEOF |
| 11136 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11137 | if { (ac_try="$ac_link" |
| 11138 | case "(($ac_try" in |
| 11139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11140 | *) ac_try_echo=$ac_try;; |
| 11141 | esac |
| 11142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11143 | (eval "$ac_link") 2>conftest.er1 |
| 11144 | ac_status=$? |
| 11145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11146 | rm -f conftest.er1 |
| 11147 | cat conftest.err >&5 |
| 11148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11149 | (exit $ac_status); } && |
| 11150 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11151 | { (case "(($ac_try" in |
| 11152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11153 | *) ac_try_echo=$ac_try;; |
| 11154 | esac |
| 11155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11156 | (eval "$ac_try") 2>&5 |
| 11157 | ac_status=$? |
| 11158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11159 | (exit $ac_status); }; } && |
| 11160 | { ac_try='test -s conftest$ac_exeext' |
| 11161 | { (case "(($ac_try" in |
| 11162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11163 | *) ac_try_echo=$ac_try;; |
| 11164 | esac |
| 11165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11166 | (eval "$ac_try") 2>&5 |
| 11167 | ac_status=$? |
| 11168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11169 | (exit $ac_status); }; }; then |
| 11170 | ac_cv_func__dyld_func_lookup=yes |
| 11171 | else |
| 11172 | echo "$as_me: failed program was:" >&5 |
| 11173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11174 | |
| 11175 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11176 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11177 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11178 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11179 | conftest$ac_exeext conftest.$ac_ext |
| 11180 | fi |
| 11181 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 11182 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
| 11183 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 11184 | |
| 11185 | cat >>confdefs.h <<\_ACEOF |
| 11186 | #define HAVE_DYLD 1 |
| 11187 | _ACEOF |
| 11188 | |
| 11189 | fi |
| 11190 | |
| 11191 | |
| 11192 | fi |
| 11193 | |
| 11194 | |
| 11195 | fi |
| 11196 | |
| 11197 | |
| 11198 | fi |
| 11199 | |
| 11200 | rm -f core conftest.err conftest.$ac_objext \ |
| 11201 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11202 | |
| 11203 | fi |
| 11204 | |
| 11205 | |
| 11206 | fi |
| 11207 | |
| 11208 | |
| 11209 | fi |
| 11210 | |
| 11211 | |
| 11212 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 11213 | then |
| 11214 | lt_save_LIBS="$LIBS" |
| 11215 | LIBS="$LIBS $LIBADD_DL" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11216 | |
| 11217 | for ac_func in dlerror |
| 11218 | do |
| 11219 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11220 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11221 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11222 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11224 | else |
| 11225 | cat >conftest.$ac_ext <<_ACEOF |
| 11226 | /* confdefs.h. */ |
| 11227 | _ACEOF |
| 11228 | cat confdefs.h >>conftest.$ac_ext |
| 11229 | cat >>conftest.$ac_ext <<_ACEOF |
| 11230 | /* end confdefs.h. */ |
| 11231 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11232 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11233 | #define $ac_func innocuous_$ac_func |
| 11234 | |
| 11235 | /* System header to define __stub macros and hopefully few prototypes, |
| 11236 | which can conflict with char $ac_func (); below. |
| 11237 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11238 | <limits.h> exists even on freestanding compilers. */ |
| 11239 | |
| 11240 | #ifdef __STDC__ |
| 11241 | # include <limits.h> |
| 11242 | #else |
| 11243 | # include <assert.h> |
| 11244 | #endif |
| 11245 | |
| 11246 | #undef $ac_func |
| 11247 | |
| 11248 | /* Override any GCC internal prototype to avoid an error. |
| 11249 | Use char because int might match the return type of a GCC |
| 11250 | builtin and then its argument prototype would still apply. */ |
| 11251 | #ifdef __cplusplus |
| 11252 | extern "C" |
| 11253 | #endif |
| 11254 | char $ac_func (); |
| 11255 | /* The GNU C library defines this for functions which it implements |
| 11256 | to always fail with ENOSYS. Some functions are actually named |
| 11257 | something starting with __ and the normal name is an alias. */ |
| 11258 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11259 | choke me |
| 11260 | #endif |
| 11261 | |
| 11262 | int |
| 11263 | main () |
| 11264 | { |
| 11265 | return $ac_func (); |
| 11266 | ; |
| 11267 | return 0; |
| 11268 | } |
| 11269 | _ACEOF |
| 11270 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11271 | if { (ac_try="$ac_link" |
| 11272 | case "(($ac_try" in |
| 11273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11274 | *) ac_try_echo=$ac_try;; |
| 11275 | esac |
| 11276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11277 | (eval "$ac_link") 2>conftest.er1 |
| 11278 | ac_status=$? |
| 11279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11280 | rm -f conftest.er1 |
| 11281 | cat conftest.err >&5 |
| 11282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11283 | (exit $ac_status); } && |
| 11284 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11285 | { (case "(($ac_try" in |
| 11286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11287 | *) ac_try_echo=$ac_try;; |
| 11288 | esac |
| 11289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11290 | (eval "$ac_try") 2>&5 |
| 11291 | ac_status=$? |
| 11292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11293 | (exit $ac_status); }; } && |
| 11294 | { ac_try='test -s conftest$ac_exeext' |
| 11295 | { (case "(($ac_try" in |
| 11296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11297 | *) ac_try_echo=$ac_try;; |
| 11298 | esac |
| 11299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11300 | (eval "$ac_try") 2>&5 |
| 11301 | ac_status=$? |
| 11302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11303 | (exit $ac_status); }; }; then |
| 11304 | eval "$as_ac_var=yes" |
| 11305 | else |
| 11306 | echo "$as_me: failed program was:" >&5 |
| 11307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11308 | |
| 11309 | eval "$as_ac_var=no" |
| 11310 | fi |
| 11311 | |
| 11312 | rm -f core conftest.err conftest.$ac_objext \ |
| 11313 | conftest$ac_exeext conftest.$ac_ext |
| 11314 | fi |
| 11315 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11316 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11317 | echo "${ECHO_T}$ac_res" >&6; } |
| 11318 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11319 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11320 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11321 | _ACEOF |
| 11322 | |
| 11323 | fi |
| 11324 | done |
| 11325 | |
| 11326 | LIBS="$lt_save_LIBS" |
| 11327 | fi |
| 11328 | ac_ext=c |
| 11329 | ac_cpp='$CPP $CPPFLAGS' |
| 11330 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11331 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11332 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11333 | |
| 11334 | |
| 11335 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11336 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 11337 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
| 11338 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 11339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11340 | else |
| 11341 | ac_cv_sys_symbol_underscore=no |
| 11342 | cat > conftest.$ac_ext <<EOF |
| 11343 | void nm_test_func(){} |
| 11344 | int main(){nm_test_func;return 0;} |
| 11345 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11347 | (eval $ac_compile) 2>&5 |
| 11348 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11350 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11351 | # Now try to grab the symbols. |
| 11352 | ac_nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11353 | 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] | 11354 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 11355 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11357 | (exit $ac_status); } && test -s "$ac_nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11358 | # See whether the symbols have a leading underscore. |
| 11359 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 11360 | ac_cv_sys_symbol_underscore=yes |
| 11361 | else |
| 11362 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 11363 | : |
| 11364 | else |
| 11365 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 11366 | fi |
| 11367 | fi |
| 11368 | else |
| 11369 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 11370 | fi |
| 11371 | else |
| 11372 | echo "configure: failed program was:" >&5 |
| 11373 | cat conftest.c >&5 |
| 11374 | fi |
| 11375 | rm -rf conftest* |
| 11376 | |
| 11377 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11378 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 11379 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11380 | |
| 11381 | |
| 11382 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 11383 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 11384 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11385 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 11386 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
| 11387 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 11388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11389 | else |
| 11390 | libltdl_cv_need_uscore=unknown |
| 11391 | save_LIBS="$LIBS" |
| 11392 | LIBS="$LIBS $LIBADD_DL" |
| 11393 | if test "$cross_compiling" = yes; then : |
| 11394 | libltdl_cv_need_uscore=cross |
| 11395 | else |
| 11396 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11397 | lt_status=$lt_dlunknown |
| 11398 | cat > conftest.$ac_ext <<EOF |
Daniel Dunbar | b1247c3 | 2010-08-03 14:26:17 +0000 | [diff] [blame^] | 11399 | #line 11399 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11400 | #include "confdefs.h" |
| 11401 | |
| 11402 | #if HAVE_DLFCN_H |
| 11403 | #include <dlfcn.h> |
| 11404 | #endif |
| 11405 | |
| 11406 | #include <stdio.h> |
| 11407 | |
| 11408 | #ifdef RTLD_GLOBAL |
| 11409 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11410 | #else |
| 11411 | # ifdef DL_GLOBAL |
| 11412 | # define LT_DLGLOBAL DL_GLOBAL |
| 11413 | # else |
| 11414 | # define LT_DLGLOBAL 0 |
| 11415 | # endif |
| 11416 | #endif |
| 11417 | |
| 11418 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11419 | find out it does not work in some platform. */ |
| 11420 | #ifndef LT_DLLAZY_OR_NOW |
| 11421 | # ifdef RTLD_LAZY |
| 11422 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11423 | # else |
| 11424 | # ifdef DL_LAZY |
| 11425 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11426 | # else |
| 11427 | # ifdef RTLD_NOW |
| 11428 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11429 | # else |
| 11430 | # ifdef DL_NOW |
| 11431 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11432 | # else |
| 11433 | # define LT_DLLAZY_OR_NOW 0 |
| 11434 | # endif |
| 11435 | # endif |
| 11436 | # endif |
| 11437 | # endif |
| 11438 | #endif |
| 11439 | |
| 11440 | #ifdef __cplusplus |
| 11441 | extern "C" void exit (int); |
| 11442 | #endif |
| 11443 | |
| 11444 | void fnord() { int i=42;} |
| 11445 | int main () |
| 11446 | { |
| 11447 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11448 | int status = $lt_dlunknown; |
| 11449 | |
| 11450 | if (self) |
| 11451 | { |
| 11452 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11453 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11454 | /* dlclose (self); */ |
| 11455 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11456 | else |
| 11457 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11458 | |
| 11459 | exit (status); |
| 11460 | } |
| 11461 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11462 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11463 | (eval $ac_link) 2>&5 |
| 11464 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11466 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11467 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11468 | lt_status=$? |
| 11469 | case x$lt_status in |
| 11470 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 11471 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11472 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11473 | esac |
| 11474 | else : |
| 11475 | # compilation failed |
| 11476 | |
| 11477 | fi |
| 11478 | fi |
| 11479 | rm -fr conftest* |
| 11480 | |
| 11481 | LIBS="$save_LIBS" |
| 11482 | |
| 11483 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11484 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 11485 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11486 | fi |
| 11487 | fi |
| 11488 | |
| 11489 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 11490 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11491 | cat >>confdefs.h <<\_ACEOF |
| 11492 | #define NEED_USCORE 1 |
| 11493 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11494 | |
| 11495 | fi |
| 11496 | |
| 11497 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11498 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 11499 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
| 11500 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 11501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11502 | else |
| 11503 | # PORTME does your system automatically load deplibs for dlopen? |
| 11504 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 11505 | # For now, we just catch OSes we know something about -- in the |
| 11506 | # future, we'll try test this programmatically. |
| 11507 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11508 | case "$host_os" in |
| 11509 | aix3*|aix4.1.*|aix4.2.*) |
| 11510 | # Unknown whether this is true for these versions of AIX, but |
| 11511 | # we want this `case' here to explicitly catch those versions. |
| 11512 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11513 | ;; |
| 11514 | aix[45]*) |
| 11515 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11516 | ;; |
| 11517 | darwin*) |
| 11518 | # Assuming the user has installed a libdl from somewhere, this is true |
| 11519 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 11520 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11521 | ;; |
| 11522 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 11523 | # GNU and its variants, using gnu ld.so (Glibc) |
| 11524 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11525 | ;; |
| 11526 | hpux10*|hpux11*) |
| 11527 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11528 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11529 | interix*) |
| 11530 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11531 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11532 | irix[12345]*|irix6.[01]*) |
| 11533 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 11534 | # know how it worked for any of those versions. |
| 11535 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11536 | ;; |
| 11537 | irix*) |
| 11538 | # The case above catches anything before 6.2, and it's known that |
| 11539 | # at 6.2 and later dlopen does load deplibs. |
| 11540 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11541 | ;; |
| 11542 | netbsd*) |
| 11543 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11544 | ;; |
| 11545 | openbsd*) |
| 11546 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11547 | ;; |
| 11548 | osf[1234]*) |
| 11549 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 11550 | # it did *not* use an RPATH in a shared library to find objects the |
| 11551 | # library depends on, so we explictly say `no'. |
| 11552 | libltdl_cv_sys_dlopen_deplibs=no |
| 11553 | ;; |
| 11554 | osf5.0|osf5.0a|osf5.1) |
| 11555 | # dlopen *does* load deplibs and with the right loader patch applied |
| 11556 | # it even uses RPATH in a shared library to search for shared objects |
| 11557 | # that the library depends on, but there's no easy way to know if that |
| 11558 | # patch is installed. Since this is the case, all we can really |
| 11559 | # say is unknown -- it depends on the patch being installed. If |
| 11560 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 11561 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11562 | ;; |
| 11563 | osf*) |
| 11564 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 11565 | # the comments above for what we know about them. |
| 11566 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 11567 | # is used to find them so we can finally say `yes'. |
| 11568 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11569 | ;; |
| 11570 | solaris*) |
| 11571 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11572 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11573 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11574 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11575 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11576 | esac |
| 11577 | |
| 11578 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11579 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 11580 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11581 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 11582 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11583 | cat >>confdefs.h <<\_ACEOF |
| 11584 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 11585 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11586 | |
| 11587 | fi |
| 11588 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11589 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11590 | for ac_header in argz.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11591 | do |
| 11592 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11593 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11594 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11595 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11596 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11598 | fi |
| 11599 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11600 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11601 | echo "${ECHO_T}$ac_res" >&6; } |
| 11602 | else |
| 11603 | # Is the header compilable? |
| 11604 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11605 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11606 | cat >conftest.$ac_ext <<_ACEOF |
| 11607 | /* confdefs.h. */ |
| 11608 | _ACEOF |
| 11609 | cat confdefs.h >>conftest.$ac_ext |
| 11610 | cat >>conftest.$ac_ext <<_ACEOF |
| 11611 | /* end confdefs.h. */ |
| 11612 | $ac_includes_default |
| 11613 | #include <$ac_header> |
| 11614 | _ACEOF |
| 11615 | rm -f conftest.$ac_objext |
| 11616 | if { (ac_try="$ac_compile" |
| 11617 | case "(($ac_try" in |
| 11618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11619 | *) ac_try_echo=$ac_try;; |
| 11620 | esac |
| 11621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11622 | (eval "$ac_compile") 2>conftest.er1 |
| 11623 | ac_status=$? |
| 11624 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11625 | rm -f conftest.er1 |
| 11626 | cat conftest.err >&5 |
| 11627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11628 | (exit $ac_status); } && |
| 11629 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11630 | { (case "(($ac_try" in |
| 11631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11632 | *) ac_try_echo=$ac_try;; |
| 11633 | esac |
| 11634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11635 | (eval "$ac_try") 2>&5 |
| 11636 | ac_status=$? |
| 11637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11638 | (exit $ac_status); }; } && |
| 11639 | { ac_try='test -s conftest.$ac_objext' |
| 11640 | { (case "(($ac_try" in |
| 11641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11642 | *) ac_try_echo=$ac_try;; |
| 11643 | esac |
| 11644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11645 | (eval "$ac_try") 2>&5 |
| 11646 | ac_status=$? |
| 11647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11648 | (exit $ac_status); }; }; then |
| 11649 | ac_header_compiler=yes |
| 11650 | else |
| 11651 | echo "$as_me: failed program was:" >&5 |
| 11652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11653 | |
| 11654 | ac_header_compiler=no |
| 11655 | fi |
| 11656 | |
| 11657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11658 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11659 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11660 | |
| 11661 | # Is the header present? |
| 11662 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11663 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11664 | cat >conftest.$ac_ext <<_ACEOF |
| 11665 | /* confdefs.h. */ |
| 11666 | _ACEOF |
| 11667 | cat confdefs.h >>conftest.$ac_ext |
| 11668 | cat >>conftest.$ac_ext <<_ACEOF |
| 11669 | /* end confdefs.h. */ |
| 11670 | #include <$ac_header> |
| 11671 | _ACEOF |
| 11672 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11673 | case "(($ac_try" in |
| 11674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11675 | *) ac_try_echo=$ac_try;; |
| 11676 | esac |
| 11677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11678 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11679 | ac_status=$? |
| 11680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11681 | rm -f conftest.er1 |
| 11682 | cat conftest.err >&5 |
| 11683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11684 | (exit $ac_status); } >/dev/null; then |
| 11685 | if test -s conftest.err; then |
| 11686 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11687 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11688 | else |
| 11689 | ac_cpp_err= |
| 11690 | fi |
| 11691 | else |
| 11692 | ac_cpp_err=yes |
| 11693 | fi |
| 11694 | if test -z "$ac_cpp_err"; then |
| 11695 | ac_header_preproc=yes |
| 11696 | else |
| 11697 | echo "$as_me: failed program was:" >&5 |
| 11698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11699 | |
| 11700 | ac_header_preproc=no |
| 11701 | fi |
| 11702 | |
| 11703 | rm -f conftest.err conftest.$ac_ext |
| 11704 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11705 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11706 | |
| 11707 | # So? What about this header? |
| 11708 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11709 | yes:no: ) |
| 11710 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11711 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11712 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11713 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11714 | ac_header_preproc=yes |
| 11715 | ;; |
| 11716 | no:yes:* ) |
| 11717 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11718 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11719 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11720 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11721 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11722 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11723 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11724 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11725 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11726 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11727 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11728 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11729 | ( cat <<\_ASBOX |
| 11730 | ## ----------------------------------- ## |
| 11731 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11732 | ## ----------------------------------- ## |
| 11733 | _ASBOX |
| 11734 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11735 | ;; |
| 11736 | esac |
| 11737 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11738 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11739 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11741 | else |
| 11742 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11743 | fi |
| 11744 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11745 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11746 | echo "${ECHO_T}$ac_res" >&6; } |
| 11747 | |
| 11748 | fi |
| 11749 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11750 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11751 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11752 | _ACEOF |
| 11753 | |
| 11754 | fi |
| 11755 | |
| 11756 | done |
| 11757 | |
| 11758 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11759 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 11760 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
| 11761 | if test "${ac_cv_type_error_t+set}" = set; then |
| 11762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11763 | else |
| 11764 | cat >conftest.$ac_ext <<_ACEOF |
| 11765 | /* confdefs.h. */ |
| 11766 | _ACEOF |
| 11767 | cat confdefs.h >>conftest.$ac_ext |
| 11768 | cat >>conftest.$ac_ext <<_ACEOF |
| 11769 | /* end confdefs.h. */ |
| 11770 | #if HAVE_ARGZ_H |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11771 | # include <argz.h> |
| 11772 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11773 | |
| 11774 | typedef error_t ac__type_new_; |
| 11775 | int |
| 11776 | main () |
| 11777 | { |
| 11778 | if ((ac__type_new_ *) 0) |
| 11779 | return 0; |
| 11780 | if (sizeof (ac__type_new_)) |
| 11781 | return 0; |
| 11782 | ; |
| 11783 | return 0; |
| 11784 | } |
| 11785 | _ACEOF |
| 11786 | rm -f conftest.$ac_objext |
| 11787 | if { (ac_try="$ac_compile" |
| 11788 | case "(($ac_try" in |
| 11789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11790 | *) ac_try_echo=$ac_try;; |
| 11791 | esac |
| 11792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11793 | (eval "$ac_compile") 2>conftest.er1 |
| 11794 | ac_status=$? |
| 11795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11796 | rm -f conftest.er1 |
| 11797 | cat conftest.err >&5 |
| 11798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11799 | (exit $ac_status); } && |
| 11800 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11801 | { (case "(($ac_try" in |
| 11802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11803 | *) ac_try_echo=$ac_try;; |
| 11804 | esac |
| 11805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11806 | (eval "$ac_try") 2>&5 |
| 11807 | ac_status=$? |
| 11808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11809 | (exit $ac_status); }; } && |
| 11810 | { ac_try='test -s conftest.$ac_objext' |
| 11811 | { (case "(($ac_try" in |
| 11812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11813 | *) ac_try_echo=$ac_try;; |
| 11814 | esac |
| 11815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11816 | (eval "$ac_try") 2>&5 |
| 11817 | ac_status=$? |
| 11818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11819 | (exit $ac_status); }; }; then |
| 11820 | ac_cv_type_error_t=yes |
| 11821 | else |
| 11822 | echo "$as_me: failed program was:" >&5 |
| 11823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11824 | |
| 11825 | ac_cv_type_error_t=no |
| 11826 | fi |
| 11827 | |
| 11828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11829 | fi |
| 11830 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 11831 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
| 11832 | if test $ac_cv_type_error_t = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11833 | |
| 11834 | cat >>confdefs.h <<_ACEOF |
| 11835 | #define HAVE_ERROR_T 1 |
| 11836 | _ACEOF |
| 11837 | |
| 11838 | |
| 11839 | else |
| 11840 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11841 | cat >>confdefs.h <<\_ACEOF |
| 11842 | #define error_t int |
| 11843 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11844 | |
| 11845 | fi |
| 11846 | |
| 11847 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11848 | |
| 11849 | |
| 11850 | |
| 11851 | |
| 11852 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11853 | 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] | 11854 | do |
| 11855 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11856 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11857 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11858 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11860 | else |
| 11861 | cat >conftest.$ac_ext <<_ACEOF |
| 11862 | /* confdefs.h. */ |
| 11863 | _ACEOF |
| 11864 | cat confdefs.h >>conftest.$ac_ext |
| 11865 | cat >>conftest.$ac_ext <<_ACEOF |
| 11866 | /* end confdefs.h. */ |
| 11867 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11868 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11869 | #define $ac_func innocuous_$ac_func |
| 11870 | |
| 11871 | /* System header to define __stub macros and hopefully few prototypes, |
| 11872 | which can conflict with char $ac_func (); below. |
| 11873 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11874 | <limits.h> exists even on freestanding compilers. */ |
| 11875 | |
| 11876 | #ifdef __STDC__ |
| 11877 | # include <limits.h> |
| 11878 | #else |
| 11879 | # include <assert.h> |
| 11880 | #endif |
| 11881 | |
| 11882 | #undef $ac_func |
| 11883 | |
| 11884 | /* Override any GCC internal prototype to avoid an error. |
| 11885 | Use char because int might match the return type of a GCC |
| 11886 | builtin and then its argument prototype would still apply. */ |
| 11887 | #ifdef __cplusplus |
| 11888 | extern "C" |
| 11889 | #endif |
| 11890 | char $ac_func (); |
| 11891 | /* The GNU C library defines this for functions which it implements |
| 11892 | to always fail with ENOSYS. Some functions are actually named |
| 11893 | something starting with __ and the normal name is an alias. */ |
| 11894 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11895 | choke me |
| 11896 | #endif |
| 11897 | |
| 11898 | int |
| 11899 | main () |
| 11900 | { |
| 11901 | return $ac_func (); |
| 11902 | ; |
| 11903 | return 0; |
| 11904 | } |
| 11905 | _ACEOF |
| 11906 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11907 | if { (ac_try="$ac_link" |
| 11908 | case "(($ac_try" in |
| 11909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11910 | *) ac_try_echo=$ac_try;; |
| 11911 | esac |
| 11912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11913 | (eval "$ac_link") 2>conftest.er1 |
| 11914 | ac_status=$? |
| 11915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11916 | rm -f conftest.er1 |
| 11917 | cat conftest.err >&5 |
| 11918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11919 | (exit $ac_status); } && |
| 11920 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11921 | { (case "(($ac_try" in |
| 11922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11923 | *) ac_try_echo=$ac_try;; |
| 11924 | esac |
| 11925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11926 | (eval "$ac_try") 2>&5 |
| 11927 | ac_status=$? |
| 11928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11929 | (exit $ac_status); }; } && |
| 11930 | { ac_try='test -s conftest$ac_exeext' |
| 11931 | { (case "(($ac_try" in |
| 11932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11933 | *) ac_try_echo=$ac_try;; |
| 11934 | esac |
| 11935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11936 | (eval "$ac_try") 2>&5 |
| 11937 | ac_status=$? |
| 11938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11939 | (exit $ac_status); }; }; then |
| 11940 | eval "$as_ac_var=yes" |
| 11941 | else |
| 11942 | echo "$as_me: failed program was:" >&5 |
| 11943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11944 | |
| 11945 | eval "$as_ac_var=no" |
| 11946 | fi |
| 11947 | |
| 11948 | rm -f core conftest.err conftest.$ac_objext \ |
| 11949 | conftest$ac_exeext conftest.$ac_ext |
| 11950 | fi |
| 11951 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11952 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11953 | echo "${ECHO_T}$ac_res" >&6; } |
| 11954 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11955 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11956 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11957 | _ACEOF |
| 11958 | |
| 11959 | fi |
| 11960 | done |
| 11961 | |
| 11962 | |
| 11963 | |
| 11964 | |
| 11965 | |
| 11966 | |
| 11967 | |
| 11968 | |
| 11969 | |
| 11970 | |
| 11971 | |
| 11972 | |
| 11973 | |
| 11974 | |
| 11975 | |
| 11976 | |
| 11977 | |
| 11978 | |
| 11979 | |
| 11980 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11981 | |
| 11982 | |
| 11983 | |
| 11984 | |
| 11985 | |
| 11986 | |
| 11987 | |
| 11988 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11989 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11990 | stdio.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11991 | do |
| 11992 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11993 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11994 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11995 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11996 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11998 | fi |
| 11999 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12000 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12001 | echo "${ECHO_T}$ac_res" >&6; } |
| 12002 | else |
| 12003 | # Is the header compilable? |
| 12004 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12005 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12006 | cat >conftest.$ac_ext <<_ACEOF |
| 12007 | /* confdefs.h. */ |
| 12008 | _ACEOF |
| 12009 | cat confdefs.h >>conftest.$ac_ext |
| 12010 | cat >>conftest.$ac_ext <<_ACEOF |
| 12011 | /* end confdefs.h. */ |
| 12012 | $ac_includes_default |
| 12013 | #include <$ac_header> |
| 12014 | _ACEOF |
| 12015 | rm -f conftest.$ac_objext |
| 12016 | if { (ac_try="$ac_compile" |
| 12017 | case "(($ac_try" in |
| 12018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12019 | *) ac_try_echo=$ac_try;; |
| 12020 | esac |
| 12021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12022 | (eval "$ac_compile") 2>conftest.er1 |
| 12023 | ac_status=$? |
| 12024 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12025 | rm -f conftest.er1 |
| 12026 | cat conftest.err >&5 |
| 12027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12028 | (exit $ac_status); } && |
| 12029 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12030 | { (case "(($ac_try" in |
| 12031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12032 | *) ac_try_echo=$ac_try;; |
| 12033 | esac |
| 12034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12035 | (eval "$ac_try") 2>&5 |
| 12036 | ac_status=$? |
| 12037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12038 | (exit $ac_status); }; } && |
| 12039 | { ac_try='test -s conftest.$ac_objext' |
| 12040 | { (case "(($ac_try" in |
| 12041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12042 | *) ac_try_echo=$ac_try;; |
| 12043 | esac |
| 12044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12045 | (eval "$ac_try") 2>&5 |
| 12046 | ac_status=$? |
| 12047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12048 | (exit $ac_status); }; }; then |
| 12049 | ac_header_compiler=yes |
| 12050 | else |
| 12051 | echo "$as_me: failed program was:" >&5 |
| 12052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12053 | |
| 12054 | ac_header_compiler=no |
| 12055 | fi |
| 12056 | |
| 12057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12058 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12059 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12060 | |
| 12061 | # Is the header present? |
| 12062 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12063 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12064 | cat >conftest.$ac_ext <<_ACEOF |
| 12065 | /* confdefs.h. */ |
| 12066 | _ACEOF |
| 12067 | cat confdefs.h >>conftest.$ac_ext |
| 12068 | cat >>conftest.$ac_ext <<_ACEOF |
| 12069 | /* end confdefs.h. */ |
| 12070 | #include <$ac_header> |
| 12071 | _ACEOF |
| 12072 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12073 | case "(($ac_try" in |
| 12074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12075 | *) ac_try_echo=$ac_try;; |
| 12076 | esac |
| 12077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12078 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12079 | ac_status=$? |
| 12080 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12081 | rm -f conftest.er1 |
| 12082 | cat conftest.err >&5 |
| 12083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12084 | (exit $ac_status); } >/dev/null; then |
| 12085 | if test -s conftest.err; then |
| 12086 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12087 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12088 | else |
| 12089 | ac_cpp_err= |
| 12090 | fi |
| 12091 | else |
| 12092 | ac_cpp_err=yes |
| 12093 | fi |
| 12094 | if test -z "$ac_cpp_err"; then |
| 12095 | ac_header_preproc=yes |
| 12096 | else |
| 12097 | echo "$as_me: failed program was:" >&5 |
| 12098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12099 | |
| 12100 | ac_header_preproc=no |
| 12101 | fi |
| 12102 | |
| 12103 | rm -f conftest.err conftest.$ac_ext |
| 12104 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12105 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12106 | |
| 12107 | # So? What about this header? |
| 12108 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12109 | yes:no: ) |
| 12110 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12111 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12112 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12113 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12114 | ac_header_preproc=yes |
| 12115 | ;; |
| 12116 | no:yes:* ) |
| 12117 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12118 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12119 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12120 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12121 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12122 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12123 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12124 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12125 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12126 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12127 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12128 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12129 | ( cat <<\_ASBOX |
| 12130 | ## ----------------------------------- ## |
| 12131 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12132 | ## ----------------------------------- ## |
| 12133 | _ASBOX |
| 12134 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12135 | ;; |
| 12136 | esac |
| 12137 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12138 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12139 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12141 | else |
| 12142 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12143 | fi |
| 12144 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12145 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12146 | echo "${ECHO_T}$ac_res" >&6; } |
| 12147 | |
| 12148 | fi |
| 12149 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12150 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12151 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12152 | _ACEOF |
| 12153 | |
| 12154 | fi |
| 12155 | |
| 12156 | done |
| 12157 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12158 | |
| 12159 | |
| 12160 | |
| 12161 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12162 | 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] | 12163 | do |
| 12164 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12165 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12166 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12167 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12168 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12170 | fi |
| 12171 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12172 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12173 | echo "${ECHO_T}$ac_res" >&6; } |
| 12174 | else |
| 12175 | # Is the header compilable? |
| 12176 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12177 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12178 | cat >conftest.$ac_ext <<_ACEOF |
| 12179 | /* confdefs.h. */ |
| 12180 | _ACEOF |
| 12181 | cat confdefs.h >>conftest.$ac_ext |
| 12182 | cat >>conftest.$ac_ext <<_ACEOF |
| 12183 | /* end confdefs.h. */ |
| 12184 | $ac_includes_default |
| 12185 | #include <$ac_header> |
| 12186 | _ACEOF |
| 12187 | rm -f conftest.$ac_objext |
| 12188 | if { (ac_try="$ac_compile" |
| 12189 | case "(($ac_try" in |
| 12190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12191 | *) ac_try_echo=$ac_try;; |
| 12192 | esac |
| 12193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12194 | (eval "$ac_compile") 2>conftest.er1 |
| 12195 | ac_status=$? |
| 12196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12197 | rm -f conftest.er1 |
| 12198 | cat conftest.err >&5 |
| 12199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12200 | (exit $ac_status); } && |
| 12201 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12202 | { (case "(($ac_try" in |
| 12203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12204 | *) ac_try_echo=$ac_try;; |
| 12205 | esac |
| 12206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12207 | (eval "$ac_try") 2>&5 |
| 12208 | ac_status=$? |
| 12209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12210 | (exit $ac_status); }; } && |
| 12211 | { ac_try='test -s conftest.$ac_objext' |
| 12212 | { (case "(($ac_try" in |
| 12213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12214 | *) ac_try_echo=$ac_try;; |
| 12215 | esac |
| 12216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12217 | (eval "$ac_try") 2>&5 |
| 12218 | ac_status=$? |
| 12219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12220 | (exit $ac_status); }; }; then |
| 12221 | ac_header_compiler=yes |
| 12222 | else |
| 12223 | echo "$as_me: failed program was:" >&5 |
| 12224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12225 | |
| 12226 | ac_header_compiler=no |
| 12227 | fi |
| 12228 | |
| 12229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12230 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12231 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12232 | |
| 12233 | # Is the header present? |
| 12234 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12235 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12236 | cat >conftest.$ac_ext <<_ACEOF |
| 12237 | /* confdefs.h. */ |
| 12238 | _ACEOF |
| 12239 | cat confdefs.h >>conftest.$ac_ext |
| 12240 | cat >>conftest.$ac_ext <<_ACEOF |
| 12241 | /* end confdefs.h. */ |
| 12242 | #include <$ac_header> |
| 12243 | _ACEOF |
| 12244 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12245 | case "(($ac_try" in |
| 12246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12247 | *) ac_try_echo=$ac_try;; |
| 12248 | esac |
| 12249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12250 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12251 | ac_status=$? |
| 12252 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12253 | rm -f conftest.er1 |
| 12254 | cat conftest.err >&5 |
| 12255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12256 | (exit $ac_status); } >/dev/null; then |
| 12257 | if test -s conftest.err; then |
| 12258 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12259 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12260 | else |
| 12261 | ac_cpp_err= |
| 12262 | fi |
| 12263 | else |
| 12264 | ac_cpp_err=yes |
| 12265 | fi |
| 12266 | if test -z "$ac_cpp_err"; then |
| 12267 | ac_header_preproc=yes |
| 12268 | else |
| 12269 | echo "$as_me: failed program was:" >&5 |
| 12270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12271 | |
| 12272 | ac_header_preproc=no |
| 12273 | fi |
| 12274 | |
| 12275 | rm -f conftest.err conftest.$ac_ext |
| 12276 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12277 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12278 | |
| 12279 | # So? What about this header? |
| 12280 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12281 | yes:no: ) |
| 12282 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12283 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12284 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12285 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12286 | ac_header_preproc=yes |
| 12287 | ;; |
| 12288 | no:yes:* ) |
| 12289 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12290 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12291 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12292 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12293 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12294 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12295 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12296 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12297 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12298 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12299 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12300 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12301 | ( cat <<\_ASBOX |
| 12302 | ## ----------------------------------- ## |
| 12303 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12304 | ## ----------------------------------- ## |
| 12305 | _ASBOX |
| 12306 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12307 | ;; |
| 12308 | esac |
| 12309 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12310 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12311 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12313 | else |
| 12314 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12315 | fi |
| 12316 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12317 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12318 | echo "${ECHO_T}$ac_res" >&6; } |
| 12319 | |
| 12320 | fi |
| 12321 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12322 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12323 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12324 | _ACEOF |
| 12325 | |
| 12326 | fi |
| 12327 | |
| 12328 | done |
| 12329 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12330 | |
| 12331 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12332 | for ac_header in string.h strings.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12333 | do |
| 12334 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12335 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12336 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12337 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12338 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12340 | fi |
| 12341 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12342 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12343 | echo "${ECHO_T}$ac_res" >&6; } |
| 12344 | else |
| 12345 | # Is the header compilable? |
| 12346 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12347 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12348 | cat >conftest.$ac_ext <<_ACEOF |
| 12349 | /* confdefs.h. */ |
| 12350 | _ACEOF |
| 12351 | cat confdefs.h >>conftest.$ac_ext |
| 12352 | cat >>conftest.$ac_ext <<_ACEOF |
| 12353 | /* end confdefs.h. */ |
| 12354 | $ac_includes_default |
| 12355 | #include <$ac_header> |
| 12356 | _ACEOF |
| 12357 | rm -f conftest.$ac_objext |
| 12358 | if { (ac_try="$ac_compile" |
| 12359 | case "(($ac_try" in |
| 12360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12361 | *) ac_try_echo=$ac_try;; |
| 12362 | esac |
| 12363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12364 | (eval "$ac_compile") 2>conftest.er1 |
| 12365 | ac_status=$? |
| 12366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12367 | rm -f conftest.er1 |
| 12368 | cat conftest.err >&5 |
| 12369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12370 | (exit $ac_status); } && |
| 12371 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12372 | { (case "(($ac_try" in |
| 12373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12374 | *) ac_try_echo=$ac_try;; |
| 12375 | esac |
| 12376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12377 | (eval "$ac_try") 2>&5 |
| 12378 | ac_status=$? |
| 12379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12380 | (exit $ac_status); }; } && |
| 12381 | { ac_try='test -s conftest.$ac_objext' |
| 12382 | { (case "(($ac_try" in |
| 12383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12384 | *) ac_try_echo=$ac_try;; |
| 12385 | esac |
| 12386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12387 | (eval "$ac_try") 2>&5 |
| 12388 | ac_status=$? |
| 12389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12390 | (exit $ac_status); }; }; then |
| 12391 | ac_header_compiler=yes |
| 12392 | else |
| 12393 | echo "$as_me: failed program was:" >&5 |
| 12394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12395 | |
| 12396 | ac_header_compiler=no |
| 12397 | fi |
| 12398 | |
| 12399 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12400 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12401 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12402 | |
| 12403 | # Is the header present? |
| 12404 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12405 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12406 | cat >conftest.$ac_ext <<_ACEOF |
| 12407 | /* confdefs.h. */ |
| 12408 | _ACEOF |
| 12409 | cat confdefs.h >>conftest.$ac_ext |
| 12410 | cat >>conftest.$ac_ext <<_ACEOF |
| 12411 | /* end confdefs.h. */ |
| 12412 | #include <$ac_header> |
| 12413 | _ACEOF |
| 12414 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12415 | case "(($ac_try" in |
| 12416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12417 | *) ac_try_echo=$ac_try;; |
| 12418 | esac |
| 12419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12420 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12421 | ac_status=$? |
| 12422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12423 | rm -f conftest.er1 |
| 12424 | cat conftest.err >&5 |
| 12425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12426 | (exit $ac_status); } >/dev/null; then |
| 12427 | if test -s conftest.err; then |
| 12428 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12429 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12430 | else |
| 12431 | ac_cpp_err= |
| 12432 | fi |
| 12433 | else |
| 12434 | ac_cpp_err=yes |
| 12435 | fi |
| 12436 | if test -z "$ac_cpp_err"; then |
| 12437 | ac_header_preproc=yes |
| 12438 | else |
| 12439 | echo "$as_me: failed program was:" >&5 |
| 12440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12441 | |
| 12442 | ac_header_preproc=no |
| 12443 | fi |
| 12444 | |
| 12445 | rm -f conftest.err conftest.$ac_ext |
| 12446 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12447 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12448 | |
| 12449 | # So? What about this header? |
| 12450 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12451 | yes:no: ) |
| 12452 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12453 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12454 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12455 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12456 | ac_header_preproc=yes |
| 12457 | ;; |
| 12458 | no:yes:* ) |
| 12459 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12460 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12461 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12462 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12463 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12464 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12465 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12466 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12467 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12468 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12469 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12470 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12471 | ( cat <<\_ASBOX |
| 12472 | ## ----------------------------------- ## |
| 12473 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12474 | ## ----------------------------------- ## |
| 12475 | _ASBOX |
| 12476 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12477 | ;; |
| 12478 | esac |
| 12479 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12480 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12481 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12483 | else |
| 12484 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12485 | fi |
| 12486 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12487 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12488 | echo "${ECHO_T}$ac_res" >&6; } |
| 12489 | |
| 12490 | fi |
| 12491 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12492 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12493 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12494 | _ACEOF |
| 12495 | break |
| 12496 | fi |
| 12497 | |
| 12498 | done |
| 12499 | |
| 12500 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12501 | |
| 12502 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12503 | for ac_func in strchr index |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12504 | do |
| 12505 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12506 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12507 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12508 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12510 | else |
| 12511 | cat >conftest.$ac_ext <<_ACEOF |
| 12512 | /* confdefs.h. */ |
| 12513 | _ACEOF |
| 12514 | cat confdefs.h >>conftest.$ac_ext |
| 12515 | cat >>conftest.$ac_ext <<_ACEOF |
| 12516 | /* end confdefs.h. */ |
| 12517 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12518 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12519 | #define $ac_func innocuous_$ac_func |
| 12520 | |
| 12521 | /* System header to define __stub macros and hopefully few prototypes, |
| 12522 | which can conflict with char $ac_func (); below. |
| 12523 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12524 | <limits.h> exists even on freestanding compilers. */ |
| 12525 | |
| 12526 | #ifdef __STDC__ |
| 12527 | # include <limits.h> |
| 12528 | #else |
| 12529 | # include <assert.h> |
| 12530 | #endif |
| 12531 | |
| 12532 | #undef $ac_func |
| 12533 | |
| 12534 | /* Override any GCC internal prototype to avoid an error. |
| 12535 | Use char because int might match the return type of a GCC |
| 12536 | builtin and then its argument prototype would still apply. */ |
| 12537 | #ifdef __cplusplus |
| 12538 | extern "C" |
| 12539 | #endif |
| 12540 | char $ac_func (); |
| 12541 | /* The GNU C library defines this for functions which it implements |
| 12542 | to always fail with ENOSYS. Some functions are actually named |
| 12543 | something starting with __ and the normal name is an alias. */ |
| 12544 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12545 | choke me |
| 12546 | #endif |
| 12547 | |
| 12548 | int |
| 12549 | main () |
| 12550 | { |
| 12551 | return $ac_func (); |
| 12552 | ; |
| 12553 | return 0; |
| 12554 | } |
| 12555 | _ACEOF |
| 12556 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12557 | if { (ac_try="$ac_link" |
| 12558 | case "(($ac_try" in |
| 12559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12560 | *) ac_try_echo=$ac_try;; |
| 12561 | esac |
| 12562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12563 | (eval "$ac_link") 2>conftest.er1 |
| 12564 | ac_status=$? |
| 12565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12566 | rm -f conftest.er1 |
| 12567 | cat conftest.err >&5 |
| 12568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12569 | (exit $ac_status); } && |
| 12570 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12571 | { (case "(($ac_try" in |
| 12572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12573 | *) ac_try_echo=$ac_try;; |
| 12574 | esac |
| 12575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12576 | (eval "$ac_try") 2>&5 |
| 12577 | ac_status=$? |
| 12578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12579 | (exit $ac_status); }; } && |
| 12580 | { ac_try='test -s conftest$ac_exeext' |
| 12581 | { (case "(($ac_try" in |
| 12582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12583 | *) ac_try_echo=$ac_try;; |
| 12584 | esac |
| 12585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12586 | (eval "$ac_try") 2>&5 |
| 12587 | ac_status=$? |
| 12588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12589 | (exit $ac_status); }; }; then |
| 12590 | eval "$as_ac_var=yes" |
| 12591 | else |
| 12592 | echo "$as_me: failed program was:" >&5 |
| 12593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12594 | |
| 12595 | eval "$as_ac_var=no" |
| 12596 | fi |
| 12597 | |
| 12598 | rm -f core conftest.err conftest.$ac_objext \ |
| 12599 | conftest$ac_exeext conftest.$ac_ext |
| 12600 | fi |
| 12601 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12602 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12603 | echo "${ECHO_T}$ac_res" >&6; } |
| 12604 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12605 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12606 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12607 | _ACEOF |
| 12608 | break |
| 12609 | fi |
| 12610 | done |
| 12611 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12612 | |
| 12613 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12614 | for ac_func in strrchr rindex |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12615 | do |
| 12616 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12617 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12618 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12619 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12621 | else |
| 12622 | cat >conftest.$ac_ext <<_ACEOF |
| 12623 | /* confdefs.h. */ |
| 12624 | _ACEOF |
| 12625 | cat confdefs.h >>conftest.$ac_ext |
| 12626 | cat >>conftest.$ac_ext <<_ACEOF |
| 12627 | /* end confdefs.h. */ |
| 12628 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12629 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12630 | #define $ac_func innocuous_$ac_func |
| 12631 | |
| 12632 | /* System header to define __stub macros and hopefully few prototypes, |
| 12633 | which can conflict with char $ac_func (); below. |
| 12634 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12635 | <limits.h> exists even on freestanding compilers. */ |
| 12636 | |
| 12637 | #ifdef __STDC__ |
| 12638 | # include <limits.h> |
| 12639 | #else |
| 12640 | # include <assert.h> |
| 12641 | #endif |
| 12642 | |
| 12643 | #undef $ac_func |
| 12644 | |
| 12645 | /* Override any GCC internal prototype to avoid an error. |
| 12646 | Use char because int might match the return type of a GCC |
| 12647 | builtin and then its argument prototype would still apply. */ |
| 12648 | #ifdef __cplusplus |
| 12649 | extern "C" |
| 12650 | #endif |
| 12651 | char $ac_func (); |
| 12652 | /* The GNU C library defines this for functions which it implements |
| 12653 | to always fail with ENOSYS. Some functions are actually named |
| 12654 | something starting with __ and the normal name is an alias. */ |
| 12655 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12656 | choke me |
| 12657 | #endif |
| 12658 | |
| 12659 | int |
| 12660 | main () |
| 12661 | { |
| 12662 | return $ac_func (); |
| 12663 | ; |
| 12664 | return 0; |
| 12665 | } |
| 12666 | _ACEOF |
| 12667 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12668 | if { (ac_try="$ac_link" |
| 12669 | case "(($ac_try" in |
| 12670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12671 | *) ac_try_echo=$ac_try;; |
| 12672 | esac |
| 12673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12674 | (eval "$ac_link") 2>conftest.er1 |
| 12675 | ac_status=$? |
| 12676 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12677 | rm -f conftest.er1 |
| 12678 | cat conftest.err >&5 |
| 12679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12680 | (exit $ac_status); } && |
| 12681 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12682 | { (case "(($ac_try" in |
| 12683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12684 | *) ac_try_echo=$ac_try;; |
| 12685 | esac |
| 12686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12687 | (eval "$ac_try") 2>&5 |
| 12688 | ac_status=$? |
| 12689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12690 | (exit $ac_status); }; } && |
| 12691 | { ac_try='test -s conftest$ac_exeext' |
| 12692 | { (case "(($ac_try" in |
| 12693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12694 | *) ac_try_echo=$ac_try;; |
| 12695 | esac |
| 12696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12697 | (eval "$ac_try") 2>&5 |
| 12698 | ac_status=$? |
| 12699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12700 | (exit $ac_status); }; }; then |
| 12701 | eval "$as_ac_var=yes" |
| 12702 | else |
| 12703 | echo "$as_me: failed program was:" >&5 |
| 12704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12705 | |
| 12706 | eval "$as_ac_var=no" |
| 12707 | fi |
| 12708 | |
| 12709 | rm -f core conftest.err conftest.$ac_objext \ |
| 12710 | conftest$ac_exeext conftest.$ac_ext |
| 12711 | fi |
| 12712 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12713 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12714 | echo "${ECHO_T}$ac_res" >&6; } |
| 12715 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12716 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12717 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12718 | _ACEOF |
| 12719 | break |
| 12720 | fi |
| 12721 | done |
| 12722 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12723 | |
| 12724 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12725 | for ac_func in memcpy bcopy |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12726 | do |
| 12727 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12728 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12729 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12730 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12732 | else |
| 12733 | cat >conftest.$ac_ext <<_ACEOF |
| 12734 | /* confdefs.h. */ |
| 12735 | _ACEOF |
| 12736 | cat confdefs.h >>conftest.$ac_ext |
| 12737 | cat >>conftest.$ac_ext <<_ACEOF |
| 12738 | /* end confdefs.h. */ |
| 12739 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12740 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12741 | #define $ac_func innocuous_$ac_func |
| 12742 | |
| 12743 | /* System header to define __stub macros and hopefully few prototypes, |
| 12744 | which can conflict with char $ac_func (); below. |
| 12745 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12746 | <limits.h> exists even on freestanding compilers. */ |
| 12747 | |
| 12748 | #ifdef __STDC__ |
| 12749 | # include <limits.h> |
| 12750 | #else |
| 12751 | # include <assert.h> |
| 12752 | #endif |
| 12753 | |
| 12754 | #undef $ac_func |
| 12755 | |
| 12756 | /* Override any GCC internal prototype to avoid an error. |
| 12757 | Use char because int might match the return type of a GCC |
| 12758 | builtin and then its argument prototype would still apply. */ |
| 12759 | #ifdef __cplusplus |
| 12760 | extern "C" |
| 12761 | #endif |
| 12762 | char $ac_func (); |
| 12763 | /* The GNU C library defines this for functions which it implements |
| 12764 | to always fail with ENOSYS. Some functions are actually named |
| 12765 | something starting with __ and the normal name is an alias. */ |
| 12766 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12767 | choke me |
| 12768 | #endif |
| 12769 | |
| 12770 | int |
| 12771 | main () |
| 12772 | { |
| 12773 | return $ac_func (); |
| 12774 | ; |
| 12775 | return 0; |
| 12776 | } |
| 12777 | _ACEOF |
| 12778 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12779 | if { (ac_try="$ac_link" |
| 12780 | case "(($ac_try" in |
| 12781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12782 | *) ac_try_echo=$ac_try;; |
| 12783 | esac |
| 12784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12785 | (eval "$ac_link") 2>conftest.er1 |
| 12786 | ac_status=$? |
| 12787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12788 | rm -f conftest.er1 |
| 12789 | cat conftest.err >&5 |
| 12790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12791 | (exit $ac_status); } && |
| 12792 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12793 | { (case "(($ac_try" in |
| 12794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12795 | *) ac_try_echo=$ac_try;; |
| 12796 | esac |
| 12797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12798 | (eval "$ac_try") 2>&5 |
| 12799 | ac_status=$? |
| 12800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12801 | (exit $ac_status); }; } && |
| 12802 | { ac_try='test -s conftest$ac_exeext' |
| 12803 | { (case "(($ac_try" in |
| 12804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12805 | *) ac_try_echo=$ac_try;; |
| 12806 | esac |
| 12807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12808 | (eval "$ac_try") 2>&5 |
| 12809 | ac_status=$? |
| 12810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12811 | (exit $ac_status); }; }; then |
| 12812 | eval "$as_ac_var=yes" |
| 12813 | else |
| 12814 | echo "$as_me: failed program was:" >&5 |
| 12815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12816 | |
| 12817 | eval "$as_ac_var=no" |
| 12818 | fi |
| 12819 | |
| 12820 | rm -f core conftest.err conftest.$ac_objext \ |
| 12821 | conftest$ac_exeext conftest.$ac_ext |
| 12822 | fi |
| 12823 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12824 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12825 | echo "${ECHO_T}$ac_res" >&6; } |
| 12826 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12827 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12828 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12829 | _ACEOF |
| 12830 | break |
| 12831 | fi |
| 12832 | done |
| 12833 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12834 | |
| 12835 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12836 | for ac_func in memmove strcmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12837 | do |
| 12838 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12839 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12840 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12841 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12843 | else |
| 12844 | cat >conftest.$ac_ext <<_ACEOF |
| 12845 | /* confdefs.h. */ |
| 12846 | _ACEOF |
| 12847 | cat confdefs.h >>conftest.$ac_ext |
| 12848 | cat >>conftest.$ac_ext <<_ACEOF |
| 12849 | /* end confdefs.h. */ |
| 12850 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12851 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12852 | #define $ac_func innocuous_$ac_func |
| 12853 | |
| 12854 | /* System header to define __stub macros and hopefully few prototypes, |
| 12855 | which can conflict with char $ac_func (); below. |
| 12856 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12857 | <limits.h> exists even on freestanding compilers. */ |
| 12858 | |
| 12859 | #ifdef __STDC__ |
| 12860 | # include <limits.h> |
| 12861 | #else |
| 12862 | # include <assert.h> |
| 12863 | #endif |
| 12864 | |
| 12865 | #undef $ac_func |
| 12866 | |
| 12867 | /* Override any GCC internal prototype to avoid an error. |
| 12868 | Use char because int might match the return type of a GCC |
| 12869 | builtin and then its argument prototype would still apply. */ |
| 12870 | #ifdef __cplusplus |
| 12871 | extern "C" |
| 12872 | #endif |
| 12873 | char $ac_func (); |
| 12874 | /* The GNU C library defines this for functions which it implements |
| 12875 | to always fail with ENOSYS. Some functions are actually named |
| 12876 | something starting with __ and the normal name is an alias. */ |
| 12877 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12878 | choke me |
| 12879 | #endif |
| 12880 | |
| 12881 | int |
| 12882 | main () |
| 12883 | { |
| 12884 | return $ac_func (); |
| 12885 | ; |
| 12886 | return 0; |
| 12887 | } |
| 12888 | _ACEOF |
| 12889 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12890 | if { (ac_try="$ac_link" |
| 12891 | case "(($ac_try" in |
| 12892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12893 | *) ac_try_echo=$ac_try;; |
| 12894 | esac |
| 12895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12896 | (eval "$ac_link") 2>conftest.er1 |
| 12897 | ac_status=$? |
| 12898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12899 | rm -f conftest.er1 |
| 12900 | cat conftest.err >&5 |
| 12901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12902 | (exit $ac_status); } && |
| 12903 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12904 | { (case "(($ac_try" in |
| 12905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12906 | *) ac_try_echo=$ac_try;; |
| 12907 | esac |
| 12908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12909 | (eval "$ac_try") 2>&5 |
| 12910 | ac_status=$? |
| 12911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12912 | (exit $ac_status); }; } && |
| 12913 | { ac_try='test -s conftest$ac_exeext' |
| 12914 | { (case "(($ac_try" in |
| 12915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12916 | *) ac_try_echo=$ac_try;; |
| 12917 | esac |
| 12918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12919 | (eval "$ac_try") 2>&5 |
| 12920 | ac_status=$? |
| 12921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12922 | (exit $ac_status); }; }; then |
| 12923 | eval "$as_ac_var=yes" |
| 12924 | else |
| 12925 | echo "$as_me: failed program was:" >&5 |
| 12926 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12927 | |
| 12928 | eval "$as_ac_var=no" |
| 12929 | fi |
| 12930 | |
| 12931 | rm -f core conftest.err conftest.$ac_objext \ |
| 12932 | conftest$ac_exeext conftest.$ac_ext |
| 12933 | fi |
| 12934 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12935 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12936 | echo "${ECHO_T}$ac_res" >&6; } |
| 12937 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12938 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12939 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12940 | _ACEOF |
| 12941 | |
| 12942 | fi |
| 12943 | done |
| 12944 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12945 | |
| 12946 | |
| 12947 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12948 | for ac_func in closedir opendir readdir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12949 | do |
| 12950 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12951 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12952 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12953 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12955 | else |
| 12956 | cat >conftest.$ac_ext <<_ACEOF |
| 12957 | /* confdefs.h. */ |
| 12958 | _ACEOF |
| 12959 | cat confdefs.h >>conftest.$ac_ext |
| 12960 | cat >>conftest.$ac_ext <<_ACEOF |
| 12961 | /* end confdefs.h. */ |
| 12962 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12963 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12964 | #define $ac_func innocuous_$ac_func |
| 12965 | |
| 12966 | /* System header to define __stub macros and hopefully few prototypes, |
| 12967 | which can conflict with char $ac_func (); below. |
| 12968 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12969 | <limits.h> exists even on freestanding compilers. */ |
| 12970 | |
| 12971 | #ifdef __STDC__ |
| 12972 | # include <limits.h> |
| 12973 | #else |
| 12974 | # include <assert.h> |
| 12975 | #endif |
| 12976 | |
| 12977 | #undef $ac_func |
| 12978 | |
| 12979 | /* Override any GCC internal prototype to avoid an error. |
| 12980 | Use char because int might match the return type of a GCC |
| 12981 | builtin and then its argument prototype would still apply. */ |
| 12982 | #ifdef __cplusplus |
| 12983 | extern "C" |
| 12984 | #endif |
| 12985 | char $ac_func (); |
| 12986 | /* The GNU C library defines this for functions which it implements |
| 12987 | to always fail with ENOSYS. Some functions are actually named |
| 12988 | something starting with __ and the normal name is an alias. */ |
| 12989 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12990 | choke me |
| 12991 | #endif |
| 12992 | |
| 12993 | int |
| 12994 | main () |
| 12995 | { |
| 12996 | return $ac_func (); |
| 12997 | ; |
| 12998 | return 0; |
| 12999 | } |
| 13000 | _ACEOF |
| 13001 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13002 | if { (ac_try="$ac_link" |
| 13003 | case "(($ac_try" in |
| 13004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13005 | *) ac_try_echo=$ac_try;; |
| 13006 | esac |
| 13007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13008 | (eval "$ac_link") 2>conftest.er1 |
| 13009 | ac_status=$? |
| 13010 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13011 | rm -f conftest.er1 |
| 13012 | cat conftest.err >&5 |
| 13013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13014 | (exit $ac_status); } && |
| 13015 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13016 | { (case "(($ac_try" in |
| 13017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13018 | *) ac_try_echo=$ac_try;; |
| 13019 | esac |
| 13020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13021 | (eval "$ac_try") 2>&5 |
| 13022 | ac_status=$? |
| 13023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13024 | (exit $ac_status); }; } && |
| 13025 | { ac_try='test -s conftest$ac_exeext' |
| 13026 | { (case "(($ac_try" in |
| 13027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13028 | *) ac_try_echo=$ac_try;; |
| 13029 | esac |
| 13030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13031 | (eval "$ac_try") 2>&5 |
| 13032 | ac_status=$? |
| 13033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13034 | (exit $ac_status); }; }; then |
| 13035 | eval "$as_ac_var=yes" |
| 13036 | else |
| 13037 | echo "$as_me: failed program was:" >&5 |
| 13038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13039 | |
| 13040 | eval "$as_ac_var=no" |
| 13041 | fi |
| 13042 | |
| 13043 | rm -f core conftest.err conftest.$ac_objext \ |
| 13044 | conftest$ac_exeext conftest.$ac_ext |
| 13045 | fi |
| 13046 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 13047 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13048 | echo "${ECHO_T}$ac_res" >&6; } |
| 13049 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13050 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13051 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13052 | _ACEOF |
| 13053 | |
| 13054 | fi |
| 13055 | done |
| 13056 | |
| 13057 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 13058 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 13059 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13060 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 13061 | LLVMGXX="llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13062 | LLVMGCCCOMMAND="$LLVMGCC" |
| 13063 | LLVMGXXCOMMAND="$LLVMGXX" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13064 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 13065 | |
| 13066 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 13067 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13068 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 13069 | set dummy $LLVMGCC; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13070 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13071 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 13072 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 13073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13074 | else |
| 13075 | case $LLVMGCC in |
| 13076 | [\\/]* | ?:[\\/]*) |
| 13077 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 13078 | ;; |
| 13079 | *) |
| 13080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13081 | for as_dir in $PATH |
| 13082 | do |
| 13083 | IFS=$as_save_IFS |
| 13084 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13085 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13086 | 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] | 13087 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13088 | 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] | 13089 | break 2 |
| 13090 | fi |
| 13091 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13092 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13093 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13094 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13095 | ;; |
| 13096 | esac |
| 13097 | fi |
| 13098 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13099 | if test -n "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13100 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 13101 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13102 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13103 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13104 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13105 | fi |
| 13106 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13107 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13108 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 13109 | set dummy $LLVMGXX; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13110 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13111 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 13112 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 13113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13114 | else |
| 13115 | case $LLVMGXX in |
| 13116 | [\\/]* | ?:[\\/]*) |
| 13117 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 13118 | ;; |
| 13119 | *) |
| 13120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13121 | for as_dir in $PATH |
| 13122 | do |
| 13123 | IFS=$as_save_IFS |
| 13124 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13125 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13126 | 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] | 13127 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13128 | 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] | 13129 | break 2 |
| 13130 | fi |
| 13131 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13132 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13133 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13134 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13135 | ;; |
| 13136 | esac |
| 13137 | fi |
| 13138 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13139 | if test -n "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13140 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 13141 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13142 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13143 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13144 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13145 | fi |
| 13146 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13147 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13148 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13149 | if test -z "$LLVMGCC"; then |
| 13150 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13151 | LLVMGCCCOMMAND="$LLVMGCC" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13152 | fi |
| 13153 | if test -z "$LLVMGXX"; then |
| 13154 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13155 | LLVMGXXCOMMAND="$LLVMGXX" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13156 | fi |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13157 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13158 | LLVMGCC=$LLVMGCC |
| 13159 | |
| 13160 | LLVMGXX=$LLVMGXX |
| 13161 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13162 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 13163 | |
| 13164 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 13165 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13166 | fi |
| 13167 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13168 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 13169 | # Check whether --with-llvmcc was given. |
| 13170 | if test "${with_llvmcc+set}" = set; then |
| 13171 | withval=$with_llvmcc; |
| 13172 | else |
| 13173 | with_llvmcc=check |
| 13174 | fi |
| 13175 | |
| 13176 | { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5 |
| 13177 | echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; } |
| 13178 | if test "$with_llvmcc" != "check"; then |
| 13179 | if (test "$with_llvmcc" != "llvm-gcc" && |
| 13180 | test "$with_llvmcc" != "clang" && |
| 13181 | test "$with_llvmcc" != "none"); then |
| 13182 | { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5 |
| 13183 | echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;} |
| 13184 | { (exit 1); exit 1; }; } |
| 13185 | fi |
| 13186 | WITH_LLVMCC="$with_llvmcc" |
| 13187 | elif test -n "$LLVMGCC"; then |
| 13188 | WITH_LLVMCC=llvm-gcc |
| 13189 | elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then |
| 13190 | WITH_LLVMCC=clang |
| 13191 | else |
| 13192 | WITH_LLVMCC=none |
| 13193 | fi |
| 13194 | { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5 |
| 13195 | echo "${ECHO_T}$WITH_LLVMCC" >&6; } |
| 13196 | LLVMCC_OPTION=$WITH_LLVMCC |
| 13197 | |
| 13198 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13199 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 13200 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13201 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 13202 | ICC=no |
| 13203 | IXX=no |
| 13204 | case $CC in |
| 13205 | icc*|icpc*) |
| 13206 | ICC=yes |
| 13207 | IXX=yes |
| 13208 | ;; |
| 13209 | *) |
| 13210 | ;; |
| 13211 | esac |
| 13212 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13213 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 13214 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13215 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 13216 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 13217 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13218 | fi |
| 13219 | |
| 13220 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 13221 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13222 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 13223 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 13224 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13225 | fi |
| 13226 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 13227 | if test "$GCC" = "yes" |
| 13228 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13229 | cat >conftest.$ac_ext <<_ACEOF |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13230 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 13231 | #error Unsupported GCC version |
| 13232 | #endif |
| 13233 | |
| 13234 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13235 | rm -f conftest.$ac_objext |
| 13236 | if { (ac_try="$ac_compile" |
| 13237 | case "(($ac_try" in |
| 13238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13239 | *) ac_try_echo=$ac_try;; |
| 13240 | esac |
| 13241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13242 | (eval "$ac_compile") 2>conftest.er1 |
| 13243 | ac_status=$? |
| 13244 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13245 | rm -f conftest.er1 |
| 13246 | cat conftest.err >&5 |
| 13247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13248 | (exit $ac_status); } && |
| 13249 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13250 | { (case "(($ac_try" in |
| 13251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13252 | *) ac_try_echo=$ac_try;; |
| 13253 | esac |
| 13254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13255 | (eval "$ac_try") 2>&5 |
| 13256 | ac_status=$? |
| 13257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13258 | (exit $ac_status); }; } && |
| 13259 | { ac_try='test -s conftest.$ac_objext' |
| 13260 | { (case "(($ac_try" in |
| 13261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13262 | *) ac_try_echo=$ac_try;; |
| 13263 | esac |
| 13264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13265 | (eval "$ac_try") 2>&5 |
| 13266 | ac_status=$? |
| 13267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13268 | (exit $ac_status); }; }; then |
| 13269 | : |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13270 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13271 | echo "$as_me: failed program was:" >&5 |
| 13272 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13273 | |
| 13274 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 13275 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 13276 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13277 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13278 | |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13280 | fi |
| 13281 | |
| 13282 | if test -z "$llvm_cv_gnu_make_command" |
| 13283 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13284 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 13285 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 13286 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13287 | fi |
| 13288 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13289 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 13290 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13291 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13292 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 13293 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13294 | NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` |
| 13295 | |
| 13296 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` |
| 13297 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13298 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 |
| 13299 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13300 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 13301 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13302 | |
| 13303 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 13304 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
| 13305 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 13306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13307 | else |
| 13308 | ac_check_lib_save_LIBS=$LIBS |
| 13309 | LIBS="-lm $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13310 | cat >conftest.$ac_ext <<_ACEOF |
| 13311 | /* confdefs.h. */ |
| 13312 | _ACEOF |
| 13313 | cat confdefs.h >>conftest.$ac_ext |
| 13314 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13315 | /* end confdefs.h. */ |
| 13316 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13317 | /* Override any GCC internal prototype to avoid an error. |
| 13318 | Use char because int might match the return type of a GCC |
| 13319 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13320 | #ifdef __cplusplus |
| 13321 | extern "C" |
| 13322 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13323 | char sin (); |
| 13324 | int |
| 13325 | main () |
| 13326 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13327 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13328 | ; |
| 13329 | return 0; |
| 13330 | } |
| 13331 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13332 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13333 | if { (ac_try="$ac_link" |
| 13334 | case "(($ac_try" in |
| 13335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13336 | *) ac_try_echo=$ac_try;; |
| 13337 | esac |
| 13338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13339 | (eval "$ac_link") 2>conftest.er1 |
| 13340 | ac_status=$? |
| 13341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13342 | rm -f conftest.er1 |
| 13343 | cat conftest.err >&5 |
| 13344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13345 | (exit $ac_status); } && |
| 13346 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13347 | { (case "(($ac_try" in |
| 13348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13349 | *) ac_try_echo=$ac_try;; |
| 13350 | esac |
| 13351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13352 | (eval "$ac_try") 2>&5 |
| 13353 | ac_status=$? |
| 13354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13355 | (exit $ac_status); }; } && |
| 13356 | { ac_try='test -s conftest$ac_exeext' |
| 13357 | { (case "(($ac_try" in |
| 13358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13359 | *) ac_try_echo=$ac_try;; |
| 13360 | esac |
| 13361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13362 | (eval "$ac_try") 2>&5 |
| 13363 | ac_status=$? |
| 13364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13365 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13366 | ac_cv_lib_m_sin=yes |
| 13367 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13368 | echo "$as_me: failed program was:" >&5 |
| 13369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13370 | |
| 13371 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13372 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13373 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13374 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13375 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13376 | LIBS=$ac_check_lib_save_LIBS |
| 13377 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13378 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 13379 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
| 13380 | if test $ac_cv_lib_m_sin = yes; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13381 | cat >>confdefs.h <<_ACEOF |
| 13382 | #define HAVE_LIBM 1 |
| 13383 | _ACEOF |
| 13384 | |
| 13385 | LIBS="-lm $LIBS" |
| 13386 | |
| 13387 | fi |
| 13388 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 13389 | if test "$llvm_cv_os_type" = "MingW" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13390 | |
| 13391 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 13392 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
| 13393 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
| 13394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13395 | else |
| 13396 | ac_check_lib_save_LIBS=$LIBS |
| 13397 | LIBS="-limagehlp $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13398 | cat >conftest.$ac_ext <<_ACEOF |
| 13399 | /* confdefs.h. */ |
| 13400 | _ACEOF |
| 13401 | cat confdefs.h >>conftest.$ac_ext |
| 13402 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13403 | /* end confdefs.h. */ |
| 13404 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13405 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13406 | int |
| 13407 | main () |
| 13408 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13409 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13410 | ; |
| 13411 | return 0; |
| 13412 | } |
| 13413 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13414 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13415 | if { (ac_try="$ac_link" |
| 13416 | case "(($ac_try" in |
| 13417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13418 | *) ac_try_echo=$ac_try;; |
| 13419 | esac |
| 13420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13421 | (eval "$ac_link") 2>conftest.er1 |
| 13422 | ac_status=$? |
| 13423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13424 | rm -f conftest.er1 |
| 13425 | cat conftest.err >&5 |
| 13426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13427 | (exit $ac_status); } && |
| 13428 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13429 | { (case "(($ac_try" in |
| 13430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13431 | *) ac_try_echo=$ac_try;; |
| 13432 | esac |
| 13433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13434 | (eval "$ac_try") 2>&5 |
| 13435 | ac_status=$? |
| 13436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13437 | (exit $ac_status); }; } && |
| 13438 | { ac_try='test -s conftest$ac_exeext' |
| 13439 | { (case "(($ac_try" in |
| 13440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13441 | *) ac_try_echo=$ac_try;; |
| 13442 | esac |
| 13443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13444 | (eval "$ac_try") 2>&5 |
| 13445 | ac_status=$? |
| 13446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13447 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13448 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13449 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13450 | echo "$as_me: failed program was:" >&5 |
| 13451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13452 | |
| 13453 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13454 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13455 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13456 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13457 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13458 | LIBS=$ac_check_lib_save_LIBS |
| 13459 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13460 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 13461 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
| 13462 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13463 | cat >>confdefs.h <<_ACEOF |
| 13464 | #define HAVE_LIBIMAGEHLP 1 |
| 13465 | _ACEOF |
| 13466 | |
| 13467 | LIBS="-limagehlp $LIBS" |
| 13468 | |
| 13469 | fi |
| 13470 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13471 | |
| 13472 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 13473 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
| 13474 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
| 13475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13476 | else |
| 13477 | ac_check_lib_save_LIBS=$LIBS |
| 13478 | LIBS="-lpsapi $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13479 | cat >conftest.$ac_ext <<_ACEOF |
| 13480 | /* confdefs.h. */ |
| 13481 | _ACEOF |
| 13482 | cat confdefs.h >>conftest.$ac_ext |
| 13483 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13484 | /* end confdefs.h. */ |
| 13485 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13486 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13487 | int |
| 13488 | main () |
| 13489 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13490 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13491 | ; |
| 13492 | return 0; |
| 13493 | } |
| 13494 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13495 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13496 | if { (ac_try="$ac_link" |
| 13497 | case "(($ac_try" in |
| 13498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13499 | *) ac_try_echo=$ac_try;; |
| 13500 | esac |
| 13501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13502 | (eval "$ac_link") 2>conftest.er1 |
| 13503 | ac_status=$? |
| 13504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13505 | rm -f conftest.er1 |
| 13506 | cat conftest.err >&5 |
| 13507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13508 | (exit $ac_status); } && |
| 13509 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13510 | { (case "(($ac_try" in |
| 13511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13512 | *) ac_try_echo=$ac_try;; |
| 13513 | esac |
| 13514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13515 | (eval "$ac_try") 2>&5 |
| 13516 | ac_status=$? |
| 13517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13518 | (exit $ac_status); }; } && |
| 13519 | { ac_try='test -s conftest$ac_exeext' |
| 13520 | { (case "(($ac_try" in |
| 13521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13522 | *) ac_try_echo=$ac_try;; |
| 13523 | esac |
| 13524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13525 | (eval "$ac_try") 2>&5 |
| 13526 | ac_status=$? |
| 13527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13528 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13529 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13530 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13531 | echo "$as_me: failed program was:" >&5 |
| 13532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13533 | |
| 13534 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13535 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13536 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13537 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13538 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13539 | LIBS=$ac_check_lib_save_LIBS |
| 13540 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13541 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 13542 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
| 13543 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13544 | cat >>confdefs.h <<_ACEOF |
| 13545 | #define HAVE_LIBPSAPI 1 |
| 13546 | _ACEOF |
| 13547 | |
| 13548 | LIBS="-lpsapi $LIBS" |
| 13549 | |
| 13550 | fi |
| 13551 | |
| 13552 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13553 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13554 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 13555 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
| 13556 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13558 | else |
| 13559 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13560 | cat >conftest.$ac_ext <<_ACEOF |
| 13561 | /* confdefs.h. */ |
| 13562 | _ACEOF |
| 13563 | cat confdefs.h >>conftest.$ac_ext |
| 13564 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13565 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13566 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13567 | /* Override any GCC internal prototype to avoid an error. |
| 13568 | Use char because int might match the return type of a GCC |
| 13569 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13570 | #ifdef __cplusplus |
| 13571 | extern "C" |
| 13572 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13573 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13574 | int |
| 13575 | main () |
| 13576 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13577 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13578 | ; |
| 13579 | return 0; |
| 13580 | } |
| 13581 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13582 | for ac_lib in '' dl; do |
| 13583 | if test -z "$ac_lib"; then |
| 13584 | ac_res="none required" |
| 13585 | else |
| 13586 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13587 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13588 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13589 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13590 | if { (ac_try="$ac_link" |
| 13591 | case "(($ac_try" in |
| 13592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13593 | *) ac_try_echo=$ac_try;; |
| 13594 | esac |
| 13595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13596 | (eval "$ac_link") 2>conftest.er1 |
| 13597 | ac_status=$? |
| 13598 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13599 | rm -f conftest.er1 |
| 13600 | cat conftest.err >&5 |
| 13601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13602 | (exit $ac_status); } && |
| 13603 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13604 | { (case "(($ac_try" in |
| 13605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13606 | *) ac_try_echo=$ac_try;; |
| 13607 | esac |
| 13608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13609 | (eval "$ac_try") 2>&5 |
| 13610 | ac_status=$? |
| 13611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13612 | (exit $ac_status); }; } && |
| 13613 | { ac_try='test -s conftest$ac_exeext' |
| 13614 | { (case "(($ac_try" in |
| 13615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13616 | *) ac_try_echo=$ac_try;; |
| 13617 | esac |
| 13618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13619 | (eval "$ac_try") 2>&5 |
| 13620 | ac_status=$? |
| 13621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13622 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13623 | ac_cv_search_dlopen=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13624 | else |
| 13625 | echo "$as_me: failed program was:" >&5 |
| 13626 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13627 | |
| 13628 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13629 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13630 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13631 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13632 | conftest$ac_exeext |
| 13633 | if test "${ac_cv_search_dlopen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13634 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13635 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13636 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13637 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13638 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13639 | else |
| 13640 | ac_cv_search_dlopen=no |
| 13641 | fi |
| 13642 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13643 | LIBS=$ac_func_search_save_LIBS |
| 13644 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13645 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 13646 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13647 | ac_res=$ac_cv_search_dlopen |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13648 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13649 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13650 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13651 | cat >>confdefs.h <<\_ACEOF |
| 13652 | #define HAVE_DLOPEN 1 |
| 13653 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13654 | |
| 13655 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13656 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 13657 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13658 | fi |
| 13659 | |
| 13660 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13661 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13662 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
| 13663 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 13664 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13666 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13667 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13668 | cat >conftest.$ac_ext <<_ACEOF |
| 13669 | /* confdefs.h. */ |
| 13670 | _ACEOF |
| 13671 | cat confdefs.h >>conftest.$ac_ext |
| 13672 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13673 | /* end confdefs.h. */ |
| 13674 | |
| 13675 | /* Override any GCC internal prototype to avoid an error. |
| 13676 | Use char because int might match the return type of a GCC |
| 13677 | builtin and then its argument prototype would still apply. */ |
| 13678 | #ifdef __cplusplus |
| 13679 | extern "C" |
| 13680 | #endif |
| 13681 | char ffi_call (); |
| 13682 | int |
| 13683 | main () |
| 13684 | { |
| 13685 | return ffi_call (); |
| 13686 | ; |
| 13687 | return 0; |
| 13688 | } |
| 13689 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13690 | for ac_lib in '' ffi; do |
| 13691 | if test -z "$ac_lib"; then |
| 13692 | ac_res="none required" |
| 13693 | else |
| 13694 | ac_res=-l$ac_lib |
| 13695 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13696 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13697 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13698 | if { (ac_try="$ac_link" |
| 13699 | case "(($ac_try" in |
| 13700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13701 | *) ac_try_echo=$ac_try;; |
| 13702 | esac |
| 13703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13704 | (eval "$ac_link") 2>conftest.er1 |
| 13705 | ac_status=$? |
| 13706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13707 | rm -f conftest.er1 |
| 13708 | cat conftest.err >&5 |
| 13709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13710 | (exit $ac_status); } && |
| 13711 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13712 | { (case "(($ac_try" in |
| 13713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13714 | *) ac_try_echo=$ac_try;; |
| 13715 | esac |
| 13716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13717 | (eval "$ac_try") 2>&5 |
| 13718 | ac_status=$? |
| 13719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13720 | (exit $ac_status); }; } && |
| 13721 | { ac_try='test -s conftest$ac_exeext' |
| 13722 | { (case "(($ac_try" in |
| 13723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13724 | *) ac_try_echo=$ac_try;; |
| 13725 | esac |
| 13726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13727 | (eval "$ac_try") 2>&5 |
| 13728 | ac_status=$? |
| 13729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13730 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13731 | ac_cv_search_ffi_call=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13732 | else |
| 13733 | echo "$as_me: failed program was:" >&5 |
| 13734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13735 | |
| 13736 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13737 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13738 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13739 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13740 | conftest$ac_exeext |
| 13741 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13742 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13743 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13744 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13745 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13746 | : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13747 | else |
| 13748 | ac_cv_search_ffi_call=no |
| 13749 | fi |
| 13750 | rm conftest.$ac_ext |
| 13751 | LIBS=$ac_func_search_save_LIBS |
| 13752 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13753 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 13754 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13755 | ac_res=$ac_cv_search_ffi_call |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13756 | if test "$ac_res" != no; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13757 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13758 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13759 | cat >>confdefs.h <<\_ACEOF |
| 13760 | #define HAVE_FFI_CALL 1 |
| 13761 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13762 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13763 | else |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 13764 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 |
| 13765 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} |
| 13766 | { (exit 1); exit 1; }; } |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13767 | fi |
| 13768 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13769 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13770 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13771 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 13772 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
| 13773 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13775 | else |
| 13776 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13777 | cat >conftest.$ac_ext <<_ACEOF |
| 13778 | /* confdefs.h. */ |
| 13779 | _ACEOF |
| 13780 | cat confdefs.h >>conftest.$ac_ext |
| 13781 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13782 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13783 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13784 | /* Override any GCC internal prototype to avoid an error. |
| 13785 | Use char because int might match the return type of a GCC |
| 13786 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13787 | #ifdef __cplusplus |
| 13788 | extern "C" |
| 13789 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13790 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13791 | int |
| 13792 | main () |
| 13793 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13794 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13795 | ; |
| 13796 | return 0; |
| 13797 | } |
| 13798 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13799 | for ac_lib in '' malloc; do |
| 13800 | if test -z "$ac_lib"; then |
| 13801 | ac_res="none required" |
| 13802 | else |
| 13803 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13804 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13805 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13806 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13807 | if { (ac_try="$ac_link" |
| 13808 | case "(($ac_try" in |
| 13809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13810 | *) ac_try_echo=$ac_try;; |
| 13811 | esac |
| 13812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13813 | (eval "$ac_link") 2>conftest.er1 |
| 13814 | ac_status=$? |
| 13815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13816 | rm -f conftest.er1 |
| 13817 | cat conftest.err >&5 |
| 13818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13819 | (exit $ac_status); } && |
| 13820 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13821 | { (case "(($ac_try" in |
| 13822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13823 | *) ac_try_echo=$ac_try;; |
| 13824 | esac |
| 13825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13826 | (eval "$ac_try") 2>&5 |
| 13827 | ac_status=$? |
| 13828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13829 | (exit $ac_status); }; } && |
| 13830 | { ac_try='test -s conftest$ac_exeext' |
| 13831 | { (case "(($ac_try" in |
| 13832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13833 | *) ac_try_echo=$ac_try;; |
| 13834 | esac |
| 13835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13836 | (eval "$ac_try") 2>&5 |
| 13837 | ac_status=$? |
| 13838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13839 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13840 | ac_cv_search_mallinfo=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13841 | else |
| 13842 | echo "$as_me: failed program was:" >&5 |
| 13843 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13844 | |
| 13845 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13846 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13847 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13848 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13849 | conftest$ac_exeext |
| 13850 | if test "${ac_cv_search_mallinfo+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13851 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13852 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13853 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13854 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13855 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13856 | else |
| 13857 | ac_cv_search_mallinfo=no |
| 13858 | fi |
| 13859 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13860 | LIBS=$ac_func_search_save_LIBS |
| 13861 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13862 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 13863 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13864 | ac_res=$ac_cv_search_mallinfo |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13865 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13866 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13867 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13868 | cat >>confdefs.h <<\_ACEOF |
| 13869 | #define HAVE_MALLINFO 1 |
| 13870 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13871 | |
| 13872 | fi |
| 13873 | |
| 13874 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13875 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13876 | |
| 13877 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 13878 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 13879 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 13880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13881 | else |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13882 | ac_check_lib_save_LIBS=$LIBS |
| 13883 | LIBS="-lpthread $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13884 | cat >conftest.$ac_ext <<_ACEOF |
| 13885 | /* confdefs.h. */ |
| 13886 | _ACEOF |
| 13887 | cat confdefs.h >>conftest.$ac_ext |
| 13888 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13889 | /* end confdefs.h. */ |
| 13890 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13891 | /* Override any GCC internal prototype to avoid an error. |
| 13892 | Use char because int might match the return type of a GCC |
| 13893 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13894 | #ifdef __cplusplus |
| 13895 | extern "C" |
| 13896 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13897 | char pthread_mutex_init (); |
| 13898 | int |
| 13899 | main () |
| 13900 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13901 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13902 | ; |
| 13903 | return 0; |
| 13904 | } |
| 13905 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13906 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13907 | if { (ac_try="$ac_link" |
| 13908 | case "(($ac_try" in |
| 13909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13910 | *) ac_try_echo=$ac_try;; |
| 13911 | esac |
| 13912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13913 | (eval "$ac_link") 2>conftest.er1 |
| 13914 | ac_status=$? |
| 13915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13916 | rm -f conftest.er1 |
| 13917 | cat conftest.err >&5 |
| 13918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13919 | (exit $ac_status); } && |
| 13920 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13921 | { (case "(($ac_try" in |
| 13922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13923 | *) ac_try_echo=$ac_try;; |
| 13924 | esac |
| 13925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13926 | (eval "$ac_try") 2>&5 |
| 13927 | ac_status=$? |
| 13928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13929 | (exit $ac_status); }; } && |
| 13930 | { ac_try='test -s conftest$ac_exeext' |
| 13931 | { (case "(($ac_try" in |
| 13932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13933 | *) ac_try_echo=$ac_try;; |
| 13934 | esac |
| 13935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13936 | (eval "$ac_try") 2>&5 |
| 13937 | ac_status=$? |
| 13938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13939 | (exit $ac_status); }; }; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13940 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13941 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13942 | echo "$as_me: failed program was:" >&5 |
| 13943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13944 | |
| 13945 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13946 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13947 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13948 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13949 | conftest$ac_exeext conftest.$ac_ext |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13950 | LIBS=$ac_check_lib_save_LIBS |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13951 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13952 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 13953 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 13954 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13955 | cat >>confdefs.h <<_ACEOF |
| 13956 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 13957 | _ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13958 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13959 | LIBS="-lpthread $LIBS" |
| 13960 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13961 | fi |
| 13962 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13963 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 13964 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
| 13965 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 13966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13967 | else |
| 13968 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13969 | cat >conftest.$ac_ext <<_ACEOF |
| 13970 | /* confdefs.h. */ |
| 13971 | _ACEOF |
| 13972 | cat confdefs.h >>conftest.$ac_ext |
| 13973 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13974 | /* end confdefs.h. */ |
| 13975 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13976 | /* Override any GCC internal prototype to avoid an error. |
| 13977 | Use char because int might match the return type of a GCC |
| 13978 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13979 | #ifdef __cplusplus |
| 13980 | extern "C" |
| 13981 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13982 | char pthread_mutex_lock (); |
| 13983 | int |
| 13984 | main () |
| 13985 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13986 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13987 | ; |
| 13988 | return 0; |
| 13989 | } |
| 13990 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13991 | for ac_lib in '' pthread; do |
| 13992 | if test -z "$ac_lib"; then |
| 13993 | ac_res="none required" |
| 13994 | else |
| 13995 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13996 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13997 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13998 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13999 | if { (ac_try="$ac_link" |
| 14000 | case "(($ac_try" in |
| 14001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14002 | *) ac_try_echo=$ac_try;; |
| 14003 | esac |
| 14004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14005 | (eval "$ac_link") 2>conftest.er1 |
| 14006 | ac_status=$? |
| 14007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14008 | rm -f conftest.er1 |
| 14009 | cat conftest.err >&5 |
| 14010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14011 | (exit $ac_status); } && |
| 14012 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14013 | { (case "(($ac_try" in |
| 14014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14015 | *) ac_try_echo=$ac_try;; |
| 14016 | esac |
| 14017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14018 | (eval "$ac_try") 2>&5 |
| 14019 | ac_status=$? |
| 14020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14021 | (exit $ac_status); }; } && |
| 14022 | { ac_try='test -s conftest$ac_exeext' |
| 14023 | { (case "(($ac_try" in |
| 14024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14025 | *) ac_try_echo=$ac_try;; |
| 14026 | esac |
| 14027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14028 | (eval "$ac_try") 2>&5 |
| 14029 | ac_status=$? |
| 14030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14031 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14032 | ac_cv_search_pthread_mutex_lock=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14033 | else |
| 14034 | echo "$as_me: failed program was:" >&5 |
| 14035 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14036 | |
| 14037 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14038 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14039 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14040 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14041 | conftest$ac_exeext |
| 14042 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14043 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14044 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14045 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14046 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 14047 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14048 | else |
| 14049 | ac_cv_search_pthread_mutex_lock=no |
| 14050 | fi |
| 14051 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14052 | LIBS=$ac_func_search_save_LIBS |
| 14053 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14054 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 14055 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14056 | ac_res=$ac_cv_search_pthread_mutex_lock |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14057 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14058 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14059 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14060 | cat >>confdefs.h <<\_ACEOF |
| 14061 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 14062 | _ACEOF |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 14063 | |
| 14064 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14065 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14066 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 14067 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 14068 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 14069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14070 | else |
| 14071 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14072 | cat >conftest.$ac_ext <<_ACEOF |
| 14073 | /* confdefs.h. */ |
| 14074 | _ACEOF |
| 14075 | cat confdefs.h >>conftest.$ac_ext |
| 14076 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14077 | /* end confdefs.h. */ |
| 14078 | |
| 14079 | /* Override any GCC internal prototype to avoid an error. |
| 14080 | Use char because int might match the return type of a GCC |
| 14081 | builtin and then its argument prototype would still apply. */ |
| 14082 | #ifdef __cplusplus |
| 14083 | extern "C" |
| 14084 | #endif |
| 14085 | char pthread_rwlock_init (); |
| 14086 | int |
| 14087 | main () |
| 14088 | { |
| 14089 | return pthread_rwlock_init (); |
| 14090 | ; |
| 14091 | return 0; |
| 14092 | } |
| 14093 | _ACEOF |
| 14094 | for ac_lib in '' pthread; do |
| 14095 | if test -z "$ac_lib"; then |
| 14096 | ac_res="none required" |
| 14097 | else |
| 14098 | ac_res=-l$ac_lib |
| 14099 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14100 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14101 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14102 | if { (ac_try="$ac_link" |
| 14103 | case "(($ac_try" in |
| 14104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14105 | *) ac_try_echo=$ac_try;; |
| 14106 | esac |
| 14107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14108 | (eval "$ac_link") 2>conftest.er1 |
| 14109 | ac_status=$? |
| 14110 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14111 | rm -f conftest.er1 |
| 14112 | cat conftest.err >&5 |
| 14113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14114 | (exit $ac_status); } && |
| 14115 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14116 | { (case "(($ac_try" in |
| 14117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14118 | *) ac_try_echo=$ac_try;; |
| 14119 | esac |
| 14120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14121 | (eval "$ac_try") 2>&5 |
| 14122 | ac_status=$? |
| 14123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14124 | (exit $ac_status); }; } && |
| 14125 | { ac_try='test -s conftest$ac_exeext' |
| 14126 | { (case "(($ac_try" in |
| 14127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14128 | *) ac_try_echo=$ac_try;; |
| 14129 | esac |
| 14130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14131 | (eval "$ac_try") 2>&5 |
| 14132 | ac_status=$? |
| 14133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14134 | (exit $ac_status); }; }; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14135 | ac_cv_search_pthread_rwlock_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14136 | else |
| 14137 | echo "$as_me: failed program was:" >&5 |
| 14138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14139 | |
| 14140 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14141 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14142 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14143 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14144 | conftest$ac_exeext |
| 14145 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14146 | break |
| 14147 | fi |
| 14148 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14149 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 14150 | : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14151 | else |
| 14152 | ac_cv_search_pthread_rwlock_init=no |
| 14153 | fi |
| 14154 | rm conftest.$ac_ext |
| 14155 | LIBS=$ac_func_search_save_LIBS |
| 14156 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14157 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 14158 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14159 | ac_res=$ac_cv_search_pthread_rwlock_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14160 | if test "$ac_res" != no; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14161 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14162 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14163 | cat >>confdefs.h <<\_ACEOF |
| 14164 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 14165 | _ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14166 | |
| 14167 | fi |
| 14168 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14169 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 14170 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 14171 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 14172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14173 | else |
| 14174 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14175 | cat >conftest.$ac_ext <<_ACEOF |
| 14176 | /* confdefs.h. */ |
| 14177 | _ACEOF |
| 14178 | cat confdefs.h >>conftest.$ac_ext |
| 14179 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14180 | /* end confdefs.h. */ |
| 14181 | |
| 14182 | /* Override any GCC internal prototype to avoid an error. |
| 14183 | Use char because int might match the return type of a GCC |
| 14184 | builtin and then its argument prototype would still apply. */ |
| 14185 | #ifdef __cplusplus |
| 14186 | extern "C" |
| 14187 | #endif |
| 14188 | char pthread_getspecific (); |
| 14189 | int |
| 14190 | main () |
| 14191 | { |
| 14192 | return pthread_getspecific (); |
| 14193 | ; |
| 14194 | return 0; |
| 14195 | } |
| 14196 | _ACEOF |
| 14197 | for ac_lib in '' pthread; do |
| 14198 | if test -z "$ac_lib"; then |
| 14199 | ac_res="none required" |
| 14200 | else |
| 14201 | ac_res=-l$ac_lib |
| 14202 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14203 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14204 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14205 | if { (ac_try="$ac_link" |
| 14206 | case "(($ac_try" in |
| 14207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14208 | *) ac_try_echo=$ac_try;; |
| 14209 | esac |
| 14210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14211 | (eval "$ac_link") 2>conftest.er1 |
| 14212 | ac_status=$? |
| 14213 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14214 | rm -f conftest.er1 |
| 14215 | cat conftest.err >&5 |
| 14216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14217 | (exit $ac_status); } && |
| 14218 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14219 | { (case "(($ac_try" in |
| 14220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14221 | *) ac_try_echo=$ac_try;; |
| 14222 | esac |
| 14223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14224 | (eval "$ac_try") 2>&5 |
| 14225 | ac_status=$? |
| 14226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14227 | (exit $ac_status); }; } && |
| 14228 | { ac_try='test -s conftest$ac_exeext' |
| 14229 | { (case "(($ac_try" in |
| 14230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14231 | *) ac_try_echo=$ac_try;; |
| 14232 | esac |
| 14233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14234 | (eval "$ac_try") 2>&5 |
| 14235 | ac_status=$? |
| 14236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14237 | (exit $ac_status); }; }; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14238 | ac_cv_search_pthread_getspecific=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14239 | else |
| 14240 | echo "$as_me: failed program was:" >&5 |
| 14241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14242 | |
| 14243 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14244 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14245 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14246 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14247 | conftest$ac_exeext |
| 14248 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14249 | break |
| 14250 | fi |
| 14251 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14252 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 14253 | : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14254 | else |
| 14255 | ac_cv_search_pthread_getspecific=no |
| 14256 | fi |
| 14257 | rm conftest.$ac_ext |
| 14258 | LIBS=$ac_func_search_save_LIBS |
| 14259 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14260 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 14261 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14262 | ac_res=$ac_cv_search_pthread_getspecific |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14263 | if test "$ac_res" != no; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14264 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14265 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14266 | cat >>confdefs.h <<\_ACEOF |
| 14267 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 14268 | _ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14269 | |
| 14270 | fi |
| 14271 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 14272 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 14273 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14274 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14275 | # Check whether --with-udis86 was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14276 | if test "${with_udis86+set}" = set; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14277 | withval=$with_udis86; |
| 14278 | USE_UDIS86=1 |
| 14279 | |
| 14280 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 14281 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14282 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 14283 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14284 | |
| 14285 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 14286 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 14287 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 14288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14289 | else |
| 14290 | ac_check_lib_save_LIBS=$LIBS |
| 14291 | LIBS="-ludis86 $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14292 | cat >conftest.$ac_ext <<_ACEOF |
| 14293 | /* confdefs.h. */ |
| 14294 | _ACEOF |
| 14295 | cat confdefs.h >>conftest.$ac_ext |
| 14296 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14297 | /* end confdefs.h. */ |
| 14298 | |
| 14299 | /* Override any GCC internal prototype to avoid an error. |
| 14300 | Use char because int might match the return type of a GCC |
| 14301 | builtin and then its argument prototype would still apply. */ |
| 14302 | #ifdef __cplusplus |
| 14303 | extern "C" |
| 14304 | #endif |
| 14305 | char ud_init (); |
| 14306 | int |
| 14307 | main () |
| 14308 | { |
| 14309 | return ud_init (); |
| 14310 | ; |
| 14311 | return 0; |
| 14312 | } |
| 14313 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14314 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14315 | if { (ac_try="$ac_link" |
| 14316 | case "(($ac_try" in |
| 14317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14318 | *) ac_try_echo=$ac_try;; |
| 14319 | esac |
| 14320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14321 | (eval "$ac_link") 2>conftest.er1 |
| 14322 | ac_status=$? |
| 14323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14324 | rm -f conftest.er1 |
| 14325 | cat conftest.err >&5 |
| 14326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14327 | (exit $ac_status); } && |
| 14328 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14329 | { (case "(($ac_try" in |
| 14330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14331 | *) ac_try_echo=$ac_try;; |
| 14332 | esac |
| 14333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14334 | (eval "$ac_try") 2>&5 |
| 14335 | ac_status=$? |
| 14336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14337 | (exit $ac_status); }; } && |
| 14338 | { ac_try='test -s conftest$ac_exeext' |
| 14339 | { (case "(($ac_try" in |
| 14340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14341 | *) ac_try_echo=$ac_try;; |
| 14342 | esac |
| 14343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14344 | (eval "$ac_try") 2>&5 |
| 14345 | ac_status=$? |
| 14346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14347 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14348 | ac_cv_lib_udis86_ud_init=yes |
| 14349 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14350 | echo "$as_me: failed program was:" >&5 |
| 14351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14352 | |
| 14353 | ac_cv_lib_udis86_ud_init=no |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14354 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14355 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14356 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14357 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14358 | LIBS=$ac_check_lib_save_LIBS |
| 14359 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14360 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 14361 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 14362 | if test $ac_cv_lib_udis86_ud_init = yes; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14363 | cat >>confdefs.h <<_ACEOF |
| 14364 | #define HAVE_LIBUDIS86 1 |
| 14365 | _ACEOF |
| 14366 | |
| 14367 | LIBS="-ludis86 $LIBS" |
| 14368 | |
| 14369 | else |
| 14370 | |
| 14371 | echo "Error! You need to have libudis86 around." |
| 14372 | exit -1 |
| 14373 | |
| 14374 | fi |
| 14375 | |
| 14376 | |
| 14377 | else |
| 14378 | USE_UDIS86=0 |
| 14379 | |
| 14380 | fi |
| 14381 | |
| 14382 | |
| 14383 | cat >>confdefs.h <<_ACEOF |
| 14384 | #define USE_UDIS86 $USE_UDIS86 |
| 14385 | _ACEOF |
| 14386 | |
| 14387 | |
| 14388 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14389 | # Check whether --with-oprofile was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14390 | if test "${with_oprofile+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14391 | withval=$with_oprofile; |
| 14392 | USE_OPROFILE=1 |
| 14393 | |
| 14394 | case "$withval" in |
| 14395 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14396 | no) llvm_cv_oppath= |
| 14397 | USE_OPROFILE=0 |
| 14398 | ;; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14399 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 14400 | CPPFLAGS="-I${withval}/include";; |
| 14401 | esac |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14402 | if test -n "$llvm_cv_oppath" ; then |
| 14403 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14404 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
| 14405 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 14406 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14408 | else |
| 14409 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14410 | cat >conftest.$ac_ext <<_ACEOF |
| 14411 | /* confdefs.h. */ |
| 14412 | _ACEOF |
| 14413 | cat confdefs.h >>conftest.$ac_ext |
| 14414 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14415 | /* end confdefs.h. */ |
| 14416 | |
| 14417 | /* Override any GCC internal prototype to avoid an error. |
| 14418 | Use char because int might match the return type of a GCC |
| 14419 | builtin and then its argument prototype would still apply. */ |
| 14420 | #ifdef __cplusplus |
| 14421 | extern "C" |
| 14422 | #endif |
| 14423 | char bfd_init (); |
| 14424 | int |
| 14425 | main () |
| 14426 | { |
| 14427 | return bfd_init (); |
| 14428 | ; |
| 14429 | return 0; |
| 14430 | } |
| 14431 | _ACEOF |
| 14432 | for ac_lib in '' bfd; do |
| 14433 | if test -z "$ac_lib"; then |
| 14434 | ac_res="none required" |
| 14435 | else |
| 14436 | ac_res=-l$ac_lib |
| 14437 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14438 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14439 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14440 | if { (ac_try="$ac_link" |
| 14441 | case "(($ac_try" in |
| 14442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14443 | *) ac_try_echo=$ac_try;; |
| 14444 | esac |
| 14445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14446 | (eval "$ac_link") 2>conftest.er1 |
| 14447 | ac_status=$? |
| 14448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14449 | rm -f conftest.er1 |
| 14450 | cat conftest.err >&5 |
| 14451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14452 | (exit $ac_status); } && |
| 14453 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14454 | { (case "(($ac_try" in |
| 14455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14456 | *) ac_try_echo=$ac_try;; |
| 14457 | esac |
| 14458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14459 | (eval "$ac_try") 2>&5 |
| 14460 | ac_status=$? |
| 14461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14462 | (exit $ac_status); }; } && |
| 14463 | { ac_try='test -s conftest$ac_exeext' |
| 14464 | { (case "(($ac_try" in |
| 14465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14466 | *) ac_try_echo=$ac_try;; |
| 14467 | esac |
| 14468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14469 | (eval "$ac_try") 2>&5 |
| 14470 | ac_status=$? |
| 14471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14472 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14473 | ac_cv_search_bfd_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14474 | else |
| 14475 | echo "$as_me: failed program was:" >&5 |
| 14476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14477 | |
| 14478 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14479 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14480 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14481 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14482 | conftest$ac_exeext |
| 14483 | if test "${ac_cv_search_bfd_init+set}" = set; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14484 | break |
| 14485 | fi |
| 14486 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14487 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14488 | : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14489 | else |
| 14490 | ac_cv_search_bfd_init=no |
| 14491 | fi |
| 14492 | rm conftest.$ac_ext |
| 14493 | LIBS=$ac_func_search_save_LIBS |
| 14494 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14495 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 |
| 14496 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14497 | ac_res=$ac_cv_search_bfd_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14498 | if test "$ac_res" != no; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14499 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14500 | |
| 14501 | fi |
| 14502 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14503 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 14504 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 14505 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14507 | else |
| 14508 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14509 | cat >conftest.$ac_ext <<_ACEOF |
| 14510 | /* confdefs.h. */ |
| 14511 | _ACEOF |
| 14512 | cat confdefs.h >>conftest.$ac_ext |
| 14513 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14514 | /* end confdefs.h. */ |
| 14515 | |
| 14516 | /* Override any GCC internal prototype to avoid an error. |
| 14517 | Use char because int might match the return type of a GCC |
| 14518 | builtin and then its argument prototype would still apply. */ |
| 14519 | #ifdef __cplusplus |
| 14520 | extern "C" |
| 14521 | #endif |
| 14522 | char op_open_agent (); |
| 14523 | int |
| 14524 | main () |
| 14525 | { |
| 14526 | return op_open_agent (); |
| 14527 | ; |
| 14528 | return 0; |
| 14529 | } |
| 14530 | _ACEOF |
| 14531 | for ac_lib in '' opagent; do |
| 14532 | if test -z "$ac_lib"; then |
| 14533 | ac_res="none required" |
| 14534 | else |
| 14535 | ac_res=-l$ac_lib |
| 14536 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14537 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14538 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14539 | if { (ac_try="$ac_link" |
| 14540 | case "(($ac_try" in |
| 14541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14542 | *) ac_try_echo=$ac_try;; |
| 14543 | esac |
| 14544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14545 | (eval "$ac_link") 2>conftest.er1 |
| 14546 | ac_status=$? |
| 14547 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14548 | rm -f conftest.er1 |
| 14549 | cat conftest.err >&5 |
| 14550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14551 | (exit $ac_status); } && |
| 14552 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14553 | { (case "(($ac_try" in |
| 14554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14555 | *) ac_try_echo=$ac_try;; |
| 14556 | esac |
| 14557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14558 | (eval "$ac_try") 2>&5 |
| 14559 | ac_status=$? |
| 14560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14561 | (exit $ac_status); }; } && |
| 14562 | { ac_try='test -s conftest$ac_exeext' |
| 14563 | { (case "(($ac_try" in |
| 14564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14565 | *) ac_try_echo=$ac_try;; |
| 14566 | esac |
| 14567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14568 | (eval "$ac_try") 2>&5 |
| 14569 | ac_status=$? |
| 14570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14571 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14572 | ac_cv_search_op_open_agent=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14573 | else |
| 14574 | echo "$as_me: failed program was:" >&5 |
| 14575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14576 | |
| 14577 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14578 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14579 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14580 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14581 | conftest$ac_exeext |
| 14582 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14583 | break |
| 14584 | fi |
| 14585 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14586 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14587 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14588 | else |
| 14589 | ac_cv_search_op_open_agent=no |
| 14590 | fi |
| 14591 | rm conftest.$ac_ext |
| 14592 | LIBS=$ac_func_search_save_LIBS |
| 14593 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14594 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 14595 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14596 | ac_res=$ac_cv_search_op_open_agent |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14597 | if test "$ac_res" != no; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14598 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14599 | |
| 14600 | else |
| 14601 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14602 | echo "Error! You need to have libopagent around." |
| 14603 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14604 | |
| 14605 | fi |
| 14606 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14607 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14608 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14609 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14610 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14612 | fi |
| 14613 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14614 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14615 | else |
| 14616 | # Is the header compilable? |
| 14617 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 14618 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 14619 | cat >conftest.$ac_ext <<_ACEOF |
| 14620 | /* confdefs.h. */ |
| 14621 | _ACEOF |
| 14622 | cat confdefs.h >>conftest.$ac_ext |
| 14623 | cat >>conftest.$ac_ext <<_ACEOF |
| 14624 | /* end confdefs.h. */ |
| 14625 | $ac_includes_default |
| 14626 | #include <opagent.h> |
| 14627 | _ACEOF |
| 14628 | rm -f conftest.$ac_objext |
| 14629 | if { (ac_try="$ac_compile" |
| 14630 | case "(($ac_try" in |
| 14631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14632 | *) ac_try_echo=$ac_try;; |
| 14633 | esac |
| 14634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14635 | (eval "$ac_compile") 2>conftest.er1 |
| 14636 | ac_status=$? |
| 14637 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14638 | rm -f conftest.er1 |
| 14639 | cat conftest.err >&5 |
| 14640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14641 | (exit $ac_status); } && |
| 14642 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14643 | { (case "(($ac_try" in |
| 14644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14645 | *) ac_try_echo=$ac_try;; |
| 14646 | esac |
| 14647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14648 | (eval "$ac_try") 2>&5 |
| 14649 | ac_status=$? |
| 14650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14651 | (exit $ac_status); }; } && |
| 14652 | { ac_try='test -s conftest.$ac_objext' |
| 14653 | { (case "(($ac_try" in |
| 14654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14655 | *) ac_try_echo=$ac_try;; |
| 14656 | esac |
| 14657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14658 | (eval "$ac_try") 2>&5 |
| 14659 | ac_status=$? |
| 14660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14661 | (exit $ac_status); }; }; then |
| 14662 | ac_header_compiler=yes |
| 14663 | else |
| 14664 | echo "$as_me: failed program was:" >&5 |
| 14665 | sed 's/^/| /' conftest.$ac_ext >&5 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14666 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14667 | ac_header_compiler=no |
| 14668 | fi |
| 14669 | |
| 14670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14671 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14672 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14673 | |
| 14674 | # Is the header present? |
| 14675 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 14676 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 14677 | cat >conftest.$ac_ext <<_ACEOF |
| 14678 | /* confdefs.h. */ |
| 14679 | _ACEOF |
| 14680 | cat confdefs.h >>conftest.$ac_ext |
| 14681 | cat >>conftest.$ac_ext <<_ACEOF |
| 14682 | /* end confdefs.h. */ |
| 14683 | #include <opagent.h> |
| 14684 | _ACEOF |
| 14685 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14686 | case "(($ac_try" in |
| 14687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14688 | *) ac_try_echo=$ac_try;; |
| 14689 | esac |
| 14690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14691 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14692 | ac_status=$? |
| 14693 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14694 | rm -f conftest.er1 |
| 14695 | cat conftest.err >&5 |
| 14696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14697 | (exit $ac_status); } >/dev/null; then |
| 14698 | if test -s conftest.err; then |
| 14699 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14700 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14701 | else |
| 14702 | ac_cpp_err= |
| 14703 | fi |
| 14704 | else |
| 14705 | ac_cpp_err=yes |
| 14706 | fi |
| 14707 | if test -z "$ac_cpp_err"; then |
| 14708 | ac_header_preproc=yes |
| 14709 | else |
| 14710 | echo "$as_me: failed program was:" >&5 |
| 14711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14712 | |
| 14713 | ac_header_preproc=no |
| 14714 | fi |
| 14715 | |
| 14716 | rm -f conftest.err conftest.$ac_ext |
| 14717 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14718 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14719 | |
| 14720 | # So? What about this header? |
| 14721 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14722 | yes:no: ) |
| 14723 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14724 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14725 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 14726 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 14727 | ac_header_preproc=yes |
| 14728 | ;; |
| 14729 | no:yes:* ) |
| 14730 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 14731 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 14732 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 14733 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 14734 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 14735 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 14736 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14737 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14738 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 14739 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 14740 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 14741 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 14742 | ( cat <<\_ASBOX |
| 14743 | ## ----------------------------------- ## |
| 14744 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 14745 | ## ----------------------------------- ## |
| 14746 | _ASBOX |
| 14747 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14748 | ;; |
| 14749 | esac |
| 14750 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14751 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14752 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14754 | else |
| 14755 | ac_cv_header_opagent_h=$ac_header_preproc |
| 14756 | fi |
| 14757 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14758 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14759 | |
| 14760 | fi |
| 14761 | if test $ac_cv_header_opagent_h = yes; then |
| 14762 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14763 | else |
| 14764 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14765 | echo "Error! You need to have opagent.h around." |
| 14766 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14767 | |
| 14768 | fi |
| 14769 | |
| 14770 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14771 | fi |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14772 | |
| 14773 | else |
| 14774 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14775 | USE_OPROFILE=0 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14776 | |
| 14777 | |
| 14778 | fi |
| 14779 | |
| 14780 | |
| 14781 | cat >>confdefs.h <<_ACEOF |
| 14782 | #define USE_OPROFILE $USE_OPROFILE |
| 14783 | _ACEOF |
| 14784 | |
| 14785 | |
| 14786 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14787 | |
| 14788 | |
| 14789 | |
| 14790 | |
| 14791 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14792 | ac_header_dirent=no |
| 14793 | 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] | 14794 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 14795 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 14796 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 14797 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14799 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14800 | cat >conftest.$ac_ext <<_ACEOF |
| 14801 | /* confdefs.h. */ |
| 14802 | _ACEOF |
| 14803 | cat confdefs.h >>conftest.$ac_ext |
| 14804 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14805 | /* end confdefs.h. */ |
| 14806 | #include <sys/types.h> |
| 14807 | #include <$ac_hdr> |
| 14808 | |
| 14809 | int |
| 14810 | main () |
| 14811 | { |
| 14812 | if ((DIR *) 0) |
| 14813 | return 0; |
| 14814 | ; |
| 14815 | return 0; |
| 14816 | } |
| 14817 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14818 | rm -f conftest.$ac_objext |
| 14819 | if { (ac_try="$ac_compile" |
| 14820 | case "(($ac_try" in |
| 14821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14822 | *) ac_try_echo=$ac_try;; |
| 14823 | esac |
| 14824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14825 | (eval "$ac_compile") 2>conftest.er1 |
| 14826 | ac_status=$? |
| 14827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14828 | rm -f conftest.er1 |
| 14829 | cat conftest.err >&5 |
| 14830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14831 | (exit $ac_status); } && |
| 14832 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14833 | { (case "(($ac_try" in |
| 14834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14835 | *) ac_try_echo=$ac_try;; |
| 14836 | esac |
| 14837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14838 | (eval "$ac_try") 2>&5 |
| 14839 | ac_status=$? |
| 14840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14841 | (exit $ac_status); }; } && |
| 14842 | { ac_try='test -s conftest.$ac_objext' |
| 14843 | { (case "(($ac_try" in |
| 14844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14845 | *) ac_try_echo=$ac_try;; |
| 14846 | esac |
| 14847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14848 | (eval "$ac_try") 2>&5 |
| 14849 | ac_status=$? |
| 14850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14851 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14852 | eval "$as_ac_Header=yes" |
| 14853 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14854 | echo "$as_me: failed program was:" >&5 |
| 14855 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14856 | |
| 14857 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14858 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14859 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14861 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14862 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14863 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14864 | echo "${ECHO_T}$ac_res" >&6; } |
| 14865 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14866 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14867 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14868 | _ACEOF |
| 14869 | |
| 14870 | ac_header_dirent=$ac_hdr; break |
| 14871 | fi |
| 14872 | |
| 14873 | done |
| 14874 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 14875 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14876 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14877 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14878 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14880 | else |
| 14881 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14882 | cat >conftest.$ac_ext <<_ACEOF |
| 14883 | /* confdefs.h. */ |
| 14884 | _ACEOF |
| 14885 | cat confdefs.h >>conftest.$ac_ext |
| 14886 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14887 | /* end confdefs.h. */ |
| 14888 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14889 | /* Override any GCC internal prototype to avoid an error. |
| 14890 | Use char because int might match the return type of a GCC |
| 14891 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14892 | #ifdef __cplusplus |
| 14893 | extern "C" |
| 14894 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14895 | char opendir (); |
| 14896 | int |
| 14897 | main () |
| 14898 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14899 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14900 | ; |
| 14901 | return 0; |
| 14902 | } |
| 14903 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14904 | for ac_lib in '' dir; do |
| 14905 | if test -z "$ac_lib"; then |
| 14906 | ac_res="none required" |
| 14907 | else |
| 14908 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14909 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14910 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14911 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14912 | if { (ac_try="$ac_link" |
| 14913 | case "(($ac_try" in |
| 14914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14915 | *) ac_try_echo=$ac_try;; |
| 14916 | esac |
| 14917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14918 | (eval "$ac_link") 2>conftest.er1 |
| 14919 | ac_status=$? |
| 14920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14921 | rm -f conftest.er1 |
| 14922 | cat conftest.err >&5 |
| 14923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14924 | (exit $ac_status); } && |
| 14925 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14926 | { (case "(($ac_try" in |
| 14927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14928 | *) ac_try_echo=$ac_try;; |
| 14929 | esac |
| 14930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14931 | (eval "$ac_try") 2>&5 |
| 14932 | ac_status=$? |
| 14933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14934 | (exit $ac_status); }; } && |
| 14935 | { ac_try='test -s conftest$ac_exeext' |
| 14936 | { (case "(($ac_try" in |
| 14937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14938 | *) ac_try_echo=$ac_try;; |
| 14939 | esac |
| 14940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14941 | (eval "$ac_try") 2>&5 |
| 14942 | ac_status=$? |
| 14943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14944 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14945 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14946 | else |
| 14947 | echo "$as_me: failed program was:" >&5 |
| 14948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14949 | |
| 14950 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14951 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14952 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14953 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14954 | conftest$ac_exeext |
| 14955 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14956 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14957 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14958 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14959 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14960 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14961 | else |
| 14962 | ac_cv_search_opendir=no |
| 14963 | fi |
| 14964 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14965 | LIBS=$ac_func_search_save_LIBS |
| 14966 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14967 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 14968 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14969 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14970 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14971 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14972 | |
| 14973 | fi |
| 14974 | |
| 14975 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14976 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14977 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14978 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14980 | else |
| 14981 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14982 | cat >conftest.$ac_ext <<_ACEOF |
| 14983 | /* confdefs.h. */ |
| 14984 | _ACEOF |
| 14985 | cat confdefs.h >>conftest.$ac_ext |
| 14986 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14987 | /* end confdefs.h. */ |
| 14988 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14989 | /* Override any GCC internal prototype to avoid an error. |
| 14990 | Use char because int might match the return type of a GCC |
| 14991 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14992 | #ifdef __cplusplus |
| 14993 | extern "C" |
| 14994 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14995 | char opendir (); |
| 14996 | int |
| 14997 | main () |
| 14998 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14999 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15000 | ; |
| 15001 | return 0; |
| 15002 | } |
| 15003 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15004 | for ac_lib in '' x; do |
| 15005 | if test -z "$ac_lib"; then |
| 15006 | ac_res="none required" |
| 15007 | else |
| 15008 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15009 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15010 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15011 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15012 | if { (ac_try="$ac_link" |
| 15013 | case "(($ac_try" in |
| 15014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15015 | *) ac_try_echo=$ac_try;; |
| 15016 | esac |
| 15017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15018 | (eval "$ac_link") 2>conftest.er1 |
| 15019 | ac_status=$? |
| 15020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15021 | rm -f conftest.er1 |
| 15022 | cat conftest.err >&5 |
| 15023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15024 | (exit $ac_status); } && |
| 15025 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15026 | { (case "(($ac_try" in |
| 15027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15028 | *) ac_try_echo=$ac_try;; |
| 15029 | esac |
| 15030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15031 | (eval "$ac_try") 2>&5 |
| 15032 | ac_status=$? |
| 15033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15034 | (exit $ac_status); }; } && |
| 15035 | { ac_try='test -s conftest$ac_exeext' |
| 15036 | { (case "(($ac_try" in |
| 15037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15038 | *) ac_try_echo=$ac_try;; |
| 15039 | esac |
| 15040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15041 | (eval "$ac_try") 2>&5 |
| 15042 | ac_status=$? |
| 15043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15044 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15045 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15046 | else |
| 15047 | echo "$as_me: failed program was:" >&5 |
| 15048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15049 | |
| 15050 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15051 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15052 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15053 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15054 | conftest$ac_exeext |
| 15055 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15056 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15057 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15058 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15059 | if test "${ac_cv_search_opendir+set}" = set; then |
| 15060 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15061 | else |
| 15062 | ac_cv_search_opendir=no |
| 15063 | fi |
| 15064 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15065 | LIBS=$ac_func_search_save_LIBS |
| 15066 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15067 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 15068 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15069 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15070 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15071 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15072 | |
| 15073 | fi |
| 15074 | |
| 15075 | fi |
| 15076 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15077 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 15078 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
| 15079 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 15080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15081 | else |
| 15082 | ac_ext=c |
| 15083 | ac_cpp='$CPP $CPPFLAGS' |
| 15084 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15085 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15086 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15087 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15088 | cat >conftest.$ac_ext <<_ACEOF |
| 15089 | /* confdefs.h. */ |
| 15090 | _ACEOF |
| 15091 | cat confdefs.h >>conftest.$ac_ext |
| 15092 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15093 | /* end confdefs.h. */ |
| 15094 | #include <sys/mman.h> |
| 15095 | #include <unistd.h> |
| 15096 | #include <fcntl.h> |
| 15097 | int |
| 15098 | main () |
| 15099 | { |
| 15100 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 15101 | ; |
| 15102 | return 0; |
| 15103 | } |
| 15104 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15105 | rm -f conftest.$ac_objext |
| 15106 | if { (ac_try="$ac_compile" |
| 15107 | case "(($ac_try" in |
| 15108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15109 | *) ac_try_echo=$ac_try;; |
| 15110 | esac |
| 15111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15112 | (eval "$ac_compile") 2>conftest.er1 |
| 15113 | ac_status=$? |
| 15114 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15115 | rm -f conftest.er1 |
| 15116 | cat conftest.err >&5 |
| 15117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15118 | (exit $ac_status); } && |
| 15119 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15120 | { (case "(($ac_try" in |
| 15121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15122 | *) ac_try_echo=$ac_try;; |
| 15123 | esac |
| 15124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15125 | (eval "$ac_try") 2>&5 |
| 15126 | ac_status=$? |
| 15127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15128 | (exit $ac_status); }; } && |
| 15129 | { ac_try='test -s conftest.$ac_objext' |
| 15130 | { (case "(($ac_try" in |
| 15131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15132 | *) ac_try_echo=$ac_try;; |
| 15133 | esac |
| 15134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15135 | (eval "$ac_try") 2>&5 |
| 15136 | ac_status=$? |
| 15137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15138 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15139 | ac_cv_header_mmap_anon=yes |
| 15140 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15141 | echo "$as_me: failed program was:" >&5 |
| 15142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15143 | |
| 15144 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15145 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15146 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15148 | ac_ext=c |
| 15149 | ac_cpp='$CPP $CPPFLAGS' |
| 15150 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15151 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15152 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15153 | |
| 15154 | |
| 15155 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15156 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 15157 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15158 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 15159 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15160 | cat >>confdefs.h <<\_ACEOF |
| 15161 | #define HAVE_MMAP_ANONYMOUS 1 |
| 15162 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15163 | |
| 15164 | fi |
| 15165 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15166 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 15167 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
| 15168 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 15169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15170 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15171 | cat >conftest.$ac_ext <<_ACEOF |
| 15172 | /* confdefs.h. */ |
| 15173 | _ACEOF |
| 15174 | cat confdefs.h >>conftest.$ac_ext |
| 15175 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15176 | /* end confdefs.h. */ |
| 15177 | #include <sys/types.h> |
| 15178 | #include <sys/stat.h> |
| 15179 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15180 | #if defined S_ISBLK && defined S_IFDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15181 | # if S_ISBLK (S_IFDIR) |
| 15182 | You lose. |
| 15183 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15184 | #endif |
| 15185 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15186 | #if defined S_ISBLK && defined S_IFCHR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15187 | # if S_ISBLK (S_IFCHR) |
| 15188 | You lose. |
| 15189 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15190 | #endif |
| 15191 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15192 | #if defined S_ISLNK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15193 | # if S_ISLNK (S_IFREG) |
| 15194 | You lose. |
| 15195 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15196 | #endif |
| 15197 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15198 | #if defined S_ISSOCK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15199 | # if S_ISSOCK (S_IFREG) |
| 15200 | You lose. |
| 15201 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15202 | #endif |
| 15203 | |
| 15204 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15205 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15206 | $EGREP "You lose" >/dev/null 2>&1; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 15207 | ac_cv_header_stat_broken=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15208 | else |
| 15209 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 15210 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15211 | rm -f conftest* |
| 15212 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15213 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15214 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 15215 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15216 | if test $ac_cv_header_stat_broken = yes; then |
| 15217 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15218 | cat >>confdefs.h <<\_ACEOF |
| 15219 | #define STAT_MACROS_BROKEN 1 |
| 15220 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15221 | |
| 15222 | fi |
| 15223 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15224 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 15225 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 15226 | if test "${ac_cv_header_stdc+set}" = set; then |
| 15227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15228 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15229 | cat >conftest.$ac_ext <<_ACEOF |
| 15230 | /* confdefs.h. */ |
| 15231 | _ACEOF |
| 15232 | cat confdefs.h >>conftest.$ac_ext |
| 15233 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15234 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15235 | #include <stdlib.h> |
| 15236 | #include <stdarg.h> |
| 15237 | #include <string.h> |
| 15238 | #include <float.h> |
| 15239 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15240 | int |
| 15241 | main () |
| 15242 | { |
| 15243 | |
| 15244 | ; |
| 15245 | return 0; |
| 15246 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15247 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15248 | rm -f conftest.$ac_objext |
| 15249 | if { (ac_try="$ac_compile" |
| 15250 | case "(($ac_try" in |
| 15251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15252 | *) ac_try_echo=$ac_try;; |
| 15253 | esac |
| 15254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15255 | (eval "$ac_compile") 2>conftest.er1 |
| 15256 | ac_status=$? |
| 15257 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15258 | rm -f conftest.er1 |
| 15259 | cat conftest.err >&5 |
| 15260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15261 | (exit $ac_status); } && |
| 15262 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15263 | { (case "(($ac_try" in |
| 15264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15265 | *) ac_try_echo=$ac_try;; |
| 15266 | esac |
| 15267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15268 | (eval "$ac_try") 2>&5 |
| 15269 | ac_status=$? |
| 15270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15271 | (exit $ac_status); }; } && |
| 15272 | { ac_try='test -s conftest.$ac_objext' |
| 15273 | { (case "(($ac_try" in |
| 15274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15275 | *) ac_try_echo=$ac_try;; |
| 15276 | esac |
| 15277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15278 | (eval "$ac_try") 2>&5 |
| 15279 | ac_status=$? |
| 15280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15281 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15282 | ac_cv_header_stdc=yes |
| 15283 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15284 | echo "$as_me: failed program was:" >&5 |
| 15285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15286 | |
| 15287 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15288 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15289 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15291 | |
| 15292 | if test $ac_cv_header_stdc = yes; then |
| 15293 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15294 | cat >conftest.$ac_ext <<_ACEOF |
| 15295 | /* confdefs.h. */ |
| 15296 | _ACEOF |
| 15297 | cat confdefs.h >>conftest.$ac_ext |
| 15298 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15299 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15300 | #include <string.h> |
| 15301 | |
| 15302 | _ACEOF |
| 15303 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15304 | $EGREP "memchr" >/dev/null 2>&1; then |
| 15305 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15306 | else |
| 15307 | ac_cv_header_stdc=no |
| 15308 | fi |
| 15309 | rm -f conftest* |
| 15310 | |
| 15311 | fi |
| 15312 | |
| 15313 | if test $ac_cv_header_stdc = yes; then |
| 15314 | # 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] | 15315 | cat >conftest.$ac_ext <<_ACEOF |
| 15316 | /* confdefs.h. */ |
| 15317 | _ACEOF |
| 15318 | cat confdefs.h >>conftest.$ac_ext |
| 15319 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15320 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15321 | #include <stdlib.h> |
| 15322 | |
| 15323 | _ACEOF |
| 15324 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15325 | $EGREP "free" >/dev/null 2>&1; then |
| 15326 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15327 | else |
| 15328 | ac_cv_header_stdc=no |
| 15329 | fi |
| 15330 | rm -f conftest* |
| 15331 | |
| 15332 | fi |
| 15333 | |
| 15334 | if test $ac_cv_header_stdc = yes; then |
| 15335 | # /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] | 15336 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15337 | : |
| 15338 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15339 | cat >conftest.$ac_ext <<_ACEOF |
| 15340 | /* confdefs.h. */ |
| 15341 | _ACEOF |
| 15342 | cat confdefs.h >>conftest.$ac_ext |
| 15343 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15344 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15345 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15346 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15347 | #if ((' ' & 0x0FF) == 0x020) |
| 15348 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 15349 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 15350 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15351 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15352 | (('a' <= (c) && (c) <= 'i') \ |
| 15353 | || ('j' <= (c) && (c) <= 'r') \ |
| 15354 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15355 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 15356 | #endif |
| 15357 | |
| 15358 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 15359 | int |
| 15360 | main () |
| 15361 | { |
| 15362 | int i; |
| 15363 | for (i = 0; i < 256; i++) |
| 15364 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15365 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15366 | return 2; |
| 15367 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15368 | } |
| 15369 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15370 | rm -f conftest$ac_exeext |
| 15371 | if { (ac_try="$ac_link" |
| 15372 | case "(($ac_try" in |
| 15373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15374 | *) ac_try_echo=$ac_try;; |
| 15375 | esac |
| 15376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15377 | (eval "$ac_link") 2>&5 |
| 15378 | ac_status=$? |
| 15379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15380 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15381 | { (case "(($ac_try" in |
| 15382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15383 | *) ac_try_echo=$ac_try;; |
| 15384 | esac |
| 15385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15386 | (eval "$ac_try") 2>&5 |
| 15387 | ac_status=$? |
| 15388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15389 | (exit $ac_status); }; }; then |
| 15390 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15391 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15392 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15393 | echo "$as_me: failed program was:" >&5 |
| 15394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15395 | |
| 15396 | ( exit $ac_status ) |
| 15397 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15398 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15399 | 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] | 15400 | fi |
| 15401 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15402 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15403 | fi |
| 15404 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15405 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 15406 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15407 | if test $ac_cv_header_stdc = yes; then |
| 15408 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15409 | cat >>confdefs.h <<\_ACEOF |
| 15410 | #define STDC_HEADERS 1 |
| 15411 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15412 | |
| 15413 | fi |
| 15414 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15415 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 15416 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
| 15417 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 15418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15419 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15420 | cat >conftest.$ac_ext <<_ACEOF |
| 15421 | /* confdefs.h. */ |
| 15422 | _ACEOF |
| 15423 | cat confdefs.h >>conftest.$ac_ext |
| 15424 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15425 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15426 | #include <sys/types.h> |
| 15427 | #include <sys/wait.h> |
| 15428 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15429 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15430 | #endif |
| 15431 | #ifndef WIFEXITED |
| 15432 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 15433 | #endif |
| 15434 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15435 | int |
| 15436 | main () |
| 15437 | { |
| 15438 | int s; |
| 15439 | wait (&s); |
| 15440 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 15441 | ; |
| 15442 | return 0; |
| 15443 | } |
| 15444 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15445 | rm -f conftest.$ac_objext |
| 15446 | if { (ac_try="$ac_compile" |
| 15447 | case "(($ac_try" in |
| 15448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15449 | *) ac_try_echo=$ac_try;; |
| 15450 | esac |
| 15451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15452 | (eval "$ac_compile") 2>conftest.er1 |
| 15453 | ac_status=$? |
| 15454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15455 | rm -f conftest.er1 |
| 15456 | cat conftest.err >&5 |
| 15457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15458 | (exit $ac_status); } && |
| 15459 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15460 | { (case "(($ac_try" in |
| 15461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15462 | *) ac_try_echo=$ac_try;; |
| 15463 | esac |
| 15464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15465 | (eval "$ac_try") 2>&5 |
| 15466 | ac_status=$? |
| 15467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15468 | (exit $ac_status); }; } && |
| 15469 | { ac_try='test -s conftest.$ac_objext' |
| 15470 | { (case "(($ac_try" in |
| 15471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15472 | *) ac_try_echo=$ac_try;; |
| 15473 | esac |
| 15474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15475 | (eval "$ac_try") 2>&5 |
| 15476 | ac_status=$? |
| 15477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15478 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15479 | ac_cv_header_sys_wait_h=yes |
| 15480 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15481 | echo "$as_me: failed program was:" >&5 |
| 15482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15483 | |
| 15484 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15485 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15486 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15488 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15489 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 15490 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15491 | if test $ac_cv_header_sys_wait_h = yes; then |
| 15492 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15493 | cat >>confdefs.h <<\_ACEOF |
| 15494 | #define HAVE_SYS_WAIT_H 1 |
| 15495 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15496 | |
| 15497 | fi |
| 15498 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15499 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15500 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
| 15501 | if test "${ac_cv_header_time+set}" = set; then |
| 15502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15503 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15504 | cat >conftest.$ac_ext <<_ACEOF |
| 15505 | /* confdefs.h. */ |
| 15506 | _ACEOF |
| 15507 | cat confdefs.h >>conftest.$ac_ext |
| 15508 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15509 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15510 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15511 | #include <sys/time.h> |
| 15512 | #include <time.h> |
| 15513 | |
| 15514 | int |
| 15515 | main () |
| 15516 | { |
| 15517 | if ((struct tm *) 0) |
| 15518 | return 0; |
| 15519 | ; |
| 15520 | return 0; |
| 15521 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15522 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15523 | rm -f conftest.$ac_objext |
| 15524 | if { (ac_try="$ac_compile" |
| 15525 | case "(($ac_try" in |
| 15526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15527 | *) ac_try_echo=$ac_try;; |
| 15528 | esac |
| 15529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15530 | (eval "$ac_compile") 2>conftest.er1 |
| 15531 | ac_status=$? |
| 15532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15533 | rm -f conftest.er1 |
| 15534 | cat conftest.err >&5 |
| 15535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15536 | (exit $ac_status); } && |
| 15537 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15538 | { (case "(($ac_try" in |
| 15539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15540 | *) ac_try_echo=$ac_try;; |
| 15541 | esac |
| 15542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15543 | (eval "$ac_try") 2>&5 |
| 15544 | ac_status=$? |
| 15545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15546 | (exit $ac_status); }; } && |
| 15547 | { ac_try='test -s conftest.$ac_objext' |
| 15548 | { (case "(($ac_try" in |
| 15549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15550 | *) ac_try_echo=$ac_try;; |
| 15551 | esac |
| 15552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15553 | (eval "$ac_try") 2>&5 |
| 15554 | ac_status=$? |
| 15555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15556 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15557 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15558 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15559 | echo "$as_me: failed program was:" >&5 |
| 15560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15561 | |
| 15562 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15563 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15564 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15566 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15567 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15568 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15569 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15570 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15571 | cat >>confdefs.h <<\_ACEOF |
| 15572 | #define TIME_WITH_SYS_TIME 1 |
| 15573 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15574 | |
| 15575 | fi |
| 15576 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15577 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15578 | |
| 15579 | |
| 15580 | |
| 15581 | |
| 15582 | |
| 15583 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15584 | 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] | 15585 | do |
| 15586 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15587 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15588 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15589 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15590 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15592 | fi |
| 15593 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15594 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15595 | echo "${ECHO_T}$ac_res" >&6; } |
| 15596 | else |
| 15597 | # Is the header compilable? |
| 15598 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15599 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15600 | cat >conftest.$ac_ext <<_ACEOF |
| 15601 | /* confdefs.h. */ |
| 15602 | _ACEOF |
| 15603 | cat confdefs.h >>conftest.$ac_ext |
| 15604 | cat >>conftest.$ac_ext <<_ACEOF |
| 15605 | /* end confdefs.h. */ |
| 15606 | $ac_includes_default |
| 15607 | #include <$ac_header> |
| 15608 | _ACEOF |
| 15609 | rm -f conftest.$ac_objext |
| 15610 | if { (ac_try="$ac_compile" |
| 15611 | case "(($ac_try" in |
| 15612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15613 | *) ac_try_echo=$ac_try;; |
| 15614 | esac |
| 15615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15616 | (eval "$ac_compile") 2>conftest.er1 |
| 15617 | ac_status=$? |
| 15618 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15619 | rm -f conftest.er1 |
| 15620 | cat conftest.err >&5 |
| 15621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15622 | (exit $ac_status); } && |
| 15623 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15624 | { (case "(($ac_try" in |
| 15625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15626 | *) ac_try_echo=$ac_try;; |
| 15627 | esac |
| 15628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15629 | (eval "$ac_try") 2>&5 |
| 15630 | ac_status=$? |
| 15631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15632 | (exit $ac_status); }; } && |
| 15633 | { ac_try='test -s conftest.$ac_objext' |
| 15634 | { (case "(($ac_try" in |
| 15635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15636 | *) ac_try_echo=$ac_try;; |
| 15637 | esac |
| 15638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15639 | (eval "$ac_try") 2>&5 |
| 15640 | ac_status=$? |
| 15641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15642 | (exit $ac_status); }; }; then |
| 15643 | ac_header_compiler=yes |
| 15644 | else |
| 15645 | echo "$as_me: failed program was:" >&5 |
| 15646 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15647 | |
| 15648 | ac_header_compiler=no |
| 15649 | fi |
| 15650 | |
| 15651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15652 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15653 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15654 | |
| 15655 | # Is the header present? |
| 15656 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15657 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15658 | cat >conftest.$ac_ext <<_ACEOF |
| 15659 | /* confdefs.h. */ |
| 15660 | _ACEOF |
| 15661 | cat confdefs.h >>conftest.$ac_ext |
| 15662 | cat >>conftest.$ac_ext <<_ACEOF |
| 15663 | /* end confdefs.h. */ |
| 15664 | #include <$ac_header> |
| 15665 | _ACEOF |
| 15666 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15667 | case "(($ac_try" in |
| 15668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15669 | *) ac_try_echo=$ac_try;; |
| 15670 | esac |
| 15671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15672 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15673 | ac_status=$? |
| 15674 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15675 | rm -f conftest.er1 |
| 15676 | cat conftest.err >&5 |
| 15677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15678 | (exit $ac_status); } >/dev/null; then |
| 15679 | if test -s conftest.err; then |
| 15680 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15681 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15682 | else |
| 15683 | ac_cpp_err= |
| 15684 | fi |
| 15685 | else |
| 15686 | ac_cpp_err=yes |
| 15687 | fi |
| 15688 | if test -z "$ac_cpp_err"; then |
| 15689 | ac_header_preproc=yes |
| 15690 | else |
| 15691 | echo "$as_me: failed program was:" >&5 |
| 15692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15693 | |
| 15694 | ac_header_preproc=no |
| 15695 | fi |
| 15696 | |
| 15697 | rm -f conftest.err conftest.$ac_ext |
| 15698 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15699 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15700 | |
| 15701 | # So? What about this header? |
| 15702 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15703 | yes:no: ) |
| 15704 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15705 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15706 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15707 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15708 | ac_header_preproc=yes |
| 15709 | ;; |
| 15710 | no:yes:* ) |
| 15711 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15712 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15713 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15714 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15715 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15716 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15717 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15718 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15719 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15720 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15721 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15722 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15723 | ( cat <<\_ASBOX |
| 15724 | ## ----------------------------------- ## |
| 15725 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15726 | ## ----------------------------------- ## |
| 15727 | _ASBOX |
| 15728 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15729 | ;; |
| 15730 | esac |
| 15731 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15732 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15733 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15735 | else |
| 15736 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15737 | fi |
| 15738 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15739 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15740 | echo "${ECHO_T}$ac_res" >&6; } |
| 15741 | |
| 15742 | fi |
| 15743 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15744 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15745 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15746 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15747 | |
| 15748 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15749 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15750 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15751 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15752 | |
| 15753 | |
| 15754 | |
| 15755 | |
| 15756 | |
| 15757 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15758 | 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] | 15759 | do |
| 15760 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15761 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15762 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15763 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15764 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15766 | fi |
| 15767 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15768 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15769 | echo "${ECHO_T}$ac_res" >&6; } |
| 15770 | else |
| 15771 | # Is the header compilable? |
| 15772 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15773 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15774 | cat >conftest.$ac_ext <<_ACEOF |
| 15775 | /* confdefs.h. */ |
| 15776 | _ACEOF |
| 15777 | cat confdefs.h >>conftest.$ac_ext |
| 15778 | cat >>conftest.$ac_ext <<_ACEOF |
| 15779 | /* end confdefs.h. */ |
| 15780 | $ac_includes_default |
| 15781 | #include <$ac_header> |
| 15782 | _ACEOF |
| 15783 | rm -f conftest.$ac_objext |
| 15784 | if { (ac_try="$ac_compile" |
| 15785 | case "(($ac_try" in |
| 15786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15787 | *) ac_try_echo=$ac_try;; |
| 15788 | esac |
| 15789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15790 | (eval "$ac_compile") 2>conftest.er1 |
| 15791 | ac_status=$? |
| 15792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15793 | rm -f conftest.er1 |
| 15794 | cat conftest.err >&5 |
| 15795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15796 | (exit $ac_status); } && |
| 15797 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15798 | { (case "(($ac_try" in |
| 15799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15800 | *) ac_try_echo=$ac_try;; |
| 15801 | esac |
| 15802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15803 | (eval "$ac_try") 2>&5 |
| 15804 | ac_status=$? |
| 15805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15806 | (exit $ac_status); }; } && |
| 15807 | { ac_try='test -s conftest.$ac_objext' |
| 15808 | { (case "(($ac_try" in |
| 15809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15810 | *) ac_try_echo=$ac_try;; |
| 15811 | esac |
| 15812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15813 | (eval "$ac_try") 2>&5 |
| 15814 | ac_status=$? |
| 15815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15816 | (exit $ac_status); }; }; then |
| 15817 | ac_header_compiler=yes |
| 15818 | else |
| 15819 | echo "$as_me: failed program was:" >&5 |
| 15820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15821 | |
| 15822 | ac_header_compiler=no |
| 15823 | fi |
| 15824 | |
| 15825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15826 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15827 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15828 | |
| 15829 | # Is the header present? |
| 15830 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15831 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15832 | cat >conftest.$ac_ext <<_ACEOF |
| 15833 | /* confdefs.h. */ |
| 15834 | _ACEOF |
| 15835 | cat confdefs.h >>conftest.$ac_ext |
| 15836 | cat >>conftest.$ac_ext <<_ACEOF |
| 15837 | /* end confdefs.h. */ |
| 15838 | #include <$ac_header> |
| 15839 | _ACEOF |
| 15840 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15841 | case "(($ac_try" in |
| 15842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15843 | *) ac_try_echo=$ac_try;; |
| 15844 | esac |
| 15845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15846 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15847 | ac_status=$? |
| 15848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15849 | rm -f conftest.er1 |
| 15850 | cat conftest.err >&5 |
| 15851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15852 | (exit $ac_status); } >/dev/null; then |
| 15853 | if test -s conftest.err; then |
| 15854 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15855 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15856 | else |
| 15857 | ac_cpp_err= |
| 15858 | fi |
| 15859 | else |
| 15860 | ac_cpp_err=yes |
| 15861 | fi |
| 15862 | if test -z "$ac_cpp_err"; then |
| 15863 | ac_header_preproc=yes |
| 15864 | else |
| 15865 | echo "$as_me: failed program was:" >&5 |
| 15866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15867 | |
| 15868 | ac_header_preproc=no |
| 15869 | fi |
| 15870 | |
| 15871 | rm -f conftest.err conftest.$ac_ext |
| 15872 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15873 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15874 | |
| 15875 | # So? What about this header? |
| 15876 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15877 | yes:no: ) |
| 15878 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15879 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15880 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15881 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15882 | ac_header_preproc=yes |
| 15883 | ;; |
| 15884 | no:yes:* ) |
| 15885 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15886 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15887 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15888 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15889 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15890 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15891 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15892 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15893 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15894 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15895 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15896 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15897 | ( cat <<\_ASBOX |
| 15898 | ## ----------------------------------- ## |
| 15899 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15900 | ## ----------------------------------- ## |
| 15901 | _ASBOX |
| 15902 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15903 | ;; |
| 15904 | esac |
| 15905 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15906 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15907 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15909 | else |
| 15910 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15911 | fi |
| 15912 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15913 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15914 | echo "${ECHO_T}$ac_res" >&6; } |
| 15915 | |
| 15916 | fi |
| 15917 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15918 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15919 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15920 | _ACEOF |
| 15921 | |
| 15922 | fi |
| 15923 | |
| 15924 | done |
| 15925 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15926 | |
| 15927 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15928 | for ac_header in utime.h windows.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15929 | do |
| 15930 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15931 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15932 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15933 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15934 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15936 | fi |
| 15937 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15938 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15939 | echo "${ECHO_T}$ac_res" >&6; } |
| 15940 | else |
| 15941 | # Is the header compilable? |
| 15942 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15943 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15944 | cat >conftest.$ac_ext <<_ACEOF |
| 15945 | /* confdefs.h. */ |
| 15946 | _ACEOF |
| 15947 | cat confdefs.h >>conftest.$ac_ext |
| 15948 | cat >>conftest.$ac_ext <<_ACEOF |
| 15949 | /* end confdefs.h. */ |
| 15950 | $ac_includes_default |
| 15951 | #include <$ac_header> |
| 15952 | _ACEOF |
| 15953 | rm -f conftest.$ac_objext |
| 15954 | if { (ac_try="$ac_compile" |
| 15955 | case "(($ac_try" in |
| 15956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15957 | *) ac_try_echo=$ac_try;; |
| 15958 | esac |
| 15959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15960 | (eval "$ac_compile") 2>conftest.er1 |
| 15961 | ac_status=$? |
| 15962 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15963 | rm -f conftest.er1 |
| 15964 | cat conftest.err >&5 |
| 15965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15966 | (exit $ac_status); } && |
| 15967 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15968 | { (case "(($ac_try" in |
| 15969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15970 | *) ac_try_echo=$ac_try;; |
| 15971 | esac |
| 15972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15973 | (eval "$ac_try") 2>&5 |
| 15974 | ac_status=$? |
| 15975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15976 | (exit $ac_status); }; } && |
| 15977 | { ac_try='test -s conftest.$ac_objext' |
| 15978 | { (case "(($ac_try" in |
| 15979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15980 | *) ac_try_echo=$ac_try;; |
| 15981 | esac |
| 15982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15983 | (eval "$ac_try") 2>&5 |
| 15984 | ac_status=$? |
| 15985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15986 | (exit $ac_status); }; }; then |
| 15987 | ac_header_compiler=yes |
| 15988 | else |
| 15989 | echo "$as_me: failed program was:" >&5 |
| 15990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15991 | |
| 15992 | ac_header_compiler=no |
| 15993 | fi |
| 15994 | |
| 15995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15996 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15997 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15998 | |
| 15999 | # Is the header present? |
| 16000 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16001 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16002 | cat >conftest.$ac_ext <<_ACEOF |
| 16003 | /* confdefs.h. */ |
| 16004 | _ACEOF |
| 16005 | cat confdefs.h >>conftest.$ac_ext |
| 16006 | cat >>conftest.$ac_ext <<_ACEOF |
| 16007 | /* end confdefs.h. */ |
| 16008 | #include <$ac_header> |
| 16009 | _ACEOF |
| 16010 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16011 | case "(($ac_try" in |
| 16012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16013 | *) ac_try_echo=$ac_try;; |
| 16014 | esac |
| 16015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16016 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16017 | ac_status=$? |
| 16018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16019 | rm -f conftest.er1 |
| 16020 | cat conftest.err >&5 |
| 16021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16022 | (exit $ac_status); } >/dev/null; then |
| 16023 | if test -s conftest.err; then |
| 16024 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16025 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16026 | else |
| 16027 | ac_cpp_err= |
| 16028 | fi |
| 16029 | else |
| 16030 | ac_cpp_err=yes |
| 16031 | fi |
| 16032 | if test -z "$ac_cpp_err"; then |
| 16033 | ac_header_preproc=yes |
| 16034 | else |
| 16035 | echo "$as_me: failed program was:" >&5 |
| 16036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16037 | |
| 16038 | ac_header_preproc=no |
| 16039 | fi |
| 16040 | |
| 16041 | rm -f conftest.err conftest.$ac_ext |
| 16042 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16043 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16044 | |
| 16045 | # So? What about this header? |
| 16046 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16047 | yes:no: ) |
| 16048 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16049 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16050 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16051 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16052 | ac_header_preproc=yes |
| 16053 | ;; |
| 16054 | no:yes:* ) |
| 16055 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16056 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16057 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16058 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16059 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16060 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16061 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16062 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16063 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16064 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16065 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16066 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16067 | ( cat <<\_ASBOX |
| 16068 | ## ----------------------------------- ## |
| 16069 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16070 | ## ----------------------------------- ## |
| 16071 | _ASBOX |
| 16072 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16073 | ;; |
| 16074 | esac |
| 16075 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16076 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16077 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16079 | else |
| 16080 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16081 | fi |
| 16082 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16083 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16084 | echo "${ECHO_T}$ac_res" >&6; } |
| 16085 | |
| 16086 | fi |
| 16087 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16088 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16089 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16090 | _ACEOF |
| 16091 | |
| 16092 | fi |
| 16093 | |
| 16094 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 16095 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16096 | |
| 16097 | |
| 16098 | |
| 16099 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16100 | 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] | 16101 | do |
| 16102 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16103 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16104 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16105 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16106 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16108 | fi |
| 16109 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16110 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16111 | echo "${ECHO_T}$ac_res" >&6; } |
| 16112 | else |
| 16113 | # Is the header compilable? |
| 16114 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16115 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16116 | cat >conftest.$ac_ext <<_ACEOF |
| 16117 | /* confdefs.h. */ |
| 16118 | _ACEOF |
| 16119 | cat confdefs.h >>conftest.$ac_ext |
| 16120 | cat >>conftest.$ac_ext <<_ACEOF |
| 16121 | /* end confdefs.h. */ |
| 16122 | $ac_includes_default |
| 16123 | #include <$ac_header> |
| 16124 | _ACEOF |
| 16125 | rm -f conftest.$ac_objext |
| 16126 | if { (ac_try="$ac_compile" |
| 16127 | case "(($ac_try" in |
| 16128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16129 | *) ac_try_echo=$ac_try;; |
| 16130 | esac |
| 16131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16132 | (eval "$ac_compile") 2>conftest.er1 |
| 16133 | ac_status=$? |
| 16134 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16135 | rm -f conftest.er1 |
| 16136 | cat conftest.err >&5 |
| 16137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16138 | (exit $ac_status); } && |
| 16139 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16140 | { (case "(($ac_try" in |
| 16141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16142 | *) ac_try_echo=$ac_try;; |
| 16143 | esac |
| 16144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16145 | (eval "$ac_try") 2>&5 |
| 16146 | ac_status=$? |
| 16147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16148 | (exit $ac_status); }; } && |
| 16149 | { ac_try='test -s conftest.$ac_objext' |
| 16150 | { (case "(($ac_try" in |
| 16151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16152 | *) ac_try_echo=$ac_try;; |
| 16153 | esac |
| 16154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16155 | (eval "$ac_try") 2>&5 |
| 16156 | ac_status=$? |
| 16157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16158 | (exit $ac_status); }; }; then |
| 16159 | ac_header_compiler=yes |
| 16160 | else |
| 16161 | echo "$as_me: failed program was:" >&5 |
| 16162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16163 | |
| 16164 | ac_header_compiler=no |
| 16165 | fi |
| 16166 | |
| 16167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16168 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16169 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16170 | |
| 16171 | # Is the header present? |
| 16172 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16173 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16174 | cat >conftest.$ac_ext <<_ACEOF |
| 16175 | /* confdefs.h. */ |
| 16176 | _ACEOF |
| 16177 | cat confdefs.h >>conftest.$ac_ext |
| 16178 | cat >>conftest.$ac_ext <<_ACEOF |
| 16179 | /* end confdefs.h. */ |
| 16180 | #include <$ac_header> |
| 16181 | _ACEOF |
| 16182 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16183 | case "(($ac_try" in |
| 16184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16185 | *) ac_try_echo=$ac_try;; |
| 16186 | esac |
| 16187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16188 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16189 | ac_status=$? |
| 16190 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16191 | rm -f conftest.er1 |
| 16192 | cat conftest.err >&5 |
| 16193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16194 | (exit $ac_status); } >/dev/null; then |
| 16195 | if test -s conftest.err; then |
| 16196 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16197 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16198 | else |
| 16199 | ac_cpp_err= |
| 16200 | fi |
| 16201 | else |
| 16202 | ac_cpp_err=yes |
| 16203 | fi |
| 16204 | if test -z "$ac_cpp_err"; then |
| 16205 | ac_header_preproc=yes |
| 16206 | else |
| 16207 | echo "$as_me: failed program was:" >&5 |
| 16208 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16209 | |
| 16210 | ac_header_preproc=no |
| 16211 | fi |
| 16212 | |
| 16213 | rm -f conftest.err conftest.$ac_ext |
| 16214 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16215 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16216 | |
| 16217 | # So? What about this header? |
| 16218 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16219 | yes:no: ) |
| 16220 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16221 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16222 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16223 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16224 | ac_header_preproc=yes |
| 16225 | ;; |
| 16226 | no:yes:* ) |
| 16227 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16228 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16229 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16230 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16231 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16232 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16233 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16234 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16235 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16236 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16237 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16238 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16239 | ( cat <<\_ASBOX |
| 16240 | ## ----------------------------------- ## |
| 16241 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16242 | ## ----------------------------------- ## |
| 16243 | _ASBOX |
| 16244 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16245 | ;; |
| 16246 | esac |
| 16247 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16248 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16249 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16251 | else |
| 16252 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16253 | fi |
| 16254 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16255 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16256 | echo "${ECHO_T}$ac_res" >&6; } |
| 16257 | |
| 16258 | fi |
| 16259 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16260 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16261 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16262 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16263 | |
| 16264 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16265 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16266 | done |
| 16267 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16268 | |
| 16269 | |
| 16270 | |
| 16271 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 16272 | 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] | 16273 | do |
| 16274 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16275 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16276 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16277 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16278 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16280 | fi |
| 16281 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16282 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16283 | echo "${ECHO_T}$ac_res" >&6; } |
| 16284 | else |
| 16285 | # Is the header compilable? |
| 16286 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16287 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16288 | cat >conftest.$ac_ext <<_ACEOF |
| 16289 | /* confdefs.h. */ |
| 16290 | _ACEOF |
| 16291 | cat confdefs.h >>conftest.$ac_ext |
| 16292 | cat >>conftest.$ac_ext <<_ACEOF |
| 16293 | /* end confdefs.h. */ |
| 16294 | $ac_includes_default |
| 16295 | #include <$ac_header> |
| 16296 | _ACEOF |
| 16297 | rm -f conftest.$ac_objext |
| 16298 | if { (ac_try="$ac_compile" |
| 16299 | case "(($ac_try" in |
| 16300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16301 | *) ac_try_echo=$ac_try;; |
| 16302 | esac |
| 16303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16304 | (eval "$ac_compile") 2>conftest.er1 |
| 16305 | ac_status=$? |
| 16306 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16307 | rm -f conftest.er1 |
| 16308 | cat conftest.err >&5 |
| 16309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16310 | (exit $ac_status); } && |
| 16311 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16312 | { (case "(($ac_try" in |
| 16313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16314 | *) ac_try_echo=$ac_try;; |
| 16315 | esac |
| 16316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16317 | (eval "$ac_try") 2>&5 |
| 16318 | ac_status=$? |
| 16319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16320 | (exit $ac_status); }; } && |
| 16321 | { ac_try='test -s conftest.$ac_objext' |
| 16322 | { (case "(($ac_try" in |
| 16323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16324 | *) ac_try_echo=$ac_try;; |
| 16325 | esac |
| 16326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16327 | (eval "$ac_try") 2>&5 |
| 16328 | ac_status=$? |
| 16329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16330 | (exit $ac_status); }; }; then |
| 16331 | ac_header_compiler=yes |
| 16332 | else |
| 16333 | echo "$as_me: failed program was:" >&5 |
| 16334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16335 | |
| 16336 | ac_header_compiler=no |
| 16337 | fi |
| 16338 | |
| 16339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16340 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16341 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16342 | |
| 16343 | # Is the header present? |
| 16344 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16345 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16346 | cat >conftest.$ac_ext <<_ACEOF |
| 16347 | /* confdefs.h. */ |
| 16348 | _ACEOF |
| 16349 | cat confdefs.h >>conftest.$ac_ext |
| 16350 | cat >>conftest.$ac_ext <<_ACEOF |
| 16351 | /* end confdefs.h. */ |
| 16352 | #include <$ac_header> |
| 16353 | _ACEOF |
| 16354 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16355 | case "(($ac_try" in |
| 16356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16357 | *) ac_try_echo=$ac_try;; |
| 16358 | esac |
| 16359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16360 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16361 | ac_status=$? |
| 16362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16363 | rm -f conftest.er1 |
| 16364 | cat conftest.err >&5 |
| 16365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16366 | (exit $ac_status); } >/dev/null; then |
| 16367 | if test -s conftest.err; then |
| 16368 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16369 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16370 | else |
| 16371 | ac_cpp_err= |
| 16372 | fi |
| 16373 | else |
| 16374 | ac_cpp_err=yes |
| 16375 | fi |
| 16376 | if test -z "$ac_cpp_err"; then |
| 16377 | ac_header_preproc=yes |
| 16378 | else |
| 16379 | echo "$as_me: failed program was:" >&5 |
| 16380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16381 | |
| 16382 | ac_header_preproc=no |
| 16383 | fi |
| 16384 | |
| 16385 | rm -f conftest.err conftest.$ac_ext |
| 16386 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16387 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16388 | |
| 16389 | # So? What about this header? |
| 16390 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16391 | yes:no: ) |
| 16392 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16393 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16394 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16395 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16396 | ac_header_preproc=yes |
| 16397 | ;; |
| 16398 | no:yes:* ) |
| 16399 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16400 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16401 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16402 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16403 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16404 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16405 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16406 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16407 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16408 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16409 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16410 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16411 | ( cat <<\_ASBOX |
| 16412 | ## ----------------------------------- ## |
| 16413 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16414 | ## ----------------------------------- ## |
| 16415 | _ASBOX |
| 16416 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16417 | ;; |
| 16418 | esac |
| 16419 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16420 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16421 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16423 | else |
| 16424 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16425 | fi |
| 16426 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16427 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16428 | echo "${ECHO_T}$ac_res" >&6; } |
| 16429 | |
| 16430 | fi |
| 16431 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16432 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16433 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16434 | _ACEOF |
| 16435 | |
| 16436 | fi |
| 16437 | |
| 16438 | done |
| 16439 | |
Jeffrey Yasskin | f28411f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 16440 | |
| 16441 | for ac_header in valgrind/valgrind.h |
| 16442 | do |
| 16443 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16444 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16445 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16446 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16447 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16449 | fi |
| 16450 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16451 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16452 | echo "${ECHO_T}$ac_res" >&6; } |
| 16453 | else |
| 16454 | # Is the header compilable? |
| 16455 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16456 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16457 | cat >conftest.$ac_ext <<_ACEOF |
| 16458 | /* confdefs.h. */ |
| 16459 | _ACEOF |
| 16460 | cat confdefs.h >>conftest.$ac_ext |
| 16461 | cat >>conftest.$ac_ext <<_ACEOF |
| 16462 | /* end confdefs.h. */ |
| 16463 | $ac_includes_default |
| 16464 | #include <$ac_header> |
| 16465 | _ACEOF |
| 16466 | rm -f conftest.$ac_objext |
| 16467 | if { (ac_try="$ac_compile" |
| 16468 | case "(($ac_try" in |
| 16469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16470 | *) ac_try_echo=$ac_try;; |
| 16471 | esac |
| 16472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16473 | (eval "$ac_compile") 2>conftest.er1 |
| 16474 | ac_status=$? |
| 16475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16476 | rm -f conftest.er1 |
| 16477 | cat conftest.err >&5 |
| 16478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16479 | (exit $ac_status); } && |
| 16480 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16481 | { (case "(($ac_try" in |
| 16482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16483 | *) ac_try_echo=$ac_try;; |
| 16484 | esac |
| 16485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16486 | (eval "$ac_try") 2>&5 |
| 16487 | ac_status=$? |
| 16488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16489 | (exit $ac_status); }; } && |
| 16490 | { ac_try='test -s conftest.$ac_objext' |
| 16491 | { (case "(($ac_try" in |
| 16492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16493 | *) ac_try_echo=$ac_try;; |
| 16494 | esac |
| 16495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16496 | (eval "$ac_try") 2>&5 |
| 16497 | ac_status=$? |
| 16498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16499 | (exit $ac_status); }; }; then |
| 16500 | ac_header_compiler=yes |
| 16501 | else |
| 16502 | echo "$as_me: failed program was:" >&5 |
| 16503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16504 | |
| 16505 | ac_header_compiler=no |
| 16506 | fi |
| 16507 | |
| 16508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16509 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16510 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16511 | |
| 16512 | # Is the header present? |
| 16513 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16514 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16515 | cat >conftest.$ac_ext <<_ACEOF |
| 16516 | /* confdefs.h. */ |
| 16517 | _ACEOF |
| 16518 | cat confdefs.h >>conftest.$ac_ext |
| 16519 | cat >>conftest.$ac_ext <<_ACEOF |
| 16520 | /* end confdefs.h. */ |
| 16521 | #include <$ac_header> |
| 16522 | _ACEOF |
| 16523 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16524 | case "(($ac_try" in |
| 16525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16526 | *) ac_try_echo=$ac_try;; |
| 16527 | esac |
| 16528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16529 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16530 | ac_status=$? |
| 16531 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16532 | rm -f conftest.er1 |
| 16533 | cat conftest.err >&5 |
| 16534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16535 | (exit $ac_status); } >/dev/null; then |
| 16536 | if test -s conftest.err; then |
| 16537 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16538 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16539 | else |
| 16540 | ac_cpp_err= |
| 16541 | fi |
| 16542 | else |
| 16543 | ac_cpp_err=yes |
| 16544 | fi |
| 16545 | if test -z "$ac_cpp_err"; then |
| 16546 | ac_header_preproc=yes |
| 16547 | else |
| 16548 | echo "$as_me: failed program was:" >&5 |
| 16549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16550 | |
| 16551 | ac_header_preproc=no |
| 16552 | fi |
| 16553 | |
| 16554 | rm -f conftest.err conftest.$ac_ext |
| 16555 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16556 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16557 | |
| 16558 | # So? What about this header? |
| 16559 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16560 | yes:no: ) |
| 16561 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16562 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16563 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16564 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16565 | ac_header_preproc=yes |
| 16566 | ;; |
| 16567 | no:yes:* ) |
| 16568 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16569 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16570 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16571 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16572 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16573 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16574 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16575 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16576 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16577 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16578 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16579 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16580 | ( cat <<\_ASBOX |
| 16581 | ## ----------------------------------- ## |
| 16582 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16583 | ## ----------------------------------- ## |
| 16584 | _ASBOX |
| 16585 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16586 | ;; |
| 16587 | esac |
| 16588 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16589 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16590 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16592 | else |
| 16593 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16594 | fi |
| 16595 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16596 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16597 | echo "${ECHO_T}$ac_res" >&6; } |
| 16598 | |
| 16599 | fi |
| 16600 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16601 | cat >>confdefs.h <<_ACEOF |
| 16602 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16603 | _ACEOF |
| 16604 | |
| 16605 | fi |
| 16606 | |
| 16607 | done |
| 16608 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16609 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16610 | |
| 16611 | for ac_header in pthread.h |
| 16612 | do |
| 16613 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16614 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16615 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16616 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16617 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16619 | fi |
| 16620 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16621 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16622 | echo "${ECHO_T}$ac_res" >&6; } |
| 16623 | else |
| 16624 | # Is the header compilable? |
| 16625 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16626 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16627 | cat >conftest.$ac_ext <<_ACEOF |
| 16628 | /* confdefs.h. */ |
| 16629 | _ACEOF |
| 16630 | cat confdefs.h >>conftest.$ac_ext |
| 16631 | cat >>conftest.$ac_ext <<_ACEOF |
| 16632 | /* end confdefs.h. */ |
| 16633 | $ac_includes_default |
| 16634 | #include <$ac_header> |
| 16635 | _ACEOF |
| 16636 | rm -f conftest.$ac_objext |
| 16637 | if { (ac_try="$ac_compile" |
| 16638 | case "(($ac_try" in |
| 16639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16640 | *) ac_try_echo=$ac_try;; |
| 16641 | esac |
| 16642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16643 | (eval "$ac_compile") 2>conftest.er1 |
| 16644 | ac_status=$? |
| 16645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16646 | rm -f conftest.er1 |
| 16647 | cat conftest.err >&5 |
| 16648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16649 | (exit $ac_status); } && |
| 16650 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16651 | { (case "(($ac_try" in |
| 16652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16653 | *) ac_try_echo=$ac_try;; |
| 16654 | esac |
| 16655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16656 | (eval "$ac_try") 2>&5 |
| 16657 | ac_status=$? |
| 16658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16659 | (exit $ac_status); }; } && |
| 16660 | { ac_try='test -s conftest.$ac_objext' |
| 16661 | { (case "(($ac_try" in |
| 16662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16663 | *) ac_try_echo=$ac_try;; |
| 16664 | esac |
| 16665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16666 | (eval "$ac_try") 2>&5 |
| 16667 | ac_status=$? |
| 16668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16669 | (exit $ac_status); }; }; then |
| 16670 | ac_header_compiler=yes |
| 16671 | else |
| 16672 | echo "$as_me: failed program was:" >&5 |
| 16673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16674 | |
| 16675 | ac_header_compiler=no |
| 16676 | fi |
| 16677 | |
| 16678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16679 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16680 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16681 | |
| 16682 | # Is the header present? |
| 16683 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16684 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16685 | cat >conftest.$ac_ext <<_ACEOF |
| 16686 | /* confdefs.h. */ |
| 16687 | _ACEOF |
| 16688 | cat confdefs.h >>conftest.$ac_ext |
| 16689 | cat >>conftest.$ac_ext <<_ACEOF |
| 16690 | /* end confdefs.h. */ |
| 16691 | #include <$ac_header> |
| 16692 | _ACEOF |
| 16693 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16694 | case "(($ac_try" in |
| 16695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16696 | *) ac_try_echo=$ac_try;; |
| 16697 | esac |
| 16698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16699 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16700 | ac_status=$? |
| 16701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16702 | rm -f conftest.er1 |
| 16703 | cat conftest.err >&5 |
| 16704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16705 | (exit $ac_status); } >/dev/null; then |
| 16706 | if test -s conftest.err; then |
| 16707 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16708 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16709 | else |
| 16710 | ac_cpp_err= |
| 16711 | fi |
| 16712 | else |
| 16713 | ac_cpp_err=yes |
| 16714 | fi |
| 16715 | if test -z "$ac_cpp_err"; then |
| 16716 | ac_header_preproc=yes |
| 16717 | else |
| 16718 | echo "$as_me: failed program was:" >&5 |
| 16719 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16720 | |
| 16721 | ac_header_preproc=no |
| 16722 | fi |
| 16723 | |
| 16724 | rm -f conftest.err conftest.$ac_ext |
| 16725 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16726 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16727 | |
| 16728 | # So? What about this header? |
| 16729 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16730 | yes:no: ) |
| 16731 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16732 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16733 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16734 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16735 | ac_header_preproc=yes |
| 16736 | ;; |
| 16737 | no:yes:* ) |
| 16738 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16739 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16740 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16741 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16742 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16743 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16744 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16745 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16746 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16747 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16748 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16749 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16750 | ( cat <<\_ASBOX |
| 16751 | ## ----------------------------------- ## |
| 16752 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16753 | ## ----------------------------------- ## |
| 16754 | _ASBOX |
| 16755 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16756 | ;; |
| 16757 | esac |
| 16758 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16759 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16760 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16762 | else |
| 16763 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16764 | fi |
| 16765 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16766 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16767 | echo "${ECHO_T}$ac_res" >&6; } |
| 16768 | |
| 16769 | fi |
| 16770 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16771 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16772 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16773 | _ACEOF |
| 16774 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 16775 | |
| 16776 | else |
| 16777 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16778 | |
| 16779 | fi |
| 16780 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16781 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 16782 | |
| 16783 | else |
| 16784 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16785 | |
| 16786 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16787 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16788 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16789 | |
| 16790 | |
| 16791 | for ac_header in ffi.h ffi/ffi.h |
| 16792 | do |
| 16793 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16794 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16795 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16796 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16797 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16798 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16799 | fi |
| 16800 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16801 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16802 | echo "${ECHO_T}$ac_res" >&6; } |
| 16803 | else |
| 16804 | # Is the header compilable? |
| 16805 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16806 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16807 | cat >conftest.$ac_ext <<_ACEOF |
| 16808 | /* confdefs.h. */ |
| 16809 | _ACEOF |
| 16810 | cat confdefs.h >>conftest.$ac_ext |
| 16811 | cat >>conftest.$ac_ext <<_ACEOF |
| 16812 | /* end confdefs.h. */ |
| 16813 | $ac_includes_default |
| 16814 | #include <$ac_header> |
| 16815 | _ACEOF |
| 16816 | rm -f conftest.$ac_objext |
| 16817 | if { (ac_try="$ac_compile" |
| 16818 | case "(($ac_try" in |
| 16819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16820 | *) ac_try_echo=$ac_try;; |
| 16821 | esac |
| 16822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16823 | (eval "$ac_compile") 2>conftest.er1 |
| 16824 | ac_status=$? |
| 16825 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16826 | rm -f conftest.er1 |
| 16827 | cat conftest.err >&5 |
| 16828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16829 | (exit $ac_status); } && |
| 16830 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16831 | { (case "(($ac_try" in |
| 16832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16833 | *) ac_try_echo=$ac_try;; |
| 16834 | esac |
| 16835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16836 | (eval "$ac_try") 2>&5 |
| 16837 | ac_status=$? |
| 16838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16839 | (exit $ac_status); }; } && |
| 16840 | { ac_try='test -s conftest.$ac_objext' |
| 16841 | { (case "(($ac_try" in |
| 16842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16843 | *) ac_try_echo=$ac_try;; |
| 16844 | esac |
| 16845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16846 | (eval "$ac_try") 2>&5 |
| 16847 | ac_status=$? |
| 16848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16849 | (exit $ac_status); }; }; then |
| 16850 | ac_header_compiler=yes |
| 16851 | else |
| 16852 | echo "$as_me: failed program was:" >&5 |
| 16853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16854 | |
| 16855 | ac_header_compiler=no |
| 16856 | fi |
| 16857 | |
| 16858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16859 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16860 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16861 | |
| 16862 | # Is the header present? |
| 16863 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16864 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16865 | cat >conftest.$ac_ext <<_ACEOF |
| 16866 | /* confdefs.h. */ |
| 16867 | _ACEOF |
| 16868 | cat confdefs.h >>conftest.$ac_ext |
| 16869 | cat >>conftest.$ac_ext <<_ACEOF |
| 16870 | /* end confdefs.h. */ |
| 16871 | #include <$ac_header> |
| 16872 | _ACEOF |
| 16873 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16874 | case "(($ac_try" in |
| 16875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16876 | *) ac_try_echo=$ac_try;; |
| 16877 | esac |
| 16878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16879 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16880 | ac_status=$? |
| 16881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16882 | rm -f conftest.er1 |
| 16883 | cat conftest.err >&5 |
| 16884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16885 | (exit $ac_status); } >/dev/null; then |
| 16886 | if test -s conftest.err; then |
| 16887 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16888 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16889 | else |
| 16890 | ac_cpp_err= |
| 16891 | fi |
| 16892 | else |
| 16893 | ac_cpp_err=yes |
| 16894 | fi |
| 16895 | if test -z "$ac_cpp_err"; then |
| 16896 | ac_header_preproc=yes |
| 16897 | else |
| 16898 | echo "$as_me: failed program was:" >&5 |
| 16899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16900 | |
| 16901 | ac_header_preproc=no |
| 16902 | fi |
| 16903 | |
| 16904 | rm -f conftest.err conftest.$ac_ext |
| 16905 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16906 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16907 | |
| 16908 | # So? What about this header? |
| 16909 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16910 | yes:no: ) |
| 16911 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16912 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16913 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16914 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16915 | ac_header_preproc=yes |
| 16916 | ;; |
| 16917 | no:yes:* ) |
| 16918 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16919 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16920 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16921 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16922 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16923 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16924 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16925 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16926 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16927 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16928 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16929 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16930 | ( cat <<\_ASBOX |
| 16931 | ## ----------------------------------- ## |
| 16932 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16933 | ## ----------------------------------- ## |
| 16934 | _ASBOX |
| 16935 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16936 | ;; |
| 16937 | esac |
| 16938 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16939 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16940 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16942 | else |
| 16943 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16944 | fi |
| 16945 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16946 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16947 | echo "${ECHO_T}$ac_res" >&6; } |
| 16948 | |
| 16949 | fi |
| 16950 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16951 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16952 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16953 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16954 | |
| 16955 | fi |
| 16956 | |
| 16957 | done |
| 16958 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16959 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16960 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 16961 | |
Eric Christopher | 654dee4 | 2010-06-22 21:01:04 +0000 | [diff] [blame] | 16962 | for ac_header in CrashReporterClient.h |
| 16963 | do |
| 16964 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16965 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16966 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16967 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16968 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16970 | fi |
| 16971 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16972 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16973 | echo "${ECHO_T}$ac_res" >&6; } |
| 16974 | else |
| 16975 | # Is the header compilable? |
| 16976 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16977 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16978 | cat >conftest.$ac_ext <<_ACEOF |
| 16979 | /* confdefs.h. */ |
| 16980 | _ACEOF |
| 16981 | cat confdefs.h >>conftest.$ac_ext |
| 16982 | cat >>conftest.$ac_ext <<_ACEOF |
| 16983 | /* end confdefs.h. */ |
| 16984 | $ac_includes_default |
| 16985 | #include <$ac_header> |
| 16986 | _ACEOF |
| 16987 | rm -f conftest.$ac_objext |
| 16988 | if { (ac_try="$ac_compile" |
| 16989 | case "(($ac_try" in |
| 16990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16991 | *) ac_try_echo=$ac_try;; |
| 16992 | esac |
| 16993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16994 | (eval "$ac_compile") 2>conftest.er1 |
| 16995 | ac_status=$? |
| 16996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16997 | rm -f conftest.er1 |
| 16998 | cat conftest.err >&5 |
| 16999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17000 | (exit $ac_status); } && |
| 17001 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17002 | { (case "(($ac_try" in |
| 17003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17004 | *) ac_try_echo=$ac_try;; |
| 17005 | esac |
| 17006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17007 | (eval "$ac_try") 2>&5 |
| 17008 | ac_status=$? |
| 17009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17010 | (exit $ac_status); }; } && |
| 17011 | { ac_try='test -s conftest.$ac_objext' |
| 17012 | { (case "(($ac_try" in |
| 17013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17014 | *) ac_try_echo=$ac_try;; |
| 17015 | esac |
| 17016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17017 | (eval "$ac_try") 2>&5 |
| 17018 | ac_status=$? |
| 17019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17020 | (exit $ac_status); }; }; then |
| 17021 | ac_header_compiler=yes |
| 17022 | else |
| 17023 | echo "$as_me: failed program was:" >&5 |
| 17024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17025 | |
| 17026 | ac_header_compiler=no |
| 17027 | fi |
| 17028 | |
| 17029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17030 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17031 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 17032 | |
| 17033 | # Is the header present? |
| 17034 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 17035 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 17036 | cat >conftest.$ac_ext <<_ACEOF |
| 17037 | /* confdefs.h. */ |
| 17038 | _ACEOF |
| 17039 | cat confdefs.h >>conftest.$ac_ext |
| 17040 | cat >>conftest.$ac_ext <<_ACEOF |
| 17041 | /* end confdefs.h. */ |
| 17042 | #include <$ac_header> |
| 17043 | _ACEOF |
| 17044 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17045 | case "(($ac_try" in |
| 17046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17047 | *) ac_try_echo=$ac_try;; |
| 17048 | esac |
| 17049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17050 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 17051 | ac_status=$? |
| 17052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17053 | rm -f conftest.er1 |
| 17054 | cat conftest.err >&5 |
| 17055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17056 | (exit $ac_status); } >/dev/null; then |
| 17057 | if test -s conftest.err; then |
| 17058 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 17059 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 17060 | else |
| 17061 | ac_cpp_err= |
| 17062 | fi |
| 17063 | else |
| 17064 | ac_cpp_err=yes |
| 17065 | fi |
| 17066 | if test -z "$ac_cpp_err"; then |
| 17067 | ac_header_preproc=yes |
| 17068 | else |
| 17069 | echo "$as_me: failed program was:" >&5 |
| 17070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17071 | |
| 17072 | ac_header_preproc=no |
| 17073 | fi |
| 17074 | |
| 17075 | rm -f conftest.err conftest.$ac_ext |
| 17076 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17077 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 17078 | |
| 17079 | # So? What about this header? |
| 17080 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17081 | yes:no: ) |
| 17082 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17083 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17084 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 17085 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 17086 | ac_header_preproc=yes |
| 17087 | ;; |
| 17088 | no:yes:* ) |
| 17089 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 17090 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 17091 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 17092 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 17093 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 17094 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 17095 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 17096 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17097 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 17098 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 17099 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 17100 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 17101 | ( cat <<\_ASBOX |
| 17102 | ## ----------------------------------- ## |
| 17103 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 17104 | ## ----------------------------------- ## |
| 17105 | _ASBOX |
| 17106 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 17107 | ;; |
| 17108 | esac |
| 17109 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17110 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 17111 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17113 | else |
| 17114 | eval "$as_ac_Header=\$ac_header_preproc" |
| 17115 | fi |
| 17116 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 17117 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17118 | echo "${ECHO_T}$ac_res" >&6; } |
| 17119 | |
| 17120 | fi |
| 17121 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 17122 | cat >>confdefs.h <<_ACEOF |
| 17123 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17124 | _ACEOF |
| 17125 | |
| 17126 | fi |
| 17127 | |
| 17128 | done |
| 17129 | |
| 17130 | |
| 17131 | |
Owen Anderson | 009f20a | 2010-07-19 19:24:55 +0000 | [diff] [blame] | 17132 | for ac_header in mach-o/getsect.h |
| 17133 | do |
| 17134 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17135 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17136 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17137 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 17138 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17140 | fi |
| 17141 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 17142 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17143 | echo "${ECHO_T}$ac_res" >&6; } |
| 17144 | else |
| 17145 | # Is the header compilable? |
| 17146 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 17147 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 17148 | cat >conftest.$ac_ext <<_ACEOF |
| 17149 | /* confdefs.h. */ |
| 17150 | _ACEOF |
| 17151 | cat confdefs.h >>conftest.$ac_ext |
| 17152 | cat >>conftest.$ac_ext <<_ACEOF |
| 17153 | /* end confdefs.h. */ |
| 17154 | $ac_includes_default |
| 17155 | #include <$ac_header> |
| 17156 | _ACEOF |
| 17157 | rm -f conftest.$ac_objext |
| 17158 | if { (ac_try="$ac_compile" |
| 17159 | case "(($ac_try" in |
| 17160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17161 | *) ac_try_echo=$ac_try;; |
| 17162 | esac |
| 17163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17164 | (eval "$ac_compile") 2>conftest.er1 |
| 17165 | ac_status=$? |
| 17166 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17167 | rm -f conftest.er1 |
| 17168 | cat conftest.err >&5 |
| 17169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17170 | (exit $ac_status); } && |
| 17171 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17172 | { (case "(($ac_try" in |
| 17173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17174 | *) ac_try_echo=$ac_try;; |
| 17175 | esac |
| 17176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17177 | (eval "$ac_try") 2>&5 |
| 17178 | ac_status=$? |
| 17179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17180 | (exit $ac_status); }; } && |
| 17181 | { ac_try='test -s conftest.$ac_objext' |
| 17182 | { (case "(($ac_try" in |
| 17183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17184 | *) ac_try_echo=$ac_try;; |
| 17185 | esac |
| 17186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17187 | (eval "$ac_try") 2>&5 |
| 17188 | ac_status=$? |
| 17189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17190 | (exit $ac_status); }; }; then |
| 17191 | ac_header_compiler=yes |
| 17192 | else |
| 17193 | echo "$as_me: failed program was:" >&5 |
| 17194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17195 | |
| 17196 | ac_header_compiler=no |
| 17197 | fi |
| 17198 | |
| 17199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17200 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 17201 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 17202 | |
| 17203 | # Is the header present? |
| 17204 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 17205 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 17206 | cat >conftest.$ac_ext <<_ACEOF |
| 17207 | /* confdefs.h. */ |
| 17208 | _ACEOF |
| 17209 | cat confdefs.h >>conftest.$ac_ext |
| 17210 | cat >>conftest.$ac_ext <<_ACEOF |
| 17211 | /* end confdefs.h. */ |
| 17212 | #include <$ac_header> |
| 17213 | _ACEOF |
| 17214 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 17215 | case "(($ac_try" in |
| 17216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17217 | *) ac_try_echo=$ac_try;; |
| 17218 | esac |
| 17219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17220 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 17221 | ac_status=$? |
| 17222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17223 | rm -f conftest.er1 |
| 17224 | cat conftest.err >&5 |
| 17225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17226 | (exit $ac_status); } >/dev/null; then |
| 17227 | if test -s conftest.err; then |
| 17228 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 17229 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 17230 | else |
| 17231 | ac_cpp_err= |
| 17232 | fi |
| 17233 | else |
| 17234 | ac_cpp_err=yes |
| 17235 | fi |
| 17236 | if test -z "$ac_cpp_err"; then |
| 17237 | ac_header_preproc=yes |
| 17238 | else |
| 17239 | echo "$as_me: failed program was:" >&5 |
| 17240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17241 | |
| 17242 | ac_header_preproc=no |
| 17243 | fi |
| 17244 | |
| 17245 | rm -f conftest.err conftest.$ac_ext |
| 17246 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 17247 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 17248 | |
| 17249 | # So? What about this header? |
| 17250 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 17251 | yes:no: ) |
| 17252 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 17253 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 17254 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 17255 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 17256 | ac_header_preproc=yes |
| 17257 | ;; |
| 17258 | no:yes:* ) |
| 17259 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 17260 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 17261 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 17262 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 17263 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 17264 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 17265 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 17266 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 17267 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 17268 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 17269 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 17270 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 17271 | ( cat <<\_ASBOX |
| 17272 | ## ----------------------------------- ## |
| 17273 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 17274 | ## ----------------------------------- ## |
| 17275 | _ASBOX |
| 17276 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 17277 | ;; |
| 17278 | esac |
| 17279 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17280 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 17281 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17283 | else |
| 17284 | eval "$as_ac_Header=\$ac_header_preproc" |
| 17285 | fi |
| 17286 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 17287 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17288 | echo "${ECHO_T}$ac_res" >&6; } |
| 17289 | |
| 17290 | fi |
| 17291 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 17292 | cat >>confdefs.h <<_ACEOF |
| 17293 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17294 | _ACEOF |
| 17295 | |
| 17296 | fi |
| 17297 | |
| 17298 | done |
| 17299 | |
| 17300 | |
| 17301 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 17302 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17303 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17304 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 17305 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 17306 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 17307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17308 | else |
| 17309 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 17310 | ac_ext=cpp |
| 17311 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17312 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17313 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17314 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17315 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 17316 | ac_save_CXXFLAGS=$CXXFLAGS |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 17317 | CXXFLAGS=-pedantic |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17318 | if test "$cross_compiling" = yes; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17319 | ac_cv_huge_val_sanity=yes |
| 17320 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17321 | cat >conftest.$ac_ext <<_ACEOF |
| 17322 | /* confdefs.h. */ |
| 17323 | _ACEOF |
| 17324 | cat confdefs.h >>conftest.$ac_ext |
| 17325 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17326 | /* end confdefs.h. */ |
| 17327 | #include <math.h> |
| 17328 | int |
| 17329 | main () |
| 17330 | { |
| 17331 | double x = HUGE_VAL; return x != x; |
| 17332 | ; |
| 17333 | return 0; |
| 17334 | } |
| 17335 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17336 | rm -f conftest$ac_exeext |
| 17337 | if { (ac_try="$ac_link" |
| 17338 | case "(($ac_try" in |
| 17339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17340 | *) ac_try_echo=$ac_try;; |
| 17341 | esac |
| 17342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17343 | (eval "$ac_link") 2>&5 |
| 17344 | ac_status=$? |
| 17345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17346 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17347 | { (case "(($ac_try" in |
| 17348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17349 | *) ac_try_echo=$ac_try;; |
| 17350 | esac |
| 17351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17352 | (eval "$ac_try") 2>&5 |
| 17353 | ac_status=$? |
| 17354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17355 | (exit $ac_status); }; }; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17356 | ac_cv_huge_val_sanity=yes |
| 17357 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17358 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17359 | echo "$as_me: failed program was:" >&5 |
| 17360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17361 | |
| 17362 | ( exit $ac_status ) |
| 17363 | ac_cv_huge_val_sanity=no |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17364 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17365 | 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] | 17366 | fi |
| 17367 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17368 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 17369 | CXXFLAGS=$ac_save_CXXFLAGS |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17370 | ac_ext=c |
| 17371 | ac_cpp='$CPP $CPPFLAGS' |
| 17372 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17373 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17374 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17375 | |
| 17376 | |
| 17377 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17378 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 17379 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17380 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 17381 | |
| 17382 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17383 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 17384 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 17385 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 17386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17387 | else |
| 17388 | cat >conftest.$ac_ext <<_ACEOF |
| 17389 | /* confdefs.h. */ |
| 17390 | _ACEOF |
| 17391 | cat confdefs.h >>conftest.$ac_ext |
| 17392 | cat >>conftest.$ac_ext <<_ACEOF |
| 17393 | /* end confdefs.h. */ |
| 17394 | $ac_includes_default |
| 17395 | typedef pid_t ac__type_new_; |
| 17396 | int |
| 17397 | main () |
| 17398 | { |
| 17399 | if ((ac__type_new_ *) 0) |
| 17400 | return 0; |
| 17401 | if (sizeof (ac__type_new_)) |
| 17402 | return 0; |
| 17403 | ; |
| 17404 | return 0; |
| 17405 | } |
| 17406 | _ACEOF |
| 17407 | rm -f conftest.$ac_objext |
| 17408 | if { (ac_try="$ac_compile" |
| 17409 | case "(($ac_try" in |
| 17410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17411 | *) ac_try_echo=$ac_try;; |
| 17412 | esac |
| 17413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17414 | (eval "$ac_compile") 2>conftest.er1 |
| 17415 | ac_status=$? |
| 17416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17417 | rm -f conftest.er1 |
| 17418 | cat conftest.err >&5 |
| 17419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17420 | (exit $ac_status); } && |
| 17421 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17422 | { (case "(($ac_try" in |
| 17423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17424 | *) ac_try_echo=$ac_try;; |
| 17425 | esac |
| 17426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17427 | (eval "$ac_try") 2>&5 |
| 17428 | ac_status=$? |
| 17429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17430 | (exit $ac_status); }; } && |
| 17431 | { ac_try='test -s conftest.$ac_objext' |
| 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_try") 2>&5 |
| 17438 | ac_status=$? |
| 17439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17440 | (exit $ac_status); }; }; then |
| 17441 | ac_cv_type_pid_t=yes |
| 17442 | else |
| 17443 | echo "$as_me: failed program was:" >&5 |
| 17444 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17445 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17446 | ac_cv_type_pid_t=no |
| 17447 | fi |
| 17448 | |
| 17449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17450 | fi |
| 17451 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 17452 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 17453 | if test $ac_cv_type_pid_t = yes; then |
| 17454 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17455 | else |
| 17456 | |
| 17457 | cat >>confdefs.h <<_ACEOF |
| 17458 | #define pid_t int |
| 17459 | _ACEOF |
| 17460 | |
| 17461 | fi |
| 17462 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17463 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 17464 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 17465 | if test "${ac_cv_type_size_t+set}" = set; then |
| 17466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17467 | else |
| 17468 | cat >conftest.$ac_ext <<_ACEOF |
| 17469 | /* confdefs.h. */ |
| 17470 | _ACEOF |
| 17471 | cat confdefs.h >>conftest.$ac_ext |
| 17472 | cat >>conftest.$ac_ext <<_ACEOF |
| 17473 | /* end confdefs.h. */ |
| 17474 | $ac_includes_default |
| 17475 | typedef size_t ac__type_new_; |
| 17476 | int |
| 17477 | main () |
| 17478 | { |
| 17479 | if ((ac__type_new_ *) 0) |
| 17480 | return 0; |
| 17481 | if (sizeof (ac__type_new_)) |
| 17482 | return 0; |
| 17483 | ; |
| 17484 | return 0; |
| 17485 | } |
| 17486 | _ACEOF |
| 17487 | rm -f conftest.$ac_objext |
| 17488 | if { (ac_try="$ac_compile" |
| 17489 | case "(($ac_try" in |
| 17490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17491 | *) ac_try_echo=$ac_try;; |
| 17492 | esac |
| 17493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17494 | (eval "$ac_compile") 2>conftest.er1 |
| 17495 | ac_status=$? |
| 17496 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17497 | rm -f conftest.er1 |
| 17498 | cat conftest.err >&5 |
| 17499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17500 | (exit $ac_status); } && |
| 17501 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17502 | { (case "(($ac_try" in |
| 17503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17504 | *) ac_try_echo=$ac_try;; |
| 17505 | esac |
| 17506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17507 | (eval "$ac_try") 2>&5 |
| 17508 | ac_status=$? |
| 17509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17510 | (exit $ac_status); }; } && |
| 17511 | { ac_try='test -s conftest.$ac_objext' |
| 17512 | { (case "(($ac_try" in |
| 17513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17514 | *) ac_try_echo=$ac_try;; |
| 17515 | esac |
| 17516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17517 | (eval "$ac_try") 2>&5 |
| 17518 | ac_status=$? |
| 17519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17520 | (exit $ac_status); }; }; then |
| 17521 | ac_cv_type_size_t=yes |
| 17522 | else |
| 17523 | echo "$as_me: failed program was:" >&5 |
| 17524 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17525 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17526 | ac_cv_type_size_t=no |
| 17527 | fi |
| 17528 | |
| 17529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17530 | fi |
| 17531 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 17532 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 17533 | if test $ac_cv_type_size_t = yes; then |
| 17534 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17535 | else |
| 17536 | |
| 17537 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17538 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17539 | _ACEOF |
| 17540 | |
| 17541 | fi |
| 17542 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17543 | |
| 17544 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17545 | #define RETSIGTYPE void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17546 | _ACEOF |
| 17547 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17548 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 17549 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
| 17550 | if test "${ac_cv_struct_tm+set}" = set; then |
| 17551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17552 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17553 | cat >conftest.$ac_ext <<_ACEOF |
| 17554 | /* confdefs.h. */ |
| 17555 | _ACEOF |
| 17556 | cat confdefs.h >>conftest.$ac_ext |
| 17557 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17558 | /* end confdefs.h. */ |
| 17559 | #include <sys/types.h> |
| 17560 | #include <time.h> |
| 17561 | |
| 17562 | int |
| 17563 | main () |
| 17564 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17565 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17566 | ; |
| 17567 | return 0; |
| 17568 | } |
| 17569 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17570 | rm -f conftest.$ac_objext |
| 17571 | if { (ac_try="$ac_compile" |
| 17572 | case "(($ac_try" in |
| 17573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17574 | *) ac_try_echo=$ac_try;; |
| 17575 | esac |
| 17576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17577 | (eval "$ac_compile") 2>conftest.er1 |
| 17578 | ac_status=$? |
| 17579 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17580 | rm -f conftest.er1 |
| 17581 | cat conftest.err >&5 |
| 17582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17583 | (exit $ac_status); } && |
| 17584 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17585 | { (case "(($ac_try" in |
| 17586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17587 | *) ac_try_echo=$ac_try;; |
| 17588 | esac |
| 17589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17590 | (eval "$ac_try") 2>&5 |
| 17591 | ac_status=$? |
| 17592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17593 | (exit $ac_status); }; } && |
| 17594 | { ac_try='test -s conftest.$ac_objext' |
| 17595 | { (case "(($ac_try" in |
| 17596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17597 | *) ac_try_echo=$ac_try;; |
| 17598 | esac |
| 17599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17600 | (eval "$ac_try") 2>&5 |
| 17601 | ac_status=$? |
| 17602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17603 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17604 | ac_cv_struct_tm=time.h |
| 17605 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17606 | echo "$as_me: failed program was:" >&5 |
| 17607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17608 | |
| 17609 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17610 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17611 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17613 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17614 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 17615 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17616 | if test $ac_cv_struct_tm = sys/time.h; then |
| 17617 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17618 | cat >>confdefs.h <<\_ACEOF |
| 17619 | #define TM_IN_SYS_TIME 1 |
| 17620 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17621 | |
| 17622 | fi |
| 17623 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17624 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 17625 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 17626 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 17627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17628 | else |
| 17629 | cat >conftest.$ac_ext <<_ACEOF |
| 17630 | /* confdefs.h. */ |
| 17631 | _ACEOF |
| 17632 | cat confdefs.h >>conftest.$ac_ext |
| 17633 | cat >>conftest.$ac_ext <<_ACEOF |
| 17634 | /* end confdefs.h. */ |
| 17635 | $ac_includes_default |
| 17636 | typedef int64_t ac__type_new_; |
| 17637 | int |
| 17638 | main () |
| 17639 | { |
| 17640 | if ((ac__type_new_ *) 0) |
| 17641 | return 0; |
| 17642 | if (sizeof (ac__type_new_)) |
| 17643 | return 0; |
| 17644 | ; |
| 17645 | return 0; |
| 17646 | } |
| 17647 | _ACEOF |
| 17648 | rm -f conftest.$ac_objext |
| 17649 | if { (ac_try="$ac_compile" |
| 17650 | case "(($ac_try" in |
| 17651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17652 | *) ac_try_echo=$ac_try;; |
| 17653 | esac |
| 17654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17655 | (eval "$ac_compile") 2>conftest.er1 |
| 17656 | ac_status=$? |
| 17657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17658 | rm -f conftest.er1 |
| 17659 | cat conftest.err >&5 |
| 17660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17661 | (exit $ac_status); } && |
| 17662 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17663 | { (case "(($ac_try" in |
| 17664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17665 | *) ac_try_echo=$ac_try;; |
| 17666 | esac |
| 17667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17668 | (eval "$ac_try") 2>&5 |
| 17669 | ac_status=$? |
| 17670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17671 | (exit $ac_status); }; } && |
| 17672 | { ac_try='test -s conftest.$ac_objext' |
| 17673 | { (case "(($ac_try" in |
| 17674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17675 | *) ac_try_echo=$ac_try;; |
| 17676 | esac |
| 17677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17678 | (eval "$ac_try") 2>&5 |
| 17679 | ac_status=$? |
| 17680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17681 | (exit $ac_status); }; }; then |
| 17682 | ac_cv_type_int64_t=yes |
| 17683 | else |
| 17684 | echo "$as_me: failed program was:" >&5 |
| 17685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17686 | |
| 17687 | ac_cv_type_int64_t=no |
| 17688 | fi |
| 17689 | |
| 17690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17691 | fi |
| 17692 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 17693 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 17694 | if test $ac_cv_type_int64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17695 | |
| 17696 | cat >>confdefs.h <<_ACEOF |
| 17697 | #define HAVE_INT64_T 1 |
| 17698 | _ACEOF |
| 17699 | |
| 17700 | |
| 17701 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17702 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 17703 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 17704 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17705 | fi |
| 17706 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17707 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 17708 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 17709 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 17710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17711 | else |
| 17712 | cat >conftest.$ac_ext <<_ACEOF |
| 17713 | /* confdefs.h. */ |
| 17714 | _ACEOF |
| 17715 | cat confdefs.h >>conftest.$ac_ext |
| 17716 | cat >>conftest.$ac_ext <<_ACEOF |
| 17717 | /* end confdefs.h. */ |
| 17718 | $ac_includes_default |
| 17719 | typedef uint64_t ac__type_new_; |
| 17720 | int |
| 17721 | main () |
| 17722 | { |
| 17723 | if ((ac__type_new_ *) 0) |
| 17724 | return 0; |
| 17725 | if (sizeof (ac__type_new_)) |
| 17726 | return 0; |
| 17727 | ; |
| 17728 | return 0; |
| 17729 | } |
| 17730 | _ACEOF |
| 17731 | rm -f conftest.$ac_objext |
| 17732 | if { (ac_try="$ac_compile" |
| 17733 | case "(($ac_try" in |
| 17734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17735 | *) ac_try_echo=$ac_try;; |
| 17736 | esac |
| 17737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17738 | (eval "$ac_compile") 2>conftest.er1 |
| 17739 | ac_status=$? |
| 17740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17741 | rm -f conftest.er1 |
| 17742 | cat conftest.err >&5 |
| 17743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17744 | (exit $ac_status); } && |
| 17745 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17746 | { (case "(($ac_try" in |
| 17747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17748 | *) ac_try_echo=$ac_try;; |
| 17749 | esac |
| 17750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17751 | (eval "$ac_try") 2>&5 |
| 17752 | ac_status=$? |
| 17753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17754 | (exit $ac_status); }; } && |
| 17755 | { ac_try='test -s conftest.$ac_objext' |
| 17756 | { (case "(($ac_try" in |
| 17757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17758 | *) ac_try_echo=$ac_try;; |
| 17759 | esac |
| 17760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17761 | (eval "$ac_try") 2>&5 |
| 17762 | ac_status=$? |
| 17763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17764 | (exit $ac_status); }; }; then |
| 17765 | ac_cv_type_uint64_t=yes |
| 17766 | else |
| 17767 | echo "$as_me: failed program was:" >&5 |
| 17768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17769 | |
| 17770 | ac_cv_type_uint64_t=no |
| 17771 | fi |
| 17772 | |
| 17773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17774 | fi |
| 17775 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 17776 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 17777 | if test $ac_cv_type_uint64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17778 | |
| 17779 | cat >>confdefs.h <<_ACEOF |
| 17780 | #define HAVE_UINT64_T 1 |
| 17781 | _ACEOF |
| 17782 | |
| 17783 | |
| 17784 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17785 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 17786 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
| 17787 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 17788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17789 | else |
| 17790 | cat >conftest.$ac_ext <<_ACEOF |
| 17791 | /* confdefs.h. */ |
| 17792 | _ACEOF |
| 17793 | cat confdefs.h >>conftest.$ac_ext |
| 17794 | cat >>conftest.$ac_ext <<_ACEOF |
| 17795 | /* end confdefs.h. */ |
| 17796 | $ac_includes_default |
| 17797 | typedef u_int64_t ac__type_new_; |
| 17798 | int |
| 17799 | main () |
| 17800 | { |
| 17801 | if ((ac__type_new_ *) 0) |
| 17802 | return 0; |
| 17803 | if (sizeof (ac__type_new_)) |
| 17804 | return 0; |
| 17805 | ; |
| 17806 | return 0; |
| 17807 | } |
| 17808 | _ACEOF |
| 17809 | rm -f conftest.$ac_objext |
| 17810 | if { (ac_try="$ac_compile" |
| 17811 | case "(($ac_try" in |
| 17812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17813 | *) ac_try_echo=$ac_try;; |
| 17814 | esac |
| 17815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17816 | (eval "$ac_compile") 2>conftest.er1 |
| 17817 | ac_status=$? |
| 17818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17819 | rm -f conftest.er1 |
| 17820 | cat conftest.err >&5 |
| 17821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17822 | (exit $ac_status); } && |
| 17823 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17824 | { (case "(($ac_try" in |
| 17825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17826 | *) ac_try_echo=$ac_try;; |
| 17827 | esac |
| 17828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17829 | (eval "$ac_try") 2>&5 |
| 17830 | ac_status=$? |
| 17831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17832 | (exit $ac_status); }; } && |
| 17833 | { ac_try='test -s conftest.$ac_objext' |
| 17834 | { (case "(($ac_try" in |
| 17835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17836 | *) ac_try_echo=$ac_try;; |
| 17837 | esac |
| 17838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17839 | (eval "$ac_try") 2>&5 |
| 17840 | ac_status=$? |
| 17841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17842 | (exit $ac_status); }; }; then |
| 17843 | ac_cv_type_u_int64_t=yes |
| 17844 | else |
| 17845 | echo "$as_me: failed program was:" >&5 |
| 17846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17847 | |
| 17848 | ac_cv_type_u_int64_t=no |
| 17849 | fi |
| 17850 | |
| 17851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17852 | fi |
| 17853 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 17854 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
| 17855 | if test $ac_cv_type_u_int64_t = yes; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 17856 | |
| 17857 | cat >>confdefs.h <<_ACEOF |
| 17858 | #define HAVE_U_INT64_T 1 |
| 17859 | _ACEOF |
| 17860 | |
| 17861 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 17862 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17863 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 17864 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 17865 | { (exit 1); exit 1; }; } |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 17866 | fi |
| 17867 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 17868 | fi |
| 17869 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17870 | |
| 17871 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17872 | |
| 17873 | |
| 17874 | |
| 17875 | |
| 17876 | |
| 17877 | |
| 17878 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17879 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17880 | do |
| 17881 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17882 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17883 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17884 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17886 | else |
| 17887 | cat >conftest.$ac_ext <<_ACEOF |
| 17888 | /* confdefs.h. */ |
| 17889 | _ACEOF |
| 17890 | cat confdefs.h >>conftest.$ac_ext |
| 17891 | cat >>conftest.$ac_ext <<_ACEOF |
| 17892 | /* end confdefs.h. */ |
| 17893 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17894 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17895 | #define $ac_func innocuous_$ac_func |
| 17896 | |
| 17897 | /* System header to define __stub macros and hopefully few prototypes, |
| 17898 | which can conflict with char $ac_func (); below. |
| 17899 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17900 | <limits.h> exists even on freestanding compilers. */ |
| 17901 | |
| 17902 | #ifdef __STDC__ |
| 17903 | # include <limits.h> |
| 17904 | #else |
| 17905 | # include <assert.h> |
| 17906 | #endif |
| 17907 | |
| 17908 | #undef $ac_func |
| 17909 | |
| 17910 | /* Override any GCC internal prototype to avoid an error. |
| 17911 | Use char because int might match the return type of a GCC |
| 17912 | builtin and then its argument prototype would still apply. */ |
| 17913 | #ifdef __cplusplus |
| 17914 | extern "C" |
| 17915 | #endif |
| 17916 | char $ac_func (); |
| 17917 | /* The GNU C library defines this for functions which it implements |
| 17918 | to always fail with ENOSYS. Some functions are actually named |
| 17919 | something starting with __ and the normal name is an alias. */ |
| 17920 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17921 | choke me |
| 17922 | #endif |
| 17923 | |
| 17924 | int |
| 17925 | main () |
| 17926 | { |
| 17927 | return $ac_func (); |
| 17928 | ; |
| 17929 | return 0; |
| 17930 | } |
| 17931 | _ACEOF |
| 17932 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17933 | if { (ac_try="$ac_link" |
| 17934 | case "(($ac_try" in |
| 17935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17936 | *) ac_try_echo=$ac_try;; |
| 17937 | esac |
| 17938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17939 | (eval "$ac_link") 2>conftest.er1 |
| 17940 | ac_status=$? |
| 17941 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17942 | rm -f conftest.er1 |
| 17943 | cat conftest.err >&5 |
| 17944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17945 | (exit $ac_status); } && |
| 17946 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17947 | { (case "(($ac_try" in |
| 17948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17949 | *) ac_try_echo=$ac_try;; |
| 17950 | esac |
| 17951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17952 | (eval "$ac_try") 2>&5 |
| 17953 | ac_status=$? |
| 17954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17955 | (exit $ac_status); }; } && |
| 17956 | { ac_try='test -s conftest$ac_exeext' |
| 17957 | { (case "(($ac_try" in |
| 17958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17959 | *) ac_try_echo=$ac_try;; |
| 17960 | esac |
| 17961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17962 | (eval "$ac_try") 2>&5 |
| 17963 | ac_status=$? |
| 17964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17965 | (exit $ac_status); }; }; then |
| 17966 | eval "$as_ac_var=yes" |
| 17967 | else |
| 17968 | echo "$as_me: failed program was:" >&5 |
| 17969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17970 | |
| 17971 | eval "$as_ac_var=no" |
| 17972 | fi |
| 17973 | |
| 17974 | rm -f core conftest.err conftest.$ac_objext \ |
| 17975 | conftest$ac_exeext conftest.$ac_ext |
| 17976 | fi |
| 17977 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17978 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17979 | echo "${ECHO_T}$ac_res" >&6; } |
| 17980 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17981 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17982 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17983 | _ACEOF |
| 17984 | |
| 17985 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17986 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17987 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17988 | |
| 17989 | |
| 17990 | |
| 17991 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17992 | for ac_func in powf fmodf strtof round |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17993 | do |
| 17994 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17995 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17996 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17997 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17999 | else |
| 18000 | cat >conftest.$ac_ext <<_ACEOF |
| 18001 | /* confdefs.h. */ |
| 18002 | _ACEOF |
| 18003 | cat confdefs.h >>conftest.$ac_ext |
| 18004 | cat >>conftest.$ac_ext <<_ACEOF |
| 18005 | /* end confdefs.h. */ |
| 18006 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18007 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18008 | #define $ac_func innocuous_$ac_func |
| 18009 | |
| 18010 | /* System header to define __stub macros and hopefully few prototypes, |
| 18011 | which can conflict with char $ac_func (); below. |
| 18012 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18013 | <limits.h> exists even on freestanding compilers. */ |
| 18014 | |
| 18015 | #ifdef __STDC__ |
| 18016 | # include <limits.h> |
| 18017 | #else |
| 18018 | # include <assert.h> |
| 18019 | #endif |
| 18020 | |
| 18021 | #undef $ac_func |
| 18022 | |
| 18023 | /* Override any GCC internal prototype to avoid an error. |
| 18024 | Use char because int might match the return type of a GCC |
| 18025 | builtin and then its argument prototype would still apply. */ |
| 18026 | #ifdef __cplusplus |
| 18027 | extern "C" |
| 18028 | #endif |
| 18029 | char $ac_func (); |
| 18030 | /* The GNU C library defines this for functions which it implements |
| 18031 | to always fail with ENOSYS. Some functions are actually named |
| 18032 | something starting with __ and the normal name is an alias. */ |
| 18033 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18034 | choke me |
| 18035 | #endif |
| 18036 | |
| 18037 | int |
| 18038 | main () |
| 18039 | { |
| 18040 | return $ac_func (); |
| 18041 | ; |
| 18042 | return 0; |
| 18043 | } |
| 18044 | _ACEOF |
| 18045 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18046 | if { (ac_try="$ac_link" |
| 18047 | case "(($ac_try" in |
| 18048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18049 | *) ac_try_echo=$ac_try;; |
| 18050 | esac |
| 18051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18052 | (eval "$ac_link") 2>conftest.er1 |
| 18053 | ac_status=$? |
| 18054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18055 | rm -f conftest.er1 |
| 18056 | cat conftest.err >&5 |
| 18057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18058 | (exit $ac_status); } && |
| 18059 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18060 | { (case "(($ac_try" in |
| 18061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18062 | *) ac_try_echo=$ac_try;; |
| 18063 | esac |
| 18064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18065 | (eval "$ac_try") 2>&5 |
| 18066 | ac_status=$? |
| 18067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18068 | (exit $ac_status); }; } && |
| 18069 | { ac_try='test -s conftest$ac_exeext' |
| 18070 | { (case "(($ac_try" in |
| 18071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18072 | *) ac_try_echo=$ac_try;; |
| 18073 | esac |
| 18074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18075 | (eval "$ac_try") 2>&5 |
| 18076 | ac_status=$? |
| 18077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18078 | (exit $ac_status); }; }; then |
| 18079 | eval "$as_ac_var=yes" |
| 18080 | else |
| 18081 | echo "$as_me: failed program was:" >&5 |
| 18082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18083 | |
| 18084 | eval "$as_ac_var=no" |
| 18085 | fi |
| 18086 | |
| 18087 | rm -f core conftest.err conftest.$ac_objext \ |
| 18088 | conftest$ac_exeext conftest.$ac_ext |
| 18089 | fi |
| 18090 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18091 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18092 | echo "${ECHO_T}$ac_res" >&6; } |
| 18093 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 18094 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18095 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 18096 | _ACEOF |
| 18097 | |
| 18098 | fi |
| 18099 | done |
| 18100 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18101 | |
| 18102 | |
| 18103 | |
| 18104 | |
| 18105 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 18106 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18107 | do |
| 18108 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18109 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18110 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18111 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18113 | else |
| 18114 | cat >conftest.$ac_ext <<_ACEOF |
| 18115 | /* confdefs.h. */ |
| 18116 | _ACEOF |
| 18117 | cat confdefs.h >>conftest.$ac_ext |
| 18118 | cat >>conftest.$ac_ext <<_ACEOF |
| 18119 | /* end confdefs.h. */ |
| 18120 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18121 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18122 | #define $ac_func innocuous_$ac_func |
| 18123 | |
| 18124 | /* System header to define __stub macros and hopefully few prototypes, |
| 18125 | which can conflict with char $ac_func (); below. |
| 18126 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18127 | <limits.h> exists even on freestanding compilers. */ |
| 18128 | |
| 18129 | #ifdef __STDC__ |
| 18130 | # include <limits.h> |
| 18131 | #else |
| 18132 | # include <assert.h> |
| 18133 | #endif |
| 18134 | |
| 18135 | #undef $ac_func |
| 18136 | |
| 18137 | /* Override any GCC internal prototype to avoid an error. |
| 18138 | Use char because int might match the return type of a GCC |
| 18139 | builtin and then its argument prototype would still apply. */ |
| 18140 | #ifdef __cplusplus |
| 18141 | extern "C" |
| 18142 | #endif |
| 18143 | char $ac_func (); |
| 18144 | /* The GNU C library defines this for functions which it implements |
| 18145 | to always fail with ENOSYS. Some functions are actually named |
| 18146 | something starting with __ and the normal name is an alias. */ |
| 18147 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18148 | choke me |
| 18149 | #endif |
| 18150 | |
| 18151 | int |
| 18152 | main () |
| 18153 | { |
| 18154 | return $ac_func (); |
| 18155 | ; |
| 18156 | return 0; |
| 18157 | } |
| 18158 | _ACEOF |
| 18159 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18160 | if { (ac_try="$ac_link" |
| 18161 | case "(($ac_try" in |
| 18162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18163 | *) ac_try_echo=$ac_try;; |
| 18164 | esac |
| 18165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18166 | (eval "$ac_link") 2>conftest.er1 |
| 18167 | ac_status=$? |
| 18168 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18169 | rm -f conftest.er1 |
| 18170 | cat conftest.err >&5 |
| 18171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18172 | (exit $ac_status); } && |
| 18173 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18174 | { (case "(($ac_try" in |
| 18175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18176 | *) ac_try_echo=$ac_try;; |
| 18177 | esac |
| 18178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18179 | (eval "$ac_try") 2>&5 |
| 18180 | ac_status=$? |
| 18181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18182 | (exit $ac_status); }; } && |
| 18183 | { ac_try='test -s conftest$ac_exeext' |
| 18184 | { (case "(($ac_try" in |
| 18185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18186 | *) ac_try_echo=$ac_try;; |
| 18187 | esac |
| 18188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18189 | (eval "$ac_try") 2>&5 |
| 18190 | ac_status=$? |
| 18191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18192 | (exit $ac_status); }; }; then |
| 18193 | eval "$as_ac_var=yes" |
| 18194 | else |
| 18195 | echo "$as_me: failed program was:" >&5 |
| 18196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18197 | |
| 18198 | eval "$as_ac_var=no" |
| 18199 | fi |
| 18200 | |
| 18201 | rm -f core conftest.err conftest.$ac_objext \ |
| 18202 | conftest$ac_exeext conftest.$ac_ext |
| 18203 | fi |
| 18204 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18205 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18206 | echo "${ECHO_T}$ac_res" >&6; } |
| 18207 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 18208 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18209 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 18210 | _ACEOF |
| 18211 | |
| 18212 | fi |
| 18213 | done |
| 18214 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18215 | |
| 18216 | |
| 18217 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 18218 | for ac_func in isatty mkdtemp mkstemp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18219 | do |
| 18220 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18221 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18222 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18223 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18225 | else |
| 18226 | cat >conftest.$ac_ext <<_ACEOF |
| 18227 | /* confdefs.h. */ |
| 18228 | _ACEOF |
| 18229 | cat confdefs.h >>conftest.$ac_ext |
| 18230 | cat >>conftest.$ac_ext <<_ACEOF |
| 18231 | /* end confdefs.h. */ |
| 18232 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18233 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18234 | #define $ac_func innocuous_$ac_func |
| 18235 | |
| 18236 | /* System header to define __stub macros and hopefully few prototypes, |
| 18237 | which can conflict with char $ac_func (); below. |
| 18238 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18239 | <limits.h> exists even on freestanding compilers. */ |
| 18240 | |
| 18241 | #ifdef __STDC__ |
| 18242 | # include <limits.h> |
| 18243 | #else |
| 18244 | # include <assert.h> |
| 18245 | #endif |
| 18246 | |
| 18247 | #undef $ac_func |
| 18248 | |
| 18249 | /* Override any GCC internal prototype to avoid an error. |
| 18250 | Use char because int might match the return type of a GCC |
| 18251 | builtin and then its argument prototype would still apply. */ |
| 18252 | #ifdef __cplusplus |
| 18253 | extern "C" |
| 18254 | #endif |
| 18255 | char $ac_func (); |
| 18256 | /* The GNU C library defines this for functions which it implements |
| 18257 | to always fail with ENOSYS. Some functions are actually named |
| 18258 | something starting with __ and the normal name is an alias. */ |
| 18259 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18260 | choke me |
| 18261 | #endif |
| 18262 | |
| 18263 | int |
| 18264 | main () |
| 18265 | { |
| 18266 | return $ac_func (); |
| 18267 | ; |
| 18268 | return 0; |
| 18269 | } |
| 18270 | _ACEOF |
| 18271 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18272 | if { (ac_try="$ac_link" |
| 18273 | case "(($ac_try" in |
| 18274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18275 | *) ac_try_echo=$ac_try;; |
| 18276 | esac |
| 18277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18278 | (eval "$ac_link") 2>conftest.er1 |
| 18279 | ac_status=$? |
| 18280 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18281 | rm -f conftest.er1 |
| 18282 | cat conftest.err >&5 |
| 18283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18284 | (exit $ac_status); } && |
| 18285 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18286 | { (case "(($ac_try" in |
| 18287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18288 | *) ac_try_echo=$ac_try;; |
| 18289 | esac |
| 18290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18291 | (eval "$ac_try") 2>&5 |
| 18292 | ac_status=$? |
| 18293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18294 | (exit $ac_status); }; } && |
| 18295 | { ac_try='test -s conftest$ac_exeext' |
| 18296 | { (case "(($ac_try" in |
| 18297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18298 | *) ac_try_echo=$ac_try;; |
| 18299 | esac |
| 18300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18301 | (eval "$ac_try") 2>&5 |
| 18302 | ac_status=$? |
| 18303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18304 | (exit $ac_status); }; }; then |
| 18305 | eval "$as_ac_var=yes" |
| 18306 | else |
| 18307 | echo "$as_me: failed program was:" >&5 |
| 18308 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18309 | |
| 18310 | eval "$as_ac_var=no" |
| 18311 | fi |
| 18312 | |
| 18313 | rm -f core conftest.err conftest.$ac_objext \ |
| 18314 | conftest$ac_exeext conftest.$ac_ext |
| 18315 | fi |
| 18316 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18317 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18318 | echo "${ECHO_T}$ac_res" >&6; } |
| 18319 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18320 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18321 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18322 | _ACEOF |
| 18323 | |
| 18324 | fi |
| 18325 | done |
| 18326 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18327 | |
| 18328 | |
| 18329 | |
| 18330 | |
| 18331 | |
Eric Christopher | e429182 | 2010-04-16 05:14:21 +0000 | [diff] [blame] | 18332 | |
| 18333 | for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18334 | do |
| 18335 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18336 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18337 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18338 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18340 | else |
| 18341 | cat >conftest.$ac_ext <<_ACEOF |
| 18342 | /* confdefs.h. */ |
| 18343 | _ACEOF |
| 18344 | cat confdefs.h >>conftest.$ac_ext |
| 18345 | cat >>conftest.$ac_ext <<_ACEOF |
| 18346 | /* end confdefs.h. */ |
| 18347 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18348 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18349 | #define $ac_func innocuous_$ac_func |
| 18350 | |
| 18351 | /* System header to define __stub macros and hopefully few prototypes, |
| 18352 | which can conflict with char $ac_func (); below. |
| 18353 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18354 | <limits.h> exists even on freestanding compilers. */ |
| 18355 | |
| 18356 | #ifdef __STDC__ |
| 18357 | # include <limits.h> |
| 18358 | #else |
| 18359 | # include <assert.h> |
| 18360 | #endif |
| 18361 | |
| 18362 | #undef $ac_func |
| 18363 | |
| 18364 | /* Override any GCC internal prototype to avoid an error. |
| 18365 | Use char because int might match the return type of a GCC |
| 18366 | builtin and then its argument prototype would still apply. */ |
| 18367 | #ifdef __cplusplus |
| 18368 | extern "C" |
| 18369 | #endif |
| 18370 | char $ac_func (); |
| 18371 | /* The GNU C library defines this for functions which it implements |
| 18372 | to always fail with ENOSYS. Some functions are actually named |
| 18373 | something starting with __ and the normal name is an alias. */ |
| 18374 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18375 | choke me |
| 18376 | #endif |
| 18377 | |
| 18378 | int |
| 18379 | main () |
| 18380 | { |
| 18381 | return $ac_func (); |
| 18382 | ; |
| 18383 | return 0; |
| 18384 | } |
| 18385 | _ACEOF |
| 18386 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18387 | if { (ac_try="$ac_link" |
| 18388 | case "(($ac_try" in |
| 18389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18390 | *) ac_try_echo=$ac_try;; |
| 18391 | esac |
| 18392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18393 | (eval "$ac_link") 2>conftest.er1 |
| 18394 | ac_status=$? |
| 18395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18396 | rm -f conftest.er1 |
| 18397 | cat conftest.err >&5 |
| 18398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18399 | (exit $ac_status); } && |
| 18400 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18401 | { (case "(($ac_try" in |
| 18402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18403 | *) ac_try_echo=$ac_try;; |
| 18404 | esac |
| 18405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18406 | (eval "$ac_try") 2>&5 |
| 18407 | ac_status=$? |
| 18408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18409 | (exit $ac_status); }; } && |
| 18410 | { ac_try='test -s conftest$ac_exeext' |
| 18411 | { (case "(($ac_try" in |
| 18412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18413 | *) ac_try_echo=$ac_try;; |
| 18414 | esac |
| 18415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18416 | (eval "$ac_try") 2>&5 |
| 18417 | ac_status=$? |
| 18418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18419 | (exit $ac_status); }; }; then |
| 18420 | eval "$as_ac_var=yes" |
| 18421 | else |
| 18422 | echo "$as_me: failed program was:" >&5 |
| 18423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18424 | |
| 18425 | eval "$as_ac_var=no" |
| 18426 | fi |
| 18427 | |
| 18428 | rm -f core conftest.err conftest.$ac_objext \ |
| 18429 | conftest$ac_exeext conftest.$ac_ext |
| 18430 | fi |
| 18431 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18432 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18433 | echo "${ECHO_T}$ac_res" >&6; } |
| 18434 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 18435 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18436 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 18437 | _ACEOF |
| 18438 | |
| 18439 | fi |
| 18440 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18441 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18442 | |
| 18443 | |
| 18444 | |
| 18445 | |
Jeffrey Yasskin | b7a8d40 | 2009-09-25 21:07:20 +0000 | [diff] [blame] | 18446 | for ac_func in strerror strerror_r strerror_s setenv |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18447 | do |
| 18448 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18449 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18450 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18451 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18453 | else |
| 18454 | cat >conftest.$ac_ext <<_ACEOF |
| 18455 | /* confdefs.h. */ |
| 18456 | _ACEOF |
| 18457 | cat confdefs.h >>conftest.$ac_ext |
| 18458 | cat >>conftest.$ac_ext <<_ACEOF |
| 18459 | /* end confdefs.h. */ |
| 18460 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18461 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18462 | #define $ac_func innocuous_$ac_func |
| 18463 | |
| 18464 | /* System header to define __stub macros and hopefully few prototypes, |
| 18465 | which can conflict with char $ac_func (); below. |
| 18466 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18467 | <limits.h> exists even on freestanding compilers. */ |
| 18468 | |
| 18469 | #ifdef __STDC__ |
| 18470 | # include <limits.h> |
| 18471 | #else |
| 18472 | # include <assert.h> |
| 18473 | #endif |
| 18474 | |
| 18475 | #undef $ac_func |
| 18476 | |
| 18477 | /* Override any GCC internal prototype to avoid an error. |
| 18478 | Use char because int might match the return type of a GCC |
| 18479 | builtin and then its argument prototype would still apply. */ |
| 18480 | #ifdef __cplusplus |
| 18481 | extern "C" |
| 18482 | #endif |
| 18483 | char $ac_func (); |
| 18484 | /* The GNU C library defines this for functions which it implements |
| 18485 | to always fail with ENOSYS. Some functions are actually named |
| 18486 | something starting with __ and the normal name is an alias. */ |
| 18487 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18488 | choke me |
| 18489 | #endif |
| 18490 | |
| 18491 | int |
| 18492 | main () |
| 18493 | { |
| 18494 | return $ac_func (); |
| 18495 | ; |
| 18496 | return 0; |
| 18497 | } |
| 18498 | _ACEOF |
| 18499 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18500 | if { (ac_try="$ac_link" |
| 18501 | case "(($ac_try" in |
| 18502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18503 | *) ac_try_echo=$ac_try;; |
| 18504 | esac |
| 18505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18506 | (eval "$ac_link") 2>conftest.er1 |
| 18507 | ac_status=$? |
| 18508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18509 | rm -f conftest.er1 |
| 18510 | cat conftest.err >&5 |
| 18511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18512 | (exit $ac_status); } && |
| 18513 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18514 | { (case "(($ac_try" in |
| 18515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18516 | *) ac_try_echo=$ac_try;; |
| 18517 | esac |
| 18518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18519 | (eval "$ac_try") 2>&5 |
| 18520 | ac_status=$? |
| 18521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18522 | (exit $ac_status); }; } && |
| 18523 | { ac_try='test -s conftest$ac_exeext' |
| 18524 | { (case "(($ac_try" in |
| 18525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18526 | *) ac_try_echo=$ac_try;; |
| 18527 | esac |
| 18528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18529 | (eval "$ac_try") 2>&5 |
| 18530 | ac_status=$? |
| 18531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18532 | (exit $ac_status); }; }; then |
| 18533 | eval "$as_ac_var=yes" |
| 18534 | else |
| 18535 | echo "$as_me: failed program was:" >&5 |
| 18536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18537 | |
| 18538 | eval "$as_ac_var=no" |
| 18539 | fi |
| 18540 | |
| 18541 | rm -f core conftest.err conftest.$ac_objext \ |
| 18542 | conftest$ac_exeext conftest.$ac_ext |
| 18543 | fi |
| 18544 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18545 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18546 | echo "${ECHO_T}$ac_res" >&6; } |
| 18547 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 18548 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18549 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 18550 | _ACEOF |
| 18551 | |
| 18552 | fi |
| 18553 | done |
| 18554 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18555 | |
| 18556 | |
| 18557 | |
| 18558 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 18559 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18560 | do |
| 18561 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18562 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18563 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18564 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18566 | else |
| 18567 | cat >conftest.$ac_ext <<_ACEOF |
| 18568 | /* confdefs.h. */ |
| 18569 | _ACEOF |
| 18570 | cat confdefs.h >>conftest.$ac_ext |
| 18571 | cat >>conftest.$ac_ext <<_ACEOF |
| 18572 | /* end confdefs.h. */ |
| 18573 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18574 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18575 | #define $ac_func innocuous_$ac_func |
| 18576 | |
| 18577 | /* System header to define __stub macros and hopefully few prototypes, |
| 18578 | which can conflict with char $ac_func (); below. |
| 18579 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18580 | <limits.h> exists even on freestanding compilers. */ |
| 18581 | |
| 18582 | #ifdef __STDC__ |
| 18583 | # include <limits.h> |
| 18584 | #else |
| 18585 | # include <assert.h> |
| 18586 | #endif |
| 18587 | |
| 18588 | #undef $ac_func |
| 18589 | |
| 18590 | /* Override any GCC internal prototype to avoid an error. |
| 18591 | Use char because int might match the return type of a GCC |
| 18592 | builtin and then its argument prototype would still apply. */ |
| 18593 | #ifdef __cplusplus |
| 18594 | extern "C" |
| 18595 | #endif |
| 18596 | char $ac_func (); |
| 18597 | /* The GNU C library defines this for functions which it implements |
| 18598 | to always fail with ENOSYS. Some functions are actually named |
| 18599 | something starting with __ and the normal name is an alias. */ |
| 18600 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18601 | choke me |
| 18602 | #endif |
| 18603 | |
| 18604 | int |
| 18605 | main () |
| 18606 | { |
| 18607 | return $ac_func (); |
| 18608 | ; |
| 18609 | return 0; |
| 18610 | } |
| 18611 | _ACEOF |
| 18612 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18613 | if { (ac_try="$ac_link" |
| 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_link") 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_c_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_exeext' |
| 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 |
| 18646 | eval "$as_ac_var=yes" |
| 18647 | else |
| 18648 | echo "$as_me: failed program was:" >&5 |
| 18649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18650 | |
| 18651 | eval "$as_ac_var=no" |
| 18652 | fi |
| 18653 | |
| 18654 | rm -f core conftest.err conftest.$ac_objext \ |
| 18655 | conftest$ac_exeext conftest.$ac_ext |
| 18656 | fi |
| 18657 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18658 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18659 | echo "${ECHO_T}$ac_res" >&6; } |
| 18660 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18661 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18662 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18663 | _ACEOF |
| 18664 | |
| 18665 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18666 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18667 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18668 | |
| 18669 | |
| 18670 | |
| 18671 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 18672 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18673 | do |
| 18674 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18675 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18676 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18677 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18679 | else |
| 18680 | cat >conftest.$ac_ext <<_ACEOF |
| 18681 | /* confdefs.h. */ |
| 18682 | _ACEOF |
| 18683 | cat confdefs.h >>conftest.$ac_ext |
| 18684 | cat >>conftest.$ac_ext <<_ACEOF |
| 18685 | /* end confdefs.h. */ |
| 18686 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18687 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18688 | #define $ac_func innocuous_$ac_func |
| 18689 | |
| 18690 | /* System header to define __stub macros and hopefully few prototypes, |
| 18691 | which can conflict with char $ac_func (); below. |
| 18692 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18693 | <limits.h> exists even on freestanding compilers. */ |
| 18694 | |
| 18695 | #ifdef __STDC__ |
| 18696 | # include <limits.h> |
| 18697 | #else |
| 18698 | # include <assert.h> |
| 18699 | #endif |
| 18700 | |
| 18701 | #undef $ac_func |
| 18702 | |
| 18703 | /* Override any GCC internal prototype to avoid an error. |
| 18704 | Use char because int might match the return type of a GCC |
| 18705 | builtin and then its argument prototype would still apply. */ |
| 18706 | #ifdef __cplusplus |
| 18707 | extern "C" |
| 18708 | #endif |
| 18709 | char $ac_func (); |
| 18710 | /* The GNU C library defines this for functions which it implements |
| 18711 | to always fail with ENOSYS. Some functions are actually named |
| 18712 | something starting with __ and the normal name is an alias. */ |
| 18713 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18714 | choke me |
| 18715 | #endif |
| 18716 | |
| 18717 | int |
| 18718 | main () |
| 18719 | { |
| 18720 | return $ac_func (); |
| 18721 | ; |
| 18722 | return 0; |
| 18723 | } |
| 18724 | _ACEOF |
| 18725 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18726 | if { (ac_try="$ac_link" |
| 18727 | case "(($ac_try" in |
| 18728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18729 | *) ac_try_echo=$ac_try;; |
| 18730 | esac |
| 18731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18732 | (eval "$ac_link") 2>conftest.er1 |
| 18733 | ac_status=$? |
| 18734 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18735 | rm -f conftest.er1 |
| 18736 | cat conftest.err >&5 |
| 18737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18738 | (exit $ac_status); } && |
| 18739 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18740 | { (case "(($ac_try" in |
| 18741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18742 | *) ac_try_echo=$ac_try;; |
| 18743 | esac |
| 18744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18745 | (eval "$ac_try") 2>&5 |
| 18746 | ac_status=$? |
| 18747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18748 | (exit $ac_status); }; } && |
| 18749 | { ac_try='test -s conftest$ac_exeext' |
| 18750 | { (case "(($ac_try" in |
| 18751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18752 | *) ac_try_echo=$ac_try;; |
| 18753 | esac |
| 18754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18755 | (eval "$ac_try") 2>&5 |
| 18756 | ac_status=$? |
| 18757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18758 | (exit $ac_status); }; }; then |
| 18759 | eval "$as_ac_var=yes" |
| 18760 | else |
| 18761 | echo "$as_me: failed program was:" >&5 |
| 18762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18763 | |
| 18764 | eval "$as_ac_var=no" |
| 18765 | fi |
| 18766 | |
| 18767 | rm -f core conftest.err conftest.$ac_objext \ |
| 18768 | conftest$ac_exeext conftest.$ac_ext |
| 18769 | fi |
| 18770 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18771 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18772 | echo "${ECHO_T}$ac_res" >&6; } |
| 18773 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 18774 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18775 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 18776 | _ACEOF |
| 18777 | |
| 18778 | fi |
| 18779 | done |
| 18780 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18781 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 18782 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
| 18783 | if test "${llvm_cv_c_printf_a+set}" = set; then |
| 18784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18785 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18786 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18787 | ac_cpp='$CPP $CPPFLAGS' |
| 18788 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18789 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18790 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18791 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18792 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18793 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18794 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18795 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18796 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18797 | /* confdefs.h. */ |
| 18798 | _ACEOF |
| 18799 | cat confdefs.h >>conftest.$ac_ext |
| 18800 | cat >>conftest.$ac_ext <<_ACEOF |
| 18801 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 18802 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18803 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18804 | #include <stdlib.h> |
| 18805 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18806 | int |
| 18807 | main () |
| 18808 | { |
| 18809 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18810 | volatile double A, B; |
| 18811 | char Buffer[100]; |
| 18812 | A = 1; |
| 18813 | A /= 10.0; |
| 18814 | sprintf(Buffer, "%a", A); |
| 18815 | B = atof(Buffer); |
| 18816 | if (A != B) |
| 18817 | return (1); |
| 18818 | if (A != 0x1.999999999999ap-4) |
| 18819 | return (1); |
| 18820 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18821 | ; |
| 18822 | return 0; |
| 18823 | } |
| 18824 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18825 | rm -f conftest$ac_exeext |
| 18826 | if { (ac_try="$ac_link" |
| 18827 | case "(($ac_try" in |
| 18828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18829 | *) ac_try_echo=$ac_try;; |
| 18830 | esac |
| 18831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18832 | (eval "$ac_link") 2>&5 |
| 18833 | ac_status=$? |
| 18834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18835 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18836 | { (case "(($ac_try" in |
| 18837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18838 | *) ac_try_echo=$ac_try;; |
| 18839 | esac |
| 18840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18841 | (eval "$ac_try") 2>&5 |
| 18842 | ac_status=$? |
| 18843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18844 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18845 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18846 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18847 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18848 | echo "$as_me: failed program was:" >&5 |
| 18849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18850 | |
| 18851 | ( exit $ac_status ) |
| 18852 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18853 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18854 | 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] | 18855 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18856 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18857 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18858 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18859 | ac_cpp='$CPP $CPPFLAGS' |
| 18860 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18861 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18862 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18863 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18864 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18865 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 18866 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18867 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18868 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18869 | cat >>confdefs.h <<\_ACEOF |
| 18870 | #define HAVE_PRINTF_A 1 |
| 18871 | _ACEOF |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18872 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18873 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18874 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18875 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18876 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 18877 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
| 18878 | if test "${ac_cv_func_rand48+set}" = set; then |
| 18879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18880 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18881 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18882 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18883 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18884 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18885 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18886 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18887 | cat >conftest.$ac_ext <<_ACEOF |
| 18888 | /* confdefs.h. */ |
| 18889 | _ACEOF |
| 18890 | cat confdefs.h >>conftest.$ac_ext |
| 18891 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18892 | /* end confdefs.h. */ |
| 18893 | #include <stdlib.h> |
| 18894 | int |
| 18895 | main () |
| 18896 | { |
| 18897 | srand48(0);lrand48();drand48(); |
| 18898 | ; |
| 18899 | return 0; |
| 18900 | } |
| 18901 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18902 | rm -f conftest.$ac_objext |
| 18903 | if { (ac_try="$ac_compile" |
| 18904 | case "(($ac_try" in |
| 18905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18906 | *) ac_try_echo=$ac_try;; |
| 18907 | esac |
| 18908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18909 | (eval "$ac_compile") 2>conftest.er1 |
| 18910 | ac_status=$? |
| 18911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18912 | rm -f conftest.er1 |
| 18913 | cat conftest.err >&5 |
| 18914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18915 | (exit $ac_status); } && |
| 18916 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18917 | { (case "(($ac_try" in |
| 18918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18919 | *) ac_try_echo=$ac_try;; |
| 18920 | esac |
| 18921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18922 | (eval "$ac_try") 2>&5 |
| 18923 | ac_status=$? |
| 18924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18925 | (exit $ac_status); }; } && |
| 18926 | { ac_try='test -s conftest.$ac_objext' |
| 18927 | { (case "(($ac_try" in |
| 18928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18929 | *) ac_try_echo=$ac_try;; |
| 18930 | esac |
| 18931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18932 | (eval "$ac_try") 2>&5 |
| 18933 | ac_status=$? |
| 18934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18935 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18936 | ac_cv_func_rand48=yes |
| 18937 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18938 | echo "$as_me: failed program was:" >&5 |
| 18939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18940 | |
| 18941 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18942 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18943 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18945 | ac_ext=c |
| 18946 | ac_cpp='$CPP $CPPFLAGS' |
| 18947 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18948 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18949 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18950 | |
| 18951 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18952 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 18953 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18954 | |
| 18955 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 18956 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18957 | cat >>confdefs.h <<\_ACEOF |
| 18958 | #define HAVE_RAND48 1 |
| 18959 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18960 | |
| 18961 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 18962 | |
| 18963 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 18964 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18965 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 18966 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
| 18967 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 18968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18969 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18970 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18971 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18972 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18973 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18974 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18975 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18976 | cat >conftest.$ac_ext <<_ACEOF |
| 18977 | /* confdefs.h. */ |
| 18978 | _ACEOF |
| 18979 | cat confdefs.h >>conftest.$ac_ext |
| 18980 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18981 | /* end confdefs.h. */ |
| 18982 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18983 | int |
| 18984 | main () |
| 18985 | { |
| 18986 | float f; isnan(f); |
| 18987 | ; |
| 18988 | return 0; |
| 18989 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18990 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18991 | rm -f conftest.$ac_objext |
| 18992 | if { (ac_try="$ac_compile" |
| 18993 | case "(($ac_try" in |
| 18994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18995 | *) ac_try_echo=$ac_try;; |
| 18996 | esac |
| 18997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18998 | (eval "$ac_compile") 2>conftest.er1 |
| 18999 | ac_status=$? |
| 19000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19001 | rm -f conftest.er1 |
| 19002 | cat conftest.err >&5 |
| 19003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19004 | (exit $ac_status); } && |
| 19005 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19006 | { (case "(($ac_try" in |
| 19007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19008 | *) ac_try_echo=$ac_try;; |
| 19009 | esac |
| 19010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19011 | (eval "$ac_try") 2>&5 |
| 19012 | ac_status=$? |
| 19013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19014 | (exit $ac_status); }; } && |
| 19015 | { ac_try='test -s conftest.$ac_objext' |
| 19016 | { (case "(($ac_try" in |
| 19017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19018 | *) ac_try_echo=$ac_try;; |
| 19019 | esac |
| 19020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19021 | (eval "$ac_try") 2>&5 |
| 19022 | ac_status=$? |
| 19023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19024 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19025 | ac_cv_func_isnan_in_math_h=yes |
| 19026 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19027 | echo "$as_me: failed program was:" >&5 |
| 19028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19029 | |
| 19030 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19031 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19032 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19034 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19035 | ac_cpp='$CPP $CPPFLAGS' |
| 19036 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19037 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19038 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19039 | |
| 19040 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19041 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 19042 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19043 | |
| 19044 | |
| 19045 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19046 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19047 | cat >>confdefs.h <<\_ACEOF |
| 19048 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 19049 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19050 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19051 | fi |
| 19052 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19053 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 19054 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
| 19055 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 19056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19057 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19058 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19059 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19060 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19061 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19062 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19063 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19064 | cat >conftest.$ac_ext <<_ACEOF |
| 19065 | /* confdefs.h. */ |
| 19066 | _ACEOF |
| 19067 | cat confdefs.h >>conftest.$ac_ext |
| 19068 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19069 | /* end confdefs.h. */ |
| 19070 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19071 | int |
| 19072 | main () |
| 19073 | { |
| 19074 | float f; isnan(f); |
| 19075 | ; |
| 19076 | return 0; |
| 19077 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19078 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19079 | rm -f conftest.$ac_objext |
| 19080 | if { (ac_try="$ac_compile" |
| 19081 | case "(($ac_try" in |
| 19082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19083 | *) ac_try_echo=$ac_try;; |
| 19084 | esac |
| 19085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19086 | (eval "$ac_compile") 2>conftest.er1 |
| 19087 | ac_status=$? |
| 19088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19089 | rm -f conftest.er1 |
| 19090 | cat conftest.err >&5 |
| 19091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19092 | (exit $ac_status); } && |
| 19093 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19094 | { (case "(($ac_try" in |
| 19095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19096 | *) ac_try_echo=$ac_try;; |
| 19097 | esac |
| 19098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19099 | (eval "$ac_try") 2>&5 |
| 19100 | ac_status=$? |
| 19101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19102 | (exit $ac_status); }; } && |
| 19103 | { ac_try='test -s conftest.$ac_objext' |
| 19104 | { (case "(($ac_try" in |
| 19105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19106 | *) ac_try_echo=$ac_try;; |
| 19107 | esac |
| 19108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19109 | (eval "$ac_try") 2>&5 |
| 19110 | ac_status=$? |
| 19111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19112 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19113 | ac_cv_func_isnan_in_cmath=yes |
| 19114 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19115 | echo "$as_me: failed program was:" >&5 |
| 19116 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19117 | |
| 19118 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19119 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19120 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19122 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19123 | ac_cpp='$CPP $CPPFLAGS' |
| 19124 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19125 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19126 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19127 | |
| 19128 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19129 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 19130 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19131 | |
| 19132 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19133 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19134 | cat >>confdefs.h <<\_ACEOF |
| 19135 | #define HAVE_ISNAN_IN_CMATH 1 |
| 19136 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19137 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19138 | fi |
| 19139 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19140 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 19141 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
| 19142 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 19143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19144 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19145 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19146 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19147 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19148 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19149 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19150 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19151 | cat >conftest.$ac_ext <<_ACEOF |
| 19152 | /* confdefs.h. */ |
| 19153 | _ACEOF |
| 19154 | cat confdefs.h >>conftest.$ac_ext |
| 19155 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19156 | /* end confdefs.h. */ |
| 19157 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19158 | int |
| 19159 | main () |
| 19160 | { |
| 19161 | float f; std::isnan(f); |
| 19162 | ; |
| 19163 | return 0; |
| 19164 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19165 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19166 | rm -f conftest.$ac_objext |
| 19167 | if { (ac_try="$ac_compile" |
| 19168 | case "(($ac_try" in |
| 19169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19170 | *) ac_try_echo=$ac_try;; |
| 19171 | esac |
| 19172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19173 | (eval "$ac_compile") 2>conftest.er1 |
| 19174 | ac_status=$? |
| 19175 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19176 | rm -f conftest.er1 |
| 19177 | cat conftest.err >&5 |
| 19178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19179 | (exit $ac_status); } && |
| 19180 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19181 | { (case "(($ac_try" in |
| 19182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19183 | *) ac_try_echo=$ac_try;; |
| 19184 | esac |
| 19185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19186 | (eval "$ac_try") 2>&5 |
| 19187 | ac_status=$? |
| 19188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19189 | (exit $ac_status); }; } && |
| 19190 | { ac_try='test -s conftest.$ac_objext' |
| 19191 | { (case "(($ac_try" in |
| 19192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19193 | *) ac_try_echo=$ac_try;; |
| 19194 | esac |
| 19195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19196 | (eval "$ac_try") 2>&5 |
| 19197 | ac_status=$? |
| 19198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19199 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19200 | ac_cv_func_std_isnan_in_cmath=yes |
| 19201 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19202 | echo "$as_me: failed program was:" >&5 |
| 19203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19204 | |
| 19205 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19206 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19207 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19209 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19210 | ac_cpp='$CPP $CPPFLAGS' |
| 19211 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19212 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19213 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19214 | |
| 19215 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19216 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 19217 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19218 | |
| 19219 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19220 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19221 | cat >>confdefs.h <<\_ACEOF |
| 19222 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 19223 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19224 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19225 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 19226 | |
| 19227 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19228 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 19229 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
| 19230 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 19231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19232 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19233 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19234 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19235 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19236 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19237 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19238 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19239 | cat >conftest.$ac_ext <<_ACEOF |
| 19240 | /* confdefs.h. */ |
| 19241 | _ACEOF |
| 19242 | cat confdefs.h >>conftest.$ac_ext |
| 19243 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19244 | /* end confdefs.h. */ |
| 19245 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19246 | int |
| 19247 | main () |
| 19248 | { |
| 19249 | float f; isinf(f); |
| 19250 | ; |
| 19251 | return 0; |
| 19252 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19253 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19254 | rm -f conftest.$ac_objext |
| 19255 | if { (ac_try="$ac_compile" |
| 19256 | case "(($ac_try" in |
| 19257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19258 | *) ac_try_echo=$ac_try;; |
| 19259 | esac |
| 19260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19261 | (eval "$ac_compile") 2>conftest.er1 |
| 19262 | ac_status=$? |
| 19263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19264 | rm -f conftest.er1 |
| 19265 | cat conftest.err >&5 |
| 19266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19267 | (exit $ac_status); } && |
| 19268 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19269 | { (case "(($ac_try" in |
| 19270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19271 | *) ac_try_echo=$ac_try;; |
| 19272 | esac |
| 19273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19274 | (eval "$ac_try") 2>&5 |
| 19275 | ac_status=$? |
| 19276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19277 | (exit $ac_status); }; } && |
| 19278 | { ac_try='test -s conftest.$ac_objext' |
| 19279 | { (case "(($ac_try" in |
| 19280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19281 | *) ac_try_echo=$ac_try;; |
| 19282 | esac |
| 19283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19284 | (eval "$ac_try") 2>&5 |
| 19285 | ac_status=$? |
| 19286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19287 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19288 | ac_cv_func_isinf_in_math_h=yes |
| 19289 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19290 | echo "$as_me: failed program was:" >&5 |
| 19291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19292 | |
| 19293 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19294 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19295 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19297 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19298 | ac_cpp='$CPP $CPPFLAGS' |
| 19299 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19300 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19301 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19302 | |
| 19303 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19304 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 19305 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19306 | |
| 19307 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19308 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19309 | cat >>confdefs.h <<\_ACEOF |
| 19310 | #define HAVE_ISINF_IN_MATH_H 1 |
| 19311 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19312 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19313 | fi |
| 19314 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19315 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 19316 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
| 19317 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 19318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19319 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19320 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19321 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19322 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19323 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19324 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19325 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19326 | cat >conftest.$ac_ext <<_ACEOF |
| 19327 | /* confdefs.h. */ |
| 19328 | _ACEOF |
| 19329 | cat confdefs.h >>conftest.$ac_ext |
| 19330 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19331 | /* end confdefs.h. */ |
| 19332 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19333 | int |
| 19334 | main () |
| 19335 | { |
| 19336 | float f; isinf(f); |
| 19337 | ; |
| 19338 | return 0; |
| 19339 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19340 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19341 | rm -f conftest.$ac_objext |
| 19342 | if { (ac_try="$ac_compile" |
| 19343 | case "(($ac_try" in |
| 19344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19345 | *) ac_try_echo=$ac_try;; |
| 19346 | esac |
| 19347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19348 | (eval "$ac_compile") 2>conftest.er1 |
| 19349 | ac_status=$? |
| 19350 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19351 | rm -f conftest.er1 |
| 19352 | cat conftest.err >&5 |
| 19353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19354 | (exit $ac_status); } && |
| 19355 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19356 | { (case "(($ac_try" in |
| 19357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19358 | *) ac_try_echo=$ac_try;; |
| 19359 | esac |
| 19360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19361 | (eval "$ac_try") 2>&5 |
| 19362 | ac_status=$? |
| 19363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19364 | (exit $ac_status); }; } && |
| 19365 | { ac_try='test -s conftest.$ac_objext' |
| 19366 | { (case "(($ac_try" in |
| 19367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19368 | *) ac_try_echo=$ac_try;; |
| 19369 | esac |
| 19370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19371 | (eval "$ac_try") 2>&5 |
| 19372 | ac_status=$? |
| 19373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19374 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19375 | ac_cv_func_isinf_in_cmath=yes |
| 19376 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19377 | echo "$as_me: failed program was:" >&5 |
| 19378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19379 | |
| 19380 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19381 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19382 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19384 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19385 | ac_cpp='$CPP $CPPFLAGS' |
| 19386 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19387 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19388 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19389 | |
| 19390 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19391 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 19392 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19393 | |
| 19394 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19395 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19396 | cat >>confdefs.h <<\_ACEOF |
| 19397 | #define HAVE_ISINF_IN_CMATH 1 |
| 19398 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19399 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19400 | fi |
| 19401 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19402 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 19403 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
| 19404 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 19405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19406 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19407 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19408 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19409 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19410 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19411 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19412 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19413 | cat >conftest.$ac_ext <<_ACEOF |
| 19414 | /* confdefs.h. */ |
| 19415 | _ACEOF |
| 19416 | cat confdefs.h >>conftest.$ac_ext |
| 19417 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19418 | /* end confdefs.h. */ |
| 19419 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19420 | int |
| 19421 | main () |
| 19422 | { |
| 19423 | float f; std::isinf(f)} |
| 19424 | ; |
| 19425 | return 0; |
| 19426 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19427 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19428 | rm -f conftest.$ac_objext |
| 19429 | if { (ac_try="$ac_compile" |
| 19430 | case "(($ac_try" in |
| 19431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19432 | *) ac_try_echo=$ac_try;; |
| 19433 | esac |
| 19434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19435 | (eval "$ac_compile") 2>conftest.er1 |
| 19436 | ac_status=$? |
| 19437 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19438 | rm -f conftest.er1 |
| 19439 | cat conftest.err >&5 |
| 19440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19441 | (exit $ac_status); } && |
| 19442 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19443 | { (case "(($ac_try" in |
| 19444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19445 | *) ac_try_echo=$ac_try;; |
| 19446 | esac |
| 19447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19448 | (eval "$ac_try") 2>&5 |
| 19449 | ac_status=$? |
| 19450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19451 | (exit $ac_status); }; } && |
| 19452 | { ac_try='test -s conftest.$ac_objext' |
| 19453 | { (case "(($ac_try" in |
| 19454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19455 | *) ac_try_echo=$ac_try;; |
| 19456 | esac |
| 19457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19458 | (eval "$ac_try") 2>&5 |
| 19459 | ac_status=$? |
| 19460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19461 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19462 | ac_cv_func_std_isinf_in_cmath=yes |
| 19463 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19464 | echo "$as_me: failed program was:" >&5 |
| 19465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19466 | |
| 19467 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19468 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19469 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19471 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19472 | ac_cpp='$CPP $CPPFLAGS' |
| 19473 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19474 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19475 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19476 | |
| 19477 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19478 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 19479 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19480 | |
| 19481 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19482 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19483 | cat >>confdefs.h <<\_ACEOF |
| 19484 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 19485 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19486 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19487 | fi |
| 19488 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19489 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 19490 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
| 19491 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 19492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19493 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19494 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19495 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19496 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19497 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19498 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19499 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19500 | cat >conftest.$ac_ext <<_ACEOF |
| 19501 | /* confdefs.h. */ |
| 19502 | _ACEOF |
| 19503 | cat confdefs.h >>conftest.$ac_ext |
| 19504 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19505 | /* end confdefs.h. */ |
| 19506 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19507 | int |
| 19508 | main () |
| 19509 | { |
| 19510 | float f; finite(f); |
| 19511 | ; |
| 19512 | return 0; |
| 19513 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19514 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19515 | rm -f conftest.$ac_objext |
| 19516 | if { (ac_try="$ac_compile" |
| 19517 | case "(($ac_try" in |
| 19518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19519 | *) ac_try_echo=$ac_try;; |
| 19520 | esac |
| 19521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19522 | (eval "$ac_compile") 2>conftest.er1 |
| 19523 | ac_status=$? |
| 19524 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19525 | rm -f conftest.er1 |
| 19526 | cat conftest.err >&5 |
| 19527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19528 | (exit $ac_status); } && |
| 19529 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19530 | { (case "(($ac_try" in |
| 19531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19532 | *) ac_try_echo=$ac_try;; |
| 19533 | esac |
| 19534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19535 | (eval "$ac_try") 2>&5 |
| 19536 | ac_status=$? |
| 19537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19538 | (exit $ac_status); }; } && |
| 19539 | { ac_try='test -s conftest.$ac_objext' |
| 19540 | { (case "(($ac_try" in |
| 19541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19542 | *) ac_try_echo=$ac_try;; |
| 19543 | esac |
| 19544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19545 | (eval "$ac_try") 2>&5 |
| 19546 | ac_status=$? |
| 19547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19548 | (exit $ac_status); }; }; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19549 | ac_cv_func_finite_in_ieeefp_h=yes |
| 19550 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19551 | echo "$as_me: failed program was:" >&5 |
| 19552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19553 | |
| 19554 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19555 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19556 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19558 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19559 | ac_cpp='$CPP $CPPFLAGS' |
| 19560 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19561 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19562 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19563 | |
| 19564 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19565 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 19566 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19567 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 19568 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19569 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19570 | cat >>confdefs.h <<\_ACEOF |
| 19571 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
| 19572 | _ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19573 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19574 | fi |
| 19575 | |
| 19576 | |
| 19577 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19578 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19579 | |
| 19580 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19581 | for ac_header in stdlib.h unistd.h |
| 19582 | do |
| 19583 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19584 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19585 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19586 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19587 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19589 | fi |
| 19590 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19591 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19592 | echo "${ECHO_T}$ac_res" >&6; } |
| 19593 | else |
| 19594 | # Is the header compilable? |
| 19595 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19596 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 19597 | cat >conftest.$ac_ext <<_ACEOF |
| 19598 | /* confdefs.h. */ |
| 19599 | _ACEOF |
| 19600 | cat confdefs.h >>conftest.$ac_ext |
| 19601 | cat >>conftest.$ac_ext <<_ACEOF |
| 19602 | /* end confdefs.h. */ |
| 19603 | $ac_includes_default |
| 19604 | #include <$ac_header> |
| 19605 | _ACEOF |
| 19606 | rm -f conftest.$ac_objext |
| 19607 | if { (ac_try="$ac_compile" |
| 19608 | case "(($ac_try" in |
| 19609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19610 | *) ac_try_echo=$ac_try;; |
| 19611 | esac |
| 19612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19613 | (eval "$ac_compile") 2>conftest.er1 |
| 19614 | ac_status=$? |
| 19615 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19616 | rm -f conftest.er1 |
| 19617 | cat conftest.err >&5 |
| 19618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19619 | (exit $ac_status); } && |
| 19620 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19621 | { (case "(($ac_try" in |
| 19622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19623 | *) ac_try_echo=$ac_try;; |
| 19624 | esac |
| 19625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19626 | (eval "$ac_try") 2>&5 |
| 19627 | ac_status=$? |
| 19628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19629 | (exit $ac_status); }; } && |
| 19630 | { ac_try='test -s conftest.$ac_objext' |
| 19631 | { (case "(($ac_try" in |
| 19632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19633 | *) ac_try_echo=$ac_try;; |
| 19634 | esac |
| 19635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19636 | (eval "$ac_try") 2>&5 |
| 19637 | ac_status=$? |
| 19638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19639 | (exit $ac_status); }; }; then |
| 19640 | ac_header_compiler=yes |
| 19641 | else |
| 19642 | echo "$as_me: failed program was:" >&5 |
| 19643 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19644 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19645 | ac_header_compiler=no |
| 19646 | fi |
| 19647 | |
| 19648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19649 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19650 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 19651 | |
| 19652 | # Is the header present? |
| 19653 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19654 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 19655 | cat >conftest.$ac_ext <<_ACEOF |
| 19656 | /* confdefs.h. */ |
| 19657 | _ACEOF |
| 19658 | cat confdefs.h >>conftest.$ac_ext |
| 19659 | cat >>conftest.$ac_ext <<_ACEOF |
| 19660 | /* end confdefs.h. */ |
| 19661 | #include <$ac_header> |
| 19662 | _ACEOF |
| 19663 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 19664 | case "(($ac_try" in |
| 19665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19666 | *) ac_try_echo=$ac_try;; |
| 19667 | esac |
| 19668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19669 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 19670 | ac_status=$? |
| 19671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19672 | rm -f conftest.er1 |
| 19673 | cat conftest.err >&5 |
| 19674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19675 | (exit $ac_status); } >/dev/null; then |
| 19676 | if test -s conftest.err; then |
| 19677 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 19678 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 19679 | else |
| 19680 | ac_cpp_err= |
| 19681 | fi |
| 19682 | else |
| 19683 | ac_cpp_err=yes |
| 19684 | fi |
| 19685 | if test -z "$ac_cpp_err"; then |
| 19686 | ac_header_preproc=yes |
| 19687 | else |
| 19688 | echo "$as_me: failed program was:" >&5 |
| 19689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19690 | |
| 19691 | ac_header_preproc=no |
| 19692 | fi |
| 19693 | |
| 19694 | rm -f conftest.err conftest.$ac_ext |
| 19695 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19696 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 19697 | |
| 19698 | # So? What about this header? |
| 19699 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 19700 | yes:no: ) |
| 19701 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19702 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 19703 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 19704 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 19705 | ac_header_preproc=yes |
| 19706 | ;; |
| 19707 | no:yes:* ) |
| 19708 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 19709 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 19710 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 19711 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 19712 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 19713 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 19714 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 19715 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 19716 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 19717 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19718 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 19719 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 19720 | ( cat <<\_ASBOX |
| 19721 | ## ----------------------------------- ## |
| 19722 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 19723 | ## ----------------------------------- ## |
| 19724 | _ASBOX |
| 19725 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 19726 | ;; |
| 19727 | esac |
| 19728 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19729 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19730 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19732 | else |
| 19733 | eval "$as_ac_Header=\$ac_header_preproc" |
| 19734 | fi |
| 19735 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19736 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19737 | echo "${ECHO_T}$ac_res" >&6; } |
| 19738 | |
| 19739 | fi |
| 19740 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19741 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19742 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19743 | _ACEOF |
| 19744 | |
| 19745 | fi |
| 19746 | |
| 19747 | done |
| 19748 | |
| 19749 | |
| 19750 | for ac_func in getpagesize |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19751 | do |
| 19752 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19753 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19754 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19755 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19757 | else |
| 19758 | cat >conftest.$ac_ext <<_ACEOF |
| 19759 | /* confdefs.h. */ |
| 19760 | _ACEOF |
| 19761 | cat confdefs.h >>conftest.$ac_ext |
| 19762 | cat >>conftest.$ac_ext <<_ACEOF |
| 19763 | /* end confdefs.h. */ |
| 19764 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19765 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19766 | #define $ac_func innocuous_$ac_func |
| 19767 | |
| 19768 | /* System header to define __stub macros and hopefully few prototypes, |
| 19769 | which can conflict with char $ac_func (); below. |
| 19770 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19771 | <limits.h> exists even on freestanding compilers. */ |
| 19772 | |
| 19773 | #ifdef __STDC__ |
| 19774 | # include <limits.h> |
| 19775 | #else |
| 19776 | # include <assert.h> |
| 19777 | #endif |
| 19778 | |
| 19779 | #undef $ac_func |
| 19780 | |
| 19781 | /* Override any GCC internal prototype to avoid an error. |
| 19782 | Use char because int might match the return type of a GCC |
| 19783 | builtin and then its argument prototype would still apply. */ |
| 19784 | #ifdef __cplusplus |
| 19785 | extern "C" |
| 19786 | #endif |
| 19787 | char $ac_func (); |
| 19788 | /* The GNU C library defines this for functions which it implements |
| 19789 | to always fail with ENOSYS. Some functions are actually named |
| 19790 | something starting with __ and the normal name is an alias. */ |
| 19791 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 19792 | choke me |
| 19793 | #endif |
| 19794 | |
| 19795 | int |
| 19796 | main () |
| 19797 | { |
| 19798 | return $ac_func (); |
| 19799 | ; |
| 19800 | return 0; |
| 19801 | } |
| 19802 | _ACEOF |
| 19803 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19804 | if { (ac_try="$ac_link" |
| 19805 | case "(($ac_try" in |
| 19806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19807 | *) ac_try_echo=$ac_try;; |
| 19808 | esac |
| 19809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19810 | (eval "$ac_link") 2>conftest.er1 |
| 19811 | ac_status=$? |
| 19812 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19813 | rm -f conftest.er1 |
| 19814 | cat conftest.err >&5 |
| 19815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19816 | (exit $ac_status); } && |
| 19817 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19818 | { (case "(($ac_try" in |
| 19819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19820 | *) ac_try_echo=$ac_try;; |
| 19821 | esac |
| 19822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19823 | (eval "$ac_try") 2>&5 |
| 19824 | ac_status=$? |
| 19825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19826 | (exit $ac_status); }; } && |
| 19827 | { ac_try='test -s conftest$ac_exeext' |
| 19828 | { (case "(($ac_try" in |
| 19829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19830 | *) ac_try_echo=$ac_try;; |
| 19831 | esac |
| 19832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19833 | (eval "$ac_try") 2>&5 |
| 19834 | ac_status=$? |
| 19835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19836 | (exit $ac_status); }; }; then |
| 19837 | eval "$as_ac_var=yes" |
| 19838 | else |
| 19839 | echo "$as_me: failed program was:" >&5 |
| 19840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19841 | |
| 19842 | eval "$as_ac_var=no" |
| 19843 | fi |
| 19844 | |
| 19845 | rm -f core conftest.err conftest.$ac_objext \ |
| 19846 | conftest$ac_exeext conftest.$ac_ext |
| 19847 | fi |
| 19848 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19849 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19850 | echo "${ECHO_T}$ac_res" >&6; } |
| 19851 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19852 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19853 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19854 | _ACEOF |
| 19855 | |
| 19856 | fi |
| 19857 | done |
| 19858 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19859 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 19860 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 19861 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 19862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19863 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19864 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19865 | ac_cv_func_mmap_fixed_mapped=no |
| 19866 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19867 | cat >conftest.$ac_ext <<_ACEOF |
| 19868 | /* confdefs.h. */ |
| 19869 | _ACEOF |
| 19870 | cat confdefs.h >>conftest.$ac_ext |
| 19871 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19872 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19873 | $ac_includes_default |
| 19874 | /* malloc might have been renamed as rpl_malloc. */ |
| 19875 | #undef malloc |
| 19876 | |
| 19877 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 19878 | Here is a matrix of mmap possibilities: |
| 19879 | mmap private not fixed |
| 19880 | mmap private fixed at somewhere currently unmapped |
| 19881 | mmap private fixed at somewhere already mapped |
| 19882 | mmap shared not fixed |
| 19883 | mmap shared fixed at somewhere currently unmapped |
| 19884 | mmap shared fixed at somewhere already mapped |
| 19885 | For private mappings, we should verify that changes cannot be read() |
| 19886 | back from the file, nor mmap's back from the file at a different |
| 19887 | address. (There have been systems where private was not correctly |
| 19888 | implemented like the infamous i386 svr4.0, and systems where the |
| 19889 | VM page cache was not coherent with the file system buffer cache |
| 19890 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 19891 | For shared mappings, we should conversely verify that changes get |
| 19892 | propagated back to all the places they're supposed to be. |
| 19893 | |
| 19894 | Grep wants private fixed already mapped. |
| 19895 | The main things grep needs to know about mmap are: |
| 19896 | * does it exist and is it safe to write into the mmap'd area |
| 19897 | * how to use it (BSD variants) */ |
| 19898 | |
| 19899 | #include <fcntl.h> |
| 19900 | #include <sys/mman.h> |
| 19901 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19902 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19903 | char *malloc (); |
| 19904 | #endif |
| 19905 | |
| 19906 | /* This mess was copied from the GNU getpagesize.h. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19907 | #if !HAVE_GETPAGESIZE |
| 19908 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 19909 | # if !HAVE_SYS_PARAM_H |
| 19910 | # define HAVE_SYS_PARAM_H 1 |
| 19911 | # endif |
| 19912 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19913 | # ifdef _SC_PAGESIZE |
| 19914 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 19915 | # else /* no _SC_PAGESIZE */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19916 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19917 | # include <sys/param.h> |
| 19918 | # ifdef EXEC_PAGESIZE |
| 19919 | # define getpagesize() EXEC_PAGESIZE |
| 19920 | # else /* no EXEC_PAGESIZE */ |
| 19921 | # ifdef NBPG |
| 19922 | # define getpagesize() NBPG * CLSIZE |
| 19923 | # ifndef CLSIZE |
| 19924 | # define CLSIZE 1 |
| 19925 | # endif /* no CLSIZE */ |
| 19926 | # else /* no NBPG */ |
| 19927 | # ifdef NBPC |
| 19928 | # define getpagesize() NBPC |
| 19929 | # else /* no NBPC */ |
| 19930 | # ifdef PAGESIZE |
| 19931 | # define getpagesize() PAGESIZE |
| 19932 | # endif /* PAGESIZE */ |
| 19933 | # endif /* no NBPC */ |
| 19934 | # endif /* no NBPG */ |
| 19935 | # endif /* no EXEC_PAGESIZE */ |
| 19936 | # else /* no HAVE_SYS_PARAM_H */ |
| 19937 | # define getpagesize() 8192 /* punt totally */ |
| 19938 | # endif /* no HAVE_SYS_PARAM_H */ |
| 19939 | # endif /* no _SC_PAGESIZE */ |
| 19940 | |
| 19941 | #endif /* no HAVE_GETPAGESIZE */ |
| 19942 | |
| 19943 | int |
| 19944 | main () |
| 19945 | { |
| 19946 | char *data, *data2, *data3; |
| 19947 | int i, pagesize; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19948 | int fd; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19949 | |
| 19950 | pagesize = getpagesize (); |
| 19951 | |
| 19952 | /* First, make a file with some known garbage in it. */ |
| 19953 | data = (char *) malloc (pagesize); |
| 19954 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19955 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19956 | for (i = 0; i < pagesize; ++i) |
| 19957 | *(data + i) = rand (); |
| 19958 | umask (0); |
| 19959 | fd = creat ("conftest.mmap", 0600); |
| 19960 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19961 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19962 | if (write (fd, data, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19963 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19964 | close (fd); |
| 19965 | |
| 19966 | /* Next, try to mmap the file at a fixed address which already has |
| 19967 | something else allocated at it. If we can, also make sure that |
| 19968 | we see the same garbage. */ |
| 19969 | fd = open ("conftest.mmap", O_RDWR); |
| 19970 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19971 | return 1; |
| 19972 | data2 = (char *) malloc (2 * pagesize); |
| 19973 | if (!data2) |
| 19974 | return 1; |
| 19975 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19976 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19977 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19978 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19979 | for (i = 0; i < pagesize; ++i) |
| 19980 | if (*(data + i) != *(data2 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19981 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19982 | |
| 19983 | /* Finally, make sure that changes to the mapped area do not |
| 19984 | percolate back to the file as seen by read(). (This is a bug on |
| 19985 | some variants of i386 svr4.0.) */ |
| 19986 | for (i = 0; i < pagesize; ++i) |
| 19987 | *(data2 + i) = *(data2 + i) + 1; |
| 19988 | data3 = (char *) malloc (pagesize); |
| 19989 | if (!data3) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19990 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19991 | if (read (fd, data3, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19992 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19993 | for (i = 0; i < pagesize; ++i) |
| 19994 | if (*(data + i) != *(data3 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19995 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19996 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19997 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19998 | } |
| 19999 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20000 | rm -f conftest$ac_exeext |
| 20001 | if { (ac_try="$ac_link" |
| 20002 | case "(($ac_try" in |
| 20003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20004 | *) ac_try_echo=$ac_try;; |
| 20005 | esac |
| 20006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20007 | (eval "$ac_link") 2>&5 |
| 20008 | ac_status=$? |
| 20009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20010 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20011 | { (case "(($ac_try" in |
| 20012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20013 | *) ac_try_echo=$ac_try;; |
| 20014 | esac |
| 20015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20016 | (eval "$ac_try") 2>&5 |
| 20017 | ac_status=$? |
| 20018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20019 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20020 | ac_cv_func_mmap_fixed_mapped=yes |
| 20021 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20022 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20023 | echo "$as_me: failed program was:" >&5 |
| 20024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20025 | |
| 20026 | ( exit $ac_status ) |
| 20027 | ac_cv_func_mmap_fixed_mapped=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20028 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20029 | 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] | 20030 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20031 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20032 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20033 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20034 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 20035 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20036 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 20037 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20038 | cat >>confdefs.h <<\_ACEOF |
| 20039 | #define HAVE_MMAP 1 |
| 20040 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20041 | |
| 20042 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20043 | rm -f conftest.mmap |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20044 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20045 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 20046 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
| 20047 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 20048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20049 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20050 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20051 | ac_cpp='$CPP $CPPFLAGS' |
| 20052 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20053 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20054 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20055 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20056 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 20057 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20058 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20059 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20060 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20061 | /* confdefs.h. */ |
| 20062 | _ACEOF |
| 20063 | cat confdefs.h >>conftest.$ac_ext |
| 20064 | cat >>conftest.$ac_ext <<_ACEOF |
| 20065 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20066 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20067 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 20068 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20069 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20070 | |
| 20071 | int |
| 20072 | main () |
| 20073 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20074 | |
| 20075 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20076 | fd = creat ("foo",0777); |
| 20077 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 20078 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 20079 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 20080 | ; |
| 20081 | return 0; |
| 20082 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20083 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20084 | rm -f conftest$ac_exeext |
| 20085 | if { (ac_try="$ac_link" |
| 20086 | case "(($ac_try" in |
| 20087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20088 | *) ac_try_echo=$ac_try;; |
| 20089 | esac |
| 20090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20091 | (eval "$ac_link") 2>&5 |
| 20092 | ac_status=$? |
| 20093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20094 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20095 | { (case "(($ac_try" in |
| 20096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20097 | *) ac_try_echo=$ac_try;; |
| 20098 | esac |
| 20099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20100 | (eval "$ac_try") 2>&5 |
| 20101 | ac_status=$? |
| 20102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20103 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20104 | ac_cv_func_mmap_file=yes |
| 20105 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20106 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20107 | echo "$as_me: failed program was:" >&5 |
| 20108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20109 | |
| 20110 | ( exit $ac_status ) |
| 20111 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20112 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20113 | 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] | 20114 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20115 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20116 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20117 | ac_ext=c |
| 20118 | ac_cpp='$CPP $CPPFLAGS' |
| 20119 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20120 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20121 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20122 | |
| 20123 | |
| 20124 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20125 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 20126 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20127 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 20128 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20129 | cat >>confdefs.h <<\_ACEOF |
| 20130 | #define HAVE_MMAP_FILE |
| 20131 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20132 | |
| 20133 | MMAP_FILE=yes |
| 20134 | |
| 20135 | fi |
| 20136 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20137 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 20138 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
| 20139 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 20140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20141 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 20142 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20143 | ac_cv_need_dev_zero_for_mmap=yes |
| 20144 | else |
| 20145 | ac_cv_need_dev_zero_for_mmap=no |
| 20146 | fi |
| 20147 | |
| 20148 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20149 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 20150 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20151 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 20152 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20153 | cat >>confdefs.h <<\_ACEOF |
| 20154 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 20155 | _ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 20156 | |
| 20157 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20158 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20159 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 20160 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20161 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 20162 | 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] | 20163 | fi |
| 20164 | if test "$ac_cv_func_mmap_file" = "no" |
| 20165 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20166 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 20167 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 20168 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 20169 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20170 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20171 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
| 20172 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20173 | ac_ext=cpp |
| 20174 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20175 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20176 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20177 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20178 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20179 | cat >conftest.$ac_ext <<_ACEOF |
| 20180 | /* confdefs.h. */ |
| 20181 | _ACEOF |
| 20182 | cat confdefs.h >>conftest.$ac_ext |
| 20183 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20184 | /* end confdefs.h. */ |
| 20185 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20186 | volatile unsigned long val = 1; |
| 20187 | __sync_synchronize(); |
| 20188 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 20189 | __sync_add_and_fetch(&val, 1); |
| 20190 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20191 | return 0; |
| 20192 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20193 | |
| 20194 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20195 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20196 | if { (ac_try="$ac_link" |
| 20197 | case "(($ac_try" in |
| 20198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20199 | *) ac_try_echo=$ac_try;; |
| 20200 | esac |
| 20201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20202 | (eval "$ac_link") 2>conftest.er1 |
| 20203 | ac_status=$? |
| 20204 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20205 | rm -f conftest.er1 |
| 20206 | cat conftest.err >&5 |
| 20207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20208 | (exit $ac_status); } && |
| 20209 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20210 | { (case "(($ac_try" in |
| 20211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20212 | *) ac_try_echo=$ac_try;; |
| 20213 | esac |
| 20214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20215 | (eval "$ac_try") 2>&5 |
| 20216 | ac_status=$? |
| 20217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20218 | (exit $ac_status); }; } && |
| 20219 | { ac_try='test -s conftest$ac_exeext' |
| 20220 | { (case "(($ac_try" in |
| 20221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20222 | *) ac_try_echo=$ac_try;; |
| 20223 | esac |
| 20224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20225 | (eval "$ac_try") 2>&5 |
| 20226 | ac_status=$? |
| 20227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20228 | (exit $ac_status); }; }; then |
Eric Christopher | f759841 | 2010-07-28 20:26:43 +0000 | [diff] [blame] | 20229 | ac_ext=c |
| 20230 | ac_cpp='$CPP $CPPFLAGS' |
| 20231 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20232 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20233 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20234 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20235 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20236 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20237 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20238 | cat >>confdefs.h <<\_ACEOF |
| 20239 | #define LLVM_MULTITHREADED 1 |
| 20240 | _ACEOF |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 20241 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20242 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20243 | echo "$as_me: failed program was:" >&5 |
| 20244 | sed 's/^/| /' conftest.$ac_ext >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20245 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20246 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20247 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20248 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20249 | cat >>confdefs.h <<\_ACEOF |
| 20250 | #define LLVM_MULTITHREADED 0 |
| 20251 | _ACEOF |
| 20252 | |
| 20253 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 20254 | 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] | 20255 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20256 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20257 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20258 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20259 | |
Owen Anderson | 009f20a | 2010-07-19 19:24:55 +0000 | [diff] [blame] | 20260 | { echo "$as_me:$LINENO: checking for getsect()" >&5 |
| 20261 | echo $ECHO_N "checking for getsect()... $ECHO_C" >&6; } |
| 20262 | cat >conftest.$ac_ext <<_ACEOF |
| 20263 | /* confdefs.h. */ |
| 20264 | _ACEOF |
| 20265 | cat confdefs.h >>conftest.$ac_ext |
| 20266 | cat >>conftest.$ac_ext <<_ACEOF |
| 20267 | /* end confdefs.h. */ |
| 20268 | #include <mach-o/getsect.h> |
| 20269 | int main() { |
| 20270 | unsigned long p; |
Owen Anderson | 519f179 | 2010-07-19 19:42:01 +0000 | [diff] [blame] | 20271 | return (int)getsect("__DATA","__pass_info", &p); |
Owen Anderson | 009f20a | 2010-07-19 19:24:55 +0000 | [diff] [blame] | 20272 | } |
| 20273 | |
| 20274 | _ACEOF |
| 20275 | rm -f conftest.$ac_objext |
| 20276 | if { (ac_try="$ac_compile" |
| 20277 | case "(($ac_try" in |
| 20278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20279 | *) ac_try_echo=$ac_try;; |
| 20280 | esac |
| 20281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20282 | (eval "$ac_compile") 2>conftest.er1 |
| 20283 | ac_status=$? |
| 20284 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20285 | rm -f conftest.er1 |
| 20286 | cat conftest.err >&5 |
| 20287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20288 | (exit $ac_status); } && |
| 20289 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 20296 | ac_status=$? |
| 20297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20298 | (exit $ac_status); }; } && |
| 20299 | { ac_try='test -s conftest.$ac_objext' |
| 20300 | { (case "(($ac_try" in |
| 20301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20302 | *) ac_try_echo=$ac_try;; |
| 20303 | esac |
| 20304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20305 | (eval "$ac_try") 2>&5 |
| 20306 | ac_status=$? |
| 20307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20308 | (exit $ac_status); }; }; then |
| 20309 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20310 | echo "${ECHO_T}yes" >&6; } |
| 20311 | |
| 20312 | cat >>confdefs.h <<\_ACEOF |
| 20313 | #define HAVE_GETSECT 1 |
| 20314 | _ACEOF |
| 20315 | |
| 20316 | else |
| 20317 | echo "$as_me: failed program was:" >&5 |
| 20318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20319 | |
| 20320 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20321 | echo "${ECHO_T}no" >&6; } |
| 20322 | |
| 20323 | cat >>confdefs.h <<\_ACEOF |
| 20324 | #define HAVE_GETSECT 1 |
| 20325 | _ACEOF |
| 20326 | |
| 20327 | |
| 20328 | fi |
| 20329 | |
| 20330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20331 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 20332 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20333 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20334 | 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] | 20335 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 20336 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 20337 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 20338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20339 | else |
| 20340 | ac_ext=c |
| 20341 | ac_cpp='$CPP $CPPFLAGS' |
| 20342 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20343 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20344 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20345 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20346 | cat >conftest.$ac_ext <<_ACEOF |
| 20347 | /* confdefs.h. */ |
| 20348 | _ACEOF |
| 20349 | cat confdefs.h >>conftest.$ac_ext |
| 20350 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20351 | /* end confdefs.h. */ |
| 20352 | #ifndef __x86_64__ |
| 20353 | error: Not x86-64 even if uname says so! |
| 20354 | #endif |
| 20355 | |
| 20356 | int |
| 20357 | main () |
| 20358 | { |
| 20359 | |
| 20360 | ; |
| 20361 | return 0; |
| 20362 | } |
| 20363 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20364 | rm -f conftest.$ac_objext |
| 20365 | if { (ac_try="$ac_compile" |
| 20366 | case "(($ac_try" in |
| 20367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20368 | *) ac_try_echo=$ac_try;; |
| 20369 | esac |
| 20370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20371 | (eval "$ac_compile") 2>conftest.er1 |
| 20372 | ac_status=$? |
| 20373 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20374 | rm -f conftest.er1 |
| 20375 | cat conftest.err >&5 |
| 20376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20377 | (exit $ac_status); } && |
| 20378 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20379 | { (case "(($ac_try" in |
| 20380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20381 | *) ac_try_echo=$ac_try;; |
| 20382 | esac |
| 20383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20384 | (eval "$ac_try") 2>&5 |
| 20385 | ac_status=$? |
| 20386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20387 | (exit $ac_status); }; } && |
| 20388 | { ac_try='test -s conftest.$ac_objext' |
| 20389 | { (case "(($ac_try" in |
| 20390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20391 | *) ac_try_echo=$ac_try;; |
| 20392 | esac |
| 20393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20394 | (eval "$ac_try") 2>&5 |
| 20395 | ac_status=$? |
| 20396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20397 | (exit $ac_status); }; }; then |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20398 | llvm_cv_linux_mixed=no |
| 20399 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20400 | echo "$as_me: failed program was:" >&5 |
| 20401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20402 | |
| 20403 | llvm_cv_linux_mixed=yes |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20404 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20405 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20407 | ac_ext=c |
| 20408 | ac_cpp='$CPP $CPPFLAGS' |
| 20409 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20410 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20411 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20412 | |
| 20413 | |
| 20414 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20415 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 20416 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 20417 | |
| 20418 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 20419 | llvm_cv_target_arch="x86" |
| 20420 | ARCH="x86" |
| 20421 | fi |
| 20422 | fi |
| 20423 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20424 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20425 | for ac_func in __dso_handle |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20426 | do |
| 20427 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20428 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20429 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20430 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20432 | else |
| 20433 | cat >conftest.$ac_ext <<_ACEOF |
| 20434 | /* confdefs.h. */ |
| 20435 | _ACEOF |
| 20436 | cat confdefs.h >>conftest.$ac_ext |
| 20437 | cat >>conftest.$ac_ext <<_ACEOF |
| 20438 | /* end confdefs.h. */ |
| 20439 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20440 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20441 | #define $ac_func innocuous_$ac_func |
| 20442 | |
| 20443 | /* System header to define __stub macros and hopefully few prototypes, |
| 20444 | which can conflict with char $ac_func (); below. |
| 20445 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20446 | <limits.h> exists even on freestanding compilers. */ |
| 20447 | |
| 20448 | #ifdef __STDC__ |
| 20449 | # include <limits.h> |
| 20450 | #else |
| 20451 | # include <assert.h> |
| 20452 | #endif |
| 20453 | |
| 20454 | #undef $ac_func |
| 20455 | |
| 20456 | /* Override any GCC internal prototype to avoid an error. |
| 20457 | Use char because int might match the return type of a GCC |
| 20458 | builtin and then its argument prototype would still apply. */ |
| 20459 | #ifdef __cplusplus |
| 20460 | extern "C" |
| 20461 | #endif |
| 20462 | char $ac_func (); |
| 20463 | /* The GNU C library defines this for functions which it implements |
| 20464 | to always fail with ENOSYS. Some functions are actually named |
| 20465 | something starting with __ and the normal name is an alias. */ |
| 20466 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20467 | choke me |
| 20468 | #endif |
| 20469 | |
| 20470 | int |
| 20471 | main () |
| 20472 | { |
| 20473 | return $ac_func (); |
| 20474 | ; |
| 20475 | return 0; |
| 20476 | } |
| 20477 | _ACEOF |
| 20478 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20479 | if { (ac_try="$ac_link" |
| 20480 | case "(($ac_try" in |
| 20481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20482 | *) ac_try_echo=$ac_try;; |
| 20483 | esac |
| 20484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20485 | (eval "$ac_link") 2>conftest.er1 |
| 20486 | ac_status=$? |
| 20487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20488 | rm -f conftest.er1 |
| 20489 | cat conftest.err >&5 |
| 20490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20491 | (exit $ac_status); } && |
| 20492 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20493 | { (case "(($ac_try" in |
| 20494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20495 | *) ac_try_echo=$ac_try;; |
| 20496 | esac |
| 20497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20498 | (eval "$ac_try") 2>&5 |
| 20499 | ac_status=$? |
| 20500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20501 | (exit $ac_status); }; } && |
| 20502 | { ac_try='test -s conftest$ac_exeext' |
| 20503 | { (case "(($ac_try" in |
| 20504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20505 | *) ac_try_echo=$ac_try;; |
| 20506 | esac |
| 20507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20508 | (eval "$ac_try") 2>&5 |
| 20509 | ac_status=$? |
| 20510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20511 | (exit $ac_status); }; }; then |
| 20512 | eval "$as_ac_var=yes" |
| 20513 | else |
| 20514 | echo "$as_me: failed program was:" >&5 |
| 20515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20516 | |
| 20517 | eval "$as_ac_var=no" |
| 20518 | fi |
| 20519 | |
| 20520 | rm -f core conftest.err conftest.$ac_objext \ |
| 20521 | conftest$ac_exeext conftest.$ac_ext |
| 20522 | fi |
| 20523 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20524 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20525 | echo "${ECHO_T}$ac_res" >&6; } |
| 20526 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20527 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20528 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20529 | _ACEOF |
| 20530 | |
| 20531 | fi |
| 20532 | done |
| 20533 | |
| 20534 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20535 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 20536 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
| 20537 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 20538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20539 | else |
| 20540 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 20541 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20542 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 20543 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 20544 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20545 | if test $? -eq 0 ; then |
| 20546 | llvm_cv_llvmgcc_sanity="yes" |
| 20547 | fi |
| 20548 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 20549 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20550 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20551 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 20552 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20553 | |
| 20554 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20555 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 20556 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 20557 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20558 | LLVMCC1=$llvmcc1path |
| 20559 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 20560 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20561 | LLVMCC1PLUS=$llvmcc1pluspath |
| 20562 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 20563 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 20564 | LLVMGCCDIR=$llvmgccdir |
| 20565 | |
Tanya Lattner | f85e74c | 2008-10-07 22:21:03 +0000 | [diff] [blame] | 20566 | 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] | 20567 | LLVMGCC_LANGS=$llvmgcclangs |
| 20568 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20569 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 20570 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 20571 | fi |
| 20572 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20573 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 20574 | |
| 20575 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 20576 | SHLIBPATH_VAR=$libltdl_cv_shlibpath_var |
| 20577 | |
| 20578 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20579 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20580 | # information into substitutions that will end up in Makefile.config.in |
| 20581 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 20582 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 20583 | prefix="/usr/local" |
| 20584 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20585 | eval LLVM_PREFIX="${prefix}"; |
| 20586 | eval LLVM_BINDIR="${prefix}/bin"; |
| 20587 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20588 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
Eric Christopher | ec27496 | 2010-03-02 05:17:21 +0000 | [diff] [blame] | 20589 | eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20590 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20591 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 20592 | eval LLVM_INFODIR="${prefix}/info"; |
| 20593 | eval LLVM_MANDIR="${prefix}/man"; |
| 20594 | LLVM_CONFIGTIME=`date` |
| 20595 | |
| 20596 | |
| 20597 | |
| 20598 | |
| 20599 | |
| 20600 | |
| 20601 | |
| 20602 | |
| 20603 | |
| 20604 | |
| 20605 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20606 | # Place the various directores into the config.h file as #defines so that we |
| 20607 | # can know about the installation paths within LLVM. |
| 20608 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20609 | cat >>confdefs.h <<_ACEOF |
| 20610 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 20611 | _ACEOF |
| 20612 | |
| 20613 | |
| 20614 | cat >>confdefs.h <<_ACEOF |
| 20615 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 20616 | _ACEOF |
| 20617 | |
| 20618 | |
| 20619 | cat >>confdefs.h <<_ACEOF |
| 20620 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 20621 | _ACEOF |
| 20622 | |
| 20623 | |
| 20624 | cat >>confdefs.h <<_ACEOF |
| 20625 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 20626 | _ACEOF |
| 20627 | |
| 20628 | |
| 20629 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 20630 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20631 | _ACEOF |
| 20632 | |
| 20633 | |
| 20634 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 20635 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20636 | _ACEOF |
| 20637 | |
| 20638 | |
| 20639 | cat >>confdefs.h <<_ACEOF |
| 20640 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 20641 | _ACEOF |
| 20642 | |
| 20643 | |
| 20644 | cat >>confdefs.h <<_ACEOF |
| 20645 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 20646 | _ACEOF |
| 20647 | |
| 20648 | |
| 20649 | cat >>confdefs.h <<_ACEOF |
| 20650 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 20651 | _ACEOF |
| 20652 | |
| 20653 | |
| 20654 | cat >>confdefs.h <<_ACEOF |
| 20655 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 20656 | _ACEOF |
| 20657 | |
| 20658 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 20659 | cat >>confdefs.h <<_ACEOF |
| 20660 | #define LLVM_HOSTTRIPLE "$host" |
| 20661 | _ACEOF |
| 20662 | |
| 20663 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 20664 | # Determine which bindings to build. |
| 20665 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 20666 | BINDINGS_TO_BUILD="" |
| 20667 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 20668 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 20669 | fi |
| 20670 | fi |
| 20671 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 20672 | |
| 20673 | |
| 20674 | # This isn't really configurey, but it avoids having to repeat the list in |
| 20675 | # other files. |
| 20676 | ALL_BINDINGS=ocaml |
| 20677 | |
| 20678 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20679 | # Do any work necessary to ensure that bindings have what they need. |
| 20680 | binding_prereqs_failed=0 |
| 20681 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 20682 | case "$a_binding" in |
| 20683 | ocaml) |
| 20684 | if test "x$OCAMLC" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20685 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 20686 | 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] | 20687 | binding_prereqs_failed=1 |
| 20688 | fi |
| 20689 | if test "x$OCAMLDEP" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20690 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 20691 | 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] | 20692 | binding_prereqs_failed=1 |
| 20693 | fi |
| 20694 | if test "x$OCAMLOPT" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20695 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 20696 | 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] | 20697 | fi |
| 20698 | if test "x$with_ocaml_libdir" != xauto ; then |
| 20699 | OCAML_LIBDIR=$with_ocaml_libdir |
| 20700 | |
| 20701 | else |
| 20702 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 20703 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 20704 | then |
| 20705 | # ocaml stdlib is beneath our prefix; use stdlib |
| 20706 | OCAML_LIBDIR=$ocaml_stdlib |
| 20707 | |
| 20708 | else |
| 20709 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 20710 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 20711 | |
| 20712 | fi |
| 20713 | fi |
| 20714 | ;; |
| 20715 | esac |
| 20716 | done |
| 20717 | if test "$binding_prereqs_failed" = 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20718 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 20719 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 20720 | { (exit 1); exit 1; }; } |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20721 | fi |
| 20722 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20723 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 20724 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 20725 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 20726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20727 | else |
| 20728 | ac_ext=cpp |
| 20729 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20730 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20731 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20732 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20733 | |
| 20734 | oldcxxflags="$CXXFLAGS" |
| 20735 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20736 | cat >conftest.$ac_ext <<_ACEOF |
| 20737 | /* confdefs.h. */ |
| 20738 | _ACEOF |
| 20739 | cat confdefs.h >>conftest.$ac_ext |
| 20740 | cat >>conftest.$ac_ext <<_ACEOF |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20741 | /* end confdefs.h. */ |
| 20742 | |
| 20743 | int |
| 20744 | main () |
| 20745 | { |
| 20746 | |
| 20747 | ; |
| 20748 | return 0; |
| 20749 | } |
| 20750 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20751 | rm -f conftest.$ac_objext |
| 20752 | if { (ac_try="$ac_compile" |
| 20753 | case "(($ac_try" in |
| 20754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20755 | *) ac_try_echo=$ac_try;; |
| 20756 | esac |
| 20757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20758 | (eval "$ac_compile") 2>conftest.er1 |
| 20759 | ac_status=$? |
| 20760 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20761 | rm -f conftest.er1 |
| 20762 | cat conftest.err >&5 |
| 20763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20764 | (exit $ac_status); } && |
| 20765 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 20766 | { (case "(($ac_try" in |
| 20767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20768 | *) ac_try_echo=$ac_try;; |
| 20769 | esac |
| 20770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20771 | (eval "$ac_try") 2>&5 |
| 20772 | ac_status=$? |
| 20773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20774 | (exit $ac_status); }; } && |
| 20775 | { ac_try='test -s conftest.$ac_objext' |
| 20776 | { (case "(($ac_try" in |
| 20777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20778 | *) ac_try_echo=$ac_try;; |
| 20779 | esac |
| 20780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20781 | (eval "$ac_try") 2>&5 |
| 20782 | ac_status=$? |
| 20783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20784 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20785 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 20786 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20787 | echo "$as_me: failed program was:" >&5 |
| 20788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20789 | |
| 20790 | llvm_cv_cxx_visibility_inlines_hidden=no |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20791 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20792 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20794 | CXXFLAGS="$oldcxxflags" |
| 20795 | ac_ext=c |
| 20796 | ac_cpp='$CPP $CPPFLAGS' |
| 20797 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20798 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20799 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20800 | |
| 20801 | |
| 20802 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20803 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 20804 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20805 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 20806 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 20807 | |
| 20808 | else |
| 20809 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 20810 | |
| 20811 | fi |
| 20812 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20813 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 20814 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 20815 | RPATH="-Wl,-R" |
| 20816 | else |
| 20817 | RPATH="-Wl,-rpath" |
| 20818 | fi |
| 20819 | |
| 20820 | |
| 20821 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 20822 | RDYNAMIC="-Wl,-export-dynamic" |
| 20823 | else |
| 20824 | RDYNAMIC="" |
| 20825 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 20826 | |
| 20827 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20828 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20829 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20830 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 20831 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 20832 | |
| 20833 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 20834 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 20835 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 20836 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 20837 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" |
| 20838 | |
Chandler Carruth | 8b67f77 | 2009-10-26 01:35:46 +0000 | [diff] [blame] | 20839 | ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20840 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20841 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20842 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20843 | |
| 20844 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 20845 | ac_config_files="$ac_config_files llvm.spec" |
| 20846 | |
| 20847 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 20848 | ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td" |
| 20849 | |
| 20850 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20851 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 20852 | |
| 20853 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20854 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 20855 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20856 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20857 | |
| 20858 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20859 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20860 | |
| 20861 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20862 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20863 | |
| 20864 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20865 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20866 | |
| 20867 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 20868 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 20869 | |
| 20870 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20871 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20872 | |
| 20873 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20874 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20875 | |
| 20876 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 20877 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 20878 | |
| 20879 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20880 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20881 | |
| 20882 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20883 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20884 | |
| 20885 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20886 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20887 | |
| 20888 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 20889 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 20890 | |
| 20891 | |
| 20892 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 20893 | |
| 20894 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20895 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20896 | cat >confcache <<\_ACEOF |
| 20897 | # This file is a shell script that caches the results of configure |
| 20898 | # tests run on this system so they can be shared between configure |
| 20899 | # scripts and configure runs, see configure's option --config-cache. |
| 20900 | # It is not useful on other systems. If it contains results you don't |
| 20901 | # want to keep, you may remove or edit it. |
| 20902 | # |
| 20903 | # config.status only pays attention to the cache file if you give it |
| 20904 | # the --recheck option to rerun configure. |
| 20905 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20906 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20907 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20908 | # following values. |
| 20909 | |
| 20910 | _ACEOF |
| 20911 | |
| 20912 | # The following way of writing the cache mishandles newlines in values, |
| 20913 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20914 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20915 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20916 | # 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] | 20917 | ( |
| 20918 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 20919 | eval ac_val=\$$ac_var |
| 20920 | case $ac_val in #( |
| 20921 | *${as_nl}*) |
| 20922 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20923 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 20924 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20925 | esac |
| 20926 | case $ac_var in #( |
| 20927 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20928 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20929 | esac ;; |
| 20930 | esac |
| 20931 | done |
| 20932 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20933 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20934 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 20935 | *${as_nl}ac_space=\ *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20936 | # `set' does not quote correctly, so add quotes (double-quote |
| 20937 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20938 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20939 | "s/'/'\\\\''/g; |
| 20940 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20941 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20942 | *) |
| 20943 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20944 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20945 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20946 | esac | |
| 20947 | sort |
| 20948 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20949 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20950 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20951 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20952 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20953 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 20954 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20955 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20956 | :end' >>confcache |
| 20957 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 20958 | if test -w "$cache_file"; then |
| 20959 | test "x$cache_file" != "x/dev/null" && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20960 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 20961 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20962 | cat confcache >$cache_file |
| 20963 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20964 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 20965 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20966 | fi |
| 20967 | fi |
| 20968 | rm -f confcache |
| 20969 | |
| 20970 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20971 | # Let make expand exec_prefix. |
| 20972 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 20973 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20974 | DEFS=-DHAVE_CONFIG_H |
| 20975 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20976 | ac_libobjs= |
| 20977 | ac_ltlibobjs= |
| 20978 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20979 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20980 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20981 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20982 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 20983 | # will be set to the directory where LIBOBJS objects are built. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20984 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 20985 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20986 | done |
| 20987 | LIBOBJS=$ac_libobjs |
| 20988 | |
| 20989 | LTLIBOBJS=$ac_ltlibobjs |
| 20990 | |
| 20991 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20992 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20993 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 20994 | Usually this means the macro was only invoked conditionally." >&5 |
| 20995 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 20996 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20997 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20998 | fi |
| 20999 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21000 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 21001 | Usually this means the macro was only invoked conditionally." >&5 |
| 21002 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 21003 | Usually this means the macro was only invoked conditionally." >&2;} |
| 21004 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 21005 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21006 | |
| 21007 | : ${CONFIG_STATUS=./config.status} |
| 21008 | ac_clean_files_save=$ac_clean_files |
| 21009 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21010 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 21011 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 21012 | cat >$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21013 | #! $SHELL |
| 21014 | # Generated by $as_me. |
| 21015 | # Run this file to recreate the current configuration. |
| 21016 | # Compiler output produced by configure, useful for debugging |
| 21017 | # configure, is in config.log if it exists. |
| 21018 | |
| 21019 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21020 | ac_cs_recheck=false |
| 21021 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21022 | SHELL=\${CONFIG_SHELL-$SHELL} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21023 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21024 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21025 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21026 | ## --------------------- ## |
| 21027 | ## M4sh Initialization. ## |
| 21028 | ## --------------------- ## |
| 21029 | |
| 21030 | # Be Bourne compatible |
| 21031 | 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] | 21032 | emulate sh |
| 21033 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21034 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21035 | # is contrary to our usage. Disable this feature. |
| 21036 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21037 | setopt NO_GLOB_SUBST |
| 21038 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21039 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21040 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21041 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 21042 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21043 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21044 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21045 | # PATH needs CR |
| 21046 | # Avoid depending upon Character Ranges. |
| 21047 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 21048 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 21049 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 21050 | as_cr_digits='0123456789' |
| 21051 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21052 | |
| 21053 | # The user is always right. |
| 21054 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21055 | echo "#! /bin/sh" >conf$$.sh |
| 21056 | echo "exit 0" >>conf$$.sh |
| 21057 | chmod +x conf$$.sh |
| 21058 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 21059 | PATH_SEPARATOR=';' |
| 21060 | else |
| 21061 | PATH_SEPARATOR=: |
| 21062 | fi |
| 21063 | rm -f conf$$.sh |
| 21064 | fi |
| 21065 | |
| 21066 | # Support unset when possible. |
| 21067 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 21068 | as_unset=unset |
| 21069 | else |
| 21070 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21071 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21072 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21073 | |
| 21074 | # IFS |
| 21075 | # We need space, tab and new line, in precisely that order. Quoting is |
| 21076 | # there to prevent editors from complaining about space-tab. |
| 21077 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 21078 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21079 | as_nl=' |
| 21080 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21081 | IFS=" "" $as_nl" |
| 21082 | |
| 21083 | # 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] | 21084 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21085 | *[\\/]* ) as_myself=$0 ;; |
| 21086 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21087 | for as_dir in $PATH |
| 21088 | do |
| 21089 | IFS=$as_save_IFS |
| 21090 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21091 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 21092 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21093 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21094 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21095 | ;; |
| 21096 | esac |
| 21097 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 21098 | # in which case we are not to be found in the path. |
| 21099 | if test "x$as_myself" = x; then |
| 21100 | as_myself=$0 |
| 21101 | fi |
| 21102 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21103 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 21104 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21105 | fi |
| 21106 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21107 | # Work around bugs in pre-3.0 UWIN ksh. |
| 21108 | for as_var in ENV MAIL MAILPATH |
| 21109 | 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] | 21110 | done |
| 21111 | PS1='$ ' |
| 21112 | PS2='> ' |
| 21113 | PS4='+ ' |
| 21114 | |
| 21115 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21116 | for as_var in \ |
| 21117 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 21118 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 21119 | LC_TELEPHONE LC_TIME |
| 21120 | do |
| 21121 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 21122 | eval $as_var=C; export $as_var |
| 21123 | else |
| 21124 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21125 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21126 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 21127 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21128 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21129 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 21130 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 21131 | as_expr=expr |
| 21132 | else |
| 21133 | as_expr=false |
| 21134 | fi |
| 21135 | |
| 21136 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 21137 | as_basename=basename |
| 21138 | else |
| 21139 | as_basename=false |
| 21140 | fi |
| 21141 | |
| 21142 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21143 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21144 | as_me=`$as_basename -- "$0" || |
| 21145 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 21146 | X"$0" : 'X\(//\)$' \| \ |
| 21147 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21148 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21149 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 21150 | s//\1/ |
| 21151 | q |
| 21152 | } |
| 21153 | /^X\/\(\/\/\)$/{ |
| 21154 | s//\1/ |
| 21155 | q |
| 21156 | } |
| 21157 | /^X\/\(\/\).*/{ |
| 21158 | s//\1/ |
| 21159 | q |
| 21160 | } |
| 21161 | s/.*/./; q'` |
| 21162 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21163 | # CDPATH. |
| 21164 | $as_unset CDPATH |
| 21165 | |
| 21166 | |
| 21167 | |
| 21168 | as_lineno_1=$LINENO |
| 21169 | as_lineno_2=$LINENO |
| 21170 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 21171 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 21172 | |
| 21173 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 21174 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 21175 | # line-number line after each line using $LINENO; the second 'sed' |
| 21176 | # does the real work. The second script uses 'N' to pair each |
| 21177 | # line-number line with the line containing $LINENO, and appends |
| 21178 | # trailing '-' during substitution so that $LINENO is not a special |
| 21179 | # case at line end. |
| 21180 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 21181 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 21182 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 21183 | sed -n ' |
| 21184 | p |
| 21185 | /[$]LINENO/= |
| 21186 | ' <$as_myself | |
| 21187 | sed ' |
| 21188 | s/[$]LINENO.*/&-/ |
| 21189 | t lineno |
| 21190 | b |
| 21191 | :lineno |
| 21192 | N |
| 21193 | :loop |
| 21194 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 21195 | t loop |
| 21196 | s/-\n.*// |
| 21197 | ' >$as_me.lineno && |
| 21198 | chmod +x "$as_me.lineno" || |
| 21199 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 21200 | { (exit 1); exit 1; }; } |
| 21201 | |
| 21202 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 21203 | # (the dirname of $[0] is not the place where we might find the |
| 21204 | # original and so on. Autoconf is especially sensitive to this). |
| 21205 | . "./$as_me.lineno" |
| 21206 | # Exit status is that of the last command. |
| 21207 | exit |
| 21208 | } |
| 21209 | |
| 21210 | |
| 21211 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 21212 | as_dirname=dirname |
| 21213 | else |
| 21214 | as_dirname=false |
| 21215 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21216 | |
| 21217 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21218 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21219 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21220 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21221 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21222 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21223 | esac;; |
| 21224 | *) |
| 21225 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21226 | esac |
| 21227 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21228 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 21229 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 21230 | as_expr=expr |
| 21231 | else |
| 21232 | as_expr=false |
| 21233 | fi |
| 21234 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21235 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21236 | if test -d conf$$.dir; then |
| 21237 | rm -f conf$$.dir/conf$$.file |
| 21238 | else |
| 21239 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21240 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21241 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21242 | echo >conf$$.file |
| 21243 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 21244 | as_ln_s='ln -s' |
| 21245 | # ... but there are two gotchas: |
| 21246 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 21247 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 21248 | # In both cases, we have to default to `cp -p'. |
| 21249 | 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] | 21250 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21251 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 21252 | as_ln_s=ln |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21253 | else |
| 21254 | as_ln_s='cp -p' |
| 21255 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21256 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 21257 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21258 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21259 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21260 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21261 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21262 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21263 | as_mkdir_p=false |
| 21264 | fi |
| 21265 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21266 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 21267 | # systems may use methods other than mode bits to determine executability. |
| 21268 | cat >conf$$.file <<_ASEOF |
| 21269 | #! /bin/sh |
| 21270 | exit 0 |
| 21271 | _ASEOF |
| 21272 | chmod +x conf$$.file |
| 21273 | if test -x conf$$.file >/dev/null 2>&1; then |
| 21274 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21275 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21276 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21277 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21278 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21279 | |
| 21280 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21281 | 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] | 21282 | |
| 21283 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21284 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21285 | |
| 21286 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21287 | exec 6>&1 |
| 21288 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21289 | # 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] | 21290 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21291 | # values after options handling. |
| 21292 | ac_log=" |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 21293 | This file was extended by llvm $as_me 2.8svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21294 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21295 | |
| 21296 | CONFIG_FILES = $CONFIG_FILES |
| 21297 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 21298 | CONFIG_LINKS = $CONFIG_LINKS |
| 21299 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 21300 | $ $0 $@ |
| 21301 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21302 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 21303 | " |
| 21304 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21305 | _ACEOF |
| 21306 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21307 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21308 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21309 | config_files="$ac_config_files" |
| 21310 | config_headers="$ac_config_headers" |
| 21311 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21312 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21313 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21314 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21315 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21316 | ac_cs_usage="\ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21317 | \`$as_me' instantiates files from templates according to the |
| 21318 | current configuration. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21319 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21320 | Usage: $0 [OPTIONS] [FILE]... |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21321 | |
| 21322 | -h, --help print this help, then exit |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21323 | -V, --version print version number, then exit |
| 21324 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21325 | -d, --debug don't remove temporary files |
| 21326 | --recheck update $as_me by reconfiguring in the same conditions |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21327 | --file=FILE[:TEMPLATE] |
| 21328 | instantiate the configuration file FILE |
| 21329 | --header=FILE[:TEMPLATE] |
| 21330 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21331 | |
| 21332 | Configuration files: |
| 21333 | $config_files |
| 21334 | |
| 21335 | Configuration headers: |
| 21336 | $config_headers |
| 21337 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21338 | Configuration commands: |
| 21339 | $config_commands |
| 21340 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21341 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21342 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21343 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21344 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21345 | ac_cs_version="\\ |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 21346 | llvm config.status 2.8svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21347 | configured by $0, generated by GNU Autoconf 2.60, |
| 21348 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21349 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21350 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21351 | This config.status script is free software; the Free Software Foundation |
| 21352 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21353 | |
| 21354 | ac_pwd='$ac_pwd' |
| 21355 | srcdir='$srcdir' |
| 21356 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21357 | _ACEOF |
| 21358 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21359 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21360 | # If no file are specified by the user, then we need to provide default |
| 21361 | # 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] | 21362 | ac_need_defaults=: |
| 21363 | while test $# != 0 |
| 21364 | do |
| 21365 | case $1 in |
| 21366 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21367 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 21368 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21369 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21370 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21371 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21372 | ac_option=$1 |
| 21373 | ac_optarg=$2 |
| 21374 | ac_shift=shift |
| 21375 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21376 | esac |
| 21377 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21378 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21379 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21380 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 21381 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21382 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21383 | echo "$ac_cs_version"; exit ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21384 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21385 | debug=: ;; |
| 21386 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21387 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21388 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21389 | ac_need_defaults=false;; |
| 21390 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21391 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21392 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21393 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21394 | --he | --h) |
| 21395 | # Conflict between --help and --header |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21396 | { echo "$as_me: error: ambiguous option: $1 |
| 21397 | Try \`$0 --help' for more information." >&2 |
| 21398 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21399 | --help | --hel | -h ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21400 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21401 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 21402 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 21403 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21404 | |
| 21405 | # This is an error. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21406 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 21407 | Try \`$0 --help' for more information." >&2 |
| 21408 | { (exit 1); exit 1; }; } ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21409 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21410 | *) ac_config_targets="$ac_config_targets $1" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21411 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21412 | |
| 21413 | esac |
| 21414 | shift |
| 21415 | done |
| 21416 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21417 | ac_configure_extra_args= |
| 21418 | |
| 21419 | if $ac_cs_silent; then |
| 21420 | exec 6>/dev/null |
| 21421 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 21422 | fi |
| 21423 | |
| 21424 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21425 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21426 | if \$ac_cs_recheck; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21427 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 21428 | CONFIG_SHELL=$SHELL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21429 | export CONFIG_SHELL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21430 | 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] | 21431 | fi |
| 21432 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21433 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21434 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21435 | exec 5>>config.log |
| 21436 | { |
| 21437 | echo |
| 21438 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 21439 | ## Running $as_me. ## |
| 21440 | _ASBOX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21441 | echo "$ac_log" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21442 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21443 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21444 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21445 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21446 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21447 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21448 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21449 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21450 | |
| 21451 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21452 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21453 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21454 | |
| 21455 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21456 | for ac_config_target in $ac_config_targets |
| 21457 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21458 | case $ac_config_target in |
| 21459 | "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] | 21460 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 21461 | "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] | 21462 | "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] | 21463 | "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] | 21464 | "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] | 21465 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21466 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 21467 | "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] | 21468 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 21469 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 21470 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 21471 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 21472 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 21473 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21474 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21475 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 21476 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21477 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21478 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 21479 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 21480 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21481 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 21482 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21483 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21484 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 21485 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 21486 | { (exit 1); exit 1; }; };; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21487 | esac |
| 21488 | done |
| 21489 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21490 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21491 | # If the user did not use the arguments to specify the items to instantiate, |
| 21492 | # then the envvar interface is used. Set only those that are not. |
| 21493 | # We use the long form for the default assignment because of an extremely |
| 21494 | # bizarre bug on SunOS 4.1.3. |
| 21495 | if $ac_need_defaults; then |
| 21496 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 21497 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21498 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21499 | fi |
| 21500 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21501 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21502 | # 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] | 21503 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21504 | # Hook for its removal unless debugging. |
| 21505 | # Note that there is a small window in which the directory will not be cleaned: |
| 21506 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21507 | $debug || |
| 21508 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21509 | tmp= |
| 21510 | trap 'exit_status=$? |
| 21511 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 21512 | ' 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21513 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21514 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21515 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21516 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21517 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21518 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21519 | test -n "$tmp" && test -d "$tmp" |
| 21520 | } || |
| 21521 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21522 | tmp=./conf$$-$RANDOM |
| 21523 | (umask 077 && mkdir "$tmp") |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21524 | } || |
| 21525 | { |
| 21526 | echo "$me: cannot create a temporary directory in ." >&2 |
| 21527 | { (exit 1); exit 1; } |
| 21528 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21529 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21530 | # |
| 21531 | # Set up the sed scripts for CONFIG_FILES section. |
| 21532 | # |
| 21533 | |
| 21534 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 21535 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21536 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21537 | |
| 21538 | _ACEOF |
| 21539 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21540 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21541 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21542 | ac_delim='%!_!# ' |
| 21543 | for ac_last_try in false false false false false :; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21544 | cat >conf$$subs.sed <<_ACEOF |
| 21545 | SHELL!$SHELL$ac_delim |
| 21546 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 21547 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 21548 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 21549 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 21550 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 21551 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 21552 | exec_prefix!$exec_prefix$ac_delim |
| 21553 | prefix!$prefix$ac_delim |
| 21554 | program_transform_name!$program_transform_name$ac_delim |
| 21555 | bindir!$bindir$ac_delim |
| 21556 | sbindir!$sbindir$ac_delim |
| 21557 | libexecdir!$libexecdir$ac_delim |
| 21558 | datarootdir!$datarootdir$ac_delim |
| 21559 | datadir!$datadir$ac_delim |
| 21560 | sysconfdir!$sysconfdir$ac_delim |
| 21561 | sharedstatedir!$sharedstatedir$ac_delim |
| 21562 | localstatedir!$localstatedir$ac_delim |
| 21563 | includedir!$includedir$ac_delim |
| 21564 | oldincludedir!$oldincludedir$ac_delim |
| 21565 | docdir!$docdir$ac_delim |
| 21566 | infodir!$infodir$ac_delim |
| 21567 | htmldir!$htmldir$ac_delim |
| 21568 | dvidir!$dvidir$ac_delim |
| 21569 | pdfdir!$pdfdir$ac_delim |
| 21570 | psdir!$psdir$ac_delim |
| 21571 | libdir!$libdir$ac_delim |
| 21572 | localedir!$localedir$ac_delim |
| 21573 | mandir!$mandir$ac_delim |
| 21574 | DEFS!$DEFS$ac_delim |
| 21575 | ECHO_C!$ECHO_C$ac_delim |
| 21576 | ECHO_N!$ECHO_N$ac_delim |
| 21577 | ECHO_T!$ECHO_T$ac_delim |
| 21578 | LIBS!$LIBS$ac_delim |
| 21579 | build_alias!$build_alias$ac_delim |
| 21580 | host_alias!$host_alias$ac_delim |
| 21581 | target_alias!$target_alias$ac_delim |
| 21582 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 21583 | subdirs!$subdirs$ac_delim |
| 21584 | build!$build$ac_delim |
| 21585 | build_cpu!$build_cpu$ac_delim |
| 21586 | build_vendor!$build_vendor$ac_delim |
| 21587 | build_os!$build_os$ac_delim |
| 21588 | host!$host$ac_delim |
| 21589 | host_cpu!$host_cpu$ac_delim |
| 21590 | host_vendor!$host_vendor$ac_delim |
| 21591 | host_os!$host_os$ac_delim |
| 21592 | target!$target$ac_delim |
| 21593 | target_cpu!$target_cpu$ac_delim |
| 21594 | target_vendor!$target_vendor$ac_delim |
| 21595 | target_os!$target_os$ac_delim |
| 21596 | OS!$OS$ac_delim |
| 21597 | HOST_OS!$HOST_OS$ac_delim |
| 21598 | TARGET_OS!$TARGET_OS$ac_delim |
| 21599 | LINKALL!$LINKALL$ac_delim |
| 21600 | NOLINKALL!$NOLINKALL$ac_delim |
| 21601 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 21602 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 21603 | ARCH!$ARCH$ac_delim |
| 21604 | ENDIAN!$ENDIAN$ac_delim |
| 21605 | CC!$CC$ac_delim |
| 21606 | CFLAGS!$CFLAGS$ac_delim |
| 21607 | LDFLAGS!$LDFLAGS$ac_delim |
| 21608 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 21609 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 21610 | EXEEXT!$EXEEXT$ac_delim |
| 21611 | OBJEXT!$OBJEXT$ac_delim |
| 21612 | CPP!$CPP$ac_delim |
| 21613 | GREP!$GREP$ac_delim |
| 21614 | EGREP!$EGREP$ac_delim |
| 21615 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 21616 | BUILD_CC!$BUILD_CC$ac_delim |
| 21617 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 21618 | BUILD_CXX!$BUILD_CXX$ac_delim |
| 21619 | CVSBUILD!$CVSBUILD$ac_delim |
| 21620 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 21621 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
| 21622 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
| 21623 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 21624 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
| 21625 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 21626 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
| 21627 | JIT!$JIT$ac_delim |
| 21628 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 21629 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 21630 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
| 21631 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21632 | ENABLE_SHARED!$ENABLE_SHARED$ac_delim |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 21633 | ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21634 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 21635 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 21636 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
| 21637 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
| 21638 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim |
| 21639 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21640 | CLANGPATH!$CLANGPATH$ac_delim |
| 21641 | CLANGXXPATH!$CLANGXXPATH$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21642 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21643 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21644 | 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] | 21645 | break |
| 21646 | elif $ac_last_try; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21647 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21648 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21649 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21650 | else |
| 21651 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21652 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21653 | done |
| 21654 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21655 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21656 | if test -n "$ac_eof"; then |
| 21657 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21658 | ac_eof=`expr $ac_eof + 1` |
| 21659 | fi |
| 21660 | |
| 21661 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21662 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 21663 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21664 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21665 | sed ' |
| 21666 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21667 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21668 | :n |
| 21669 | t n |
| 21670 | s/'"$ac_delim"'$/,g/; t |
| 21671 | s/$/\\/; p |
| 21672 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21673 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21674 | rm -f conf$$subs.sed |
| 21675 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21676 | CEOF$ac_eof |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21677 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21678 | |
| 21679 | |
| 21680 | ac_delim='%!_!# ' |
| 21681 | for ac_last_try in false false false false false :; do |
| 21682 | cat >conf$$subs.sed <<_ACEOF |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 21683 | ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21684 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21685 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 21686 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
| 21687 | ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21688 | ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim |
| 21689 | CXX!$CXX$ac_delim |
| 21690 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 21691 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 21692 | NM!$NM$ac_delim |
| 21693 | ifGNUmake!$ifGNUmake$ac_delim |
| 21694 | LN_S!$LN_S$ac_delim |
| 21695 | CMP!$CMP$ac_delim |
| 21696 | CP!$CP$ac_delim |
| 21697 | DATE!$DATE$ac_delim |
| 21698 | FIND!$FIND$ac_delim |
| 21699 | MKDIR!$MKDIR$ac_delim |
| 21700 | MV!$MV$ac_delim |
| 21701 | RANLIB!$RANLIB$ac_delim |
| 21702 | AR!$AR$ac_delim |
| 21703 | RM!$RM$ac_delim |
| 21704 | SED!$SED$ac_delim |
| 21705 | TAR!$TAR$ac_delim |
| 21706 | BINPWD!$BINPWD$ac_delim |
| 21707 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 21708 | DOT!$DOT$ac_delim |
| 21709 | FDP!$FDP$ac_delim |
| 21710 | NEATO!$NEATO$ac_delim |
| 21711 | TWOPI!$TWOPI$ac_delim |
| 21712 | CIRCO!$CIRCO$ac_delim |
| 21713 | GV!$GV$ac_delim |
| 21714 | DOTTY!$DOTTY$ac_delim |
| 21715 | PERL!$PERL$ac_delim |
| 21716 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 21717 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 21718 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 21719 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 21720 | BZIP2!$BZIP2$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 21721 | CAT!$CAT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21722 | DOXYGEN!$DOXYGEN$ac_delim |
| 21723 | GROFF!$GROFF$ac_delim |
| 21724 | GZIP!$GZIP$ac_delim |
| 21725 | POD2HTML!$POD2HTML$ac_delim |
| 21726 | POD2MAN!$POD2MAN$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 21727 | PDFROFF!$PDFROFF$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21728 | RUNTEST!$RUNTEST$ac_delim |
| 21729 | TCLSH!$TCLSH$ac_delim |
| 21730 | ZIP!$ZIP$ac_delim |
| 21731 | OCAMLC!$OCAMLC$ac_delim |
| 21732 | OCAMLOPT!$OCAMLOPT$ac_delim |
| 21733 | OCAMLDEP!$OCAMLDEP$ac_delim |
| 21734 | OCAMLDOC!$OCAMLDOC$ac_delim |
| 21735 | GAS!$GAS$ac_delim |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 21736 | HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21737 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 21738 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 21739 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 21740 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 21741 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 21742 | LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim |
| 21743 | LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim |
| 21744 | LLVMGCC!$LLVMGCC$ac_delim |
| 21745 | LLVMGXX!$LLVMGXX$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21746 | LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21747 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 21748 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
| 21749 | USE_UDIS86!$USE_UDIS86$ac_delim |
| 21750 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
| 21751 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
| 21752 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
| 21753 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 21754 | LLVMCC1!$LLVMCC1$ac_delim |
| 21755 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 21756 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21757 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
| 21758 | SHLIBEXT!$SHLIBEXT$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21759 | SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21760 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 21761 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 21762 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 21763 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 21764 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 21765 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 21766 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 21767 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 21768 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 21769 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 21770 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 21771 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
| 21772 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
| 21773 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
| 21774 | RPATH!$RPATH$ac_delim |
| 21775 | RDYNAMIC!$RDYNAMIC$ac_delim |
| 21776 | LIBOBJS!$LIBOBJS$ac_delim |
| 21777 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21778 | _ACEOF |
| 21779 | |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 21780 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21781 | break |
| 21782 | elif $ac_last_try; then |
| 21783 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21784 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21785 | { (exit 1); exit 1; }; } |
| 21786 | else |
| 21787 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 21788 | fi |
| 21789 | done |
| 21790 | |
| 21791 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21792 | if test -n "$ac_eof"; then |
| 21793 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21794 | ac_eof=`expr $ac_eof + 1` |
| 21795 | fi |
| 21796 | |
| 21797 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21798 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 21799 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 21800 | _ACEOF |
| 21801 | sed ' |
| 21802 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21803 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21804 | :n |
| 21805 | t n |
| 21806 | s/'"$ac_delim"'$/,g/; t |
| 21807 | s/$/\\/; p |
| 21808 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21809 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21810 | rm -f conf$$subs.sed |
| 21811 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21812 | :end |
| 21813 | s/|#_!!_#|//g |
| 21814 | CEOF$ac_eof |
| 21815 | _ACEOF |
| 21816 | |
| 21817 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21818 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 21819 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 21820 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 21821 | # (actually we leave an empty line to preserve line numbers). |
| 21822 | if test "x$srcdir" = x.; then |
| 21823 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 21824 | s/:*\$(srcdir):*/:/ |
| 21825 | s/:*\${srcdir}:*/:/ |
| 21826 | s/:*@srcdir@:*/:/ |
| 21827 | s/^\([^=]*=[ ]*\):*/\1/ |
| 21828 | s/:*$// |
| 21829 | s/^[^=]*=[ ]*$// |
| 21830 | }' |
| 21831 | fi |
| 21832 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21833 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21834 | fi # test -n "$CONFIG_FILES" |
| 21835 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21836 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21837 | 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] | 21838 | do |
| 21839 | case $ac_tag in |
| 21840 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 21841 | esac |
| 21842 | case $ac_mode$ac_tag in |
| 21843 | :[FHL]*:*);; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21844 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 21845 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 21846 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21847 | :[FH]-) ac_tag=-:-;; |
| 21848 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 21849 | esac |
| 21850 | ac_save_IFS=$IFS |
| 21851 | IFS=: |
| 21852 | set x $ac_tag |
| 21853 | IFS=$ac_save_IFS |
| 21854 | shift |
| 21855 | ac_file=$1 |
| 21856 | shift |
| 21857 | |
| 21858 | case $ac_mode in |
| 21859 | :L) ac_source=$1;; |
| 21860 | :[FH]) |
| 21861 | ac_file_inputs= |
| 21862 | for ac_f |
| 21863 | do |
| 21864 | case $ac_f in |
| 21865 | -) ac_f="$tmp/stdin";; |
| 21866 | *) # Look for the file first in the build tree, then in the source tree |
| 21867 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 21868 | # because $ac_f cannot contain `:'. |
| 21869 | test -f "$ac_f" || |
| 21870 | case $ac_f in |
| 21871 | [\\/$]*) false;; |
| 21872 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 21873 | esac || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21874 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 21875 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 21876 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21877 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21878 | ac_file_inputs="$ac_file_inputs $ac_f" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21879 | done |
| 21880 | |
| 21881 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21882 | # use $as_me), people would be surprised to read: |
| 21883 | # /* config.h. Generated by config.status. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21884 | configure_input="Generated from "`IFS=: |
| 21885 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21886 | if test x"$ac_file" != x-; then |
| 21887 | configure_input="$ac_file. $configure_input" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21888 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21889 | echo "$as_me: creating $ac_file" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21890 | fi |
| 21891 | |
| 21892 | case $ac_tag in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21893 | *:-:* | *:-) cat >"$tmp/stdin";; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21894 | esac |
| 21895 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21896 | esac |
| 21897 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21898 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21899 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21900 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21901 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21902 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21903 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21904 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21905 | s//\1/ |
| 21906 | q |
| 21907 | } |
| 21908 | /^X\(\/\/\)[^/].*/{ |
| 21909 | s//\1/ |
| 21910 | q |
| 21911 | } |
| 21912 | /^X\(\/\/\)$/{ |
| 21913 | s//\1/ |
| 21914 | q |
| 21915 | } |
| 21916 | /^X\(\/\).*/{ |
| 21917 | s//\1/ |
| 21918 | q |
| 21919 | } |
| 21920 | s/.*/./; q'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21921 | { as_dir="$ac_dir" |
| 21922 | case $as_dir in #( |
| 21923 | -*) as_dir=./$as_dir;; |
| 21924 | esac |
| 21925 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 21926 | as_dirs= |
| 21927 | while :; do |
| 21928 | case $as_dir in #( |
| 21929 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 21930 | *) as_qdir=$as_dir;; |
| 21931 | esac |
| 21932 | as_dirs="'$as_qdir' $as_dirs" |
| 21933 | as_dir=`$as_dirname -- "$as_dir" || |
| 21934 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21935 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21936 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21937 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 21938 | echo X"$as_dir" | |
| 21939 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21940 | s//\1/ |
| 21941 | q |
| 21942 | } |
| 21943 | /^X\(\/\/\)[^/].*/{ |
| 21944 | s//\1/ |
| 21945 | q |
| 21946 | } |
| 21947 | /^X\(\/\/\)$/{ |
| 21948 | s//\1/ |
| 21949 | q |
| 21950 | } |
| 21951 | /^X\(\/\).*/{ |
| 21952 | s//\1/ |
| 21953 | q |
| 21954 | } |
| 21955 | s/.*/./; q'` |
| 21956 | test -d "$as_dir" && break |
| 21957 | done |
| 21958 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21959 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 21960 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 21961 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21962 | ac_builddir=. |
| 21963 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21964 | case "$ac_dir" in |
| 21965 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21966 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21967 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21968 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21969 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21970 | case $ac_top_builddir_sub in |
| 21971 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21972 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 21973 | esac ;; |
| 21974 | esac |
| 21975 | ac_abs_top_builddir=$ac_pwd |
| 21976 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 21977 | # for backward compatibility: |
| 21978 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21979 | |
| 21980 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21981 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21982 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21983 | ac_top_srcdir=$ac_top_builddir_sub |
| 21984 | ac_abs_top_srcdir=$ac_pwd ;; |
| 21985 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21986 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21987 | ac_top_srcdir=$srcdir |
| 21988 | ac_abs_top_srcdir=$srcdir ;; |
| 21989 | *) # Relative name. |
| 21990 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21991 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21992 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21993 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21994 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21995 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21996 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21997 | case $ac_mode in |
| 21998 | :F) |
| 21999 | # |
| 22000 | # CONFIG_FILE |
| 22001 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22002 | |
| 22003 | case $INSTALL in |
| 22004 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22005 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22006 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22007 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22008 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22009 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22010 | # If the template does not know about datarootdir, expand it. |
| 22011 | # FIXME: This hack should be removed a few years after 2.60. |
| 22012 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22013 | |
| 22014 | case `sed -n '/datarootdir/ { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22015 | p |
| 22016 | q |
| 22017 | } |
| 22018 | /@datadir@/p |
| 22019 | /@docdir@/p |
| 22020 | /@infodir@/p |
| 22021 | /@localedir@/p |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22022 | /@mandir@/p |
| 22023 | ' $ac_file_inputs` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22024 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 22025 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22026 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 22027 | 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] | 22028 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22029 | cat >>$CONFIG_STATUS <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22030 | ac_datarootdir_hack=' |
| 22031 | s&@datadir@&$datadir&g |
| 22032 | s&@docdir@&$docdir&g |
| 22033 | s&@infodir@&$infodir&g |
| 22034 | s&@localedir@&$localedir&g |
| 22035 | s&@mandir@&$mandir&g |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22036 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22037 | esac |
| 22038 | _ACEOF |
| 22039 | |
| 22040 | # Neutralize VPATH when `$srcdir' = `.'. |
| 22041 | # Shell code in configure.ac might set extrasub. |
| 22042 | # FIXME: do we really want to maintain this feature? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22043 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22044 | sed "$ac_vpsub |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22045 | $extrasub |
| 22046 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22047 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22048 | :t |
| 22049 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22050 | s&@configure_input@&$configure_input&;t t |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22051 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 22052 | s&@srcdir@&$ac_srcdir&;t t |
| 22053 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 22054 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 22055 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 22056 | s&@builddir@&$ac_builddir&;t t |
| 22057 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 22058 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 22059 | s&@INSTALL@&$ac_INSTALL&;t t |
| 22060 | $ac_datarootdir_hack |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22061 | " $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] | 22062 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22063 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 22064 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 22065 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22066 | { 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] | 22067 | which seems to be undefined. Please make sure it is defined." >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22068 | 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] | 22069 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22070 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22071 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22072 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22073 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 22074 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 22075 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22076 | ;; |
| 22077 | :H) |
| 22078 | # |
| 22079 | # CONFIG_HEADER |
| 22080 | # |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22081 | _ACEOF |
| 22082 | |
| 22083 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 22084 | # substitutes the proper values into config.h.in to produce config.h. |
| 22085 | rm -f conftest.defines conftest.tail |
| 22086 | # First, append a space to every undef/define line, to ease matching. |
| 22087 | echo 's/$/ /' >conftest.defines |
| 22088 | # Then, protect against being on the right side of a sed subst, or in |
| 22089 | # an unquoted here document, in config.status. If some macros were |
| 22090 | # called several times there might be several #defines for the same |
| 22091 | # symbol, which is useless. But do not sort them, since the last |
| 22092 | # AC_DEFINE must be honored. |
| 22093 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 22094 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 22095 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 22096 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 22097 | # just an empty string. |
| 22098 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 22099 | ac_dB='\\)[ (].*,\\1define\\2' |
| 22100 | ac_dC=' ' |
| 22101 | ac_dD=' ,' |
| 22102 | |
| 22103 | uniq confdefs.h | |
| 22104 | sed -n ' |
| 22105 | t rset |
| 22106 | :rset |
| 22107 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 22108 | t ok |
| 22109 | d |
| 22110 | :ok |
| 22111 | s/[\\&,]/\\&/g |
| 22112 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 22113 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 22114 | ' >>conftest.defines |
| 22115 | |
| 22116 | # Remove the space that was appended to ease matching. |
| 22117 | # Then replace #undef with comments. This is necessary, for |
| 22118 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 22119 | # on some systems where configure will not decide to define it. |
| 22120 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 22121 | echo 's/ $// |
| 22122 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 22123 | |
| 22124 | # Break up conftest.defines: |
| 22125 | ac_max_sed_lines=50 |
| 22126 | |
| 22127 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 22128 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 22129 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 22130 | # et cetera. |
| 22131 | ac_in='$ac_file_inputs' |
| 22132 | ac_out='"$tmp/out1"' |
| 22133 | ac_nxt='"$tmp/out2"' |
| 22134 | |
| 22135 | while : |
| 22136 | do |
| 22137 | # Write a here document: |
| 22138 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22139 | # First, check the format of the line: |
| 22140 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 22141 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 22142 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 22143 | b |
| 22144 | :def |
| 22145 | _ACEOF |
| 22146 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 22147 | echo 'CEOF |
| 22148 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 22149 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 22150 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 22151 | grep . conftest.tail >/dev/null || break |
| 22152 | rm -f conftest.defines |
| 22153 | mv conftest.tail conftest.defines |
| 22154 | done |
| 22155 | rm -f conftest.defines conftest.tail |
| 22156 | |
| 22157 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 22158 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22159 | if test x"$ac_file" != x-; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22160 | echo "/* $configure_input */" >"$tmp/config.h" |
| 22161 | cat "$ac_result" >>"$tmp/config.h" |
| 22162 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 22163 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 22164 | echo "$as_me: $ac_file is unchanged" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22165 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22166 | rm -f $ac_file |
| 22167 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22168 | fi |
| 22169 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22170 | echo "/* $configure_input */" |
| 22171 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22172 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22173 | rm -f "$tmp/out12" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22174 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22175 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22176 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 22177 | echo "$as_me: executing $ac_file commands" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22178 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 22179 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22180 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22181 | |
| 22182 | case $ac_file$ac_mode in |
| 22183 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22184 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22185 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22186 | ${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] | 22187 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22188 | ${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] | 22189 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22190 | ${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] | 22191 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22192 | ${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] | 22193 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22194 | ${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] | 22195 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22196 | ${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] | 22197 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22198 | ${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] | 22199 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22200 | ${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] | 22201 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22202 | ${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] | 22203 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22204 | ${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] | 22205 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 22206 | ${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] | 22207 | "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] | 22208 | ${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] | 22209 | |
| 22210 | esac |
| 22211 | done # for ac_tag |
| 22212 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22213 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22214 | { (exit 0); exit 0; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22215 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22216 | chmod +x $CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22217 | ac_clean_files=$ac_clean_files_save |
| 22218 | |
| 22219 | |
| 22220 | # configure is writing to config.log, and then calls config.status. |
| 22221 | # config.status does its own redirection, appending to config.log. |
| 22222 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 22223 | # by configure, so config.status won't be able to write to it; its |
| 22224 | # output is simply discarded. So we exec the FD to /dev/null, |
| 22225 | # effectively closing config.log, so it can be properly (re)opened and |
| 22226 | # appended to by config.status. When coming back to configure, we |
| 22227 | # need to make the FD available again. |
| 22228 | if test "$no_create" != yes; then |
| 22229 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22230 | ac_config_status_args= |
| 22231 | test "$silent" = yes && |
| 22232 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22233 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 22234 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22235 | exec 5>>config.log |
| 22236 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 22237 | # would make configure fail if this is the last instruction. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22238 | $ac_cs_success || { (exit 1); exit 1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 22239 | fi |
| 22240 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22241 | # |
| 22242 | # CONFIG_SUBDIRS section. |
| 22243 | # |
| 22244 | if test "$no_recursion" != yes; then |
| 22245 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22246 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22247 | ac_sub_configure_args= |
| 22248 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22249 | eval "set x $ac_configure_args" |
| 22250 | shift |
| 22251 | for ac_arg |
| 22252 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22253 | if test -n "$ac_prev"; then |
| 22254 | ac_prev= |
| 22255 | continue |
| 22256 | fi |
| 22257 | case $ac_arg in |
| 22258 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 22259 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 22260 | ac_prev=cache_file ;; |
| 22261 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 22262 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 22263 | | --c=*) |
| 22264 | ;; |
| 22265 | --config-cache | -C) |
| 22266 | ;; |
| 22267 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 22268 | ac_prev=srcdir ;; |
| 22269 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 22270 | ;; |
| 22271 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 22272 | ac_prev=prefix ;; |
| 22273 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 22274 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22275 | *) |
| 22276 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22277 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22278 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22279 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22280 | esac |
| 22281 | done |
| 22282 | |
| 22283 | # Always prepend --prefix to ensure using the same prefix |
| 22284 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22285 | ac_arg="--prefix=$prefix" |
| 22286 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22287 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22288 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22289 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22290 | |
| 22291 | ac_popdir=`pwd` |
| 22292 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 22293 | |
| 22294 | # Do not complain, so a configure script can configure whichever |
| 22295 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22296 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22297 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22298 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22299 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 22300 | echo "$ac_msg" >&6 |
| 22301 | { as_dir="$ac_dir" |
| 22302 | case $as_dir in #( |
| 22303 | -*) as_dir=./$as_dir;; |
| 22304 | esac |
| 22305 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 22306 | as_dirs= |
| 22307 | while :; do |
| 22308 | case $as_dir in #( |
| 22309 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 22310 | *) as_qdir=$as_dir;; |
| 22311 | esac |
| 22312 | as_dirs="'$as_qdir' $as_dirs" |
| 22313 | as_dir=`$as_dirname -- "$as_dir" || |
| 22314 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22315 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22316 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22317 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 22318 | echo X"$as_dir" | |
| 22319 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22320 | s//\1/ |
| 22321 | q |
| 22322 | } |
| 22323 | /^X\(\/\/\)[^/].*/{ |
| 22324 | s//\1/ |
| 22325 | q |
| 22326 | } |
| 22327 | /^X\(\/\/\)$/{ |
| 22328 | s//\1/ |
| 22329 | q |
| 22330 | } |
| 22331 | /^X\(\/\).*/{ |
| 22332 | s//\1/ |
| 22333 | q |
| 22334 | } |
| 22335 | s/.*/./; q'` |
| 22336 | test -d "$as_dir" && break |
| 22337 | done |
| 22338 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 22339 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 22340 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 22341 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22342 | ac_builddir=. |
| 22343 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22344 | case "$ac_dir" in |
| 22345 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22346 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22347 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22348 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22349 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22350 | case $ac_top_builddir_sub in |
| 22351 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22352 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 22353 | esac ;; |
| 22354 | esac |
| 22355 | ac_abs_top_builddir=$ac_pwd |
| 22356 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 22357 | # for backward compatibility: |
| 22358 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22359 | |
| 22360 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22361 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22362 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22363 | ac_top_srcdir=$ac_top_builddir_sub |
| 22364 | ac_abs_top_srcdir=$ac_pwd ;; |
| 22365 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22366 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22367 | ac_top_srcdir=$srcdir |
| 22368 | ac_abs_top_srcdir=$srcdir ;; |
| 22369 | *) # Relative name. |
| 22370 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 22371 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 22372 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22373 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22374 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22375 | |
| 22376 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22377 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22378 | |
| 22379 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22380 | if test -f "$ac_srcdir/configure.gnu"; then |
| 22381 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 22382 | elif test -f "$ac_srcdir/configure"; then |
| 22383 | ac_sub_configure=$ac_srcdir/configure |
| 22384 | elif test -f "$ac_srcdir/configure.in"; then |
| 22385 | # This should be Cygnus configure. |
| 22386 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22387 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22388 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 22389 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22390 | ac_sub_configure= |
| 22391 | fi |
| 22392 | |
| 22393 | # The recursion is here. |
| 22394 | if test -n "$ac_sub_configure"; then |
| 22395 | # Make the cache file name correct relative to the subdirectory. |
| 22396 | case $cache_file in |
| 22397 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22398 | *) # Relative name. |
| 22399 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22400 | esac |
| 22401 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22402 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 22403 | 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] | 22404 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22405 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 22406 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 22407 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 22408 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 22409 | { (exit 1); exit 1; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22410 | fi |
| 22411 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22412 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 22413 | done |
| 22414 | fi |
| 22415 | |