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 |
Douglas Gregor | a0162ff | 2009-06-23 17:22:05 +0000 | [diff] [blame] | 5021 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET |
Douglas Gregor | 0711c30 | 2009-06-17 00:43:20 +0000 | [diff] [blame] | 5022 | _ACEOF |
| 5023 | |
| 5024 | fi |
| 5025 | done |
| 5026 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5027 | # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual |
| 5028 | # target feature def files. |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5029 | LLVM_ENUM_TARGETS="" |
| 5030 | LLVM_ENUM_ASM_PRINTERS="" |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5031 | LLVM_ENUM_ASM_PARSERS="" |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5032 | LLVM_ENUM_DISASSEMBLERS="" |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5033 | for target_to_build in $TARGETS_TO_BUILD; do |
| 5034 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
| 5035 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then |
| 5036 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 5037 | fi |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5038 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 5039 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 5040 | fi |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5041 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then |
| 5042 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; |
| 5043 | fi |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 5044 | done |
| 5045 | |
| 5046 | |
| 5047 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 5048 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 5049 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5050 | # Check whether --enable-cbe-printf-a was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5051 | if test "${enable_cbe_printf_a+set}" = set; then |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5052 | enableval=$enable_cbe_printf_a; |
| 5053 | else |
| 5054 | enableval=default |
| 5055 | fi |
| 5056 | |
| 5057 | case "$enableval" in |
| 5058 | yes) ENABLE_CBE_PRINTF_A=1 |
| 5059 | ;; |
| 5060 | no) ENABLE_CBE_PRINTF_A=0 |
| 5061 | ;; |
| 5062 | default) ENABLE_CBE_PRINTF_A=1 |
| 5063 | ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5064 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 5065 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 5066 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 5067 | esac |
| 5068 | |
| 5069 | cat >>confdefs.h <<_ACEOF |
| 5070 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 5071 | _ACEOF |
| 5072 | |
| 5073 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5074 | |
| 5075 | # Check whether --with-llvmgccdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5076 | if test "${with_llvmgccdir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5077 | withval=$with_llvmgccdir; |
| 5078 | else |
| 5079 | withval=default |
| 5080 | fi |
| 5081 | |
| 5082 | case "$withval" in |
| 5083 | default) WITH_LLVMGCCDIR=default ;; |
| 5084 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5085 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 5086 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 5087 | { (exit 1); exit 1; }; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5088 | esac |
| 5089 | |
| 5090 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5091 | # Check whether --with-llvmgcc was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5092 | if test "${with_llvmgcc+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5093 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 5094 | WITH_LLVMGCCDIR="" |
| 5095 | fi |
| 5096 | |
| 5097 | |
| 5098 | |
| 5099 | # Check whether --with-llvmgxx was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5100 | if test "${with_llvmgxx+set}" = set; then |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5101 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 5102 | WITH_LLVMGCCDIR="" |
| 5103 | fi |
| 5104 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 5105 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 5106 | if test -n "$LLVMGCC"; then |
| 5107 | LLVMGCCCOMMAND="$LLVMGCC" |
| 5108 | fi |
| 5109 | |
| 5110 | if test -n "$LLVMGXX"; then |
| 5111 | LLVMGXXCOMMAND="$LLVMGXX" |
| 5112 | fi |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5113 | |
| 5114 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5115 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 5116 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 5117 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5118 | fi |
| 5119 | |
| 5120 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5121 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 5122 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 5123 | { (exit 1); exit 1; }; }; |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 5124 | fi |
| 5125 | |
| 5126 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 5127 | # Check whether --with-clang was given. |
| 5128 | if test "${with_clang+set}" = set; then |
| 5129 | withval=$with_clang; |
| 5130 | else |
| 5131 | with_clang=default |
| 5132 | fi |
| 5133 | |
| 5134 | |
| 5135 | |
| 5136 | # Check whether --with-built-clang was given. |
| 5137 | if test "${with_built_clang+set}" = set; then |
| 5138 | withval=$with_built_clang; |
| 5139 | else |
| 5140 | with_built_clang=check |
| 5141 | fi |
| 5142 | |
| 5143 | |
| 5144 | { echo "$as_me:$LINENO: checking clang compiler" >&5 |
| 5145 | echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; } |
| 5146 | WITH_CLANGPATH="" |
| 5147 | WITH_BUILT_CLANG=0 |
| 5148 | if test "$with_clang" != "default"; then |
| 5149 | WITH_CLANGPATH="$with_clang" |
| 5150 | if ! test -x "$WITH_CLANGPATH"; then |
| 5151 | { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5 |
| 5152 | echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;} |
| 5153 | { (exit 1); exit 1; }; } |
| 5154 | fi |
| 5155 | elif test "$with_built_clang" = "yes"; then |
| 5156 | WITH_BUILT_CLANG=1 |
| 5157 | elif test "$with_built_clang" = "no"; then |
| 5158 | WITH_BUILT_CLANG=0 |
| 5159 | else |
| 5160 | if test "$with_built_clang" != "check"; then |
| 5161 | { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5 |
| 5162 | echo "$as_me: error: invalid value for --with-built-clang." >&2;} |
| 5163 | { (exit 1); exit 1; }; } |
| 5164 | fi |
| 5165 | |
| 5166 | if test -f ${srcdir}/tools/clang/README.txt; then |
| 5167 | WITH_BUILT_CLANG=1 |
| 5168 | fi |
| 5169 | fi |
| 5170 | |
| 5171 | if ! test -z "$WITH_CLANGPATH"; then |
| 5172 | { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5 |
| 5173 | echo "${ECHO_T}$WITH_CLANGPATH" >&6; } |
| 5174 | WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++` |
| 5175 | elif test "$WITH_BUILT_CLANG" = "1"; then |
| 5176 | { echo "$as_me:$LINENO: result: built" >&5 |
| 5177 | echo "${ECHO_T}built" >&6; } |
| 5178 | else |
| 5179 | { echo "$as_me:$LINENO: result: none" >&5 |
| 5180 | echo "${ECHO_T}none" >&6; } |
| 5181 | fi |
| 5182 | CLANGPATH=$WITH_CLANGPATH |
| 5183 | |
| 5184 | CLANGXXPATH=$WITH_CLANGXXPATH |
| 5185 | |
| 5186 | ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG |
| 5187 | |
| 5188 | |
| 5189 | |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5190 | # Check whether --with-optimize-option was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5191 | if test "${with_optimize_option+set}" = set; then |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5192 | withval=$with_optimize_option; |
| 5193 | else |
| 5194 | withval=default |
| 5195 | fi |
| 5196 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5197 | { echo "$as_me:$LINENO: checking optimization flags" >&5 |
| 5198 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5199 | case "$withval" in |
| 5200 | default) |
| 5201 | case "$llvm_cv_os_type" in |
Daniel Dunbar | f913878 | 2010-04-30 17:12:26 +0000 | [diff] [blame] | 5202 | FreeBSD) optimize_option=-O2 ;; |
Daniel Dunbar | 195d2de | 2010-04-10 18:56:24 +0000 | [diff] [blame] | 5203 | MingW) optimize_option=-O2 ;; |
| 5204 | *) optimize_option=-O3 ;; |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5205 | esac ;; |
| 5206 | *) optimize_option="$withval" ;; |
| 5207 | esac |
| 5208 | OPTIMIZE_OPTION=$optimize_option |
| 5209 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5210 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 |
| 5211 | echo "${ECHO_T}$optimize_option" >&6; } |
Daniel Dunbar | 1fce948 | 2009-11-04 04:32:50 +0000 | [diff] [blame] | 5212 | |
| 5213 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5214 | # Check whether --with-extra-options was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5215 | if test "${with_extra_options+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5216 | withval=$with_extra_options; |
| 5217 | else |
| 5218 | withval=default |
| 5219 | fi |
| 5220 | |
| 5221 | case "$withval" in |
| 5222 | default) EXTRA_OPTIONS= ;; |
| 5223 | *) EXTRA_OPTIONS=$withval ;; |
| 5224 | esac |
| 5225 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5226 | |
| 5227 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5228 | # Check whether --enable-bindings was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5229 | if test "${enable_bindings+set}" = set; then |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5230 | enableval=$enable_bindings; |
| 5231 | else |
| 5232 | enableval=default |
| 5233 | fi |
| 5234 | |
| 5235 | BINDINGS_TO_BUILD="" |
| 5236 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 5237 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5238 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5239 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5240 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5241 | case "$a_binding" in |
| 5242 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5243 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5244 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5245 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 5246 | esac |
| 5247 | done |
| 5248 | ;; |
| 5249 | esac |
| 5250 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5251 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5252 | # Check whether --with-ocaml-libdir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5253 | if test "${with_ocaml_libdir+set}" = set; then |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5254 | withval=$with_ocaml_libdir; |
| 5255 | else |
| 5256 | withval=auto |
| 5257 | fi |
| 5258 | |
| 5259 | case "$withval" in |
| 5260 | auto) with_ocaml_libdir="$withval" ;; |
| 5261 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5262 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5263 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5264 | { (exit 1); exit 1; }; } ;; |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 5265 | esac |
| 5266 | |
| 5267 | |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5268 | # Check whether --with-c-include-dirs was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5269 | if test "${with_c_include_dirs+set}" = set; then |
Rafael Espindola | d6c8ec6 | 2009-12-07 00:27:35 +0000 | [diff] [blame] | 5270 | withval=$with_c_include_dirs; |
Rafael Espindola | 7f9ec91 | 2009-11-12 05:46:09 +0000 | [diff] [blame] | 5271 | else |
| 5272 | withval="" |
| 5273 | fi |
| 5274 | |
| 5275 | |
| 5276 | cat >>confdefs.h <<_ACEOF |
| 5277 | #define C_INCLUDE_DIRS "$withval" |
| 5278 | _ACEOF |
| 5279 | |
| 5280 | |
| 5281 | |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5282 | # Check whether --with-cxx-include-root was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5283 | if test "${with_cxx_include_root+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5284 | withval=$with_cxx_include_root; |
| 5285 | else |
| 5286 | withval="" |
| 5287 | fi |
| 5288 | |
| 5289 | |
| 5290 | cat >>confdefs.h <<_ACEOF |
| 5291 | #define CXX_INCLUDE_ROOT "$withval" |
| 5292 | _ACEOF |
| 5293 | |
| 5294 | |
| 5295 | |
| 5296 | # Check whether --with-cxx-include-arch was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5297 | if test "${with_cxx_include_arch+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5298 | withval=$with_cxx_include_arch; |
| 5299 | else |
| 5300 | withval="" |
| 5301 | fi |
| 5302 | |
| 5303 | |
| 5304 | cat >>confdefs.h <<_ACEOF |
| 5305 | #define CXX_INCLUDE_ARCH "$withval" |
| 5306 | _ACEOF |
| 5307 | |
| 5308 | |
| 5309 | |
| 5310 | # Check whether --with-cxx-include-32bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5311 | if test "${with_cxx_include_32bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5312 | withval=$with_cxx_include_32bit_dir; |
| 5313 | else |
| 5314 | withval="" |
| 5315 | fi |
| 5316 | |
| 5317 | |
| 5318 | cat >>confdefs.h <<_ACEOF |
| 5319 | #define CXX_INCLUDE_32BIT_DIR "$withval" |
| 5320 | _ACEOF |
| 5321 | |
| 5322 | |
| 5323 | |
| 5324 | # Check whether --with-cxx-include-64bit-dir was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5325 | if test "${with_cxx_include_64bit_dir+set}" = set; then |
Rafael Espindola | 420d23c | 2009-11-16 19:46:55 +0000 | [diff] [blame] | 5326 | withval=$with_cxx_include_64bit_dir; |
| 5327 | else |
| 5328 | withval="" |
| 5329 | fi |
| 5330 | |
| 5331 | |
| 5332 | cat >>confdefs.h <<_ACEOF |
| 5333 | #define CXX_INCLUDE_64BIT_DIR "$withval" |
| 5334 | _ACEOF |
| 5335 | |
| 5336 | |
| 5337 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5338 | # Check whether --with-binutils-include was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5339 | if test "${with_binutils_include+set}" = set; then |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5340 | withval=$with_binutils_include; |
| 5341 | else |
| 5342 | withval=default |
| 5343 | fi |
| 5344 | |
| 5345 | case "$withval" in |
| 5346 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5347 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5348 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5349 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5350 | { (exit 1); exit 1; }; } ;; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5351 | esac |
| 5352 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5353 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5354 | |
| 5355 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5356 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5357 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5358 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5359 | { (exit 1); exit 1; }; }; |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5360 | fi |
| 5361 | fi |
| 5362 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5363 | # Check whether --enable-libffi was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5364 | if test "${enable_libffi+set}" = set; then |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5365 | enableval=$enable_libffi; case "$enableval" in |
| 5366 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5367 | no) llvm_cv_enable_libffi="no" ;; |
| 5368 | *) { { 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] | 5369 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5370 | { (exit 1); exit 1; }; } ;; |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 5371 | esac |
| 5372 | else |
| 5373 | llvm_cv_enable_libffi=no |
| 5374 | fi |
| 5375 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 5376 | |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5377 | if test "$llvm_cv_os_type" = "Win32" ; then |
| 5378 | llvmc_dynamic="yes" |
| 5379 | else |
| 5380 | llvmc_dynamic="no" |
| 5381 | fi |
| 5382 | |
| 5383 | # Check whether --enable-llvmc-dynamic was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5384 | if test "${enable_llvmc_dynamic+set}" = set; then |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5385 | enableval=$enable_llvmc_dynamic; |
| 5386 | else |
| 5387 | enableval=$llvmc_dynamic |
| 5388 | fi |
| 5389 | |
| 5390 | if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then |
| 5391 | ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1 |
| 5392 | |
| 5393 | else |
| 5394 | ENABLE_LLVMC_DYNAMIC= |
| 5395 | |
| 5396 | fi |
| 5397 | |
| 5398 | # Check whether --enable-llvmc-dynamic-plugins was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5399 | if test "${enable_llvmc_dynamic_plugins+set}" = set; then |
Mikhail Glushenkov | d0f27c4 | 2009-07-04 14:23:08 +0000 | [diff] [blame] | 5400 | enableval=$enable_llvmc_dynamic_plugins; |
| 5401 | else |
| 5402 | enableval=yes |
| 5403 | fi |
| 5404 | |
| 5405 | if test ${enableval} = "yes" ; then |
| 5406 | ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1 |
| 5407 | |
| 5408 | else |
| 5409 | ENABLE_LLVMC_DYNAMIC_PLUGINS= |
| 5410 | |
| 5411 | fi |
| 5412 | |
Nick Lewycky | e792b1d | 2009-02-03 07:10:30 +0000 | [diff] [blame] | 5413 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5414 | ac_ext=c |
| 5415 | ac_cpp='$CPP $CPPFLAGS' |
| 5416 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5417 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5418 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5419 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 5420 | 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] | 5421 | # On Suns, sometimes $CPP names a directory. |
| 5422 | if test -n "$CPP" && test -d "$CPP"; then |
| 5423 | CPP= |
| 5424 | fi |
| 5425 | if test -z "$CPP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5426 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 5427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5428 | else |
| 5429 | # Double quotes because CPP needs to be expanded |
| 5430 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5431 | do |
| 5432 | ac_preproc_ok=false |
| 5433 | for ac_c_preproc_warn_flag in '' yes |
| 5434 | do |
| 5435 | # Use a header file that comes with gcc, so configuring glibc |
| 5436 | # with a fresh cross-compiler works. |
| 5437 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5438 | # <limits.h> exists even on freestanding compilers. |
| 5439 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5440 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5441 | cat >conftest.$ac_ext <<_ACEOF |
| 5442 | /* confdefs.h. */ |
| 5443 | _ACEOF |
| 5444 | cat confdefs.h >>conftest.$ac_ext |
| 5445 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5446 | /* end confdefs.h. */ |
| 5447 | #ifdef __STDC__ |
| 5448 | # include <limits.h> |
| 5449 | #else |
| 5450 | # include <assert.h> |
| 5451 | #endif |
| 5452 | Syntax error |
| 5453 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5454 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5455 | case "(($ac_try" in |
| 5456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5457 | *) ac_try_echo=$ac_try;; |
| 5458 | esac |
| 5459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5460 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5461 | ac_status=$? |
| 5462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5463 | rm -f conftest.er1 |
| 5464 | cat conftest.err >&5 |
| 5465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5466 | (exit $ac_status); } >/dev/null; then |
| 5467 | if test -s conftest.err; then |
| 5468 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5469 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5470 | else |
| 5471 | ac_cpp_err= |
| 5472 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5473 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5474 | ac_cpp_err=yes |
| 5475 | fi |
| 5476 | if test -z "$ac_cpp_err"; then |
| 5477 | : |
| 5478 | else |
| 5479 | echo "$as_me: failed program was:" >&5 |
| 5480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5481 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5482 | # Broken: fails on valid input. |
| 5483 | continue |
| 5484 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5485 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5486 | rm -f conftest.err conftest.$ac_ext |
| 5487 | |
| 5488 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5489 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5490 | cat >conftest.$ac_ext <<_ACEOF |
| 5491 | /* confdefs.h. */ |
| 5492 | _ACEOF |
| 5493 | cat confdefs.h >>conftest.$ac_ext |
| 5494 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5495 | /* end confdefs.h. */ |
| 5496 | #include <ac_nonexistent.h> |
| 5497 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5498 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5499 | case "(($ac_try" in |
| 5500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5501 | *) ac_try_echo=$ac_try;; |
| 5502 | esac |
| 5503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5504 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5505 | ac_status=$? |
| 5506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5507 | rm -f conftest.er1 |
| 5508 | cat conftest.err >&5 |
| 5509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5510 | (exit $ac_status); } >/dev/null; then |
| 5511 | if test -s conftest.err; then |
| 5512 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5513 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5514 | else |
| 5515 | ac_cpp_err= |
| 5516 | fi |
| 5517 | else |
| 5518 | ac_cpp_err=yes |
| 5519 | fi |
| 5520 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5521 | # Broken: success on invalid input. |
| 5522 | continue |
| 5523 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5524 | echo "$as_me: failed program was:" >&5 |
| 5525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5526 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5527 | # Passes both tests. |
| 5528 | ac_preproc_ok=: |
| 5529 | break |
| 5530 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5531 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5532 | rm -f conftest.err conftest.$ac_ext |
| 5533 | |
| 5534 | done |
| 5535 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5536 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5537 | if $ac_preproc_ok; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5538 | break |
| 5539 | fi |
| 5540 | |
| 5541 | done |
| 5542 | ac_cv_prog_CPP=$CPP |
| 5543 | |
| 5544 | fi |
| 5545 | CPP=$ac_cv_prog_CPP |
| 5546 | else |
| 5547 | ac_cv_prog_CPP=$CPP |
| 5548 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5549 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 5550 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5551 | ac_preproc_ok=false |
| 5552 | for ac_c_preproc_warn_flag in '' yes |
| 5553 | do |
| 5554 | # Use a header file that comes with gcc, so configuring glibc |
| 5555 | # with a fresh cross-compiler works. |
| 5556 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5557 | # <limits.h> exists even on freestanding compilers. |
| 5558 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5559 | # not just through cpp. "Syntax error" is here to catch this case. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5560 | cat >conftest.$ac_ext <<_ACEOF |
| 5561 | /* confdefs.h. */ |
| 5562 | _ACEOF |
| 5563 | cat confdefs.h >>conftest.$ac_ext |
| 5564 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5565 | /* end confdefs.h. */ |
| 5566 | #ifdef __STDC__ |
| 5567 | # include <limits.h> |
| 5568 | #else |
| 5569 | # include <assert.h> |
| 5570 | #endif |
| 5571 | Syntax error |
| 5572 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5573 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5574 | case "(($ac_try" in |
| 5575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5576 | *) ac_try_echo=$ac_try;; |
| 5577 | esac |
| 5578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5579 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5580 | ac_status=$? |
| 5581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5582 | rm -f conftest.er1 |
| 5583 | cat conftest.err >&5 |
| 5584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5585 | (exit $ac_status); } >/dev/null; then |
| 5586 | if test -s conftest.err; then |
| 5587 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5588 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5589 | else |
| 5590 | ac_cpp_err= |
| 5591 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 5592 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5593 | ac_cpp_err=yes |
| 5594 | fi |
| 5595 | if test -z "$ac_cpp_err"; then |
| 5596 | : |
| 5597 | else |
| 5598 | echo "$as_me: failed program was:" >&5 |
| 5599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5600 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5601 | # Broken: fails on valid input. |
| 5602 | continue |
| 5603 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5604 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5605 | rm -f conftest.err conftest.$ac_ext |
| 5606 | |
| 5607 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5608 | # can be detected and how. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5609 | cat >conftest.$ac_ext <<_ACEOF |
| 5610 | /* confdefs.h. */ |
| 5611 | _ACEOF |
| 5612 | cat confdefs.h >>conftest.$ac_ext |
| 5613 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5614 | /* end confdefs.h. */ |
| 5615 | #include <ac_nonexistent.h> |
| 5616 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5617 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5618 | case "(($ac_try" in |
| 5619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5620 | *) ac_try_echo=$ac_try;; |
| 5621 | esac |
| 5622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5623 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5624 | ac_status=$? |
| 5625 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5626 | rm -f conftest.er1 |
| 5627 | cat conftest.err >&5 |
| 5628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5629 | (exit $ac_status); } >/dev/null; then |
| 5630 | if test -s conftest.err; then |
| 5631 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5632 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5633 | else |
| 5634 | ac_cpp_err= |
| 5635 | fi |
| 5636 | else |
| 5637 | ac_cpp_err=yes |
| 5638 | fi |
| 5639 | if test -z "$ac_cpp_err"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5640 | # Broken: success on invalid input. |
| 5641 | continue |
| 5642 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5643 | echo "$as_me: failed program was:" >&5 |
| 5644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5645 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5646 | # Passes both tests. |
| 5647 | ac_preproc_ok=: |
| 5648 | break |
| 5649 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5650 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5651 | rm -f conftest.err conftest.$ac_ext |
| 5652 | |
| 5653 | done |
| 5654 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5655 | rm -f conftest.err conftest.$ac_ext |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5656 | if $ac_preproc_ok; then |
| 5657 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5658 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5659 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5660 | See \`config.log' for more details." >&5 |
| 5661 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5662 | See \`config.log' for more details." >&2;} |
| 5663 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5664 | fi |
| 5665 | |
| 5666 | ac_ext=c |
| 5667 | ac_cpp='$CPP $CPPFLAGS' |
| 5668 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5669 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5670 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5671 | |
| 5672 | ac_ext=c |
| 5673 | ac_cpp='$CPP $CPPFLAGS' |
| 5674 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5675 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5676 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5677 | if test -n "$ac_tool_prefix"; then |
| 5678 | for ac_prog in gcc |
| 5679 | do |
| 5680 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5681 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5682 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5683 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5684 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5686 | else |
| 5687 | if test -n "$CC"; then |
| 5688 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5689 | else |
| 5690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5691 | for as_dir in $PATH |
| 5692 | do |
| 5693 | IFS=$as_save_IFS |
| 5694 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5695 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5696 | 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] | 5697 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5698 | 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] | 5699 | break 2 |
| 5700 | fi |
| 5701 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5702 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5703 | IFS=$as_save_IFS |
| 5704 | |
| 5705 | fi |
| 5706 | fi |
| 5707 | CC=$ac_cv_prog_CC |
| 5708 | if test -n "$CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5709 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5710 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5711 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5712 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5713 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5714 | fi |
| 5715 | |
| 5716 | |
| 5717 | test -n "$CC" && break |
| 5718 | done |
| 5719 | fi |
| 5720 | if test -z "$CC"; then |
| 5721 | ac_ct_CC=$CC |
| 5722 | for ac_prog in gcc |
| 5723 | do |
| 5724 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5725 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5726 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5727 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5728 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5730 | else |
| 5731 | if test -n "$ac_ct_CC"; then |
| 5732 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5733 | else |
| 5734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5735 | for as_dir in $PATH |
| 5736 | do |
| 5737 | IFS=$as_save_IFS |
| 5738 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5739 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5740 | 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] | 5741 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5742 | 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] | 5743 | break 2 |
| 5744 | fi |
| 5745 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5746 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5747 | IFS=$as_save_IFS |
| 5748 | |
| 5749 | fi |
| 5750 | fi |
| 5751 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5752 | if test -n "$ac_ct_CC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5753 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5754 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5755 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5756 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5757 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5758 | fi |
| 5759 | |
| 5760 | |
| 5761 | test -n "$ac_ct_CC" && break |
| 5762 | done |
| 5763 | |
| 5764 | if test "x$ac_ct_CC" = x; then |
| 5765 | CC="" |
| 5766 | else |
| 5767 | case $cross_compiling:$ac_tool_warned in |
| 5768 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5769 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5770 | whose name does not start with the host triplet. If you think this |
| 5771 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5772 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5773 | whose name does not start with the host triplet. If you think this |
| 5774 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5775 | ac_tool_warned=yes ;; |
| 5776 | esac |
| 5777 | CC=$ac_ct_CC |
| 5778 | fi |
| 5779 | fi |
| 5780 | |
| 5781 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5782 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5783 | See \`config.log' for more details." >&5 |
| 5784 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5785 | See \`config.log' for more details." >&2;} |
| 5786 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5787 | |
| 5788 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5789 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5790 | ac_compiler=`set X $ac_compile; echo $2` |
| 5791 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5792 | case "(($ac_try" in |
| 5793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5794 | *) ac_try_echo=$ac_try;; |
| 5795 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5797 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5798 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5800 | (exit $ac_status); } |
| 5801 | { (ac_try="$ac_compiler -v >&5" |
| 5802 | case "(($ac_try" in |
| 5803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5804 | *) ac_try_echo=$ac_try;; |
| 5805 | esac |
| 5806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5807 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5808 | ac_status=$? |
| 5809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5810 | (exit $ac_status); } |
| 5811 | { (ac_try="$ac_compiler -V >&5" |
| 5812 | case "(($ac_try" in |
| 5813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5814 | *) ac_try_echo=$ac_try;; |
| 5815 | esac |
| 5816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5817 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5818 | ac_status=$? |
| 5819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5820 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5821 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5822 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5823 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5824 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5826 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5827 | cat >conftest.$ac_ext <<_ACEOF |
| 5828 | /* confdefs.h. */ |
| 5829 | _ACEOF |
| 5830 | cat confdefs.h >>conftest.$ac_ext |
| 5831 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5832 | /* end confdefs.h. */ |
| 5833 | |
| 5834 | int |
| 5835 | main () |
| 5836 | { |
| 5837 | #ifndef __GNUC__ |
| 5838 | choke me |
| 5839 | #endif |
| 5840 | |
| 5841 | ; |
| 5842 | return 0; |
| 5843 | } |
| 5844 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5845 | rm -f conftest.$ac_objext |
| 5846 | if { (ac_try="$ac_compile" |
| 5847 | case "(($ac_try" in |
| 5848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5849 | *) ac_try_echo=$ac_try;; |
| 5850 | esac |
| 5851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5852 | (eval "$ac_compile") 2>conftest.er1 |
| 5853 | ac_status=$? |
| 5854 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5855 | rm -f conftest.er1 |
| 5856 | cat conftest.err >&5 |
| 5857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5858 | (exit $ac_status); } && |
| 5859 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5860 | { (case "(($ac_try" in |
| 5861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5862 | *) ac_try_echo=$ac_try;; |
| 5863 | esac |
| 5864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5865 | (eval "$ac_try") 2>&5 |
| 5866 | ac_status=$? |
| 5867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5868 | (exit $ac_status); }; } && |
| 5869 | { ac_try='test -s conftest.$ac_objext' |
| 5870 | { (case "(($ac_try" in |
| 5871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5872 | *) ac_try_echo=$ac_try;; |
| 5873 | esac |
| 5874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5875 | (eval "$ac_try") 2>&5 |
| 5876 | ac_status=$? |
| 5877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5878 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5879 | ac_compiler_gnu=yes |
| 5880 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5881 | echo "$as_me: failed program was:" >&5 |
| 5882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5883 | |
| 5884 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5885 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5886 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5888 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5889 | |
| 5890 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5891 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5892 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5893 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5894 | ac_test_CFLAGS=${CFLAGS+set} |
| 5895 | ac_save_CFLAGS=$CFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5896 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5897 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5898 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5900 | else |
| 5901 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5902 | ac_c_werror_flag=yes |
| 5903 | ac_cv_prog_cc_g=no |
| 5904 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5905 | cat >conftest.$ac_ext <<_ACEOF |
| 5906 | /* confdefs.h. */ |
| 5907 | _ACEOF |
| 5908 | cat confdefs.h >>conftest.$ac_ext |
| 5909 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5910 | /* end confdefs.h. */ |
| 5911 | |
| 5912 | int |
| 5913 | main () |
| 5914 | { |
| 5915 | |
| 5916 | ; |
| 5917 | return 0; |
| 5918 | } |
| 5919 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5920 | rm -f conftest.$ac_objext |
| 5921 | if { (ac_try="$ac_compile" |
| 5922 | case "(($ac_try" in |
| 5923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5924 | *) ac_try_echo=$ac_try;; |
| 5925 | esac |
| 5926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5927 | (eval "$ac_compile") 2>conftest.er1 |
| 5928 | ac_status=$? |
| 5929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5930 | rm -f conftest.er1 |
| 5931 | cat conftest.err >&5 |
| 5932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5933 | (exit $ac_status); } && |
| 5934 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5935 | { (case "(($ac_try" in |
| 5936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5937 | *) ac_try_echo=$ac_try;; |
| 5938 | esac |
| 5939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5940 | (eval "$ac_try") 2>&5 |
| 5941 | ac_status=$? |
| 5942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5943 | (exit $ac_status); }; } && |
| 5944 | { ac_try='test -s conftest.$ac_objext' |
| 5945 | { (case "(($ac_try" in |
| 5946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5947 | *) ac_try_echo=$ac_try;; |
| 5948 | esac |
| 5949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5950 | (eval "$ac_try") 2>&5 |
| 5951 | ac_status=$? |
| 5952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5953 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5954 | ac_cv_prog_cc_g=yes |
| 5955 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5956 | echo "$as_me: failed program was:" >&5 |
| 5957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5958 | |
| 5959 | CFLAGS="" |
| 5960 | cat >conftest.$ac_ext <<_ACEOF |
| 5961 | /* confdefs.h. */ |
| 5962 | _ACEOF |
| 5963 | cat confdefs.h >>conftest.$ac_ext |
| 5964 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5965 | /* end confdefs.h. */ |
| 5966 | |
| 5967 | int |
| 5968 | main () |
| 5969 | { |
| 5970 | |
| 5971 | ; |
| 5972 | return 0; |
| 5973 | } |
| 5974 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 5975 | rm -f conftest.$ac_objext |
| 5976 | if { (ac_try="$ac_compile" |
| 5977 | case "(($ac_try" in |
| 5978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5979 | *) ac_try_echo=$ac_try;; |
| 5980 | esac |
| 5981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5982 | (eval "$ac_compile") 2>conftest.er1 |
| 5983 | ac_status=$? |
| 5984 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5985 | rm -f conftest.er1 |
| 5986 | cat conftest.err >&5 |
| 5987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5988 | (exit $ac_status); } && |
| 5989 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5990 | { (case "(($ac_try" in |
| 5991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5992 | *) ac_try_echo=$ac_try;; |
| 5993 | esac |
| 5994 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5995 | (eval "$ac_try") 2>&5 |
| 5996 | ac_status=$? |
| 5997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5998 | (exit $ac_status); }; } && |
| 5999 | { ac_try='test -s conftest.$ac_objext' |
| 6000 | { (case "(($ac_try" in |
| 6001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6002 | *) ac_try_echo=$ac_try;; |
| 6003 | esac |
| 6004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6005 | (eval "$ac_try") 2>&5 |
| 6006 | ac_status=$? |
| 6007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6008 | (exit $ac_status); }; }; then |
| 6009 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6010 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6011 | echo "$as_me: failed program was:" >&5 |
| 6012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6013 | |
| 6014 | ac_c_werror_flag=$ac_save_c_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6015 | CFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6016 | cat >conftest.$ac_ext <<_ACEOF |
| 6017 | /* confdefs.h. */ |
| 6018 | _ACEOF |
| 6019 | cat confdefs.h >>conftest.$ac_ext |
| 6020 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6021 | /* end confdefs.h. */ |
| 6022 | |
| 6023 | int |
| 6024 | main () |
| 6025 | { |
| 6026 | |
| 6027 | ; |
| 6028 | return 0; |
| 6029 | } |
| 6030 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6031 | rm -f conftest.$ac_objext |
| 6032 | if { (ac_try="$ac_compile" |
| 6033 | case "(($ac_try" in |
| 6034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6035 | *) ac_try_echo=$ac_try;; |
| 6036 | esac |
| 6037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6038 | (eval "$ac_compile") 2>conftest.er1 |
| 6039 | ac_status=$? |
| 6040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6041 | rm -f conftest.er1 |
| 6042 | cat conftest.err >&5 |
| 6043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6044 | (exit $ac_status); } && |
| 6045 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6046 | { (case "(($ac_try" in |
| 6047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6048 | *) ac_try_echo=$ac_try;; |
| 6049 | esac |
| 6050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6051 | (eval "$ac_try") 2>&5 |
| 6052 | ac_status=$? |
| 6053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6054 | (exit $ac_status); }; } && |
| 6055 | { ac_try='test -s conftest.$ac_objext' |
| 6056 | { (case "(($ac_try" in |
| 6057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6058 | *) ac_try_echo=$ac_try;; |
| 6059 | esac |
| 6060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6061 | (eval "$ac_try") 2>&5 |
| 6062 | ac_status=$? |
| 6063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6064 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6065 | ac_cv_prog_cc_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6066 | else |
| 6067 | echo "$as_me: failed program was:" >&5 |
| 6068 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6069 | |
| 6070 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6071 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6072 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6074 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6075 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6077 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6078 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6080 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 6081 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6082 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 6083 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6084 | if test "$ac_test_CFLAGS" = set; then |
| 6085 | CFLAGS=$ac_save_CFLAGS |
| 6086 | elif test $ac_cv_prog_cc_g = yes; then |
| 6087 | if test "$GCC" = yes; then |
| 6088 | CFLAGS="-g -O2" |
| 6089 | else |
| 6090 | CFLAGS="-g" |
| 6091 | fi |
| 6092 | else |
| 6093 | if test "$GCC" = yes; then |
| 6094 | CFLAGS="-O2" |
| 6095 | else |
| 6096 | CFLAGS= |
| 6097 | fi |
| 6098 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6099 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 6100 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 6101 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 6102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6103 | else |
| 6104 | ac_cv_prog_cc_c89=no |
| 6105 | ac_save_CC=$CC |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6106 | cat >conftest.$ac_ext <<_ACEOF |
| 6107 | /* confdefs.h. */ |
| 6108 | _ACEOF |
| 6109 | cat confdefs.h >>conftest.$ac_ext |
| 6110 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6111 | /* end confdefs.h. */ |
| 6112 | #include <stdarg.h> |
| 6113 | #include <stdio.h> |
| 6114 | #include <sys/types.h> |
| 6115 | #include <sys/stat.h> |
| 6116 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 6117 | struct buf { int x; }; |
| 6118 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 6119 | static char *e (p, i) |
| 6120 | char **p; |
| 6121 | int i; |
| 6122 | { |
| 6123 | return p[i]; |
| 6124 | } |
| 6125 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 6126 | { |
| 6127 | char *s; |
| 6128 | va_list v; |
| 6129 | va_start (v,p); |
| 6130 | s = g (p, va_arg (v,int)); |
| 6131 | va_end (v); |
| 6132 | return s; |
| 6133 | } |
| 6134 | |
| 6135 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6136 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6137 | These don't provoke an error unfortunately, instead are silently treated |
| 6138 | as 'x'. The following induces an error, until -std is added to get |
| 6139 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6140 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6141 | that's true only with -std. */ |
| 6142 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6143 | |
| 6144 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6145 | inside strings and character constants. */ |
| 6146 | #define FOO(x) 'x' |
| 6147 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6148 | |
| 6149 | int test (int i, double x); |
| 6150 | struct s1 {int (*f) (int a);}; |
| 6151 | struct s2 {int (*f) (double a);}; |
| 6152 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6153 | int argc; |
| 6154 | char **argv; |
| 6155 | int |
| 6156 | main () |
| 6157 | { |
| 6158 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6159 | ; |
| 6160 | return 0; |
| 6161 | } |
| 6162 | _ACEOF |
| 6163 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6164 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6165 | do |
| 6166 | CC="$ac_save_CC $ac_arg" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6167 | rm -f conftest.$ac_objext |
| 6168 | if { (ac_try="$ac_compile" |
| 6169 | case "(($ac_try" in |
| 6170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6171 | *) ac_try_echo=$ac_try;; |
| 6172 | esac |
| 6173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6174 | (eval "$ac_compile") 2>conftest.er1 |
| 6175 | ac_status=$? |
| 6176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6177 | rm -f conftest.er1 |
| 6178 | cat conftest.err >&5 |
| 6179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6180 | (exit $ac_status); } && |
| 6181 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6182 | { (case "(($ac_try" in |
| 6183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6184 | *) ac_try_echo=$ac_try;; |
| 6185 | esac |
| 6186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6187 | (eval "$ac_try") 2>&5 |
| 6188 | ac_status=$? |
| 6189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6190 | (exit $ac_status); }; } && |
| 6191 | { ac_try='test -s conftest.$ac_objext' |
| 6192 | { (case "(($ac_try" in |
| 6193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6194 | *) ac_try_echo=$ac_try;; |
| 6195 | esac |
| 6196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6197 | (eval "$ac_try") 2>&5 |
| 6198 | ac_status=$? |
| 6199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6200 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6201 | ac_cv_prog_cc_c89=$ac_arg |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6202 | else |
| 6203 | echo "$as_me: failed program was:" >&5 |
| 6204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6205 | |
| 6206 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6207 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6208 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6209 | rm -f core conftest.err conftest.$ac_objext |
| 6210 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6211 | done |
| 6212 | rm -f conftest.$ac_ext |
| 6213 | CC=$ac_save_CC |
| 6214 | |
| 6215 | fi |
| 6216 | # AC_CACHE_VAL |
| 6217 | case "x$ac_cv_prog_cc_c89" in |
| 6218 | x) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6219 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 6220 | echo "${ECHO_T}none needed" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6221 | xno) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6222 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 6223 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6224 | *) |
| 6225 | CC="$CC $ac_cv_prog_cc_c89" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6226 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 6227 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6228 | esac |
| 6229 | |
| 6230 | |
| 6231 | ac_ext=c |
| 6232 | ac_cpp='$CPP $CPPFLAGS' |
| 6233 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6234 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6235 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6236 | |
| 6237 | ac_ext=cpp |
| 6238 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6239 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6240 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6241 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6242 | if test -z "$CXX"; then |
| 6243 | if test -n "$CCC"; then |
| 6244 | CXX=$CCC |
| 6245 | else |
| 6246 | if test -n "$ac_tool_prefix"; then |
| 6247 | for ac_prog in g++ |
| 6248 | do |
| 6249 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6250 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6251 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6252 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6253 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 6254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6255 | else |
| 6256 | if test -n "$CXX"; then |
| 6257 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6258 | else |
| 6259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6260 | for as_dir in $PATH |
| 6261 | do |
| 6262 | IFS=$as_save_IFS |
| 6263 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6264 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6265 | 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] | 6266 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6267 | 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] | 6268 | break 2 |
| 6269 | fi |
| 6270 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6271 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6272 | IFS=$as_save_IFS |
| 6273 | |
| 6274 | fi |
| 6275 | fi |
| 6276 | CXX=$ac_cv_prog_CXX |
| 6277 | if test -n "$CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6278 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 6279 | echo "${ECHO_T}$CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6280 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6281 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6282 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6283 | fi |
| 6284 | |
| 6285 | |
| 6286 | test -n "$CXX" && break |
| 6287 | done |
| 6288 | fi |
| 6289 | if test -z "$CXX"; then |
| 6290 | ac_ct_CXX=$CXX |
| 6291 | for ac_prog in g++ |
| 6292 | do |
| 6293 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6294 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6295 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6296 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6297 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 6298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6299 | else |
| 6300 | if test -n "$ac_ct_CXX"; then |
| 6301 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6302 | else |
| 6303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6304 | for as_dir in $PATH |
| 6305 | do |
| 6306 | IFS=$as_save_IFS |
| 6307 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6308 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6309 | 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] | 6310 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6311 | 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] | 6312 | break 2 |
| 6313 | fi |
| 6314 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6315 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6316 | IFS=$as_save_IFS |
| 6317 | |
| 6318 | fi |
| 6319 | fi |
| 6320 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6321 | if test -n "$ac_ct_CXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6322 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 6323 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6324 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6325 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6326 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6327 | fi |
| 6328 | |
| 6329 | |
| 6330 | test -n "$ac_ct_CXX" && break |
| 6331 | done |
| 6332 | |
| 6333 | if test "x$ac_ct_CXX" = x; then |
| 6334 | CXX="g++" |
| 6335 | else |
| 6336 | case $cross_compiling:$ac_tool_warned in |
| 6337 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6338 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6339 | whose name does not start with the host triplet. If you think this |
| 6340 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6341 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6342 | whose name does not start with the host triplet. If you think this |
| 6343 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6344 | ac_tool_warned=yes ;; |
| 6345 | esac |
| 6346 | CXX=$ac_ct_CXX |
| 6347 | fi |
| 6348 | fi |
| 6349 | |
| 6350 | fi |
| 6351 | fi |
| 6352 | # Provide some information about the compiler. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6353 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 6354 | ac_compiler=`set X $ac_compile; echo $2` |
| 6355 | { (ac_try="$ac_compiler --version >&5" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6356 | case "(($ac_try" in |
| 6357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6358 | *) ac_try_echo=$ac_try;; |
| 6359 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6361 | (eval "$ac_compiler --version >&5") 2>&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6362 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6364 | (exit $ac_status); } |
| 6365 | { (ac_try="$ac_compiler -v >&5" |
| 6366 | case "(($ac_try" in |
| 6367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6368 | *) ac_try_echo=$ac_try;; |
| 6369 | esac |
| 6370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6371 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6372 | ac_status=$? |
| 6373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6374 | (exit $ac_status); } |
| 6375 | { (ac_try="$ac_compiler -V >&5" |
| 6376 | case "(($ac_try" in |
| 6377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6378 | *) ac_try_echo=$ac_try;; |
| 6379 | esac |
| 6380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6381 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6382 | ac_status=$? |
| 6383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6384 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6385 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6386 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 6387 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 6388 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 6389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6390 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6391 | cat >conftest.$ac_ext <<_ACEOF |
| 6392 | /* confdefs.h. */ |
| 6393 | _ACEOF |
| 6394 | cat confdefs.h >>conftest.$ac_ext |
| 6395 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6396 | /* end confdefs.h. */ |
| 6397 | |
| 6398 | int |
| 6399 | main () |
| 6400 | { |
| 6401 | #ifndef __GNUC__ |
| 6402 | choke me |
| 6403 | #endif |
| 6404 | |
| 6405 | ; |
| 6406 | return 0; |
| 6407 | } |
| 6408 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6409 | rm -f conftest.$ac_objext |
| 6410 | if { (ac_try="$ac_compile" |
| 6411 | case "(($ac_try" in |
| 6412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6413 | *) ac_try_echo=$ac_try;; |
| 6414 | esac |
| 6415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6416 | (eval "$ac_compile") 2>conftest.er1 |
| 6417 | ac_status=$? |
| 6418 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6419 | rm -f conftest.er1 |
| 6420 | cat conftest.err >&5 |
| 6421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6422 | (exit $ac_status); } && |
| 6423 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6424 | { (case "(($ac_try" in |
| 6425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6426 | *) ac_try_echo=$ac_try;; |
| 6427 | esac |
| 6428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6429 | (eval "$ac_try") 2>&5 |
| 6430 | ac_status=$? |
| 6431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6432 | (exit $ac_status); }; } && |
| 6433 | { ac_try='test -s conftest.$ac_objext' |
| 6434 | { (case "(($ac_try" in |
| 6435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6436 | *) ac_try_echo=$ac_try;; |
| 6437 | esac |
| 6438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6439 | (eval "$ac_try") 2>&5 |
| 6440 | ac_status=$? |
| 6441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6442 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6443 | ac_compiler_gnu=yes |
| 6444 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6445 | echo "$as_me: failed program was:" >&5 |
| 6446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6447 | |
| 6448 | ac_compiler_gnu=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6449 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6450 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6451 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6452 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6453 | |
| 6454 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6455 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6456 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 6457 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6458 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6459 | ac_save_CXXFLAGS=$CXXFLAGS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6460 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 6461 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 6462 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 6463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6464 | else |
| 6465 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6466 | ac_cxx_werror_flag=yes |
| 6467 | ac_cv_prog_cxx_g=no |
| 6468 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6469 | cat >conftest.$ac_ext <<_ACEOF |
| 6470 | /* confdefs.h. */ |
| 6471 | _ACEOF |
| 6472 | cat confdefs.h >>conftest.$ac_ext |
| 6473 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6474 | /* end confdefs.h. */ |
| 6475 | |
| 6476 | int |
| 6477 | main () |
| 6478 | { |
| 6479 | |
| 6480 | ; |
| 6481 | return 0; |
| 6482 | } |
| 6483 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6484 | rm -f conftest.$ac_objext |
| 6485 | if { (ac_try="$ac_compile" |
| 6486 | case "(($ac_try" in |
| 6487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6488 | *) ac_try_echo=$ac_try;; |
| 6489 | esac |
| 6490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6491 | (eval "$ac_compile") 2>conftest.er1 |
| 6492 | ac_status=$? |
| 6493 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6494 | rm -f conftest.er1 |
| 6495 | cat conftest.err >&5 |
| 6496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6497 | (exit $ac_status); } && |
| 6498 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6499 | { (case "(($ac_try" in |
| 6500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6501 | *) ac_try_echo=$ac_try;; |
| 6502 | esac |
| 6503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6504 | (eval "$ac_try") 2>&5 |
| 6505 | ac_status=$? |
| 6506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6507 | (exit $ac_status); }; } && |
| 6508 | { ac_try='test -s conftest.$ac_objext' |
| 6509 | { (case "(($ac_try" in |
| 6510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6511 | *) ac_try_echo=$ac_try;; |
| 6512 | esac |
| 6513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6514 | (eval "$ac_try") 2>&5 |
| 6515 | ac_status=$? |
| 6516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6517 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6518 | ac_cv_prog_cxx_g=yes |
| 6519 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6520 | echo "$as_me: failed program was:" >&5 |
| 6521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6522 | |
| 6523 | CXXFLAGS="" |
| 6524 | cat >conftest.$ac_ext <<_ACEOF |
| 6525 | /* confdefs.h. */ |
| 6526 | _ACEOF |
| 6527 | cat confdefs.h >>conftest.$ac_ext |
| 6528 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6529 | /* end confdefs.h. */ |
| 6530 | |
| 6531 | int |
| 6532 | main () |
| 6533 | { |
| 6534 | |
| 6535 | ; |
| 6536 | return 0; |
| 6537 | } |
| 6538 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6539 | rm -f conftest.$ac_objext |
| 6540 | if { (ac_try="$ac_compile" |
| 6541 | case "(($ac_try" in |
| 6542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6543 | *) ac_try_echo=$ac_try;; |
| 6544 | esac |
| 6545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6546 | (eval "$ac_compile") 2>conftest.er1 |
| 6547 | ac_status=$? |
| 6548 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6549 | rm -f conftest.er1 |
| 6550 | cat conftest.err >&5 |
| 6551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6552 | (exit $ac_status); } && |
| 6553 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6554 | { (case "(($ac_try" in |
| 6555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6556 | *) ac_try_echo=$ac_try;; |
| 6557 | esac |
| 6558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6559 | (eval "$ac_try") 2>&5 |
| 6560 | ac_status=$? |
| 6561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6562 | (exit $ac_status); }; } && |
| 6563 | { ac_try='test -s conftest.$ac_objext' |
| 6564 | { (case "(($ac_try" in |
| 6565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6566 | *) ac_try_echo=$ac_try;; |
| 6567 | esac |
| 6568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6569 | (eval "$ac_try") 2>&5 |
| 6570 | ac_status=$? |
| 6571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6572 | (exit $ac_status); }; }; then |
| 6573 | : |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 6574 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6575 | echo "$as_me: failed program was:" >&5 |
| 6576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6577 | |
| 6578 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6579 | CXXFLAGS="-g" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6580 | cat >conftest.$ac_ext <<_ACEOF |
| 6581 | /* confdefs.h. */ |
| 6582 | _ACEOF |
| 6583 | cat confdefs.h >>conftest.$ac_ext |
| 6584 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6585 | /* end confdefs.h. */ |
| 6586 | |
| 6587 | int |
| 6588 | main () |
| 6589 | { |
| 6590 | |
| 6591 | ; |
| 6592 | return 0; |
| 6593 | } |
| 6594 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6595 | rm -f conftest.$ac_objext |
| 6596 | if { (ac_try="$ac_compile" |
| 6597 | case "(($ac_try" in |
| 6598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6599 | *) ac_try_echo=$ac_try;; |
| 6600 | esac |
| 6601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6602 | (eval "$ac_compile") 2>conftest.er1 |
| 6603 | ac_status=$? |
| 6604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6605 | rm -f conftest.er1 |
| 6606 | cat conftest.err >&5 |
| 6607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6608 | (exit $ac_status); } && |
| 6609 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 6610 | { (case "(($ac_try" in |
| 6611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6612 | *) ac_try_echo=$ac_try;; |
| 6613 | esac |
| 6614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6615 | (eval "$ac_try") 2>&5 |
| 6616 | ac_status=$? |
| 6617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6618 | (exit $ac_status); }; } && |
| 6619 | { ac_try='test -s conftest.$ac_objext' |
| 6620 | { (case "(($ac_try" in |
| 6621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6622 | *) ac_try_echo=$ac_try;; |
| 6623 | esac |
| 6624 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6625 | (eval "$ac_try") 2>&5 |
| 6626 | ac_status=$? |
| 6627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6628 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6629 | ac_cv_prog_cxx_g=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6630 | else |
| 6631 | echo "$as_me: failed program was:" >&5 |
| 6632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6633 | |
| 6634 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6635 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6636 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6638 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6639 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6641 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6642 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6644 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6645 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6646 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6647 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6648 | if test "$ac_test_CXXFLAGS" = set; then |
| 6649 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6650 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6651 | if test "$GXX" = yes; then |
| 6652 | CXXFLAGS="-g -O2" |
| 6653 | else |
| 6654 | CXXFLAGS="-g" |
| 6655 | fi |
| 6656 | else |
| 6657 | if test "$GXX" = yes; then |
| 6658 | CXXFLAGS="-O2" |
| 6659 | else |
| 6660 | CXXFLAGS= |
| 6661 | fi |
| 6662 | fi |
| 6663 | ac_ext=c |
| 6664 | ac_cpp='$CPP $CPPFLAGS' |
| 6665 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6666 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6667 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6668 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6669 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6670 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6671 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6672 | if test "${lt_cv_path_NM+set}" = set; then |
| 6673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6674 | else |
| 6675 | if test -n "$NM"; then |
| 6676 | # Let the user override the test. |
| 6677 | lt_cv_path_NM="$NM" |
| 6678 | else |
| 6679 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6680 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6681 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6682 | fi |
| 6683 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6684 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6685 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6686 | IFS="$lt_save_ifs" |
| 6687 | test -z "$ac_dir" && ac_dir=. |
| 6688 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6689 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6690 | # Check to see if the nm accepts a BSD-compat flag. |
| 6691 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6692 | # nm: unknown option "B" ignored |
| 6693 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6694 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6695 | */dev/null* | *'Invalid file or object type'*) |
| 6696 | lt_cv_path_NM="$tmp_nm -B" |
| 6697 | break |
| 6698 | ;; |
| 6699 | *) |
| 6700 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6701 | */dev/null*) |
| 6702 | lt_cv_path_NM="$tmp_nm -p" |
| 6703 | break |
| 6704 | ;; |
| 6705 | *) |
| 6706 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6707 | continue # so that we can try to find one that supports BSD flags |
| 6708 | ;; |
| 6709 | esac |
| 6710 | ;; |
| 6711 | esac |
| 6712 | fi |
| 6713 | done |
| 6714 | IFS="$lt_save_ifs" |
| 6715 | done |
| 6716 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6717 | fi |
| 6718 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6719 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6720 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6721 | NM="$lt_cv_path_NM" |
| 6722 | |
| 6723 | |
| 6724 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6725 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6726 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6727 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6729 | else |
| 6730 | llvm_cv_gnu_make_command='' |
| 6731 | for a in "$MAKE" make gmake gnumake ; do |
| 6732 | if test -z "$a" ; then continue ; fi ; |
| 6733 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6734 | then |
| 6735 | llvm_cv_gnu_make_command=$a ; |
| 6736 | break; |
| 6737 | fi |
| 6738 | done |
| 6739 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6740 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6741 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6742 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6743 | ifGNUmake='' ; |
| 6744 | else |
| 6745 | ifGNUmake='#' ; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6746 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6747 | echo "${ECHO_T}\"Not found\"" >&6; }; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6748 | fi |
| 6749 | |
| 6750 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6751 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6752 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6753 | LN_S=$as_ln_s |
| 6754 | if test "$LN_S" = "ln -s"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6755 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6756 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6757 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6758 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6759 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6760 | fi |
| 6761 | |
| 6762 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6763 | set dummy cmp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6764 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6765 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6766 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6768 | else |
| 6769 | case $CMP in |
| 6770 | [\\/]* | ?:[\\/]*) |
| 6771 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6772 | ;; |
| 6773 | *) |
| 6774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6775 | for as_dir in $PATH |
| 6776 | do |
| 6777 | IFS=$as_save_IFS |
| 6778 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6779 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6780 | 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] | 6781 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6782 | 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] | 6783 | break 2 |
| 6784 | fi |
| 6785 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6786 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6787 | IFS=$as_save_IFS |
| 6788 | |
| 6789 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6790 | ;; |
| 6791 | esac |
| 6792 | fi |
| 6793 | CMP=$ac_cv_path_CMP |
| 6794 | if test -n "$CMP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6795 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6796 | echo "${ECHO_T}$CMP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6797 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6798 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6799 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6800 | fi |
| 6801 | |
| 6802 | |
| 6803 | # Extract the first word of "cp", so it can be a program name with args. |
| 6804 | set dummy cp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6805 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6806 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6807 | if test "${ac_cv_path_CP+set}" = set; then |
| 6808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6809 | else |
| 6810 | case $CP in |
| 6811 | [\\/]* | ?:[\\/]*) |
| 6812 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6813 | ;; |
| 6814 | *) |
| 6815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6816 | for as_dir in $PATH |
| 6817 | do |
| 6818 | IFS=$as_save_IFS |
| 6819 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6820 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6821 | 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] | 6822 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6823 | 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] | 6824 | break 2 |
| 6825 | fi |
| 6826 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6827 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6828 | IFS=$as_save_IFS |
| 6829 | |
| 6830 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6831 | ;; |
| 6832 | esac |
| 6833 | fi |
| 6834 | CP=$ac_cv_path_CP |
| 6835 | if test -n "$CP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6836 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6837 | echo "${ECHO_T}$CP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6838 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6839 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6840 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6841 | fi |
| 6842 | |
| 6843 | |
| 6844 | # Extract the first word of "date", so it can be a program name with args. |
| 6845 | set dummy date; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6846 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6847 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6848 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6850 | else |
| 6851 | case $DATE in |
| 6852 | [\\/]* | ?:[\\/]*) |
| 6853 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6854 | ;; |
| 6855 | *) |
| 6856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6857 | for as_dir in $PATH |
| 6858 | do |
| 6859 | IFS=$as_save_IFS |
| 6860 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6861 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6862 | 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] | 6863 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6864 | 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] | 6865 | break 2 |
| 6866 | fi |
| 6867 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6868 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6869 | IFS=$as_save_IFS |
| 6870 | |
| 6871 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6872 | ;; |
| 6873 | esac |
| 6874 | fi |
| 6875 | DATE=$ac_cv_path_DATE |
| 6876 | if test -n "$DATE"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6877 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6878 | echo "${ECHO_T}$DATE" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6879 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6880 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6881 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6882 | fi |
| 6883 | |
| 6884 | |
| 6885 | # Extract the first word of "find", so it can be a program name with args. |
| 6886 | set dummy find; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6887 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6888 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6889 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6891 | else |
| 6892 | case $FIND in |
| 6893 | [\\/]* | ?:[\\/]*) |
| 6894 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6895 | ;; |
| 6896 | *) |
| 6897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6898 | for as_dir in $PATH |
| 6899 | do |
| 6900 | IFS=$as_save_IFS |
| 6901 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6902 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6903 | 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] | 6904 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6905 | 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] | 6906 | break 2 |
| 6907 | fi |
| 6908 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6909 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6910 | IFS=$as_save_IFS |
| 6911 | |
| 6912 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6913 | ;; |
| 6914 | esac |
| 6915 | fi |
| 6916 | FIND=$ac_cv_path_FIND |
| 6917 | if test -n "$FIND"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6918 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6919 | echo "${ECHO_T}$FIND" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6920 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6921 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6922 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6923 | fi |
| 6924 | |
| 6925 | |
| 6926 | # Extract the first word of "grep", so it can be a program name with args. |
| 6927 | set dummy grep; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6928 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6929 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6930 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6932 | else |
| 6933 | case $GREP in |
| 6934 | [\\/]* | ?:[\\/]*) |
| 6935 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6936 | ;; |
| 6937 | *) |
| 6938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6939 | for as_dir in $PATH |
| 6940 | do |
| 6941 | IFS=$as_save_IFS |
| 6942 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6943 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6944 | 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] | 6945 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6946 | 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] | 6947 | break 2 |
| 6948 | fi |
| 6949 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6950 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6951 | IFS=$as_save_IFS |
| 6952 | |
| 6953 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6954 | ;; |
| 6955 | esac |
| 6956 | fi |
| 6957 | GREP=$ac_cv_path_GREP |
| 6958 | if test -n "$GREP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6959 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6960 | echo "${ECHO_T}$GREP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6961 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6962 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6963 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6964 | fi |
| 6965 | |
| 6966 | |
| 6967 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6968 | set dummy mkdir; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6969 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6970 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6971 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6973 | else |
| 6974 | case $MKDIR in |
| 6975 | [\\/]* | ?:[\\/]*) |
| 6976 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6977 | ;; |
| 6978 | *) |
| 6979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6980 | for as_dir in $PATH |
| 6981 | do |
| 6982 | IFS=$as_save_IFS |
| 6983 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6984 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6985 | 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] | 6986 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6987 | 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] | 6988 | break 2 |
| 6989 | fi |
| 6990 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 6991 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6992 | IFS=$as_save_IFS |
| 6993 | |
| 6994 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6995 | ;; |
| 6996 | esac |
| 6997 | fi |
| 6998 | MKDIR=$ac_cv_path_MKDIR |
| 6999 | if test -n "$MKDIR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7000 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 7001 | echo "${ECHO_T}$MKDIR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7002 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7003 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7004 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7005 | fi |
| 7006 | |
| 7007 | |
| 7008 | # Extract the first word of "mv", so it can be a program name with args. |
| 7009 | set dummy mv; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7010 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7011 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7012 | if test "${ac_cv_path_MV+set}" = set; then |
| 7013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7014 | else |
| 7015 | case $MV in |
| 7016 | [\\/]* | ?:[\\/]*) |
| 7017 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 7018 | ;; |
| 7019 | *) |
| 7020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7021 | for as_dir in $PATH |
| 7022 | do |
| 7023 | IFS=$as_save_IFS |
| 7024 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7025 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7026 | 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] | 7027 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7028 | 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] | 7029 | break 2 |
| 7030 | fi |
| 7031 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7032 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7033 | IFS=$as_save_IFS |
| 7034 | |
| 7035 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 7036 | ;; |
| 7037 | esac |
| 7038 | fi |
| 7039 | MV=$ac_cv_path_MV |
| 7040 | if test -n "$MV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7041 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 7042 | echo "${ECHO_T}$MV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7043 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7044 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7045 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7046 | fi |
| 7047 | |
| 7048 | |
| 7049 | if test -n "$ac_tool_prefix"; then |
| 7050 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7051 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7052 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7053 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7054 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 7055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7056 | else |
| 7057 | if test -n "$RANLIB"; then |
| 7058 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7059 | else |
| 7060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7061 | for as_dir in $PATH |
| 7062 | do |
| 7063 | IFS=$as_save_IFS |
| 7064 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7065 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7066 | 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] | 7067 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7068 | 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] | 7069 | break 2 |
| 7070 | fi |
| 7071 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7072 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7073 | IFS=$as_save_IFS |
| 7074 | |
| 7075 | fi |
| 7076 | fi |
| 7077 | RANLIB=$ac_cv_prog_RANLIB |
| 7078 | if test -n "$RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7079 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 7080 | echo "${ECHO_T}$RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7081 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7082 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7083 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7084 | fi |
| 7085 | |
| 7086 | |
| 7087 | fi |
| 7088 | if test -z "$ac_cv_prog_RANLIB"; then |
| 7089 | ac_ct_RANLIB=$RANLIB |
| 7090 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7091 | set dummy ranlib; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7092 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7093 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7094 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 7095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7096 | else |
| 7097 | if test -n "$ac_ct_RANLIB"; then |
| 7098 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7099 | else |
| 7100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7101 | for as_dir in $PATH |
| 7102 | do |
| 7103 | IFS=$as_save_IFS |
| 7104 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7105 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7106 | 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] | 7107 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7108 | 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] | 7109 | break 2 |
| 7110 | fi |
| 7111 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7112 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7113 | IFS=$as_save_IFS |
| 7114 | |
| 7115 | fi |
| 7116 | fi |
| 7117 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7118 | if test -n "$ac_ct_RANLIB"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7119 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 7120 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7121 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7122 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7123 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7124 | fi |
| 7125 | |
| 7126 | if test "x$ac_ct_RANLIB" = x; then |
| 7127 | RANLIB=":" |
| 7128 | else |
| 7129 | case $cross_compiling:$ac_tool_warned in |
| 7130 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7131 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7132 | whose name does not start with the host triplet. If you think this |
| 7133 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7134 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7135 | whose name does not start with the host triplet. If you think this |
| 7136 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7137 | ac_tool_warned=yes ;; |
| 7138 | esac |
| 7139 | RANLIB=$ac_ct_RANLIB |
| 7140 | fi |
| 7141 | else |
| 7142 | RANLIB="$ac_cv_prog_RANLIB" |
| 7143 | fi |
| 7144 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7145 | if test -n "$ac_tool_prefix"; then |
| 7146 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 7147 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7148 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7149 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7150 | if test "${ac_cv_prog_AR+set}" = set; then |
| 7151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7152 | else |
| 7153 | if test -n "$AR"; then |
| 7154 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7155 | else |
| 7156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7157 | for as_dir in $PATH |
| 7158 | do |
| 7159 | IFS=$as_save_IFS |
| 7160 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7161 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7162 | 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] | 7163 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7164 | 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] | 7165 | break 2 |
| 7166 | fi |
| 7167 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7168 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7169 | IFS=$as_save_IFS |
| 7170 | |
| 7171 | fi |
| 7172 | fi |
| 7173 | AR=$ac_cv_prog_AR |
| 7174 | if test -n "$AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7175 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 7176 | echo "${ECHO_T}$AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7177 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7178 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7179 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7180 | fi |
| 7181 | |
| 7182 | |
| 7183 | fi |
| 7184 | if test -z "$ac_cv_prog_AR"; then |
| 7185 | ac_ct_AR=$AR |
| 7186 | # Extract the first word of "ar", so it can be a program name with args. |
| 7187 | set dummy ar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7188 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7189 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7190 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 7191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7192 | else |
| 7193 | if test -n "$ac_ct_AR"; then |
| 7194 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7195 | else |
| 7196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7197 | for as_dir in $PATH |
| 7198 | do |
| 7199 | IFS=$as_save_IFS |
| 7200 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7201 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7202 | 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] | 7203 | ac_cv_prog_ac_ct_AR="ar" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7204 | 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] | 7205 | break 2 |
| 7206 | fi |
| 7207 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7208 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7209 | IFS=$as_save_IFS |
| 7210 | |
| 7211 | fi |
| 7212 | fi |
| 7213 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7214 | if test -n "$ac_ct_AR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7215 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 7216 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7217 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7218 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7219 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7220 | fi |
| 7221 | |
| 7222 | if test "x$ac_ct_AR" = x; then |
| 7223 | AR="false" |
| 7224 | else |
| 7225 | case $cross_compiling:$ac_tool_warned in |
| 7226 | yes:) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7227 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7228 | whose name does not start with the host triplet. If you think this |
| 7229 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7230 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7231 | whose name does not start with the host triplet. If you think this |
| 7232 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 7233 | ac_tool_warned=yes ;; |
| 7234 | esac |
| 7235 | AR=$ac_ct_AR |
| 7236 | fi |
| 7237 | else |
| 7238 | AR="$ac_cv_prog_AR" |
| 7239 | fi |
| 7240 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7241 | # Extract the first word of "rm", so it can be a program name with args. |
| 7242 | set dummy rm; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7243 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7244 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7245 | if test "${ac_cv_path_RM+set}" = set; then |
| 7246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7247 | else |
| 7248 | case $RM in |
| 7249 | [\\/]* | ?:[\\/]*) |
| 7250 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 7251 | ;; |
| 7252 | *) |
| 7253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7254 | for as_dir in $PATH |
| 7255 | do |
| 7256 | IFS=$as_save_IFS |
| 7257 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7258 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7259 | 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] | 7260 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7261 | 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] | 7262 | break 2 |
| 7263 | fi |
| 7264 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7265 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7266 | IFS=$as_save_IFS |
| 7267 | |
| 7268 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 7269 | ;; |
| 7270 | esac |
| 7271 | fi |
| 7272 | RM=$ac_cv_path_RM |
| 7273 | if test -n "$RM"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7274 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 7275 | echo "${ECHO_T}$RM" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7276 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7277 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7278 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7279 | fi |
| 7280 | |
| 7281 | |
| 7282 | # Extract the first word of "sed", so it can be a program name with args. |
| 7283 | set dummy sed; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7284 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7285 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7286 | if test "${ac_cv_path_SED+set}" = set; then |
| 7287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7288 | else |
| 7289 | case $SED in |
| 7290 | [\\/]* | ?:[\\/]*) |
| 7291 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 7292 | ;; |
| 7293 | *) |
| 7294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7295 | for as_dir in $PATH |
| 7296 | do |
| 7297 | IFS=$as_save_IFS |
| 7298 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7299 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7300 | 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] | 7301 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7302 | 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] | 7303 | break 2 |
| 7304 | fi |
| 7305 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7306 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7307 | IFS=$as_save_IFS |
| 7308 | |
| 7309 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 7310 | ;; |
| 7311 | esac |
| 7312 | fi |
| 7313 | SED=$ac_cv_path_SED |
| 7314 | if test -n "$SED"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7315 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 7316 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7317 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7318 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7319 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7320 | fi |
| 7321 | |
| 7322 | |
| 7323 | # Extract the first word of "tar", so it can be a program name with args. |
| 7324 | set dummy tar; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7325 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7326 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7327 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7329 | else |
| 7330 | case $TAR in |
| 7331 | [\\/]* | ?:[\\/]*) |
| 7332 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7333 | ;; |
| 7334 | *) |
| 7335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7336 | for as_dir in $PATH |
| 7337 | do |
| 7338 | IFS=$as_save_IFS |
| 7339 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7340 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7341 | 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] | 7342 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7343 | 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] | 7344 | break 2 |
| 7345 | fi |
| 7346 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7347 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7348 | IFS=$as_save_IFS |
| 7349 | |
| 7350 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7351 | ;; |
| 7352 | esac |
| 7353 | fi |
| 7354 | TAR=$ac_cv_path_TAR |
| 7355 | if test -n "$TAR"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7356 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7357 | echo "${ECHO_T}$TAR" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7358 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7359 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7360 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7361 | fi |
| 7362 | |
| 7363 | |
| 7364 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7365 | set dummy pwd; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7366 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7367 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7368 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7370 | else |
| 7371 | case $BINPWD in |
| 7372 | [\\/]* | ?:[\\/]*) |
| 7373 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7374 | ;; |
| 7375 | *) |
| 7376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7377 | for as_dir in $PATH |
| 7378 | do |
| 7379 | IFS=$as_save_IFS |
| 7380 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7381 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7382 | 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] | 7383 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7384 | 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] | 7385 | break 2 |
| 7386 | fi |
| 7387 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7388 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7389 | IFS=$as_save_IFS |
| 7390 | |
| 7391 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7392 | ;; |
| 7393 | esac |
| 7394 | fi |
| 7395 | BINPWD=$ac_cv_path_BINPWD |
| 7396 | if test -n "$BINPWD"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7397 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7398 | echo "${ECHO_T}$BINPWD" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7399 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7400 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7401 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7402 | fi |
| 7403 | |
| 7404 | |
| 7405 | |
| 7406 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7407 | set dummy Graphviz; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7408 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7409 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7410 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7412 | else |
| 7413 | case $GRAPHVIZ in |
| 7414 | [\\/]* | ?:[\\/]*) |
| 7415 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7416 | ;; |
| 7417 | *) |
| 7418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7419 | for as_dir in $PATH |
| 7420 | do |
| 7421 | IFS=$as_save_IFS |
| 7422 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7423 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7424 | 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] | 7425 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7426 | 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] | 7427 | break 2 |
| 7428 | fi |
| 7429 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7430 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7431 | IFS=$as_save_IFS |
| 7432 | |
| 7433 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7434 | ;; |
| 7435 | esac |
| 7436 | fi |
| 7437 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7438 | if test -n "$GRAPHVIZ"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7439 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7440 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7441 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7442 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7443 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7444 | fi |
| 7445 | |
| 7446 | |
| 7447 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7448 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7449 | cat >>confdefs.h <<\_ACEOF |
| 7450 | #define HAVE_GRAPHVIZ 1 |
| 7451 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7452 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7453 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7454 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7455 | fi |
| 7456 | |
| 7457 | cat >>confdefs.h <<_ACEOF |
| 7458 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7459 | _ACEOF |
| 7460 | |
| 7461 | fi |
| 7462 | # Extract the first word of "dot", so it can be a program name with args. |
| 7463 | set dummy dot; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7464 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7465 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7466 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7468 | else |
| 7469 | case $DOT in |
| 7470 | [\\/]* | ?:[\\/]*) |
| 7471 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7472 | ;; |
| 7473 | *) |
| 7474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7475 | for as_dir in $PATH |
| 7476 | do |
| 7477 | IFS=$as_save_IFS |
| 7478 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7479 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7480 | 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] | 7481 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7482 | 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] | 7483 | break 2 |
| 7484 | fi |
| 7485 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7486 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7487 | IFS=$as_save_IFS |
| 7488 | |
| 7489 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7490 | ;; |
| 7491 | esac |
| 7492 | fi |
| 7493 | DOT=$ac_cv_path_DOT |
| 7494 | if test -n "$DOT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7495 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7496 | echo "${ECHO_T}$DOT" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7497 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7498 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7499 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7500 | fi |
| 7501 | |
| 7502 | |
| 7503 | if test "$DOT" != "echo dot" ; then |
| 7504 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7505 | cat >>confdefs.h <<\_ACEOF |
| 7506 | #define HAVE_DOT 1 |
| 7507 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7508 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7509 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7510 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7511 | fi |
| 7512 | |
| 7513 | cat >>confdefs.h <<_ACEOF |
| 7514 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7515 | _ACEOF |
| 7516 | |
| 7517 | fi |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7518 | # Extract the first word of "fdp", so it can be a program name with args. |
| 7519 | set dummy fdp; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7520 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7521 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7522 | if test "${ac_cv_path_FDP+set}" = set; then |
| 7523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7524 | else |
| 7525 | case $FDP in |
| 7526 | [\\/]* | ?:[\\/]*) |
| 7527 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 7528 | ;; |
| 7529 | *) |
| 7530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7531 | for as_dir in $PATH |
| 7532 | do |
| 7533 | IFS=$as_save_IFS |
| 7534 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7535 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7536 | 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] | 7537 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7538 | 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] | 7539 | break 2 |
| 7540 | fi |
| 7541 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7542 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7543 | IFS=$as_save_IFS |
| 7544 | |
| 7545 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 7546 | ;; |
| 7547 | esac |
| 7548 | fi |
| 7549 | FDP=$ac_cv_path_FDP |
| 7550 | if test -n "$FDP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7551 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 7552 | echo "${ECHO_T}$FDP" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7553 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7554 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7555 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7556 | fi |
| 7557 | |
| 7558 | |
| 7559 | if test "$FDP" != "echo fdp" ; then |
| 7560 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7561 | cat >>confdefs.h <<\_ACEOF |
| 7562 | #define HAVE_FDP 1 |
| 7563 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7564 | |
| 7565 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7566 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7567 | fi |
| 7568 | |
| 7569 | cat >>confdefs.h <<_ACEOF |
| 7570 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 7571 | _ACEOF |
| 7572 | |
| 7573 | fi |
| 7574 | # Extract the first word of "neato", so it can be a program name with args. |
| 7575 | set dummy neato; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7576 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7577 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7578 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 7579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7580 | else |
| 7581 | case $NEATO in |
| 7582 | [\\/]* | ?:[\\/]*) |
| 7583 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 7584 | ;; |
| 7585 | *) |
| 7586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7587 | for as_dir in $PATH |
| 7588 | do |
| 7589 | IFS=$as_save_IFS |
| 7590 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7591 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7592 | 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] | 7593 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7594 | 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] | 7595 | break 2 |
| 7596 | fi |
| 7597 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7598 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7599 | IFS=$as_save_IFS |
| 7600 | |
| 7601 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 7602 | ;; |
| 7603 | esac |
| 7604 | fi |
| 7605 | NEATO=$ac_cv_path_NEATO |
| 7606 | if test -n "$NEATO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7607 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 7608 | echo "${ECHO_T}$NEATO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7609 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7610 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7611 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7612 | fi |
| 7613 | |
| 7614 | |
| 7615 | if test "$NEATO" != "echo neato" ; then |
| 7616 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7617 | cat >>confdefs.h <<\_ACEOF |
| 7618 | #define HAVE_NEATO 1 |
| 7619 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7620 | |
| 7621 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7622 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7623 | fi |
| 7624 | |
| 7625 | cat >>confdefs.h <<_ACEOF |
| 7626 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 7627 | _ACEOF |
| 7628 | |
| 7629 | fi |
| 7630 | # Extract the first word of "twopi", so it can be a program name with args. |
| 7631 | set dummy twopi; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7632 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7634 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 7635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7636 | else |
| 7637 | case $TWOPI in |
| 7638 | [\\/]* | ?:[\\/]*) |
| 7639 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 7640 | ;; |
| 7641 | *) |
| 7642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7643 | for as_dir in $PATH |
| 7644 | do |
| 7645 | IFS=$as_save_IFS |
| 7646 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7647 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7648 | 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] | 7649 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7650 | 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] | 7651 | break 2 |
| 7652 | fi |
| 7653 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7654 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7655 | IFS=$as_save_IFS |
| 7656 | |
| 7657 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 7658 | ;; |
| 7659 | esac |
| 7660 | fi |
| 7661 | TWOPI=$ac_cv_path_TWOPI |
| 7662 | if test -n "$TWOPI"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7663 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 7664 | echo "${ECHO_T}$TWOPI" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7665 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7666 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7667 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7668 | fi |
| 7669 | |
| 7670 | |
| 7671 | if test "$TWOPI" != "echo twopi" ; then |
| 7672 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7673 | cat >>confdefs.h <<\_ACEOF |
| 7674 | #define HAVE_TWOPI 1 |
| 7675 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7676 | |
| 7677 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7678 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7679 | fi |
| 7680 | |
| 7681 | cat >>confdefs.h <<_ACEOF |
| 7682 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 7683 | _ACEOF |
| 7684 | |
| 7685 | fi |
| 7686 | # Extract the first word of "circo", so it can be a program name with args. |
| 7687 | set dummy circo; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7688 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7689 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7690 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 7691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7692 | else |
| 7693 | case $CIRCO in |
| 7694 | [\\/]* | ?:[\\/]*) |
| 7695 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 7696 | ;; |
| 7697 | *) |
| 7698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7699 | for as_dir in $PATH |
| 7700 | do |
| 7701 | IFS=$as_save_IFS |
| 7702 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7703 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7704 | 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] | 7705 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7706 | 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] | 7707 | break 2 |
| 7708 | fi |
| 7709 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7710 | done |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7711 | IFS=$as_save_IFS |
| 7712 | |
| 7713 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 7714 | ;; |
| 7715 | esac |
| 7716 | fi |
| 7717 | CIRCO=$ac_cv_path_CIRCO |
| 7718 | if test -n "$CIRCO"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7719 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 7720 | echo "${ECHO_T}$CIRCO" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7721 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7722 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7723 | echo "${ECHO_T}no" >&6; } |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7724 | fi |
| 7725 | |
| 7726 | |
| 7727 | if test "$CIRCO" != "echo circo" ; then |
| 7728 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7729 | cat >>confdefs.h <<\_ACEOF |
| 7730 | #define HAVE_CIRCO 1 |
| 7731 | _ACEOF |
David Greene | f0b9eff | 2009-07-09 17:16:26 +0000 | [diff] [blame] | 7732 | |
| 7733 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 7734 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7735 | fi |
| 7736 | |
| 7737 | cat >>confdefs.h <<_ACEOF |
| 7738 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 7739 | _ACEOF |
| 7740 | |
| 7741 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7742 | for ac_prog in gv gsview32 |
| 7743 | do |
| 7744 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7745 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7746 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7748 | if test "${ac_cv_path_GV+set}" = set; then |
| 7749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7750 | else |
| 7751 | case $GV in |
| 7752 | [\\/]* | ?:[\\/]*) |
| 7753 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7754 | ;; |
| 7755 | *) |
| 7756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7757 | for as_dir in $PATH |
| 7758 | do |
| 7759 | IFS=$as_save_IFS |
| 7760 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7761 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7762 | 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] | 7763 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7764 | 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] | 7765 | break 2 |
| 7766 | fi |
| 7767 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7768 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7769 | IFS=$as_save_IFS |
| 7770 | |
| 7771 | ;; |
| 7772 | esac |
| 7773 | fi |
| 7774 | GV=$ac_cv_path_GV |
| 7775 | if test -n "$GV"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7776 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7777 | echo "${ECHO_T}$GV" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7778 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7779 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7780 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7781 | fi |
| 7782 | |
| 7783 | |
| 7784 | test -n "$GV" && break |
| 7785 | done |
| 7786 | test -n "$GV" || GV="echo gv" |
| 7787 | |
| 7788 | if test "$GV" != "echo gv" ; then |
| 7789 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7790 | cat >>confdefs.h <<\_ACEOF |
| 7791 | #define HAVE_GV 1 |
| 7792 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7793 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7794 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7795 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7796 | fi |
| 7797 | |
| 7798 | cat >>confdefs.h <<_ACEOF |
| 7799 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7800 | _ACEOF |
| 7801 | |
| 7802 | fi |
| 7803 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7804 | set dummy dotty; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7805 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7806 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7807 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7809 | else |
| 7810 | case $DOTTY in |
| 7811 | [\\/]* | ?:[\\/]*) |
| 7812 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7813 | ;; |
| 7814 | *) |
| 7815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7816 | for as_dir in $PATH |
| 7817 | do |
| 7818 | IFS=$as_save_IFS |
| 7819 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7820 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7821 | 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] | 7822 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7823 | 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] | 7824 | break 2 |
| 7825 | fi |
| 7826 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7827 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7828 | IFS=$as_save_IFS |
| 7829 | |
| 7830 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7831 | ;; |
| 7832 | esac |
| 7833 | fi |
| 7834 | DOTTY=$ac_cv_path_DOTTY |
| 7835 | if test -n "$DOTTY"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7836 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7837 | echo "${ECHO_T}$DOTTY" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7838 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7839 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7840 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7841 | fi |
| 7842 | |
| 7843 | |
| 7844 | if test "$DOTTY" != "echo dotty" ; then |
| 7845 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7846 | cat >>confdefs.h <<\_ACEOF |
| 7847 | #define HAVE_DOTTY 1 |
| 7848 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7849 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7850 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7851 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7852 | fi |
| 7853 | |
| 7854 | cat >>confdefs.h <<_ACEOF |
| 7855 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7856 | _ACEOF |
| 7857 | |
| 7858 | fi |
| 7859 | |
| 7860 | |
| 7861 | # Extract the first word of "perl", so it can be a program name with args. |
| 7862 | set dummy perl; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7863 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7865 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7867 | else |
| 7868 | case $PERL in |
| 7869 | [\\/]* | ?:[\\/]*) |
| 7870 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7871 | ;; |
| 7872 | *) |
| 7873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7874 | for as_dir in $PATH |
| 7875 | do |
| 7876 | IFS=$as_save_IFS |
| 7877 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7878 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7879 | 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] | 7880 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7881 | 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] | 7882 | break 2 |
| 7883 | fi |
| 7884 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7885 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7886 | IFS=$as_save_IFS |
| 7887 | |
| 7888 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7889 | ;; |
| 7890 | esac |
| 7891 | fi |
| 7892 | PERL=$ac_cv_path_PERL |
| 7893 | if test -n "$PERL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7894 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7895 | echo "${ECHO_T}$PERL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7896 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7897 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7898 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7899 | fi |
| 7900 | |
| 7901 | |
| 7902 | if test "$PERL" != "none"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7903 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7904 | 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] | 7905 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7906 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7907 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7908 | else |
| 7909 | PERL=none |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7910 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7911 | echo "${ECHO_T}not found" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7912 | fi |
| 7913 | fi |
| 7914 | |
| 7915 | |
| 7916 | if test x"$PERL" = xnone; then |
| 7917 | HAVE_PERL=0 |
| 7918 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7919 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7920 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7921 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7922 | else |
| 7923 | HAVE_PERL=1 |
| 7924 | |
| 7925 | fi |
| 7926 | |
| 7927 | # Find a good install program. We prefer a C program (faster), |
| 7928 | # so one script is as good as another. But avoid the broken or |
| 7929 | # incompatible versions: |
| 7930 | # SysV /etc/install, /usr/sbin/install |
| 7931 | # SunOS /usr/etc/install |
| 7932 | # IRIX /sbin/install |
| 7933 | # AIX /bin/install |
| 7934 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7935 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7936 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7937 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7938 | # OS/2's system install, which has a completely different semantic |
| 7939 | # ./install, which can be erroneously created by make from ./install.sh. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7940 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7941 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7942 | if test -z "$INSTALL"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7943 | if test "${ac_cv_path_install+set}" = set; then |
| 7944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7945 | else |
| 7946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7947 | for as_dir in $PATH |
| 7948 | do |
| 7949 | IFS=$as_save_IFS |
| 7950 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7951 | # Account for people who put trailing slashes in PATH elements. |
| 7952 | case $as_dir/ in |
| 7953 | ./ | .// | /cC/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7954 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7955 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7956 | /usr/ucb/* ) ;; |
| 7957 | *) |
| 7958 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7959 | # Don't use installbsd from OSF since it installs stuff as root |
| 7960 | # by default. |
| 7961 | for ac_prog in ginstall scoinst install; do |
| 7962 | for ac_exec_ext in '' $ac_executable_extensions; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7963 | 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] | 7964 | if test $ac_prog = install && |
| 7965 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7966 | # AIX install. It has an incompatible calling convention. |
| 7967 | : |
| 7968 | elif test $ac_prog = install && |
| 7969 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7970 | # program-specific install script used by HP pwplus--don't use. |
| 7971 | : |
| 7972 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7973 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7974 | break 3 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7975 | fi |
| 7976 | fi |
| 7977 | done |
| 7978 | done |
| 7979 | ;; |
| 7980 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7981 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7982 | IFS=$as_save_IFS |
| 7983 | |
| 7984 | |
| 7985 | fi |
| 7986 | if test "${ac_cv_path_install+set}" = set; then |
| 7987 | INSTALL=$ac_cv_path_install |
| 7988 | else |
| 7989 | # As a last resort, use the slow shell script. Don't cache a |
| 7990 | # value for INSTALL within a source directory, because that will |
| 7991 | # break other packages using the cache if that directory is |
| 7992 | # removed, or if the value is a relative name. |
| 7993 | INSTALL=$ac_install_sh |
| 7994 | fi |
| 7995 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 7996 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7997 | echo "${ECHO_T}$INSTALL" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7998 | |
| 7999 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 8000 | # It thinks the first close brace ends the variable substitution. |
| 8001 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 8002 | |
| 8003 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 8004 | |
| 8005 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 8006 | |
| 8007 | |
| 8008 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 8009 | set dummy bzip2; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8010 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8011 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8012 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 8013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8014 | else |
| 8015 | case $BZIP2 in |
| 8016 | [\\/]* | ?:[\\/]*) |
| 8017 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 8018 | ;; |
| 8019 | *) |
| 8020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8021 | for as_dir in $PATH |
| 8022 | do |
| 8023 | IFS=$as_save_IFS |
| 8024 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8025 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8026 | 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] | 8027 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8028 | 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] | 8029 | break 2 |
| 8030 | fi |
| 8031 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8032 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8033 | IFS=$as_save_IFS |
| 8034 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8035 | ;; |
| 8036 | esac |
| 8037 | fi |
| 8038 | BZIP2=$ac_cv_path_BZIP2 |
| 8039 | if test -n "$BZIP2"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8040 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 8041 | echo "${ECHO_T}$BZIP2" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8042 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8043 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8044 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8045 | fi |
| 8046 | |
| 8047 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 8048 | # Extract the first word of "cat", so it can be a program name with args. |
| 8049 | set dummy cat; ac_word=$2 |
| 8050 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8051 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8052 | if test "${ac_cv_path_CAT+set}" = set; then |
| 8053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8054 | else |
| 8055 | case $CAT in |
| 8056 | [\\/]* | ?:[\\/]*) |
| 8057 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
| 8058 | ;; |
| 8059 | *) |
| 8060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8061 | for as_dir in $PATH |
| 8062 | do |
| 8063 | IFS=$as_save_IFS |
| 8064 | test -z "$as_dir" && as_dir=. |
| 8065 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8066 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8067 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" |
| 8068 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8069 | break 2 |
| 8070 | fi |
| 8071 | done |
| 8072 | done |
| 8073 | IFS=$as_save_IFS |
| 8074 | |
| 8075 | ;; |
| 8076 | esac |
| 8077 | fi |
| 8078 | CAT=$ac_cv_path_CAT |
| 8079 | if test -n "$CAT"; then |
| 8080 | { echo "$as_me:$LINENO: result: $CAT" >&5 |
| 8081 | echo "${ECHO_T}$CAT" >&6; } |
| 8082 | else |
| 8083 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8084 | echo "${ECHO_T}no" >&6; } |
| 8085 | fi |
| 8086 | |
| 8087 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8088 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 8089 | set dummy doxygen; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8090 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8091 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8092 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 8093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8094 | else |
| 8095 | case $DOXYGEN in |
| 8096 | [\\/]* | ?:[\\/]*) |
| 8097 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 8098 | ;; |
| 8099 | *) |
| 8100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8101 | for as_dir in $PATH |
| 8102 | do |
| 8103 | IFS=$as_save_IFS |
| 8104 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8105 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8106 | 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] | 8107 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8108 | 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] | 8109 | break 2 |
| 8110 | fi |
| 8111 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8112 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8113 | IFS=$as_save_IFS |
| 8114 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8115 | ;; |
| 8116 | esac |
| 8117 | fi |
| 8118 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 8119 | if test -n "$DOXYGEN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8120 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 8121 | echo "${ECHO_T}$DOXYGEN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8122 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8123 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8124 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8125 | fi |
| 8126 | |
| 8127 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8128 | # Extract the first word of "groff", so it can be a program name with args. |
| 8129 | set dummy groff; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8130 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8131 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8132 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 8133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8134 | else |
| 8135 | case $GROFF in |
| 8136 | [\\/]* | ?:[\\/]*) |
| 8137 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 8138 | ;; |
| 8139 | *) |
| 8140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8141 | for as_dir in $PATH |
| 8142 | do |
| 8143 | IFS=$as_save_IFS |
| 8144 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8145 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8146 | 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] | 8147 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8148 | 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] | 8149 | break 2 |
| 8150 | fi |
| 8151 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8152 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8153 | IFS=$as_save_IFS |
| 8154 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8155 | ;; |
| 8156 | esac |
| 8157 | fi |
| 8158 | GROFF=$ac_cv_path_GROFF |
| 8159 | if test -n "$GROFF"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8160 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 8161 | echo "${ECHO_T}$GROFF" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8162 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8163 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8164 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8165 | fi |
| 8166 | |
| 8167 | |
| 8168 | # Extract the first word of "gzip", so it can be a program name with args. |
| 8169 | set dummy gzip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8170 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8171 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8172 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 8173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8174 | else |
| 8175 | case $GZIP in |
| 8176 | [\\/]* | ?:[\\/]*) |
| 8177 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 8178 | ;; |
| 8179 | *) |
| 8180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8181 | for as_dir in $PATH |
| 8182 | do |
| 8183 | IFS=$as_save_IFS |
| 8184 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8185 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8186 | 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] | 8187 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8188 | 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] | 8189 | break 2 |
| 8190 | fi |
| 8191 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8192 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8193 | IFS=$as_save_IFS |
| 8194 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8195 | ;; |
| 8196 | esac |
| 8197 | fi |
| 8198 | GZIP=$ac_cv_path_GZIP |
| 8199 | if test -n "$GZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8200 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 8201 | echo "${ECHO_T}$GZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8202 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8203 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8204 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8205 | fi |
| 8206 | |
| 8207 | |
| 8208 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 8209 | set dummy pod2html; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8210 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8212 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 8213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8214 | else |
| 8215 | case $POD2HTML in |
| 8216 | [\\/]* | ?:[\\/]*) |
| 8217 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 8218 | ;; |
| 8219 | *) |
| 8220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8221 | for as_dir in $PATH |
| 8222 | do |
| 8223 | IFS=$as_save_IFS |
| 8224 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8225 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8226 | 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] | 8227 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8228 | 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] | 8229 | break 2 |
| 8230 | fi |
| 8231 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8232 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8233 | IFS=$as_save_IFS |
| 8234 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8235 | ;; |
| 8236 | esac |
| 8237 | fi |
| 8238 | POD2HTML=$ac_cv_path_POD2HTML |
| 8239 | if test -n "$POD2HTML"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8240 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 8241 | echo "${ECHO_T}$POD2HTML" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8242 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8243 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8244 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8245 | fi |
| 8246 | |
| 8247 | |
| 8248 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 8249 | set dummy pod2man; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8250 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8251 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8252 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 8253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8254 | else |
| 8255 | case $POD2MAN in |
| 8256 | [\\/]* | ?:[\\/]*) |
| 8257 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 8258 | ;; |
| 8259 | *) |
| 8260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8261 | for as_dir in $PATH |
| 8262 | do |
| 8263 | IFS=$as_save_IFS |
| 8264 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8265 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8266 | 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] | 8267 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8268 | 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] | 8269 | break 2 |
| 8270 | fi |
| 8271 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8272 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8273 | IFS=$as_save_IFS |
| 8274 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8275 | ;; |
| 8276 | esac |
| 8277 | fi |
| 8278 | POD2MAN=$ac_cv_path_POD2MAN |
| 8279 | if test -n "$POD2MAN"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8280 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 8281 | echo "${ECHO_T}$POD2MAN" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8282 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8283 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8284 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8285 | fi |
| 8286 | |
| 8287 | |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 8288 | # Extract the first word of "pdfroff", so it can be a program name with args. |
| 8289 | set dummy pdfroff; ac_word=$2 |
| 8290 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8291 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8292 | if test "${ac_cv_path_PDFROFF+set}" = set; then |
| 8293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8294 | else |
| 8295 | case $PDFROFF in |
| 8296 | [\\/]* | ?:[\\/]*) |
| 8297 | ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. |
| 8298 | ;; |
| 8299 | *) |
| 8300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8301 | for as_dir in $PATH |
| 8302 | do |
| 8303 | IFS=$as_save_IFS |
| 8304 | test -z "$as_dir" && as_dir=. |
| 8305 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8306 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8307 | ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" |
| 8308 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8309 | break 2 |
| 8310 | fi |
| 8311 | done |
| 8312 | done |
| 8313 | IFS=$as_save_IFS |
| 8314 | |
| 8315 | ;; |
| 8316 | esac |
| 8317 | fi |
| 8318 | PDFROFF=$ac_cv_path_PDFROFF |
| 8319 | if test -n "$PDFROFF"; then |
| 8320 | { echo "$as_me:$LINENO: result: $PDFROFF" >&5 |
| 8321 | echo "${ECHO_T}$PDFROFF" >&6; } |
| 8322 | else |
| 8323 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8324 | echo "${ECHO_T}no" >&6; } |
| 8325 | fi |
| 8326 | |
| 8327 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8328 | # Extract the first word of "runtest", so it can be a program name with args. |
| 8329 | set dummy runtest; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8330 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8331 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8332 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 8333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8334 | else |
| 8335 | case $RUNTEST in |
| 8336 | [\\/]* | ?:[\\/]*) |
| 8337 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 8338 | ;; |
| 8339 | *) |
| 8340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8341 | for as_dir in $PATH |
| 8342 | do |
| 8343 | IFS=$as_save_IFS |
| 8344 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8345 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8346 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8347 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8348 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8349 | break 2 |
| 8350 | fi |
| 8351 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8352 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8353 | IFS=$as_save_IFS |
| 8354 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8355 | ;; |
| 8356 | esac |
| 8357 | fi |
| 8358 | RUNTEST=$ac_cv_path_RUNTEST |
| 8359 | if test -n "$RUNTEST"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8360 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 8361 | echo "${ECHO_T}$RUNTEST" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8362 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8363 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8364 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8365 | fi |
| 8366 | |
| 8367 | |
| 8368 | |
| 8369 | no_itcl=true |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8370 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 8371 | 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] | 8372 | |
| 8373 | # Check whether --with-tclinclude was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8374 | if test "${with_tclinclude+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8375 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 8376 | else |
| 8377 | with_tclinclude='' |
| 8378 | fi |
| 8379 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8380 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 8381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8382 | else |
| 8383 | |
| 8384 | if test x"${with_tclinclude}" != x ; then |
| 8385 | if test -f ${with_tclinclude}/tclsh ; then |
| 8386 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 8387 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 8388 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 8389 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8390 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 8391 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 8392 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8393 | fi |
| 8394 | fi |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 8395 | fi |
| 8396 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8397 | |
| 8398 | if test x"${ac_cv_path_tclsh}" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8399 | { echo "$as_me:$LINENO: result: none" >&5 |
| 8400 | echo "${ECHO_T}none" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8401 | 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 |
| 8402 | do |
| 8403 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8404 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8405 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8406 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8407 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 8408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8409 | else |
| 8410 | case $TCLSH in |
| 8411 | [\\/]* | ?:[\\/]*) |
| 8412 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 8413 | ;; |
| 8414 | *) |
| 8415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8416 | for as_dir in $PATH |
| 8417 | do |
| 8418 | IFS=$as_save_IFS |
| 8419 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8420 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8421 | 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] | 8422 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8423 | 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] | 8424 | break 2 |
| 8425 | fi |
| 8426 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8427 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8428 | IFS=$as_save_IFS |
| 8429 | |
| 8430 | ;; |
| 8431 | esac |
| 8432 | fi |
| 8433 | TCLSH=$ac_cv_path_TCLSH |
| 8434 | if test -n "$TCLSH"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8435 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 8436 | echo "${ECHO_T}$TCLSH" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8437 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8438 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8439 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8440 | fi |
| 8441 | |
| 8442 | |
| 8443 | test -n "$TCLSH" && break |
| 8444 | done |
| 8445 | |
| 8446 | if test x"${TCLSH}" = x ; then |
| 8447 | ac_cv_path_tclsh=''; |
| 8448 | else |
| 8449 | ac_cv_path_tclsh="${TCLSH}"; |
| 8450 | fi |
| 8451 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8452 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 8453 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8454 | TCLSH="${ac_cv_path_tclsh}" |
| 8455 | |
| 8456 | fi |
| 8457 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8458 | # Extract the first word of "zip", so it can be a program name with args. |
| 8459 | set dummy zip; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8460 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8461 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8462 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 8463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8464 | else |
| 8465 | case $ZIP in |
| 8466 | [\\/]* | ?:[\\/]*) |
| 8467 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 8468 | ;; |
| 8469 | *) |
| 8470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8471 | for as_dir in $PATH |
| 8472 | do |
| 8473 | IFS=$as_save_IFS |
| 8474 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8475 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8476 | 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] | 8477 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8478 | 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] | 8479 | break 2 |
| 8480 | fi |
| 8481 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8482 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8483 | IFS=$as_save_IFS |
| 8484 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8485 | ;; |
| 8486 | esac |
| 8487 | fi |
| 8488 | ZIP=$ac_cv_path_ZIP |
| 8489 | if test -n "$ZIP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8490 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 8491 | echo "${ECHO_T}$ZIP" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8492 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8493 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8494 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8495 | fi |
| 8496 | |
| 8497 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8498 | for ac_prog in ocamlc |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8499 | do |
| 8500 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8501 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8502 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8503 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8504 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 8505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8506 | else |
| 8507 | case $OCAMLC in |
| 8508 | [\\/]* | ?:[\\/]*) |
| 8509 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 8510 | ;; |
| 8511 | *) |
| 8512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8513 | for as_dir in $PATH |
| 8514 | do |
| 8515 | IFS=$as_save_IFS |
| 8516 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8517 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8518 | 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] | 8519 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8520 | 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] | 8521 | break 2 |
| 8522 | fi |
| 8523 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8524 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8525 | IFS=$as_save_IFS |
| 8526 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8527 | ;; |
| 8528 | esac |
| 8529 | fi |
| 8530 | OCAMLC=$ac_cv_path_OCAMLC |
| 8531 | if test -n "$OCAMLC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8532 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 8533 | echo "${ECHO_T}$OCAMLC" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8534 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8535 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8536 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8537 | fi |
| 8538 | |
| 8539 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8540 | test -n "$OCAMLC" && break |
| 8541 | done |
| 8542 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8543 | for ac_prog in ocamlopt |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8544 | do |
| 8545 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8546 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8547 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8548 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8549 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 8550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8551 | else |
| 8552 | case $OCAMLOPT in |
| 8553 | [\\/]* | ?:[\\/]*) |
| 8554 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 8555 | ;; |
| 8556 | *) |
| 8557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8558 | for as_dir in $PATH |
| 8559 | do |
| 8560 | IFS=$as_save_IFS |
| 8561 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8562 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8563 | 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] | 8564 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8565 | 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] | 8566 | break 2 |
| 8567 | fi |
| 8568 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8569 | done |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8570 | IFS=$as_save_IFS |
| 8571 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8572 | ;; |
| 8573 | esac |
| 8574 | fi |
| 8575 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 8576 | if test -n "$OCAMLOPT"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8577 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 8578 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8579 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8580 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8581 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 8582 | fi |
| 8583 | |
| 8584 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8585 | test -n "$OCAMLOPT" && break |
| 8586 | done |
| 8587 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8588 | for ac_prog in ocamldep |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8589 | do |
| 8590 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8591 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8592 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8593 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8594 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 8595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8596 | else |
| 8597 | case $OCAMLDEP in |
| 8598 | [\\/]* | ?:[\\/]*) |
| 8599 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 8600 | ;; |
| 8601 | *) |
| 8602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8603 | for as_dir in $PATH |
| 8604 | do |
| 8605 | IFS=$as_save_IFS |
| 8606 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8607 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8608 | 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] | 8609 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8610 | 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] | 8611 | break 2 |
| 8612 | fi |
| 8613 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8614 | done |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8615 | IFS=$as_save_IFS |
| 8616 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8617 | ;; |
| 8618 | esac |
| 8619 | fi |
| 8620 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 8621 | if test -n "$OCAMLDEP"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8622 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 8623 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8624 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8625 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8626 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 8627 | fi |
| 8628 | |
| 8629 | |
Gordon Henriksen | e707216 | 2008-03-07 18:20:01 +0000 | [diff] [blame] | 8630 | test -n "$OCAMLDEP" && break |
| 8631 | done |
| 8632 | |
Gordon Henriksen | 40e7f19 | 2008-10-22 12:40:55 +0000 | [diff] [blame] | 8633 | for ac_prog in ocamldoc |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8634 | do |
| 8635 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8636 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8637 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8639 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 8640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8641 | else |
| 8642 | case $OCAMLDOC in |
| 8643 | [\\/]* | ?:[\\/]*) |
| 8644 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 8645 | ;; |
| 8646 | *) |
| 8647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8648 | for as_dir in $PATH |
| 8649 | do |
| 8650 | IFS=$as_save_IFS |
| 8651 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8652 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8653 | 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] | 8654 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8655 | 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] | 8656 | break 2 |
| 8657 | fi |
| 8658 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8659 | done |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8660 | IFS=$as_save_IFS |
| 8661 | |
| 8662 | ;; |
| 8663 | esac |
| 8664 | fi |
| 8665 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 8666 | if test -n "$OCAMLDOC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8667 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 8668 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8669 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8670 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8671 | echo "${ECHO_T}no" >&6; } |
Gordon Henriksen | 56b8f1d | 2008-03-10 15:49:38 +0000 | [diff] [blame] | 8672 | fi |
| 8673 | |
| 8674 | |
| 8675 | test -n "$OCAMLDOC" && break |
| 8676 | done |
| 8677 | |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8678 | for ac_prog in gas as |
| 8679 | do |
| 8680 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8681 | set dummy $ac_prog; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8682 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8683 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 8684 | if test "${ac_cv_path_GAS+set}" = set; then |
| 8685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8686 | else |
| 8687 | case $GAS in |
| 8688 | [\\/]* | ?:[\\/]*) |
| 8689 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 8690 | ;; |
| 8691 | *) |
| 8692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8693 | for as_dir in $PATH |
| 8694 | do |
| 8695 | IFS=$as_save_IFS |
| 8696 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8697 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8698 | 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] | 8699 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8700 | 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] | 8701 | break 2 |
| 8702 | fi |
| 8703 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8704 | done |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8705 | IFS=$as_save_IFS |
| 8706 | |
| 8707 | ;; |
| 8708 | esac |
| 8709 | fi |
| 8710 | GAS=$ac_cv_path_GAS |
| 8711 | if test -n "$GAS"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8712 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 8713 | echo "${ECHO_T}$GAS" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8714 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8715 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8716 | echo "${ECHO_T}no" >&6; } |
Torok Edwin | cc499a4 | 2008-10-22 09:56:27 +0000 | [diff] [blame] | 8717 | fi |
| 8718 | |
| 8719 | |
| 8720 | test -n "$GAS" && break |
| 8721 | done |
| 8722 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8723 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8724 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 8725 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 8726 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 8727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8728 | else |
| 8729 | ac_ext=c |
| 8730 | ac_cpp='$CPP $CPPFLAGS' |
| 8731 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8732 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8733 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8734 | |
| 8735 | oldcflags="$CFLAGS" |
| 8736 | CFLAGS="$CFLAGS -Wl,-R." |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8737 | cat >conftest.$ac_ext <<_ACEOF |
| 8738 | /* confdefs.h. */ |
| 8739 | _ACEOF |
| 8740 | cat confdefs.h >>conftest.$ac_ext |
| 8741 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8742 | /* end confdefs.h. */ |
| 8743 | |
| 8744 | int |
| 8745 | main () |
| 8746 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8747 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8748 | ; |
| 8749 | return 0; |
| 8750 | } |
| 8751 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8752 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8753 | if { (ac_try="$ac_link" |
| 8754 | case "(($ac_try" in |
| 8755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8756 | *) ac_try_echo=$ac_try;; |
| 8757 | esac |
| 8758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8759 | (eval "$ac_link") 2>conftest.er1 |
| 8760 | ac_status=$? |
| 8761 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8762 | rm -f conftest.er1 |
| 8763 | cat conftest.err >&5 |
| 8764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8765 | (exit $ac_status); } && |
| 8766 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8767 | { (case "(($ac_try" in |
| 8768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8769 | *) ac_try_echo=$ac_try;; |
| 8770 | esac |
| 8771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8772 | (eval "$ac_try") 2>&5 |
| 8773 | ac_status=$? |
| 8774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8775 | (exit $ac_status); }; } && |
| 8776 | { ac_try='test -s conftest$ac_exeext' |
| 8777 | { (case "(($ac_try" in |
| 8778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8779 | *) ac_try_echo=$ac_try;; |
| 8780 | esac |
| 8781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8782 | (eval "$ac_try") 2>&5 |
| 8783 | ac_status=$? |
| 8784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8785 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8786 | llvm_cv_link_use_r=yes |
| 8787 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8788 | echo "$as_me: failed program was:" >&5 |
| 8789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8790 | |
| 8791 | llvm_cv_link_use_r=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8792 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8793 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8794 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8795 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8796 | CFLAGS="$oldcflags" |
| 8797 | ac_ext=c |
| 8798 | ac_cpp='$CPP $CPPFLAGS' |
| 8799 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8800 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8801 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8802 | |
| 8803 | |
| 8804 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8805 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 8806 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8807 | if test "$llvm_cv_link_use_r" = yes ; then |
| 8808 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8809 | cat >>confdefs.h <<\_ACEOF |
| 8810 | #define HAVE_LINK_R 1 |
| 8811 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8812 | |
| 8813 | fi |
| 8814 | |
| 8815 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8816 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 8817 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 8818 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 8819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8820 | else |
| 8821 | ac_ext=c |
| 8822 | ac_cpp='$CPP $CPPFLAGS' |
| 8823 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8824 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8825 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8826 | |
| 8827 | oldcflags="$CFLAGS" |
| 8828 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8829 | cat >conftest.$ac_ext <<_ACEOF |
| 8830 | /* confdefs.h. */ |
| 8831 | _ACEOF |
| 8832 | cat confdefs.h >>conftest.$ac_ext |
| 8833 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8834 | /* end confdefs.h. */ |
| 8835 | |
| 8836 | int |
| 8837 | main () |
| 8838 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8839 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8840 | ; |
| 8841 | return 0; |
| 8842 | } |
| 8843 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8844 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8845 | if { (ac_try="$ac_link" |
| 8846 | case "(($ac_try" in |
| 8847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8848 | *) ac_try_echo=$ac_try;; |
| 8849 | esac |
| 8850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8851 | (eval "$ac_link") 2>conftest.er1 |
| 8852 | ac_status=$? |
| 8853 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8854 | rm -f conftest.er1 |
| 8855 | cat conftest.err >&5 |
| 8856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8857 | (exit $ac_status); } && |
| 8858 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8859 | { (case "(($ac_try" in |
| 8860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8861 | *) ac_try_echo=$ac_try;; |
| 8862 | esac |
| 8863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8864 | (eval "$ac_try") 2>&5 |
| 8865 | ac_status=$? |
| 8866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8867 | (exit $ac_status); }; } && |
| 8868 | { ac_try='test -s conftest$ac_exeext' |
| 8869 | { (case "(($ac_try" in |
| 8870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8871 | *) ac_try_echo=$ac_try;; |
| 8872 | esac |
| 8873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8874 | (eval "$ac_try") 2>&5 |
| 8875 | ac_status=$? |
| 8876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8877 | (exit $ac_status); }; }; then |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8878 | llvm_cv_link_use_export_dynamic=yes |
| 8879 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8880 | echo "$as_me: failed program was:" >&5 |
| 8881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8882 | |
| 8883 | llvm_cv_link_use_export_dynamic=no |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8884 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8885 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 8886 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8887 | conftest$ac_exeext conftest.$ac_ext |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8888 | CFLAGS="$oldcflags" |
| 8889 | ac_ext=c |
| 8890 | ac_cpp='$CPP $CPPFLAGS' |
| 8891 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8892 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8893 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8894 | |
| 8895 | |
| 8896 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8897 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 8898 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8899 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 8900 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 8901 | cat >>confdefs.h <<\_ACEOF |
| 8902 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 8903 | _ACEOF |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 8904 | |
| 8905 | fi |
| 8906 | |
| 8907 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8908 | { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 |
| 8909 | echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } |
| 8910 | if test "${llvm_cv_link_use_version_script+set}" = set; then |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8912 | else |
| 8913 | ac_ext=c |
| 8914 | ac_cpp='$CPP $CPPFLAGS' |
| 8915 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8916 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8917 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8918 | |
| 8919 | oldcflags="$CFLAGS" |
| 8920 | |
| 8921 | # The following code is from the autoconf manual, |
| 8922 | # "11.13: Limitations of Usual Tools". |
| 8923 | # Create a temporary directory $tmp in $TMPDIR (default /tmp). |
| 8924 | # Use mktemp if possible; otherwise fall back on mkdir, |
| 8925 | # with $RANDOM to make collisions less likely. |
| 8926 | : ${TMPDIR=/tmp} |
| 8927 | { |
| 8928 | tmp=` |
| 8929 | (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null |
| 8930 | ` && |
| 8931 | test -n "$tmp" && test -d "$tmp" |
| 8932 | } || { |
| 8933 | tmp=$TMPDIR/foo$$-$RANDOM |
| 8934 | (umask 077 && mkdir "$tmp") |
| 8935 | } || exit $? |
| 8936 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8937 | echo "{" > "$tmp/export.map" |
| 8938 | echo " global: main;" >> "$tmp/export.map" |
| 8939 | echo " local: *;" >> "$tmp/export.map" |
| 8940 | echo "};" >> "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8941 | |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8942 | CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8943 | cat >conftest.$ac_ext <<_ACEOF |
| 8944 | /* confdefs.h. */ |
| 8945 | _ACEOF |
| 8946 | cat confdefs.h >>conftest.$ac_ext |
| 8947 | cat >>conftest.$ac_ext <<_ACEOF |
| 8948 | /* end confdefs.h. */ |
| 8949 | |
| 8950 | int |
| 8951 | main () |
| 8952 | { |
Dan Gohman | 39ed678 | 2010-04-25 00:12:20 +0000 | [diff] [blame] | 8953 | |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8954 | ; |
| 8955 | return 0; |
| 8956 | } |
| 8957 | _ACEOF |
| 8958 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8959 | if { (ac_try="$ac_link" |
| 8960 | case "(($ac_try" in |
| 8961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8962 | *) ac_try_echo=$ac_try;; |
| 8963 | esac |
| 8964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8965 | (eval "$ac_link") 2>conftest.er1 |
| 8966 | ac_status=$? |
| 8967 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8968 | rm -f conftest.er1 |
| 8969 | cat conftest.err >&5 |
| 8970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8971 | (exit $ac_status); } && |
| 8972 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8973 | { (case "(($ac_try" in |
| 8974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8975 | *) ac_try_echo=$ac_try;; |
| 8976 | esac |
| 8977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8978 | (eval "$ac_try") 2>&5 |
| 8979 | ac_status=$? |
| 8980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8981 | (exit $ac_status); }; } && |
| 8982 | { ac_try='test -s conftest$ac_exeext' |
| 8983 | { (case "(($ac_try" in |
| 8984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8985 | *) ac_try_echo=$ac_try;; |
| 8986 | esac |
| 8987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8988 | (eval "$ac_try") 2>&5 |
| 8989 | ac_status=$? |
| 8990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8991 | (exit $ac_status); }; }; then |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 8992 | llvm_cv_link_use_version_script=yes |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8993 | else |
| 8994 | echo "$as_me: failed program was:" >&5 |
| 8995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8996 | |
Dan Gohman | 943005e | 2010-06-01 16:22:27 +0000 | [diff] [blame] | 8997 | llvm_cv_link_use_version_script=no |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 8998 | fi |
| 8999 | |
| 9000 | rm -f core conftest.err conftest.$ac_objext \ |
| 9001 | conftest$ac_exeext conftest.$ac_ext |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9002 | rm "$tmp/export.map" |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9003 | rmdir "$tmp" |
| 9004 | CFLAGS="$oldcflags" |
| 9005 | ac_ext=c |
| 9006 | ac_cpp='$CPP $CPPFLAGS' |
| 9007 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9008 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9009 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9010 | |
| 9011 | |
| 9012 | fi |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 9013 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 |
| 9014 | echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } |
| 9015 | if test "$llvm_cv_link_use_version_script" = yes ; then |
| 9016 | HAVE_LINK_VERSION_SCRIPT=1 |
Dan Gohman | 391569c | 2010-04-16 22:59:06 +0000 | [diff] [blame] | 9017 | |
| 9018 | fi |
| 9019 | |
| 9020 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9021 | |
| 9022 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9023 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 9024 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 9025 | if test "${ac_cv_c_const+set}" = set; then |
| 9026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9027 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9028 | cat >conftest.$ac_ext <<_ACEOF |
| 9029 | /* confdefs.h. */ |
| 9030 | _ACEOF |
| 9031 | cat confdefs.h >>conftest.$ac_ext |
| 9032 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9033 | /* end confdefs.h. */ |
| 9034 | |
| 9035 | int |
| 9036 | main () |
| 9037 | { |
| 9038 | /* FIXME: Include the comments suggested by Paul. */ |
| 9039 | #ifndef __cplusplus |
| 9040 | /* Ultrix mips cc rejects this. */ |
| 9041 | typedef int charset[2]; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9042 | const charset x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9043 | /* SunOS 4.1.1 cc rejects this. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9044 | char const *const *ccp; |
| 9045 | char **p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9046 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 9047 | struct point {int x, y;}; |
| 9048 | static struct point const zero = {0,0}; |
| 9049 | /* AIX XL C 1.02.0.0 rejects this. |
| 9050 | It does not let you subtract one const X* pointer from another in |
| 9051 | an arm of an if-expression whose if-part is not a constant |
| 9052 | expression */ |
| 9053 | const char *g = "string"; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9054 | ccp = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9055 | /* HPUX 7.0 cc rejects these. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9056 | ++ccp; |
| 9057 | p = (char**) ccp; |
| 9058 | ccp = (char const *const *) p; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9059 | { /* SCO 3.2v4 cc rejects this. */ |
| 9060 | char *t; |
| 9061 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 9062 | |
| 9063 | *t++ = 0; |
| 9064 | if (s) return 0; |
| 9065 | } |
| 9066 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 9067 | int x[] = {25, 17}; |
| 9068 | const int *foo = &x[0]; |
| 9069 | ++foo; |
| 9070 | } |
| 9071 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 9072 | typedef const int *iptr; |
| 9073 | iptr p = 0; |
| 9074 | ++p; |
| 9075 | } |
| 9076 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 9077 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 9078 | struct s { int j; const int *ap[3]; }; |
| 9079 | struct s *b; b->j = 5; |
| 9080 | } |
| 9081 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 9082 | const int foo = 10; |
| 9083 | if (!foo) return 0; |
| 9084 | } |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9085 | return !x[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9086 | #endif |
| 9087 | |
| 9088 | ; |
| 9089 | return 0; |
| 9090 | } |
| 9091 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9092 | rm -f conftest.$ac_objext |
| 9093 | if { (ac_try="$ac_compile" |
| 9094 | case "(($ac_try" in |
| 9095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9096 | *) ac_try_echo=$ac_try;; |
| 9097 | esac |
| 9098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9099 | (eval "$ac_compile") 2>conftest.er1 |
| 9100 | ac_status=$? |
| 9101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9102 | rm -f conftest.er1 |
| 9103 | cat conftest.err >&5 |
| 9104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9105 | (exit $ac_status); } && |
| 9106 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9107 | { (case "(($ac_try" in |
| 9108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9109 | *) ac_try_echo=$ac_try;; |
| 9110 | esac |
| 9111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9112 | (eval "$ac_try") 2>&5 |
| 9113 | ac_status=$? |
| 9114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9115 | (exit $ac_status); }; } && |
| 9116 | { ac_try='test -s conftest.$ac_objext' |
| 9117 | { (case "(($ac_try" in |
| 9118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9119 | *) ac_try_echo=$ac_try;; |
| 9120 | esac |
| 9121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9122 | (eval "$ac_try") 2>&5 |
| 9123 | ac_status=$? |
| 9124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9125 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9126 | ac_cv_c_const=yes |
| 9127 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9128 | echo "$as_me: failed program was:" >&5 |
| 9129 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9130 | |
| 9131 | ac_cv_c_const=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9132 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9133 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9135 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9136 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 9137 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9138 | if test $ac_cv_c_const = no; then |
| 9139 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9140 | cat >>confdefs.h <<\_ACEOF |
| 9141 | #define const |
| 9142 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9143 | |
| 9144 | fi |
| 9145 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9146 | |
| 9147 | |
| 9148 | |
| 9149 | |
| 9150 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9151 | ac_header_dirent=no |
| 9152 | 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] | 9153 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 9154 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 9155 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 9156 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9158 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9159 | cat >conftest.$ac_ext <<_ACEOF |
| 9160 | /* confdefs.h. */ |
| 9161 | _ACEOF |
| 9162 | cat confdefs.h >>conftest.$ac_ext |
| 9163 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9164 | /* end confdefs.h. */ |
| 9165 | #include <sys/types.h> |
| 9166 | #include <$ac_hdr> |
| 9167 | |
| 9168 | int |
| 9169 | main () |
| 9170 | { |
| 9171 | if ((DIR *) 0) |
| 9172 | return 0; |
| 9173 | ; |
| 9174 | return 0; |
| 9175 | } |
| 9176 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9177 | rm -f conftest.$ac_objext |
| 9178 | if { (ac_try="$ac_compile" |
| 9179 | case "(($ac_try" in |
| 9180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9181 | *) ac_try_echo=$ac_try;; |
| 9182 | esac |
| 9183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9184 | (eval "$ac_compile") 2>conftest.er1 |
| 9185 | ac_status=$? |
| 9186 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9187 | rm -f conftest.er1 |
| 9188 | cat conftest.err >&5 |
| 9189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9190 | (exit $ac_status); } && |
| 9191 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9192 | { (case "(($ac_try" in |
| 9193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9194 | *) ac_try_echo=$ac_try;; |
| 9195 | esac |
| 9196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9197 | (eval "$ac_try") 2>&5 |
| 9198 | ac_status=$? |
| 9199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9200 | (exit $ac_status); }; } && |
| 9201 | { ac_try='test -s conftest.$ac_objext' |
| 9202 | { (case "(($ac_try" in |
| 9203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9204 | *) ac_try_echo=$ac_try;; |
| 9205 | esac |
| 9206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9207 | (eval "$ac_try") 2>&5 |
| 9208 | ac_status=$? |
| 9209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9210 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9211 | eval "$as_ac_Header=yes" |
| 9212 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9213 | echo "$as_me: failed program was:" >&5 |
| 9214 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9215 | |
| 9216 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9217 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9218 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9220 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9221 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9222 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9223 | echo "${ECHO_T}$ac_res" >&6; } |
| 9224 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9225 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9226 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9227 | _ACEOF |
| 9228 | |
| 9229 | ac_header_dirent=$ac_hdr; break |
| 9230 | fi |
| 9231 | |
| 9232 | done |
| 9233 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 9234 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9235 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9236 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9237 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9239 | else |
| 9240 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9241 | cat >conftest.$ac_ext <<_ACEOF |
| 9242 | /* confdefs.h. */ |
| 9243 | _ACEOF |
| 9244 | cat confdefs.h >>conftest.$ac_ext |
| 9245 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9246 | /* end confdefs.h. */ |
| 9247 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9248 | /* Override any GCC internal prototype to avoid an error. |
| 9249 | Use char because int might match the return type of a GCC |
| 9250 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9251 | #ifdef __cplusplus |
| 9252 | extern "C" |
| 9253 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9254 | char opendir (); |
| 9255 | int |
| 9256 | main () |
| 9257 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9258 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9259 | ; |
| 9260 | return 0; |
| 9261 | } |
| 9262 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9263 | for ac_lib in '' dir; do |
| 9264 | if test -z "$ac_lib"; then |
| 9265 | ac_res="none required" |
| 9266 | else |
| 9267 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9268 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9269 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9270 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9271 | if { (ac_try="$ac_link" |
| 9272 | case "(($ac_try" in |
| 9273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9274 | *) ac_try_echo=$ac_try;; |
| 9275 | esac |
| 9276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9277 | (eval "$ac_link") 2>conftest.er1 |
| 9278 | ac_status=$? |
| 9279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9280 | rm -f conftest.er1 |
| 9281 | cat conftest.err >&5 |
| 9282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9283 | (exit $ac_status); } && |
| 9284 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9285 | { (case "(($ac_try" in |
| 9286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9287 | *) ac_try_echo=$ac_try;; |
| 9288 | esac |
| 9289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9290 | (eval "$ac_try") 2>&5 |
| 9291 | ac_status=$? |
| 9292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9293 | (exit $ac_status); }; } && |
| 9294 | { ac_try='test -s conftest$ac_exeext' |
| 9295 | { (case "(($ac_try" in |
| 9296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9297 | *) ac_try_echo=$ac_try;; |
| 9298 | esac |
| 9299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9300 | (eval "$ac_try") 2>&5 |
| 9301 | ac_status=$? |
| 9302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9303 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9304 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9305 | else |
| 9306 | echo "$as_me: failed program was:" >&5 |
| 9307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9308 | |
| 9309 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9310 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9311 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9312 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9313 | conftest$ac_exeext |
| 9314 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9315 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9316 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9317 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9318 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9319 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9320 | else |
| 9321 | ac_cv_search_opendir=no |
| 9322 | fi |
| 9323 | rm conftest.$ac_ext |
| 9324 | LIBS=$ac_func_search_save_LIBS |
| 9325 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9326 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9327 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9328 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9329 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9330 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9331 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9332 | fi |
| 9333 | |
| 9334 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9335 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9336 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 9337 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9339 | else |
| 9340 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9341 | cat >conftest.$ac_ext <<_ACEOF |
| 9342 | /* confdefs.h. */ |
| 9343 | _ACEOF |
| 9344 | cat confdefs.h >>conftest.$ac_ext |
| 9345 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9346 | /* end confdefs.h. */ |
| 9347 | |
| 9348 | /* Override any GCC internal prototype to avoid an error. |
| 9349 | Use char because int might match the return type of a GCC |
| 9350 | builtin and then its argument prototype would still apply. */ |
| 9351 | #ifdef __cplusplus |
| 9352 | extern "C" |
| 9353 | #endif |
| 9354 | char opendir (); |
| 9355 | int |
| 9356 | main () |
| 9357 | { |
| 9358 | return opendir (); |
| 9359 | ; |
| 9360 | return 0; |
| 9361 | } |
| 9362 | _ACEOF |
| 9363 | for ac_lib in '' x; do |
| 9364 | if test -z "$ac_lib"; then |
| 9365 | ac_res="none required" |
| 9366 | else |
| 9367 | ac_res=-l$ac_lib |
| 9368 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9369 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9370 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9371 | if { (ac_try="$ac_link" |
| 9372 | case "(($ac_try" in |
| 9373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9374 | *) ac_try_echo=$ac_try;; |
| 9375 | esac |
| 9376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9377 | (eval "$ac_link") 2>conftest.er1 |
| 9378 | ac_status=$? |
| 9379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9380 | rm -f conftest.er1 |
| 9381 | cat conftest.err >&5 |
| 9382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9383 | (exit $ac_status); } && |
| 9384 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9385 | { (case "(($ac_try" in |
| 9386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9387 | *) ac_try_echo=$ac_try;; |
| 9388 | esac |
| 9389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9390 | (eval "$ac_try") 2>&5 |
| 9391 | ac_status=$? |
| 9392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9393 | (exit $ac_status); }; } && |
| 9394 | { ac_try='test -s conftest$ac_exeext' |
| 9395 | { (case "(($ac_try" in |
| 9396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9397 | *) ac_try_echo=$ac_try;; |
| 9398 | esac |
| 9399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9400 | (eval "$ac_try") 2>&5 |
| 9401 | ac_status=$? |
| 9402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9403 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9404 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9405 | else |
| 9406 | echo "$as_me: failed program was:" >&5 |
| 9407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9408 | |
| 9409 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9410 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9411 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 9412 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9413 | conftest$ac_exeext |
| 9414 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9415 | break |
| 9416 | fi |
| 9417 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9418 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9419 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9420 | else |
| 9421 | ac_cv_search_opendir=no |
| 9422 | fi |
| 9423 | rm conftest.$ac_ext |
| 9424 | LIBS=$ac_func_search_save_LIBS |
| 9425 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9426 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9427 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9428 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9429 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9430 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9431 | |
| 9432 | fi |
| 9433 | |
| 9434 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9435 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9436 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9437 | for ac_header in dlfcn.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9438 | do |
| 9439 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9440 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9441 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9442 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9443 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9445 | fi |
| 9446 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9447 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9448 | echo "${ECHO_T}$ac_res" >&6; } |
| 9449 | else |
| 9450 | # Is the header compilable? |
| 9451 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9452 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 9453 | cat >conftest.$ac_ext <<_ACEOF |
| 9454 | /* confdefs.h. */ |
| 9455 | _ACEOF |
| 9456 | cat confdefs.h >>conftest.$ac_ext |
| 9457 | cat >>conftest.$ac_ext <<_ACEOF |
| 9458 | /* end confdefs.h. */ |
| 9459 | $ac_includes_default |
| 9460 | #include <$ac_header> |
| 9461 | _ACEOF |
| 9462 | rm -f conftest.$ac_objext |
| 9463 | if { (ac_try="$ac_compile" |
| 9464 | case "(($ac_try" in |
| 9465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9466 | *) ac_try_echo=$ac_try;; |
| 9467 | esac |
| 9468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9469 | (eval "$ac_compile") 2>conftest.er1 |
| 9470 | ac_status=$? |
| 9471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9472 | rm -f conftest.er1 |
| 9473 | cat conftest.err >&5 |
| 9474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9475 | (exit $ac_status); } && |
| 9476 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9477 | { (case "(($ac_try" in |
| 9478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9479 | *) ac_try_echo=$ac_try;; |
| 9480 | esac |
| 9481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9482 | (eval "$ac_try") 2>&5 |
| 9483 | ac_status=$? |
| 9484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9485 | (exit $ac_status); }; } && |
| 9486 | { ac_try='test -s conftest.$ac_objext' |
| 9487 | { (case "(($ac_try" in |
| 9488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9489 | *) ac_try_echo=$ac_try;; |
| 9490 | esac |
| 9491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9492 | (eval "$ac_try") 2>&5 |
| 9493 | ac_status=$? |
| 9494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9495 | (exit $ac_status); }; }; then |
| 9496 | ac_header_compiler=yes |
| 9497 | else |
| 9498 | echo "$as_me: failed program was:" >&5 |
| 9499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9500 | |
| 9501 | ac_header_compiler=no |
| 9502 | fi |
| 9503 | |
| 9504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9505 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9506 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 9507 | |
| 9508 | # Is the header present? |
| 9509 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9510 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 9511 | cat >conftest.$ac_ext <<_ACEOF |
| 9512 | /* confdefs.h. */ |
| 9513 | _ACEOF |
| 9514 | cat confdefs.h >>conftest.$ac_ext |
| 9515 | cat >>conftest.$ac_ext <<_ACEOF |
| 9516 | /* end confdefs.h. */ |
| 9517 | #include <$ac_header> |
| 9518 | _ACEOF |
| 9519 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9520 | case "(($ac_try" in |
| 9521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9522 | *) ac_try_echo=$ac_try;; |
| 9523 | esac |
| 9524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9525 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 9526 | ac_status=$? |
| 9527 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9528 | rm -f conftest.er1 |
| 9529 | cat conftest.err >&5 |
| 9530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9531 | (exit $ac_status); } >/dev/null; then |
| 9532 | if test -s conftest.err; then |
| 9533 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9534 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9535 | else |
| 9536 | ac_cpp_err= |
| 9537 | fi |
| 9538 | else |
| 9539 | ac_cpp_err=yes |
| 9540 | fi |
| 9541 | if test -z "$ac_cpp_err"; then |
| 9542 | ac_header_preproc=yes |
| 9543 | else |
| 9544 | echo "$as_me: failed program was:" >&5 |
| 9545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9546 | |
| 9547 | ac_header_preproc=no |
| 9548 | fi |
| 9549 | |
| 9550 | rm -f conftest.err conftest.$ac_ext |
| 9551 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9552 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 9553 | |
| 9554 | # So? What about this header? |
| 9555 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9556 | yes:no: ) |
| 9557 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9558 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9559 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9560 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9561 | ac_header_preproc=yes |
| 9562 | ;; |
| 9563 | no:yes:* ) |
| 9564 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9565 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9566 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9567 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9568 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9569 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9570 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9571 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9572 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9573 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9574 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9575 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9576 | ( cat <<\_ASBOX |
| 9577 | ## ----------------------------------- ## |
| 9578 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 9579 | ## ----------------------------------- ## |
| 9580 | _ASBOX |
| 9581 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 9582 | ;; |
| 9583 | esac |
| 9584 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9585 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9586 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9588 | else |
| 9589 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9590 | fi |
| 9591 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9592 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9593 | echo "${ECHO_T}$ac_res" >&6; } |
| 9594 | |
| 9595 | fi |
| 9596 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9597 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9598 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9599 | _ACEOF |
| 9600 | |
| 9601 | fi |
| 9602 | |
| 9603 | done |
| 9604 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9605 | # Check whether --enable-ltdl-install was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9606 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9607 | enableval=$enable_ltdl_install; |
| 9608 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9609 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9610 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9611 | |
| 9612 | |
| 9613 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9614 | INSTALL_LTDL_TRUE= |
| 9615 | INSTALL_LTDL_FALSE='#' |
| 9616 | else |
| 9617 | INSTALL_LTDL_TRUE='#' |
| 9618 | INSTALL_LTDL_FALSE= |
| 9619 | fi |
| 9620 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9621 | |
| 9622 | |
| 9623 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9624 | CONVENIENCE_LTDL_TRUE= |
| 9625 | CONVENIENCE_LTDL_FALSE='#' |
| 9626 | else |
| 9627 | CONVENIENCE_LTDL_TRUE='#' |
| 9628 | CONVENIENCE_LTDL_FALSE= |
| 9629 | fi |
| 9630 | |
| 9631 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 9632 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 9633 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9634 | library_names_spec= |
| 9635 | libname_spec='lib$name' |
| 9636 | soname_spec= |
| 9637 | shrext_cmds=".so" |
| 9638 | postinstall_cmds= |
| 9639 | postuninstall_cmds= |
| 9640 | finish_cmds= |
| 9641 | finish_eval= |
| 9642 | shlibpath_var= |
| 9643 | shlibpath_overrides_runpath=unknown |
| 9644 | version_type=none |
| 9645 | dynamic_linker="$host_os ld.so" |
| 9646 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9647 | if test "$GCC" = yes; then |
| 9648 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9649 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 9650 | # if the path contains ";" then we assume it to be the separator |
| 9651 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9652 | # assumed that no part of a normal pathname contains ";" but that should |
| 9653 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 9654 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9655 | else |
| 9656 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9657 | fi |
| 9658 | else |
| 9659 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9660 | fi |
| 9661 | need_lib_prefix=unknown |
| 9662 | hardcode_into_libs=no |
| 9663 | |
| 9664 | # when you set need_version to no, make sure it does not cause -set_version |
| 9665 | # flags to be left without arguments |
| 9666 | need_version=unknown |
| 9667 | |
| 9668 | case $host_os in |
| 9669 | aix3*) |
| 9670 | version_type=linux |
| 9671 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9672 | shlibpath_var=LIBPATH |
| 9673 | |
| 9674 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9675 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9676 | ;; |
| 9677 | |
| 9678 | aix4* | aix5*) |
| 9679 | version_type=linux |
| 9680 | need_lib_prefix=no |
| 9681 | need_version=no |
| 9682 | hardcode_into_libs=yes |
| 9683 | if test "$host_cpu" = ia64; then |
| 9684 | # AIX 5 supports IA64 |
| 9685 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9686 | shlibpath_var=LD_LIBRARY_PATH |
| 9687 | else |
| 9688 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9689 | # for dependence libraries. The import file would start with |
| 9690 | # the line `#! .'. This would cause the generated library to |
| 9691 | # depend on `.', always an invalid library. This was fixed in |
| 9692 | # development snapshots of GCC prior to 3.0. |
| 9693 | case $host_os in |
| 9694 | aix4 | aix4.[01] | aix4.[01].*) |
| 9695 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9696 | echo ' yes ' |
| 9697 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 9698 | : |
| 9699 | else |
| 9700 | can_build_shared=no |
| 9701 | fi |
| 9702 | ;; |
| 9703 | esac |
| 9704 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9705 | # soname into executable. Probably we can add versioning support to |
| 9706 | # collect2, so additional links can be useful in future. |
| 9707 | if test "$aix_use_runtimelinking" = yes; then |
| 9708 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9709 | # instead of lib<name>.a to let people know that these are not |
| 9710 | # typical AIX shared libraries. |
| 9711 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9712 | else |
| 9713 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9714 | # and later when we are not doing run time linking. |
| 9715 | library_names_spec='${libname}${release}.a $libname.a' |
| 9716 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9717 | fi |
| 9718 | shlibpath_var=LIBPATH |
| 9719 | fi |
| 9720 | ;; |
| 9721 | |
| 9722 | amigaos*) |
| 9723 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9724 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 9725 | 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' |
| 9726 | ;; |
| 9727 | |
| 9728 | beos*) |
| 9729 | library_names_spec='${libname}${shared_ext}' |
| 9730 | dynamic_linker="$host_os ld.so" |
| 9731 | shlibpath_var=LIBRARY_PATH |
| 9732 | ;; |
| 9733 | |
| 9734 | bsdi[45]*) |
| 9735 | version_type=linux |
| 9736 | need_version=no |
| 9737 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9738 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9739 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9740 | shlibpath_var=LD_LIBRARY_PATH |
| 9741 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9742 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9743 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9744 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9745 | # libtool to hard-code these into programs |
| 9746 | ;; |
| 9747 | |
| 9748 | cygwin* | mingw* | pw32*) |
| 9749 | version_type=windows |
| 9750 | shrext_cmds=".dll" |
| 9751 | need_version=no |
| 9752 | need_lib_prefix=no |
| 9753 | |
| 9754 | case $GCC,$host_os in |
| 9755 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 9756 | library_names_spec='$libname.dll.a' |
| 9757 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9758 | postinstall_cmds='base_file=`basename \${file}`~ |
| 9759 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 9760 | dldir=$destdir/`dirname \$dlpath`~ |
| 9761 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9762 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 9763 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9764 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9765 | dlpath=$dir/\$dldll~ |
| 9766 | $rm \$dlpath' |
| 9767 | shlibpath_overrides_runpath=yes |
| 9768 | |
| 9769 | case $host_os in |
| 9770 | cygwin*) |
| 9771 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 9772 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9773 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 9774 | ;; |
| 9775 | mingw*) |
| 9776 | # MinGW DLLs use traditional 'lib' prefix |
| 9777 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 9778 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 9779 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 9780 | # It is most probably a Windows format PATH printed by |
| 9781 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 9782 | # path with ; separators, and with drive letters. We can handle the |
| 9783 | # drive letters (cygwin fileutils understands them), so leave them, |
| 9784 | # especially as we might pass files found there to a mingw objdump, |
| 9785 | # which wouldn't understand a cygwinified path. Ahh. |
| 9786 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 9787 | else |
| 9788 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 9789 | fi |
| 9790 | ;; |
| 9791 | pw32*) |
| 9792 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9793 | 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] | 9794 | ;; |
| 9795 | esac |
| 9796 | ;; |
| 9797 | |
| 9798 | *) |
| 9799 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 9800 | ;; |
| 9801 | esac |
| 9802 | dynamic_linker='Win32 ld.exe' |
| 9803 | # FIXME: first we should search . and the directory the executable is in |
| 9804 | shlibpath_var=PATH |
| 9805 | ;; |
| 9806 | |
| 9807 | darwin* | rhapsody*) |
| 9808 | dynamic_linker="$host_os dyld" |
| 9809 | version_type=darwin |
| 9810 | need_lib_prefix=no |
| 9811 | need_version=no |
| 9812 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 9813 | soname_spec='${libname}${release}${major}$shared_ext' |
| 9814 | shlibpath_overrides_runpath=yes |
| 9815 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 9816 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9817 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 9818 | if test "$GCC" = yes; then |
| 9819 | 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"` |
| 9820 | else |
| 9821 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 9822 | fi |
| 9823 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 9824 | ;; |
| 9825 | |
| 9826 | dgux*) |
| 9827 | version_type=linux |
| 9828 | need_lib_prefix=no |
| 9829 | need_version=no |
| 9830 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 9831 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9832 | shlibpath_var=LD_LIBRARY_PATH |
| 9833 | ;; |
| 9834 | |
| 9835 | freebsd1*) |
| 9836 | dynamic_linker=no |
| 9837 | ;; |
| 9838 | |
| 9839 | kfreebsd*-gnu) |
| 9840 | version_type=linux |
| 9841 | need_lib_prefix=no |
| 9842 | need_version=no |
| 9843 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9844 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9845 | shlibpath_var=LD_LIBRARY_PATH |
| 9846 | shlibpath_overrides_runpath=no |
| 9847 | hardcode_into_libs=yes |
| 9848 | dynamic_linker='GNU ld.so' |
| 9849 | ;; |
| 9850 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9851 | freebsd* | dragonfly*) |
| 9852 | # DragonFly does not have aout. When/if they implement a new |
| 9853 | # versioning mechanism, adjust this. |
| 9854 | if test -x /usr/bin/objformat; then |
| 9855 | objformat=`/usr/bin/objformat` |
| 9856 | else |
| 9857 | case $host_os in |
| 9858 | freebsd[123]*) objformat=aout ;; |
| 9859 | *) objformat=elf ;; |
| 9860 | esac |
| 9861 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9862 | version_type=freebsd-$objformat |
| 9863 | case $version_type in |
| 9864 | freebsd-elf*) |
| 9865 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9866 | need_version=no |
| 9867 | need_lib_prefix=no |
| 9868 | ;; |
| 9869 | freebsd-*) |
| 9870 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9871 | need_version=yes |
| 9872 | ;; |
| 9873 | esac |
| 9874 | shlibpath_var=LD_LIBRARY_PATH |
| 9875 | case $host_os in |
| 9876 | freebsd2*) |
| 9877 | shlibpath_overrides_runpath=yes |
| 9878 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9879 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9880 | shlibpath_overrides_runpath=yes |
| 9881 | hardcode_into_libs=yes |
| 9882 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9883 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9884 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9885 | shlibpath_overrides_runpath=no |
| 9886 | hardcode_into_libs=yes |
| 9887 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9888 | freebsd*) # from 4.6 on |
| 9889 | shlibpath_overrides_runpath=yes |
| 9890 | hardcode_into_libs=yes |
| 9891 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9892 | esac |
| 9893 | ;; |
| 9894 | |
| 9895 | gnu*) |
| 9896 | version_type=linux |
| 9897 | need_lib_prefix=no |
| 9898 | need_version=no |
| 9899 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9900 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9901 | shlibpath_var=LD_LIBRARY_PATH |
| 9902 | hardcode_into_libs=yes |
| 9903 | ;; |
| 9904 | |
| 9905 | hpux9* | hpux10* | hpux11*) |
| 9906 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9907 | # link against other versions. |
| 9908 | version_type=sunos |
| 9909 | need_lib_prefix=no |
| 9910 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9911 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9912 | ia64*) |
| 9913 | shrext_cmds='.so' |
| 9914 | hardcode_into_libs=yes |
| 9915 | dynamic_linker="$host_os dld.so" |
| 9916 | shlibpath_var=LD_LIBRARY_PATH |
| 9917 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9918 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9919 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9920 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9921 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9922 | else |
| 9923 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9924 | fi |
| 9925 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9926 | ;; |
| 9927 | hppa*64*) |
| 9928 | shrext_cmds='.sl' |
| 9929 | hardcode_into_libs=yes |
| 9930 | dynamic_linker="$host_os dld.sl" |
| 9931 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9932 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9933 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9934 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9935 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9936 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9937 | ;; |
| 9938 | *) |
| 9939 | shrext_cmds='.sl' |
| 9940 | dynamic_linker="$host_os dld.sl" |
| 9941 | shlibpath_var=SHLIB_PATH |
| 9942 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9943 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9944 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9945 | ;; |
| 9946 | esac |
| 9947 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9948 | postinstall_cmds='chmod 555 $lib' |
| 9949 | ;; |
| 9950 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9951 | interix3*) |
| 9952 | version_type=linux |
| 9953 | need_lib_prefix=no |
| 9954 | need_version=no |
| 9955 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9956 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9957 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9958 | shlibpath_var=LD_LIBRARY_PATH |
| 9959 | shlibpath_overrides_runpath=no |
| 9960 | hardcode_into_libs=yes |
| 9961 | ;; |
| 9962 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9963 | irix5* | irix6* | nonstopux*) |
| 9964 | case $host_os in |
| 9965 | nonstopux*) version_type=nonstopux ;; |
| 9966 | *) |
| 9967 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9968 | version_type=linux |
| 9969 | else |
| 9970 | version_type=irix |
| 9971 | fi ;; |
| 9972 | esac |
| 9973 | need_lib_prefix=no |
| 9974 | need_version=no |
| 9975 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9976 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9977 | case $host_os in |
| 9978 | irix5* | nonstopux*) |
| 9979 | libsuff= shlibsuff= |
| 9980 | ;; |
| 9981 | *) |
| 9982 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9983 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9984 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9985 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9986 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9987 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9988 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9989 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9990 | esac |
| 9991 | ;; |
| 9992 | esac |
| 9993 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9994 | shlibpath_overrides_runpath=no |
| 9995 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9996 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9997 | hardcode_into_libs=yes |
| 9998 | ;; |
| 9999 | |
| 10000 | # No shared lib support for Linux oldld, aout, or coff. |
| 10001 | linux*oldld* | linux*aout* | linux*coff*) |
| 10002 | dynamic_linker=no |
| 10003 | ;; |
| 10004 | |
| 10005 | # This must be Linux ELF. |
| 10006 | linux*) |
| 10007 | version_type=linux |
| 10008 | need_lib_prefix=no |
| 10009 | need_version=no |
| 10010 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10011 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10012 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10013 | shlibpath_var=LD_LIBRARY_PATH |
| 10014 | shlibpath_overrides_runpath=no |
| 10015 | # This implies no fast_install, which is unacceptable. |
| 10016 | # Some rework will be needed to allow for fast_install |
| 10017 | # before this can be enabled. |
| 10018 | hardcode_into_libs=yes |
| 10019 | |
| 10020 | # Append ld.so.conf contents to the search path |
| 10021 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10022 | 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] | 10023 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 10024 | fi |
| 10025 | |
| 10026 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10027 | # powerpc, because MkLinux only supported shared libraries with the |
| 10028 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 10029 | # most powerpc-linux boxes support dynamic linking these days and |
| 10030 | # people can always --disable-shared, the test was removed, and we |
| 10031 | # assume the GNU/Linux dynamic linker is in use. |
| 10032 | dynamic_linker='GNU/Linux ld.so' |
| 10033 | ;; |
| 10034 | |
| 10035 | knetbsd*-gnu) |
| 10036 | version_type=linux |
| 10037 | need_lib_prefix=no |
| 10038 | need_version=no |
| 10039 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10040 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10041 | shlibpath_var=LD_LIBRARY_PATH |
| 10042 | shlibpath_overrides_runpath=no |
| 10043 | hardcode_into_libs=yes |
| 10044 | dynamic_linker='GNU ld.so' |
| 10045 | ;; |
| 10046 | |
| 10047 | netbsd*) |
| 10048 | version_type=sunos |
| 10049 | need_lib_prefix=no |
| 10050 | need_version=no |
| 10051 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 10052 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10053 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10054 | dynamic_linker='NetBSD (a.out) ld.so' |
| 10055 | else |
| 10056 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10057 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10058 | dynamic_linker='NetBSD ld.elf_so' |
| 10059 | fi |
| 10060 | shlibpath_var=LD_LIBRARY_PATH |
| 10061 | shlibpath_overrides_runpath=yes |
| 10062 | hardcode_into_libs=yes |
| 10063 | ;; |
| 10064 | |
| 10065 | newsos6) |
| 10066 | version_type=linux |
| 10067 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10068 | shlibpath_var=LD_LIBRARY_PATH |
| 10069 | shlibpath_overrides_runpath=yes |
| 10070 | ;; |
| 10071 | |
| 10072 | nto-qnx*) |
| 10073 | version_type=linux |
| 10074 | need_lib_prefix=no |
| 10075 | need_version=no |
| 10076 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10077 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10078 | shlibpath_var=LD_LIBRARY_PATH |
| 10079 | shlibpath_overrides_runpath=yes |
| 10080 | ;; |
| 10081 | |
| 10082 | openbsd*) |
| 10083 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10084 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10085 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10086 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 10087 | case $host_os in |
| 10088 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 10089 | *) need_version=no ;; |
| 10090 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10091 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10092 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10093 | shlibpath_var=LD_LIBRARY_PATH |
| 10094 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10095 | case $host_os in |
| 10096 | openbsd2.[89] | openbsd2.[89].*) |
| 10097 | shlibpath_overrides_runpath=no |
| 10098 | ;; |
| 10099 | *) |
| 10100 | shlibpath_overrides_runpath=yes |
| 10101 | ;; |
| 10102 | esac |
| 10103 | else |
| 10104 | shlibpath_overrides_runpath=yes |
| 10105 | fi |
| 10106 | ;; |
| 10107 | |
| 10108 | os2*) |
| 10109 | libname_spec='$name' |
| 10110 | shrext_cmds=".dll" |
| 10111 | need_lib_prefix=no |
| 10112 | library_names_spec='$libname${shared_ext} $libname.a' |
| 10113 | dynamic_linker='OS/2 ld.exe' |
| 10114 | shlibpath_var=LIBPATH |
| 10115 | ;; |
| 10116 | |
| 10117 | osf3* | osf4* | osf5*) |
| 10118 | version_type=osf |
| 10119 | need_lib_prefix=no |
| 10120 | need_version=no |
| 10121 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10122 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10123 | shlibpath_var=LD_LIBRARY_PATH |
| 10124 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 10125 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10126 | ;; |
| 10127 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10128 | solaris*) |
| 10129 | version_type=linux |
| 10130 | need_lib_prefix=no |
| 10131 | need_version=no |
| 10132 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10133 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10134 | shlibpath_var=LD_LIBRARY_PATH |
| 10135 | shlibpath_overrides_runpath=yes |
| 10136 | hardcode_into_libs=yes |
| 10137 | # ldd complains unless libraries are executable |
| 10138 | postinstall_cmds='chmod +x $lib' |
| 10139 | ;; |
| 10140 | |
| 10141 | sunos4*) |
| 10142 | version_type=sunos |
| 10143 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10144 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10145 | shlibpath_var=LD_LIBRARY_PATH |
| 10146 | shlibpath_overrides_runpath=yes |
| 10147 | if test "$with_gnu_ld" = yes; then |
| 10148 | need_lib_prefix=no |
| 10149 | fi |
| 10150 | need_version=yes |
| 10151 | ;; |
| 10152 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10153 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10154 | version_type=linux |
| 10155 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10156 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10157 | shlibpath_var=LD_LIBRARY_PATH |
| 10158 | case $host_vendor in |
| 10159 | sni) |
| 10160 | shlibpath_overrides_runpath=no |
| 10161 | need_lib_prefix=no |
| 10162 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 10163 | runpath_var=LD_RUN_PATH |
| 10164 | ;; |
| 10165 | siemens) |
| 10166 | need_lib_prefix=no |
| 10167 | ;; |
| 10168 | motorola) |
| 10169 | need_lib_prefix=no |
| 10170 | need_version=no |
| 10171 | shlibpath_overrides_runpath=no |
| 10172 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 10173 | ;; |
| 10174 | esac |
| 10175 | ;; |
| 10176 | |
| 10177 | sysv4*MP*) |
| 10178 | if test -d /usr/nec ;then |
| 10179 | version_type=linux |
| 10180 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 10181 | soname_spec='$libname${shared_ext}.$major' |
| 10182 | shlibpath_var=LD_LIBRARY_PATH |
| 10183 | fi |
| 10184 | ;; |
| 10185 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10186 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10187 | version_type=freebsd-elf |
| 10188 | need_lib_prefix=no |
| 10189 | need_version=no |
| 10190 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10191 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10192 | shlibpath_var=LD_LIBRARY_PATH |
| 10193 | hardcode_into_libs=yes |
| 10194 | if test "$with_gnu_ld" = yes; then |
| 10195 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 10196 | shlibpath_overrides_runpath=no |
| 10197 | else |
| 10198 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 10199 | shlibpath_overrides_runpath=yes |
| 10200 | case $host_os in |
| 10201 | sco3.2v5*) |
| 10202 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 10203 | ;; |
| 10204 | esac |
| 10205 | fi |
| 10206 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 10207 | ;; |
| 10208 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10209 | uts4*) |
| 10210 | version_type=linux |
| 10211 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10212 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10213 | shlibpath_var=LD_LIBRARY_PATH |
| 10214 | ;; |
| 10215 | |
| 10216 | *) |
| 10217 | dynamic_linker=no |
| 10218 | ;; |
| 10219 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10220 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 10221 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10222 | test "$dynamic_linker" = no && can_build_shared=no |
| 10223 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10224 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10225 | if test "$GCC" = yes; then |
| 10226 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10227 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10228 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10229 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10230 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 10231 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
| 10232 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 10233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10234 | else |
| 10235 | |
| 10236 | module=yes |
| 10237 | eval libltdl_cv_shlibext=$shrext_cmds |
| 10238 | |
| 10239 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10240 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 10241 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10242 | if test -n "$libltdl_cv_shlibext"; then |
| 10243 | |
| 10244 | cat >>confdefs.h <<_ACEOF |
| 10245 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 10246 | _ACEOF |
| 10247 | |
| 10248 | fi |
| 10249 | |
| 10250 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10251 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 10252 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
| 10253 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 10254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10255 | else |
| 10256 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 10257 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10258 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 10259 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10260 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 10261 | |
| 10262 | cat >>confdefs.h <<_ACEOF |
| 10263 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 10264 | _ACEOF |
| 10265 | |
| 10266 | fi |
| 10267 | |
| 10268 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10269 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 10270 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
| 10271 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 10272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10273 | else |
| 10274 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 10275 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10276 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 10277 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10278 | if test -n "$libltdl_cv_sys_search_path"; then |
| 10279 | sys_search_path= |
| 10280 | for dir in $libltdl_cv_sys_search_path; do |
| 10281 | if test -z "$sys_search_path"; then |
| 10282 | sys_search_path="$dir" |
| 10283 | else |
| 10284 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 10285 | fi |
| 10286 | done |
| 10287 | |
| 10288 | cat >>confdefs.h <<_ACEOF |
| 10289 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 10290 | _ACEOF |
| 10291 | |
| 10292 | fi |
| 10293 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10294 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 10295 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 10296 | if test "${libltdl_cv_objdir+set}" = set; then |
| 10297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10298 | else |
| 10299 | libltdl_cv_objdir="$objdir" |
| 10300 | if test -n "$objdir"; then |
| 10301 | : |
| 10302 | else |
| 10303 | rm -f .libs 2>/dev/null |
| 10304 | mkdir .libs 2>/dev/null |
| 10305 | if test -d .libs; then |
| 10306 | libltdl_cv_objdir=.libs |
| 10307 | else |
| 10308 | # MS-DOS does not allow filenames that begin with a dot. |
| 10309 | libltdl_cv_objdir=_libs |
| 10310 | fi |
| 10311 | rmdir .libs 2>/dev/null |
| 10312 | fi |
| 10313 | |
| 10314 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10315 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 10316 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10317 | |
| 10318 | cat >>confdefs.h <<_ACEOF |
| 10319 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 10320 | _ACEOF |
| 10321 | |
| 10322 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10323 | |
| 10324 | |
| 10325 | |
| 10326 | |
| 10327 | # 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] | 10328 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 10329 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 10330 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 10331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10332 | else |
| 10333 | |
| 10334 | # These are sane defaults that work on at least a few old systems. |
| 10335 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 10336 | |
| 10337 | # Character class describing NM global symbol codes. |
| 10338 | symcode='[BCDEGRST]' |
| 10339 | |
| 10340 | # Regexp to match symbols that can be accessed directly from C. |
| 10341 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 10342 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10343 | # Transform an extracted symbol line into a proper C declaration |
| 10344 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 10345 | |
| 10346 | # Transform an extracted symbol line into symbol name and symbol address |
| 10347 | 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'" |
| 10348 | |
| 10349 | # Define system-specific variables. |
| 10350 | case $host_os in |
| 10351 | aix*) |
| 10352 | symcode='[BCDT]' |
| 10353 | ;; |
| 10354 | cygwin* | mingw* | pw32*) |
| 10355 | symcode='[ABCDGISTW]' |
| 10356 | ;; |
| 10357 | hpux*) # Its linker distinguishes data from code symbols |
| 10358 | if test "$host_cpu" = ia64; then |
| 10359 | symcode='[ABCDEGRST]' |
| 10360 | fi |
| 10361 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10362 | 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'" |
| 10363 | ;; |
| 10364 | linux*) |
| 10365 | if test "$host_cpu" = ia64; then |
| 10366 | symcode='[ABCDGIRSTW]' |
| 10367 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10368 | 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'" |
| 10369 | fi |
| 10370 | ;; |
| 10371 | irix* | nonstopux*) |
| 10372 | symcode='[BCDEGRST]' |
| 10373 | ;; |
| 10374 | osf*) |
| 10375 | symcode='[BCDEGQRST]' |
| 10376 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10377 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10378 | symcode='[BDRT]' |
| 10379 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10380 | sco3.2v5*) |
| 10381 | symcode='[DT]' |
| 10382 | ;; |
| 10383 | sysv4.2uw2*) |
| 10384 | symcode='[DT]' |
| 10385 | ;; |
| 10386 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 10387 | symcode='[ABDT]' |
| 10388 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10389 | sysv4) |
| 10390 | symcode='[DFNSTU]' |
| 10391 | ;; |
| 10392 | esac |
| 10393 | |
| 10394 | # Handle CRLF in mingw tool chain |
| 10395 | opt_cr= |
| 10396 | case $build_os in |
| 10397 | mingw*) |
| 10398 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 10399 | ;; |
| 10400 | esac |
| 10401 | |
| 10402 | # If we're using GNU nm, then use its standard symbol codes. |
| 10403 | case `$NM -V 2>&1` in |
| 10404 | *GNU* | *'with BFD'*) |
| 10405 | symcode='[ABCDGIRSTW]' ;; |
| 10406 | esac |
| 10407 | |
| 10408 | # Try without a prefix undercore, then with it. |
| 10409 | for ac_symprfx in "" "_"; do |
| 10410 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10411 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 10412 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 10413 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10414 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10415 | 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] | 10416 | |
| 10417 | # Check to see that the pipe works correctly. |
| 10418 | pipe_works=no |
| 10419 | |
| 10420 | rm -f conftest* |
| 10421 | cat > conftest.$ac_ext <<EOF |
| 10422 | #ifdef __cplusplus |
| 10423 | extern "C" { |
| 10424 | #endif |
| 10425 | char nm_test_var; |
| 10426 | void nm_test_func(){} |
| 10427 | #ifdef __cplusplus |
| 10428 | } |
| 10429 | #endif |
| 10430 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 10431 | EOF |
| 10432 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10434 | (eval $ac_compile) 2>&5 |
| 10435 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10437 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10438 | # Now try to grab the symbols. |
| 10439 | nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10440 | 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] | 10441 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 10442 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10444 | (exit $ac_status); } && test -s "$nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10445 | # Try sorting and uniquifying the output. |
| 10446 | if sort "$nlist" | uniq > "$nlist"T; then |
| 10447 | mv -f "$nlist"T "$nlist" |
| 10448 | else |
| 10449 | rm -f "$nlist"T |
| 10450 | fi |
| 10451 | |
| 10452 | # Make sure that we snagged all the symbols we need. |
| 10453 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 10454 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 10455 | cat <<EOF > conftest.$ac_ext |
| 10456 | #ifdef __cplusplus |
| 10457 | extern "C" { |
| 10458 | #endif |
| 10459 | |
| 10460 | EOF |
| 10461 | # Now generate the symbol file. |
| 10462 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 10463 | |
| 10464 | cat <<EOF >> conftest.$ac_ext |
| 10465 | #if defined (__STDC__) && __STDC__ |
| 10466 | # define lt_ptr_t void * |
| 10467 | #else |
| 10468 | # define lt_ptr_t char * |
| 10469 | # define const |
| 10470 | #endif |
| 10471 | |
| 10472 | /* The mapping between symbol names and symbols. */ |
| 10473 | const struct { |
| 10474 | const char *name; |
| 10475 | lt_ptr_t address; |
| 10476 | } |
| 10477 | lt_preloaded_symbols[] = |
| 10478 | { |
| 10479 | EOF |
| 10480 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 10481 | cat <<\EOF >> conftest.$ac_ext |
| 10482 | {0, (lt_ptr_t) 0} |
| 10483 | }; |
| 10484 | |
| 10485 | #ifdef __cplusplus |
| 10486 | } |
| 10487 | #endif |
| 10488 | EOF |
| 10489 | # Now try linking the two files. |
| 10490 | mv conftest.$ac_objext conftstm.$ac_objext |
| 10491 | lt_save_LIBS="$LIBS" |
| 10492 | lt_save_CFLAGS="$CFLAGS" |
| 10493 | LIBS="conftstm.$ac_objext" |
| 10494 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10495 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10496 | (eval $ac_link) 2>&5 |
| 10497 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10499 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10500 | pipe_works=yes |
| 10501 | fi |
| 10502 | LIBS="$lt_save_LIBS" |
| 10503 | CFLAGS="$lt_save_CFLAGS" |
| 10504 | else |
| 10505 | echo "cannot find nm_test_func in $nlist" >&5 |
| 10506 | fi |
| 10507 | else |
| 10508 | echo "cannot find nm_test_var in $nlist" >&5 |
| 10509 | fi |
| 10510 | else |
| 10511 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10512 | fi |
| 10513 | else |
| 10514 | echo "$progname: failed program was:" >&5 |
| 10515 | cat conftest.$ac_ext >&5 |
| 10516 | fi |
| 10517 | rm -f conftest* conftst* |
| 10518 | |
| 10519 | # Do not use the global_symbol_pipe unless it works. |
| 10520 | if test "$pipe_works" = yes; then |
| 10521 | break |
| 10522 | else |
| 10523 | lt_cv_sys_global_symbol_pipe= |
| 10524 | fi |
| 10525 | done |
| 10526 | |
| 10527 | fi |
| 10528 | |
| 10529 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 10530 | lt_cv_sys_global_symbol_to_cdecl= |
| 10531 | fi |
| 10532 | 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] | 10533 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 10534 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10535 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10536 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 10537 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10538 | fi |
| 10539 | |
| 10540 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10541 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 10542 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
| 10543 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 10544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10545 | else |
| 10546 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 10547 | libltdl_cv_preloaded_symbols=yes |
| 10548 | else |
| 10549 | libltdl_cv_preloaded_symbols=no |
| 10550 | fi |
| 10551 | |
| 10552 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10553 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 10554 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10555 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 10556 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10557 | cat >>confdefs.h <<\_ACEOF |
| 10558 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 10559 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10560 | |
| 10561 | fi |
| 10562 | |
| 10563 | LIBADD_DL= |
| 10564 | |
| 10565 | ac_ext=c |
| 10566 | ac_cpp='$CPP $CPPFLAGS' |
| 10567 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10568 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10569 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10570 | |
| 10571 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10572 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 10573 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 10574 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 10575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10576 | else |
| 10577 | cat >conftest.$ac_ext <<_ACEOF |
| 10578 | /* confdefs.h. */ |
| 10579 | _ACEOF |
| 10580 | cat confdefs.h >>conftest.$ac_ext |
| 10581 | cat >>conftest.$ac_ext <<_ACEOF |
| 10582 | /* end confdefs.h. */ |
| 10583 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 10584 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10585 | #define shl_load innocuous_shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10586 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10587 | /* System header to define __stub macros and hopefully few prototypes, |
| 10588 | which can conflict with char shl_load (); below. |
| 10589 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10590 | <limits.h> exists even on freestanding compilers. */ |
| 10591 | |
| 10592 | #ifdef __STDC__ |
| 10593 | # include <limits.h> |
| 10594 | #else |
| 10595 | # include <assert.h> |
| 10596 | #endif |
| 10597 | |
| 10598 | #undef shl_load |
| 10599 | |
| 10600 | /* Override any GCC internal prototype to avoid an error. |
| 10601 | Use char because int might match the return type of a GCC |
| 10602 | builtin and then its argument prototype would still apply. */ |
| 10603 | #ifdef __cplusplus |
| 10604 | extern "C" |
| 10605 | #endif |
| 10606 | char shl_load (); |
| 10607 | /* The GNU C library defines this for functions which it implements |
| 10608 | to always fail with ENOSYS. Some functions are actually named |
| 10609 | something starting with __ and the normal name is an alias. */ |
| 10610 | #if defined __stub_shl_load || defined __stub___shl_load |
| 10611 | choke me |
| 10612 | #endif |
| 10613 | |
| 10614 | int |
| 10615 | main () |
| 10616 | { |
| 10617 | return shl_load (); |
| 10618 | ; |
| 10619 | return 0; |
| 10620 | } |
| 10621 | _ACEOF |
| 10622 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10623 | if { (ac_try="$ac_link" |
| 10624 | case "(($ac_try" in |
| 10625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10626 | *) ac_try_echo=$ac_try;; |
| 10627 | esac |
| 10628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10629 | (eval "$ac_link") 2>conftest.er1 |
| 10630 | ac_status=$? |
| 10631 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10632 | rm -f conftest.er1 |
| 10633 | cat conftest.err >&5 |
| 10634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10635 | (exit $ac_status); } && |
| 10636 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10637 | { (case "(($ac_try" in |
| 10638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10639 | *) ac_try_echo=$ac_try;; |
| 10640 | esac |
| 10641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10642 | (eval "$ac_try") 2>&5 |
| 10643 | ac_status=$? |
| 10644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10645 | (exit $ac_status); }; } && |
| 10646 | { ac_try='test -s conftest$ac_exeext' |
| 10647 | { (case "(($ac_try" in |
| 10648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10649 | *) ac_try_echo=$ac_try;; |
| 10650 | esac |
| 10651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10652 | (eval "$ac_try") 2>&5 |
| 10653 | ac_status=$? |
| 10654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10655 | (exit $ac_status); }; }; then |
| 10656 | ac_cv_func_shl_load=yes |
| 10657 | else |
| 10658 | echo "$as_me: failed program was:" >&5 |
| 10659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10660 | |
| 10661 | ac_cv_func_shl_load=no |
| 10662 | fi |
| 10663 | |
| 10664 | rm -f core conftest.err conftest.$ac_objext \ |
| 10665 | conftest$ac_exeext conftest.$ac_ext |
| 10666 | fi |
| 10667 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 10668 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 10669 | if test $ac_cv_func_shl_load = yes; then |
| 10670 | |
| 10671 | cat >>confdefs.h <<\_ACEOF |
| 10672 | #define HAVE_SHL_LOAD 1 |
| 10673 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10674 | |
| 10675 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10676 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10677 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 10678 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10680 | else |
| 10681 | ac_check_lib_save_LIBS=$LIBS |
| 10682 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10683 | cat >conftest.$ac_ext <<_ACEOF |
| 10684 | /* confdefs.h. */ |
| 10685 | _ACEOF |
| 10686 | cat confdefs.h >>conftest.$ac_ext |
| 10687 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10688 | /* end confdefs.h. */ |
| 10689 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10690 | /* Override any GCC internal prototype to avoid an error. |
| 10691 | Use char because int might match the return type of a GCC |
| 10692 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10693 | #ifdef __cplusplus |
| 10694 | extern "C" |
| 10695 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10696 | char shl_load (); |
| 10697 | int |
| 10698 | main () |
| 10699 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10700 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10701 | ; |
| 10702 | return 0; |
| 10703 | } |
| 10704 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10705 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10706 | if { (ac_try="$ac_link" |
| 10707 | case "(($ac_try" in |
| 10708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10709 | *) ac_try_echo=$ac_try;; |
| 10710 | esac |
| 10711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10712 | (eval "$ac_link") 2>conftest.er1 |
| 10713 | ac_status=$? |
| 10714 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10715 | rm -f conftest.er1 |
| 10716 | cat conftest.err >&5 |
| 10717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10718 | (exit $ac_status); } && |
| 10719 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10720 | { (case "(($ac_try" in |
| 10721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10722 | *) ac_try_echo=$ac_try;; |
| 10723 | esac |
| 10724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10725 | (eval "$ac_try") 2>&5 |
| 10726 | ac_status=$? |
| 10727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10728 | (exit $ac_status); }; } && |
| 10729 | { ac_try='test -s conftest$ac_exeext' |
| 10730 | { (case "(($ac_try" in |
| 10731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10732 | *) ac_try_echo=$ac_try;; |
| 10733 | esac |
| 10734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10735 | (eval "$ac_try") 2>&5 |
| 10736 | ac_status=$? |
| 10737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10738 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10739 | ac_cv_lib_dld_shl_load=yes |
| 10740 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10741 | echo "$as_me: failed program was:" >&5 |
| 10742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10743 | |
| 10744 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10745 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10746 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10747 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10748 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10749 | LIBS=$ac_check_lib_save_LIBS |
| 10750 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10751 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10752 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 10753 | if test $ac_cv_lib_dld_shl_load = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10754 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10755 | cat >>confdefs.h <<\_ACEOF |
| 10756 | #define HAVE_SHL_LOAD 1 |
| 10757 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10758 | |
| 10759 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10760 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10761 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10762 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 10763 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10765 | else |
| 10766 | ac_check_lib_save_LIBS=$LIBS |
| 10767 | LIBS="-ldl $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10768 | cat >conftest.$ac_ext <<_ACEOF |
| 10769 | /* confdefs.h. */ |
| 10770 | _ACEOF |
| 10771 | cat confdefs.h >>conftest.$ac_ext |
| 10772 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10773 | /* end confdefs.h. */ |
| 10774 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10775 | /* Override any GCC internal prototype to avoid an error. |
| 10776 | Use char because int might match the return type of a GCC |
| 10777 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10778 | #ifdef __cplusplus |
| 10779 | extern "C" |
| 10780 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10781 | char dlopen (); |
| 10782 | int |
| 10783 | main () |
| 10784 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10785 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10786 | ; |
| 10787 | return 0; |
| 10788 | } |
| 10789 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10790 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10791 | if { (ac_try="$ac_link" |
| 10792 | case "(($ac_try" in |
| 10793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10794 | *) ac_try_echo=$ac_try;; |
| 10795 | esac |
| 10796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10797 | (eval "$ac_link") 2>conftest.er1 |
| 10798 | ac_status=$? |
| 10799 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10800 | rm -f conftest.er1 |
| 10801 | cat conftest.err >&5 |
| 10802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10803 | (exit $ac_status); } && |
| 10804 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10805 | { (case "(($ac_try" in |
| 10806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10807 | *) ac_try_echo=$ac_try;; |
| 10808 | esac |
| 10809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10810 | (eval "$ac_try") 2>&5 |
| 10811 | ac_status=$? |
| 10812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10813 | (exit $ac_status); }; } && |
| 10814 | { ac_try='test -s conftest$ac_exeext' |
| 10815 | { (case "(($ac_try" in |
| 10816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10817 | *) ac_try_echo=$ac_try;; |
| 10818 | esac |
| 10819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10820 | (eval "$ac_try") 2>&5 |
| 10821 | ac_status=$? |
| 10822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10823 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10824 | ac_cv_lib_dl_dlopen=yes |
| 10825 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10826 | echo "$as_me: failed program was:" >&5 |
| 10827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10828 | |
| 10829 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10830 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10831 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10832 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10833 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10834 | LIBS=$ac_check_lib_save_LIBS |
| 10835 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10836 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10837 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 10838 | if test $ac_cv_lib_dl_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10839 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10840 | cat >>confdefs.h <<\_ACEOF |
| 10841 | #define HAVE_LIBDL 1 |
| 10842 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10843 | |
| 10844 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 10845 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10846 | cat >conftest.$ac_ext <<_ACEOF |
| 10847 | /* confdefs.h. */ |
| 10848 | _ACEOF |
| 10849 | cat confdefs.h >>conftest.$ac_ext |
| 10850 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10851 | /* end confdefs.h. */ |
| 10852 | #if HAVE_DLFCN_H |
| 10853 | # include <dlfcn.h> |
| 10854 | #endif |
| 10855 | |
| 10856 | int |
| 10857 | main () |
| 10858 | { |
| 10859 | dlopen(0, 0); |
| 10860 | ; |
| 10861 | return 0; |
| 10862 | } |
| 10863 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10864 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10865 | if { (ac_try="$ac_link" |
| 10866 | case "(($ac_try" in |
| 10867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10868 | *) ac_try_echo=$ac_try;; |
| 10869 | esac |
| 10870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10871 | (eval "$ac_link") 2>conftest.er1 |
| 10872 | ac_status=$? |
| 10873 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10874 | rm -f conftest.er1 |
| 10875 | cat conftest.err >&5 |
| 10876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10877 | (exit $ac_status); } && |
| 10878 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10879 | { (case "(($ac_try" in |
| 10880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10881 | *) ac_try_echo=$ac_try;; |
| 10882 | esac |
| 10883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10884 | (eval "$ac_try") 2>&5 |
| 10885 | ac_status=$? |
| 10886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10887 | (exit $ac_status); }; } && |
| 10888 | { ac_try='test -s conftest$ac_exeext' |
| 10889 | { (case "(($ac_try" in |
| 10890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10891 | *) ac_try_echo=$ac_try;; |
| 10892 | esac |
| 10893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10894 | (eval "$ac_try") 2>&5 |
| 10895 | ac_status=$? |
| 10896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10897 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10898 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10899 | cat >>confdefs.h <<\_ACEOF |
| 10900 | #define HAVE_LIBDL 1 |
| 10901 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10902 | libltdl_cv_func_dlopen="yes" |
| 10903 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10904 | echo "$as_me: failed program was:" >&5 |
| 10905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10906 | |
| 10907 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 10908 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 10909 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 10910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10911 | else |
| 10912 | ac_check_lib_save_LIBS=$LIBS |
| 10913 | LIBS="-lsvld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10914 | cat >conftest.$ac_ext <<_ACEOF |
| 10915 | /* confdefs.h. */ |
| 10916 | _ACEOF |
| 10917 | cat confdefs.h >>conftest.$ac_ext |
| 10918 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10919 | /* end confdefs.h. */ |
| 10920 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10921 | /* Override any GCC internal prototype to avoid an error. |
| 10922 | Use char because int might match the return type of a GCC |
| 10923 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10924 | #ifdef __cplusplus |
| 10925 | extern "C" |
| 10926 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10927 | char dlopen (); |
| 10928 | int |
| 10929 | main () |
| 10930 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10931 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10932 | ; |
| 10933 | return 0; |
| 10934 | } |
| 10935 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10936 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10937 | if { (ac_try="$ac_link" |
| 10938 | case "(($ac_try" in |
| 10939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10940 | *) ac_try_echo=$ac_try;; |
| 10941 | esac |
| 10942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10943 | (eval "$ac_link") 2>conftest.er1 |
| 10944 | ac_status=$? |
| 10945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10946 | rm -f conftest.er1 |
| 10947 | cat conftest.err >&5 |
| 10948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10949 | (exit $ac_status); } && |
| 10950 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10951 | { (case "(($ac_try" in |
| 10952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10953 | *) ac_try_echo=$ac_try;; |
| 10954 | esac |
| 10955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10956 | (eval "$ac_try") 2>&5 |
| 10957 | ac_status=$? |
| 10958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10959 | (exit $ac_status); }; } && |
| 10960 | { ac_try='test -s conftest$ac_exeext' |
| 10961 | { (case "(($ac_try" in |
| 10962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10963 | *) ac_try_echo=$ac_try;; |
| 10964 | esac |
| 10965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10966 | (eval "$ac_try") 2>&5 |
| 10967 | ac_status=$? |
| 10968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10969 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10970 | ac_cv_lib_svld_dlopen=yes |
| 10971 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10972 | echo "$as_me: failed program was:" >&5 |
| 10973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10974 | |
| 10975 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10976 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10977 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 10978 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10979 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10980 | LIBS=$ac_check_lib_save_LIBS |
| 10981 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10982 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10983 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 10984 | if test $ac_cv_lib_svld_dlopen = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10985 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10986 | cat >>confdefs.h <<\_ACEOF |
| 10987 | #define HAVE_LIBDL 1 |
| 10988 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10989 | |
| 10990 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10991 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10992 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10993 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 10994 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10996 | else |
| 10997 | ac_check_lib_save_LIBS=$LIBS |
| 10998 | LIBS="-ldld $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 10999 | cat >conftest.$ac_ext <<_ACEOF |
| 11000 | /* confdefs.h. */ |
| 11001 | _ACEOF |
| 11002 | cat confdefs.h >>conftest.$ac_ext |
| 11003 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11004 | /* end confdefs.h. */ |
| 11005 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11006 | /* Override any GCC internal prototype to avoid an error. |
| 11007 | Use char because int might match the return type of a GCC |
| 11008 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11009 | #ifdef __cplusplus |
| 11010 | extern "C" |
| 11011 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11012 | char dld_link (); |
| 11013 | int |
| 11014 | main () |
| 11015 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11016 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11017 | ; |
| 11018 | return 0; |
| 11019 | } |
| 11020 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11021 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11022 | if { (ac_try="$ac_link" |
| 11023 | case "(($ac_try" in |
| 11024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11025 | *) ac_try_echo=$ac_try;; |
| 11026 | esac |
| 11027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11028 | (eval "$ac_link") 2>conftest.er1 |
| 11029 | ac_status=$? |
| 11030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11031 | rm -f conftest.er1 |
| 11032 | cat conftest.err >&5 |
| 11033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11034 | (exit $ac_status); } && |
| 11035 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11036 | { (case "(($ac_try" in |
| 11037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11038 | *) ac_try_echo=$ac_try;; |
| 11039 | esac |
| 11040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11041 | (eval "$ac_try") 2>&5 |
| 11042 | ac_status=$? |
| 11043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11044 | (exit $ac_status); }; } && |
| 11045 | { ac_try='test -s conftest$ac_exeext' |
| 11046 | { (case "(($ac_try" in |
| 11047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11048 | *) ac_try_echo=$ac_try;; |
| 11049 | esac |
| 11050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11051 | (eval "$ac_try") 2>&5 |
| 11052 | ac_status=$? |
| 11053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11054 | (exit $ac_status); }; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11055 | ac_cv_lib_dld_dld_link=yes |
| 11056 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11057 | echo "$as_me: failed program was:" >&5 |
| 11058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11059 | |
| 11060 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11061 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11062 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11063 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11064 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11065 | LIBS=$ac_check_lib_save_LIBS |
| 11066 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11067 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11068 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 11069 | if test $ac_cv_lib_dld_dld_link = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11070 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11071 | cat >>confdefs.h <<\_ACEOF |
| 11072 | #define HAVE_DLD 1 |
| 11073 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11074 | |
| 11075 | LIBADD_DL="$LIBADD_DL -ldld" |
| 11076 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11077 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 11078 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
| 11079 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 11080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11081 | else |
| 11082 | cat >conftest.$ac_ext <<_ACEOF |
| 11083 | /* confdefs.h. */ |
| 11084 | _ACEOF |
| 11085 | cat confdefs.h >>conftest.$ac_ext |
| 11086 | cat >>conftest.$ac_ext <<_ACEOF |
| 11087 | /* end confdefs.h. */ |
| 11088 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 11089 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11090 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11091 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11092 | /* System header to define __stub macros and hopefully few prototypes, |
| 11093 | which can conflict with char _dyld_func_lookup (); below. |
| 11094 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11095 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11096 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11097 | #ifdef __STDC__ |
| 11098 | # include <limits.h> |
| 11099 | #else |
| 11100 | # include <assert.h> |
| 11101 | #endif |
| 11102 | |
| 11103 | #undef _dyld_func_lookup |
| 11104 | |
| 11105 | /* Override any GCC internal prototype to avoid an error. |
| 11106 | Use char because int might match the return type of a GCC |
| 11107 | builtin and then its argument prototype would still apply. */ |
| 11108 | #ifdef __cplusplus |
| 11109 | extern "C" |
| 11110 | #endif |
| 11111 | char _dyld_func_lookup (); |
| 11112 | /* The GNU C library defines this for functions which it implements |
| 11113 | to always fail with ENOSYS. Some functions are actually named |
| 11114 | something starting with __ and the normal name is an alias. */ |
| 11115 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
| 11116 | choke me |
| 11117 | #endif |
| 11118 | |
| 11119 | int |
| 11120 | main () |
| 11121 | { |
| 11122 | return _dyld_func_lookup (); |
| 11123 | ; |
| 11124 | return 0; |
| 11125 | } |
| 11126 | _ACEOF |
| 11127 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11128 | if { (ac_try="$ac_link" |
| 11129 | case "(($ac_try" in |
| 11130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11131 | *) ac_try_echo=$ac_try;; |
| 11132 | esac |
| 11133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11134 | (eval "$ac_link") 2>conftest.er1 |
| 11135 | ac_status=$? |
| 11136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11137 | rm -f conftest.er1 |
| 11138 | cat conftest.err >&5 |
| 11139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11140 | (exit $ac_status); } && |
| 11141 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11142 | { (case "(($ac_try" in |
| 11143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11144 | *) ac_try_echo=$ac_try;; |
| 11145 | esac |
| 11146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11147 | (eval "$ac_try") 2>&5 |
| 11148 | ac_status=$? |
| 11149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11150 | (exit $ac_status); }; } && |
| 11151 | { ac_try='test -s conftest$ac_exeext' |
| 11152 | { (case "(($ac_try" in |
| 11153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11154 | *) ac_try_echo=$ac_try;; |
| 11155 | esac |
| 11156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11157 | (eval "$ac_try") 2>&5 |
| 11158 | ac_status=$? |
| 11159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11160 | (exit $ac_status); }; }; then |
| 11161 | ac_cv_func__dyld_func_lookup=yes |
| 11162 | else |
| 11163 | echo "$as_me: failed program was:" >&5 |
| 11164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11165 | |
| 11166 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11167 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11168 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 11169 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11170 | conftest$ac_exeext conftest.$ac_ext |
| 11171 | fi |
| 11172 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 11173 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
| 11174 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 11175 | |
| 11176 | cat >>confdefs.h <<\_ACEOF |
| 11177 | #define HAVE_DYLD 1 |
| 11178 | _ACEOF |
| 11179 | |
| 11180 | fi |
| 11181 | |
| 11182 | |
| 11183 | fi |
| 11184 | |
| 11185 | |
| 11186 | fi |
| 11187 | |
| 11188 | |
| 11189 | fi |
| 11190 | |
| 11191 | rm -f core conftest.err conftest.$ac_objext \ |
| 11192 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11193 | |
| 11194 | fi |
| 11195 | |
| 11196 | |
| 11197 | fi |
| 11198 | |
| 11199 | |
| 11200 | fi |
| 11201 | |
| 11202 | |
| 11203 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 11204 | then |
| 11205 | lt_save_LIBS="$LIBS" |
| 11206 | LIBS="$LIBS $LIBADD_DL" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11207 | |
| 11208 | for ac_func in dlerror |
| 11209 | do |
| 11210 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11211 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11212 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11213 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11215 | else |
| 11216 | cat >conftest.$ac_ext <<_ACEOF |
| 11217 | /* confdefs.h. */ |
| 11218 | _ACEOF |
| 11219 | cat confdefs.h >>conftest.$ac_ext |
| 11220 | cat >>conftest.$ac_ext <<_ACEOF |
| 11221 | /* end confdefs.h. */ |
| 11222 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11223 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11224 | #define $ac_func innocuous_$ac_func |
| 11225 | |
| 11226 | /* System header to define __stub macros and hopefully few prototypes, |
| 11227 | which can conflict with char $ac_func (); below. |
| 11228 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11229 | <limits.h> exists even on freestanding compilers. */ |
| 11230 | |
| 11231 | #ifdef __STDC__ |
| 11232 | # include <limits.h> |
| 11233 | #else |
| 11234 | # include <assert.h> |
| 11235 | #endif |
| 11236 | |
| 11237 | #undef $ac_func |
| 11238 | |
| 11239 | /* Override any GCC internal prototype to avoid an error. |
| 11240 | Use char because int might match the return type of a GCC |
| 11241 | builtin and then its argument prototype would still apply. */ |
| 11242 | #ifdef __cplusplus |
| 11243 | extern "C" |
| 11244 | #endif |
| 11245 | char $ac_func (); |
| 11246 | /* The GNU C library defines this for functions which it implements |
| 11247 | to always fail with ENOSYS. Some functions are actually named |
| 11248 | something starting with __ and the normal name is an alias. */ |
| 11249 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11250 | choke me |
| 11251 | #endif |
| 11252 | |
| 11253 | int |
| 11254 | main () |
| 11255 | { |
| 11256 | return $ac_func (); |
| 11257 | ; |
| 11258 | return 0; |
| 11259 | } |
| 11260 | _ACEOF |
| 11261 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11262 | if { (ac_try="$ac_link" |
| 11263 | case "(($ac_try" in |
| 11264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11265 | *) ac_try_echo=$ac_try;; |
| 11266 | esac |
| 11267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11268 | (eval "$ac_link") 2>conftest.er1 |
| 11269 | ac_status=$? |
| 11270 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11271 | rm -f conftest.er1 |
| 11272 | cat conftest.err >&5 |
| 11273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11274 | (exit $ac_status); } && |
| 11275 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11276 | { (case "(($ac_try" in |
| 11277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11278 | *) ac_try_echo=$ac_try;; |
| 11279 | esac |
| 11280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11281 | (eval "$ac_try") 2>&5 |
| 11282 | ac_status=$? |
| 11283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11284 | (exit $ac_status); }; } && |
| 11285 | { ac_try='test -s conftest$ac_exeext' |
| 11286 | { (case "(($ac_try" in |
| 11287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11288 | *) ac_try_echo=$ac_try;; |
| 11289 | esac |
| 11290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11291 | (eval "$ac_try") 2>&5 |
| 11292 | ac_status=$? |
| 11293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11294 | (exit $ac_status); }; }; then |
| 11295 | eval "$as_ac_var=yes" |
| 11296 | else |
| 11297 | echo "$as_me: failed program was:" >&5 |
| 11298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11299 | |
| 11300 | eval "$as_ac_var=no" |
| 11301 | fi |
| 11302 | |
| 11303 | rm -f core conftest.err conftest.$ac_objext \ |
| 11304 | conftest$ac_exeext conftest.$ac_ext |
| 11305 | fi |
| 11306 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11307 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11308 | echo "${ECHO_T}$ac_res" >&6; } |
| 11309 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11310 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11311 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11312 | _ACEOF |
| 11313 | |
| 11314 | fi |
| 11315 | done |
| 11316 | |
| 11317 | LIBS="$lt_save_LIBS" |
| 11318 | fi |
| 11319 | ac_ext=c |
| 11320 | ac_cpp='$CPP $CPPFLAGS' |
| 11321 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11322 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11323 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11324 | |
| 11325 | |
| 11326 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11327 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 11328 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
| 11329 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 11330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11331 | else |
| 11332 | ac_cv_sys_symbol_underscore=no |
| 11333 | cat > conftest.$ac_ext <<EOF |
| 11334 | void nm_test_func(){} |
| 11335 | int main(){nm_test_func;return 0;} |
| 11336 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11338 | (eval $ac_compile) 2>&5 |
| 11339 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11341 | (exit $ac_status); }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11342 | # Now try to grab the symbols. |
| 11343 | ac_nlist=conftest.nm |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11344 | 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] | 11345 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 11346 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11348 | (exit $ac_status); } && test -s "$ac_nlist"; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11349 | # See whether the symbols have a leading underscore. |
| 11350 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 11351 | ac_cv_sys_symbol_underscore=yes |
| 11352 | else |
| 11353 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 11354 | : |
| 11355 | else |
| 11356 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 11357 | fi |
| 11358 | fi |
| 11359 | else |
| 11360 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 11361 | fi |
| 11362 | else |
| 11363 | echo "configure: failed program was:" >&5 |
| 11364 | cat conftest.c >&5 |
| 11365 | fi |
| 11366 | rm -rf conftest* |
| 11367 | |
| 11368 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11369 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 11370 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11371 | |
| 11372 | |
| 11373 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 11374 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 11375 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11376 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 11377 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
| 11378 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 11379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11380 | else |
| 11381 | libltdl_cv_need_uscore=unknown |
| 11382 | save_LIBS="$LIBS" |
| 11383 | LIBS="$LIBS $LIBADD_DL" |
| 11384 | if test "$cross_compiling" = yes; then : |
| 11385 | libltdl_cv_need_uscore=cross |
| 11386 | else |
| 11387 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11388 | lt_status=$lt_dlunknown |
| 11389 | cat > conftest.$ac_ext <<EOF |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 11390 | #line 11390 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11391 | #include "confdefs.h" |
| 11392 | |
| 11393 | #if HAVE_DLFCN_H |
| 11394 | #include <dlfcn.h> |
| 11395 | #endif |
| 11396 | |
| 11397 | #include <stdio.h> |
| 11398 | |
| 11399 | #ifdef RTLD_GLOBAL |
| 11400 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11401 | #else |
| 11402 | # ifdef DL_GLOBAL |
| 11403 | # define LT_DLGLOBAL DL_GLOBAL |
| 11404 | # else |
| 11405 | # define LT_DLGLOBAL 0 |
| 11406 | # endif |
| 11407 | #endif |
| 11408 | |
| 11409 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11410 | find out it does not work in some platform. */ |
| 11411 | #ifndef LT_DLLAZY_OR_NOW |
| 11412 | # ifdef RTLD_LAZY |
| 11413 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11414 | # else |
| 11415 | # ifdef DL_LAZY |
| 11416 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11417 | # else |
| 11418 | # ifdef RTLD_NOW |
| 11419 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11420 | # else |
| 11421 | # ifdef DL_NOW |
| 11422 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11423 | # else |
| 11424 | # define LT_DLLAZY_OR_NOW 0 |
| 11425 | # endif |
| 11426 | # endif |
| 11427 | # endif |
| 11428 | # endif |
| 11429 | #endif |
| 11430 | |
| 11431 | #ifdef __cplusplus |
| 11432 | extern "C" void exit (int); |
| 11433 | #endif |
| 11434 | |
| 11435 | void fnord() { int i=42;} |
| 11436 | int main () |
| 11437 | { |
| 11438 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11439 | int status = $lt_dlunknown; |
| 11440 | |
| 11441 | if (self) |
| 11442 | { |
| 11443 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11444 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11445 | /* dlclose (self); */ |
| 11446 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11447 | else |
| 11448 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11449 | |
| 11450 | exit (status); |
| 11451 | } |
| 11452 | EOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11454 | (eval $ac_link) 2>&5 |
| 11455 | ac_status=$? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11457 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11458 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11459 | lt_status=$? |
| 11460 | case x$lt_status in |
| 11461 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 11462 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11463 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11464 | esac |
| 11465 | else : |
| 11466 | # compilation failed |
| 11467 | |
| 11468 | fi |
| 11469 | fi |
| 11470 | rm -fr conftest* |
| 11471 | |
| 11472 | LIBS="$save_LIBS" |
| 11473 | |
| 11474 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11475 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 11476 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11477 | fi |
| 11478 | fi |
| 11479 | |
| 11480 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 11481 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11482 | cat >>confdefs.h <<\_ACEOF |
| 11483 | #define NEED_USCORE 1 |
| 11484 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11485 | |
| 11486 | fi |
| 11487 | |
| 11488 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11489 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 11490 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
| 11491 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 11492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11493 | else |
| 11494 | # PORTME does your system automatically load deplibs for dlopen? |
| 11495 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 11496 | # For now, we just catch OSes we know something about -- in the |
| 11497 | # future, we'll try test this programmatically. |
| 11498 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11499 | case "$host_os" in |
| 11500 | aix3*|aix4.1.*|aix4.2.*) |
| 11501 | # Unknown whether this is true for these versions of AIX, but |
| 11502 | # we want this `case' here to explicitly catch those versions. |
| 11503 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11504 | ;; |
| 11505 | aix[45]*) |
| 11506 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11507 | ;; |
| 11508 | darwin*) |
| 11509 | # Assuming the user has installed a libdl from somewhere, this is true |
| 11510 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 11511 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11512 | ;; |
| 11513 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 11514 | # GNU and its variants, using gnu ld.so (Glibc) |
| 11515 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11516 | ;; |
| 11517 | hpux10*|hpux11*) |
| 11518 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11519 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11520 | interix*) |
| 11521 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11522 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11523 | irix[12345]*|irix6.[01]*) |
| 11524 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 11525 | # know how it worked for any of those versions. |
| 11526 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11527 | ;; |
| 11528 | irix*) |
| 11529 | # The case above catches anything before 6.2, and it's known that |
| 11530 | # at 6.2 and later dlopen does load deplibs. |
| 11531 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11532 | ;; |
| 11533 | netbsd*) |
| 11534 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11535 | ;; |
| 11536 | openbsd*) |
| 11537 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11538 | ;; |
| 11539 | osf[1234]*) |
| 11540 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 11541 | # it did *not* use an RPATH in a shared library to find objects the |
| 11542 | # library depends on, so we explictly say `no'. |
| 11543 | libltdl_cv_sys_dlopen_deplibs=no |
| 11544 | ;; |
| 11545 | osf5.0|osf5.0a|osf5.1) |
| 11546 | # dlopen *does* load deplibs and with the right loader patch applied |
| 11547 | # it even uses RPATH in a shared library to search for shared objects |
| 11548 | # that the library depends on, but there's no easy way to know if that |
| 11549 | # patch is installed. Since this is the case, all we can really |
| 11550 | # say is unknown -- it depends on the patch being installed. If |
| 11551 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 11552 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 11553 | ;; |
| 11554 | osf*) |
| 11555 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 11556 | # the comments above for what we know about them. |
| 11557 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 11558 | # is used to find them so we can finally say `yes'. |
| 11559 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11560 | ;; |
| 11561 | solaris*) |
| 11562 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11563 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11564 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11565 | libltdl_cv_sys_dlopen_deplibs=yes |
| 11566 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11567 | esac |
| 11568 | |
| 11569 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11570 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 11571 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11572 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 11573 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11574 | cat >>confdefs.h <<\_ACEOF |
| 11575 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 11576 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11577 | |
| 11578 | fi |
| 11579 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11580 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11581 | for ac_header in argz.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11582 | do |
| 11583 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11584 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11585 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11586 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11587 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11589 | fi |
| 11590 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11591 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11592 | echo "${ECHO_T}$ac_res" >&6; } |
| 11593 | else |
| 11594 | # Is the header compilable? |
| 11595 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11596 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11597 | cat >conftest.$ac_ext <<_ACEOF |
| 11598 | /* confdefs.h. */ |
| 11599 | _ACEOF |
| 11600 | cat confdefs.h >>conftest.$ac_ext |
| 11601 | cat >>conftest.$ac_ext <<_ACEOF |
| 11602 | /* end confdefs.h. */ |
| 11603 | $ac_includes_default |
| 11604 | #include <$ac_header> |
| 11605 | _ACEOF |
| 11606 | rm -f conftest.$ac_objext |
| 11607 | if { (ac_try="$ac_compile" |
| 11608 | case "(($ac_try" in |
| 11609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11610 | *) ac_try_echo=$ac_try;; |
| 11611 | esac |
| 11612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11613 | (eval "$ac_compile") 2>conftest.er1 |
| 11614 | ac_status=$? |
| 11615 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11616 | rm -f conftest.er1 |
| 11617 | cat conftest.err >&5 |
| 11618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11619 | (exit $ac_status); } && |
| 11620 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11621 | { (case "(($ac_try" in |
| 11622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11623 | *) ac_try_echo=$ac_try;; |
| 11624 | esac |
| 11625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11626 | (eval "$ac_try") 2>&5 |
| 11627 | ac_status=$? |
| 11628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11629 | (exit $ac_status); }; } && |
| 11630 | { ac_try='test -s conftest.$ac_objext' |
| 11631 | { (case "(($ac_try" in |
| 11632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11633 | *) ac_try_echo=$ac_try;; |
| 11634 | esac |
| 11635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11636 | (eval "$ac_try") 2>&5 |
| 11637 | ac_status=$? |
| 11638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11639 | (exit $ac_status); }; }; then |
| 11640 | ac_header_compiler=yes |
| 11641 | else |
| 11642 | echo "$as_me: failed program was:" >&5 |
| 11643 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11644 | |
| 11645 | ac_header_compiler=no |
| 11646 | fi |
| 11647 | |
| 11648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11649 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11650 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11651 | |
| 11652 | # Is the header present? |
| 11653 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11654 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11655 | cat >conftest.$ac_ext <<_ACEOF |
| 11656 | /* confdefs.h. */ |
| 11657 | _ACEOF |
| 11658 | cat confdefs.h >>conftest.$ac_ext |
| 11659 | cat >>conftest.$ac_ext <<_ACEOF |
| 11660 | /* end confdefs.h. */ |
| 11661 | #include <$ac_header> |
| 11662 | _ACEOF |
| 11663 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11664 | case "(($ac_try" in |
| 11665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11666 | *) ac_try_echo=$ac_try;; |
| 11667 | esac |
| 11668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11669 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11670 | ac_status=$? |
| 11671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11672 | rm -f conftest.er1 |
| 11673 | cat conftest.err >&5 |
| 11674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11675 | (exit $ac_status); } >/dev/null; then |
| 11676 | if test -s conftest.err; then |
| 11677 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11678 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11679 | else |
| 11680 | ac_cpp_err= |
| 11681 | fi |
| 11682 | else |
| 11683 | ac_cpp_err=yes |
| 11684 | fi |
| 11685 | if test -z "$ac_cpp_err"; then |
| 11686 | ac_header_preproc=yes |
| 11687 | else |
| 11688 | echo "$as_me: failed program was:" >&5 |
| 11689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11690 | |
| 11691 | ac_header_preproc=no |
| 11692 | fi |
| 11693 | |
| 11694 | rm -f conftest.err conftest.$ac_ext |
| 11695 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11696 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11697 | |
| 11698 | # So? What about this header? |
| 11699 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11700 | yes:no: ) |
| 11701 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11702 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11703 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11704 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11705 | ac_header_preproc=yes |
| 11706 | ;; |
| 11707 | no:yes:* ) |
| 11708 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11709 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11710 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11711 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11712 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11713 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11714 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11715 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11716 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11717 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11718 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11719 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11720 | ( cat <<\_ASBOX |
| 11721 | ## ----------------------------------- ## |
| 11722 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11723 | ## ----------------------------------- ## |
| 11724 | _ASBOX |
| 11725 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11726 | ;; |
| 11727 | esac |
| 11728 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11729 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11730 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11732 | else |
| 11733 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11734 | fi |
| 11735 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11736 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11737 | echo "${ECHO_T}$ac_res" >&6; } |
| 11738 | |
| 11739 | fi |
| 11740 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11741 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11742 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11743 | _ACEOF |
| 11744 | |
| 11745 | fi |
| 11746 | |
| 11747 | done |
| 11748 | |
| 11749 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11750 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 11751 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
| 11752 | if test "${ac_cv_type_error_t+set}" = set; then |
| 11753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11754 | else |
| 11755 | cat >conftest.$ac_ext <<_ACEOF |
| 11756 | /* confdefs.h. */ |
| 11757 | _ACEOF |
| 11758 | cat confdefs.h >>conftest.$ac_ext |
| 11759 | cat >>conftest.$ac_ext <<_ACEOF |
| 11760 | /* end confdefs.h. */ |
| 11761 | #if HAVE_ARGZ_H |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11762 | # include <argz.h> |
| 11763 | #endif |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11764 | |
| 11765 | typedef error_t ac__type_new_; |
| 11766 | int |
| 11767 | main () |
| 11768 | { |
| 11769 | if ((ac__type_new_ *) 0) |
| 11770 | return 0; |
| 11771 | if (sizeof (ac__type_new_)) |
| 11772 | return 0; |
| 11773 | ; |
| 11774 | return 0; |
| 11775 | } |
| 11776 | _ACEOF |
| 11777 | rm -f conftest.$ac_objext |
| 11778 | if { (ac_try="$ac_compile" |
| 11779 | case "(($ac_try" in |
| 11780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11781 | *) ac_try_echo=$ac_try;; |
| 11782 | esac |
| 11783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11784 | (eval "$ac_compile") 2>conftest.er1 |
| 11785 | ac_status=$? |
| 11786 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11787 | rm -f conftest.er1 |
| 11788 | cat conftest.err >&5 |
| 11789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11790 | (exit $ac_status); } && |
| 11791 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11792 | { (case "(($ac_try" in |
| 11793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11794 | *) ac_try_echo=$ac_try;; |
| 11795 | esac |
| 11796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11797 | (eval "$ac_try") 2>&5 |
| 11798 | ac_status=$? |
| 11799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11800 | (exit $ac_status); }; } && |
| 11801 | { ac_try='test -s conftest.$ac_objext' |
| 11802 | { (case "(($ac_try" in |
| 11803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11804 | *) ac_try_echo=$ac_try;; |
| 11805 | esac |
| 11806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11807 | (eval "$ac_try") 2>&5 |
| 11808 | ac_status=$? |
| 11809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11810 | (exit $ac_status); }; }; then |
| 11811 | ac_cv_type_error_t=yes |
| 11812 | else |
| 11813 | echo "$as_me: failed program was:" >&5 |
| 11814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11815 | |
| 11816 | ac_cv_type_error_t=no |
| 11817 | fi |
| 11818 | |
| 11819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11820 | fi |
| 11821 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 11822 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
| 11823 | if test $ac_cv_type_error_t = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11824 | |
| 11825 | cat >>confdefs.h <<_ACEOF |
| 11826 | #define HAVE_ERROR_T 1 |
| 11827 | _ACEOF |
| 11828 | |
| 11829 | |
| 11830 | else |
| 11831 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11832 | cat >>confdefs.h <<\_ACEOF |
| 11833 | #define error_t int |
| 11834 | _ACEOF |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11835 | |
| 11836 | fi |
| 11837 | |
| 11838 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11839 | |
| 11840 | |
| 11841 | |
| 11842 | |
| 11843 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11844 | 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] | 11845 | do |
| 11846 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11847 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11848 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11849 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11851 | else |
| 11852 | cat >conftest.$ac_ext <<_ACEOF |
| 11853 | /* confdefs.h. */ |
| 11854 | _ACEOF |
| 11855 | cat confdefs.h >>conftest.$ac_ext |
| 11856 | cat >>conftest.$ac_ext <<_ACEOF |
| 11857 | /* end confdefs.h. */ |
| 11858 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11859 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11860 | #define $ac_func innocuous_$ac_func |
| 11861 | |
| 11862 | /* System header to define __stub macros and hopefully few prototypes, |
| 11863 | which can conflict with char $ac_func (); below. |
| 11864 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11865 | <limits.h> exists even on freestanding compilers. */ |
| 11866 | |
| 11867 | #ifdef __STDC__ |
| 11868 | # include <limits.h> |
| 11869 | #else |
| 11870 | # include <assert.h> |
| 11871 | #endif |
| 11872 | |
| 11873 | #undef $ac_func |
| 11874 | |
| 11875 | /* Override any GCC internal prototype to avoid an error. |
| 11876 | Use char because int might match the return type of a GCC |
| 11877 | builtin and then its argument prototype would still apply. */ |
| 11878 | #ifdef __cplusplus |
| 11879 | extern "C" |
| 11880 | #endif |
| 11881 | char $ac_func (); |
| 11882 | /* The GNU C library defines this for functions which it implements |
| 11883 | to always fail with ENOSYS. Some functions are actually named |
| 11884 | something starting with __ and the normal name is an alias. */ |
| 11885 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11886 | choke me |
| 11887 | #endif |
| 11888 | |
| 11889 | int |
| 11890 | main () |
| 11891 | { |
| 11892 | return $ac_func (); |
| 11893 | ; |
| 11894 | return 0; |
| 11895 | } |
| 11896 | _ACEOF |
| 11897 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11898 | if { (ac_try="$ac_link" |
| 11899 | case "(($ac_try" in |
| 11900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11901 | *) ac_try_echo=$ac_try;; |
| 11902 | esac |
| 11903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11904 | (eval "$ac_link") 2>conftest.er1 |
| 11905 | ac_status=$? |
| 11906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11907 | rm -f conftest.er1 |
| 11908 | cat conftest.err >&5 |
| 11909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11910 | (exit $ac_status); } && |
| 11911 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11912 | { (case "(($ac_try" in |
| 11913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11914 | *) ac_try_echo=$ac_try;; |
| 11915 | esac |
| 11916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11917 | (eval "$ac_try") 2>&5 |
| 11918 | ac_status=$? |
| 11919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11920 | (exit $ac_status); }; } && |
| 11921 | { ac_try='test -s conftest$ac_exeext' |
| 11922 | { (case "(($ac_try" in |
| 11923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11924 | *) ac_try_echo=$ac_try;; |
| 11925 | esac |
| 11926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11927 | (eval "$ac_try") 2>&5 |
| 11928 | ac_status=$? |
| 11929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11930 | (exit $ac_status); }; }; then |
| 11931 | eval "$as_ac_var=yes" |
| 11932 | else |
| 11933 | echo "$as_me: failed program was:" >&5 |
| 11934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11935 | |
| 11936 | eval "$as_ac_var=no" |
| 11937 | fi |
| 11938 | |
| 11939 | rm -f core conftest.err conftest.$ac_objext \ |
| 11940 | conftest$ac_exeext conftest.$ac_ext |
| 11941 | fi |
| 11942 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11943 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11944 | echo "${ECHO_T}$ac_res" >&6; } |
| 11945 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11946 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11947 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11948 | _ACEOF |
| 11949 | |
| 11950 | fi |
| 11951 | done |
| 11952 | |
| 11953 | |
| 11954 | |
| 11955 | |
| 11956 | |
| 11957 | |
| 11958 | |
| 11959 | |
| 11960 | |
| 11961 | |
| 11962 | |
| 11963 | |
| 11964 | |
| 11965 | |
| 11966 | |
| 11967 | |
| 11968 | |
| 11969 | |
| 11970 | |
| 11971 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11972 | |
| 11973 | |
| 11974 | |
| 11975 | |
| 11976 | |
| 11977 | |
| 11978 | |
| 11979 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11980 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 11981 | stdio.h unistd.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 11982 | do |
| 11983 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11984 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11985 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11986 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11987 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11989 | fi |
| 11990 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11991 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11992 | echo "${ECHO_T}$ac_res" >&6; } |
| 11993 | else |
| 11994 | # Is the header compilable? |
| 11995 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11996 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11997 | cat >conftest.$ac_ext <<_ACEOF |
| 11998 | /* confdefs.h. */ |
| 11999 | _ACEOF |
| 12000 | cat confdefs.h >>conftest.$ac_ext |
| 12001 | cat >>conftest.$ac_ext <<_ACEOF |
| 12002 | /* end confdefs.h. */ |
| 12003 | $ac_includes_default |
| 12004 | #include <$ac_header> |
| 12005 | _ACEOF |
| 12006 | rm -f conftest.$ac_objext |
| 12007 | if { (ac_try="$ac_compile" |
| 12008 | case "(($ac_try" in |
| 12009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12010 | *) ac_try_echo=$ac_try;; |
| 12011 | esac |
| 12012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12013 | (eval "$ac_compile") 2>conftest.er1 |
| 12014 | ac_status=$? |
| 12015 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12016 | rm -f conftest.er1 |
| 12017 | cat conftest.err >&5 |
| 12018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12019 | (exit $ac_status); } && |
| 12020 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12021 | { (case "(($ac_try" in |
| 12022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12023 | *) ac_try_echo=$ac_try;; |
| 12024 | esac |
| 12025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12026 | (eval "$ac_try") 2>&5 |
| 12027 | ac_status=$? |
| 12028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12029 | (exit $ac_status); }; } && |
| 12030 | { ac_try='test -s conftest.$ac_objext' |
| 12031 | { (case "(($ac_try" in |
| 12032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12033 | *) ac_try_echo=$ac_try;; |
| 12034 | esac |
| 12035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12036 | (eval "$ac_try") 2>&5 |
| 12037 | ac_status=$? |
| 12038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12039 | (exit $ac_status); }; }; then |
| 12040 | ac_header_compiler=yes |
| 12041 | else |
| 12042 | echo "$as_me: failed program was:" >&5 |
| 12043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12044 | |
| 12045 | ac_header_compiler=no |
| 12046 | fi |
| 12047 | |
| 12048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12049 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12050 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12051 | |
| 12052 | # Is the header present? |
| 12053 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12054 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12055 | cat >conftest.$ac_ext <<_ACEOF |
| 12056 | /* confdefs.h. */ |
| 12057 | _ACEOF |
| 12058 | cat confdefs.h >>conftest.$ac_ext |
| 12059 | cat >>conftest.$ac_ext <<_ACEOF |
| 12060 | /* end confdefs.h. */ |
| 12061 | #include <$ac_header> |
| 12062 | _ACEOF |
| 12063 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12064 | case "(($ac_try" in |
| 12065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12066 | *) ac_try_echo=$ac_try;; |
| 12067 | esac |
| 12068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12069 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12070 | ac_status=$? |
| 12071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12072 | rm -f conftest.er1 |
| 12073 | cat conftest.err >&5 |
| 12074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12075 | (exit $ac_status); } >/dev/null; then |
| 12076 | if test -s conftest.err; then |
| 12077 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12078 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12079 | else |
| 12080 | ac_cpp_err= |
| 12081 | fi |
| 12082 | else |
| 12083 | ac_cpp_err=yes |
| 12084 | fi |
| 12085 | if test -z "$ac_cpp_err"; then |
| 12086 | ac_header_preproc=yes |
| 12087 | else |
| 12088 | echo "$as_me: failed program was:" >&5 |
| 12089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12090 | |
| 12091 | ac_header_preproc=no |
| 12092 | fi |
| 12093 | |
| 12094 | rm -f conftest.err conftest.$ac_ext |
| 12095 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12096 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12097 | |
| 12098 | # So? What about this header? |
| 12099 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12100 | yes:no: ) |
| 12101 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12102 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12103 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12104 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12105 | ac_header_preproc=yes |
| 12106 | ;; |
| 12107 | no:yes:* ) |
| 12108 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12109 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12110 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12111 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12112 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12113 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12114 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12115 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12116 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12117 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12118 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12119 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12120 | ( cat <<\_ASBOX |
| 12121 | ## ----------------------------------- ## |
| 12122 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12123 | ## ----------------------------------- ## |
| 12124 | _ASBOX |
| 12125 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12126 | ;; |
| 12127 | esac |
| 12128 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12129 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12130 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12132 | else |
| 12133 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12134 | fi |
| 12135 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12136 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12137 | echo "${ECHO_T}$ac_res" >&6; } |
| 12138 | |
| 12139 | fi |
| 12140 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12141 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12142 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12143 | _ACEOF |
| 12144 | |
| 12145 | fi |
| 12146 | |
| 12147 | done |
| 12148 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12149 | |
| 12150 | |
| 12151 | |
| 12152 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12153 | 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] | 12154 | do |
| 12155 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12156 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12157 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12158 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12159 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12161 | fi |
| 12162 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12163 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12164 | echo "${ECHO_T}$ac_res" >&6; } |
| 12165 | else |
| 12166 | # Is the header compilable? |
| 12167 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12168 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12169 | cat >conftest.$ac_ext <<_ACEOF |
| 12170 | /* confdefs.h. */ |
| 12171 | _ACEOF |
| 12172 | cat confdefs.h >>conftest.$ac_ext |
| 12173 | cat >>conftest.$ac_ext <<_ACEOF |
| 12174 | /* end confdefs.h. */ |
| 12175 | $ac_includes_default |
| 12176 | #include <$ac_header> |
| 12177 | _ACEOF |
| 12178 | rm -f conftest.$ac_objext |
| 12179 | if { (ac_try="$ac_compile" |
| 12180 | case "(($ac_try" in |
| 12181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12182 | *) ac_try_echo=$ac_try;; |
| 12183 | esac |
| 12184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12185 | (eval "$ac_compile") 2>conftest.er1 |
| 12186 | ac_status=$? |
| 12187 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12188 | rm -f conftest.er1 |
| 12189 | cat conftest.err >&5 |
| 12190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12191 | (exit $ac_status); } && |
| 12192 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12193 | { (case "(($ac_try" in |
| 12194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12195 | *) ac_try_echo=$ac_try;; |
| 12196 | esac |
| 12197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12198 | (eval "$ac_try") 2>&5 |
| 12199 | ac_status=$? |
| 12200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12201 | (exit $ac_status); }; } && |
| 12202 | { ac_try='test -s conftest.$ac_objext' |
| 12203 | { (case "(($ac_try" in |
| 12204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12205 | *) ac_try_echo=$ac_try;; |
| 12206 | esac |
| 12207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12208 | (eval "$ac_try") 2>&5 |
| 12209 | ac_status=$? |
| 12210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12211 | (exit $ac_status); }; }; then |
| 12212 | ac_header_compiler=yes |
| 12213 | else |
| 12214 | echo "$as_me: failed program was:" >&5 |
| 12215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12216 | |
| 12217 | ac_header_compiler=no |
| 12218 | fi |
| 12219 | |
| 12220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12221 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12222 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12223 | |
| 12224 | # Is the header present? |
| 12225 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12226 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12227 | cat >conftest.$ac_ext <<_ACEOF |
| 12228 | /* confdefs.h. */ |
| 12229 | _ACEOF |
| 12230 | cat confdefs.h >>conftest.$ac_ext |
| 12231 | cat >>conftest.$ac_ext <<_ACEOF |
| 12232 | /* end confdefs.h. */ |
| 12233 | #include <$ac_header> |
| 12234 | _ACEOF |
| 12235 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12236 | case "(($ac_try" in |
| 12237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12238 | *) ac_try_echo=$ac_try;; |
| 12239 | esac |
| 12240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12241 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12242 | ac_status=$? |
| 12243 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12244 | rm -f conftest.er1 |
| 12245 | cat conftest.err >&5 |
| 12246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12247 | (exit $ac_status); } >/dev/null; then |
| 12248 | if test -s conftest.err; then |
| 12249 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12250 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12251 | else |
| 12252 | ac_cpp_err= |
| 12253 | fi |
| 12254 | else |
| 12255 | ac_cpp_err=yes |
| 12256 | fi |
| 12257 | if test -z "$ac_cpp_err"; then |
| 12258 | ac_header_preproc=yes |
| 12259 | else |
| 12260 | echo "$as_me: failed program was:" >&5 |
| 12261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12262 | |
| 12263 | ac_header_preproc=no |
| 12264 | fi |
| 12265 | |
| 12266 | rm -f conftest.err conftest.$ac_ext |
| 12267 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12268 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12269 | |
| 12270 | # So? What about this header? |
| 12271 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12272 | yes:no: ) |
| 12273 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12274 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12275 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12276 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12277 | ac_header_preproc=yes |
| 12278 | ;; |
| 12279 | no:yes:* ) |
| 12280 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12281 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12282 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12283 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12284 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12285 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12286 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12287 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12288 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12289 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12290 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12291 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12292 | ( cat <<\_ASBOX |
| 12293 | ## ----------------------------------- ## |
| 12294 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12295 | ## ----------------------------------- ## |
| 12296 | _ASBOX |
| 12297 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12298 | ;; |
| 12299 | esac |
| 12300 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12301 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12302 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12304 | else |
| 12305 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12306 | fi |
| 12307 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12308 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12309 | echo "${ECHO_T}$ac_res" >&6; } |
| 12310 | |
| 12311 | fi |
| 12312 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12313 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12314 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12315 | _ACEOF |
| 12316 | |
| 12317 | fi |
| 12318 | |
| 12319 | done |
| 12320 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12321 | |
| 12322 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12323 | for ac_header in string.h strings.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12324 | do |
| 12325 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12326 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12327 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12328 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12329 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12331 | fi |
| 12332 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12333 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12334 | echo "${ECHO_T}$ac_res" >&6; } |
| 12335 | else |
| 12336 | # Is the header compilable? |
| 12337 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12338 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 12339 | cat >conftest.$ac_ext <<_ACEOF |
| 12340 | /* confdefs.h. */ |
| 12341 | _ACEOF |
| 12342 | cat confdefs.h >>conftest.$ac_ext |
| 12343 | cat >>conftest.$ac_ext <<_ACEOF |
| 12344 | /* end confdefs.h. */ |
| 12345 | $ac_includes_default |
| 12346 | #include <$ac_header> |
| 12347 | _ACEOF |
| 12348 | rm -f conftest.$ac_objext |
| 12349 | if { (ac_try="$ac_compile" |
| 12350 | case "(($ac_try" in |
| 12351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12352 | *) ac_try_echo=$ac_try;; |
| 12353 | esac |
| 12354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12355 | (eval "$ac_compile") 2>conftest.er1 |
| 12356 | ac_status=$? |
| 12357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12358 | rm -f conftest.er1 |
| 12359 | cat conftest.err >&5 |
| 12360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12361 | (exit $ac_status); } && |
| 12362 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12363 | { (case "(($ac_try" in |
| 12364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12365 | *) ac_try_echo=$ac_try;; |
| 12366 | esac |
| 12367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12368 | (eval "$ac_try") 2>&5 |
| 12369 | ac_status=$? |
| 12370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12371 | (exit $ac_status); }; } && |
| 12372 | { ac_try='test -s conftest.$ac_objext' |
| 12373 | { (case "(($ac_try" in |
| 12374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12375 | *) ac_try_echo=$ac_try;; |
| 12376 | esac |
| 12377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12378 | (eval "$ac_try") 2>&5 |
| 12379 | ac_status=$? |
| 12380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12381 | (exit $ac_status); }; }; then |
| 12382 | ac_header_compiler=yes |
| 12383 | else |
| 12384 | echo "$as_me: failed program was:" >&5 |
| 12385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12386 | |
| 12387 | ac_header_compiler=no |
| 12388 | fi |
| 12389 | |
| 12390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12391 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12392 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 12393 | |
| 12394 | # Is the header present? |
| 12395 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12396 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 12397 | cat >conftest.$ac_ext <<_ACEOF |
| 12398 | /* confdefs.h. */ |
| 12399 | _ACEOF |
| 12400 | cat confdefs.h >>conftest.$ac_ext |
| 12401 | cat >>conftest.$ac_ext <<_ACEOF |
| 12402 | /* end confdefs.h. */ |
| 12403 | #include <$ac_header> |
| 12404 | _ACEOF |
| 12405 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12406 | case "(($ac_try" in |
| 12407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12408 | *) ac_try_echo=$ac_try;; |
| 12409 | esac |
| 12410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12411 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12412 | ac_status=$? |
| 12413 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12414 | rm -f conftest.er1 |
| 12415 | cat conftest.err >&5 |
| 12416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12417 | (exit $ac_status); } >/dev/null; then |
| 12418 | if test -s conftest.err; then |
| 12419 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 12420 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 12421 | else |
| 12422 | ac_cpp_err= |
| 12423 | fi |
| 12424 | else |
| 12425 | ac_cpp_err=yes |
| 12426 | fi |
| 12427 | if test -z "$ac_cpp_err"; then |
| 12428 | ac_header_preproc=yes |
| 12429 | else |
| 12430 | echo "$as_me: failed program was:" >&5 |
| 12431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12432 | |
| 12433 | ac_header_preproc=no |
| 12434 | fi |
| 12435 | |
| 12436 | rm -f conftest.err conftest.$ac_ext |
| 12437 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12438 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 12439 | |
| 12440 | # So? What about this header? |
| 12441 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12442 | yes:no: ) |
| 12443 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12444 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12445 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12446 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12447 | ac_header_preproc=yes |
| 12448 | ;; |
| 12449 | no:yes:* ) |
| 12450 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12451 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12452 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12453 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12454 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12455 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12456 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12457 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12458 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12459 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12460 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12461 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12462 | ( cat <<\_ASBOX |
| 12463 | ## ----------------------------------- ## |
| 12464 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 12465 | ## ----------------------------------- ## |
| 12466 | _ASBOX |
| 12467 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 12468 | ;; |
| 12469 | esac |
| 12470 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12471 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12472 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12474 | else |
| 12475 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12476 | fi |
| 12477 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12478 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12479 | echo "${ECHO_T}$ac_res" >&6; } |
| 12480 | |
| 12481 | fi |
| 12482 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12483 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12484 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12485 | _ACEOF |
| 12486 | break |
| 12487 | fi |
| 12488 | |
| 12489 | done |
| 12490 | |
| 12491 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12492 | |
| 12493 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12494 | for ac_func in strchr index |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12495 | do |
| 12496 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12497 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12498 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12499 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12501 | else |
| 12502 | cat >conftest.$ac_ext <<_ACEOF |
| 12503 | /* confdefs.h. */ |
| 12504 | _ACEOF |
| 12505 | cat confdefs.h >>conftest.$ac_ext |
| 12506 | cat >>conftest.$ac_ext <<_ACEOF |
| 12507 | /* end confdefs.h. */ |
| 12508 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12509 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12510 | #define $ac_func innocuous_$ac_func |
| 12511 | |
| 12512 | /* System header to define __stub macros and hopefully few prototypes, |
| 12513 | which can conflict with char $ac_func (); below. |
| 12514 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12515 | <limits.h> exists even on freestanding compilers. */ |
| 12516 | |
| 12517 | #ifdef __STDC__ |
| 12518 | # include <limits.h> |
| 12519 | #else |
| 12520 | # include <assert.h> |
| 12521 | #endif |
| 12522 | |
| 12523 | #undef $ac_func |
| 12524 | |
| 12525 | /* Override any GCC internal prototype to avoid an error. |
| 12526 | Use char because int might match the return type of a GCC |
| 12527 | builtin and then its argument prototype would still apply. */ |
| 12528 | #ifdef __cplusplus |
| 12529 | extern "C" |
| 12530 | #endif |
| 12531 | char $ac_func (); |
| 12532 | /* The GNU C library defines this for functions which it implements |
| 12533 | to always fail with ENOSYS. Some functions are actually named |
| 12534 | something starting with __ and the normal name is an alias. */ |
| 12535 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12536 | choke me |
| 12537 | #endif |
| 12538 | |
| 12539 | int |
| 12540 | main () |
| 12541 | { |
| 12542 | return $ac_func (); |
| 12543 | ; |
| 12544 | return 0; |
| 12545 | } |
| 12546 | _ACEOF |
| 12547 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12548 | if { (ac_try="$ac_link" |
| 12549 | case "(($ac_try" in |
| 12550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12551 | *) ac_try_echo=$ac_try;; |
| 12552 | esac |
| 12553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12554 | (eval "$ac_link") 2>conftest.er1 |
| 12555 | ac_status=$? |
| 12556 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12557 | rm -f conftest.er1 |
| 12558 | cat conftest.err >&5 |
| 12559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12560 | (exit $ac_status); } && |
| 12561 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12562 | { (case "(($ac_try" in |
| 12563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12564 | *) ac_try_echo=$ac_try;; |
| 12565 | esac |
| 12566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12567 | (eval "$ac_try") 2>&5 |
| 12568 | ac_status=$? |
| 12569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12570 | (exit $ac_status); }; } && |
| 12571 | { ac_try='test -s conftest$ac_exeext' |
| 12572 | { (case "(($ac_try" in |
| 12573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12574 | *) ac_try_echo=$ac_try;; |
| 12575 | esac |
| 12576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12577 | (eval "$ac_try") 2>&5 |
| 12578 | ac_status=$? |
| 12579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12580 | (exit $ac_status); }; }; then |
| 12581 | eval "$as_ac_var=yes" |
| 12582 | else |
| 12583 | echo "$as_me: failed program was:" >&5 |
| 12584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12585 | |
| 12586 | eval "$as_ac_var=no" |
| 12587 | fi |
| 12588 | |
| 12589 | rm -f core conftest.err conftest.$ac_objext \ |
| 12590 | conftest$ac_exeext conftest.$ac_ext |
| 12591 | fi |
| 12592 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12593 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12594 | echo "${ECHO_T}$ac_res" >&6; } |
| 12595 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12596 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12597 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12598 | _ACEOF |
| 12599 | break |
| 12600 | fi |
| 12601 | done |
| 12602 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12603 | |
| 12604 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12605 | for ac_func in strrchr rindex |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12606 | do |
| 12607 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12608 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12609 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12610 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12612 | else |
| 12613 | cat >conftest.$ac_ext <<_ACEOF |
| 12614 | /* confdefs.h. */ |
| 12615 | _ACEOF |
| 12616 | cat confdefs.h >>conftest.$ac_ext |
| 12617 | cat >>conftest.$ac_ext <<_ACEOF |
| 12618 | /* end confdefs.h. */ |
| 12619 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12620 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12621 | #define $ac_func innocuous_$ac_func |
| 12622 | |
| 12623 | /* System header to define __stub macros and hopefully few prototypes, |
| 12624 | which can conflict with char $ac_func (); below. |
| 12625 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12626 | <limits.h> exists even on freestanding compilers. */ |
| 12627 | |
| 12628 | #ifdef __STDC__ |
| 12629 | # include <limits.h> |
| 12630 | #else |
| 12631 | # include <assert.h> |
| 12632 | #endif |
| 12633 | |
| 12634 | #undef $ac_func |
| 12635 | |
| 12636 | /* Override any GCC internal prototype to avoid an error. |
| 12637 | Use char because int might match the return type of a GCC |
| 12638 | builtin and then its argument prototype would still apply. */ |
| 12639 | #ifdef __cplusplus |
| 12640 | extern "C" |
| 12641 | #endif |
| 12642 | char $ac_func (); |
| 12643 | /* The GNU C library defines this for functions which it implements |
| 12644 | to always fail with ENOSYS. Some functions are actually named |
| 12645 | something starting with __ and the normal name is an alias. */ |
| 12646 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12647 | choke me |
| 12648 | #endif |
| 12649 | |
| 12650 | int |
| 12651 | main () |
| 12652 | { |
| 12653 | return $ac_func (); |
| 12654 | ; |
| 12655 | return 0; |
| 12656 | } |
| 12657 | _ACEOF |
| 12658 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12659 | if { (ac_try="$ac_link" |
| 12660 | case "(($ac_try" in |
| 12661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12662 | *) ac_try_echo=$ac_try;; |
| 12663 | esac |
| 12664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12665 | (eval "$ac_link") 2>conftest.er1 |
| 12666 | ac_status=$? |
| 12667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12668 | rm -f conftest.er1 |
| 12669 | cat conftest.err >&5 |
| 12670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12671 | (exit $ac_status); } && |
| 12672 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12673 | { (case "(($ac_try" in |
| 12674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12675 | *) ac_try_echo=$ac_try;; |
| 12676 | esac |
| 12677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12678 | (eval "$ac_try") 2>&5 |
| 12679 | ac_status=$? |
| 12680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12681 | (exit $ac_status); }; } && |
| 12682 | { ac_try='test -s conftest$ac_exeext' |
| 12683 | { (case "(($ac_try" in |
| 12684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12685 | *) ac_try_echo=$ac_try;; |
| 12686 | esac |
| 12687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12688 | (eval "$ac_try") 2>&5 |
| 12689 | ac_status=$? |
| 12690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12691 | (exit $ac_status); }; }; then |
| 12692 | eval "$as_ac_var=yes" |
| 12693 | else |
| 12694 | echo "$as_me: failed program was:" >&5 |
| 12695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12696 | |
| 12697 | eval "$as_ac_var=no" |
| 12698 | fi |
| 12699 | |
| 12700 | rm -f core conftest.err conftest.$ac_objext \ |
| 12701 | conftest$ac_exeext conftest.$ac_ext |
| 12702 | fi |
| 12703 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12704 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12705 | echo "${ECHO_T}$ac_res" >&6; } |
| 12706 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12707 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12708 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12709 | _ACEOF |
| 12710 | break |
| 12711 | fi |
| 12712 | done |
| 12713 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12714 | |
| 12715 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12716 | for ac_func in memcpy bcopy |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12717 | do |
| 12718 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12719 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12720 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12721 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12723 | else |
| 12724 | cat >conftest.$ac_ext <<_ACEOF |
| 12725 | /* confdefs.h. */ |
| 12726 | _ACEOF |
| 12727 | cat confdefs.h >>conftest.$ac_ext |
| 12728 | cat >>conftest.$ac_ext <<_ACEOF |
| 12729 | /* end confdefs.h. */ |
| 12730 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12731 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12732 | #define $ac_func innocuous_$ac_func |
| 12733 | |
| 12734 | /* System header to define __stub macros and hopefully few prototypes, |
| 12735 | which can conflict with char $ac_func (); below. |
| 12736 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12737 | <limits.h> exists even on freestanding compilers. */ |
| 12738 | |
| 12739 | #ifdef __STDC__ |
| 12740 | # include <limits.h> |
| 12741 | #else |
| 12742 | # include <assert.h> |
| 12743 | #endif |
| 12744 | |
| 12745 | #undef $ac_func |
| 12746 | |
| 12747 | /* Override any GCC internal prototype to avoid an error. |
| 12748 | Use char because int might match the return type of a GCC |
| 12749 | builtin and then its argument prototype would still apply. */ |
| 12750 | #ifdef __cplusplus |
| 12751 | extern "C" |
| 12752 | #endif |
| 12753 | char $ac_func (); |
| 12754 | /* The GNU C library defines this for functions which it implements |
| 12755 | to always fail with ENOSYS. Some functions are actually named |
| 12756 | something starting with __ and the normal name is an alias. */ |
| 12757 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12758 | choke me |
| 12759 | #endif |
| 12760 | |
| 12761 | int |
| 12762 | main () |
| 12763 | { |
| 12764 | return $ac_func (); |
| 12765 | ; |
| 12766 | return 0; |
| 12767 | } |
| 12768 | _ACEOF |
| 12769 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12770 | if { (ac_try="$ac_link" |
| 12771 | case "(($ac_try" in |
| 12772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12773 | *) ac_try_echo=$ac_try;; |
| 12774 | esac |
| 12775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12776 | (eval "$ac_link") 2>conftest.er1 |
| 12777 | ac_status=$? |
| 12778 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12779 | rm -f conftest.er1 |
| 12780 | cat conftest.err >&5 |
| 12781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12782 | (exit $ac_status); } && |
| 12783 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12784 | { (case "(($ac_try" in |
| 12785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12786 | *) ac_try_echo=$ac_try;; |
| 12787 | esac |
| 12788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12789 | (eval "$ac_try") 2>&5 |
| 12790 | ac_status=$? |
| 12791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12792 | (exit $ac_status); }; } && |
| 12793 | { ac_try='test -s conftest$ac_exeext' |
| 12794 | { (case "(($ac_try" in |
| 12795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12796 | *) ac_try_echo=$ac_try;; |
| 12797 | esac |
| 12798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12799 | (eval "$ac_try") 2>&5 |
| 12800 | ac_status=$? |
| 12801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12802 | (exit $ac_status); }; }; then |
| 12803 | eval "$as_ac_var=yes" |
| 12804 | else |
| 12805 | echo "$as_me: failed program was:" >&5 |
| 12806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12807 | |
| 12808 | eval "$as_ac_var=no" |
| 12809 | fi |
| 12810 | |
| 12811 | rm -f core conftest.err conftest.$ac_objext \ |
| 12812 | conftest$ac_exeext conftest.$ac_ext |
| 12813 | fi |
| 12814 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12815 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12816 | echo "${ECHO_T}$ac_res" >&6; } |
| 12817 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12818 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12819 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12820 | _ACEOF |
| 12821 | break |
| 12822 | fi |
| 12823 | done |
| 12824 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12825 | |
| 12826 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12827 | for ac_func in memmove strcmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12828 | do |
| 12829 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12830 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12831 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12832 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12834 | else |
| 12835 | cat >conftest.$ac_ext <<_ACEOF |
| 12836 | /* confdefs.h. */ |
| 12837 | _ACEOF |
| 12838 | cat confdefs.h >>conftest.$ac_ext |
| 12839 | cat >>conftest.$ac_ext <<_ACEOF |
| 12840 | /* end confdefs.h. */ |
| 12841 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12842 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12843 | #define $ac_func innocuous_$ac_func |
| 12844 | |
| 12845 | /* System header to define __stub macros and hopefully few prototypes, |
| 12846 | which can conflict with char $ac_func (); below. |
| 12847 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12848 | <limits.h> exists even on freestanding compilers. */ |
| 12849 | |
| 12850 | #ifdef __STDC__ |
| 12851 | # include <limits.h> |
| 12852 | #else |
| 12853 | # include <assert.h> |
| 12854 | #endif |
| 12855 | |
| 12856 | #undef $ac_func |
| 12857 | |
| 12858 | /* Override any GCC internal prototype to avoid an error. |
| 12859 | Use char because int might match the return type of a GCC |
| 12860 | builtin and then its argument prototype would still apply. */ |
| 12861 | #ifdef __cplusplus |
| 12862 | extern "C" |
| 12863 | #endif |
| 12864 | char $ac_func (); |
| 12865 | /* The GNU C library defines this for functions which it implements |
| 12866 | to always fail with ENOSYS. Some functions are actually named |
| 12867 | something starting with __ and the normal name is an alias. */ |
| 12868 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12869 | choke me |
| 12870 | #endif |
| 12871 | |
| 12872 | int |
| 12873 | main () |
| 12874 | { |
| 12875 | return $ac_func (); |
| 12876 | ; |
| 12877 | return 0; |
| 12878 | } |
| 12879 | _ACEOF |
| 12880 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12881 | if { (ac_try="$ac_link" |
| 12882 | case "(($ac_try" in |
| 12883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12884 | *) ac_try_echo=$ac_try;; |
| 12885 | esac |
| 12886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12887 | (eval "$ac_link") 2>conftest.er1 |
| 12888 | ac_status=$? |
| 12889 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12890 | rm -f conftest.er1 |
| 12891 | cat conftest.err >&5 |
| 12892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12893 | (exit $ac_status); } && |
| 12894 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12895 | { (case "(($ac_try" in |
| 12896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12897 | *) ac_try_echo=$ac_try;; |
| 12898 | esac |
| 12899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12900 | (eval "$ac_try") 2>&5 |
| 12901 | ac_status=$? |
| 12902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12903 | (exit $ac_status); }; } && |
| 12904 | { ac_try='test -s conftest$ac_exeext' |
| 12905 | { (case "(($ac_try" in |
| 12906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12907 | *) ac_try_echo=$ac_try;; |
| 12908 | esac |
| 12909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12910 | (eval "$ac_try") 2>&5 |
| 12911 | ac_status=$? |
| 12912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12913 | (exit $ac_status); }; }; then |
| 12914 | eval "$as_ac_var=yes" |
| 12915 | else |
| 12916 | echo "$as_me: failed program was:" >&5 |
| 12917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12918 | |
| 12919 | eval "$as_ac_var=no" |
| 12920 | fi |
| 12921 | |
| 12922 | rm -f core conftest.err conftest.$ac_objext \ |
| 12923 | conftest$ac_exeext conftest.$ac_ext |
| 12924 | fi |
| 12925 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12926 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12927 | echo "${ECHO_T}$ac_res" >&6; } |
| 12928 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12929 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12930 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12931 | _ACEOF |
| 12932 | |
| 12933 | fi |
| 12934 | done |
| 12935 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12936 | |
| 12937 | |
| 12938 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12939 | for ac_func in closedir opendir readdir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 12940 | do |
| 12941 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12942 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12943 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12944 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12946 | else |
| 12947 | cat >conftest.$ac_ext <<_ACEOF |
| 12948 | /* confdefs.h. */ |
| 12949 | _ACEOF |
| 12950 | cat confdefs.h >>conftest.$ac_ext |
| 12951 | cat >>conftest.$ac_ext <<_ACEOF |
| 12952 | /* end confdefs.h. */ |
| 12953 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12954 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12955 | #define $ac_func innocuous_$ac_func |
| 12956 | |
| 12957 | /* System header to define __stub macros and hopefully few prototypes, |
| 12958 | which can conflict with char $ac_func (); below. |
| 12959 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12960 | <limits.h> exists even on freestanding compilers. */ |
| 12961 | |
| 12962 | #ifdef __STDC__ |
| 12963 | # include <limits.h> |
| 12964 | #else |
| 12965 | # include <assert.h> |
| 12966 | #endif |
| 12967 | |
| 12968 | #undef $ac_func |
| 12969 | |
| 12970 | /* Override any GCC internal prototype to avoid an error. |
| 12971 | Use char because int might match the return type of a GCC |
| 12972 | builtin and then its argument prototype would still apply. */ |
| 12973 | #ifdef __cplusplus |
| 12974 | extern "C" |
| 12975 | #endif |
| 12976 | char $ac_func (); |
| 12977 | /* The GNU C library defines this for functions which it implements |
| 12978 | to always fail with ENOSYS. Some functions are actually named |
| 12979 | something starting with __ and the normal name is an alias. */ |
| 12980 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12981 | choke me |
| 12982 | #endif |
| 12983 | |
| 12984 | int |
| 12985 | main () |
| 12986 | { |
| 12987 | return $ac_func (); |
| 12988 | ; |
| 12989 | return 0; |
| 12990 | } |
| 12991 | _ACEOF |
| 12992 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12993 | if { (ac_try="$ac_link" |
| 12994 | case "(($ac_try" in |
| 12995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12996 | *) ac_try_echo=$ac_try;; |
| 12997 | esac |
| 12998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12999 | (eval "$ac_link") 2>conftest.er1 |
| 13000 | ac_status=$? |
| 13001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13002 | rm -f conftest.er1 |
| 13003 | cat conftest.err >&5 |
| 13004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13005 | (exit $ac_status); } && |
| 13006 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13007 | { (case "(($ac_try" in |
| 13008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13009 | *) ac_try_echo=$ac_try;; |
| 13010 | esac |
| 13011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13012 | (eval "$ac_try") 2>&5 |
| 13013 | ac_status=$? |
| 13014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13015 | (exit $ac_status); }; } && |
| 13016 | { ac_try='test -s conftest$ac_exeext' |
| 13017 | { (case "(($ac_try" in |
| 13018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13019 | *) ac_try_echo=$ac_try;; |
| 13020 | esac |
| 13021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13022 | (eval "$ac_try") 2>&5 |
| 13023 | ac_status=$? |
| 13024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13025 | (exit $ac_status); }; }; then |
| 13026 | eval "$as_ac_var=yes" |
| 13027 | else |
| 13028 | echo "$as_me: failed program was:" >&5 |
| 13029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13030 | |
| 13031 | eval "$as_ac_var=no" |
| 13032 | fi |
| 13033 | |
| 13034 | rm -f core conftest.err conftest.$ac_objext \ |
| 13035 | conftest$ac_exeext conftest.$ac_ext |
| 13036 | fi |
| 13037 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 13038 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13039 | echo "${ECHO_T}$ac_res" >&6; } |
| 13040 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13041 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13042 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 13043 | _ACEOF |
| 13044 | |
| 13045 | fi |
| 13046 | done |
| 13047 | |
| 13048 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 13049 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 13050 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13051 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 13052 | LLVMGXX="llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13053 | LLVMGCCCOMMAND="$LLVMGCC" |
| 13054 | LLVMGXXCOMMAND="$LLVMGXX" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13055 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 13056 | |
| 13057 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 13058 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13059 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 13060 | set dummy $LLVMGCC; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13061 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13062 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 13063 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 13064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13065 | else |
| 13066 | case $LLVMGCC in |
| 13067 | [\\/]* | ?:[\\/]*) |
| 13068 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 13069 | ;; |
| 13070 | *) |
| 13071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13072 | for as_dir in $PATH |
| 13073 | do |
| 13074 | IFS=$as_save_IFS |
| 13075 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13076 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13077 | 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] | 13078 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13079 | 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] | 13080 | break 2 |
| 13081 | fi |
| 13082 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13083 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13084 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13085 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13086 | ;; |
| 13087 | esac |
| 13088 | fi |
| 13089 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13090 | if test -n "$LLVMGCC"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13091 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 13092 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13093 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13094 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13095 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13096 | fi |
| 13097 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13098 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 13099 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 13100 | set dummy $LLVMGXX; ac_word=$2 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13101 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13102 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 13103 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 13104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13105 | else |
| 13106 | case $LLVMGXX in |
| 13107 | [\\/]* | ?:[\\/]*) |
| 13108 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 13109 | ;; |
| 13110 | *) |
| 13111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13112 | for as_dir in $PATH |
| 13113 | do |
| 13114 | IFS=$as_save_IFS |
| 13115 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13116 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13117 | 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] | 13118 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13119 | 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] | 13120 | break 2 |
| 13121 | fi |
| 13122 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13123 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13124 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13125 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13126 | ;; |
| 13127 | esac |
| 13128 | fi |
| 13129 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13130 | if test -n "$LLVMGXX"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13131 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 13132 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13133 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13134 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13135 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13136 | fi |
| 13137 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13138 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13139 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13140 | if test -z "$LLVMGCC"; then |
| 13141 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13142 | LLVMGCCCOMMAND="$LLVMGCC" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13143 | fi |
| 13144 | if test -z "$LLVMGXX"; then |
| 13145 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13146 | LLVMGXXCOMMAND="$LLVMGXX" |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 13147 | fi |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13148 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13149 | LLVMGCC=$LLVMGCC |
| 13150 | |
| 13151 | LLVMGXX=$LLVMGXX |
| 13152 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13153 | LLVMGCCCOMMAND=$LLVMGCCCOMMAND |
| 13154 | |
| 13155 | LLVMGXXCOMMAND=$LLVMGXXCOMMAND |
| 13156 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 13157 | fi |
| 13158 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 13159 | |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 13160 | # Check whether --with-llvmcc was given. |
| 13161 | if test "${with_llvmcc+set}" = set; then |
| 13162 | withval=$with_llvmcc; |
| 13163 | else |
| 13164 | with_llvmcc=check |
| 13165 | fi |
| 13166 | |
| 13167 | { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5 |
| 13168 | echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; } |
| 13169 | if test "$with_llvmcc" != "check"; then |
| 13170 | if (test "$with_llvmcc" != "llvm-gcc" && |
| 13171 | test "$with_llvmcc" != "clang" && |
| 13172 | test "$with_llvmcc" != "none"); then |
| 13173 | { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5 |
| 13174 | echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;} |
| 13175 | { (exit 1); exit 1; }; } |
| 13176 | fi |
| 13177 | WITH_LLVMCC="$with_llvmcc" |
| 13178 | elif test -n "$LLVMGCC"; then |
| 13179 | WITH_LLVMCC=llvm-gcc |
| 13180 | elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then |
| 13181 | WITH_LLVMCC=clang |
| 13182 | else |
| 13183 | WITH_LLVMCC=none |
| 13184 | fi |
| 13185 | { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5 |
| 13186 | echo "${ECHO_T}$WITH_LLVMCC" >&6; } |
| 13187 | LLVMCC_OPTION=$WITH_LLVMCC |
| 13188 | |
| 13189 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13190 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 13191 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13192 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 13193 | ICC=no |
| 13194 | IXX=no |
| 13195 | case $CC in |
| 13196 | icc*|icpc*) |
| 13197 | ICC=yes |
| 13198 | IXX=yes |
| 13199 | ;; |
| 13200 | *) |
| 13201 | ;; |
| 13202 | esac |
| 13203 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13204 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 13205 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13206 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 13207 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 13208 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13209 | fi |
| 13210 | |
| 13211 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 13212 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13213 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 13214 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 13215 | { (exit 1); exit 1; }; } |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 13216 | fi |
| 13217 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 13218 | if test "$GCC" = "yes" |
| 13219 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13220 | cat >conftest.$ac_ext <<_ACEOF |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13221 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 13222 | #error Unsupported GCC version |
| 13223 | #endif |
| 13224 | |
| 13225 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13226 | rm -f conftest.$ac_objext |
| 13227 | if { (ac_try="$ac_compile" |
| 13228 | case "(($ac_try" in |
| 13229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13230 | *) ac_try_echo=$ac_try;; |
| 13231 | esac |
| 13232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13233 | (eval "$ac_compile") 2>conftest.er1 |
| 13234 | ac_status=$? |
| 13235 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13236 | rm -f conftest.er1 |
| 13237 | cat conftest.err >&5 |
| 13238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13239 | (exit $ac_status); } && |
| 13240 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13241 | { (case "(($ac_try" in |
| 13242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13243 | *) ac_try_echo=$ac_try;; |
| 13244 | esac |
| 13245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13246 | (eval "$ac_try") 2>&5 |
| 13247 | ac_status=$? |
| 13248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13249 | (exit $ac_status); }; } && |
| 13250 | { ac_try='test -s conftest.$ac_objext' |
| 13251 | { (case "(($ac_try" in |
| 13252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13253 | *) ac_try_echo=$ac_try;; |
| 13254 | esac |
| 13255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13256 | (eval "$ac_try") 2>&5 |
| 13257 | ac_status=$? |
| 13258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13259 | (exit $ac_status); }; }; then |
| 13260 | : |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13261 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13262 | echo "$as_me: failed program was:" >&5 |
| 13263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13264 | |
| 13265 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 13266 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 13267 | { (exit 1); exit 1; }; } |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13268 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13269 | |
Chris Lattner | 399c7c7 | 2008-02-05 19:43:53 +0000 | [diff] [blame] | 13270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13271 | fi |
| 13272 | |
| 13273 | if test -z "$llvm_cv_gnu_make_command" |
| 13274 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13275 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 13276 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 13277 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13278 | fi |
| 13279 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13280 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 13281 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 13282 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13283 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 13284 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13285 | NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` |
| 13286 | |
| 13287 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` |
| 13288 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13289 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 |
| 13290 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } |
Julien Lerouge | 3a96a4d | 2009-10-26 20:00:35 +0000 | [diff] [blame] | 13291 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 13292 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13293 | |
| 13294 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 13295 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
| 13296 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 13297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13298 | else |
| 13299 | ac_check_lib_save_LIBS=$LIBS |
| 13300 | LIBS="-lm $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13301 | cat >conftest.$ac_ext <<_ACEOF |
| 13302 | /* confdefs.h. */ |
| 13303 | _ACEOF |
| 13304 | cat confdefs.h >>conftest.$ac_ext |
| 13305 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13306 | /* end confdefs.h. */ |
| 13307 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13308 | /* Override any GCC internal prototype to avoid an error. |
| 13309 | Use char because int might match the return type of a GCC |
| 13310 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13311 | #ifdef __cplusplus |
| 13312 | extern "C" |
| 13313 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13314 | char sin (); |
| 13315 | int |
| 13316 | main () |
| 13317 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13318 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13319 | ; |
| 13320 | return 0; |
| 13321 | } |
| 13322 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13323 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13324 | if { (ac_try="$ac_link" |
| 13325 | case "(($ac_try" in |
| 13326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13327 | *) ac_try_echo=$ac_try;; |
| 13328 | esac |
| 13329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13330 | (eval "$ac_link") 2>conftest.er1 |
| 13331 | ac_status=$? |
| 13332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13333 | rm -f conftest.er1 |
| 13334 | cat conftest.err >&5 |
| 13335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13336 | (exit $ac_status); } && |
| 13337 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13338 | { (case "(($ac_try" in |
| 13339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13340 | *) ac_try_echo=$ac_try;; |
| 13341 | esac |
| 13342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13343 | (eval "$ac_try") 2>&5 |
| 13344 | ac_status=$? |
| 13345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13346 | (exit $ac_status); }; } && |
| 13347 | { ac_try='test -s conftest$ac_exeext' |
| 13348 | { (case "(($ac_try" in |
| 13349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13350 | *) ac_try_echo=$ac_try;; |
| 13351 | esac |
| 13352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13353 | (eval "$ac_try") 2>&5 |
| 13354 | ac_status=$? |
| 13355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13356 | (exit $ac_status); }; }; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13357 | ac_cv_lib_m_sin=yes |
| 13358 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13359 | echo "$as_me: failed program was:" >&5 |
| 13360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13361 | |
| 13362 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13363 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13364 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13365 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13366 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13367 | LIBS=$ac_check_lib_save_LIBS |
| 13368 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13369 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 13370 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
| 13371 | if test $ac_cv_lib_m_sin = yes; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 13372 | cat >>confdefs.h <<_ACEOF |
| 13373 | #define HAVE_LIBM 1 |
| 13374 | _ACEOF |
| 13375 | |
| 13376 | LIBS="-lm $LIBS" |
| 13377 | |
| 13378 | fi |
| 13379 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 13380 | if test "$llvm_cv_os_type" = "MingW" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13381 | |
| 13382 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 13383 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
| 13384 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
| 13385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13386 | else |
| 13387 | ac_check_lib_save_LIBS=$LIBS |
| 13388 | LIBS="-limagehlp $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13389 | cat >conftest.$ac_ext <<_ACEOF |
| 13390 | /* confdefs.h. */ |
| 13391 | _ACEOF |
| 13392 | cat confdefs.h >>conftest.$ac_ext |
| 13393 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13394 | /* end confdefs.h. */ |
| 13395 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13396 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13397 | int |
| 13398 | main () |
| 13399 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13400 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13401 | ; |
| 13402 | return 0; |
| 13403 | } |
| 13404 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13405 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13406 | if { (ac_try="$ac_link" |
| 13407 | case "(($ac_try" in |
| 13408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13409 | *) ac_try_echo=$ac_try;; |
| 13410 | esac |
| 13411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13412 | (eval "$ac_link") 2>conftest.er1 |
| 13413 | ac_status=$? |
| 13414 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13415 | rm -f conftest.er1 |
| 13416 | cat conftest.err >&5 |
| 13417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13418 | (exit $ac_status); } && |
| 13419 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13420 | { (case "(($ac_try" in |
| 13421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13422 | *) ac_try_echo=$ac_try;; |
| 13423 | esac |
| 13424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13425 | (eval "$ac_try") 2>&5 |
| 13426 | ac_status=$? |
| 13427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13428 | (exit $ac_status); }; } && |
| 13429 | { ac_try='test -s conftest$ac_exeext' |
| 13430 | { (case "(($ac_try" in |
| 13431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13432 | *) ac_try_echo=$ac_try;; |
| 13433 | esac |
| 13434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13435 | (eval "$ac_try") 2>&5 |
| 13436 | ac_status=$? |
| 13437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13438 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13439 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13440 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13441 | echo "$as_me: failed program was:" >&5 |
| 13442 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13443 | |
| 13444 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13445 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13446 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13447 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13448 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13449 | LIBS=$ac_check_lib_save_LIBS |
| 13450 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13451 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 13452 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
| 13453 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13454 | cat >>confdefs.h <<_ACEOF |
| 13455 | #define HAVE_LIBIMAGEHLP 1 |
| 13456 | _ACEOF |
| 13457 | |
| 13458 | LIBS="-limagehlp $LIBS" |
| 13459 | |
| 13460 | fi |
| 13461 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13462 | |
| 13463 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 13464 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
| 13465 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
| 13466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13467 | else |
| 13468 | ac_check_lib_save_LIBS=$LIBS |
| 13469 | LIBS="-lpsapi $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13470 | cat >conftest.$ac_ext <<_ACEOF |
| 13471 | /* confdefs.h. */ |
| 13472 | _ACEOF |
| 13473 | cat confdefs.h >>conftest.$ac_ext |
| 13474 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13475 | /* end confdefs.h. */ |
| 13476 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13477 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13478 | int |
| 13479 | main () |
| 13480 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13481 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13482 | ; |
| 13483 | return 0; |
| 13484 | } |
| 13485 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13486 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13487 | if { (ac_try="$ac_link" |
| 13488 | case "(($ac_try" in |
| 13489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13490 | *) ac_try_echo=$ac_try;; |
| 13491 | esac |
| 13492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13493 | (eval "$ac_link") 2>conftest.er1 |
| 13494 | ac_status=$? |
| 13495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13496 | rm -f conftest.er1 |
| 13497 | cat conftest.err >&5 |
| 13498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13499 | (exit $ac_status); } && |
| 13500 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13501 | { (case "(($ac_try" in |
| 13502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13503 | *) ac_try_echo=$ac_try;; |
| 13504 | esac |
| 13505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13506 | (eval "$ac_try") 2>&5 |
| 13507 | ac_status=$? |
| 13508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13509 | (exit $ac_status); }; } && |
| 13510 | { ac_try='test -s conftest$ac_exeext' |
| 13511 | { (case "(($ac_try" in |
| 13512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13513 | *) ac_try_echo=$ac_try;; |
| 13514 | esac |
| 13515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13516 | (eval "$ac_try") 2>&5 |
| 13517 | ac_status=$? |
| 13518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13519 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 13520 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13521 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13522 | echo "$as_me: failed program was:" >&5 |
| 13523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13524 | |
| 13525 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13526 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13527 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13528 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13529 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13530 | LIBS=$ac_check_lib_save_LIBS |
| 13531 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13532 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 13533 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
| 13534 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 13535 | cat >>confdefs.h <<_ACEOF |
| 13536 | #define HAVE_LIBPSAPI 1 |
| 13537 | _ACEOF |
| 13538 | |
| 13539 | LIBS="-lpsapi $LIBS" |
| 13540 | |
| 13541 | fi |
| 13542 | |
| 13543 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13544 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13545 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 13546 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
| 13547 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13549 | else |
| 13550 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13551 | cat >conftest.$ac_ext <<_ACEOF |
| 13552 | /* confdefs.h. */ |
| 13553 | _ACEOF |
| 13554 | cat confdefs.h >>conftest.$ac_ext |
| 13555 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13556 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13557 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13558 | /* Override any GCC internal prototype to avoid an error. |
| 13559 | Use char because int might match the return type of a GCC |
| 13560 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13561 | #ifdef __cplusplus |
| 13562 | extern "C" |
| 13563 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13564 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13565 | int |
| 13566 | main () |
| 13567 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13568 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13569 | ; |
| 13570 | return 0; |
| 13571 | } |
| 13572 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13573 | for ac_lib in '' dl; do |
| 13574 | if test -z "$ac_lib"; then |
| 13575 | ac_res="none required" |
| 13576 | else |
| 13577 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13578 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13579 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13580 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13581 | if { (ac_try="$ac_link" |
| 13582 | case "(($ac_try" in |
| 13583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13584 | *) ac_try_echo=$ac_try;; |
| 13585 | esac |
| 13586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13587 | (eval "$ac_link") 2>conftest.er1 |
| 13588 | ac_status=$? |
| 13589 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13590 | rm -f conftest.er1 |
| 13591 | cat conftest.err >&5 |
| 13592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13593 | (exit $ac_status); } && |
| 13594 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13595 | { (case "(($ac_try" in |
| 13596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13597 | *) ac_try_echo=$ac_try;; |
| 13598 | esac |
| 13599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13600 | (eval "$ac_try") 2>&5 |
| 13601 | ac_status=$? |
| 13602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13603 | (exit $ac_status); }; } && |
| 13604 | { ac_try='test -s conftest$ac_exeext' |
| 13605 | { (case "(($ac_try" in |
| 13606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13607 | *) ac_try_echo=$ac_try;; |
| 13608 | esac |
| 13609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13610 | (eval "$ac_try") 2>&5 |
| 13611 | ac_status=$? |
| 13612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13613 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13614 | ac_cv_search_dlopen=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13615 | else |
| 13616 | echo "$as_me: failed program was:" >&5 |
| 13617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13618 | |
| 13619 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13620 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13621 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13622 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13623 | conftest$ac_exeext |
| 13624 | if test "${ac_cv_search_dlopen+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13625 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13626 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13627 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13628 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13629 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13630 | else |
| 13631 | ac_cv_search_dlopen=no |
| 13632 | fi |
| 13633 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13634 | LIBS=$ac_func_search_save_LIBS |
| 13635 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13636 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 13637 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13638 | ac_res=$ac_cv_search_dlopen |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13639 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13640 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13641 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13642 | cat >>confdefs.h <<\_ACEOF |
| 13643 | #define HAVE_DLOPEN 1 |
| 13644 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13645 | |
| 13646 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13647 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 13648 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13649 | fi |
| 13650 | |
| 13651 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13652 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13653 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
| 13654 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 13655 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13657 | else |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13658 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13659 | cat >conftest.$ac_ext <<_ACEOF |
| 13660 | /* confdefs.h. */ |
| 13661 | _ACEOF |
| 13662 | cat confdefs.h >>conftest.$ac_ext |
| 13663 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13664 | /* end confdefs.h. */ |
| 13665 | |
| 13666 | /* Override any GCC internal prototype to avoid an error. |
| 13667 | Use char because int might match the return type of a GCC |
| 13668 | builtin and then its argument prototype would still apply. */ |
| 13669 | #ifdef __cplusplus |
| 13670 | extern "C" |
| 13671 | #endif |
| 13672 | char ffi_call (); |
| 13673 | int |
| 13674 | main () |
| 13675 | { |
| 13676 | return ffi_call (); |
| 13677 | ; |
| 13678 | return 0; |
| 13679 | } |
| 13680 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13681 | for ac_lib in '' ffi; do |
| 13682 | if test -z "$ac_lib"; then |
| 13683 | ac_res="none required" |
| 13684 | else |
| 13685 | ac_res=-l$ac_lib |
| 13686 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13687 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13688 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13689 | if { (ac_try="$ac_link" |
| 13690 | case "(($ac_try" in |
| 13691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13692 | *) ac_try_echo=$ac_try;; |
| 13693 | esac |
| 13694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13695 | (eval "$ac_link") 2>conftest.er1 |
| 13696 | ac_status=$? |
| 13697 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13698 | rm -f conftest.er1 |
| 13699 | cat conftest.err >&5 |
| 13700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13701 | (exit $ac_status); } && |
| 13702 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13703 | { (case "(($ac_try" in |
| 13704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13705 | *) ac_try_echo=$ac_try;; |
| 13706 | esac |
| 13707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13708 | (eval "$ac_try") 2>&5 |
| 13709 | ac_status=$? |
| 13710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13711 | (exit $ac_status); }; } && |
| 13712 | { ac_try='test -s conftest$ac_exeext' |
| 13713 | { (case "(($ac_try" in |
| 13714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13715 | *) ac_try_echo=$ac_try;; |
| 13716 | esac |
| 13717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13718 | (eval "$ac_try") 2>&5 |
| 13719 | ac_status=$? |
| 13720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13721 | (exit $ac_status); }; }; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13722 | ac_cv_search_ffi_call=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13723 | else |
| 13724 | echo "$as_me: failed program was:" >&5 |
| 13725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13726 | |
| 13727 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13728 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13729 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13730 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13731 | conftest$ac_exeext |
| 13732 | if test "${ac_cv_search_ffi_call+set}" = set; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13733 | break |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13734 | fi |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13735 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13736 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 13737 | : |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13738 | else |
| 13739 | ac_cv_search_ffi_call=no |
| 13740 | fi |
| 13741 | rm conftest.$ac_ext |
| 13742 | LIBS=$ac_func_search_save_LIBS |
| 13743 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13744 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 13745 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13746 | ac_res=$ac_cv_search_ffi_call |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13747 | if test "$ac_res" != no; then |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13748 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13749 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13750 | cat >>confdefs.h <<\_ACEOF |
| 13751 | #define HAVE_FFI_CALL 1 |
| 13752 | _ACEOF |
Nick Lewycky | 267fddb | 2009-04-13 04:26:27 +0000 | [diff] [blame] | 13753 | |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13754 | else |
Jeffrey Yasskin | bc83d06 | 2010-02-09 23:03:44 +0000 | [diff] [blame] | 13755 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 |
| 13756 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} |
| 13757 | { (exit 1); exit 1; }; } |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13758 | fi |
| 13759 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 13760 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 13761 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13762 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 13763 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
| 13764 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13766 | else |
| 13767 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13768 | cat >conftest.$ac_ext <<_ACEOF |
| 13769 | /* confdefs.h. */ |
| 13770 | _ACEOF |
| 13771 | cat confdefs.h >>conftest.$ac_ext |
| 13772 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13773 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13774 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13775 | /* Override any GCC internal prototype to avoid an error. |
| 13776 | Use char because int might match the return type of a GCC |
| 13777 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13778 | #ifdef __cplusplus |
| 13779 | extern "C" |
| 13780 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13781 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13782 | int |
| 13783 | main () |
| 13784 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13785 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13786 | ; |
| 13787 | return 0; |
| 13788 | } |
| 13789 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13790 | for ac_lib in '' malloc; do |
| 13791 | if test -z "$ac_lib"; then |
| 13792 | ac_res="none required" |
| 13793 | else |
| 13794 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13795 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13796 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13797 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13798 | if { (ac_try="$ac_link" |
| 13799 | case "(($ac_try" in |
| 13800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13801 | *) ac_try_echo=$ac_try;; |
| 13802 | esac |
| 13803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13804 | (eval "$ac_link") 2>conftest.er1 |
| 13805 | ac_status=$? |
| 13806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13807 | rm -f conftest.er1 |
| 13808 | cat conftest.err >&5 |
| 13809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13810 | (exit $ac_status); } && |
| 13811 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13812 | { (case "(($ac_try" in |
| 13813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13814 | *) ac_try_echo=$ac_try;; |
| 13815 | esac |
| 13816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13817 | (eval "$ac_try") 2>&5 |
| 13818 | ac_status=$? |
| 13819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13820 | (exit $ac_status); }; } && |
| 13821 | { ac_try='test -s conftest$ac_exeext' |
| 13822 | { (case "(($ac_try" in |
| 13823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13824 | *) ac_try_echo=$ac_try;; |
| 13825 | esac |
| 13826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13827 | (eval "$ac_try") 2>&5 |
| 13828 | ac_status=$? |
| 13829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13830 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13831 | ac_cv_search_mallinfo=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13832 | else |
| 13833 | echo "$as_me: failed program was:" >&5 |
| 13834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13835 | |
| 13836 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13837 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13838 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13839 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13840 | conftest$ac_exeext |
| 13841 | if test "${ac_cv_search_mallinfo+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13842 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13843 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13844 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13845 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 13846 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13847 | else |
| 13848 | ac_cv_search_mallinfo=no |
| 13849 | fi |
| 13850 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13851 | LIBS=$ac_func_search_save_LIBS |
| 13852 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13853 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 13854 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13855 | ac_res=$ac_cv_search_mallinfo |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13856 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13857 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 13858 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13859 | cat >>confdefs.h <<\_ACEOF |
| 13860 | #define HAVE_MALLINFO 1 |
| 13861 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13862 | |
| 13863 | fi |
| 13864 | |
| 13865 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 13866 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13867 | |
| 13868 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 13869 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 13870 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 13871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13872 | else |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13873 | ac_check_lib_save_LIBS=$LIBS |
| 13874 | LIBS="-lpthread $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13875 | cat >conftest.$ac_ext <<_ACEOF |
| 13876 | /* confdefs.h. */ |
| 13877 | _ACEOF |
| 13878 | cat confdefs.h >>conftest.$ac_ext |
| 13879 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13880 | /* end confdefs.h. */ |
| 13881 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13882 | /* Override any GCC internal prototype to avoid an error. |
| 13883 | Use char because int might match the return type of a GCC |
| 13884 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13885 | #ifdef __cplusplus |
| 13886 | extern "C" |
| 13887 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13888 | char pthread_mutex_init (); |
| 13889 | int |
| 13890 | main () |
| 13891 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13892 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13893 | ; |
| 13894 | return 0; |
| 13895 | } |
| 13896 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13897 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13898 | if { (ac_try="$ac_link" |
| 13899 | case "(($ac_try" in |
| 13900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13901 | *) ac_try_echo=$ac_try;; |
| 13902 | esac |
| 13903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13904 | (eval "$ac_link") 2>conftest.er1 |
| 13905 | ac_status=$? |
| 13906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13907 | rm -f conftest.er1 |
| 13908 | cat conftest.err >&5 |
| 13909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13910 | (exit $ac_status); } && |
| 13911 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13912 | { (case "(($ac_try" in |
| 13913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13914 | *) ac_try_echo=$ac_try;; |
| 13915 | esac |
| 13916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13917 | (eval "$ac_try") 2>&5 |
| 13918 | ac_status=$? |
| 13919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13920 | (exit $ac_status); }; } && |
| 13921 | { ac_try='test -s conftest$ac_exeext' |
| 13922 | { (case "(($ac_try" in |
| 13923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13924 | *) ac_try_echo=$ac_try;; |
| 13925 | esac |
| 13926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13927 | (eval "$ac_try") 2>&5 |
| 13928 | ac_status=$? |
| 13929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13930 | (exit $ac_status); }; }; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13931 | ac_cv_lib_pthread_pthread_mutex_init=yes |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13932 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13933 | echo "$as_me: failed program was:" >&5 |
| 13934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13935 | |
| 13936 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13937 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13938 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 13939 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13940 | conftest$ac_exeext conftest.$ac_ext |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13941 | LIBS=$ac_check_lib_save_LIBS |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13942 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13943 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 13944 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 13945 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13946 | cat >>confdefs.h <<_ACEOF |
| 13947 | #define HAVE_LIBPTHREAD 1 |
Edward O'Callaghan | 2b7b37a | 2009-10-13 01:01:38 +0000 | [diff] [blame] | 13948 | _ACEOF |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13949 | |
Edward O'Callaghan | 5da6046 | 2009-10-14 11:12:33 +0000 | [diff] [blame] | 13950 | LIBS="-lpthread $LIBS" |
| 13951 | |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 13952 | fi |
| 13953 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13954 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 13955 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
| 13956 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 13957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13958 | else |
| 13959 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13960 | cat >conftest.$ac_ext <<_ACEOF |
| 13961 | /* confdefs.h. */ |
| 13962 | _ACEOF |
| 13963 | cat confdefs.h >>conftest.$ac_ext |
| 13964 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13965 | /* end confdefs.h. */ |
| 13966 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13967 | /* Override any GCC internal prototype to avoid an error. |
| 13968 | Use char because int might match the return type of a GCC |
| 13969 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13970 | #ifdef __cplusplus |
| 13971 | extern "C" |
| 13972 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13973 | char pthread_mutex_lock (); |
| 13974 | int |
| 13975 | main () |
| 13976 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13977 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13978 | ; |
| 13979 | return 0; |
| 13980 | } |
| 13981 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13982 | for ac_lib in '' pthread; do |
| 13983 | if test -z "$ac_lib"; then |
| 13984 | ac_res="none required" |
| 13985 | else |
| 13986 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 13987 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13988 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 13989 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13990 | if { (ac_try="$ac_link" |
| 13991 | case "(($ac_try" in |
| 13992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13993 | *) ac_try_echo=$ac_try;; |
| 13994 | esac |
| 13995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13996 | (eval "$ac_link") 2>conftest.er1 |
| 13997 | ac_status=$? |
| 13998 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13999 | rm -f conftest.er1 |
| 14000 | cat conftest.err >&5 |
| 14001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14002 | (exit $ac_status); } && |
| 14003 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14004 | { (case "(($ac_try" in |
| 14005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14006 | *) ac_try_echo=$ac_try;; |
| 14007 | esac |
| 14008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14009 | (eval "$ac_try") 2>&5 |
| 14010 | ac_status=$? |
| 14011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14012 | (exit $ac_status); }; } && |
| 14013 | { ac_try='test -s conftest$ac_exeext' |
| 14014 | { (case "(($ac_try" in |
| 14015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14016 | *) ac_try_echo=$ac_try;; |
| 14017 | esac |
| 14018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14019 | (eval "$ac_try") 2>&5 |
| 14020 | ac_status=$? |
| 14021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14022 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14023 | ac_cv_search_pthread_mutex_lock=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14024 | else |
| 14025 | echo "$as_me: failed program was:" >&5 |
| 14026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14027 | |
| 14028 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14029 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14030 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14031 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14032 | conftest$ac_exeext |
| 14033 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14034 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14035 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14036 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14037 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 14038 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14039 | else |
| 14040 | ac_cv_search_pthread_mutex_lock=no |
| 14041 | fi |
| 14042 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14043 | LIBS=$ac_func_search_save_LIBS |
| 14044 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14045 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 14046 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14047 | ac_res=$ac_cv_search_pthread_mutex_lock |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14048 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14049 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14050 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14051 | cat >>confdefs.h <<\_ACEOF |
| 14052 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 14053 | _ACEOF |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 14054 | |
| 14055 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 14056 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14057 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 14058 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 14059 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 14060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14061 | else |
| 14062 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14063 | cat >conftest.$ac_ext <<_ACEOF |
| 14064 | /* confdefs.h. */ |
| 14065 | _ACEOF |
| 14066 | cat confdefs.h >>conftest.$ac_ext |
| 14067 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14068 | /* end confdefs.h. */ |
| 14069 | |
| 14070 | /* Override any GCC internal prototype to avoid an error. |
| 14071 | Use char because int might match the return type of a GCC |
| 14072 | builtin and then its argument prototype would still apply. */ |
| 14073 | #ifdef __cplusplus |
| 14074 | extern "C" |
| 14075 | #endif |
| 14076 | char pthread_rwlock_init (); |
| 14077 | int |
| 14078 | main () |
| 14079 | { |
| 14080 | return pthread_rwlock_init (); |
| 14081 | ; |
| 14082 | return 0; |
| 14083 | } |
| 14084 | _ACEOF |
| 14085 | for ac_lib in '' pthread; do |
| 14086 | if test -z "$ac_lib"; then |
| 14087 | ac_res="none required" |
| 14088 | else |
| 14089 | ac_res=-l$ac_lib |
| 14090 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14091 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14092 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14093 | if { (ac_try="$ac_link" |
| 14094 | case "(($ac_try" in |
| 14095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14096 | *) ac_try_echo=$ac_try;; |
| 14097 | esac |
| 14098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14099 | (eval "$ac_link") 2>conftest.er1 |
| 14100 | ac_status=$? |
| 14101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14102 | rm -f conftest.er1 |
| 14103 | cat conftest.err >&5 |
| 14104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14105 | (exit $ac_status); } && |
| 14106 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14107 | { (case "(($ac_try" in |
| 14108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14109 | *) ac_try_echo=$ac_try;; |
| 14110 | esac |
| 14111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14112 | (eval "$ac_try") 2>&5 |
| 14113 | ac_status=$? |
| 14114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14115 | (exit $ac_status); }; } && |
| 14116 | { ac_try='test -s conftest$ac_exeext' |
| 14117 | { (case "(($ac_try" in |
| 14118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14119 | *) ac_try_echo=$ac_try;; |
| 14120 | esac |
| 14121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14122 | (eval "$ac_try") 2>&5 |
| 14123 | ac_status=$? |
| 14124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14125 | (exit $ac_status); }; }; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14126 | ac_cv_search_pthread_rwlock_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14127 | else |
| 14128 | echo "$as_me: failed program was:" >&5 |
| 14129 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14130 | |
| 14131 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14132 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14133 | |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14134 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14135 | conftest$ac_exeext |
| 14136 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14137 | break |
| 14138 | fi |
| 14139 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14140 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 14141 | : |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14142 | else |
| 14143 | ac_cv_search_pthread_rwlock_init=no |
| 14144 | fi |
| 14145 | rm conftest.$ac_ext |
| 14146 | LIBS=$ac_func_search_save_LIBS |
| 14147 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14148 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 14149 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14150 | ac_res=$ac_cv_search_pthread_rwlock_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14151 | if test "$ac_res" != no; then |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14152 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14153 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14154 | cat >>confdefs.h <<\_ACEOF |
| 14155 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 14156 | _ACEOF |
Owen Anderson | de8aed2 | 2009-06-16 18:20:20 +0000 | [diff] [blame] | 14157 | |
| 14158 | fi |
| 14159 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14160 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 14161 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 14162 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 14163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14164 | else |
| 14165 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14166 | cat >conftest.$ac_ext <<_ACEOF |
| 14167 | /* confdefs.h. */ |
| 14168 | _ACEOF |
| 14169 | cat confdefs.h >>conftest.$ac_ext |
| 14170 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14171 | /* end confdefs.h. */ |
| 14172 | |
| 14173 | /* Override any GCC internal prototype to avoid an error. |
| 14174 | Use char because int might match the return type of a GCC |
| 14175 | builtin and then its argument prototype would still apply. */ |
| 14176 | #ifdef __cplusplus |
| 14177 | extern "C" |
| 14178 | #endif |
| 14179 | char pthread_getspecific (); |
| 14180 | int |
| 14181 | main () |
| 14182 | { |
| 14183 | return pthread_getspecific (); |
| 14184 | ; |
| 14185 | return 0; |
| 14186 | } |
| 14187 | _ACEOF |
| 14188 | for ac_lib in '' pthread; do |
| 14189 | if test -z "$ac_lib"; then |
| 14190 | ac_res="none required" |
| 14191 | else |
| 14192 | ac_res=-l$ac_lib |
| 14193 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14194 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14195 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14196 | if { (ac_try="$ac_link" |
| 14197 | case "(($ac_try" in |
| 14198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14199 | *) ac_try_echo=$ac_try;; |
| 14200 | esac |
| 14201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14202 | (eval "$ac_link") 2>conftest.er1 |
| 14203 | ac_status=$? |
| 14204 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14205 | rm -f conftest.er1 |
| 14206 | cat conftest.err >&5 |
| 14207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14208 | (exit $ac_status); } && |
| 14209 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14210 | { (case "(($ac_try" in |
| 14211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14212 | *) ac_try_echo=$ac_try;; |
| 14213 | esac |
| 14214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14215 | (eval "$ac_try") 2>&5 |
| 14216 | ac_status=$? |
| 14217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14218 | (exit $ac_status); }; } && |
| 14219 | { ac_try='test -s conftest$ac_exeext' |
| 14220 | { (case "(($ac_try" in |
| 14221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14222 | *) ac_try_echo=$ac_try;; |
| 14223 | esac |
| 14224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14225 | (eval "$ac_try") 2>&5 |
| 14226 | ac_status=$? |
| 14227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14228 | (exit $ac_status); }; }; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14229 | ac_cv_search_pthread_getspecific=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14230 | else |
| 14231 | echo "$as_me: failed program was:" >&5 |
| 14232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14233 | |
| 14234 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14235 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14236 | |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14237 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14238 | conftest$ac_exeext |
| 14239 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14240 | break |
| 14241 | fi |
| 14242 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14243 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 14244 | : |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14245 | else |
| 14246 | ac_cv_search_pthread_getspecific=no |
| 14247 | fi |
| 14248 | rm conftest.$ac_ext |
| 14249 | LIBS=$ac_func_search_save_LIBS |
| 14250 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14251 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 14252 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14253 | ac_res=$ac_cv_search_pthread_getspecific |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14254 | if test "$ac_res" != no; then |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14255 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14256 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14257 | cat >>confdefs.h <<\_ACEOF |
| 14258 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 14259 | _ACEOF |
Owen Anderson | 27fcfe1 | 2009-06-25 23:10:26 +0000 | [diff] [blame] | 14260 | |
| 14261 | fi |
| 14262 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 14263 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 14264 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 14265 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14266 | # Check whether --with-udis86 was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14267 | if test "${with_udis86+set}" = set; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14268 | withval=$with_udis86; |
| 14269 | USE_UDIS86=1 |
| 14270 | |
| 14271 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 14272 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14273 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 14274 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14275 | |
| 14276 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 14277 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 14278 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 14279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14280 | else |
| 14281 | ac_check_lib_save_LIBS=$LIBS |
| 14282 | LIBS="-ludis86 $LIBS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14283 | cat >conftest.$ac_ext <<_ACEOF |
| 14284 | /* confdefs.h. */ |
| 14285 | _ACEOF |
| 14286 | cat confdefs.h >>conftest.$ac_ext |
| 14287 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14288 | /* end confdefs.h. */ |
| 14289 | |
| 14290 | /* Override any GCC internal prototype to avoid an error. |
| 14291 | Use char because int might match the return type of a GCC |
| 14292 | builtin and then its argument prototype would still apply. */ |
| 14293 | #ifdef __cplusplus |
| 14294 | extern "C" |
| 14295 | #endif |
| 14296 | char ud_init (); |
| 14297 | int |
| 14298 | main () |
| 14299 | { |
| 14300 | return ud_init (); |
| 14301 | ; |
| 14302 | return 0; |
| 14303 | } |
| 14304 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14305 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14306 | if { (ac_try="$ac_link" |
| 14307 | case "(($ac_try" in |
| 14308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14309 | *) ac_try_echo=$ac_try;; |
| 14310 | esac |
| 14311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14312 | (eval "$ac_link") 2>conftest.er1 |
| 14313 | ac_status=$? |
| 14314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14315 | rm -f conftest.er1 |
| 14316 | cat conftest.err >&5 |
| 14317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14318 | (exit $ac_status); } && |
| 14319 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14320 | { (case "(($ac_try" in |
| 14321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14322 | *) ac_try_echo=$ac_try;; |
| 14323 | esac |
| 14324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14325 | (eval "$ac_try") 2>&5 |
| 14326 | ac_status=$? |
| 14327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14328 | (exit $ac_status); }; } && |
| 14329 | { ac_try='test -s conftest$ac_exeext' |
| 14330 | { (case "(($ac_try" in |
| 14331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14332 | *) ac_try_echo=$ac_try;; |
| 14333 | esac |
| 14334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14335 | (eval "$ac_try") 2>&5 |
| 14336 | ac_status=$? |
| 14337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14338 | (exit $ac_status); }; }; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14339 | ac_cv_lib_udis86_ud_init=yes |
| 14340 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14341 | echo "$as_me: failed program was:" >&5 |
| 14342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14343 | |
| 14344 | ac_cv_lib_udis86_ud_init=no |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14345 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14346 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14347 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14348 | conftest$ac_exeext conftest.$ac_ext |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14349 | LIBS=$ac_check_lib_save_LIBS |
| 14350 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14351 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 14352 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 14353 | if test $ac_cv_lib_udis86_ud_init = yes; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 14354 | cat >>confdefs.h <<_ACEOF |
| 14355 | #define HAVE_LIBUDIS86 1 |
| 14356 | _ACEOF |
| 14357 | |
| 14358 | LIBS="-ludis86 $LIBS" |
| 14359 | |
| 14360 | else |
| 14361 | |
| 14362 | echo "Error! You need to have libudis86 around." |
| 14363 | exit -1 |
| 14364 | |
| 14365 | fi |
| 14366 | |
| 14367 | |
| 14368 | else |
| 14369 | USE_UDIS86=0 |
| 14370 | |
| 14371 | fi |
| 14372 | |
| 14373 | |
| 14374 | cat >>confdefs.h <<_ACEOF |
| 14375 | #define USE_UDIS86 $USE_UDIS86 |
| 14376 | _ACEOF |
| 14377 | |
| 14378 | |
| 14379 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14380 | # Check whether --with-oprofile was given. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14381 | if test "${with_oprofile+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14382 | withval=$with_oprofile; |
| 14383 | USE_OPROFILE=1 |
| 14384 | |
| 14385 | case "$withval" in |
| 14386 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14387 | no) llvm_cv_oppath= |
| 14388 | USE_OPROFILE=0 |
| 14389 | ;; |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14390 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 14391 | CPPFLAGS="-I${withval}/include";; |
| 14392 | esac |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14393 | if test -n "$llvm_cv_oppath" ; then |
| 14394 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14395 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
| 14396 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 14397 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14399 | else |
| 14400 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14401 | cat >conftest.$ac_ext <<_ACEOF |
| 14402 | /* confdefs.h. */ |
| 14403 | _ACEOF |
| 14404 | cat confdefs.h >>conftest.$ac_ext |
| 14405 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14406 | /* end confdefs.h. */ |
| 14407 | |
| 14408 | /* Override any GCC internal prototype to avoid an error. |
| 14409 | Use char because int might match the return type of a GCC |
| 14410 | builtin and then its argument prototype would still apply. */ |
| 14411 | #ifdef __cplusplus |
| 14412 | extern "C" |
| 14413 | #endif |
| 14414 | char bfd_init (); |
| 14415 | int |
| 14416 | main () |
| 14417 | { |
| 14418 | return bfd_init (); |
| 14419 | ; |
| 14420 | return 0; |
| 14421 | } |
| 14422 | _ACEOF |
| 14423 | for ac_lib in '' bfd; do |
| 14424 | if test -z "$ac_lib"; then |
| 14425 | ac_res="none required" |
| 14426 | else |
| 14427 | ac_res=-l$ac_lib |
| 14428 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14429 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14430 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14431 | if { (ac_try="$ac_link" |
| 14432 | case "(($ac_try" in |
| 14433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14434 | *) ac_try_echo=$ac_try;; |
| 14435 | esac |
| 14436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14437 | (eval "$ac_link") 2>conftest.er1 |
| 14438 | ac_status=$? |
| 14439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14440 | rm -f conftest.er1 |
| 14441 | cat conftest.err >&5 |
| 14442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14443 | (exit $ac_status); } && |
| 14444 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14445 | { (case "(($ac_try" in |
| 14446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14447 | *) ac_try_echo=$ac_try;; |
| 14448 | esac |
| 14449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14450 | (eval "$ac_try") 2>&5 |
| 14451 | ac_status=$? |
| 14452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14453 | (exit $ac_status); }; } && |
| 14454 | { ac_try='test -s conftest$ac_exeext' |
| 14455 | { (case "(($ac_try" in |
| 14456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14457 | *) ac_try_echo=$ac_try;; |
| 14458 | esac |
| 14459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14460 | (eval "$ac_try") 2>&5 |
| 14461 | ac_status=$? |
| 14462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14463 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14464 | ac_cv_search_bfd_init=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14465 | else |
| 14466 | echo "$as_me: failed program was:" >&5 |
| 14467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14468 | |
| 14469 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14470 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14471 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14472 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14473 | conftest$ac_exeext |
| 14474 | if test "${ac_cv_search_bfd_init+set}" = set; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14475 | break |
| 14476 | fi |
| 14477 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14478 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 14479 | : |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14480 | else |
| 14481 | ac_cv_search_bfd_init=no |
| 14482 | fi |
| 14483 | rm conftest.$ac_ext |
| 14484 | LIBS=$ac_func_search_save_LIBS |
| 14485 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14486 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 |
| 14487 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14488 | ac_res=$ac_cv_search_bfd_init |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14489 | if test "$ac_res" != no; then |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14490 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14491 | |
| 14492 | fi |
| 14493 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14494 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 14495 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 14496 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14498 | else |
| 14499 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14500 | cat >conftest.$ac_ext <<_ACEOF |
| 14501 | /* confdefs.h. */ |
| 14502 | _ACEOF |
| 14503 | cat confdefs.h >>conftest.$ac_ext |
| 14504 | cat >>conftest.$ac_ext <<_ACEOF |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14505 | /* end confdefs.h. */ |
| 14506 | |
| 14507 | /* Override any GCC internal prototype to avoid an error. |
| 14508 | Use char because int might match the return type of a GCC |
| 14509 | builtin and then its argument prototype would still apply. */ |
| 14510 | #ifdef __cplusplus |
| 14511 | extern "C" |
| 14512 | #endif |
| 14513 | char op_open_agent (); |
| 14514 | int |
| 14515 | main () |
| 14516 | { |
| 14517 | return op_open_agent (); |
| 14518 | ; |
| 14519 | return 0; |
| 14520 | } |
| 14521 | _ACEOF |
| 14522 | for ac_lib in '' opagent; do |
| 14523 | if test -z "$ac_lib"; then |
| 14524 | ac_res="none required" |
| 14525 | else |
| 14526 | ac_res=-l$ac_lib |
| 14527 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14528 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14529 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14530 | if { (ac_try="$ac_link" |
| 14531 | case "(($ac_try" in |
| 14532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14533 | *) ac_try_echo=$ac_try;; |
| 14534 | esac |
| 14535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14536 | (eval "$ac_link") 2>conftest.er1 |
| 14537 | ac_status=$? |
| 14538 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14539 | rm -f conftest.er1 |
| 14540 | cat conftest.err >&5 |
| 14541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14542 | (exit $ac_status); } && |
| 14543 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14544 | { (case "(($ac_try" in |
| 14545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14546 | *) ac_try_echo=$ac_try;; |
| 14547 | esac |
| 14548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14549 | (eval "$ac_try") 2>&5 |
| 14550 | ac_status=$? |
| 14551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14552 | (exit $ac_status); }; } && |
| 14553 | { ac_try='test -s conftest$ac_exeext' |
| 14554 | { (case "(($ac_try" in |
| 14555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14556 | *) ac_try_echo=$ac_try;; |
| 14557 | esac |
| 14558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14559 | (eval "$ac_try") 2>&5 |
| 14560 | ac_status=$? |
| 14561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14562 | (exit $ac_status); }; }; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14563 | ac_cv_search_op_open_agent=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14564 | else |
| 14565 | echo "$as_me: failed program was:" >&5 |
| 14566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14567 | |
| 14568 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14569 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14570 | |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14571 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14572 | conftest$ac_exeext |
| 14573 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14574 | break |
| 14575 | fi |
| 14576 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14577 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 14578 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14579 | else |
| 14580 | ac_cv_search_op_open_agent=no |
| 14581 | fi |
| 14582 | rm conftest.$ac_ext |
| 14583 | LIBS=$ac_func_search_save_LIBS |
| 14584 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14585 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 14586 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14587 | ac_res=$ac_cv_search_op_open_agent |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14588 | if test "$ac_res" != no; then |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14589 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14590 | |
| 14591 | else |
| 14592 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14593 | echo "Error! You need to have libopagent around." |
| 14594 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14595 | |
| 14596 | fi |
| 14597 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14598 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14599 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14600 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14601 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14603 | fi |
| 14604 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14605 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14606 | else |
| 14607 | # Is the header compilable? |
| 14608 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 14609 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 14610 | cat >conftest.$ac_ext <<_ACEOF |
| 14611 | /* confdefs.h. */ |
| 14612 | _ACEOF |
| 14613 | cat confdefs.h >>conftest.$ac_ext |
| 14614 | cat >>conftest.$ac_ext <<_ACEOF |
| 14615 | /* end confdefs.h. */ |
| 14616 | $ac_includes_default |
| 14617 | #include <opagent.h> |
| 14618 | _ACEOF |
| 14619 | rm -f conftest.$ac_objext |
| 14620 | if { (ac_try="$ac_compile" |
| 14621 | case "(($ac_try" in |
| 14622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14623 | *) ac_try_echo=$ac_try;; |
| 14624 | esac |
| 14625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14626 | (eval "$ac_compile") 2>conftest.er1 |
| 14627 | ac_status=$? |
| 14628 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14629 | rm -f conftest.er1 |
| 14630 | cat conftest.err >&5 |
| 14631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14632 | (exit $ac_status); } && |
| 14633 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14634 | { (case "(($ac_try" in |
| 14635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14636 | *) ac_try_echo=$ac_try;; |
| 14637 | esac |
| 14638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14639 | (eval "$ac_try") 2>&5 |
| 14640 | ac_status=$? |
| 14641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14642 | (exit $ac_status); }; } && |
| 14643 | { ac_try='test -s conftest.$ac_objext' |
| 14644 | { (case "(($ac_try" in |
| 14645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14646 | *) ac_try_echo=$ac_try;; |
| 14647 | esac |
| 14648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14649 | (eval "$ac_try") 2>&5 |
| 14650 | ac_status=$? |
| 14651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14652 | (exit $ac_status); }; }; then |
| 14653 | ac_header_compiler=yes |
| 14654 | else |
| 14655 | echo "$as_me: failed program was:" >&5 |
| 14656 | sed 's/^/| /' conftest.$ac_ext >&5 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14657 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14658 | ac_header_compiler=no |
| 14659 | fi |
| 14660 | |
| 14661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14662 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14663 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14664 | |
| 14665 | # Is the header present? |
| 14666 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 14667 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 14668 | cat >conftest.$ac_ext <<_ACEOF |
| 14669 | /* confdefs.h. */ |
| 14670 | _ACEOF |
| 14671 | cat confdefs.h >>conftest.$ac_ext |
| 14672 | cat >>conftest.$ac_ext <<_ACEOF |
| 14673 | /* end confdefs.h. */ |
| 14674 | #include <opagent.h> |
| 14675 | _ACEOF |
| 14676 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14677 | case "(($ac_try" in |
| 14678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14679 | *) ac_try_echo=$ac_try;; |
| 14680 | esac |
| 14681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14682 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14683 | ac_status=$? |
| 14684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14685 | rm -f conftest.er1 |
| 14686 | cat conftest.err >&5 |
| 14687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14688 | (exit $ac_status); } >/dev/null; then |
| 14689 | if test -s conftest.err; then |
| 14690 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14691 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14692 | else |
| 14693 | ac_cpp_err= |
| 14694 | fi |
| 14695 | else |
| 14696 | ac_cpp_err=yes |
| 14697 | fi |
| 14698 | if test -z "$ac_cpp_err"; then |
| 14699 | ac_header_preproc=yes |
| 14700 | else |
| 14701 | echo "$as_me: failed program was:" >&5 |
| 14702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14703 | |
| 14704 | ac_header_preproc=no |
| 14705 | fi |
| 14706 | |
| 14707 | rm -f conftest.err conftest.$ac_ext |
| 14708 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14709 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14710 | |
| 14711 | # So? What about this header? |
| 14712 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14713 | yes:no: ) |
| 14714 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14715 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14716 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 14717 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 14718 | ac_header_preproc=yes |
| 14719 | ;; |
| 14720 | no:yes:* ) |
| 14721 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 14722 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 14723 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 14724 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 14725 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 14726 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 14727 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14728 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14729 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 14730 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 14731 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 14732 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 14733 | ( cat <<\_ASBOX |
| 14734 | ## ----------------------------------- ## |
| 14735 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 14736 | ## ----------------------------------- ## |
| 14737 | _ASBOX |
| 14738 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14739 | ;; |
| 14740 | esac |
| 14741 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 14742 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 14743 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 14744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14745 | else |
| 14746 | ac_cv_header_opagent_h=$ac_header_preproc |
| 14747 | fi |
| 14748 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 14749 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 14750 | |
| 14751 | fi |
| 14752 | if test $ac_cv_header_opagent_h = yes; then |
| 14753 | : |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14754 | else |
| 14755 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14756 | echo "Error! You need to have opagent.h around." |
| 14757 | exit -1 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14758 | |
| 14759 | fi |
| 14760 | |
| 14761 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14762 | fi |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14763 | |
| 14764 | else |
| 14765 | |
Jeffrey Yasskin | fe897b2 | 2009-10-07 23:22:42 +0000 | [diff] [blame] | 14766 | USE_OPROFILE=0 |
Jeffrey Yasskin | a93e770 | 2009-07-10 21:09:55 +0000 | [diff] [blame] | 14767 | |
| 14768 | |
| 14769 | fi |
| 14770 | |
| 14771 | |
| 14772 | cat >>confdefs.h <<_ACEOF |
| 14773 | #define USE_OPROFILE $USE_OPROFILE |
| 14774 | _ACEOF |
| 14775 | |
| 14776 | |
| 14777 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14778 | |
| 14779 | |
| 14780 | |
| 14781 | |
| 14782 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14783 | ac_header_dirent=no |
| 14784 | 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] | 14785 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 14786 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 14787 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 14788 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14790 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14791 | cat >conftest.$ac_ext <<_ACEOF |
| 14792 | /* confdefs.h. */ |
| 14793 | _ACEOF |
| 14794 | cat confdefs.h >>conftest.$ac_ext |
| 14795 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14796 | /* end confdefs.h. */ |
| 14797 | #include <sys/types.h> |
| 14798 | #include <$ac_hdr> |
| 14799 | |
| 14800 | int |
| 14801 | main () |
| 14802 | { |
| 14803 | if ((DIR *) 0) |
| 14804 | return 0; |
| 14805 | ; |
| 14806 | return 0; |
| 14807 | } |
| 14808 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14809 | rm -f conftest.$ac_objext |
| 14810 | if { (ac_try="$ac_compile" |
| 14811 | case "(($ac_try" in |
| 14812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14813 | *) ac_try_echo=$ac_try;; |
| 14814 | esac |
| 14815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14816 | (eval "$ac_compile") 2>conftest.er1 |
| 14817 | ac_status=$? |
| 14818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14819 | rm -f conftest.er1 |
| 14820 | cat conftest.err >&5 |
| 14821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14822 | (exit $ac_status); } && |
| 14823 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14824 | { (case "(($ac_try" in |
| 14825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14826 | *) ac_try_echo=$ac_try;; |
| 14827 | esac |
| 14828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14829 | (eval "$ac_try") 2>&5 |
| 14830 | ac_status=$? |
| 14831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14832 | (exit $ac_status); }; } && |
| 14833 | { ac_try='test -s conftest.$ac_objext' |
| 14834 | { (case "(($ac_try" in |
| 14835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14836 | *) ac_try_echo=$ac_try;; |
| 14837 | esac |
| 14838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14839 | (eval "$ac_try") 2>&5 |
| 14840 | ac_status=$? |
| 14841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14842 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14843 | eval "$as_ac_Header=yes" |
| 14844 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14845 | echo "$as_me: failed program was:" >&5 |
| 14846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14847 | |
| 14848 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14849 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14850 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14852 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14853 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14854 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14855 | echo "${ECHO_T}$ac_res" >&6; } |
| 14856 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14857 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14858 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14859 | _ACEOF |
| 14860 | |
| 14861 | ac_header_dirent=$ac_hdr; break |
| 14862 | fi |
| 14863 | |
| 14864 | done |
| 14865 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 14866 | if test $ac_header_dirent = dirent.h; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14867 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14868 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14869 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14871 | else |
| 14872 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14873 | cat >conftest.$ac_ext <<_ACEOF |
| 14874 | /* confdefs.h. */ |
| 14875 | _ACEOF |
| 14876 | cat confdefs.h >>conftest.$ac_ext |
| 14877 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14878 | /* end confdefs.h. */ |
| 14879 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14880 | /* Override any GCC internal prototype to avoid an error. |
| 14881 | Use char because int might match the return type of a GCC |
| 14882 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14883 | #ifdef __cplusplus |
| 14884 | extern "C" |
| 14885 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14886 | char opendir (); |
| 14887 | int |
| 14888 | main () |
| 14889 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14890 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14891 | ; |
| 14892 | return 0; |
| 14893 | } |
| 14894 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14895 | for ac_lib in '' dir; do |
| 14896 | if test -z "$ac_lib"; then |
| 14897 | ac_res="none required" |
| 14898 | else |
| 14899 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14900 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14901 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14902 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14903 | if { (ac_try="$ac_link" |
| 14904 | case "(($ac_try" in |
| 14905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14906 | *) ac_try_echo=$ac_try;; |
| 14907 | esac |
| 14908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14909 | (eval "$ac_link") 2>conftest.er1 |
| 14910 | ac_status=$? |
| 14911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14912 | rm -f conftest.er1 |
| 14913 | cat conftest.err >&5 |
| 14914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14915 | (exit $ac_status); } && |
| 14916 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14917 | { (case "(($ac_try" in |
| 14918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14919 | *) ac_try_echo=$ac_try;; |
| 14920 | esac |
| 14921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14922 | (eval "$ac_try") 2>&5 |
| 14923 | ac_status=$? |
| 14924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14925 | (exit $ac_status); }; } && |
| 14926 | { ac_try='test -s conftest$ac_exeext' |
| 14927 | { (case "(($ac_try" in |
| 14928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14929 | *) ac_try_echo=$ac_try;; |
| 14930 | esac |
| 14931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14932 | (eval "$ac_try") 2>&5 |
| 14933 | ac_status=$? |
| 14934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14935 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14936 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14937 | else |
| 14938 | echo "$as_me: failed program was:" >&5 |
| 14939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14940 | |
| 14941 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14942 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14943 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 14944 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14945 | conftest$ac_exeext |
| 14946 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14947 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14948 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14949 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14950 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14951 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14952 | else |
| 14953 | ac_cv_search_opendir=no |
| 14954 | fi |
| 14955 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14956 | LIBS=$ac_func_search_save_LIBS |
| 14957 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14958 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 14959 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14960 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14961 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14962 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14963 | |
| 14964 | fi |
| 14965 | |
| 14966 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14967 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 14968 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 14969 | if test "${ac_cv_search_opendir+set}" = set; then |
| 14970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14971 | else |
| 14972 | ac_func_search_save_LIBS=$LIBS |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 14973 | cat >conftest.$ac_ext <<_ACEOF |
| 14974 | /* confdefs.h. */ |
| 14975 | _ACEOF |
| 14976 | cat confdefs.h >>conftest.$ac_ext |
| 14977 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14978 | /* end confdefs.h. */ |
| 14979 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14980 | /* Override any GCC internal prototype to avoid an error. |
| 14981 | Use char because int might match the return type of a GCC |
| 14982 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14983 | #ifdef __cplusplus |
| 14984 | extern "C" |
| 14985 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14986 | char opendir (); |
| 14987 | int |
| 14988 | main () |
| 14989 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14990 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 14991 | ; |
| 14992 | return 0; |
| 14993 | } |
| 14994 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14995 | for ac_lib in '' x; do |
| 14996 | if test -z "$ac_lib"; then |
| 14997 | ac_res="none required" |
| 14998 | else |
| 14999 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15000 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15001 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15002 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15003 | if { (ac_try="$ac_link" |
| 15004 | case "(($ac_try" in |
| 15005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15006 | *) ac_try_echo=$ac_try;; |
| 15007 | esac |
| 15008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15009 | (eval "$ac_link") 2>conftest.er1 |
| 15010 | ac_status=$? |
| 15011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15012 | rm -f conftest.er1 |
| 15013 | cat conftest.err >&5 |
| 15014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15015 | (exit $ac_status); } && |
| 15016 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15017 | { (case "(($ac_try" in |
| 15018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15019 | *) ac_try_echo=$ac_try;; |
| 15020 | esac |
| 15021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15022 | (eval "$ac_try") 2>&5 |
| 15023 | ac_status=$? |
| 15024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15025 | (exit $ac_status); }; } && |
| 15026 | { ac_try='test -s conftest$ac_exeext' |
| 15027 | { (case "(($ac_try" in |
| 15028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15029 | *) ac_try_echo=$ac_try;; |
| 15030 | esac |
| 15031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15032 | (eval "$ac_try") 2>&5 |
| 15033 | ac_status=$? |
| 15034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15035 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15036 | ac_cv_search_opendir=$ac_res |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15037 | else |
| 15038 | echo "$as_me: failed program was:" >&5 |
| 15039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15040 | |
| 15041 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15042 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15043 | |
Bill Wendling | ebcceee | 2009-04-18 11:20:33 +0000 | [diff] [blame] | 15044 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15045 | conftest$ac_exeext |
| 15046 | if test "${ac_cv_search_opendir+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15047 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15048 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15049 | done |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15050 | if test "${ac_cv_search_opendir+set}" = set; then |
| 15051 | : |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15052 | else |
| 15053 | ac_cv_search_opendir=no |
| 15054 | fi |
| 15055 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15056 | LIBS=$ac_func_search_save_LIBS |
| 15057 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15058 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 15059 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15060 | ac_res=$ac_cv_search_opendir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15061 | if test "$ac_res" != no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15062 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15063 | |
| 15064 | fi |
| 15065 | |
| 15066 | fi |
| 15067 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15068 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 15069 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
| 15070 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 15071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15072 | else |
| 15073 | ac_ext=c |
| 15074 | ac_cpp='$CPP $CPPFLAGS' |
| 15075 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15076 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15077 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15078 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15079 | cat >conftest.$ac_ext <<_ACEOF |
| 15080 | /* confdefs.h. */ |
| 15081 | _ACEOF |
| 15082 | cat confdefs.h >>conftest.$ac_ext |
| 15083 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15084 | /* end confdefs.h. */ |
| 15085 | #include <sys/mman.h> |
| 15086 | #include <unistd.h> |
| 15087 | #include <fcntl.h> |
| 15088 | int |
| 15089 | main () |
| 15090 | { |
| 15091 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 15092 | ; |
| 15093 | return 0; |
| 15094 | } |
| 15095 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15096 | rm -f conftest.$ac_objext |
| 15097 | if { (ac_try="$ac_compile" |
| 15098 | case "(($ac_try" in |
| 15099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15100 | *) ac_try_echo=$ac_try;; |
| 15101 | esac |
| 15102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15103 | (eval "$ac_compile") 2>conftest.er1 |
| 15104 | ac_status=$? |
| 15105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15106 | rm -f conftest.er1 |
| 15107 | cat conftest.err >&5 |
| 15108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15109 | (exit $ac_status); } && |
| 15110 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15111 | { (case "(($ac_try" in |
| 15112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15113 | *) ac_try_echo=$ac_try;; |
| 15114 | esac |
| 15115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15116 | (eval "$ac_try") 2>&5 |
| 15117 | ac_status=$? |
| 15118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15119 | (exit $ac_status); }; } && |
| 15120 | { ac_try='test -s conftest.$ac_objext' |
| 15121 | { (case "(($ac_try" in |
| 15122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15123 | *) ac_try_echo=$ac_try;; |
| 15124 | esac |
| 15125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15126 | (eval "$ac_try") 2>&5 |
| 15127 | ac_status=$? |
| 15128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15129 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15130 | ac_cv_header_mmap_anon=yes |
| 15131 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15132 | echo "$as_me: failed program was:" >&5 |
| 15133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15134 | |
| 15135 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15136 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15137 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15139 | ac_ext=c |
| 15140 | ac_cpp='$CPP $CPPFLAGS' |
| 15141 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15142 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15143 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15144 | |
| 15145 | |
| 15146 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15147 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 15148 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15149 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 15150 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15151 | cat >>confdefs.h <<\_ACEOF |
| 15152 | #define HAVE_MMAP_ANONYMOUS 1 |
| 15153 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15154 | |
| 15155 | fi |
| 15156 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15157 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 15158 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
| 15159 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 15160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15161 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15162 | cat >conftest.$ac_ext <<_ACEOF |
| 15163 | /* confdefs.h. */ |
| 15164 | _ACEOF |
| 15165 | cat confdefs.h >>conftest.$ac_ext |
| 15166 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15167 | /* end confdefs.h. */ |
| 15168 | #include <sys/types.h> |
| 15169 | #include <sys/stat.h> |
| 15170 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15171 | #if defined S_ISBLK && defined S_IFDIR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15172 | # if S_ISBLK (S_IFDIR) |
| 15173 | You lose. |
| 15174 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15175 | #endif |
| 15176 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15177 | #if defined S_ISBLK && defined S_IFCHR |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15178 | # if S_ISBLK (S_IFCHR) |
| 15179 | You lose. |
| 15180 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15181 | #endif |
| 15182 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15183 | #if defined S_ISLNK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15184 | # if S_ISLNK (S_IFREG) |
| 15185 | You lose. |
| 15186 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15187 | #endif |
| 15188 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15189 | #if defined S_ISSOCK && defined S_IFREG |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15190 | # if S_ISSOCK (S_IFREG) |
| 15191 | You lose. |
| 15192 | # endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15193 | #endif |
| 15194 | |
| 15195 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15196 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15197 | $EGREP "You lose" >/dev/null 2>&1; then |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 15198 | ac_cv_header_stat_broken=yes |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15199 | else |
| 15200 | ac_cv_header_stat_broken=no |
Mikhail Glushenkov | e850146 | 2009-04-18 09:59:26 +0000 | [diff] [blame] | 15201 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15202 | rm -f conftest* |
| 15203 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15204 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15205 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 15206 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15207 | if test $ac_cv_header_stat_broken = yes; then |
| 15208 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15209 | cat >>confdefs.h <<\_ACEOF |
| 15210 | #define STAT_MACROS_BROKEN 1 |
| 15211 | _ACEOF |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15212 | |
| 15213 | fi |
| 15214 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15215 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 15216 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 15217 | if test "${ac_cv_header_stdc+set}" = set; then |
| 15218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15219 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15220 | cat >conftest.$ac_ext <<_ACEOF |
| 15221 | /* confdefs.h. */ |
| 15222 | _ACEOF |
| 15223 | cat confdefs.h >>conftest.$ac_ext |
| 15224 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15225 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15226 | #include <stdlib.h> |
| 15227 | #include <stdarg.h> |
| 15228 | #include <string.h> |
| 15229 | #include <float.h> |
| 15230 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15231 | int |
| 15232 | main () |
| 15233 | { |
| 15234 | |
| 15235 | ; |
| 15236 | return 0; |
| 15237 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15238 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15239 | rm -f conftest.$ac_objext |
| 15240 | if { (ac_try="$ac_compile" |
| 15241 | case "(($ac_try" in |
| 15242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15243 | *) ac_try_echo=$ac_try;; |
| 15244 | esac |
| 15245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15246 | (eval "$ac_compile") 2>conftest.er1 |
| 15247 | ac_status=$? |
| 15248 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15249 | rm -f conftest.er1 |
| 15250 | cat conftest.err >&5 |
| 15251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15252 | (exit $ac_status); } && |
| 15253 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15254 | { (case "(($ac_try" in |
| 15255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15256 | *) ac_try_echo=$ac_try;; |
| 15257 | esac |
| 15258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15259 | (eval "$ac_try") 2>&5 |
| 15260 | ac_status=$? |
| 15261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15262 | (exit $ac_status); }; } && |
| 15263 | { ac_try='test -s conftest.$ac_objext' |
| 15264 | { (case "(($ac_try" in |
| 15265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15266 | *) ac_try_echo=$ac_try;; |
| 15267 | esac |
| 15268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15269 | (eval "$ac_try") 2>&5 |
| 15270 | ac_status=$? |
| 15271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15272 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15273 | ac_cv_header_stdc=yes |
| 15274 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15275 | echo "$as_me: failed program was:" >&5 |
| 15276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15277 | |
| 15278 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15279 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15280 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15282 | |
| 15283 | if test $ac_cv_header_stdc = yes; then |
| 15284 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15285 | cat >conftest.$ac_ext <<_ACEOF |
| 15286 | /* confdefs.h. */ |
| 15287 | _ACEOF |
| 15288 | cat confdefs.h >>conftest.$ac_ext |
| 15289 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15290 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15291 | #include <string.h> |
| 15292 | |
| 15293 | _ACEOF |
| 15294 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15295 | $EGREP "memchr" >/dev/null 2>&1; then |
| 15296 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15297 | else |
| 15298 | ac_cv_header_stdc=no |
| 15299 | fi |
| 15300 | rm -f conftest* |
| 15301 | |
| 15302 | fi |
| 15303 | |
| 15304 | if test $ac_cv_header_stdc = yes; then |
| 15305 | # 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] | 15306 | cat >conftest.$ac_ext <<_ACEOF |
| 15307 | /* confdefs.h. */ |
| 15308 | _ACEOF |
| 15309 | cat confdefs.h >>conftest.$ac_ext |
| 15310 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15311 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15312 | #include <stdlib.h> |
| 15313 | |
| 15314 | _ACEOF |
| 15315 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15316 | $EGREP "free" >/dev/null 2>&1; then |
| 15317 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15318 | else |
| 15319 | ac_cv_header_stdc=no |
| 15320 | fi |
| 15321 | rm -f conftest* |
| 15322 | |
| 15323 | fi |
| 15324 | |
| 15325 | if test $ac_cv_header_stdc = yes; then |
| 15326 | # /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] | 15327 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15328 | : |
| 15329 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15330 | cat >conftest.$ac_ext <<_ACEOF |
| 15331 | /* confdefs.h. */ |
| 15332 | _ACEOF |
| 15333 | cat confdefs.h >>conftest.$ac_ext |
| 15334 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15335 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15336 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15337 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15338 | #if ((' ' & 0x0FF) == 0x020) |
| 15339 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 15340 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 15341 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15342 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15343 | (('a' <= (c) && (c) <= 'i') \ |
| 15344 | || ('j' <= (c) && (c) <= 'r') \ |
| 15345 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15346 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 15347 | #endif |
| 15348 | |
| 15349 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 15350 | int |
| 15351 | main () |
| 15352 | { |
| 15353 | int i; |
| 15354 | for (i = 0; i < 256; i++) |
| 15355 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15356 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15357 | return 2; |
| 15358 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15359 | } |
| 15360 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15361 | rm -f conftest$ac_exeext |
| 15362 | if { (ac_try="$ac_link" |
| 15363 | case "(($ac_try" in |
| 15364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15365 | *) ac_try_echo=$ac_try;; |
| 15366 | esac |
| 15367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15368 | (eval "$ac_link") 2>&5 |
| 15369 | ac_status=$? |
| 15370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15371 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 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_try") 2>&5 |
| 15378 | ac_status=$? |
| 15379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15380 | (exit $ac_status); }; }; then |
| 15381 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15382 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15383 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15384 | echo "$as_me: failed program was:" >&5 |
| 15385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15386 | |
| 15387 | ( exit $ac_status ) |
| 15388 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15389 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15390 | 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] | 15391 | fi |
| 15392 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15393 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15394 | fi |
| 15395 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15396 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 15397 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15398 | if test $ac_cv_header_stdc = yes; then |
| 15399 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15400 | cat >>confdefs.h <<\_ACEOF |
| 15401 | #define STDC_HEADERS 1 |
| 15402 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15403 | |
| 15404 | fi |
| 15405 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15406 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 15407 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
| 15408 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 15409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15410 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15411 | cat >conftest.$ac_ext <<_ACEOF |
| 15412 | /* confdefs.h. */ |
| 15413 | _ACEOF |
| 15414 | cat confdefs.h >>conftest.$ac_ext |
| 15415 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15416 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15417 | #include <sys/types.h> |
| 15418 | #include <sys/wait.h> |
| 15419 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15420 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15421 | #endif |
| 15422 | #ifndef WIFEXITED |
| 15423 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 15424 | #endif |
| 15425 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15426 | int |
| 15427 | main () |
| 15428 | { |
| 15429 | int s; |
| 15430 | wait (&s); |
| 15431 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 15432 | ; |
| 15433 | return 0; |
| 15434 | } |
| 15435 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15436 | rm -f conftest.$ac_objext |
| 15437 | if { (ac_try="$ac_compile" |
| 15438 | case "(($ac_try" in |
| 15439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15440 | *) ac_try_echo=$ac_try;; |
| 15441 | esac |
| 15442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15443 | (eval "$ac_compile") 2>conftest.er1 |
| 15444 | ac_status=$? |
| 15445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15446 | rm -f conftest.er1 |
| 15447 | cat conftest.err >&5 |
| 15448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15449 | (exit $ac_status); } && |
| 15450 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15451 | { (case "(($ac_try" in |
| 15452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15453 | *) ac_try_echo=$ac_try;; |
| 15454 | esac |
| 15455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15456 | (eval "$ac_try") 2>&5 |
| 15457 | ac_status=$? |
| 15458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15459 | (exit $ac_status); }; } && |
| 15460 | { ac_try='test -s conftest.$ac_objext' |
| 15461 | { (case "(($ac_try" in |
| 15462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15463 | *) ac_try_echo=$ac_try;; |
| 15464 | esac |
| 15465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15466 | (eval "$ac_try") 2>&5 |
| 15467 | ac_status=$? |
| 15468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15469 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15470 | ac_cv_header_sys_wait_h=yes |
| 15471 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15472 | echo "$as_me: failed program was:" >&5 |
| 15473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15474 | |
| 15475 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15476 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15477 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15479 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15480 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 15481 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15482 | if test $ac_cv_header_sys_wait_h = yes; then |
| 15483 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15484 | cat >>confdefs.h <<\_ACEOF |
| 15485 | #define HAVE_SYS_WAIT_H 1 |
| 15486 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15487 | |
| 15488 | fi |
| 15489 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15490 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15491 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
| 15492 | if test "${ac_cv_header_time+set}" = set; then |
| 15493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15494 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15495 | cat >conftest.$ac_ext <<_ACEOF |
| 15496 | /* confdefs.h. */ |
| 15497 | _ACEOF |
| 15498 | cat confdefs.h >>conftest.$ac_ext |
| 15499 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15500 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15501 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15502 | #include <sys/time.h> |
| 15503 | #include <time.h> |
| 15504 | |
| 15505 | int |
| 15506 | main () |
| 15507 | { |
| 15508 | if ((struct tm *) 0) |
| 15509 | return 0; |
| 15510 | ; |
| 15511 | return 0; |
| 15512 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15513 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15514 | rm -f conftest.$ac_objext |
| 15515 | if { (ac_try="$ac_compile" |
| 15516 | case "(($ac_try" in |
| 15517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15518 | *) ac_try_echo=$ac_try;; |
| 15519 | esac |
| 15520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15521 | (eval "$ac_compile") 2>conftest.er1 |
| 15522 | ac_status=$? |
| 15523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15524 | rm -f conftest.er1 |
| 15525 | cat conftest.err >&5 |
| 15526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15527 | (exit $ac_status); } && |
| 15528 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15529 | { (case "(($ac_try" in |
| 15530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15531 | *) ac_try_echo=$ac_try;; |
| 15532 | esac |
| 15533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15534 | (eval "$ac_try") 2>&5 |
| 15535 | ac_status=$? |
| 15536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15537 | (exit $ac_status); }; } && |
| 15538 | { ac_try='test -s conftest.$ac_objext' |
| 15539 | { (case "(($ac_try" in |
| 15540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15541 | *) ac_try_echo=$ac_try;; |
| 15542 | esac |
| 15543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15544 | (eval "$ac_try") 2>&5 |
| 15545 | ac_status=$? |
| 15546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15547 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15548 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15549 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15550 | echo "$as_me: failed program was:" >&5 |
| 15551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15552 | |
| 15553 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15554 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15555 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15557 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15558 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15559 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15560 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15561 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15562 | cat >>confdefs.h <<\_ACEOF |
| 15563 | #define TIME_WITH_SYS_TIME 1 |
| 15564 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15565 | |
| 15566 | fi |
| 15567 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15568 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15569 | |
| 15570 | |
| 15571 | |
| 15572 | |
| 15573 | |
| 15574 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15575 | 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] | 15576 | do |
| 15577 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15578 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15579 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15580 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15581 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15583 | fi |
| 15584 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15585 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15586 | echo "${ECHO_T}$ac_res" >&6; } |
| 15587 | else |
| 15588 | # Is the header compilable? |
| 15589 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15590 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15591 | cat >conftest.$ac_ext <<_ACEOF |
| 15592 | /* confdefs.h. */ |
| 15593 | _ACEOF |
| 15594 | cat confdefs.h >>conftest.$ac_ext |
| 15595 | cat >>conftest.$ac_ext <<_ACEOF |
| 15596 | /* end confdefs.h. */ |
| 15597 | $ac_includes_default |
| 15598 | #include <$ac_header> |
| 15599 | _ACEOF |
| 15600 | rm -f conftest.$ac_objext |
| 15601 | if { (ac_try="$ac_compile" |
| 15602 | case "(($ac_try" in |
| 15603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15604 | *) ac_try_echo=$ac_try;; |
| 15605 | esac |
| 15606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15607 | (eval "$ac_compile") 2>conftest.er1 |
| 15608 | ac_status=$? |
| 15609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15610 | rm -f conftest.er1 |
| 15611 | cat conftest.err >&5 |
| 15612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15613 | (exit $ac_status); } && |
| 15614 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15615 | { (case "(($ac_try" in |
| 15616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15617 | *) ac_try_echo=$ac_try;; |
| 15618 | esac |
| 15619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15620 | (eval "$ac_try") 2>&5 |
| 15621 | ac_status=$? |
| 15622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15623 | (exit $ac_status); }; } && |
| 15624 | { ac_try='test -s conftest.$ac_objext' |
| 15625 | { (case "(($ac_try" in |
| 15626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15627 | *) ac_try_echo=$ac_try;; |
| 15628 | esac |
| 15629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15630 | (eval "$ac_try") 2>&5 |
| 15631 | ac_status=$? |
| 15632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15633 | (exit $ac_status); }; }; then |
| 15634 | ac_header_compiler=yes |
| 15635 | else |
| 15636 | echo "$as_me: failed program was:" >&5 |
| 15637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15638 | |
| 15639 | ac_header_compiler=no |
| 15640 | fi |
| 15641 | |
| 15642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15643 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15644 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15645 | |
| 15646 | # Is the header present? |
| 15647 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15648 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15649 | cat >conftest.$ac_ext <<_ACEOF |
| 15650 | /* confdefs.h. */ |
| 15651 | _ACEOF |
| 15652 | cat confdefs.h >>conftest.$ac_ext |
| 15653 | cat >>conftest.$ac_ext <<_ACEOF |
| 15654 | /* end confdefs.h. */ |
| 15655 | #include <$ac_header> |
| 15656 | _ACEOF |
| 15657 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15658 | case "(($ac_try" in |
| 15659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15660 | *) ac_try_echo=$ac_try;; |
| 15661 | esac |
| 15662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15663 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15664 | ac_status=$? |
| 15665 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15666 | rm -f conftest.er1 |
| 15667 | cat conftest.err >&5 |
| 15668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15669 | (exit $ac_status); } >/dev/null; then |
| 15670 | if test -s conftest.err; then |
| 15671 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15672 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15673 | else |
| 15674 | ac_cpp_err= |
| 15675 | fi |
| 15676 | else |
| 15677 | ac_cpp_err=yes |
| 15678 | fi |
| 15679 | if test -z "$ac_cpp_err"; then |
| 15680 | ac_header_preproc=yes |
| 15681 | else |
| 15682 | echo "$as_me: failed program was:" >&5 |
| 15683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15684 | |
| 15685 | ac_header_preproc=no |
| 15686 | fi |
| 15687 | |
| 15688 | rm -f conftest.err conftest.$ac_ext |
| 15689 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15690 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15691 | |
| 15692 | # So? What about this header? |
| 15693 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15694 | yes:no: ) |
| 15695 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15696 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15697 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15698 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15699 | ac_header_preproc=yes |
| 15700 | ;; |
| 15701 | no:yes:* ) |
| 15702 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15703 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15704 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15705 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15706 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15707 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15708 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15709 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15710 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15711 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15712 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15713 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15714 | ( cat <<\_ASBOX |
| 15715 | ## ----------------------------------- ## |
| 15716 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15717 | ## ----------------------------------- ## |
| 15718 | _ASBOX |
| 15719 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15720 | ;; |
| 15721 | esac |
| 15722 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15723 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15724 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15726 | else |
| 15727 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15728 | fi |
| 15729 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15730 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15731 | echo "${ECHO_T}$ac_res" >&6; } |
| 15732 | |
| 15733 | fi |
| 15734 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15735 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15736 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 15737 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15738 | |
| 15739 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15740 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15741 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 15742 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15743 | |
| 15744 | |
| 15745 | |
| 15746 | |
| 15747 | |
| 15748 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15749 | 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] | 15750 | do |
| 15751 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15752 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15753 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15754 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15755 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15757 | fi |
| 15758 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15759 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15760 | echo "${ECHO_T}$ac_res" >&6; } |
| 15761 | else |
| 15762 | # Is the header compilable? |
| 15763 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15764 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15765 | cat >conftest.$ac_ext <<_ACEOF |
| 15766 | /* confdefs.h. */ |
| 15767 | _ACEOF |
| 15768 | cat confdefs.h >>conftest.$ac_ext |
| 15769 | cat >>conftest.$ac_ext <<_ACEOF |
| 15770 | /* end confdefs.h. */ |
| 15771 | $ac_includes_default |
| 15772 | #include <$ac_header> |
| 15773 | _ACEOF |
| 15774 | rm -f conftest.$ac_objext |
| 15775 | if { (ac_try="$ac_compile" |
| 15776 | case "(($ac_try" in |
| 15777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15778 | *) ac_try_echo=$ac_try;; |
| 15779 | esac |
| 15780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15781 | (eval "$ac_compile") 2>conftest.er1 |
| 15782 | ac_status=$? |
| 15783 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15784 | rm -f conftest.er1 |
| 15785 | cat conftest.err >&5 |
| 15786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15787 | (exit $ac_status); } && |
| 15788 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15789 | { (case "(($ac_try" in |
| 15790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15791 | *) ac_try_echo=$ac_try;; |
| 15792 | esac |
| 15793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15794 | (eval "$ac_try") 2>&5 |
| 15795 | ac_status=$? |
| 15796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15797 | (exit $ac_status); }; } && |
| 15798 | { ac_try='test -s conftest.$ac_objext' |
| 15799 | { (case "(($ac_try" in |
| 15800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15801 | *) ac_try_echo=$ac_try;; |
| 15802 | esac |
| 15803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15804 | (eval "$ac_try") 2>&5 |
| 15805 | ac_status=$? |
| 15806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15807 | (exit $ac_status); }; }; then |
| 15808 | ac_header_compiler=yes |
| 15809 | else |
| 15810 | echo "$as_me: failed program was:" >&5 |
| 15811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15812 | |
| 15813 | ac_header_compiler=no |
| 15814 | fi |
| 15815 | |
| 15816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15817 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15818 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15819 | |
| 15820 | # Is the header present? |
| 15821 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15822 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15823 | cat >conftest.$ac_ext <<_ACEOF |
| 15824 | /* confdefs.h. */ |
| 15825 | _ACEOF |
| 15826 | cat confdefs.h >>conftest.$ac_ext |
| 15827 | cat >>conftest.$ac_ext <<_ACEOF |
| 15828 | /* end confdefs.h. */ |
| 15829 | #include <$ac_header> |
| 15830 | _ACEOF |
| 15831 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15832 | case "(($ac_try" in |
| 15833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15834 | *) ac_try_echo=$ac_try;; |
| 15835 | esac |
| 15836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15837 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15838 | ac_status=$? |
| 15839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15840 | rm -f conftest.er1 |
| 15841 | cat conftest.err >&5 |
| 15842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15843 | (exit $ac_status); } >/dev/null; then |
| 15844 | if test -s conftest.err; then |
| 15845 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15846 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15847 | else |
| 15848 | ac_cpp_err= |
| 15849 | fi |
| 15850 | else |
| 15851 | ac_cpp_err=yes |
| 15852 | fi |
| 15853 | if test -z "$ac_cpp_err"; then |
| 15854 | ac_header_preproc=yes |
| 15855 | else |
| 15856 | echo "$as_me: failed program was:" >&5 |
| 15857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15858 | |
| 15859 | ac_header_preproc=no |
| 15860 | fi |
| 15861 | |
| 15862 | rm -f conftest.err conftest.$ac_ext |
| 15863 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15864 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15865 | |
| 15866 | # So? What about this header? |
| 15867 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15868 | yes:no: ) |
| 15869 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15870 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15871 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15872 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15873 | ac_header_preproc=yes |
| 15874 | ;; |
| 15875 | no:yes:* ) |
| 15876 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15877 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15878 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15879 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15880 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15881 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15882 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15883 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15884 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15885 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15886 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15887 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15888 | ( cat <<\_ASBOX |
| 15889 | ## ----------------------------------- ## |
| 15890 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 15891 | ## ----------------------------------- ## |
| 15892 | _ASBOX |
| 15893 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15894 | ;; |
| 15895 | esac |
| 15896 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15897 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15898 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15900 | else |
| 15901 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15902 | fi |
| 15903 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15904 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15905 | echo "${ECHO_T}$ac_res" >&6; } |
| 15906 | |
| 15907 | fi |
| 15908 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15909 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15910 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 15911 | _ACEOF |
| 15912 | |
| 15913 | fi |
| 15914 | |
| 15915 | done |
| 15916 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15917 | |
| 15918 | |
Douglas Gregor | 071d73d | 2009-05-18 17:21:34 +0000 | [diff] [blame] | 15919 | for ac_header in utime.h windows.h |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 15920 | do |
| 15921 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15922 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15923 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15924 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15925 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15927 | fi |
| 15928 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15929 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15930 | echo "${ECHO_T}$ac_res" >&6; } |
| 15931 | else |
| 15932 | # Is the header compilable? |
| 15933 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15934 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15935 | cat >conftest.$ac_ext <<_ACEOF |
| 15936 | /* confdefs.h. */ |
| 15937 | _ACEOF |
| 15938 | cat confdefs.h >>conftest.$ac_ext |
| 15939 | cat >>conftest.$ac_ext <<_ACEOF |
| 15940 | /* end confdefs.h. */ |
| 15941 | $ac_includes_default |
| 15942 | #include <$ac_header> |
| 15943 | _ACEOF |
| 15944 | rm -f conftest.$ac_objext |
| 15945 | if { (ac_try="$ac_compile" |
| 15946 | case "(($ac_try" in |
| 15947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15948 | *) ac_try_echo=$ac_try;; |
| 15949 | esac |
| 15950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15951 | (eval "$ac_compile") 2>conftest.er1 |
| 15952 | ac_status=$? |
| 15953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15954 | rm -f conftest.er1 |
| 15955 | cat conftest.err >&5 |
| 15956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15957 | (exit $ac_status); } && |
| 15958 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15959 | { (case "(($ac_try" in |
| 15960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15961 | *) ac_try_echo=$ac_try;; |
| 15962 | esac |
| 15963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15964 | (eval "$ac_try") 2>&5 |
| 15965 | ac_status=$? |
| 15966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15967 | (exit $ac_status); }; } && |
| 15968 | { ac_try='test -s conftest.$ac_objext' |
| 15969 | { (case "(($ac_try" in |
| 15970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15971 | *) ac_try_echo=$ac_try;; |
| 15972 | esac |
| 15973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15974 | (eval "$ac_try") 2>&5 |
| 15975 | ac_status=$? |
| 15976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15977 | (exit $ac_status); }; }; then |
| 15978 | ac_header_compiler=yes |
| 15979 | else |
| 15980 | echo "$as_me: failed program was:" >&5 |
| 15981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15982 | |
| 15983 | ac_header_compiler=no |
| 15984 | fi |
| 15985 | |
| 15986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15987 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15988 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15989 | |
| 15990 | # Is the header present? |
| 15991 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15992 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15993 | cat >conftest.$ac_ext <<_ACEOF |
| 15994 | /* confdefs.h. */ |
| 15995 | _ACEOF |
| 15996 | cat confdefs.h >>conftest.$ac_ext |
| 15997 | cat >>conftest.$ac_ext <<_ACEOF |
| 15998 | /* end confdefs.h. */ |
| 15999 | #include <$ac_header> |
| 16000 | _ACEOF |
| 16001 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16002 | case "(($ac_try" in |
| 16003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16004 | *) ac_try_echo=$ac_try;; |
| 16005 | esac |
| 16006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16007 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16008 | ac_status=$? |
| 16009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16010 | rm -f conftest.er1 |
| 16011 | cat conftest.err >&5 |
| 16012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16013 | (exit $ac_status); } >/dev/null; then |
| 16014 | if test -s conftest.err; then |
| 16015 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16016 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16017 | else |
| 16018 | ac_cpp_err= |
| 16019 | fi |
| 16020 | else |
| 16021 | ac_cpp_err=yes |
| 16022 | fi |
| 16023 | if test -z "$ac_cpp_err"; then |
| 16024 | ac_header_preproc=yes |
| 16025 | else |
| 16026 | echo "$as_me: failed program was:" >&5 |
| 16027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16028 | |
| 16029 | ac_header_preproc=no |
| 16030 | fi |
| 16031 | |
| 16032 | rm -f conftest.err conftest.$ac_ext |
| 16033 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16034 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16035 | |
| 16036 | # So? What about this header? |
| 16037 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16038 | yes:no: ) |
| 16039 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16040 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16041 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16042 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16043 | ac_header_preproc=yes |
| 16044 | ;; |
| 16045 | no:yes:* ) |
| 16046 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16047 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16048 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16049 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16050 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16051 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16052 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16053 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16054 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16055 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16056 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16057 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16058 | ( cat <<\_ASBOX |
| 16059 | ## ----------------------------------- ## |
| 16060 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16061 | ## ----------------------------------- ## |
| 16062 | _ASBOX |
| 16063 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16064 | ;; |
| 16065 | esac |
| 16066 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16067 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16068 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16070 | else |
| 16071 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16072 | fi |
| 16073 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16074 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16075 | echo "${ECHO_T}$ac_res" >&6; } |
| 16076 | |
| 16077 | fi |
| 16078 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16079 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16080 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16081 | _ACEOF |
| 16082 | |
| 16083 | fi |
| 16084 | |
| 16085 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 16086 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16087 | |
| 16088 | |
| 16089 | |
| 16090 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16091 | 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] | 16092 | do |
| 16093 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16094 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16095 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16096 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16097 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16099 | fi |
| 16100 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16101 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16102 | echo "${ECHO_T}$ac_res" >&6; } |
| 16103 | else |
| 16104 | # Is the header compilable? |
| 16105 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16106 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16107 | cat >conftest.$ac_ext <<_ACEOF |
| 16108 | /* confdefs.h. */ |
| 16109 | _ACEOF |
| 16110 | cat confdefs.h >>conftest.$ac_ext |
| 16111 | cat >>conftest.$ac_ext <<_ACEOF |
| 16112 | /* end confdefs.h. */ |
| 16113 | $ac_includes_default |
| 16114 | #include <$ac_header> |
| 16115 | _ACEOF |
| 16116 | rm -f conftest.$ac_objext |
| 16117 | if { (ac_try="$ac_compile" |
| 16118 | case "(($ac_try" in |
| 16119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16120 | *) ac_try_echo=$ac_try;; |
| 16121 | esac |
| 16122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16123 | (eval "$ac_compile") 2>conftest.er1 |
| 16124 | ac_status=$? |
| 16125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16126 | rm -f conftest.er1 |
| 16127 | cat conftest.err >&5 |
| 16128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16129 | (exit $ac_status); } && |
| 16130 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16131 | { (case "(($ac_try" in |
| 16132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16133 | *) ac_try_echo=$ac_try;; |
| 16134 | esac |
| 16135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16136 | (eval "$ac_try") 2>&5 |
| 16137 | ac_status=$? |
| 16138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16139 | (exit $ac_status); }; } && |
| 16140 | { ac_try='test -s conftest.$ac_objext' |
| 16141 | { (case "(($ac_try" in |
| 16142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16143 | *) ac_try_echo=$ac_try;; |
| 16144 | esac |
| 16145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16146 | (eval "$ac_try") 2>&5 |
| 16147 | ac_status=$? |
| 16148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16149 | (exit $ac_status); }; }; then |
| 16150 | ac_header_compiler=yes |
| 16151 | else |
| 16152 | echo "$as_me: failed program was:" >&5 |
| 16153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16154 | |
| 16155 | ac_header_compiler=no |
| 16156 | fi |
| 16157 | |
| 16158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16159 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16160 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16161 | |
| 16162 | # Is the header present? |
| 16163 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16164 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16165 | cat >conftest.$ac_ext <<_ACEOF |
| 16166 | /* confdefs.h. */ |
| 16167 | _ACEOF |
| 16168 | cat confdefs.h >>conftest.$ac_ext |
| 16169 | cat >>conftest.$ac_ext <<_ACEOF |
| 16170 | /* end confdefs.h. */ |
| 16171 | #include <$ac_header> |
| 16172 | _ACEOF |
| 16173 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16174 | case "(($ac_try" in |
| 16175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16176 | *) ac_try_echo=$ac_try;; |
| 16177 | esac |
| 16178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16179 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16180 | ac_status=$? |
| 16181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16182 | rm -f conftest.er1 |
| 16183 | cat conftest.err >&5 |
| 16184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16185 | (exit $ac_status); } >/dev/null; then |
| 16186 | if test -s conftest.err; then |
| 16187 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16188 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16189 | else |
| 16190 | ac_cpp_err= |
| 16191 | fi |
| 16192 | else |
| 16193 | ac_cpp_err=yes |
| 16194 | fi |
| 16195 | if test -z "$ac_cpp_err"; then |
| 16196 | ac_header_preproc=yes |
| 16197 | else |
| 16198 | echo "$as_me: failed program was:" >&5 |
| 16199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16200 | |
| 16201 | ac_header_preproc=no |
| 16202 | fi |
| 16203 | |
| 16204 | rm -f conftest.err conftest.$ac_ext |
| 16205 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16206 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16207 | |
| 16208 | # So? What about this header? |
| 16209 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16210 | yes:no: ) |
| 16211 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16212 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16213 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16214 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16215 | ac_header_preproc=yes |
| 16216 | ;; |
| 16217 | no:yes:* ) |
| 16218 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16219 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16220 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16221 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16222 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16223 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16224 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16225 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16226 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16227 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16228 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16229 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16230 | ( cat <<\_ASBOX |
| 16231 | ## ----------------------------------- ## |
| 16232 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16233 | ## ----------------------------------- ## |
| 16234 | _ASBOX |
| 16235 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16236 | ;; |
| 16237 | esac |
| 16238 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16239 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16240 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16242 | else |
| 16243 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16244 | fi |
| 16245 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16246 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16247 | echo "${ECHO_T}$ac_res" >&6; } |
| 16248 | |
| 16249 | fi |
| 16250 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16251 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16252 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16253 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16254 | |
| 16255 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 16256 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 16257 | done |
| 16258 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16259 | |
| 16260 | |
| 16261 | |
| 16262 | |
Douglas Gregor | 0174674 | 2009-05-11 18:05:52 +0000 | [diff] [blame] | 16263 | 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] | 16264 | do |
| 16265 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16266 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16267 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16268 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16269 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16271 | fi |
| 16272 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16273 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16274 | echo "${ECHO_T}$ac_res" >&6; } |
| 16275 | else |
| 16276 | # Is the header compilable? |
| 16277 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16278 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16279 | cat >conftest.$ac_ext <<_ACEOF |
| 16280 | /* confdefs.h. */ |
| 16281 | _ACEOF |
| 16282 | cat confdefs.h >>conftest.$ac_ext |
| 16283 | cat >>conftest.$ac_ext <<_ACEOF |
| 16284 | /* end confdefs.h. */ |
| 16285 | $ac_includes_default |
| 16286 | #include <$ac_header> |
| 16287 | _ACEOF |
| 16288 | rm -f conftest.$ac_objext |
| 16289 | if { (ac_try="$ac_compile" |
| 16290 | case "(($ac_try" in |
| 16291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16292 | *) ac_try_echo=$ac_try;; |
| 16293 | esac |
| 16294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16295 | (eval "$ac_compile") 2>conftest.er1 |
| 16296 | ac_status=$? |
| 16297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16298 | rm -f conftest.er1 |
| 16299 | cat conftest.err >&5 |
| 16300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16301 | (exit $ac_status); } && |
| 16302 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16303 | { (case "(($ac_try" in |
| 16304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16305 | *) ac_try_echo=$ac_try;; |
| 16306 | esac |
| 16307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16308 | (eval "$ac_try") 2>&5 |
| 16309 | ac_status=$? |
| 16310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16311 | (exit $ac_status); }; } && |
| 16312 | { ac_try='test -s conftest.$ac_objext' |
| 16313 | { (case "(($ac_try" in |
| 16314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16315 | *) ac_try_echo=$ac_try;; |
| 16316 | esac |
| 16317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16318 | (eval "$ac_try") 2>&5 |
| 16319 | ac_status=$? |
| 16320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16321 | (exit $ac_status); }; }; then |
| 16322 | ac_header_compiler=yes |
| 16323 | else |
| 16324 | echo "$as_me: failed program was:" >&5 |
| 16325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16326 | |
| 16327 | ac_header_compiler=no |
| 16328 | fi |
| 16329 | |
| 16330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16331 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16332 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16333 | |
| 16334 | # Is the header present? |
| 16335 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16336 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16337 | cat >conftest.$ac_ext <<_ACEOF |
| 16338 | /* confdefs.h. */ |
| 16339 | _ACEOF |
| 16340 | cat confdefs.h >>conftest.$ac_ext |
| 16341 | cat >>conftest.$ac_ext <<_ACEOF |
| 16342 | /* end confdefs.h. */ |
| 16343 | #include <$ac_header> |
| 16344 | _ACEOF |
| 16345 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16346 | case "(($ac_try" in |
| 16347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16348 | *) ac_try_echo=$ac_try;; |
| 16349 | esac |
| 16350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16351 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16352 | ac_status=$? |
| 16353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16354 | rm -f conftest.er1 |
| 16355 | cat conftest.err >&5 |
| 16356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16357 | (exit $ac_status); } >/dev/null; then |
| 16358 | if test -s conftest.err; then |
| 16359 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16360 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16361 | else |
| 16362 | ac_cpp_err= |
| 16363 | fi |
| 16364 | else |
| 16365 | ac_cpp_err=yes |
| 16366 | fi |
| 16367 | if test -z "$ac_cpp_err"; then |
| 16368 | ac_header_preproc=yes |
| 16369 | else |
| 16370 | echo "$as_me: failed program was:" >&5 |
| 16371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16372 | |
| 16373 | ac_header_preproc=no |
| 16374 | fi |
| 16375 | |
| 16376 | rm -f conftest.err conftest.$ac_ext |
| 16377 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16378 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16379 | |
| 16380 | # So? What about this header? |
| 16381 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16382 | yes:no: ) |
| 16383 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16384 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16385 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16386 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16387 | ac_header_preproc=yes |
| 16388 | ;; |
| 16389 | no:yes:* ) |
| 16390 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16391 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16392 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16393 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16394 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16395 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16396 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16397 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16398 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16399 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16400 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16401 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16402 | ( cat <<\_ASBOX |
| 16403 | ## ----------------------------------- ## |
| 16404 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16405 | ## ----------------------------------- ## |
| 16406 | _ASBOX |
| 16407 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16408 | ;; |
| 16409 | esac |
| 16410 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16411 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16412 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16414 | else |
| 16415 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16416 | fi |
| 16417 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16418 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16419 | echo "${ECHO_T}$ac_res" >&6; } |
| 16420 | |
| 16421 | fi |
| 16422 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16423 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16424 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 16425 | _ACEOF |
| 16426 | |
| 16427 | fi |
| 16428 | |
| 16429 | done |
| 16430 | |
Jeffrey Yasskin | f28411f | 2010-03-15 04:57:55 +0000 | [diff] [blame] | 16431 | |
| 16432 | for ac_header in valgrind/valgrind.h |
| 16433 | do |
| 16434 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16435 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16436 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16437 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16438 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16440 | fi |
| 16441 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16442 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16443 | echo "${ECHO_T}$ac_res" >&6; } |
| 16444 | else |
| 16445 | # Is the header compilable? |
| 16446 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16447 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16448 | cat >conftest.$ac_ext <<_ACEOF |
| 16449 | /* confdefs.h. */ |
| 16450 | _ACEOF |
| 16451 | cat confdefs.h >>conftest.$ac_ext |
| 16452 | cat >>conftest.$ac_ext <<_ACEOF |
| 16453 | /* end confdefs.h. */ |
| 16454 | $ac_includes_default |
| 16455 | #include <$ac_header> |
| 16456 | _ACEOF |
| 16457 | rm -f conftest.$ac_objext |
| 16458 | if { (ac_try="$ac_compile" |
| 16459 | case "(($ac_try" in |
| 16460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16461 | *) ac_try_echo=$ac_try;; |
| 16462 | esac |
| 16463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16464 | (eval "$ac_compile") 2>conftest.er1 |
| 16465 | ac_status=$? |
| 16466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16467 | rm -f conftest.er1 |
| 16468 | cat conftest.err >&5 |
| 16469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16470 | (exit $ac_status); } && |
| 16471 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16472 | { (case "(($ac_try" in |
| 16473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16474 | *) ac_try_echo=$ac_try;; |
| 16475 | esac |
| 16476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16477 | (eval "$ac_try") 2>&5 |
| 16478 | ac_status=$? |
| 16479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16480 | (exit $ac_status); }; } && |
| 16481 | { ac_try='test -s conftest.$ac_objext' |
| 16482 | { (case "(($ac_try" in |
| 16483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16484 | *) ac_try_echo=$ac_try;; |
| 16485 | esac |
| 16486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16487 | (eval "$ac_try") 2>&5 |
| 16488 | ac_status=$? |
| 16489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16490 | (exit $ac_status); }; }; then |
| 16491 | ac_header_compiler=yes |
| 16492 | else |
| 16493 | echo "$as_me: failed program was:" >&5 |
| 16494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16495 | |
| 16496 | ac_header_compiler=no |
| 16497 | fi |
| 16498 | |
| 16499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16500 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16501 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16502 | |
| 16503 | # Is the header present? |
| 16504 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16505 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16506 | cat >conftest.$ac_ext <<_ACEOF |
| 16507 | /* confdefs.h. */ |
| 16508 | _ACEOF |
| 16509 | cat confdefs.h >>conftest.$ac_ext |
| 16510 | cat >>conftest.$ac_ext <<_ACEOF |
| 16511 | /* end confdefs.h. */ |
| 16512 | #include <$ac_header> |
| 16513 | _ACEOF |
| 16514 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16515 | case "(($ac_try" in |
| 16516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16517 | *) ac_try_echo=$ac_try;; |
| 16518 | esac |
| 16519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16520 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16521 | ac_status=$? |
| 16522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16523 | rm -f conftest.er1 |
| 16524 | cat conftest.err >&5 |
| 16525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16526 | (exit $ac_status); } >/dev/null; then |
| 16527 | if test -s conftest.err; then |
| 16528 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16529 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16530 | else |
| 16531 | ac_cpp_err= |
| 16532 | fi |
| 16533 | else |
| 16534 | ac_cpp_err=yes |
| 16535 | fi |
| 16536 | if test -z "$ac_cpp_err"; then |
| 16537 | ac_header_preproc=yes |
| 16538 | else |
| 16539 | echo "$as_me: failed program was:" >&5 |
| 16540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16541 | |
| 16542 | ac_header_preproc=no |
| 16543 | fi |
| 16544 | |
| 16545 | rm -f conftest.err conftest.$ac_ext |
| 16546 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16547 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16548 | |
| 16549 | # So? What about this header? |
| 16550 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16551 | yes:no: ) |
| 16552 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16553 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16554 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16555 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16556 | ac_header_preproc=yes |
| 16557 | ;; |
| 16558 | no:yes:* ) |
| 16559 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16560 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16561 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16562 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16563 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16564 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16565 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16566 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16567 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16568 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16569 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16570 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16571 | ( cat <<\_ASBOX |
| 16572 | ## ----------------------------------- ## |
| 16573 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16574 | ## ----------------------------------- ## |
| 16575 | _ASBOX |
| 16576 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16577 | ;; |
| 16578 | esac |
| 16579 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16580 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16581 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16583 | else |
| 16584 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16585 | fi |
| 16586 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16587 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16588 | echo "${ECHO_T}$ac_res" >&6; } |
| 16589 | |
| 16590 | fi |
| 16591 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16592 | cat >>confdefs.h <<_ACEOF |
| 16593 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16594 | _ACEOF |
| 16595 | |
| 16596 | fi |
| 16597 | |
| 16598 | done |
| 16599 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16600 | if test "$ENABLE_THREADS" -eq 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16601 | |
| 16602 | for ac_header in pthread.h |
| 16603 | do |
| 16604 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16605 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16606 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16607 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16608 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16610 | fi |
| 16611 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16612 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16613 | echo "${ECHO_T}$ac_res" >&6; } |
| 16614 | else |
| 16615 | # Is the header compilable? |
| 16616 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16617 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16618 | cat >conftest.$ac_ext <<_ACEOF |
| 16619 | /* confdefs.h. */ |
| 16620 | _ACEOF |
| 16621 | cat confdefs.h >>conftest.$ac_ext |
| 16622 | cat >>conftest.$ac_ext <<_ACEOF |
| 16623 | /* end confdefs.h. */ |
| 16624 | $ac_includes_default |
| 16625 | #include <$ac_header> |
| 16626 | _ACEOF |
| 16627 | rm -f conftest.$ac_objext |
| 16628 | if { (ac_try="$ac_compile" |
| 16629 | case "(($ac_try" in |
| 16630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16631 | *) ac_try_echo=$ac_try;; |
| 16632 | esac |
| 16633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16634 | (eval "$ac_compile") 2>conftest.er1 |
| 16635 | ac_status=$? |
| 16636 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16637 | rm -f conftest.er1 |
| 16638 | cat conftest.err >&5 |
| 16639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16640 | (exit $ac_status); } && |
| 16641 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16642 | { (case "(($ac_try" in |
| 16643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16644 | *) ac_try_echo=$ac_try;; |
| 16645 | esac |
| 16646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16647 | (eval "$ac_try") 2>&5 |
| 16648 | ac_status=$? |
| 16649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16650 | (exit $ac_status); }; } && |
| 16651 | { ac_try='test -s conftest.$ac_objext' |
| 16652 | { (case "(($ac_try" in |
| 16653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16654 | *) ac_try_echo=$ac_try;; |
| 16655 | esac |
| 16656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16657 | (eval "$ac_try") 2>&5 |
| 16658 | ac_status=$? |
| 16659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16660 | (exit $ac_status); }; }; then |
| 16661 | ac_header_compiler=yes |
| 16662 | else |
| 16663 | echo "$as_me: failed program was:" >&5 |
| 16664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16665 | |
| 16666 | ac_header_compiler=no |
| 16667 | fi |
| 16668 | |
| 16669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16670 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16671 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16672 | |
| 16673 | # Is the header present? |
| 16674 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16675 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16676 | cat >conftest.$ac_ext <<_ACEOF |
| 16677 | /* confdefs.h. */ |
| 16678 | _ACEOF |
| 16679 | cat confdefs.h >>conftest.$ac_ext |
| 16680 | cat >>conftest.$ac_ext <<_ACEOF |
| 16681 | /* end confdefs.h. */ |
| 16682 | #include <$ac_header> |
| 16683 | _ACEOF |
| 16684 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16685 | case "(($ac_try" in |
| 16686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16687 | *) ac_try_echo=$ac_try;; |
| 16688 | esac |
| 16689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16690 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16691 | ac_status=$? |
| 16692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16693 | rm -f conftest.er1 |
| 16694 | cat conftest.err >&5 |
| 16695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16696 | (exit $ac_status); } >/dev/null; then |
| 16697 | if test -s conftest.err; then |
| 16698 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16699 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16700 | else |
| 16701 | ac_cpp_err= |
| 16702 | fi |
| 16703 | else |
| 16704 | ac_cpp_err=yes |
| 16705 | fi |
| 16706 | if test -z "$ac_cpp_err"; then |
| 16707 | ac_header_preproc=yes |
| 16708 | else |
| 16709 | echo "$as_me: failed program was:" >&5 |
| 16710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16711 | |
| 16712 | ac_header_preproc=no |
| 16713 | fi |
| 16714 | |
| 16715 | rm -f conftest.err conftest.$ac_ext |
| 16716 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16717 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16718 | |
| 16719 | # So? What about this header? |
| 16720 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16721 | yes:no: ) |
| 16722 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16723 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16724 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16725 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16726 | ac_header_preproc=yes |
| 16727 | ;; |
| 16728 | no:yes:* ) |
| 16729 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16730 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16731 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16732 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16733 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16734 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16735 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16736 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16737 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16738 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16739 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16740 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16741 | ( cat <<\_ASBOX |
| 16742 | ## ----------------------------------- ## |
| 16743 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16744 | ## ----------------------------------- ## |
| 16745 | _ASBOX |
| 16746 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16747 | ;; |
| 16748 | esac |
| 16749 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16750 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16751 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16753 | else |
| 16754 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16755 | fi |
| 16756 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16757 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16758 | echo "${ECHO_T}$ac_res" >&6; } |
| 16759 | |
| 16760 | fi |
| 16761 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16762 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16763 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16764 | _ACEOF |
| 16765 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 16766 | |
| 16767 | else |
| 16768 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16769 | |
| 16770 | fi |
| 16771 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 16772 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 16773 | |
| 16774 | else |
| 16775 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 16776 | |
| 16777 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16778 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16779 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16780 | |
| 16781 | |
| 16782 | for ac_header in ffi.h ffi/ffi.h |
| 16783 | do |
| 16784 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16785 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16786 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16787 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16788 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16790 | fi |
| 16791 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16792 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16793 | echo "${ECHO_T}$ac_res" >&6; } |
| 16794 | else |
| 16795 | # Is the header compilable? |
| 16796 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16797 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 16798 | cat >conftest.$ac_ext <<_ACEOF |
| 16799 | /* confdefs.h. */ |
| 16800 | _ACEOF |
| 16801 | cat confdefs.h >>conftest.$ac_ext |
| 16802 | cat >>conftest.$ac_ext <<_ACEOF |
| 16803 | /* end confdefs.h. */ |
| 16804 | $ac_includes_default |
| 16805 | #include <$ac_header> |
| 16806 | _ACEOF |
| 16807 | rm -f conftest.$ac_objext |
| 16808 | if { (ac_try="$ac_compile" |
| 16809 | case "(($ac_try" in |
| 16810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16811 | *) ac_try_echo=$ac_try;; |
| 16812 | esac |
| 16813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16814 | (eval "$ac_compile") 2>conftest.er1 |
| 16815 | ac_status=$? |
| 16816 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16817 | rm -f conftest.er1 |
| 16818 | cat conftest.err >&5 |
| 16819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16820 | (exit $ac_status); } && |
| 16821 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16822 | { (case "(($ac_try" in |
| 16823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16824 | *) ac_try_echo=$ac_try;; |
| 16825 | esac |
| 16826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16827 | (eval "$ac_try") 2>&5 |
| 16828 | ac_status=$? |
| 16829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16830 | (exit $ac_status); }; } && |
| 16831 | { ac_try='test -s conftest.$ac_objext' |
| 16832 | { (case "(($ac_try" in |
| 16833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16834 | *) ac_try_echo=$ac_try;; |
| 16835 | esac |
| 16836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16837 | (eval "$ac_try") 2>&5 |
| 16838 | ac_status=$? |
| 16839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16840 | (exit $ac_status); }; }; then |
| 16841 | ac_header_compiler=yes |
| 16842 | else |
| 16843 | echo "$as_me: failed program was:" >&5 |
| 16844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16845 | |
| 16846 | ac_header_compiler=no |
| 16847 | fi |
| 16848 | |
| 16849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16850 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16851 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 16852 | |
| 16853 | # Is the header present? |
| 16854 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16855 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 16856 | cat >conftest.$ac_ext <<_ACEOF |
| 16857 | /* confdefs.h. */ |
| 16858 | _ACEOF |
| 16859 | cat confdefs.h >>conftest.$ac_ext |
| 16860 | cat >>conftest.$ac_ext <<_ACEOF |
| 16861 | /* end confdefs.h. */ |
| 16862 | #include <$ac_header> |
| 16863 | _ACEOF |
| 16864 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 16865 | case "(($ac_try" in |
| 16866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16867 | *) ac_try_echo=$ac_try;; |
| 16868 | esac |
| 16869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16870 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 16871 | ac_status=$? |
| 16872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16873 | rm -f conftest.er1 |
| 16874 | cat conftest.err >&5 |
| 16875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16876 | (exit $ac_status); } >/dev/null; then |
| 16877 | if test -s conftest.err; then |
| 16878 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16879 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 16880 | else |
| 16881 | ac_cpp_err= |
| 16882 | fi |
| 16883 | else |
| 16884 | ac_cpp_err=yes |
| 16885 | fi |
| 16886 | if test -z "$ac_cpp_err"; then |
| 16887 | ac_header_preproc=yes |
| 16888 | else |
| 16889 | echo "$as_me: failed program was:" >&5 |
| 16890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16891 | |
| 16892 | ac_header_preproc=no |
| 16893 | fi |
| 16894 | |
| 16895 | rm -f conftest.err conftest.$ac_ext |
| 16896 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16897 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 16898 | |
| 16899 | # So? What about this header? |
| 16900 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16901 | yes:no: ) |
| 16902 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16903 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16904 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16905 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16906 | ac_header_preproc=yes |
| 16907 | ;; |
| 16908 | no:yes:* ) |
| 16909 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16910 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 16911 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16912 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16913 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16914 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16915 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16916 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 16917 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 16918 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 16919 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16920 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 16921 | ( cat <<\_ASBOX |
| 16922 | ## ----------------------------------- ## |
| 16923 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 16924 | ## ----------------------------------- ## |
| 16925 | _ASBOX |
| 16926 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 16927 | ;; |
| 16928 | esac |
| 16929 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16930 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 16931 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16933 | else |
| 16934 | eval "$as_ac_Header=\$ac_header_preproc" |
| 16935 | fi |
| 16936 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 16937 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16938 | echo "${ECHO_T}$ac_res" >&6; } |
| 16939 | |
| 16940 | fi |
| 16941 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16942 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16943 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16944 | _ACEOF |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16945 | |
| 16946 | fi |
| 16947 | |
| 16948 | done |
| 16949 | |
Nick Lewycky | b4a921a | 2009-06-06 06:25:09 +0000 | [diff] [blame] | 16950 | fi |
Nick Lewycky | fb3dcf8 | 2009-02-04 06:27:44 +0000 | [diff] [blame] | 16951 | |
Nick Lewycky | 2ab1d86 | 2009-01-20 00:52:24 +0000 | [diff] [blame] | 16952 | |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 16953 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 16954 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16955 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 16956 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 16957 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 16958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16959 | else |
| 16960 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16961 | ac_ext=cpp |
| 16962 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16963 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16964 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16965 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16966 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 16967 | ac_save_CXXFLAGS=$CXXFLAGS |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 16968 | CXXFLAGS=-pedantic |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16969 | if test "$cross_compiling" = yes; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16970 | ac_cv_huge_val_sanity=yes |
| 16971 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16972 | cat >conftest.$ac_ext <<_ACEOF |
| 16973 | /* confdefs.h. */ |
| 16974 | _ACEOF |
| 16975 | cat confdefs.h >>conftest.$ac_ext |
| 16976 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 16977 | /* end confdefs.h. */ |
| 16978 | #include <math.h> |
| 16979 | int |
| 16980 | main () |
| 16981 | { |
| 16982 | double x = HUGE_VAL; return x != x; |
| 16983 | ; |
| 16984 | return 0; |
| 16985 | } |
| 16986 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 16987 | rm -f conftest$ac_exeext |
| 16988 | if { (ac_try="$ac_link" |
| 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_link") 2>&5 |
| 16995 | ac_status=$? |
| 16996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16997 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16998 | { (case "(($ac_try" in |
| 16999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17000 | *) ac_try_echo=$ac_try;; |
| 17001 | esac |
| 17002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17003 | (eval "$ac_try") 2>&5 |
| 17004 | ac_status=$? |
| 17005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17006 | (exit $ac_status); }; }; then |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17007 | ac_cv_huge_val_sanity=yes |
| 17008 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17009 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17010 | echo "$as_me: failed program was:" >&5 |
| 17011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17012 | |
| 17013 | ( exit $ac_status ) |
| 17014 | ac_cv_huge_val_sanity=no |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17015 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17016 | 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] | 17017 | fi |
| 17018 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17019 | |
Eric Christopher | c771850 | 2010-03-02 05:06:54 +0000 | [diff] [blame] | 17020 | CXXFLAGS=$ac_save_CXXFLAGS |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17021 | ac_ext=c |
| 17022 | ac_cpp='$CPP $CPPFLAGS' |
| 17023 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17024 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17025 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17026 | |
| 17027 | |
| 17028 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17029 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 17030 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 17031 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 17032 | |
| 17033 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17034 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 17035 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 17036 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 17037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17038 | else |
| 17039 | cat >conftest.$ac_ext <<_ACEOF |
| 17040 | /* confdefs.h. */ |
| 17041 | _ACEOF |
| 17042 | cat confdefs.h >>conftest.$ac_ext |
| 17043 | cat >>conftest.$ac_ext <<_ACEOF |
| 17044 | /* end confdefs.h. */ |
| 17045 | $ac_includes_default |
| 17046 | typedef pid_t ac__type_new_; |
| 17047 | int |
| 17048 | main () |
| 17049 | { |
| 17050 | if ((ac__type_new_ *) 0) |
| 17051 | return 0; |
| 17052 | if (sizeof (ac__type_new_)) |
| 17053 | return 0; |
| 17054 | ; |
| 17055 | return 0; |
| 17056 | } |
| 17057 | _ACEOF |
| 17058 | rm -f conftest.$ac_objext |
| 17059 | if { (ac_try="$ac_compile" |
| 17060 | case "(($ac_try" in |
| 17061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17062 | *) ac_try_echo=$ac_try;; |
| 17063 | esac |
| 17064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17065 | (eval "$ac_compile") 2>conftest.er1 |
| 17066 | ac_status=$? |
| 17067 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17068 | rm -f conftest.er1 |
| 17069 | cat conftest.err >&5 |
| 17070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17071 | (exit $ac_status); } && |
| 17072 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17073 | { (case "(($ac_try" in |
| 17074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17075 | *) ac_try_echo=$ac_try;; |
| 17076 | esac |
| 17077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17078 | (eval "$ac_try") 2>&5 |
| 17079 | ac_status=$? |
| 17080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17081 | (exit $ac_status); }; } && |
| 17082 | { ac_try='test -s conftest.$ac_objext' |
| 17083 | { (case "(($ac_try" in |
| 17084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17085 | *) ac_try_echo=$ac_try;; |
| 17086 | esac |
| 17087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17088 | (eval "$ac_try") 2>&5 |
| 17089 | ac_status=$? |
| 17090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17091 | (exit $ac_status); }; }; then |
| 17092 | ac_cv_type_pid_t=yes |
| 17093 | else |
| 17094 | echo "$as_me: failed program was:" >&5 |
| 17095 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17096 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17097 | ac_cv_type_pid_t=no |
| 17098 | fi |
| 17099 | |
| 17100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17101 | fi |
| 17102 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 17103 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 17104 | if test $ac_cv_type_pid_t = yes; then |
| 17105 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17106 | else |
| 17107 | |
| 17108 | cat >>confdefs.h <<_ACEOF |
| 17109 | #define pid_t int |
| 17110 | _ACEOF |
| 17111 | |
| 17112 | fi |
| 17113 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17114 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 17115 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 17116 | if test "${ac_cv_type_size_t+set}" = set; then |
| 17117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17118 | else |
| 17119 | cat >conftest.$ac_ext <<_ACEOF |
| 17120 | /* confdefs.h. */ |
| 17121 | _ACEOF |
| 17122 | cat confdefs.h >>conftest.$ac_ext |
| 17123 | cat >>conftest.$ac_ext <<_ACEOF |
| 17124 | /* end confdefs.h. */ |
| 17125 | $ac_includes_default |
| 17126 | typedef size_t ac__type_new_; |
| 17127 | int |
| 17128 | main () |
| 17129 | { |
| 17130 | if ((ac__type_new_ *) 0) |
| 17131 | return 0; |
| 17132 | if (sizeof (ac__type_new_)) |
| 17133 | return 0; |
| 17134 | ; |
| 17135 | return 0; |
| 17136 | } |
| 17137 | _ACEOF |
| 17138 | rm -f conftest.$ac_objext |
| 17139 | if { (ac_try="$ac_compile" |
| 17140 | case "(($ac_try" in |
| 17141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17142 | *) ac_try_echo=$ac_try;; |
| 17143 | esac |
| 17144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17145 | (eval "$ac_compile") 2>conftest.er1 |
| 17146 | ac_status=$? |
| 17147 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17148 | rm -f conftest.er1 |
| 17149 | cat conftest.err >&5 |
| 17150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17151 | (exit $ac_status); } && |
| 17152 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17153 | { (case "(($ac_try" in |
| 17154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17155 | *) ac_try_echo=$ac_try;; |
| 17156 | esac |
| 17157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17158 | (eval "$ac_try") 2>&5 |
| 17159 | ac_status=$? |
| 17160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17161 | (exit $ac_status); }; } && |
| 17162 | { ac_try='test -s conftest.$ac_objext' |
| 17163 | { (case "(($ac_try" in |
| 17164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17165 | *) ac_try_echo=$ac_try;; |
| 17166 | esac |
| 17167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17168 | (eval "$ac_try") 2>&5 |
| 17169 | ac_status=$? |
| 17170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17171 | (exit $ac_status); }; }; then |
| 17172 | ac_cv_type_size_t=yes |
| 17173 | else |
| 17174 | echo "$as_me: failed program was:" >&5 |
| 17175 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17176 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17177 | ac_cv_type_size_t=no |
| 17178 | fi |
| 17179 | |
| 17180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17181 | fi |
| 17182 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 17183 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 17184 | if test $ac_cv_type_size_t = yes; then |
| 17185 | : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17186 | else |
| 17187 | |
| 17188 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17189 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17190 | _ACEOF |
| 17191 | |
| 17192 | fi |
| 17193 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17194 | |
| 17195 | cat >>confdefs.h <<_ACEOF |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 17196 | #define RETSIGTYPE void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17197 | _ACEOF |
| 17198 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17199 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 17200 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
| 17201 | if test "${ac_cv_struct_tm+set}" = set; then |
| 17202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17203 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17204 | cat >conftest.$ac_ext <<_ACEOF |
| 17205 | /* confdefs.h. */ |
| 17206 | _ACEOF |
| 17207 | cat confdefs.h >>conftest.$ac_ext |
| 17208 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17209 | /* end confdefs.h. */ |
| 17210 | #include <sys/types.h> |
| 17211 | #include <time.h> |
| 17212 | |
| 17213 | int |
| 17214 | main () |
| 17215 | { |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17216 | struct tm *tp; tp->tm_sec; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17217 | ; |
| 17218 | return 0; |
| 17219 | } |
| 17220 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17221 | rm -f conftest.$ac_objext |
| 17222 | if { (ac_try="$ac_compile" |
| 17223 | case "(($ac_try" in |
| 17224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17225 | *) ac_try_echo=$ac_try;; |
| 17226 | esac |
| 17227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17228 | (eval "$ac_compile") 2>conftest.er1 |
| 17229 | ac_status=$? |
| 17230 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17231 | rm -f conftest.er1 |
| 17232 | cat conftest.err >&5 |
| 17233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17234 | (exit $ac_status); } && |
| 17235 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17236 | { (case "(($ac_try" in |
| 17237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17238 | *) ac_try_echo=$ac_try;; |
| 17239 | esac |
| 17240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17241 | (eval "$ac_try") 2>&5 |
| 17242 | ac_status=$? |
| 17243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17244 | (exit $ac_status); }; } && |
| 17245 | { ac_try='test -s conftest.$ac_objext' |
| 17246 | { (case "(($ac_try" in |
| 17247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17248 | *) ac_try_echo=$ac_try;; |
| 17249 | esac |
| 17250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17251 | (eval "$ac_try") 2>&5 |
| 17252 | ac_status=$? |
| 17253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17254 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17255 | ac_cv_struct_tm=time.h |
| 17256 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17257 | echo "$as_me: failed program was:" >&5 |
| 17258 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17259 | |
| 17260 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17261 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17262 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17264 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17265 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 17266 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17267 | if test $ac_cv_struct_tm = sys/time.h; then |
| 17268 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17269 | cat >>confdefs.h <<\_ACEOF |
| 17270 | #define TM_IN_SYS_TIME 1 |
| 17271 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17272 | |
| 17273 | fi |
| 17274 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17275 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 17276 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 17277 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 17278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17279 | else |
| 17280 | cat >conftest.$ac_ext <<_ACEOF |
| 17281 | /* confdefs.h. */ |
| 17282 | _ACEOF |
| 17283 | cat confdefs.h >>conftest.$ac_ext |
| 17284 | cat >>conftest.$ac_ext <<_ACEOF |
| 17285 | /* end confdefs.h. */ |
| 17286 | $ac_includes_default |
| 17287 | typedef int64_t ac__type_new_; |
| 17288 | int |
| 17289 | main () |
| 17290 | { |
| 17291 | if ((ac__type_new_ *) 0) |
| 17292 | return 0; |
| 17293 | if (sizeof (ac__type_new_)) |
| 17294 | return 0; |
| 17295 | ; |
| 17296 | return 0; |
| 17297 | } |
| 17298 | _ACEOF |
| 17299 | rm -f conftest.$ac_objext |
| 17300 | if { (ac_try="$ac_compile" |
| 17301 | case "(($ac_try" in |
| 17302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17303 | *) ac_try_echo=$ac_try;; |
| 17304 | esac |
| 17305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17306 | (eval "$ac_compile") 2>conftest.er1 |
| 17307 | ac_status=$? |
| 17308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17309 | rm -f conftest.er1 |
| 17310 | cat conftest.err >&5 |
| 17311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17312 | (exit $ac_status); } && |
| 17313 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17314 | { (case "(($ac_try" in |
| 17315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17316 | *) ac_try_echo=$ac_try;; |
| 17317 | esac |
| 17318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17319 | (eval "$ac_try") 2>&5 |
| 17320 | ac_status=$? |
| 17321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17322 | (exit $ac_status); }; } && |
| 17323 | { ac_try='test -s conftest.$ac_objext' |
| 17324 | { (case "(($ac_try" in |
| 17325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17326 | *) ac_try_echo=$ac_try;; |
| 17327 | esac |
| 17328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17329 | (eval "$ac_try") 2>&5 |
| 17330 | ac_status=$? |
| 17331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17332 | (exit $ac_status); }; }; then |
| 17333 | ac_cv_type_int64_t=yes |
| 17334 | else |
| 17335 | echo "$as_me: failed program was:" >&5 |
| 17336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17337 | |
| 17338 | ac_cv_type_int64_t=no |
| 17339 | fi |
| 17340 | |
| 17341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17342 | fi |
| 17343 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 17344 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 17345 | if test $ac_cv_type_int64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17346 | |
| 17347 | cat >>confdefs.h <<_ACEOF |
| 17348 | #define HAVE_INT64_T 1 |
| 17349 | _ACEOF |
| 17350 | |
| 17351 | |
| 17352 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17353 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 17354 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 17355 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17356 | fi |
| 17357 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17358 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 17359 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 17360 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 17361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17362 | else |
| 17363 | cat >conftest.$ac_ext <<_ACEOF |
| 17364 | /* confdefs.h. */ |
| 17365 | _ACEOF |
| 17366 | cat confdefs.h >>conftest.$ac_ext |
| 17367 | cat >>conftest.$ac_ext <<_ACEOF |
| 17368 | /* end confdefs.h. */ |
| 17369 | $ac_includes_default |
| 17370 | typedef uint64_t ac__type_new_; |
| 17371 | int |
| 17372 | main () |
| 17373 | { |
| 17374 | if ((ac__type_new_ *) 0) |
| 17375 | return 0; |
| 17376 | if (sizeof (ac__type_new_)) |
| 17377 | return 0; |
| 17378 | ; |
| 17379 | return 0; |
| 17380 | } |
| 17381 | _ACEOF |
| 17382 | rm -f conftest.$ac_objext |
| 17383 | if { (ac_try="$ac_compile" |
| 17384 | case "(($ac_try" in |
| 17385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17386 | *) ac_try_echo=$ac_try;; |
| 17387 | esac |
| 17388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17389 | (eval "$ac_compile") 2>conftest.er1 |
| 17390 | ac_status=$? |
| 17391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17392 | rm -f conftest.er1 |
| 17393 | cat conftest.err >&5 |
| 17394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17395 | (exit $ac_status); } && |
| 17396 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17397 | { (case "(($ac_try" in |
| 17398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17399 | *) ac_try_echo=$ac_try;; |
| 17400 | esac |
| 17401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17402 | (eval "$ac_try") 2>&5 |
| 17403 | ac_status=$? |
| 17404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17405 | (exit $ac_status); }; } && |
| 17406 | { ac_try='test -s conftest.$ac_objext' |
| 17407 | { (case "(($ac_try" in |
| 17408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17409 | *) ac_try_echo=$ac_try;; |
| 17410 | esac |
| 17411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17412 | (eval "$ac_try") 2>&5 |
| 17413 | ac_status=$? |
| 17414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17415 | (exit $ac_status); }; }; then |
| 17416 | ac_cv_type_uint64_t=yes |
| 17417 | else |
| 17418 | echo "$as_me: failed program was:" >&5 |
| 17419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17420 | |
| 17421 | ac_cv_type_uint64_t=no |
| 17422 | fi |
| 17423 | |
| 17424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17425 | fi |
| 17426 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 17427 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 17428 | if test $ac_cv_type_uint64_t = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17429 | |
| 17430 | cat >>confdefs.h <<_ACEOF |
| 17431 | #define HAVE_UINT64_T 1 |
| 17432 | _ACEOF |
| 17433 | |
| 17434 | |
| 17435 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17436 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 17437 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
| 17438 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 17439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17440 | else |
| 17441 | cat >conftest.$ac_ext <<_ACEOF |
| 17442 | /* confdefs.h. */ |
| 17443 | _ACEOF |
| 17444 | cat confdefs.h >>conftest.$ac_ext |
| 17445 | cat >>conftest.$ac_ext <<_ACEOF |
| 17446 | /* end confdefs.h. */ |
| 17447 | $ac_includes_default |
| 17448 | typedef u_int64_t ac__type_new_; |
| 17449 | int |
| 17450 | main () |
| 17451 | { |
| 17452 | if ((ac__type_new_ *) 0) |
| 17453 | return 0; |
| 17454 | if (sizeof (ac__type_new_)) |
| 17455 | return 0; |
| 17456 | ; |
| 17457 | return 0; |
| 17458 | } |
| 17459 | _ACEOF |
| 17460 | rm -f conftest.$ac_objext |
| 17461 | if { (ac_try="$ac_compile" |
| 17462 | case "(($ac_try" in |
| 17463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17464 | *) ac_try_echo=$ac_try;; |
| 17465 | esac |
| 17466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17467 | (eval "$ac_compile") 2>conftest.er1 |
| 17468 | ac_status=$? |
| 17469 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17470 | rm -f conftest.er1 |
| 17471 | cat conftest.err >&5 |
| 17472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17473 | (exit $ac_status); } && |
| 17474 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17475 | { (case "(($ac_try" in |
| 17476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17477 | *) ac_try_echo=$ac_try;; |
| 17478 | esac |
| 17479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17480 | (eval "$ac_try") 2>&5 |
| 17481 | ac_status=$? |
| 17482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17483 | (exit $ac_status); }; } && |
| 17484 | { ac_try='test -s conftest.$ac_objext' |
| 17485 | { (case "(($ac_try" in |
| 17486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17487 | *) ac_try_echo=$ac_try;; |
| 17488 | esac |
| 17489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17490 | (eval "$ac_try") 2>&5 |
| 17491 | ac_status=$? |
| 17492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17493 | (exit $ac_status); }; }; then |
| 17494 | ac_cv_type_u_int64_t=yes |
| 17495 | else |
| 17496 | echo "$as_me: failed program was:" >&5 |
| 17497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17498 | |
| 17499 | ac_cv_type_u_int64_t=no |
| 17500 | fi |
| 17501 | |
| 17502 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17503 | fi |
| 17504 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 17505 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
| 17506 | if test $ac_cv_type_u_int64_t = yes; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 17507 | |
| 17508 | cat >>confdefs.h <<_ACEOF |
| 17509 | #define HAVE_U_INT64_T 1 |
| 17510 | _ACEOF |
| 17511 | |
| 17512 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 17513 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17514 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 17515 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 17516 | { (exit 1); exit 1; }; } |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 17517 | fi |
| 17518 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 17519 | fi |
| 17520 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17521 | |
| 17522 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17523 | |
| 17524 | |
| 17525 | |
| 17526 | |
| 17527 | |
| 17528 | |
| 17529 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17530 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17531 | do |
| 17532 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17533 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17534 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17535 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17537 | else |
| 17538 | cat >conftest.$ac_ext <<_ACEOF |
| 17539 | /* confdefs.h. */ |
| 17540 | _ACEOF |
| 17541 | cat confdefs.h >>conftest.$ac_ext |
| 17542 | cat >>conftest.$ac_ext <<_ACEOF |
| 17543 | /* end confdefs.h. */ |
| 17544 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17545 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17546 | #define $ac_func innocuous_$ac_func |
| 17547 | |
| 17548 | /* System header to define __stub macros and hopefully few prototypes, |
| 17549 | which can conflict with char $ac_func (); below. |
| 17550 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17551 | <limits.h> exists even on freestanding compilers. */ |
| 17552 | |
| 17553 | #ifdef __STDC__ |
| 17554 | # include <limits.h> |
| 17555 | #else |
| 17556 | # include <assert.h> |
| 17557 | #endif |
| 17558 | |
| 17559 | #undef $ac_func |
| 17560 | |
| 17561 | /* Override any GCC internal prototype to avoid an error. |
| 17562 | Use char because int might match the return type of a GCC |
| 17563 | builtin and then its argument prototype would still apply. */ |
| 17564 | #ifdef __cplusplus |
| 17565 | extern "C" |
| 17566 | #endif |
| 17567 | char $ac_func (); |
| 17568 | /* The GNU C library defines this for functions which it implements |
| 17569 | to always fail with ENOSYS. Some functions are actually named |
| 17570 | something starting with __ and the normal name is an alias. */ |
| 17571 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17572 | choke me |
| 17573 | #endif |
| 17574 | |
| 17575 | int |
| 17576 | main () |
| 17577 | { |
| 17578 | return $ac_func (); |
| 17579 | ; |
| 17580 | return 0; |
| 17581 | } |
| 17582 | _ACEOF |
| 17583 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17584 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 17591 | ac_status=$? |
| 17592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17593 | rm -f conftest.er1 |
| 17594 | cat conftest.err >&5 |
| 17595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17596 | (exit $ac_status); } && |
| 17597 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17598 | { (case "(($ac_try" in |
| 17599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17600 | *) ac_try_echo=$ac_try;; |
| 17601 | esac |
| 17602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17603 | (eval "$ac_try") 2>&5 |
| 17604 | ac_status=$? |
| 17605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17606 | (exit $ac_status); }; } && |
| 17607 | { ac_try='test -s conftest$ac_exeext' |
| 17608 | { (case "(($ac_try" in |
| 17609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17610 | *) ac_try_echo=$ac_try;; |
| 17611 | esac |
| 17612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17613 | (eval "$ac_try") 2>&5 |
| 17614 | ac_status=$? |
| 17615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17616 | (exit $ac_status); }; }; then |
| 17617 | eval "$as_ac_var=yes" |
| 17618 | else |
| 17619 | echo "$as_me: failed program was:" >&5 |
| 17620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17621 | |
| 17622 | eval "$as_ac_var=no" |
| 17623 | fi |
| 17624 | |
| 17625 | rm -f core conftest.err conftest.$ac_objext \ |
| 17626 | conftest$ac_exeext conftest.$ac_ext |
| 17627 | fi |
| 17628 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17629 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17630 | echo "${ECHO_T}$ac_res" >&6; } |
| 17631 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17632 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17633 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17634 | _ACEOF |
| 17635 | |
| 17636 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 17637 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17638 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17639 | |
| 17640 | |
| 17641 | |
| 17642 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17643 | for ac_func in powf fmodf strtof round |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17644 | do |
| 17645 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17646 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17647 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17648 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17650 | else |
| 17651 | cat >conftest.$ac_ext <<_ACEOF |
| 17652 | /* confdefs.h. */ |
| 17653 | _ACEOF |
| 17654 | cat confdefs.h >>conftest.$ac_ext |
| 17655 | cat >>conftest.$ac_ext <<_ACEOF |
| 17656 | /* end confdefs.h. */ |
| 17657 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17658 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17659 | #define $ac_func innocuous_$ac_func |
| 17660 | |
| 17661 | /* System header to define __stub macros and hopefully few prototypes, |
| 17662 | which can conflict with char $ac_func (); below. |
| 17663 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17664 | <limits.h> exists even on freestanding compilers. */ |
| 17665 | |
| 17666 | #ifdef __STDC__ |
| 17667 | # include <limits.h> |
| 17668 | #else |
| 17669 | # include <assert.h> |
| 17670 | #endif |
| 17671 | |
| 17672 | #undef $ac_func |
| 17673 | |
| 17674 | /* Override any GCC internal prototype to avoid an error. |
| 17675 | Use char because int might match the return type of a GCC |
| 17676 | builtin and then its argument prototype would still apply. */ |
| 17677 | #ifdef __cplusplus |
| 17678 | extern "C" |
| 17679 | #endif |
| 17680 | char $ac_func (); |
| 17681 | /* The GNU C library defines this for functions which it implements |
| 17682 | to always fail with ENOSYS. Some functions are actually named |
| 17683 | something starting with __ and the normal name is an alias. */ |
| 17684 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17685 | choke me |
| 17686 | #endif |
| 17687 | |
| 17688 | int |
| 17689 | main () |
| 17690 | { |
| 17691 | return $ac_func (); |
| 17692 | ; |
| 17693 | return 0; |
| 17694 | } |
| 17695 | _ACEOF |
| 17696 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17697 | if { (ac_try="$ac_link" |
| 17698 | case "(($ac_try" in |
| 17699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17700 | *) ac_try_echo=$ac_try;; |
| 17701 | esac |
| 17702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17703 | (eval "$ac_link") 2>conftest.er1 |
| 17704 | ac_status=$? |
| 17705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17706 | rm -f conftest.er1 |
| 17707 | cat conftest.err >&5 |
| 17708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17709 | (exit $ac_status); } && |
| 17710 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17711 | { (case "(($ac_try" in |
| 17712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17713 | *) ac_try_echo=$ac_try;; |
| 17714 | esac |
| 17715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17716 | (eval "$ac_try") 2>&5 |
| 17717 | ac_status=$? |
| 17718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17719 | (exit $ac_status); }; } && |
| 17720 | { ac_try='test -s conftest$ac_exeext' |
| 17721 | { (case "(($ac_try" in |
| 17722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17723 | *) ac_try_echo=$ac_try;; |
| 17724 | esac |
| 17725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17726 | (eval "$ac_try") 2>&5 |
| 17727 | ac_status=$? |
| 17728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17729 | (exit $ac_status); }; }; then |
| 17730 | eval "$as_ac_var=yes" |
| 17731 | else |
| 17732 | echo "$as_me: failed program was:" >&5 |
| 17733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17734 | |
| 17735 | eval "$as_ac_var=no" |
| 17736 | fi |
| 17737 | |
| 17738 | rm -f core conftest.err conftest.$ac_objext \ |
| 17739 | conftest$ac_exeext conftest.$ac_ext |
| 17740 | fi |
| 17741 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17742 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17743 | echo "${ECHO_T}$ac_res" >&6; } |
| 17744 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17745 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17746 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 17747 | _ACEOF |
| 17748 | |
| 17749 | fi |
| 17750 | done |
| 17751 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17752 | |
| 17753 | |
| 17754 | |
| 17755 | |
| 17756 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17757 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17758 | do |
| 17759 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17760 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17761 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17762 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17764 | else |
| 17765 | cat >conftest.$ac_ext <<_ACEOF |
| 17766 | /* confdefs.h. */ |
| 17767 | _ACEOF |
| 17768 | cat confdefs.h >>conftest.$ac_ext |
| 17769 | cat >>conftest.$ac_ext <<_ACEOF |
| 17770 | /* end confdefs.h. */ |
| 17771 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17772 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17773 | #define $ac_func innocuous_$ac_func |
| 17774 | |
| 17775 | /* System header to define __stub macros and hopefully few prototypes, |
| 17776 | which can conflict with char $ac_func (); below. |
| 17777 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17778 | <limits.h> exists even on freestanding compilers. */ |
| 17779 | |
| 17780 | #ifdef __STDC__ |
| 17781 | # include <limits.h> |
| 17782 | #else |
| 17783 | # include <assert.h> |
| 17784 | #endif |
| 17785 | |
| 17786 | #undef $ac_func |
| 17787 | |
| 17788 | /* Override any GCC internal prototype to avoid an error. |
| 17789 | Use char because int might match the return type of a GCC |
| 17790 | builtin and then its argument prototype would still apply. */ |
| 17791 | #ifdef __cplusplus |
| 17792 | extern "C" |
| 17793 | #endif |
| 17794 | char $ac_func (); |
| 17795 | /* The GNU C library defines this for functions which it implements |
| 17796 | to always fail with ENOSYS. Some functions are actually named |
| 17797 | something starting with __ and the normal name is an alias. */ |
| 17798 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17799 | choke me |
| 17800 | #endif |
| 17801 | |
| 17802 | int |
| 17803 | main () |
| 17804 | { |
| 17805 | return $ac_func (); |
| 17806 | ; |
| 17807 | return 0; |
| 17808 | } |
| 17809 | _ACEOF |
| 17810 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17811 | if { (ac_try="$ac_link" |
| 17812 | case "(($ac_try" in |
| 17813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17814 | *) ac_try_echo=$ac_try;; |
| 17815 | esac |
| 17816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17817 | (eval "$ac_link") 2>conftest.er1 |
| 17818 | ac_status=$? |
| 17819 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17820 | rm -f conftest.er1 |
| 17821 | cat conftest.err >&5 |
| 17822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17823 | (exit $ac_status); } && |
| 17824 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17825 | { (case "(($ac_try" in |
| 17826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17827 | *) ac_try_echo=$ac_try;; |
| 17828 | esac |
| 17829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17830 | (eval "$ac_try") 2>&5 |
| 17831 | ac_status=$? |
| 17832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17833 | (exit $ac_status); }; } && |
| 17834 | { ac_try='test -s conftest$ac_exeext' |
| 17835 | { (case "(($ac_try" in |
| 17836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17837 | *) ac_try_echo=$ac_try;; |
| 17838 | esac |
| 17839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17840 | (eval "$ac_try") 2>&5 |
| 17841 | ac_status=$? |
| 17842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17843 | (exit $ac_status); }; }; then |
| 17844 | eval "$as_ac_var=yes" |
| 17845 | else |
| 17846 | echo "$as_me: failed program was:" >&5 |
| 17847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17848 | |
| 17849 | eval "$as_ac_var=no" |
| 17850 | fi |
| 17851 | |
| 17852 | rm -f core conftest.err conftest.$ac_objext \ |
| 17853 | conftest$ac_exeext conftest.$ac_ext |
| 17854 | fi |
| 17855 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17856 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17857 | echo "${ECHO_T}$ac_res" >&6; } |
| 17858 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17859 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17860 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17861 | _ACEOF |
| 17862 | |
| 17863 | fi |
| 17864 | done |
| 17865 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17866 | |
| 17867 | |
| 17868 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 17869 | for ac_func in isatty mkdtemp mkstemp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17870 | do |
| 17871 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17872 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17873 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17874 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17876 | else |
| 17877 | cat >conftest.$ac_ext <<_ACEOF |
| 17878 | /* confdefs.h. */ |
| 17879 | _ACEOF |
| 17880 | cat confdefs.h >>conftest.$ac_ext |
| 17881 | cat >>conftest.$ac_ext <<_ACEOF |
| 17882 | /* end confdefs.h. */ |
| 17883 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17884 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17885 | #define $ac_func innocuous_$ac_func |
| 17886 | |
| 17887 | /* System header to define __stub macros and hopefully few prototypes, |
| 17888 | which can conflict with char $ac_func (); below. |
| 17889 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17890 | <limits.h> exists even on freestanding compilers. */ |
| 17891 | |
| 17892 | #ifdef __STDC__ |
| 17893 | # include <limits.h> |
| 17894 | #else |
| 17895 | # include <assert.h> |
| 17896 | #endif |
| 17897 | |
| 17898 | #undef $ac_func |
| 17899 | |
| 17900 | /* Override any GCC internal prototype to avoid an error. |
| 17901 | Use char because int might match the return type of a GCC |
| 17902 | builtin and then its argument prototype would still apply. */ |
| 17903 | #ifdef __cplusplus |
| 17904 | extern "C" |
| 17905 | #endif |
| 17906 | char $ac_func (); |
| 17907 | /* The GNU C library defines this for functions which it implements |
| 17908 | to always fail with ENOSYS. Some functions are actually named |
| 17909 | something starting with __ and the normal name is an alias. */ |
| 17910 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17911 | choke me |
| 17912 | #endif |
| 17913 | |
| 17914 | int |
| 17915 | main () |
| 17916 | { |
| 17917 | return $ac_func (); |
| 17918 | ; |
| 17919 | return 0; |
| 17920 | } |
| 17921 | _ACEOF |
| 17922 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17923 | if { (ac_try="$ac_link" |
| 17924 | case "(($ac_try" in |
| 17925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17926 | *) ac_try_echo=$ac_try;; |
| 17927 | esac |
| 17928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17929 | (eval "$ac_link") 2>conftest.er1 |
| 17930 | ac_status=$? |
| 17931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17932 | rm -f conftest.er1 |
| 17933 | cat conftest.err >&5 |
| 17934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17935 | (exit $ac_status); } && |
| 17936 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17937 | { (case "(($ac_try" in |
| 17938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17939 | *) ac_try_echo=$ac_try;; |
| 17940 | esac |
| 17941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17942 | (eval "$ac_try") 2>&5 |
| 17943 | ac_status=$? |
| 17944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17945 | (exit $ac_status); }; } && |
| 17946 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
| 17956 | eval "$as_ac_var=yes" |
| 17957 | else |
| 17958 | echo "$as_me: failed program was:" >&5 |
| 17959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17960 | |
| 17961 | eval "$as_ac_var=no" |
| 17962 | fi |
| 17963 | |
| 17964 | rm -f core conftest.err conftest.$ac_objext \ |
| 17965 | conftest$ac_exeext conftest.$ac_ext |
| 17966 | fi |
| 17967 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17968 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17969 | echo "${ECHO_T}$ac_res" >&6; } |
| 17970 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17971 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17972 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 17973 | _ACEOF |
| 17974 | |
| 17975 | fi |
| 17976 | done |
| 17977 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17978 | |
| 17979 | |
| 17980 | |
| 17981 | |
| 17982 | |
Eric Christopher | e429182 | 2010-04-16 05:14:21 +0000 | [diff] [blame] | 17983 | |
| 17984 | for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 17985 | do |
| 17986 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17987 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17988 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17989 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17991 | else |
| 17992 | cat >conftest.$ac_ext <<_ACEOF |
| 17993 | /* confdefs.h. */ |
| 17994 | _ACEOF |
| 17995 | cat confdefs.h >>conftest.$ac_ext |
| 17996 | cat >>conftest.$ac_ext <<_ACEOF |
| 17997 | /* end confdefs.h. */ |
| 17998 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17999 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18000 | #define $ac_func innocuous_$ac_func |
| 18001 | |
| 18002 | /* System header to define __stub macros and hopefully few prototypes, |
| 18003 | which can conflict with char $ac_func (); below. |
| 18004 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18005 | <limits.h> exists even on freestanding compilers. */ |
| 18006 | |
| 18007 | #ifdef __STDC__ |
| 18008 | # include <limits.h> |
| 18009 | #else |
| 18010 | # include <assert.h> |
| 18011 | #endif |
| 18012 | |
| 18013 | #undef $ac_func |
| 18014 | |
| 18015 | /* Override any GCC internal prototype to avoid an error. |
| 18016 | Use char because int might match the return type of a GCC |
| 18017 | builtin and then its argument prototype would still apply. */ |
| 18018 | #ifdef __cplusplus |
| 18019 | extern "C" |
| 18020 | #endif |
| 18021 | char $ac_func (); |
| 18022 | /* The GNU C library defines this for functions which it implements |
| 18023 | to always fail with ENOSYS. Some functions are actually named |
| 18024 | something starting with __ and the normal name is an alias. */ |
| 18025 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18026 | choke me |
| 18027 | #endif |
| 18028 | |
| 18029 | int |
| 18030 | main () |
| 18031 | { |
| 18032 | return $ac_func (); |
| 18033 | ; |
| 18034 | return 0; |
| 18035 | } |
| 18036 | _ACEOF |
| 18037 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18038 | if { (ac_try="$ac_link" |
| 18039 | case "(($ac_try" in |
| 18040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18041 | *) ac_try_echo=$ac_try;; |
| 18042 | esac |
| 18043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18044 | (eval "$ac_link") 2>conftest.er1 |
| 18045 | ac_status=$? |
| 18046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18047 | rm -f conftest.er1 |
| 18048 | cat conftest.err >&5 |
| 18049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18050 | (exit $ac_status); } && |
| 18051 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18052 | { (case "(($ac_try" in |
| 18053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18054 | *) ac_try_echo=$ac_try;; |
| 18055 | esac |
| 18056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18057 | (eval "$ac_try") 2>&5 |
| 18058 | ac_status=$? |
| 18059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18060 | (exit $ac_status); }; } && |
| 18061 | { ac_try='test -s conftest$ac_exeext' |
| 18062 | { (case "(($ac_try" in |
| 18063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18064 | *) ac_try_echo=$ac_try;; |
| 18065 | esac |
| 18066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18067 | (eval "$ac_try") 2>&5 |
| 18068 | ac_status=$? |
| 18069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18070 | (exit $ac_status); }; }; then |
| 18071 | eval "$as_ac_var=yes" |
| 18072 | else |
| 18073 | echo "$as_me: failed program was:" >&5 |
| 18074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18075 | |
| 18076 | eval "$as_ac_var=no" |
| 18077 | fi |
| 18078 | |
| 18079 | rm -f core conftest.err conftest.$ac_objext \ |
| 18080 | conftest$ac_exeext conftest.$ac_ext |
| 18081 | fi |
| 18082 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18083 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18084 | echo "${ECHO_T}$ac_res" >&6; } |
| 18085 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 18086 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18087 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeffrey Yasskin | 342a343 | 2009-07-01 18:30:10 +0000 | [diff] [blame] | 18088 | _ACEOF |
| 18089 | |
| 18090 | fi |
| 18091 | done |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 18092 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18093 | |
| 18094 | |
| 18095 | |
| 18096 | |
Jeffrey Yasskin | b7a8d40 | 2009-09-25 21:07:20 +0000 | [diff] [blame] | 18097 | for ac_func in strerror strerror_r strerror_s setenv |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18098 | do |
| 18099 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18100 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18101 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18102 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18104 | else |
| 18105 | cat >conftest.$ac_ext <<_ACEOF |
| 18106 | /* confdefs.h. */ |
| 18107 | _ACEOF |
| 18108 | cat confdefs.h >>conftest.$ac_ext |
| 18109 | cat >>conftest.$ac_ext <<_ACEOF |
| 18110 | /* end confdefs.h. */ |
| 18111 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18112 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18113 | #define $ac_func innocuous_$ac_func |
| 18114 | |
| 18115 | /* System header to define __stub macros and hopefully few prototypes, |
| 18116 | which can conflict with char $ac_func (); below. |
| 18117 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18118 | <limits.h> exists even on freestanding compilers. */ |
| 18119 | |
| 18120 | #ifdef __STDC__ |
| 18121 | # include <limits.h> |
| 18122 | #else |
| 18123 | # include <assert.h> |
| 18124 | #endif |
| 18125 | |
| 18126 | #undef $ac_func |
| 18127 | |
| 18128 | /* Override any GCC internal prototype to avoid an error. |
| 18129 | Use char because int might match the return type of a GCC |
| 18130 | builtin and then its argument prototype would still apply. */ |
| 18131 | #ifdef __cplusplus |
| 18132 | extern "C" |
| 18133 | #endif |
| 18134 | char $ac_func (); |
| 18135 | /* The GNU C library defines this for functions which it implements |
| 18136 | to always fail with ENOSYS. Some functions are actually named |
| 18137 | something starting with __ and the normal name is an alias. */ |
| 18138 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18139 | choke me |
| 18140 | #endif |
| 18141 | |
| 18142 | int |
| 18143 | main () |
| 18144 | { |
| 18145 | return $ac_func (); |
| 18146 | ; |
| 18147 | return 0; |
| 18148 | } |
| 18149 | _ACEOF |
| 18150 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18151 | if { (ac_try="$ac_link" |
| 18152 | case "(($ac_try" in |
| 18153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18154 | *) ac_try_echo=$ac_try;; |
| 18155 | esac |
| 18156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18157 | (eval "$ac_link") 2>conftest.er1 |
| 18158 | ac_status=$? |
| 18159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18160 | rm -f conftest.er1 |
| 18161 | cat conftest.err >&5 |
| 18162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18163 | (exit $ac_status); } && |
| 18164 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18165 | { (case "(($ac_try" in |
| 18166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18167 | *) ac_try_echo=$ac_try;; |
| 18168 | esac |
| 18169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18170 | (eval "$ac_try") 2>&5 |
| 18171 | ac_status=$? |
| 18172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18173 | (exit $ac_status); }; } && |
| 18174 | { ac_try='test -s conftest$ac_exeext' |
| 18175 | { (case "(($ac_try" in |
| 18176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18177 | *) ac_try_echo=$ac_try;; |
| 18178 | esac |
| 18179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18180 | (eval "$ac_try") 2>&5 |
| 18181 | ac_status=$? |
| 18182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18183 | (exit $ac_status); }; }; then |
| 18184 | eval "$as_ac_var=yes" |
| 18185 | else |
| 18186 | echo "$as_me: failed program was:" >&5 |
| 18187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18188 | |
| 18189 | eval "$as_ac_var=no" |
| 18190 | fi |
| 18191 | |
| 18192 | rm -f core conftest.err conftest.$ac_objext \ |
| 18193 | conftest$ac_exeext conftest.$ac_ext |
| 18194 | fi |
| 18195 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18196 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18197 | echo "${ECHO_T}$ac_res" >&6; } |
| 18198 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 18199 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18200 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 18201 | _ACEOF |
| 18202 | |
| 18203 | fi |
| 18204 | done |
| 18205 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18206 | |
| 18207 | |
| 18208 | |
| 18209 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 18210 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18211 | do |
| 18212 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18213 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18214 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18215 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18217 | else |
| 18218 | cat >conftest.$ac_ext <<_ACEOF |
| 18219 | /* confdefs.h. */ |
| 18220 | _ACEOF |
| 18221 | cat confdefs.h >>conftest.$ac_ext |
| 18222 | cat >>conftest.$ac_ext <<_ACEOF |
| 18223 | /* end confdefs.h. */ |
| 18224 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18225 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18226 | #define $ac_func innocuous_$ac_func |
| 18227 | |
| 18228 | /* System header to define __stub macros and hopefully few prototypes, |
| 18229 | which can conflict with char $ac_func (); below. |
| 18230 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18231 | <limits.h> exists even on freestanding compilers. */ |
| 18232 | |
| 18233 | #ifdef __STDC__ |
| 18234 | # include <limits.h> |
| 18235 | #else |
| 18236 | # include <assert.h> |
| 18237 | #endif |
| 18238 | |
| 18239 | #undef $ac_func |
| 18240 | |
| 18241 | /* Override any GCC internal prototype to avoid an error. |
| 18242 | Use char because int might match the return type of a GCC |
| 18243 | builtin and then its argument prototype would still apply. */ |
| 18244 | #ifdef __cplusplus |
| 18245 | extern "C" |
| 18246 | #endif |
| 18247 | char $ac_func (); |
| 18248 | /* The GNU C library defines this for functions which it implements |
| 18249 | to always fail with ENOSYS. Some functions are actually named |
| 18250 | something starting with __ and the normal name is an alias. */ |
| 18251 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18252 | choke me |
| 18253 | #endif |
| 18254 | |
| 18255 | int |
| 18256 | main () |
| 18257 | { |
| 18258 | return $ac_func (); |
| 18259 | ; |
| 18260 | return 0; |
| 18261 | } |
| 18262 | _ACEOF |
| 18263 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18264 | if { (ac_try="$ac_link" |
| 18265 | case "(($ac_try" in |
| 18266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18267 | *) ac_try_echo=$ac_try;; |
| 18268 | esac |
| 18269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18270 | (eval "$ac_link") 2>conftest.er1 |
| 18271 | ac_status=$? |
| 18272 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18273 | rm -f conftest.er1 |
| 18274 | cat conftest.err >&5 |
| 18275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18276 | (exit $ac_status); } && |
| 18277 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18278 | { (case "(($ac_try" in |
| 18279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18280 | *) ac_try_echo=$ac_try;; |
| 18281 | esac |
| 18282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18283 | (eval "$ac_try") 2>&5 |
| 18284 | ac_status=$? |
| 18285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18286 | (exit $ac_status); }; } && |
| 18287 | { ac_try='test -s conftest$ac_exeext' |
| 18288 | { (case "(($ac_try" in |
| 18289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18290 | *) ac_try_echo=$ac_try;; |
| 18291 | esac |
| 18292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18293 | (eval "$ac_try") 2>&5 |
| 18294 | ac_status=$? |
| 18295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18296 | (exit $ac_status); }; }; then |
| 18297 | eval "$as_ac_var=yes" |
| 18298 | else |
| 18299 | echo "$as_me: failed program was:" >&5 |
| 18300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18301 | |
| 18302 | eval "$as_ac_var=no" |
| 18303 | fi |
| 18304 | |
| 18305 | rm -f core conftest.err conftest.$ac_objext \ |
| 18306 | conftest$ac_exeext conftest.$ac_ext |
| 18307 | fi |
| 18308 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18309 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18310 | echo "${ECHO_T}$ac_res" >&6; } |
| 18311 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18312 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18313 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18314 | _ACEOF |
| 18315 | |
| 18316 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18317 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18318 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18319 | |
| 18320 | |
| 18321 | |
| 18322 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 18323 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18324 | do |
| 18325 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18326 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18327 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 18328 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 18329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18330 | else |
| 18331 | cat >conftest.$ac_ext <<_ACEOF |
| 18332 | /* confdefs.h. */ |
| 18333 | _ACEOF |
| 18334 | cat confdefs.h >>conftest.$ac_ext |
| 18335 | cat >>conftest.$ac_ext <<_ACEOF |
| 18336 | /* end confdefs.h. */ |
| 18337 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18338 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18339 | #define $ac_func innocuous_$ac_func |
| 18340 | |
| 18341 | /* System header to define __stub macros and hopefully few prototypes, |
| 18342 | which can conflict with char $ac_func (); below. |
| 18343 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 18344 | <limits.h> exists even on freestanding compilers. */ |
| 18345 | |
| 18346 | #ifdef __STDC__ |
| 18347 | # include <limits.h> |
| 18348 | #else |
| 18349 | # include <assert.h> |
| 18350 | #endif |
| 18351 | |
| 18352 | #undef $ac_func |
| 18353 | |
| 18354 | /* Override any GCC internal prototype to avoid an error. |
| 18355 | Use char because int might match the return type of a GCC |
| 18356 | builtin and then its argument prototype would still apply. */ |
| 18357 | #ifdef __cplusplus |
| 18358 | extern "C" |
| 18359 | #endif |
| 18360 | char $ac_func (); |
| 18361 | /* The GNU C library defines this for functions which it implements |
| 18362 | to always fail with ENOSYS. Some functions are actually named |
| 18363 | something starting with __ and the normal name is an alias. */ |
| 18364 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 18365 | choke me |
| 18366 | #endif |
| 18367 | |
| 18368 | int |
| 18369 | main () |
| 18370 | { |
| 18371 | return $ac_func (); |
| 18372 | ; |
| 18373 | return 0; |
| 18374 | } |
| 18375 | _ACEOF |
| 18376 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18377 | if { (ac_try="$ac_link" |
| 18378 | case "(($ac_try" in |
| 18379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18380 | *) ac_try_echo=$ac_try;; |
| 18381 | esac |
| 18382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18383 | (eval "$ac_link") 2>conftest.er1 |
| 18384 | ac_status=$? |
| 18385 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18386 | rm -f conftest.er1 |
| 18387 | cat conftest.err >&5 |
| 18388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18389 | (exit $ac_status); } && |
| 18390 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18391 | { (case "(($ac_try" in |
| 18392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18393 | *) ac_try_echo=$ac_try;; |
| 18394 | esac |
| 18395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18396 | (eval "$ac_try") 2>&5 |
| 18397 | ac_status=$? |
| 18398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18399 | (exit $ac_status); }; } && |
| 18400 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
| 18410 | eval "$as_ac_var=yes" |
| 18411 | else |
| 18412 | echo "$as_me: failed program was:" >&5 |
| 18413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18414 | |
| 18415 | eval "$as_ac_var=no" |
| 18416 | fi |
| 18417 | |
| 18418 | rm -f core conftest.err conftest.$ac_objext \ |
| 18419 | conftest$ac_exeext conftest.$ac_ext |
| 18420 | fi |
| 18421 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 18422 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 18423 | echo "${ECHO_T}$ac_res" >&6; } |
| 18424 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 18425 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18426 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 18427 | _ACEOF |
| 18428 | |
| 18429 | fi |
| 18430 | done |
| 18431 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18432 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 18433 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
| 18434 | if test "${llvm_cv_c_printf_a+set}" = set; then |
| 18435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18436 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18437 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18438 | ac_cpp='$CPP $CPPFLAGS' |
| 18439 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18440 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18441 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18442 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18443 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18444 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18445 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18446 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18447 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18448 | /* confdefs.h. */ |
| 18449 | _ACEOF |
| 18450 | cat confdefs.h >>conftest.$ac_ext |
| 18451 | cat >>conftest.$ac_ext <<_ACEOF |
| 18452 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 18453 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18454 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18455 | #include <stdlib.h> |
| 18456 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18457 | int |
| 18458 | main () |
| 18459 | { |
| 18460 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18461 | volatile double A, B; |
| 18462 | char Buffer[100]; |
| 18463 | A = 1; |
| 18464 | A /= 10.0; |
| 18465 | sprintf(Buffer, "%a", A); |
| 18466 | B = atof(Buffer); |
| 18467 | if (A != B) |
| 18468 | return (1); |
| 18469 | if (A != 0x1.999999999999ap-4) |
| 18470 | return (1); |
| 18471 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18472 | ; |
| 18473 | return 0; |
| 18474 | } |
| 18475 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18476 | rm -f conftest$ac_exeext |
| 18477 | if { (ac_try="$ac_link" |
| 18478 | case "(($ac_try" in |
| 18479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18480 | *) ac_try_echo=$ac_try;; |
| 18481 | esac |
| 18482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18483 | (eval "$ac_link") 2>&5 |
| 18484 | ac_status=$? |
| 18485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18486 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18487 | { (case "(($ac_try" in |
| 18488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18489 | *) ac_try_echo=$ac_try;; |
| 18490 | esac |
| 18491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18492 | (eval "$ac_try") 2>&5 |
| 18493 | ac_status=$? |
| 18494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18495 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18496 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18497 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18498 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18499 | echo "$as_me: failed program was:" >&5 |
| 18500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18501 | |
| 18502 | ( exit $ac_status ) |
| 18503 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18504 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18505 | 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] | 18506 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18507 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18508 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18509 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18510 | ac_cpp='$CPP $CPPFLAGS' |
| 18511 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18512 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18513 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18514 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18515 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18516 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 18517 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 18518 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18519 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18520 | cat >>confdefs.h <<\_ACEOF |
| 18521 | #define HAVE_PRINTF_A 1 |
| 18522 | _ACEOF |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18523 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18524 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 18525 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18526 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18527 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 18528 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
| 18529 | if test "${ac_cv_func_rand48+set}" = set; then |
| 18530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18531 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18532 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18533 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18534 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18535 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18536 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18537 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18538 | cat >conftest.$ac_ext <<_ACEOF |
| 18539 | /* confdefs.h. */ |
| 18540 | _ACEOF |
| 18541 | cat confdefs.h >>conftest.$ac_ext |
| 18542 | cat >>conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18543 | /* end confdefs.h. */ |
| 18544 | #include <stdlib.h> |
| 18545 | int |
| 18546 | main () |
| 18547 | { |
| 18548 | srand48(0);lrand48();drand48(); |
| 18549 | ; |
| 18550 | return 0; |
| 18551 | } |
| 18552 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18553 | rm -f conftest.$ac_objext |
| 18554 | if { (ac_try="$ac_compile" |
| 18555 | case "(($ac_try" in |
| 18556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18557 | *) ac_try_echo=$ac_try;; |
| 18558 | esac |
| 18559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18560 | (eval "$ac_compile") 2>conftest.er1 |
| 18561 | ac_status=$? |
| 18562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18563 | rm -f conftest.er1 |
| 18564 | cat conftest.err >&5 |
| 18565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18566 | (exit $ac_status); } && |
| 18567 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18568 | { (case "(($ac_try" in |
| 18569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18570 | *) ac_try_echo=$ac_try;; |
| 18571 | esac |
| 18572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18573 | (eval "$ac_try") 2>&5 |
| 18574 | ac_status=$? |
| 18575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18576 | (exit $ac_status); }; } && |
| 18577 | { ac_try='test -s conftest.$ac_objext' |
| 18578 | { (case "(($ac_try" in |
| 18579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18580 | *) ac_try_echo=$ac_try;; |
| 18581 | esac |
| 18582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18583 | (eval "$ac_try") 2>&5 |
| 18584 | ac_status=$? |
| 18585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18586 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18587 | ac_cv_func_rand48=yes |
| 18588 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18589 | echo "$as_me: failed program was:" >&5 |
| 18590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18591 | |
| 18592 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18593 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18594 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18596 | ac_ext=c |
| 18597 | ac_cpp='$CPP $CPPFLAGS' |
| 18598 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18599 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18600 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18601 | |
| 18602 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18603 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 18604 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18605 | |
| 18606 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 18607 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18608 | cat >>confdefs.h <<\_ACEOF |
| 18609 | #define HAVE_RAND48 1 |
| 18610 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 18611 | |
| 18612 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 18613 | |
| 18614 | |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 18615 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18616 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 18617 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
| 18618 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 18619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18620 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18621 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 18622 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18623 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18624 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18625 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18626 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18627 | cat >conftest.$ac_ext <<_ACEOF |
| 18628 | /* confdefs.h. */ |
| 18629 | _ACEOF |
| 18630 | cat confdefs.h >>conftest.$ac_ext |
| 18631 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18632 | /* end confdefs.h. */ |
| 18633 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18634 | int |
| 18635 | main () |
| 18636 | { |
| 18637 | float f; isnan(f); |
| 18638 | ; |
| 18639 | return 0; |
| 18640 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18641 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18642 | rm -f conftest.$ac_objext |
| 18643 | if { (ac_try="$ac_compile" |
| 18644 | case "(($ac_try" in |
| 18645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18646 | *) ac_try_echo=$ac_try;; |
| 18647 | esac |
| 18648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18649 | (eval "$ac_compile") 2>conftest.er1 |
| 18650 | ac_status=$? |
| 18651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18652 | rm -f conftest.er1 |
| 18653 | cat conftest.err >&5 |
| 18654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18655 | (exit $ac_status); } && |
| 18656 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18657 | { (case "(($ac_try" in |
| 18658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18659 | *) ac_try_echo=$ac_try;; |
| 18660 | esac |
| 18661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18662 | (eval "$ac_try") 2>&5 |
| 18663 | ac_status=$? |
| 18664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18665 | (exit $ac_status); }; } && |
| 18666 | { ac_try='test -s conftest.$ac_objext' |
| 18667 | { (case "(($ac_try" in |
| 18668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18669 | *) ac_try_echo=$ac_try;; |
| 18670 | esac |
| 18671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18672 | (eval "$ac_try") 2>&5 |
| 18673 | ac_status=$? |
| 18674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18675 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18676 | ac_cv_func_isnan_in_math_h=yes |
| 18677 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18678 | echo "$as_me: failed program was:" >&5 |
| 18679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18680 | |
| 18681 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18682 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18683 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18685 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18686 | ac_cpp='$CPP $CPPFLAGS' |
| 18687 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18688 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18689 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18690 | |
| 18691 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18692 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 18693 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18694 | |
| 18695 | |
| 18696 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18697 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18698 | cat >>confdefs.h <<\_ACEOF |
| 18699 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 18700 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18701 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18702 | fi |
| 18703 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18704 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 18705 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
| 18706 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 18707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18708 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18709 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18710 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18711 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18712 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18713 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18714 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18715 | cat >conftest.$ac_ext <<_ACEOF |
| 18716 | /* confdefs.h. */ |
| 18717 | _ACEOF |
| 18718 | cat confdefs.h >>conftest.$ac_ext |
| 18719 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18720 | /* end confdefs.h. */ |
| 18721 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18722 | int |
| 18723 | main () |
| 18724 | { |
| 18725 | float f; isnan(f); |
| 18726 | ; |
| 18727 | return 0; |
| 18728 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18729 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18730 | rm -f conftest.$ac_objext |
| 18731 | if { (ac_try="$ac_compile" |
| 18732 | case "(($ac_try" in |
| 18733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18734 | *) ac_try_echo=$ac_try;; |
| 18735 | esac |
| 18736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18737 | (eval "$ac_compile") 2>conftest.er1 |
| 18738 | ac_status=$? |
| 18739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18740 | rm -f conftest.er1 |
| 18741 | cat conftest.err >&5 |
| 18742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18743 | (exit $ac_status); } && |
| 18744 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18745 | { (case "(($ac_try" in |
| 18746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18747 | *) ac_try_echo=$ac_try;; |
| 18748 | esac |
| 18749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18750 | (eval "$ac_try") 2>&5 |
| 18751 | ac_status=$? |
| 18752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18753 | (exit $ac_status); }; } && |
| 18754 | { ac_try='test -s conftest.$ac_objext' |
| 18755 | { (case "(($ac_try" in |
| 18756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18757 | *) ac_try_echo=$ac_try;; |
| 18758 | esac |
| 18759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18760 | (eval "$ac_try") 2>&5 |
| 18761 | ac_status=$? |
| 18762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18763 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18764 | ac_cv_func_isnan_in_cmath=yes |
| 18765 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18766 | echo "$as_me: failed program was:" >&5 |
| 18767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18768 | |
| 18769 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18770 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18771 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18773 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18774 | ac_cpp='$CPP $CPPFLAGS' |
| 18775 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18776 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18777 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18778 | |
| 18779 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18780 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 18781 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18782 | |
| 18783 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18784 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18785 | cat >>confdefs.h <<\_ACEOF |
| 18786 | #define HAVE_ISNAN_IN_CMATH 1 |
| 18787 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18788 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18789 | fi |
| 18790 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18791 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 18792 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
| 18793 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 18794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18795 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18796 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18797 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18798 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18799 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18800 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18801 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18802 | cat >conftest.$ac_ext <<_ACEOF |
| 18803 | /* confdefs.h. */ |
| 18804 | _ACEOF |
| 18805 | cat confdefs.h >>conftest.$ac_ext |
| 18806 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18807 | /* end confdefs.h. */ |
| 18808 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18809 | int |
| 18810 | main () |
| 18811 | { |
| 18812 | float f; std::isnan(f); |
| 18813 | ; |
| 18814 | return 0; |
| 18815 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18816 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18817 | rm -f conftest.$ac_objext |
| 18818 | if { (ac_try="$ac_compile" |
| 18819 | case "(($ac_try" in |
| 18820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18821 | *) ac_try_echo=$ac_try;; |
| 18822 | esac |
| 18823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18824 | (eval "$ac_compile") 2>conftest.er1 |
| 18825 | ac_status=$? |
| 18826 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18827 | rm -f conftest.er1 |
| 18828 | cat conftest.err >&5 |
| 18829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18830 | (exit $ac_status); } && |
| 18831 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18832 | { (case "(($ac_try" in |
| 18833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18834 | *) ac_try_echo=$ac_try;; |
| 18835 | esac |
| 18836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18837 | (eval "$ac_try") 2>&5 |
| 18838 | ac_status=$? |
| 18839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18840 | (exit $ac_status); }; } && |
| 18841 | { ac_try='test -s conftest.$ac_objext' |
| 18842 | { (case "(($ac_try" in |
| 18843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18844 | *) ac_try_echo=$ac_try;; |
| 18845 | esac |
| 18846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18847 | (eval "$ac_try") 2>&5 |
| 18848 | ac_status=$? |
| 18849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18850 | (exit $ac_status); }; }; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18851 | ac_cv_func_std_isnan_in_cmath=yes |
| 18852 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18853 | echo "$as_me: failed program was:" >&5 |
| 18854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18855 | |
| 18856 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18857 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18858 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18860 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18861 | ac_cpp='$CPP $CPPFLAGS' |
| 18862 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18863 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18864 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18865 | |
| 18866 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18867 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 18868 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18869 | |
| 18870 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18871 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18872 | cat >>confdefs.h <<\_ACEOF |
| 18873 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 18874 | _ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18875 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18876 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 18877 | |
| 18878 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18879 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 18880 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
| 18881 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 18882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18883 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18884 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18885 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18886 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18887 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18888 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18889 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18890 | cat >conftest.$ac_ext <<_ACEOF |
| 18891 | /* confdefs.h. */ |
| 18892 | _ACEOF |
| 18893 | cat confdefs.h >>conftest.$ac_ext |
| 18894 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18895 | /* end confdefs.h. */ |
| 18896 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18897 | int |
| 18898 | main () |
| 18899 | { |
| 18900 | float f; isinf(f); |
| 18901 | ; |
| 18902 | return 0; |
| 18903 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18904 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18905 | rm -f conftest.$ac_objext |
| 18906 | if { (ac_try="$ac_compile" |
| 18907 | case "(($ac_try" in |
| 18908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18909 | *) ac_try_echo=$ac_try;; |
| 18910 | esac |
| 18911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18912 | (eval "$ac_compile") 2>conftest.er1 |
| 18913 | ac_status=$? |
| 18914 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18915 | rm -f conftest.er1 |
| 18916 | cat conftest.err >&5 |
| 18917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18918 | (exit $ac_status); } && |
| 18919 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18920 | { (case "(($ac_try" in |
| 18921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18922 | *) ac_try_echo=$ac_try;; |
| 18923 | esac |
| 18924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18925 | (eval "$ac_try") 2>&5 |
| 18926 | ac_status=$? |
| 18927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18928 | (exit $ac_status); }; } && |
| 18929 | { ac_try='test -s conftest.$ac_objext' |
| 18930 | { (case "(($ac_try" in |
| 18931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18932 | *) ac_try_echo=$ac_try;; |
| 18933 | esac |
| 18934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18935 | (eval "$ac_try") 2>&5 |
| 18936 | ac_status=$? |
| 18937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18938 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18939 | ac_cv_func_isinf_in_math_h=yes |
| 18940 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18941 | echo "$as_me: failed program was:" >&5 |
| 18942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18943 | |
| 18944 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18945 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18946 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18948 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18949 | ac_cpp='$CPP $CPPFLAGS' |
| 18950 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18951 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18952 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18953 | |
| 18954 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18955 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 18956 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18957 | |
| 18958 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18959 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18960 | cat >>confdefs.h <<\_ACEOF |
| 18961 | #define HAVE_ISINF_IN_MATH_H 1 |
| 18962 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18963 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18964 | fi |
| 18965 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18966 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 18967 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
| 18968 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 18969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18970 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18971 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18972 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 18973 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18974 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18975 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 18976 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18977 | cat >conftest.$ac_ext <<_ACEOF |
| 18978 | /* confdefs.h. */ |
| 18979 | _ACEOF |
| 18980 | cat confdefs.h >>conftest.$ac_ext |
| 18981 | cat >>conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18982 | /* end confdefs.h. */ |
| 18983 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 18984 | int |
| 18985 | main () |
| 18986 | { |
| 18987 | float f; isinf(f); |
| 18988 | ; |
| 18989 | return 0; |
| 18990 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 18991 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 18992 | rm -f conftest.$ac_objext |
| 18993 | if { (ac_try="$ac_compile" |
| 18994 | case "(($ac_try" in |
| 18995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18996 | *) ac_try_echo=$ac_try;; |
| 18997 | esac |
| 18998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18999 | (eval "$ac_compile") 2>conftest.er1 |
| 19000 | ac_status=$? |
| 19001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19002 | rm -f conftest.er1 |
| 19003 | cat conftest.err >&5 |
| 19004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19005 | (exit $ac_status); } && |
| 19006 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19007 | { (case "(($ac_try" in |
| 19008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19009 | *) ac_try_echo=$ac_try;; |
| 19010 | esac |
| 19011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19012 | (eval "$ac_try") 2>&5 |
| 19013 | ac_status=$? |
| 19014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19015 | (exit $ac_status); }; } && |
| 19016 | { ac_try='test -s conftest.$ac_objext' |
| 19017 | { (case "(($ac_try" in |
| 19018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19019 | *) ac_try_echo=$ac_try;; |
| 19020 | esac |
| 19021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19022 | (eval "$ac_try") 2>&5 |
| 19023 | ac_status=$? |
| 19024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19025 | (exit $ac_status); }; }; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19026 | ac_cv_func_isinf_in_cmath=yes |
| 19027 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19028 | echo "$as_me: failed program was:" >&5 |
| 19029 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19030 | |
| 19031 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19032 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19033 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19035 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19036 | ac_cpp='$CPP $CPPFLAGS' |
| 19037 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19038 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19039 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19040 | |
| 19041 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19042 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 19043 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19044 | |
| 19045 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19046 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19047 | cat >>confdefs.h <<\_ACEOF |
| 19048 | #define HAVE_ISINF_IN_CMATH 1 |
| 19049 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +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 std::isinf in <cmath>" >&5 |
| 19054 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
| 19055 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 19056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19057 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19058 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +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 | 52a551d | 2004-07-21 03:14:12 +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; std::isinf(f)} |
| 19075 | ; |
| 19076 | return 0; |
| 19077 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +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 | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19113 | ac_cv_func_std_isinf_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_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +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 | 52a551d | 2004-07-21 03:14:12 +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_std_isinf_in_cmath" >&5 |
| 19130 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19131 | |
| 19132 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 19133 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19134 | cat >>confdefs.h <<\_ACEOF |
| 19135 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 19136 | _ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +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 finite in <ieeefp.h>" >&5 |
| 19141 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
| 19142 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 19143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19144 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19145 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +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 | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19156 | /* end confdefs.h. */ |
| 19157 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19158 | int |
| 19159 | main () |
| 19160 | { |
| 19161 | float f; finite(f); |
| 19162 | ; |
| 19163 | return 0; |
| 19164 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +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 | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19200 | ac_cv_func_finite_in_ieeefp_h=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_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +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 | d59a647 | 2004-07-21 03:33:58 +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_finite_in_ieeefp_h" >&5 |
| 19217 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19218 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 19219 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19220 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19221 | cat >>confdefs.h <<\_ACEOF |
| 19222 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
| 19223 | _ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 19224 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 19225 | fi |
| 19226 | |
| 19227 | |
| 19228 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19229 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19230 | |
| 19231 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19232 | for ac_header in stdlib.h unistd.h |
| 19233 | do |
| 19234 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19235 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19236 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19237 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19238 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19240 | fi |
| 19241 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19242 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19243 | echo "${ECHO_T}$ac_res" >&6; } |
| 19244 | else |
| 19245 | # Is the header compilable? |
| 19246 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19247 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 19248 | cat >conftest.$ac_ext <<_ACEOF |
| 19249 | /* confdefs.h. */ |
| 19250 | _ACEOF |
| 19251 | cat confdefs.h >>conftest.$ac_ext |
| 19252 | cat >>conftest.$ac_ext <<_ACEOF |
| 19253 | /* end confdefs.h. */ |
| 19254 | $ac_includes_default |
| 19255 | #include <$ac_header> |
| 19256 | _ACEOF |
| 19257 | rm -f conftest.$ac_objext |
| 19258 | if { (ac_try="$ac_compile" |
| 19259 | case "(($ac_try" in |
| 19260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19261 | *) ac_try_echo=$ac_try;; |
| 19262 | esac |
| 19263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19264 | (eval "$ac_compile") 2>conftest.er1 |
| 19265 | ac_status=$? |
| 19266 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19267 | rm -f conftest.er1 |
| 19268 | cat conftest.err >&5 |
| 19269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19270 | (exit $ac_status); } && |
| 19271 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19272 | { (case "(($ac_try" in |
| 19273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19274 | *) ac_try_echo=$ac_try;; |
| 19275 | esac |
| 19276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19277 | (eval "$ac_try") 2>&5 |
| 19278 | ac_status=$? |
| 19279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19280 | (exit $ac_status); }; } && |
| 19281 | { ac_try='test -s conftest.$ac_objext' |
| 19282 | { (case "(($ac_try" in |
| 19283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19284 | *) ac_try_echo=$ac_try;; |
| 19285 | esac |
| 19286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19287 | (eval "$ac_try") 2>&5 |
| 19288 | ac_status=$? |
| 19289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19290 | (exit $ac_status); }; }; then |
| 19291 | ac_header_compiler=yes |
| 19292 | else |
| 19293 | echo "$as_me: failed program was:" >&5 |
| 19294 | sed 's/^/| /' conftest.$ac_ext >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19295 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19296 | ac_header_compiler=no |
| 19297 | fi |
| 19298 | |
| 19299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19300 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19301 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 19302 | |
| 19303 | # Is the header present? |
| 19304 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19305 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 19306 | cat >conftest.$ac_ext <<_ACEOF |
| 19307 | /* confdefs.h. */ |
| 19308 | _ACEOF |
| 19309 | cat confdefs.h >>conftest.$ac_ext |
| 19310 | cat >>conftest.$ac_ext <<_ACEOF |
| 19311 | /* end confdefs.h. */ |
| 19312 | #include <$ac_header> |
| 19313 | _ACEOF |
| 19314 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 19315 | case "(($ac_try" in |
| 19316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19317 | *) ac_try_echo=$ac_try;; |
| 19318 | esac |
| 19319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19320 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 19321 | ac_status=$? |
| 19322 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19323 | rm -f conftest.er1 |
| 19324 | cat conftest.err >&5 |
| 19325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19326 | (exit $ac_status); } >/dev/null; then |
| 19327 | if test -s conftest.err; then |
| 19328 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 19329 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 19330 | else |
| 19331 | ac_cpp_err= |
| 19332 | fi |
| 19333 | else |
| 19334 | ac_cpp_err=yes |
| 19335 | fi |
| 19336 | if test -z "$ac_cpp_err"; then |
| 19337 | ac_header_preproc=yes |
| 19338 | else |
| 19339 | echo "$as_me: failed program was:" >&5 |
| 19340 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19341 | |
| 19342 | ac_header_preproc=no |
| 19343 | fi |
| 19344 | |
| 19345 | rm -f conftest.err conftest.$ac_ext |
| 19346 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19347 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 19348 | |
| 19349 | # So? What about this header? |
| 19350 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 19351 | yes:no: ) |
| 19352 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19353 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 19354 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 19355 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 19356 | ac_header_preproc=yes |
| 19357 | ;; |
| 19358 | no:yes:* ) |
| 19359 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 19360 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 19361 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 19362 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 19363 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 19364 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 19365 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 19366 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 19367 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 19368 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19369 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 19370 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 19371 | ( cat <<\_ASBOX |
| 19372 | ## ----------------------------------- ## |
| 19373 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 19374 | ## ----------------------------------- ## |
| 19375 | _ASBOX |
| 19376 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 19377 | ;; |
| 19378 | esac |
| 19379 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19380 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19381 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19383 | else |
| 19384 | eval "$as_ac_Header=\$ac_header_preproc" |
| 19385 | fi |
| 19386 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19387 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19388 | echo "${ECHO_T}$ac_res" >&6; } |
| 19389 | |
| 19390 | fi |
| 19391 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19392 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19393 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19394 | _ACEOF |
| 19395 | |
| 19396 | fi |
| 19397 | |
| 19398 | done |
| 19399 | |
| 19400 | |
| 19401 | for ac_func in getpagesize |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19402 | do |
| 19403 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19404 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19405 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19406 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19408 | else |
| 19409 | cat >conftest.$ac_ext <<_ACEOF |
| 19410 | /* confdefs.h. */ |
| 19411 | _ACEOF |
| 19412 | cat confdefs.h >>conftest.$ac_ext |
| 19413 | cat >>conftest.$ac_ext <<_ACEOF |
| 19414 | /* end confdefs.h. */ |
| 19415 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19416 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19417 | #define $ac_func innocuous_$ac_func |
| 19418 | |
| 19419 | /* System header to define __stub macros and hopefully few prototypes, |
| 19420 | which can conflict with char $ac_func (); below. |
| 19421 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19422 | <limits.h> exists even on freestanding compilers. */ |
| 19423 | |
| 19424 | #ifdef __STDC__ |
| 19425 | # include <limits.h> |
| 19426 | #else |
| 19427 | # include <assert.h> |
| 19428 | #endif |
| 19429 | |
| 19430 | #undef $ac_func |
| 19431 | |
| 19432 | /* Override any GCC internal prototype to avoid an error. |
| 19433 | Use char because int might match the return type of a GCC |
| 19434 | builtin and then its argument prototype would still apply. */ |
| 19435 | #ifdef __cplusplus |
| 19436 | extern "C" |
| 19437 | #endif |
| 19438 | char $ac_func (); |
| 19439 | /* The GNU C library defines this for functions which it implements |
| 19440 | to always fail with ENOSYS. Some functions are actually named |
| 19441 | something starting with __ and the normal name is an alias. */ |
| 19442 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 19443 | choke me |
| 19444 | #endif |
| 19445 | |
| 19446 | int |
| 19447 | main () |
| 19448 | { |
| 19449 | return $ac_func (); |
| 19450 | ; |
| 19451 | return 0; |
| 19452 | } |
| 19453 | _ACEOF |
| 19454 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19455 | if { (ac_try="$ac_link" |
| 19456 | case "(($ac_try" in |
| 19457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19458 | *) ac_try_echo=$ac_try;; |
| 19459 | esac |
| 19460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19461 | (eval "$ac_link") 2>conftest.er1 |
| 19462 | ac_status=$? |
| 19463 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19464 | rm -f conftest.er1 |
| 19465 | cat conftest.err >&5 |
| 19466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19467 | (exit $ac_status); } && |
| 19468 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19469 | { (case "(($ac_try" in |
| 19470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19471 | *) ac_try_echo=$ac_try;; |
| 19472 | esac |
| 19473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19474 | (eval "$ac_try") 2>&5 |
| 19475 | ac_status=$? |
| 19476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19477 | (exit $ac_status); }; } && |
| 19478 | { ac_try='test -s conftest$ac_exeext' |
| 19479 | { (case "(($ac_try" in |
| 19480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19481 | *) ac_try_echo=$ac_try;; |
| 19482 | esac |
| 19483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19484 | (eval "$ac_try") 2>&5 |
| 19485 | ac_status=$? |
| 19486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19487 | (exit $ac_status); }; }; then |
| 19488 | eval "$as_ac_var=yes" |
| 19489 | else |
| 19490 | echo "$as_me: failed program was:" >&5 |
| 19491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19492 | |
| 19493 | eval "$as_ac_var=no" |
| 19494 | fi |
| 19495 | |
| 19496 | rm -f core conftest.err conftest.$ac_objext \ |
| 19497 | conftest$ac_exeext conftest.$ac_ext |
| 19498 | fi |
| 19499 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 19500 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19501 | echo "${ECHO_T}$ac_res" >&6; } |
| 19502 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19503 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19504 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19505 | _ACEOF |
| 19506 | |
| 19507 | fi |
| 19508 | done |
| 19509 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19510 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 19511 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 19512 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 19513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19514 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19515 | if test "$cross_compiling" = yes; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19516 | ac_cv_func_mmap_fixed_mapped=no |
| 19517 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19518 | cat >conftest.$ac_ext <<_ACEOF |
| 19519 | /* confdefs.h. */ |
| 19520 | _ACEOF |
| 19521 | cat confdefs.h >>conftest.$ac_ext |
| 19522 | cat >>conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19523 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19524 | $ac_includes_default |
| 19525 | /* malloc might have been renamed as rpl_malloc. */ |
| 19526 | #undef malloc |
| 19527 | |
| 19528 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 19529 | Here is a matrix of mmap possibilities: |
| 19530 | mmap private not fixed |
| 19531 | mmap private fixed at somewhere currently unmapped |
| 19532 | mmap private fixed at somewhere already mapped |
| 19533 | mmap shared not fixed |
| 19534 | mmap shared fixed at somewhere currently unmapped |
| 19535 | mmap shared fixed at somewhere already mapped |
| 19536 | For private mappings, we should verify that changes cannot be read() |
| 19537 | back from the file, nor mmap's back from the file at a different |
| 19538 | address. (There have been systems where private was not correctly |
| 19539 | implemented like the infamous i386 svr4.0, and systems where the |
| 19540 | VM page cache was not coherent with the file system buffer cache |
| 19541 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 19542 | For shared mappings, we should conversely verify that changes get |
| 19543 | propagated back to all the places they're supposed to be. |
| 19544 | |
| 19545 | Grep wants private fixed already mapped. |
| 19546 | The main things grep needs to know about mmap are: |
| 19547 | * does it exist and is it safe to write into the mmap'd area |
| 19548 | * how to use it (BSD variants) */ |
| 19549 | |
| 19550 | #include <fcntl.h> |
| 19551 | #include <sys/mman.h> |
| 19552 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19553 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19554 | char *malloc (); |
| 19555 | #endif |
| 19556 | |
| 19557 | /* This mess was copied from the GNU getpagesize.h. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19558 | #if !HAVE_GETPAGESIZE |
| 19559 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 19560 | # if !HAVE_SYS_PARAM_H |
| 19561 | # define HAVE_SYS_PARAM_H 1 |
| 19562 | # endif |
| 19563 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19564 | # ifdef _SC_PAGESIZE |
| 19565 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 19566 | # else /* no _SC_PAGESIZE */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19567 | # if HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19568 | # include <sys/param.h> |
| 19569 | # ifdef EXEC_PAGESIZE |
| 19570 | # define getpagesize() EXEC_PAGESIZE |
| 19571 | # else /* no EXEC_PAGESIZE */ |
| 19572 | # ifdef NBPG |
| 19573 | # define getpagesize() NBPG * CLSIZE |
| 19574 | # ifndef CLSIZE |
| 19575 | # define CLSIZE 1 |
| 19576 | # endif /* no CLSIZE */ |
| 19577 | # else /* no NBPG */ |
| 19578 | # ifdef NBPC |
| 19579 | # define getpagesize() NBPC |
| 19580 | # else /* no NBPC */ |
| 19581 | # ifdef PAGESIZE |
| 19582 | # define getpagesize() PAGESIZE |
| 19583 | # endif /* PAGESIZE */ |
| 19584 | # endif /* no NBPC */ |
| 19585 | # endif /* no NBPG */ |
| 19586 | # endif /* no EXEC_PAGESIZE */ |
| 19587 | # else /* no HAVE_SYS_PARAM_H */ |
| 19588 | # define getpagesize() 8192 /* punt totally */ |
| 19589 | # endif /* no HAVE_SYS_PARAM_H */ |
| 19590 | # endif /* no _SC_PAGESIZE */ |
| 19591 | |
| 19592 | #endif /* no HAVE_GETPAGESIZE */ |
| 19593 | |
| 19594 | int |
| 19595 | main () |
| 19596 | { |
| 19597 | char *data, *data2, *data3; |
| 19598 | int i, pagesize; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19599 | int fd; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19600 | |
| 19601 | pagesize = getpagesize (); |
| 19602 | |
| 19603 | /* First, make a file with some known garbage in it. */ |
| 19604 | data = (char *) malloc (pagesize); |
| 19605 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19606 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19607 | for (i = 0; i < pagesize; ++i) |
| 19608 | *(data + i) = rand (); |
| 19609 | umask (0); |
| 19610 | fd = creat ("conftest.mmap", 0600); |
| 19611 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19612 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19613 | if (write (fd, data, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19614 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19615 | close (fd); |
| 19616 | |
| 19617 | /* Next, try to mmap the file at a fixed address which already has |
| 19618 | something else allocated at it. If we can, also make sure that |
| 19619 | we see the same garbage. */ |
| 19620 | fd = open ("conftest.mmap", O_RDWR); |
| 19621 | if (fd < 0) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19622 | return 1; |
| 19623 | data2 = (char *) malloc (2 * pagesize); |
| 19624 | if (!data2) |
| 19625 | return 1; |
| 19626 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19627 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19628 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19629 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19630 | for (i = 0; i < pagesize; ++i) |
| 19631 | if (*(data + i) != *(data2 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19632 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19633 | |
| 19634 | /* Finally, make sure that changes to the mapped area do not |
| 19635 | percolate back to the file as seen by read(). (This is a bug on |
| 19636 | some variants of i386 svr4.0.) */ |
| 19637 | for (i = 0; i < pagesize; ++i) |
| 19638 | *(data2 + i) = *(data2 + i) + 1; |
| 19639 | data3 = (char *) malloc (pagesize); |
| 19640 | if (!data3) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19641 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19642 | if (read (fd, data3, pagesize) != pagesize) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19643 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19644 | for (i = 0; i < pagesize; ++i) |
| 19645 | if (*(data + i) != *(data3 + i)) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19646 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19647 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19648 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19649 | } |
| 19650 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19651 | rm -f conftest$ac_exeext |
| 19652 | if { (ac_try="$ac_link" |
| 19653 | case "(($ac_try" in |
| 19654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19655 | *) ac_try_echo=$ac_try;; |
| 19656 | esac |
| 19657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19658 | (eval "$ac_link") 2>&5 |
| 19659 | ac_status=$? |
| 19660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19661 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19662 | { (case "(($ac_try" in |
| 19663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19664 | *) ac_try_echo=$ac_try;; |
| 19665 | esac |
| 19666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19667 | (eval "$ac_try") 2>&5 |
| 19668 | ac_status=$? |
| 19669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19670 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19671 | ac_cv_func_mmap_fixed_mapped=yes |
| 19672 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19673 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19674 | echo "$as_me: failed program was:" >&5 |
| 19675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19676 | |
| 19677 | ( exit $ac_status ) |
| 19678 | ac_cv_func_mmap_fixed_mapped=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19679 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19680 | 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] | 19681 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19682 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19683 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19684 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19685 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 19686 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19687 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 19688 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19689 | cat >>confdefs.h <<\_ACEOF |
| 19690 | #define HAVE_MMAP 1 |
| 19691 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19692 | |
| 19693 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19694 | rm -f conftest.mmap |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19695 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19696 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 19697 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
| 19698 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 19699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19700 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19701 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19702 | ac_cpp='$CPP $CPPFLAGS' |
| 19703 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19704 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19705 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19706 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19707 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 19708 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19709 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19710 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19711 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19712 | /* confdefs.h. */ |
| 19713 | _ACEOF |
| 19714 | cat confdefs.h >>conftest.$ac_ext |
| 19715 | cat >>conftest.$ac_ext <<_ACEOF |
| 19716 | /* end confdefs.h. */ |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 19717 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19718 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 19719 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19720 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19721 | |
| 19722 | int |
| 19723 | main () |
| 19724 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19725 | |
| 19726 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19727 | fd = creat ("foo",0777); |
| 19728 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 19729 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 19730 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 19731 | ; |
| 19732 | return 0; |
| 19733 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19734 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19735 | rm -f conftest$ac_exeext |
| 19736 | if { (ac_try="$ac_link" |
| 19737 | case "(($ac_try" in |
| 19738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19739 | *) ac_try_echo=$ac_try;; |
| 19740 | esac |
| 19741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19742 | (eval "$ac_link") 2>&5 |
| 19743 | ac_status=$? |
| 19744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19745 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19746 | { (case "(($ac_try" in |
| 19747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19748 | *) ac_try_echo=$ac_try;; |
| 19749 | esac |
| 19750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19751 | (eval "$ac_try") 2>&5 |
| 19752 | ac_status=$? |
| 19753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19754 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19755 | ac_cv_func_mmap_file=yes |
| 19756 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19757 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19758 | echo "$as_me: failed program was:" >&5 |
| 19759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19760 | |
| 19761 | ( exit $ac_status ) |
| 19762 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19763 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19764 | 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] | 19765 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19766 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19767 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19768 | ac_ext=c |
| 19769 | ac_cpp='$CPP $CPPFLAGS' |
| 19770 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19771 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19772 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19773 | |
| 19774 | |
| 19775 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19776 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 19777 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19778 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 19779 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19780 | cat >>confdefs.h <<\_ACEOF |
| 19781 | #define HAVE_MMAP_FILE |
| 19782 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19783 | |
| 19784 | MMAP_FILE=yes |
| 19785 | |
| 19786 | fi |
| 19787 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19788 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 19789 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
| 19790 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 19791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19792 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 19793 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19794 | ac_cv_need_dev_zero_for_mmap=yes |
| 19795 | else |
| 19796 | ac_cv_need_dev_zero_for_mmap=no |
| 19797 | fi |
| 19798 | |
| 19799 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19800 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 19801 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19802 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 19803 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19804 | cat >>confdefs.h <<\_ACEOF |
| 19805 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 19806 | _ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 19807 | |
| 19808 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19809 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19810 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 19811 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19812 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 19813 | 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] | 19814 | fi |
| 19815 | if test "$ac_cv_func_mmap_file" = "no" |
| 19816 | then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19817 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 19818 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 19819 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 19820 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19821 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19822 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
| 19823 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
| 19824 | cat >conftest.$ac_ext <<_ACEOF |
| 19825 | /* confdefs.h. */ |
| 19826 | _ACEOF |
| 19827 | cat confdefs.h >>conftest.$ac_ext |
| 19828 | cat >>conftest.$ac_ext <<_ACEOF |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19829 | /* end confdefs.h. */ |
| 19830 | int main() { |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19831 | volatile unsigned long val = 1; |
| 19832 | __sync_synchronize(); |
| 19833 | __sync_val_compare_and_swap(&val, 1, 0); |
Owen Anderson | 9a3df67 | 2009-06-17 00:13:00 +0000 | [diff] [blame] | 19834 | __sync_add_and_fetch(&val, 1); |
| 19835 | __sync_sub_and_fetch(&val, 1); |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19836 | return 0; |
| 19837 | } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19838 | |
| 19839 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19840 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19841 | if { (ac_try="$ac_link" |
| 19842 | case "(($ac_try" in |
| 19843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19844 | *) ac_try_echo=$ac_try;; |
| 19845 | esac |
| 19846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19847 | (eval "$ac_link") 2>conftest.er1 |
| 19848 | ac_status=$? |
| 19849 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19850 | rm -f conftest.er1 |
| 19851 | cat conftest.err >&5 |
| 19852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19853 | (exit $ac_status); } && |
| 19854 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19855 | { (case "(($ac_try" in |
| 19856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19857 | *) ac_try_echo=$ac_try;; |
| 19858 | esac |
| 19859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19860 | (eval "$ac_try") 2>&5 |
| 19861 | ac_status=$? |
| 19862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19863 | (exit $ac_status); }; } && |
| 19864 | { ac_try='test -s conftest$ac_exeext' |
| 19865 | { (case "(($ac_try" in |
| 19866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19867 | *) ac_try_echo=$ac_try;; |
| 19868 | esac |
| 19869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19870 | (eval "$ac_try") 2>&5 |
| 19871 | ac_status=$? |
| 19872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19873 | (exit $ac_status); }; }; then |
| 19874 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19875 | echo "${ECHO_T}yes" >&6; } |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19876 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19877 | cat >>confdefs.h <<\_ACEOF |
| 19878 | #define LLVM_MULTITHREADED 1 |
| 19879 | _ACEOF |
Owen Anderson | a860370 | 2009-05-19 22:18:56 +0000 | [diff] [blame] | 19880 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19881 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19882 | echo "$as_me: failed program was:" >&5 |
| 19883 | sed 's/^/| /' conftest.$ac_ext >&5 |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19884 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19885 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19886 | echo "${ECHO_T}no" >&6; } |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19887 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19888 | cat >>confdefs.h <<\_ACEOF |
| 19889 | #define LLVM_MULTITHREADED 0 |
| 19890 | _ACEOF |
| 19891 | |
| 19892 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 19893 | 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] | 19894 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19895 | |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19896 | rm -f core conftest.err conftest.$ac_objext \ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19897 | conftest$ac_exeext conftest.$ac_ext |
Owen Anderson | d4b272b | 2009-05-18 23:58:51 +0000 | [diff] [blame] | 19898 | |
| 19899 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 19900 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19901 | 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] | 19902 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 19903 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 19904 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 19905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19906 | else |
| 19907 | ac_ext=c |
| 19908 | ac_cpp='$CPP $CPPFLAGS' |
| 19909 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19910 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19911 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19912 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19913 | cat >conftest.$ac_ext <<_ACEOF |
| 19914 | /* confdefs.h. */ |
| 19915 | _ACEOF |
| 19916 | cat confdefs.h >>conftest.$ac_ext |
| 19917 | cat >>conftest.$ac_ext <<_ACEOF |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19918 | /* end confdefs.h. */ |
| 19919 | #ifndef __x86_64__ |
| 19920 | error: Not x86-64 even if uname says so! |
| 19921 | #endif |
| 19922 | |
| 19923 | int |
| 19924 | main () |
| 19925 | { |
| 19926 | |
| 19927 | ; |
| 19928 | return 0; |
| 19929 | } |
| 19930 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19931 | rm -f conftest.$ac_objext |
| 19932 | if { (ac_try="$ac_compile" |
| 19933 | case "(($ac_try" in |
| 19934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19935 | *) ac_try_echo=$ac_try;; |
| 19936 | esac |
| 19937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19938 | (eval "$ac_compile") 2>conftest.er1 |
| 19939 | ac_status=$? |
| 19940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19941 | rm -f conftest.er1 |
| 19942 | cat conftest.err >&5 |
| 19943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19944 | (exit $ac_status); } && |
| 19945 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19946 | { (case "(($ac_try" in |
| 19947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19948 | *) ac_try_echo=$ac_try;; |
| 19949 | esac |
| 19950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19951 | (eval "$ac_try") 2>&5 |
| 19952 | ac_status=$? |
| 19953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19954 | (exit $ac_status); }; } && |
| 19955 | { ac_try='test -s conftest.$ac_objext' |
| 19956 | { (case "(($ac_try" in |
| 19957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19958 | *) ac_try_echo=$ac_try;; |
| 19959 | esac |
| 19960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19961 | (eval "$ac_try") 2>&5 |
| 19962 | ac_status=$? |
| 19963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19964 | (exit $ac_status); }; }; then |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19965 | llvm_cv_linux_mixed=no |
| 19966 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19967 | echo "$as_me: failed program was:" >&5 |
| 19968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19969 | |
| 19970 | llvm_cv_linux_mixed=yes |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19971 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19972 | |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19974 | ac_ext=c |
| 19975 | ac_cpp='$CPP $CPPFLAGS' |
| 19976 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19977 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19978 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19979 | |
| 19980 | |
| 19981 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19982 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 19983 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
Nick Lewycky | 4372e69 | 2009-09-29 06:18:23 +0000 | [diff] [blame] | 19984 | |
| 19985 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 19986 | llvm_cv_target_arch="x86" |
| 19987 | ARCH="x86" |
| 19988 | fi |
| 19989 | fi |
| 19990 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19991 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 19992 | for ac_func in __dso_handle |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 19993 | do |
| 19994 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19995 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19996 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 19997 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19999 | else |
| 20000 | cat >conftest.$ac_ext <<_ACEOF |
| 20001 | /* confdefs.h. */ |
| 20002 | _ACEOF |
| 20003 | cat confdefs.h >>conftest.$ac_ext |
| 20004 | cat >>conftest.$ac_ext <<_ACEOF |
| 20005 | /* end confdefs.h. */ |
| 20006 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20007 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20008 | #define $ac_func innocuous_$ac_func |
| 20009 | |
| 20010 | /* System header to define __stub macros and hopefully few prototypes, |
| 20011 | which can conflict with char $ac_func (); below. |
| 20012 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20013 | <limits.h> exists even on freestanding compilers. */ |
| 20014 | |
| 20015 | #ifdef __STDC__ |
| 20016 | # include <limits.h> |
| 20017 | #else |
| 20018 | # include <assert.h> |
| 20019 | #endif |
| 20020 | |
| 20021 | #undef $ac_func |
| 20022 | |
| 20023 | /* Override any GCC internal prototype to avoid an error. |
| 20024 | Use char because int might match the return type of a GCC |
| 20025 | builtin and then its argument prototype would still apply. */ |
| 20026 | #ifdef __cplusplus |
| 20027 | extern "C" |
| 20028 | #endif |
| 20029 | char $ac_func (); |
| 20030 | /* The GNU C library defines this for functions which it implements |
| 20031 | to always fail with ENOSYS. Some functions are actually named |
| 20032 | something starting with __ and the normal name is an alias. */ |
| 20033 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20034 | choke me |
| 20035 | #endif |
| 20036 | |
| 20037 | int |
| 20038 | main () |
| 20039 | { |
| 20040 | return $ac_func (); |
| 20041 | ; |
| 20042 | return 0; |
| 20043 | } |
| 20044 | _ACEOF |
| 20045 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20046 | if { (ac_try="$ac_link" |
| 20047 | case "(($ac_try" in |
| 20048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20049 | *) ac_try_echo=$ac_try;; |
| 20050 | esac |
| 20051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20052 | (eval "$ac_link") 2>conftest.er1 |
| 20053 | ac_status=$? |
| 20054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20055 | rm -f conftest.er1 |
| 20056 | cat conftest.err >&5 |
| 20057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20058 | (exit $ac_status); } && |
| 20059 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20060 | { (case "(($ac_try" in |
| 20061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20062 | *) ac_try_echo=$ac_try;; |
| 20063 | esac |
| 20064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20065 | (eval "$ac_try") 2>&5 |
| 20066 | ac_status=$? |
| 20067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20068 | (exit $ac_status); }; } && |
| 20069 | { ac_try='test -s conftest$ac_exeext' |
| 20070 | { (case "(($ac_try" in |
| 20071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20072 | *) ac_try_echo=$ac_try;; |
| 20073 | esac |
| 20074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20075 | (eval "$ac_try") 2>&5 |
| 20076 | ac_status=$? |
| 20077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20078 | (exit $ac_status); }; }; then |
| 20079 | eval "$as_ac_var=yes" |
| 20080 | else |
| 20081 | echo "$as_me: failed program was:" >&5 |
| 20082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20083 | |
| 20084 | eval "$as_ac_var=no" |
| 20085 | fi |
| 20086 | |
| 20087 | rm -f core conftest.err conftest.$ac_objext \ |
| 20088 | conftest$ac_exeext conftest.$ac_ext |
| 20089 | fi |
| 20090 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20091 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20092 | echo "${ECHO_T}$ac_res" >&6; } |
| 20093 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20094 | cat >>confdefs.h <<_ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20095 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 20096 | _ACEOF |
| 20097 | |
| 20098 | fi |
| 20099 | done |
| 20100 | |
| 20101 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20102 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 20103 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
| 20104 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 20105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20106 | else |
| 20107 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 20108 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20109 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 20110 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 20111 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20112 | if test $? -eq 0 ; then |
| 20113 | llvm_cv_llvmgcc_sanity="yes" |
| 20114 | fi |
| 20115 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 20116 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20117 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20118 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 20119 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20120 | |
| 20121 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20122 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 20123 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 20124 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20125 | LLVMCC1=$llvmcc1path |
| 20126 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 20127 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20128 | LLVMCC1PLUS=$llvmcc1pluspath |
| 20129 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 20130 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 20131 | LLVMGCCDIR=$llvmgccdir |
| 20132 | |
Tanya Lattner | f85e74c | 2008-10-07 22:21:03 +0000 | [diff] [blame] | 20133 | 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] | 20134 | LLVMGCC_LANGS=$llvmgcclangs |
| 20135 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20136 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 20137 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 20138 | fi |
| 20139 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20140 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 20141 | |
| 20142 | |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 20143 | SHLIBPATH_VAR=$libltdl_cv_shlibpath_var |
| 20144 | |
| 20145 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20146 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20147 | # information into substitutions that will end up in Makefile.config.in |
| 20148 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 20149 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 20150 | prefix="/usr/local" |
| 20151 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20152 | eval LLVM_PREFIX="${prefix}"; |
| 20153 | eval LLVM_BINDIR="${prefix}/bin"; |
| 20154 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20155 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
Eric Christopher | ec27496 | 2010-03-02 05:17:21 +0000 | [diff] [blame] | 20156 | eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 20157 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20158 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 20159 | eval LLVM_INFODIR="${prefix}/info"; |
| 20160 | eval LLVM_MANDIR="${prefix}/man"; |
| 20161 | LLVM_CONFIGTIME=`date` |
| 20162 | |
| 20163 | |
| 20164 | |
| 20165 | |
| 20166 | |
| 20167 | |
| 20168 | |
| 20169 | |
| 20170 | |
| 20171 | |
| 20172 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20173 | # Place the various directores into the config.h file as #defines so that we |
| 20174 | # can know about the installation paths within LLVM. |
| 20175 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20176 | cat >>confdefs.h <<_ACEOF |
| 20177 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 20178 | _ACEOF |
| 20179 | |
| 20180 | |
| 20181 | cat >>confdefs.h <<_ACEOF |
| 20182 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 20183 | _ACEOF |
| 20184 | |
| 20185 | |
| 20186 | cat >>confdefs.h <<_ACEOF |
| 20187 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 20188 | _ACEOF |
| 20189 | |
| 20190 | |
| 20191 | cat >>confdefs.h <<_ACEOF |
| 20192 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 20193 | _ACEOF |
| 20194 | |
| 20195 | |
| 20196 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 20197 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20198 | _ACEOF |
| 20199 | |
| 20200 | |
| 20201 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 20202 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 20203 | _ACEOF |
| 20204 | |
| 20205 | |
| 20206 | cat >>confdefs.h <<_ACEOF |
| 20207 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 20208 | _ACEOF |
| 20209 | |
| 20210 | |
| 20211 | cat >>confdefs.h <<_ACEOF |
| 20212 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 20213 | _ACEOF |
| 20214 | |
| 20215 | |
| 20216 | cat >>confdefs.h <<_ACEOF |
| 20217 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 20218 | _ACEOF |
| 20219 | |
| 20220 | |
| 20221 | cat >>confdefs.h <<_ACEOF |
| 20222 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 20223 | _ACEOF |
| 20224 | |
| 20225 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 20226 | cat >>confdefs.h <<_ACEOF |
| 20227 | #define LLVM_HOSTTRIPLE "$host" |
| 20228 | _ACEOF |
| 20229 | |
| 20230 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 20231 | # Determine which bindings to build. |
| 20232 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 20233 | BINDINGS_TO_BUILD="" |
| 20234 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 20235 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 20236 | fi |
| 20237 | fi |
| 20238 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 20239 | |
| 20240 | |
| 20241 | # This isn't really configurey, but it avoids having to repeat the list in |
| 20242 | # other files. |
| 20243 | ALL_BINDINGS=ocaml |
| 20244 | |
| 20245 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20246 | # Do any work necessary to ensure that bindings have what they need. |
| 20247 | binding_prereqs_failed=0 |
| 20248 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 20249 | case "$a_binding" in |
| 20250 | ocaml) |
| 20251 | if test "x$OCAMLC" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20252 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 20253 | 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] | 20254 | binding_prereqs_failed=1 |
| 20255 | fi |
| 20256 | if test "x$OCAMLDEP" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20257 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 20258 | 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] | 20259 | binding_prereqs_failed=1 |
| 20260 | fi |
| 20261 | if test "x$OCAMLOPT" = x ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20262 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 20263 | 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] | 20264 | fi |
| 20265 | if test "x$with_ocaml_libdir" != xauto ; then |
| 20266 | OCAML_LIBDIR=$with_ocaml_libdir |
| 20267 | |
| 20268 | else |
| 20269 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 20270 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 20271 | then |
| 20272 | # ocaml stdlib is beneath our prefix; use stdlib |
| 20273 | OCAML_LIBDIR=$ocaml_stdlib |
| 20274 | |
| 20275 | else |
| 20276 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 20277 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 20278 | |
| 20279 | fi |
| 20280 | fi |
| 20281 | ;; |
| 20282 | esac |
| 20283 | done |
| 20284 | if test "$binding_prereqs_failed" = 1 ; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20285 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 20286 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 20287 | { (exit 1); exit 1; }; } |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20288 | fi |
| 20289 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20290 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 20291 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 20292 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 20293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20294 | else |
| 20295 | ac_ext=cpp |
| 20296 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20297 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20298 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20299 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20300 | |
| 20301 | oldcxxflags="$CXXFLAGS" |
| 20302 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20303 | cat >conftest.$ac_ext <<_ACEOF |
| 20304 | /* confdefs.h. */ |
| 20305 | _ACEOF |
| 20306 | cat confdefs.h >>conftest.$ac_ext |
| 20307 | cat >>conftest.$ac_ext <<_ACEOF |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20308 | /* end confdefs.h. */ |
| 20309 | |
| 20310 | int |
| 20311 | main () |
| 20312 | { |
| 20313 | |
| 20314 | ; |
| 20315 | return 0; |
| 20316 | } |
| 20317 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20318 | rm -f conftest.$ac_objext |
| 20319 | if { (ac_try="$ac_compile" |
| 20320 | case "(($ac_try" in |
| 20321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20322 | *) ac_try_echo=$ac_try;; |
| 20323 | esac |
| 20324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20325 | (eval "$ac_compile") 2>conftest.er1 |
| 20326 | ac_status=$? |
| 20327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20328 | rm -f conftest.er1 |
| 20329 | cat conftest.err >&5 |
| 20330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20331 | (exit $ac_status); } && |
| 20332 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 20333 | { (case "(($ac_try" in |
| 20334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20335 | *) ac_try_echo=$ac_try;; |
| 20336 | esac |
| 20337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20338 | (eval "$ac_try") 2>&5 |
| 20339 | ac_status=$? |
| 20340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20341 | (exit $ac_status); }; } && |
| 20342 | { ac_try='test -s conftest.$ac_objext' |
| 20343 | { (case "(($ac_try" in |
| 20344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20345 | *) ac_try_echo=$ac_try;; |
| 20346 | esac |
| 20347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20348 | (eval "$ac_try") 2>&5 |
| 20349 | ac_status=$? |
| 20350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20351 | (exit $ac_status); }; }; then |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20352 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 20353 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20354 | echo "$as_me: failed program was:" >&5 |
| 20355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20356 | |
| 20357 | llvm_cv_cxx_visibility_inlines_hidden=no |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20358 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20359 | |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20361 | CXXFLAGS="$oldcxxflags" |
| 20362 | ac_ext=c |
| 20363 | ac_cpp='$CPP $CPPFLAGS' |
| 20364 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20365 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20366 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20367 | |
| 20368 | |
| 20369 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20370 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 20371 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
Daniel Dunbar | dcf114e | 2008-08-30 01:16:19 +0000 | [diff] [blame] | 20372 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 20373 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 20374 | |
| 20375 | else |
| 20376 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 20377 | |
| 20378 | fi |
| 20379 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 20380 | |
Nick Lewycky | 731c6ab | 2009-03-05 08:20:44 +0000 | [diff] [blame] | 20381 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 20382 | RPATH="-Wl,-R" |
| 20383 | else |
| 20384 | RPATH="-Wl,-rpath" |
| 20385 | fi |
| 20386 | |
| 20387 | |
| 20388 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 20389 | RDYNAMIC="-Wl,-export-dynamic" |
| 20390 | else |
| 20391 | RDYNAMIC="" |
| 20392 | fi |
Nick Lewycky | e9821dc | 2009-03-03 04:55:29 +0000 | [diff] [blame] | 20393 | |
| 20394 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20395 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20396 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20397 | |
Douglas Gregor | 1555a23 | 2009-06-16 20:12:29 +0000 | [diff] [blame] | 20398 | ac_config_files="$ac_config_files include/llvm/Config/Targets.def" |
| 20399 | |
| 20400 | ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" |
| 20401 | |
Jeffrey Yasskin | afa709d | 2009-07-17 21:33:35 +0000 | [diff] [blame] | 20402 | ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" |
| 20403 | |
Daniel Dunbar | 4fc760e | 2009-11-25 04:37:28 +0000 | [diff] [blame] | 20404 | ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" |
| 20405 | |
Chandler Carruth | 8b67f77 | 2009-10-26 01:35:46 +0000 | [diff] [blame] | 20406 | ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20407 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20408 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20409 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20410 | |
| 20411 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 20412 | ac_config_files="$ac_config_files llvm.spec" |
| 20413 | |
| 20414 | |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 20415 | ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td" |
| 20416 | |
| 20417 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20418 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 20419 | |
| 20420 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20421 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 20422 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20423 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20424 | |
| 20425 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20426 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20427 | |
| 20428 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20429 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20430 | |
| 20431 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20432 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20433 | |
| 20434 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 20435 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 20436 | |
| 20437 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20438 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20439 | |
| 20440 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20441 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20442 | |
| 20443 | |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 20444 | ac_config_commands="$ac_config_commands unittests/Makefile" |
| 20445 | |
| 20446 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20447 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20448 | |
| 20449 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20450 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20451 | |
| 20452 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20453 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20454 | |
| 20455 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 20456 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 20457 | |
| 20458 | |
| 20459 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 20460 | |
| 20461 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 20462 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20463 | cat >confcache <<\_ACEOF |
| 20464 | # This file is a shell script that caches the results of configure |
| 20465 | # tests run on this system so they can be shared between configure |
| 20466 | # scripts and configure runs, see configure's option --config-cache. |
| 20467 | # It is not useful on other systems. If it contains results you don't |
| 20468 | # want to keep, you may remove or edit it. |
| 20469 | # |
| 20470 | # config.status only pays attention to the cache file if you give it |
| 20471 | # the --recheck option to rerun configure. |
| 20472 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20473 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20474 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20475 | # following values. |
| 20476 | |
| 20477 | _ACEOF |
| 20478 | |
| 20479 | # The following way of writing the cache mishandles newlines in values, |
| 20480 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20481 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20482 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20483 | # 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] | 20484 | ( |
| 20485 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 20486 | eval ac_val=\$$ac_var |
| 20487 | case $ac_val in #( |
| 20488 | *${as_nl}*) |
| 20489 | case $ac_var in #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20490 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 20491 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20492 | esac |
| 20493 | case $ac_var in #( |
| 20494 | _ | IFS | as_nl) ;; #( |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20495 | *) $as_unset $ac_var ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20496 | esac ;; |
| 20497 | esac |
| 20498 | done |
| 20499 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20500 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20501 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 20502 | *${as_nl}ac_space=\ *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20503 | # `set' does not quote correctly, so add quotes (double-quote |
| 20504 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20505 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20506 | "s/'/'\\\\''/g; |
| 20507 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20508 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20509 | *) |
| 20510 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20511 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20512 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20513 | esac | |
| 20514 | sort |
| 20515 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20516 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20517 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20518 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20519 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20520 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 20521 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20522 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20523 | :end' >>confcache |
| 20524 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 20525 | if test -w "$cache_file"; then |
| 20526 | test "x$cache_file" != "x/dev/null" && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20527 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 20528 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20529 | cat confcache >$cache_file |
| 20530 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20531 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 20532 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20533 | fi |
| 20534 | fi |
| 20535 | rm -f confcache |
| 20536 | |
| 20537 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20538 | # Let make expand exec_prefix. |
| 20539 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 20540 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20541 | DEFS=-DHAVE_CONFIG_H |
| 20542 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20543 | ac_libobjs= |
| 20544 | ac_ltlibobjs= |
| 20545 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20546 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20547 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20548 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20549 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 20550 | # will be set to the directory where LIBOBJS objects are built. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20551 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 20552 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20553 | done |
| 20554 | LIBOBJS=$ac_libobjs |
| 20555 | |
| 20556 | LTLIBOBJS=$ac_ltlibobjs |
| 20557 | |
| 20558 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20559 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20560 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 20561 | Usually this means the macro was only invoked conditionally." >&5 |
| 20562 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 20563 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20564 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20565 | fi |
| 20566 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20567 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 20568 | Usually this means the macro was only invoked conditionally." >&5 |
| 20569 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 20570 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20571 | { (exit 1); exit 1; }; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 20572 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20573 | |
| 20574 | : ${CONFIG_STATUS=./config.status} |
| 20575 | ac_clean_files_save=$ac_clean_files |
| 20576 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20577 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 20578 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20579 | cat >$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20580 | #! $SHELL |
| 20581 | # Generated by $as_me. |
| 20582 | # Run this file to recreate the current configuration. |
| 20583 | # Compiler output produced by configure, useful for debugging |
| 20584 | # configure, is in config.log if it exists. |
| 20585 | |
| 20586 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20587 | ac_cs_recheck=false |
| 20588 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20589 | SHELL=\${CONFIG_SHELL-$SHELL} |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20590 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20591 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20592 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20593 | ## --------------------- ## |
| 20594 | ## M4sh Initialization. ## |
| 20595 | ## --------------------- ## |
| 20596 | |
| 20597 | # Be Bourne compatible |
| 20598 | 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] | 20599 | emulate sh |
| 20600 | NULLCMD=: |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20601 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20602 | # is contrary to our usage. Disable this feature. |
| 20603 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20604 | setopt NO_GLOB_SUBST |
| 20605 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20606 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20607 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20608 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 20609 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20610 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20611 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20612 | # PATH needs CR |
| 20613 | # Avoid depending upon Character Ranges. |
| 20614 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20615 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20616 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20617 | as_cr_digits='0123456789' |
| 20618 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20619 | |
| 20620 | # The user is always right. |
| 20621 | if test "${PATH_SEPARATOR+set}" != set; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20622 | echo "#! /bin/sh" >conf$$.sh |
| 20623 | echo "exit 0" >>conf$$.sh |
| 20624 | chmod +x conf$$.sh |
| 20625 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 20626 | PATH_SEPARATOR=';' |
| 20627 | else |
| 20628 | PATH_SEPARATOR=: |
| 20629 | fi |
| 20630 | rm -f conf$$.sh |
| 20631 | fi |
| 20632 | |
| 20633 | # Support unset when possible. |
| 20634 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 20635 | as_unset=unset |
| 20636 | else |
| 20637 | as_unset=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20638 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20639 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20640 | |
| 20641 | # IFS |
| 20642 | # We need space, tab and new line, in precisely that order. Quoting is |
| 20643 | # there to prevent editors from complaining about space-tab. |
| 20644 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 20645 | # splitting by setting IFS to empty value.) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20646 | as_nl=' |
| 20647 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20648 | IFS=" "" $as_nl" |
| 20649 | |
| 20650 | # 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] | 20651 | case $0 in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20652 | *[\\/]* ) as_myself=$0 ;; |
| 20653 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20654 | for as_dir in $PATH |
| 20655 | do |
| 20656 | IFS=$as_save_IFS |
| 20657 | test -z "$as_dir" && as_dir=. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20658 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20659 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20660 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20661 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20662 | ;; |
| 20663 | esac |
| 20664 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20665 | # in which case we are not to be found in the path. |
| 20666 | if test "x$as_myself" = x; then |
| 20667 | as_myself=$0 |
| 20668 | fi |
| 20669 | if test ! -f "$as_myself"; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20670 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 20671 | { (exit 1); exit 1; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20672 | fi |
| 20673 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20674 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20675 | for as_var in ENV MAIL MAILPATH |
| 20676 | 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] | 20677 | done |
| 20678 | PS1='$ ' |
| 20679 | PS2='> ' |
| 20680 | PS4='+ ' |
| 20681 | |
| 20682 | # NLS nuisances. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20683 | for as_var in \ |
| 20684 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20685 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20686 | LC_TELEPHONE LC_TIME |
| 20687 | do |
| 20688 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 20689 | eval $as_var=C; export $as_var |
| 20690 | else |
| 20691 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20692 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20693 | done |
Torok Edwin | 871384f | 2010-01-26 08:50:50 +0000 | [diff] [blame] | 20694 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20695 | # Required to use basename. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20696 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20697 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20698 | as_expr=expr |
| 20699 | else |
| 20700 | as_expr=false |
| 20701 | fi |
| 20702 | |
| 20703 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 20704 | as_basename=basename |
| 20705 | else |
| 20706 | as_basename=false |
| 20707 | fi |
| 20708 | |
| 20709 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20710 | # Name of the executable. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20711 | as_me=`$as_basename -- "$0" || |
| 20712 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20713 | X"$0" : 'X\(//\)$' \| \ |
| 20714 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20715 | echo X/"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20716 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 20717 | s//\1/ |
| 20718 | q |
| 20719 | } |
| 20720 | /^X\/\(\/\/\)$/{ |
| 20721 | s//\1/ |
| 20722 | q |
| 20723 | } |
| 20724 | /^X\/\(\/\).*/{ |
| 20725 | s//\1/ |
| 20726 | q |
| 20727 | } |
| 20728 | s/.*/./; q'` |
| 20729 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20730 | # CDPATH. |
| 20731 | $as_unset CDPATH |
| 20732 | |
| 20733 | |
| 20734 | |
| 20735 | as_lineno_1=$LINENO |
| 20736 | as_lineno_2=$LINENO |
| 20737 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20738 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 20739 | |
| 20740 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20741 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 20742 | # line-number line after each line using $LINENO; the second 'sed' |
| 20743 | # does the real work. The second script uses 'N' to pair each |
| 20744 | # line-number line with the line containing $LINENO, and appends |
| 20745 | # trailing '-' during substitution so that $LINENO is not a special |
| 20746 | # case at line end. |
| 20747 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 20748 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 20749 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 20750 | sed -n ' |
| 20751 | p |
| 20752 | /[$]LINENO/= |
| 20753 | ' <$as_myself | |
| 20754 | sed ' |
| 20755 | s/[$]LINENO.*/&-/ |
| 20756 | t lineno |
| 20757 | b |
| 20758 | :lineno |
| 20759 | N |
| 20760 | :loop |
| 20761 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 20762 | t loop |
| 20763 | s/-\n.*// |
| 20764 | ' >$as_me.lineno && |
| 20765 | chmod +x "$as_me.lineno" || |
| 20766 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 20767 | { (exit 1); exit 1; }; } |
| 20768 | |
| 20769 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20770 | # (the dirname of $[0] is not the place where we might find the |
| 20771 | # original and so on. Autoconf is especially sensitive to this). |
| 20772 | . "./$as_me.lineno" |
| 20773 | # Exit status is that of the last command. |
| 20774 | exit |
| 20775 | } |
| 20776 | |
| 20777 | |
| 20778 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 20779 | as_dirname=dirname |
| 20780 | else |
| 20781 | as_dirname=false |
| 20782 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20783 | |
| 20784 | ECHO_C= ECHO_N= ECHO_T= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20785 | case `echo -n x` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20786 | -n*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20787 | case `echo 'x\c'` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20788 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20789 | *) ECHO_C='\c';; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20790 | esac;; |
| 20791 | *) |
| 20792 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20793 | esac |
| 20794 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20795 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20796 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20797 | as_expr=expr |
| 20798 | else |
| 20799 | as_expr=false |
| 20800 | fi |
| 20801 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20802 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20803 | if test -d conf$$.dir; then |
| 20804 | rm -f conf$$.dir/conf$$.file |
| 20805 | else |
| 20806 | rm -f conf$$.dir |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20807 | mkdir conf$$.dir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20808 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20809 | echo >conf$$.file |
| 20810 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20811 | as_ln_s='ln -s' |
| 20812 | # ... but there are two gotchas: |
| 20813 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 20814 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 20815 | # In both cases, we have to default to `cp -p'. |
| 20816 | 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] | 20817 | as_ln_s='cp -p' |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20818 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20819 | as_ln_s=ln |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20820 | else |
| 20821 | as_ln_s='cp -p' |
| 20822 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20823 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 20824 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20825 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20826 | if mkdir -p . 2>/dev/null; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20827 | as_mkdir_p=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20828 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20829 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20830 | as_mkdir_p=false |
| 20831 | fi |
| 20832 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20833 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 20834 | # systems may use methods other than mode bits to determine executability. |
| 20835 | cat >conf$$.file <<_ASEOF |
| 20836 | #! /bin/sh |
| 20837 | exit 0 |
| 20838 | _ASEOF |
| 20839 | chmod +x conf$$.file |
| 20840 | if test -x conf$$.file >/dev/null 2>&1; then |
| 20841 | as_executable_p="test -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20842 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20843 | as_executable_p=: |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20844 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20845 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20846 | |
| 20847 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20848 | 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] | 20849 | |
| 20850 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20851 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20852 | |
| 20853 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20854 | exec 6>&1 |
| 20855 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20856 | # 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] | 20857 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20858 | # values after options handling. |
| 20859 | ac_log=" |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 20860 | This file was extended by llvm $as_me 2.8svn, which was |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20861 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20862 | |
| 20863 | CONFIG_FILES = $CONFIG_FILES |
| 20864 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20865 | CONFIG_LINKS = $CONFIG_LINKS |
| 20866 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20867 | $ $0 $@ |
| 20868 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20869 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 20870 | " |
| 20871 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20872 | _ACEOF |
| 20873 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20874 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20875 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20876 | config_files="$ac_config_files" |
| 20877 | config_headers="$ac_config_headers" |
| 20878 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20879 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20880 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20881 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20882 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20883 | ac_cs_usage="\ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20884 | \`$as_me' instantiates files from templates according to the |
| 20885 | current configuration. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20886 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20887 | Usage: $0 [OPTIONS] [FILE]... |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20888 | |
| 20889 | -h, --help print this help, then exit |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20890 | -V, --version print version number, then exit |
| 20891 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20892 | -d, --debug don't remove temporary files |
| 20893 | --recheck update $as_me by reconfiguring in the same conditions |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20894 | --file=FILE[:TEMPLATE] |
| 20895 | instantiate the configuration file FILE |
| 20896 | --header=FILE[:TEMPLATE] |
| 20897 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20898 | |
| 20899 | Configuration files: |
| 20900 | $config_files |
| 20901 | |
| 20902 | Configuration headers: |
| 20903 | $config_headers |
| 20904 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 20905 | Configuration commands: |
| 20906 | $config_commands |
| 20907 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20908 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20909 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20910 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20911 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20912 | ac_cs_version="\\ |
Tanya Lattner | dc29dff | 2010-03-19 21:22:13 +0000 | [diff] [blame] | 20913 | llvm config.status 2.8svn |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20914 | configured by $0, generated by GNU Autoconf 2.60, |
| 20915 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20916 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20917 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20918 | This config.status script is free software; the Free Software Foundation |
| 20919 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20920 | |
| 20921 | ac_pwd='$ac_pwd' |
| 20922 | srcdir='$srcdir' |
| 20923 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20924 | _ACEOF |
| 20925 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20926 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20927 | # If no file are specified by the user, then we need to provide default |
| 20928 | # 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] | 20929 | ac_need_defaults=: |
| 20930 | while test $# != 0 |
| 20931 | do |
| 20932 | case $1 in |
| 20933 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20934 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 20935 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20936 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20937 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20938 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20939 | ac_option=$1 |
| 20940 | ac_optarg=$2 |
| 20941 | ac_shift=shift |
| 20942 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20943 | esac |
| 20944 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20945 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20946 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20947 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 20948 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20949 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20950 | echo "$ac_cs_version"; exit ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20951 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20952 | debug=: ;; |
| 20953 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20954 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20955 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20956 | ac_need_defaults=false;; |
| 20957 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20958 | $ac_shift |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20959 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20960 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20961 | --he | --h) |
| 20962 | # Conflict between --help and --header |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20963 | { echo "$as_me: error: ambiguous option: $1 |
| 20964 | Try \`$0 --help' for more information." >&2 |
| 20965 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20966 | --help | --hel | -h ) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20967 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20968 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 20969 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 20970 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20971 | |
| 20972 | # This is an error. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20973 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 20974 | Try \`$0 --help' for more information." >&2 |
| 20975 | { (exit 1); exit 1; }; } ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20976 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20977 | *) ac_config_targets="$ac_config_targets $1" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20978 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 20979 | |
| 20980 | esac |
| 20981 | shift |
| 20982 | done |
| 20983 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20984 | ac_configure_extra_args= |
| 20985 | |
| 20986 | if $ac_cs_silent; then |
| 20987 | exec 6>/dev/null |
| 20988 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20989 | fi |
| 20990 | |
| 20991 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20992 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20993 | if \$ac_cs_recheck; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20994 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 20995 | CONFIG_SHELL=$SHELL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20996 | export CONFIG_SHELL |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 20997 | 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] | 20998 | fi |
| 20999 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21000 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21001 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21002 | exec 5>>config.log |
| 21003 | { |
| 21004 | echo |
| 21005 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 21006 | ## Running $as_me. ## |
| 21007 | _ASBOX |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21008 | echo "$ac_log" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21009 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21010 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21011 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21012 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21013 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21014 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21015 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 21016 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21017 | |
| 21018 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21019 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21020 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21021 | |
| 21022 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21023 | for ac_config_target in $ac_config_targets |
| 21024 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21025 | case $ac_config_target in |
| 21026 | "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] | 21027 | "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; |
| 21028 | "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] | 21029 | "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] | 21030 | "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] | 21031 | "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] | 21032 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 21033 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Mikhail Glushenkov | 4558f48 | 2009-04-21 19:46:10 +0000 | [diff] [blame] | 21034 | "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] | 21035 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 21036 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 21037 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 21038 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 21039 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 21040 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 21041 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21042 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 21043 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
Bill Wendling | f24eb39 | 2009-01-04 23:12:30 +0000 | [diff] [blame] | 21044 | "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21045 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 21046 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 21047 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 21048 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 21049 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21050 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21051 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 21052 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 21053 | { (exit 1); exit 1; }; };; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21054 | esac |
| 21055 | done |
| 21056 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21057 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21058 | # If the user did not use the arguments to specify the items to instantiate, |
| 21059 | # then the envvar interface is used. Set only those that are not. |
| 21060 | # We use the long form for the default assignment because of an extremely |
| 21061 | # bizarre bug on SunOS 4.1.3. |
| 21062 | if $ac_need_defaults; then |
| 21063 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 21064 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21065 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21066 | fi |
| 21067 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21068 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21069 | # 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] | 21070 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21071 | # Hook for its removal unless debugging. |
| 21072 | # Note that there is a small window in which the directory will not be cleaned: |
| 21073 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21074 | $debug || |
| 21075 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21076 | tmp= |
| 21077 | trap 'exit_status=$? |
| 21078 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 21079 | ' 0 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21080 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21081 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21082 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21083 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21084 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21085 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21086 | test -n "$tmp" && test -d "$tmp" |
| 21087 | } || |
| 21088 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21089 | tmp=./conf$$-$RANDOM |
| 21090 | (umask 077 && mkdir "$tmp") |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21091 | } || |
| 21092 | { |
| 21093 | echo "$me: cannot create a temporary directory in ." >&2 |
| 21094 | { (exit 1); exit 1; } |
| 21095 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21096 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21097 | # |
| 21098 | # Set up the sed scripts for CONFIG_FILES section. |
| 21099 | # |
| 21100 | |
| 21101 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 21102 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21103 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21104 | |
| 21105 | _ACEOF |
| 21106 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21107 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21108 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21109 | ac_delim='%!_!# ' |
| 21110 | for ac_last_try in false false false false false :; do |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21111 | cat >conf$$subs.sed <<_ACEOF |
| 21112 | SHELL!$SHELL$ac_delim |
| 21113 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 21114 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 21115 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 21116 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 21117 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 21118 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 21119 | exec_prefix!$exec_prefix$ac_delim |
| 21120 | prefix!$prefix$ac_delim |
| 21121 | program_transform_name!$program_transform_name$ac_delim |
| 21122 | bindir!$bindir$ac_delim |
| 21123 | sbindir!$sbindir$ac_delim |
| 21124 | libexecdir!$libexecdir$ac_delim |
| 21125 | datarootdir!$datarootdir$ac_delim |
| 21126 | datadir!$datadir$ac_delim |
| 21127 | sysconfdir!$sysconfdir$ac_delim |
| 21128 | sharedstatedir!$sharedstatedir$ac_delim |
| 21129 | localstatedir!$localstatedir$ac_delim |
| 21130 | includedir!$includedir$ac_delim |
| 21131 | oldincludedir!$oldincludedir$ac_delim |
| 21132 | docdir!$docdir$ac_delim |
| 21133 | infodir!$infodir$ac_delim |
| 21134 | htmldir!$htmldir$ac_delim |
| 21135 | dvidir!$dvidir$ac_delim |
| 21136 | pdfdir!$pdfdir$ac_delim |
| 21137 | psdir!$psdir$ac_delim |
| 21138 | libdir!$libdir$ac_delim |
| 21139 | localedir!$localedir$ac_delim |
| 21140 | mandir!$mandir$ac_delim |
| 21141 | DEFS!$DEFS$ac_delim |
| 21142 | ECHO_C!$ECHO_C$ac_delim |
| 21143 | ECHO_N!$ECHO_N$ac_delim |
| 21144 | ECHO_T!$ECHO_T$ac_delim |
| 21145 | LIBS!$LIBS$ac_delim |
| 21146 | build_alias!$build_alias$ac_delim |
| 21147 | host_alias!$host_alias$ac_delim |
| 21148 | target_alias!$target_alias$ac_delim |
| 21149 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 21150 | subdirs!$subdirs$ac_delim |
| 21151 | build!$build$ac_delim |
| 21152 | build_cpu!$build_cpu$ac_delim |
| 21153 | build_vendor!$build_vendor$ac_delim |
| 21154 | build_os!$build_os$ac_delim |
| 21155 | host!$host$ac_delim |
| 21156 | host_cpu!$host_cpu$ac_delim |
| 21157 | host_vendor!$host_vendor$ac_delim |
| 21158 | host_os!$host_os$ac_delim |
| 21159 | target!$target$ac_delim |
| 21160 | target_cpu!$target_cpu$ac_delim |
| 21161 | target_vendor!$target_vendor$ac_delim |
| 21162 | target_os!$target_os$ac_delim |
| 21163 | OS!$OS$ac_delim |
| 21164 | HOST_OS!$HOST_OS$ac_delim |
| 21165 | TARGET_OS!$TARGET_OS$ac_delim |
| 21166 | LINKALL!$LINKALL$ac_delim |
| 21167 | NOLINKALL!$NOLINKALL$ac_delim |
| 21168 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 21169 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 21170 | ARCH!$ARCH$ac_delim |
| 21171 | ENDIAN!$ENDIAN$ac_delim |
| 21172 | CC!$CC$ac_delim |
| 21173 | CFLAGS!$CFLAGS$ac_delim |
| 21174 | LDFLAGS!$LDFLAGS$ac_delim |
| 21175 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 21176 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 21177 | EXEEXT!$EXEEXT$ac_delim |
| 21178 | OBJEXT!$OBJEXT$ac_delim |
| 21179 | CPP!$CPP$ac_delim |
| 21180 | GREP!$GREP$ac_delim |
| 21181 | EGREP!$EGREP$ac_delim |
| 21182 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 21183 | BUILD_CC!$BUILD_CC$ac_delim |
| 21184 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 21185 | BUILD_CXX!$BUILD_CXX$ac_delim |
| 21186 | CVSBUILD!$CVSBUILD$ac_delim |
| 21187 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 21188 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
| 21189 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
| 21190 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 21191 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
| 21192 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 21193 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
| 21194 | JIT!$JIT$ac_delim |
| 21195 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 21196 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 21197 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
| 21198 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21199 | ENABLE_SHARED!$ENABLE_SHARED$ac_delim |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 21200 | ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21201 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 21202 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 21203 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
| 21204 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
| 21205 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim |
| 21206 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21207 | CLANGPATH!$CLANGPATH$ac_delim |
| 21208 | CLANGXXPATH!$CLANGXXPATH$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21209 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21210 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21211 | 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] | 21212 | break |
| 21213 | elif $ac_last_try; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21214 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21215 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21216 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21217 | else |
| 21218 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21219 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21220 | done |
| 21221 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21222 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21223 | if test -n "$ac_eof"; then |
| 21224 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21225 | ac_eof=`expr $ac_eof + 1` |
| 21226 | fi |
| 21227 | |
| 21228 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21229 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 21230 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21231 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21232 | sed ' |
| 21233 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21234 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21235 | :n |
| 21236 | t n |
| 21237 | s/'"$ac_delim"'$/,g/; t |
| 21238 | s/$/\\/; p |
| 21239 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21240 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21241 | rm -f conf$$subs.sed |
| 21242 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21243 | CEOF$ac_eof |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21244 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21245 | |
| 21246 | |
| 21247 | ac_delim='%!_!# ' |
| 21248 | for ac_last_try in false false false false false :; do |
| 21249 | cat >conf$$subs.sed <<_ACEOF |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 21250 | ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21251 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21252 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 21253 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
| 21254 | ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21255 | ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim |
| 21256 | CXX!$CXX$ac_delim |
| 21257 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 21258 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 21259 | NM!$NM$ac_delim |
| 21260 | ifGNUmake!$ifGNUmake$ac_delim |
| 21261 | LN_S!$LN_S$ac_delim |
| 21262 | CMP!$CMP$ac_delim |
| 21263 | CP!$CP$ac_delim |
| 21264 | DATE!$DATE$ac_delim |
| 21265 | FIND!$FIND$ac_delim |
| 21266 | MKDIR!$MKDIR$ac_delim |
| 21267 | MV!$MV$ac_delim |
| 21268 | RANLIB!$RANLIB$ac_delim |
| 21269 | AR!$AR$ac_delim |
| 21270 | RM!$RM$ac_delim |
| 21271 | SED!$SED$ac_delim |
| 21272 | TAR!$TAR$ac_delim |
| 21273 | BINPWD!$BINPWD$ac_delim |
| 21274 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 21275 | DOT!$DOT$ac_delim |
| 21276 | FDP!$FDP$ac_delim |
| 21277 | NEATO!$NEATO$ac_delim |
| 21278 | TWOPI!$TWOPI$ac_delim |
| 21279 | CIRCO!$CIRCO$ac_delim |
| 21280 | GV!$GV$ac_delim |
| 21281 | DOTTY!$DOTTY$ac_delim |
| 21282 | PERL!$PERL$ac_delim |
| 21283 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 21284 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 21285 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 21286 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 21287 | BZIP2!$BZIP2$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 21288 | CAT!$CAT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21289 | DOXYGEN!$DOXYGEN$ac_delim |
| 21290 | GROFF!$GROFF$ac_delim |
| 21291 | GZIP!$GZIP$ac_delim |
| 21292 | POD2HTML!$POD2HTML$ac_delim |
| 21293 | POD2MAN!$POD2MAN$ac_delim |
mike-m | 68cb319 | 2010-05-06 23:45:43 +0000 | [diff] [blame] | 21294 | PDFROFF!$PDFROFF$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21295 | RUNTEST!$RUNTEST$ac_delim |
| 21296 | TCLSH!$TCLSH$ac_delim |
| 21297 | ZIP!$ZIP$ac_delim |
| 21298 | OCAMLC!$OCAMLC$ac_delim |
| 21299 | OCAMLOPT!$OCAMLOPT$ac_delim |
| 21300 | OCAMLDEP!$OCAMLDEP$ac_delim |
| 21301 | OCAMLDOC!$OCAMLDOC$ac_delim |
| 21302 | GAS!$GAS$ac_delim |
Dan Gohman | da612d6 | 2010-06-01 14:56:56 +0000 | [diff] [blame] | 21303 | HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21304 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 21305 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 21306 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 21307 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 21308 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 21309 | LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim |
| 21310 | LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim |
| 21311 | LLVMGCC!$LLVMGCC$ac_delim |
| 21312 | LLVMGXX!$LLVMGXX$ac_delim |
Daniel Dunbar | 9851567 | 2010-02-23 10:00:49 +0000 | [diff] [blame] | 21313 | LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21314 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 21315 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
| 21316 | USE_UDIS86!$USE_UDIS86$ac_delim |
| 21317 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
| 21318 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
| 21319 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
| 21320 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 21321 | LLVMCC1!$LLVMCC1$ac_delim |
| 21322 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 21323 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21324 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
| 21325 | SHLIBEXT!$SHLIBEXT$ac_delim |
Jeffrey Yasskin | c901719 | 2010-02-25 06:34:33 +0000 | [diff] [blame] | 21326 | SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21327 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 21328 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 21329 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 21330 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 21331 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 21332 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 21333 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 21334 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 21335 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 21336 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 21337 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 21338 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
| 21339 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
| 21340 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
| 21341 | RPATH!$RPATH$ac_delim |
| 21342 | RDYNAMIC!$RDYNAMIC$ac_delim |
| 21343 | LIBOBJS!$LIBOBJS$ac_delim |
| 21344 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21345 | _ACEOF |
| 21346 | |
Daniel Dunbar | dd464df | 2010-05-10 20:11:56 +0000 | [diff] [blame] | 21347 | 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] | 21348 | break |
| 21349 | elif $ac_last_try; then |
| 21350 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21351 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21352 | { (exit 1); exit 1; }; } |
| 21353 | else |
| 21354 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 21355 | fi |
| 21356 | done |
| 21357 | |
| 21358 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21359 | if test -n "$ac_eof"; then |
| 21360 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21361 | ac_eof=`expr $ac_eof + 1` |
| 21362 | fi |
| 21363 | |
| 21364 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21365 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 21366 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 21367 | _ACEOF |
| 21368 | sed ' |
| 21369 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21370 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21371 | :n |
| 21372 | t n |
| 21373 | s/'"$ac_delim"'$/,g/; t |
| 21374 | s/$/\\/; p |
| 21375 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21376 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21377 | rm -f conf$$subs.sed |
| 21378 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21379 | :end |
| 21380 | s/|#_!!_#|//g |
| 21381 | CEOF$ac_eof |
| 21382 | _ACEOF |
| 21383 | |
| 21384 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21385 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 21386 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 21387 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 21388 | # (actually we leave an empty line to preserve line numbers). |
| 21389 | if test "x$srcdir" = x.; then |
| 21390 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 21391 | s/:*\$(srcdir):*/:/ |
| 21392 | s/:*\${srcdir}:*/:/ |
| 21393 | s/:*@srcdir@:*/:/ |
| 21394 | s/^\([^=]*=[ ]*\):*/\1/ |
| 21395 | s/:*$// |
| 21396 | s/^[^=]*=[ ]*$// |
| 21397 | }' |
| 21398 | fi |
| 21399 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21400 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21401 | fi # test -n "$CONFIG_FILES" |
| 21402 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21403 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21404 | 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] | 21405 | do |
| 21406 | case $ac_tag in |
| 21407 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 21408 | esac |
| 21409 | case $ac_mode$ac_tag in |
| 21410 | :[FHL]*:*);; |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21411 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 21412 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 21413 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21414 | :[FH]-) ac_tag=-:-;; |
| 21415 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 21416 | esac |
| 21417 | ac_save_IFS=$IFS |
| 21418 | IFS=: |
| 21419 | set x $ac_tag |
| 21420 | IFS=$ac_save_IFS |
| 21421 | shift |
| 21422 | ac_file=$1 |
| 21423 | shift |
| 21424 | |
| 21425 | case $ac_mode in |
| 21426 | :L) ac_source=$1;; |
| 21427 | :[FH]) |
| 21428 | ac_file_inputs= |
| 21429 | for ac_f |
| 21430 | do |
| 21431 | case $ac_f in |
| 21432 | -) ac_f="$tmp/stdin";; |
| 21433 | *) # Look for the file first in the build tree, then in the source tree |
| 21434 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 21435 | # because $ac_f cannot contain `:'. |
| 21436 | test -f "$ac_f" || |
| 21437 | case $ac_f in |
| 21438 | [\\/$]*) false;; |
| 21439 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 21440 | esac || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21441 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 21442 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 21443 | { (exit 1); exit 1; }; };; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21444 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21445 | ac_file_inputs="$ac_file_inputs $ac_f" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21446 | done |
| 21447 | |
| 21448 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21449 | # use $as_me), people would be surprised to read: |
| 21450 | # /* config.h. Generated by config.status. */ |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21451 | configure_input="Generated from "`IFS=: |
| 21452 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21453 | if test x"$ac_file" != x-; then |
| 21454 | configure_input="$ac_file. $configure_input" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21455 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21456 | echo "$as_me: creating $ac_file" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21457 | fi |
| 21458 | |
| 21459 | case $ac_tag in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21460 | *:-:* | *:-) cat >"$tmp/stdin";; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21461 | esac |
| 21462 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21463 | esac |
| 21464 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21465 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21466 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21467 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21468 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21469 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21470 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21471 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21472 | s//\1/ |
| 21473 | q |
| 21474 | } |
| 21475 | /^X\(\/\/\)[^/].*/{ |
| 21476 | s//\1/ |
| 21477 | q |
| 21478 | } |
| 21479 | /^X\(\/\/\)$/{ |
| 21480 | s//\1/ |
| 21481 | q |
| 21482 | } |
| 21483 | /^X\(\/\).*/{ |
| 21484 | s//\1/ |
| 21485 | q |
| 21486 | } |
| 21487 | s/.*/./; q'` |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21488 | { as_dir="$ac_dir" |
| 21489 | case $as_dir in #( |
| 21490 | -*) as_dir=./$as_dir;; |
| 21491 | esac |
| 21492 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 21493 | as_dirs= |
| 21494 | while :; do |
| 21495 | case $as_dir in #( |
| 21496 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 21497 | *) as_qdir=$as_dir;; |
| 21498 | esac |
| 21499 | as_dirs="'$as_qdir' $as_dirs" |
| 21500 | as_dir=`$as_dirname -- "$as_dir" || |
| 21501 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21502 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21503 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21504 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 21505 | echo X"$as_dir" | |
| 21506 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21507 | s//\1/ |
| 21508 | q |
| 21509 | } |
| 21510 | /^X\(\/\/\)[^/].*/{ |
| 21511 | s//\1/ |
| 21512 | q |
| 21513 | } |
| 21514 | /^X\(\/\/\)$/{ |
| 21515 | s//\1/ |
| 21516 | q |
| 21517 | } |
| 21518 | /^X\(\/\).*/{ |
| 21519 | s//\1/ |
| 21520 | q |
| 21521 | } |
| 21522 | s/.*/./; q'` |
| 21523 | test -d "$as_dir" && break |
| 21524 | done |
| 21525 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21526 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 21527 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 21528 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21529 | ac_builddir=. |
| 21530 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21531 | case "$ac_dir" in |
| 21532 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21533 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21534 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21535 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21536 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21537 | case $ac_top_builddir_sub in |
| 21538 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21539 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 21540 | esac ;; |
| 21541 | esac |
| 21542 | ac_abs_top_builddir=$ac_pwd |
| 21543 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 21544 | # for backward compatibility: |
| 21545 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21546 | |
| 21547 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21548 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21549 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21550 | ac_top_srcdir=$ac_top_builddir_sub |
| 21551 | ac_abs_top_srcdir=$ac_pwd ;; |
| 21552 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21553 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21554 | ac_top_srcdir=$srcdir |
| 21555 | ac_abs_top_srcdir=$srcdir ;; |
| 21556 | *) # Relative name. |
| 21557 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21558 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21559 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21560 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21561 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21562 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21563 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21564 | case $ac_mode in |
| 21565 | :F) |
| 21566 | # |
| 21567 | # CONFIG_FILE |
| 21568 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21569 | |
| 21570 | case $INSTALL in |
| 21571 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21572 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21573 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21574 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21575 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21576 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21577 | # If the template does not know about datarootdir, expand it. |
| 21578 | # FIXME: This hack should be removed a few years after 2.60. |
| 21579 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21580 | |
| 21581 | case `sed -n '/datarootdir/ { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21582 | p |
| 21583 | q |
| 21584 | } |
| 21585 | /@datadir@/p |
| 21586 | /@docdir@/p |
| 21587 | /@infodir@/p |
| 21588 | /@localedir@/p |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21589 | /@mandir@/p |
| 21590 | ' $ac_file_inputs` in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21591 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 21592 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21593 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 21594 | 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] | 21595 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21596 | cat >>$CONFIG_STATUS <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21597 | ac_datarootdir_hack=' |
| 21598 | s&@datadir@&$datadir&g |
| 21599 | s&@docdir@&$docdir&g |
| 21600 | s&@infodir@&$infodir&g |
| 21601 | s&@localedir@&$localedir&g |
| 21602 | s&@mandir@&$mandir&g |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21603 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21604 | esac |
| 21605 | _ACEOF |
| 21606 | |
| 21607 | # Neutralize VPATH when `$srcdir' = `.'. |
| 21608 | # Shell code in configure.ac might set extrasub. |
| 21609 | # FIXME: do we really want to maintain this feature? |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21610 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21611 | sed "$ac_vpsub |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21612 | $extrasub |
| 21613 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21614 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21615 | :t |
| 21616 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21617 | s&@configure_input@&$configure_input&;t t |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21618 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 21619 | s&@srcdir@&$ac_srcdir&;t t |
| 21620 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 21621 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 21622 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 21623 | s&@builddir@&$ac_builddir&;t t |
| 21624 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 21625 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 21626 | s&@INSTALL@&$ac_INSTALL&;t t |
| 21627 | $ac_datarootdir_hack |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21628 | " $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] | 21629 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21630 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 21631 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 21632 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21633 | { 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] | 21634 | which seems to be undefined. Please make sure it is defined." >&5 |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21635 | 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] | 21636 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21637 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21638 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21639 | case $ac_file in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21640 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 21641 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 21642 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21643 | ;; |
| 21644 | :H) |
| 21645 | # |
| 21646 | # CONFIG_HEADER |
| 21647 | # |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21648 | _ACEOF |
| 21649 | |
| 21650 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 21651 | # substitutes the proper values into config.h.in to produce config.h. |
| 21652 | rm -f conftest.defines conftest.tail |
| 21653 | # First, append a space to every undef/define line, to ease matching. |
| 21654 | echo 's/$/ /' >conftest.defines |
| 21655 | # Then, protect against being on the right side of a sed subst, or in |
| 21656 | # an unquoted here document, in config.status. If some macros were |
| 21657 | # called several times there might be several #defines for the same |
| 21658 | # symbol, which is useless. But do not sort them, since the last |
| 21659 | # AC_DEFINE must be honored. |
| 21660 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 21661 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 21662 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 21663 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 21664 | # just an empty string. |
| 21665 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 21666 | ac_dB='\\)[ (].*,\\1define\\2' |
| 21667 | ac_dC=' ' |
| 21668 | ac_dD=' ,' |
| 21669 | |
| 21670 | uniq confdefs.h | |
| 21671 | sed -n ' |
| 21672 | t rset |
| 21673 | :rset |
| 21674 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 21675 | t ok |
| 21676 | d |
| 21677 | :ok |
| 21678 | s/[\\&,]/\\&/g |
| 21679 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 21680 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 21681 | ' >>conftest.defines |
| 21682 | |
| 21683 | # Remove the space that was appended to ease matching. |
| 21684 | # Then replace #undef with comments. This is necessary, for |
| 21685 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 21686 | # on some systems where configure will not decide to define it. |
| 21687 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 21688 | echo 's/ $// |
| 21689 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
| 21690 | |
| 21691 | # Break up conftest.defines: |
| 21692 | ac_max_sed_lines=50 |
| 21693 | |
| 21694 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 21695 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 21696 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 21697 | # et cetera. |
| 21698 | ac_in='$ac_file_inputs' |
| 21699 | ac_out='"$tmp/out1"' |
| 21700 | ac_nxt='"$tmp/out2"' |
| 21701 | |
| 21702 | while : |
| 21703 | do |
| 21704 | # Write a here document: |
| 21705 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21706 | # First, check the format of the line: |
| 21707 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 21708 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 21709 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 21710 | b |
| 21711 | :def |
| 21712 | _ACEOF |
| 21713 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
| 21714 | echo 'CEOF |
| 21715 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 21716 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 21717 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 21718 | grep . conftest.tail >/dev/null || break |
| 21719 | rm -f conftest.defines |
| 21720 | mv conftest.tail conftest.defines |
| 21721 | done |
| 21722 | rm -f conftest.defines conftest.tail |
| 21723 | |
| 21724 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
| 21725 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21726 | if test x"$ac_file" != x-; then |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21727 | echo "/* $configure_input */" >"$tmp/config.h" |
| 21728 | cat "$ac_result" >>"$tmp/config.h" |
| 21729 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
| 21730 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 21731 | echo "$as_me: $ac_file is unchanged" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21732 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21733 | rm -f $ac_file |
| 21734 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21735 | fi |
| 21736 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21737 | echo "/* $configure_input */" |
| 21738 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21739 | fi |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21740 | rm -f "$tmp/out12" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21741 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21742 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21743 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 21744 | echo "$as_me: executing $ac_file commands" >&6;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21745 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 21746 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21747 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21748 | |
| 21749 | case $ac_file$ac_mode in |
| 21750 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21751 | ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21752 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21753 | ${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] | 21754 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21755 | ${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] | 21756 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21757 | ${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] | 21758 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21759 | ${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] | 21760 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21761 | ${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] | 21762 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21763 | ${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] | 21764 | "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21765 | ${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] | 21766 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21767 | ${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] | 21768 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21769 | ${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] | 21770 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21771 | ${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] | 21772 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
Torok Edwin | 6493798 | 2009-08-28 16:12:48 +0000 | [diff] [blame] | 21773 | ${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] | 21774 | "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] | 21775 | ${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] | 21776 | |
| 21777 | esac |
| 21778 | done # for ac_tag |
| 21779 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21780 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21781 | { (exit 0); exit 0; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21782 | _ACEOF |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21783 | chmod +x $CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21784 | ac_clean_files=$ac_clean_files_save |
| 21785 | |
| 21786 | |
| 21787 | # configure is writing to config.log, and then calls config.status. |
| 21788 | # config.status does its own redirection, appending to config.log. |
| 21789 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21790 | # by configure, so config.status won't be able to write to it; its |
| 21791 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21792 | # effectively closing config.log, so it can be properly (re)opened and |
| 21793 | # appended to by config.status. When coming back to configure, we |
| 21794 | # need to make the FD available again. |
| 21795 | if test "$no_create" != yes; then |
| 21796 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21797 | ac_config_status_args= |
| 21798 | test "$silent" = yes && |
| 21799 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21800 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21801 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21802 | exec 5>>config.log |
| 21803 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21804 | # would make configure fail if this is the last instruction. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21805 | $ac_cs_success || { (exit 1); exit 1; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 21806 | fi |
| 21807 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21808 | # |
| 21809 | # CONFIG_SUBDIRS section. |
| 21810 | # |
| 21811 | if test "$no_recursion" != yes; then |
| 21812 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21813 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21814 | ac_sub_configure_args= |
| 21815 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21816 | eval "set x $ac_configure_args" |
| 21817 | shift |
| 21818 | for ac_arg |
| 21819 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21820 | if test -n "$ac_prev"; then |
| 21821 | ac_prev= |
| 21822 | continue |
| 21823 | fi |
| 21824 | case $ac_arg in |
| 21825 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 21826 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 21827 | ac_prev=cache_file ;; |
| 21828 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 21829 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 21830 | | --c=*) |
| 21831 | ;; |
| 21832 | --config-cache | -C) |
| 21833 | ;; |
| 21834 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 21835 | ac_prev=srcdir ;; |
| 21836 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 21837 | ;; |
| 21838 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 21839 | ac_prev=prefix ;; |
| 21840 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 21841 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21842 | *) |
| 21843 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21844 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21845 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21846 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21847 | esac |
| 21848 | done |
| 21849 | |
| 21850 | # Always prepend --prefix to ensure using the same prefix |
| 21851 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21852 | ac_arg="--prefix=$prefix" |
| 21853 | case $ac_arg in |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21854 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21855 | esac |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21856 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21857 | |
| 21858 | ac_popdir=`pwd` |
| 21859 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 21860 | |
| 21861 | # Do not complain, so a configure script can configure whichever |
| 21862 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21863 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21864 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21865 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21866 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 21867 | echo "$ac_msg" >&6 |
| 21868 | { as_dir="$ac_dir" |
| 21869 | case $as_dir in #( |
| 21870 | -*) as_dir=./$as_dir;; |
| 21871 | esac |
| 21872 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 21873 | as_dirs= |
| 21874 | while :; do |
| 21875 | case $as_dir in #( |
| 21876 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 21877 | *) as_qdir=$as_dir;; |
| 21878 | esac |
| 21879 | as_dirs="'$as_qdir' $as_dirs" |
| 21880 | as_dir=`$as_dirname -- "$as_dir" || |
| 21881 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21882 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21883 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21884 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 21885 | echo X"$as_dir" | |
| 21886 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21887 | s//\1/ |
| 21888 | q |
| 21889 | } |
| 21890 | /^X\(\/\/\)[^/].*/{ |
| 21891 | s//\1/ |
| 21892 | q |
| 21893 | } |
| 21894 | /^X\(\/\/\)$/{ |
| 21895 | s//\1/ |
| 21896 | q |
| 21897 | } |
| 21898 | /^X\(\/\).*/{ |
| 21899 | s//\1/ |
| 21900 | q |
| 21901 | } |
| 21902 | s/.*/./; q'` |
| 21903 | test -d "$as_dir" && break |
| 21904 | done |
| 21905 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21906 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 21907 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 21908 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21909 | ac_builddir=. |
| 21910 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21911 | case "$ac_dir" in |
| 21912 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21913 | *) |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21914 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21915 | # A ".." for each directory in $ac_dir_suffix. |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21916 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21917 | case $ac_top_builddir_sub in |
| 21918 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 21919 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 21920 | esac ;; |
| 21921 | esac |
| 21922 | ac_abs_top_builddir=$ac_pwd |
| 21923 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 21924 | # for backward compatibility: |
| 21925 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21926 | |
| 21927 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21928 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21929 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21930 | ac_top_srcdir=$ac_top_builddir_sub |
| 21931 | ac_abs_top_srcdir=$ac_pwd ;; |
| 21932 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21933 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21934 | ac_top_srcdir=$srcdir |
| 21935 | ac_abs_top_srcdir=$srcdir ;; |
| 21936 | *) # Relative name. |
| 21937 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 21938 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 21939 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21940 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21941 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21942 | |
| 21943 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21944 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21945 | |
| 21946 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21947 | if test -f "$ac_srcdir/configure.gnu"; then |
| 21948 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 21949 | elif test -f "$ac_srcdir/configure"; then |
| 21950 | ac_sub_configure=$ac_srcdir/configure |
| 21951 | elif test -f "$ac_srcdir/configure.in"; then |
| 21952 | # This should be Cygnus configure. |
| 21953 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21954 | else |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21955 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 21956 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21957 | ac_sub_configure= |
| 21958 | fi |
| 21959 | |
| 21960 | # The recursion is here. |
| 21961 | if test -n "$ac_sub_configure"; then |
| 21962 | # Make the cache file name correct relative to the subdirectory. |
| 21963 | case $cache_file in |
| 21964 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21965 | *) # Relative name. |
| 21966 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21967 | esac |
| 21968 | |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21969 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 21970 | 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] | 21971 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21972 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 21973 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jeffrey Yasskin | 1611ebb | 2010-02-03 02:11:49 +0000 | [diff] [blame] | 21974 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 21975 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 21976 | { (exit 1); exit 1; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21977 | fi |
| 21978 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21979 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 21980 | done |
| 21981 | fi |
| 21982 | |