John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx]. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <bugs@yourdomain>. |
| 6 | # |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
| 11 | ## --------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## --------------------- ## |
| 14 | |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 15 | # Be Bourne compatible |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17 | emulate sh |
| 18 | NULLCMD=: |
| 19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20 | # is contrary to our usage. Disable this feature. |
| 21 | alias -g '${1+"$@"}'='"$@"' |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22 | setopt NO_GLOB_SUBST |
| 23 | else |
| 24 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 25 | fi |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 26 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 27 | DUALCASE=1; export DUALCASE # for MKS sh |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 28 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 29 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 30 | # PATH needs CR |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 31 | # Avoid depending upon Character Ranges. |
| 32 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 33 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 34 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 35 | as_cr_digits='0123456789' |
| 36 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 37 | |
| 38 | # The user is always right. |
| 39 | if test "${PATH_SEPARATOR+set}" != set; then |
| 40 | echo "#! /bin/sh" >conf$$.sh |
| 41 | echo "exit 0" >>conf$$.sh |
| 42 | chmod +x conf$$.sh |
| 43 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 44 | PATH_SEPARATOR=';' |
| 45 | else |
| 46 | PATH_SEPARATOR=: |
| 47 | fi |
| 48 | rm -f conf$$.sh |
| 49 | fi |
| 50 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 51 | # Support unset when possible. |
| 52 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 53 | as_unset=unset |
| 54 | else |
| 55 | as_unset=false |
| 56 | fi |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 57 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 58 | |
| 59 | # IFS |
| 60 | # We need space, tab and new line, in precisely that order. Quoting is |
| 61 | # there to prevent editors from complaining about space-tab. |
| 62 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 63 | # splitting by setting IFS to empty value.) |
| 64 | as_nl=' |
| 65 | ' |
| 66 | IFS=" "" $as_nl" |
| 67 | |
| 68 | # Find who we are. Look in the path if we contain no directory separator. |
| 69 | case $0 in |
| 70 | *[\\/]* ) as_myself=$0 ;; |
| 71 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 72 | for as_dir in $PATH |
| 73 | do |
| 74 | IFS=$as_save_IFS |
| 75 | test -z "$as_dir" && as_dir=. |
| 76 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 77 | done |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 78 | IFS=$as_save_IFS |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 79 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 80 | ;; |
| 81 | esac |
| 82 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 83 | # in which case we are not to be found in the path. |
| 84 | if test "x$as_myself" = x; then |
| 85 | as_myself=$0 |
| 86 | fi |
| 87 | if test ! -f "$as_myself"; then |
| 88 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 89 | { (exit 1); exit 1; } |
| 90 | fi |
| 91 | |
| 92 | # Work around bugs in pre-3.0 UWIN ksh. |
| 93 | for as_var in ENV MAIL MAILPATH |
| 94 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 95 | done |
| 96 | PS1='$ ' |
| 97 | PS2='> ' |
| 98 | PS4='+ ' |
| 99 | |
| 100 | # NLS nuisances. |
| 101 | for as_var in \ |
| 102 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 103 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 104 | LC_TELEPHONE LC_TIME |
| 105 | do |
| 106 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 107 | eval $as_var=C; export $as_var |
| 108 | else |
| 109 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 110 | fi |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 111 | done |
| 112 | |
| 113 | # Required to use basename. |
| 114 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 115 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 116 | as_expr=expr |
| 117 | else |
| 118 | as_expr=false |
| 119 | fi |
| 120 | |
| 121 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 122 | as_basename=basename |
| 123 | else |
| 124 | as_basename=false |
| 125 | fi |
| 126 | |
| 127 | |
| 128 | # Name of the executable. |
| 129 | as_me=`$as_basename -- "$0" || |
| 130 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 131 | X"$0" : 'X\(//\)$' \| \ |
| 132 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 133 | echo X/"$0" | |
| 134 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 135 | s//\1/ |
| 136 | q |
| 137 | } |
| 138 | /^X\/\(\/\/\)$/{ |
| 139 | s//\1/ |
| 140 | q |
| 141 | } |
| 142 | /^X\/\(\/\).*/{ |
| 143 | s//\1/ |
| 144 | q |
| 145 | } |
| 146 | s/.*/./; q'` |
| 147 | |
| 148 | # CDPATH. |
| 149 | $as_unset CDPATH |
| 150 | |
| 151 | |
| 152 | if test "x$CONFIG_SHELL" = x; then |
| 153 | if (eval ":") 2>/dev/null; then |
| 154 | as_have_required=yes |
| 155 | else |
| 156 | as_have_required=no |
| 157 | fi |
| 158 | |
| 159 | if test $as_have_required = yes && (eval ": |
| 160 | (as_func_return () { |
| 161 | (exit \$1) |
| 162 | } |
| 163 | as_func_success () { |
| 164 | as_func_return 0 |
| 165 | } |
| 166 | as_func_failure () { |
| 167 | as_func_return 1 |
| 168 | } |
| 169 | as_func_ret_success () { |
| 170 | return 0 |
| 171 | } |
| 172 | as_func_ret_failure () { |
| 173 | return 1 |
| 174 | } |
| 175 | |
| 176 | exitcode=0 |
| 177 | if as_func_success; then |
| 178 | : |
| 179 | else |
| 180 | exitcode=1 |
| 181 | echo as_func_success failed. |
| 182 | fi |
| 183 | |
| 184 | if as_func_failure; then |
| 185 | exitcode=1 |
| 186 | echo as_func_failure succeeded. |
| 187 | fi |
| 188 | |
| 189 | if as_func_ret_success; then |
| 190 | : |
| 191 | else |
| 192 | exitcode=1 |
| 193 | echo as_func_ret_success failed. |
| 194 | fi |
| 195 | |
| 196 | if as_func_ret_failure; then |
| 197 | exitcode=1 |
| 198 | echo as_func_ret_failure succeeded. |
| 199 | fi |
| 200 | |
| 201 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 202 | : |
| 203 | else |
| 204 | exitcode=1 |
| 205 | echo positional parameters were not saved. |
| 206 | fi |
| 207 | |
| 208 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 209 | |
| 210 | ( |
| 211 | as_lineno_1=\$LINENO |
| 212 | as_lineno_2=\$LINENO |
| 213 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 214 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 215 | ") 2> /dev/null; then |
| 216 | : |
| 217 | else |
| 218 | as_candidate_shells= |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 220 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 221 | do |
| 222 | IFS=$as_save_IFS |
| 223 | test -z "$as_dir" && as_dir=. |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 224 | case $as_dir in |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 225 | /*) |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 226 | for as_base in sh bash ksh sh5; do |
| 227 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 228 | done;; |
| 229 | esac |
| 230 | done |
| 231 | IFS=$as_save_IFS |
| 232 | |
| 233 | |
| 234 | for as_shell in $as_candidate_shells $SHELL; do |
| 235 | # Try only shells that exist, to save several forks. |
| 236 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 237 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 238 | # Be Bourne compatible |
| 239 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 240 | emulate sh |
| 241 | NULLCMD=: |
| 242 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 243 | # is contrary to our usage. Disable this feature. |
| 244 | alias -g '${1+"$@"}'='"$@"' |
| 245 | setopt NO_GLOB_SUBST |
| 246 | else |
| 247 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 248 | fi |
| 249 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 250 | DUALCASE=1; export DUALCASE # for MKS sh |
| 251 | |
| 252 | : |
| 253 | _ASEOF |
| 254 | }; then |
| 255 | CONFIG_SHELL=$as_shell |
| 256 | as_have_required=yes |
| 257 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 258 | # Be Bourne compatible |
| 259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 260 | emulate sh |
| 261 | NULLCMD=: |
| 262 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 263 | # is contrary to our usage. Disable this feature. |
| 264 | alias -g '${1+"$@"}'='"$@"' |
| 265 | setopt NO_GLOB_SUBST |
| 266 | else |
| 267 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 268 | fi |
| 269 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 270 | DUALCASE=1; export DUALCASE # for MKS sh |
| 271 | |
| 272 | : |
| 273 | (as_func_return () { |
| 274 | (exit $1) |
| 275 | } |
| 276 | as_func_success () { |
| 277 | as_func_return 0 |
| 278 | } |
| 279 | as_func_failure () { |
| 280 | as_func_return 1 |
| 281 | } |
| 282 | as_func_ret_success () { |
| 283 | return 0 |
| 284 | } |
| 285 | as_func_ret_failure () { |
| 286 | return 1 |
| 287 | } |
| 288 | |
| 289 | exitcode=0 |
| 290 | if as_func_success; then |
| 291 | : |
| 292 | else |
| 293 | exitcode=1 |
| 294 | echo as_func_success failed. |
| 295 | fi |
| 296 | |
| 297 | if as_func_failure; then |
| 298 | exitcode=1 |
| 299 | echo as_func_failure succeeded. |
| 300 | fi |
| 301 | |
| 302 | if as_func_ret_success; then |
| 303 | : |
| 304 | else |
| 305 | exitcode=1 |
| 306 | echo as_func_ret_success failed. |
| 307 | fi |
| 308 | |
| 309 | if as_func_ret_failure; then |
| 310 | exitcode=1 |
| 311 | echo as_func_ret_failure succeeded. |
| 312 | fi |
| 313 | |
| 314 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 315 | : |
| 316 | else |
| 317 | exitcode=1 |
| 318 | echo positional parameters were not saved. |
| 319 | fi |
| 320 | |
| 321 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 322 | |
| 323 | ( |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 324 | as_lineno_1=$LINENO |
| 325 | as_lineno_2=$LINENO |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 326 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 327 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 328 | |
| 329 | _ASEOF |
| 330 | }; then |
| 331 | break |
| 332 | fi |
| 333 | |
| 334 | fi |
| 335 | |
| 336 | done |
| 337 | |
| 338 | if test "x$CONFIG_SHELL" != x; then |
| 339 | for as_var in BASH_ENV ENV |
| 340 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 341 | done |
| 342 | export CONFIG_SHELL |
| 343 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 344 | fi |
| 345 | |
| 346 | |
| 347 | if test $as_have_required = no; then |
| 348 | echo This script requires a shell more modern than all the |
| 349 | echo shells that I found on your system. Please install a |
| 350 | echo modern shell, or manually run the script under such a |
| 351 | echo shell if you do have one. |
| 352 | { (exit 1); exit 1; } |
| 353 | fi |
| 354 | |
| 355 | |
| 356 | fi |
| 357 | |
| 358 | fi |
| 359 | |
| 360 | |
| 361 | |
| 362 | (eval "as_func_return () { |
| 363 | (exit \$1) |
| 364 | } |
| 365 | as_func_success () { |
| 366 | as_func_return 0 |
| 367 | } |
| 368 | as_func_failure () { |
| 369 | as_func_return 1 |
| 370 | } |
| 371 | as_func_ret_success () { |
| 372 | return 0 |
| 373 | } |
| 374 | as_func_ret_failure () { |
| 375 | return 1 |
| 376 | } |
| 377 | |
| 378 | exitcode=0 |
| 379 | if as_func_success; then |
| 380 | : |
| 381 | else |
| 382 | exitcode=1 |
| 383 | echo as_func_success failed. |
| 384 | fi |
| 385 | |
| 386 | if as_func_failure; then |
| 387 | exitcode=1 |
| 388 | echo as_func_failure succeeded. |
| 389 | fi |
| 390 | |
| 391 | if as_func_ret_success; then |
| 392 | : |
| 393 | else |
| 394 | exitcode=1 |
| 395 | echo as_func_ret_success failed. |
| 396 | fi |
| 397 | |
| 398 | if as_func_ret_failure; then |
| 399 | exitcode=1 |
| 400 | echo as_func_ret_failure succeeded. |
| 401 | fi |
| 402 | |
| 403 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 404 | : |
| 405 | else |
| 406 | exitcode=1 |
| 407 | echo positional parameters were not saved. |
| 408 | fi |
| 409 | |
| 410 | test \$exitcode = 0") || { |
| 411 | echo No shell found that supports shell functions. |
| 412 | echo Please tell autoconf@gnu.org about your system, |
| 413 | echo including any error possibly output before this |
| 414 | echo message |
| 415 | } |
| 416 | |
| 417 | |
| 418 | |
| 419 | as_lineno_1=$LINENO |
| 420 | as_lineno_2=$LINENO |
| 421 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 422 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 423 | |
| 424 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 425 | # uniformly replaced by the line number. The first 'sed' inserts a |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 426 | # line-number line after each line using $LINENO; the second 'sed' |
| 427 | # does the real work. The second script uses 'N' to pair each |
| 428 | # line-number line with the line containing $LINENO, and appends |
| 429 | # trailing '-' during substitution so that $LINENO is not a special |
| 430 | # case at line end. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 431 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 432 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 433 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 434 | sed -n ' |
| 435 | p |
| 436 | /[$]LINENO/= |
| 437 | ' <$as_myself | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 438 | sed ' |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 439 | s/[$]LINENO.*/&-/ |
| 440 | t lineno |
| 441 | b |
| 442 | :lineno |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 443 | N |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 444 | :loop |
| 445 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 446 | t loop |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 447 | s/-\n.*// |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 448 | ' >$as_me.lineno && |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 449 | chmod +x "$as_me.lineno" || |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 450 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 451 | { (exit 1); exit 1; }; } |
| 452 | |
| 453 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 454 | # (the dirname of $[0] is not the place where we might find the |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 455 | # original and so on. Autoconf is especially sensitive to this). |
| 456 | . "./$as_me.lineno" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 457 | # Exit status is that of the last command. |
| 458 | exit |
| 459 | } |
| 460 | |
| 461 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 462 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 463 | as_dirname=dirname |
| 464 | else |
| 465 | as_dirname=false |
| 466 | fi |
| 467 | |
| 468 | ECHO_C= ECHO_N= ECHO_T= |
| 469 | case `echo -n x` in |
| 470 | -n*) |
| 471 | case `echo 'x\c'` in |
| 472 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 473 | *) ECHO_C='\c';; |
| 474 | esac;; |
| 475 | *) |
| 476 | ECHO_N='-n';; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 477 | esac |
| 478 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 479 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 480 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 481 | as_expr=expr |
| 482 | else |
| 483 | as_expr=false |
| 484 | fi |
| 485 | |
| 486 | rm -f conf$$ conf$$.exe conf$$.file |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 487 | if test -d conf$$.dir; then |
| 488 | rm -f conf$$.dir/conf$$.file |
| 489 | else |
| 490 | rm -f conf$$.dir |
| 491 | mkdir conf$$.dir |
| 492 | fi |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 493 | echo >conf$$.file |
| 494 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 495 | as_ln_s='ln -s' |
| 496 | # ... but there are two gotchas: |
| 497 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 498 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 499 | # In both cases, we have to default to `cp -p'. |
| 500 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 501 | as_ln_s='cp -p' |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 502 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 503 | as_ln_s=ln |
| 504 | else |
| 505 | as_ln_s='cp -p' |
| 506 | fi |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 507 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 508 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 509 | |
| 510 | if mkdir -p . 2>/dev/null; then |
| 511 | as_mkdir_p=: |
| 512 | else |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 513 | test -d ./-p && rmdir ./-p |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 514 | as_mkdir_p=false |
| 515 | fi |
| 516 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 517 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 518 | # systems may use methods other than mode bits to determine executability. |
| 519 | cat >conf$$.file <<_ASEOF |
| 520 | #! /bin/sh |
| 521 | exit 0 |
| 522 | _ASEOF |
| 523 | chmod +x conf$$.file |
| 524 | if test -x conf$$.file >/dev/null 2>&1; then |
| 525 | as_executable_p="test -x" |
| 526 | else |
| 527 | as_executable_p=: |
| 528 | fi |
| 529 | rm -f conf$$.file |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 530 | |
| 531 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 532 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 533 | |
| 534 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 535 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 536 | |
| 537 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 538 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 539 | exec 7<&0 </dev/null 6>&1 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 540 | |
| 541 | # Name of the host. |
| 542 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 543 | # so uname gets run too. |
| 544 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 545 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 546 | # |
| 547 | # Initializations. |
| 548 | # |
| 549 | ac_default_prefix=/usr/local |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 550 | ac_clean_files= |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 551 | ac_config_libobj_dir=. |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 552 | LIBOBJS= |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 553 | cross_compiling=no |
| 554 | subdirs= |
| 555 | MFLAGS= |
| 556 | MAKEFLAGS= |
| 557 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 558 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 559 | # Identity of this package. |
| 560 | PACKAGE_NAME='[SAMPLE]' |
| 561 | PACKAGE_TARNAME='--sample--' |
| 562 | PACKAGE_VERSION='[x.xx]' |
| 563 | PACKAGE_STRING='[SAMPLE] [x.xx]' |
| 564 | PACKAGE_BUGREPORT='bugs@yourdomain' |
| 565 | |
| 566 | ac_unique_file=""Makefile.common.in"" |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 567 | # Factoring default headers for most tests. |
| 568 | ac_includes_default="\ |
| 569 | #include <stdio.h> |
| 570 | #if HAVE_SYS_TYPES_H |
| 571 | # include <sys/types.h> |
| 572 | #endif |
| 573 | #if HAVE_SYS_STAT_H |
| 574 | # include <sys/stat.h> |
| 575 | #endif |
| 576 | #if STDC_HEADERS |
| 577 | # include <stdlib.h> |
| 578 | # include <stddef.h> |
| 579 | #else |
| 580 | # if HAVE_STDLIB_H |
| 581 | # include <stdlib.h> |
| 582 | # endif |
| 583 | #endif |
| 584 | #if HAVE_STRING_H |
| 585 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 586 | # include <memory.h> |
| 587 | # endif |
| 588 | # include <string.h> |
| 589 | #endif |
| 590 | #if HAVE_STRINGS_H |
| 591 | # include <strings.h> |
| 592 | #endif |
| 593 | #if HAVE_INTTYPES_H |
| 594 | # include <inttypes.h> |
| 595 | #endif |
| 596 | #if HAVE_STDINT_H |
| 597 | # include <stdint.h> |
| 598 | #endif |
| 599 | #if HAVE_UNISTD_H |
| 600 | # include <unistd.h> |
| 601 | #endif" |
| 602 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 603 | ac_subst_vars='SHELL |
| 604 | PATH_SEPARATOR |
| 605 | PACKAGE_NAME |
| 606 | PACKAGE_TARNAME |
| 607 | PACKAGE_VERSION |
| 608 | PACKAGE_STRING |
| 609 | PACKAGE_BUGREPORT |
| 610 | exec_prefix |
| 611 | prefix |
| 612 | program_transform_name |
| 613 | bindir |
| 614 | sbindir |
| 615 | libexecdir |
| 616 | datarootdir |
| 617 | datadir |
| 618 | sysconfdir |
| 619 | sharedstatedir |
| 620 | localstatedir |
| 621 | includedir |
| 622 | oldincludedir |
| 623 | docdir |
| 624 | infodir |
| 625 | htmldir |
| 626 | dvidir |
| 627 | pdfdir |
| 628 | psdir |
| 629 | libdir |
| 630 | localedir |
| 631 | mandir |
| 632 | DEFS |
| 633 | ECHO_C |
| 634 | ECHO_N |
| 635 | ECHO_T |
| 636 | LIBS |
| 637 | build_alias |
| 638 | host_alias |
| 639 | target_alias |
| 640 | LLVM_SRC |
| 641 | LLVM_OBJ |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 642 | LLVM_VERSION |
| 643 | CC |
| 644 | CFLAGS |
| 645 | LDFLAGS |
| 646 | CPPFLAGS |
| 647 | ac_ct_CC |
| 648 | EXEEXT |
| 649 | OBJEXT |
| 650 | CXX |
| 651 | CXXFLAGS |
| 652 | ac_ct_CXX |
| 653 | CPP |
| 654 | ENABLE_POLLY |
| 655 | LLVM_HAS_POLLY |
| 656 | subdirs |
| 657 | build |
| 658 | build_cpu |
| 659 | build_vendor |
| 660 | build_os |
| 661 | host |
| 662 | host_cpu |
| 663 | host_vendor |
| 664 | host_os |
| 665 | target |
| 666 | target_cpu |
| 667 | target_vendor |
| 668 | target_os |
| 669 | OS |
| 670 | HOST_OS |
| 671 | TARGET_OS |
| 672 | LINKALL |
| 673 | NOLINKALL |
| 674 | LLVM_ON_UNIX |
| 675 | LLVM_ON_WIN32 |
| 676 | ARCH |
| 677 | ENDIAN |
| 678 | GREP |
| 679 | EGREP |
| 680 | LLVM_CROSS_COMPILING |
| 681 | BUILD_CC |
| 682 | BUILD_EXEEXT |
| 683 | BUILD_CXX |
| 684 | CVSBUILD |
| 685 | ENABLE_OPTIMIZED |
| 686 | ENABLE_PROFILING |
| 687 | DISABLE_ASSERTIONS |
| 688 | ENABLE_EXPENSIVE_CHECKS |
| 689 | EXPENSIVE_CHECKS |
| 690 | DEBUG_RUNTIME |
| 691 | DEBUG_SYMBOLS |
| 692 | JIT |
| 693 | TARGET_HAS_JIT |
| 694 | ENABLE_DOCS |
| 695 | ENABLE_DOXYGEN |
| 696 | ENABLE_THREADS |
| 697 | ENABLE_PTHREADS |
| 698 | ENABLE_PIC |
| 699 | ENABLE_SHARED |
| 700 | ENABLE_EMBED_STDCXX |
| 701 | ENABLE_TIMESTAMPS |
| 702 | TARGETS_TO_BUILD |
| 703 | LLVM_ENUM_TARGETS |
| 704 | LLVM_ENUM_ASM_PRINTERS |
| 705 | LLVM_ENUM_ASM_PARSERS |
| 706 | LLVM_ENUM_DISASSEMBLERS |
| 707 | ENABLE_CBE_PRINTF_A |
| 708 | OPTIMIZE_OPTION |
| 709 | EXTRA_OPTIONS |
| 710 | EXTRA_LD_OPTIONS |
| 711 | BINUTILS_INCDIR |
| 712 | NM |
| 713 | ifGNUmake |
| 714 | LN_S |
| 715 | CMP |
| 716 | CP |
| 717 | DATE |
| 718 | FIND |
| 719 | MKDIR |
| 720 | MV |
| 721 | RANLIB |
| 722 | AR |
| 723 | RM |
| 724 | SED |
| 725 | TAR |
| 726 | BINPWD |
| 727 | GRAPHVIZ |
| 728 | DOT |
| 729 | FDP |
| 730 | NEATO |
| 731 | TWOPI |
| 732 | CIRCO |
| 733 | GV |
| 734 | DOTTY |
| 735 | XDOT_PY |
| 736 | PERL |
| 737 | HAVE_PERL |
| 738 | INSTALL_PROGRAM |
| 739 | INSTALL_SCRIPT |
| 740 | INSTALL_DATA |
| 741 | BZIP2 |
| 742 | CAT |
| 743 | DOXYGEN |
| 744 | GROFF |
| 745 | GZIPBIN |
| 746 | POD2HTML |
| 747 | POD2MAN |
| 748 | PDFROFF |
| 749 | RUNTEST |
| 750 | TCLSH |
| 751 | ZIP |
| 752 | OCAMLC |
| 753 | OCAMLOPT |
| 754 | OCAMLDEP |
| 755 | OCAMLDOC |
| 756 | GAS |
| 757 | HAVE_LINK_VERSION_SCRIPT |
| 758 | INSTALL_LTDL_TRUE |
| 759 | INSTALL_LTDL_FALSE |
| 760 | CONVENIENCE_LTDL_TRUE |
| 761 | CONVENIENCE_LTDL_FALSE |
| 762 | LIBADD_DL |
| 763 | NO_VARIADIC_MACROS |
| 764 | NO_MISSING_FIELD_INITIALIZERS |
| 765 | USE_UDIS86 |
| 766 | USE_OPROFILE |
| 767 | HAVE_PTHREAD |
| 768 | HUGE_VAL_SANITY |
| 769 | MMAP_FILE |
| 770 | SHLIBEXT |
| 771 | SHLIBPATH_VAR |
| 772 | LLVM_PREFIX |
| 773 | LLVM_BINDIR |
| 774 | LLVM_LIBDIR |
| 775 | LLVM_DATADIR |
| 776 | LLVM_DOCSDIR |
| 777 | LLVM_ETCDIR |
| 778 | LLVM_INCLUDEDIR |
| 779 | LLVM_INFODIR |
| 780 | LLVM_MANDIR |
| 781 | LLVM_CONFIGTIME |
| 782 | BINDINGS_TO_BUILD |
| 783 | ALL_BINDINGS |
| 784 | OCAML_LIBDIR |
| 785 | ENABLE_VISIBILITY_INLINES_HIDDEN |
| 786 | RPATH |
| 787 | RDYNAMIC |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 788 | LIBOBJS |
| 789 | LTLIBOBJS' |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 790 | ac_subst_files='' |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 791 | ac_precious_vars='build_alias |
| 792 | host_alias |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 793 | target_alias |
| 794 | CC |
| 795 | CFLAGS |
| 796 | LDFLAGS |
| 797 | CPPFLAGS |
| 798 | CXX |
| 799 | CXXFLAGS |
| 800 | CCC |
| 801 | CPP' |
| 802 | ac_subdirs_all='tools/polly' |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 803 | |
| 804 | # Initialize some variables set by options. |
| 805 | ac_init_help= |
| 806 | ac_init_version=false |
| 807 | # The variables have the same names as the options, with |
| 808 | # dashes changed to underlines. |
| 809 | cache_file=/dev/null |
| 810 | exec_prefix=NONE |
| 811 | no_create= |
| 812 | no_recursion= |
| 813 | prefix=NONE |
| 814 | program_prefix=NONE |
| 815 | program_suffix=NONE |
| 816 | program_transform_name=s,x,x, |
| 817 | silent= |
| 818 | site= |
| 819 | srcdir= |
| 820 | verbose= |
| 821 | x_includes=NONE |
| 822 | x_libraries=NONE |
| 823 | |
| 824 | # Installation directory options. |
| 825 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 826 | # and all the variables that are supposed to be based on exec_prefix |
| 827 | # by default will actually change. |
| 828 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 829 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 830 | bindir='${exec_prefix}/bin' |
| 831 | sbindir='${exec_prefix}/sbin' |
| 832 | libexecdir='${exec_prefix}/libexec' |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 833 | datarootdir='${prefix}/share' |
| 834 | datadir='${datarootdir}' |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 835 | sysconfdir='${prefix}/etc' |
| 836 | sharedstatedir='${prefix}/com' |
| 837 | localstatedir='${prefix}/var' |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 838 | includedir='${prefix}/include' |
| 839 | oldincludedir='/usr/include' |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 840 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 841 | infodir='${datarootdir}/info' |
| 842 | htmldir='${docdir}' |
| 843 | dvidir='${docdir}' |
| 844 | pdfdir='${docdir}' |
| 845 | psdir='${docdir}' |
| 846 | libdir='${exec_prefix}/lib' |
| 847 | localedir='${datarootdir}/locale' |
| 848 | mandir='${datarootdir}/man' |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 849 | |
| 850 | ac_prev= |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 851 | ac_dashdash= |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 852 | for ac_option |
| 853 | do |
| 854 | # If the previous option needs an argument, assign it. |
| 855 | if test -n "$ac_prev"; then |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 856 | eval $ac_prev=\$ac_option |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 857 | ac_prev= |
| 858 | continue |
| 859 | fi |
| 860 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 861 | case $ac_option in |
| 862 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 863 | *) ac_optarg=yes ;; |
| 864 | esac |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 865 | |
| 866 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 867 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 868 | case $ac_dashdash$ac_option in |
| 869 | --) |
| 870 | ac_dashdash=yes ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 871 | |
| 872 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 873 | ac_prev=bindir ;; |
| 874 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 875 | bindir=$ac_optarg ;; |
| 876 | |
| 877 | -build | --build | --buil | --bui | --bu) |
| 878 | ac_prev=build_alias ;; |
| 879 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 880 | build_alias=$ac_optarg ;; |
| 881 | |
| 882 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 883 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 884 | ac_prev=cache_file ;; |
| 885 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 886 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 887 | cache_file=$ac_optarg ;; |
| 888 | |
| 889 | --config-cache | -C) |
| 890 | cache_file=config.cache ;; |
| 891 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 892 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 893 | ac_prev=datadir ;; |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 894 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 895 | datadir=$ac_optarg ;; |
| 896 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 897 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 898 | | --dataroo | --dataro | --datar) |
| 899 | ac_prev=datarootdir ;; |
| 900 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 901 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 902 | datarootdir=$ac_optarg ;; |
| 903 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 904 | -disable-* | --disable-*) |
| 905 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 906 | # Reject names that are not valid shell variable names. |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 907 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 908 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 909 | { (exit 1); exit 1; }; } |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 910 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 911 | eval enable_$ac_feature=no ;; |
| 912 | |
| 913 | -docdir | --docdir | --docdi | --doc | --do) |
| 914 | ac_prev=docdir ;; |
| 915 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 916 | docdir=$ac_optarg ;; |
| 917 | |
| 918 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 919 | ac_prev=dvidir ;; |
| 920 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 921 | dvidir=$ac_optarg ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 922 | |
| 923 | -enable-* | --enable-*) |
| 924 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 925 | # Reject names that are not valid shell variable names. |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 926 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 927 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 928 | { (exit 1); exit 1; }; } |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 929 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 930 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 931 | |
| 932 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 933 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 934 | | --exec | --exe | --ex) |
| 935 | ac_prev=exec_prefix ;; |
| 936 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 937 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 938 | | --exec=* | --exe=* | --ex=*) |
| 939 | exec_prefix=$ac_optarg ;; |
| 940 | |
| 941 | -gas | --gas | --ga | --g) |
| 942 | # Obsolete; use --with-gas. |
| 943 | with_gas=yes ;; |
| 944 | |
| 945 | -help | --help | --hel | --he | -h) |
| 946 | ac_init_help=long ;; |
| 947 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 948 | ac_init_help=recursive ;; |
| 949 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 950 | ac_init_help=short ;; |
| 951 | |
| 952 | -host | --host | --hos | --ho) |
| 953 | ac_prev=host_alias ;; |
| 954 | -host=* | --host=* | --hos=* | --ho=*) |
| 955 | host_alias=$ac_optarg ;; |
| 956 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 957 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 958 | ac_prev=htmldir ;; |
| 959 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 960 | | --ht=*) |
| 961 | htmldir=$ac_optarg ;; |
| 962 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 963 | -includedir | --includedir | --includedi | --included | --include \ |
| 964 | | --includ | --inclu | --incl | --inc) |
| 965 | ac_prev=includedir ;; |
| 966 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 967 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 968 | includedir=$ac_optarg ;; |
| 969 | |
| 970 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 971 | ac_prev=infodir ;; |
| 972 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 973 | infodir=$ac_optarg ;; |
| 974 | |
| 975 | -libdir | --libdir | --libdi | --libd) |
| 976 | ac_prev=libdir ;; |
| 977 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 978 | libdir=$ac_optarg ;; |
| 979 | |
| 980 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 981 | | --libexe | --libex | --libe) |
| 982 | ac_prev=libexecdir ;; |
| 983 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 984 | | --libexe=* | --libex=* | --libe=*) |
| 985 | libexecdir=$ac_optarg ;; |
| 986 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 987 | -localedir | --localedir | --localedi | --localed | --locale) |
| 988 | ac_prev=localedir ;; |
| 989 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 990 | localedir=$ac_optarg ;; |
| 991 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 992 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 993 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 994 | ac_prev=localstatedir ;; |
| 995 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 996 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 997 | localstatedir=$ac_optarg ;; |
| 998 | |
| 999 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1000 | ac_prev=mandir ;; |
| 1001 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1002 | mandir=$ac_optarg ;; |
| 1003 | |
| 1004 | -nfp | --nfp | --nf) |
| 1005 | # Obsolete; use --without-fp. |
| 1006 | with_fp=no ;; |
| 1007 | |
| 1008 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1009 | | --no-cr | --no-c | -n) |
| 1010 | no_create=yes ;; |
| 1011 | |
| 1012 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1013 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1014 | no_recursion=yes ;; |
| 1015 | |
| 1016 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1017 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1018 | | --oldin | --oldi | --old | --ol | --o) |
| 1019 | ac_prev=oldincludedir ;; |
| 1020 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1021 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1022 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1023 | oldincludedir=$ac_optarg ;; |
| 1024 | |
| 1025 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1026 | ac_prev=prefix ;; |
| 1027 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1028 | prefix=$ac_optarg ;; |
| 1029 | |
| 1030 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1031 | | --program-pre | --program-pr | --program-p) |
| 1032 | ac_prev=program_prefix ;; |
| 1033 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1034 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1035 | program_prefix=$ac_optarg ;; |
| 1036 | |
| 1037 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1038 | | --program-suf | --program-su | --program-s) |
| 1039 | ac_prev=program_suffix ;; |
| 1040 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1041 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1042 | program_suffix=$ac_optarg ;; |
| 1043 | |
| 1044 | -program-transform-name | --program-transform-name \ |
| 1045 | | --program-transform-nam | --program-transform-na \ |
| 1046 | | --program-transform-n | --program-transform- \ |
| 1047 | | --program-transform | --program-transfor \ |
| 1048 | | --program-transfo | --program-transf \ |
| 1049 | | --program-trans | --program-tran \ |
| 1050 | | --progr-tra | --program-tr | --program-t) |
| 1051 | ac_prev=program_transform_name ;; |
| 1052 | -program-transform-name=* | --program-transform-name=* \ |
| 1053 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1054 | | --program-transform-n=* | --program-transform-=* \ |
| 1055 | | --program-transform=* | --program-transfor=* \ |
| 1056 | | --program-transfo=* | --program-transf=* \ |
| 1057 | | --program-trans=* | --program-tran=* \ |
| 1058 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1059 | program_transform_name=$ac_optarg ;; |
| 1060 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1061 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1062 | ac_prev=pdfdir ;; |
| 1063 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1064 | pdfdir=$ac_optarg ;; |
| 1065 | |
| 1066 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1067 | ac_prev=psdir ;; |
| 1068 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1069 | psdir=$ac_optarg ;; |
| 1070 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1071 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1072 | | -silent | --silent | --silen | --sile | --sil) |
| 1073 | silent=yes ;; |
| 1074 | |
| 1075 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1076 | ac_prev=sbindir ;; |
| 1077 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1078 | | --sbi=* | --sb=*) |
| 1079 | sbindir=$ac_optarg ;; |
| 1080 | |
| 1081 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1082 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1083 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1084 | | --sha | --sh) |
| 1085 | ac_prev=sharedstatedir ;; |
| 1086 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1087 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1088 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1089 | | --sha=* | --sh=*) |
| 1090 | sharedstatedir=$ac_optarg ;; |
| 1091 | |
| 1092 | -site | --site | --sit) |
| 1093 | ac_prev=site ;; |
| 1094 | -site=* | --site=* | --sit=*) |
| 1095 | site=$ac_optarg ;; |
| 1096 | |
| 1097 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1098 | ac_prev=srcdir ;; |
| 1099 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1100 | srcdir=$ac_optarg ;; |
| 1101 | |
| 1102 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1103 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1104 | ac_prev=sysconfdir ;; |
| 1105 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1106 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1107 | sysconfdir=$ac_optarg ;; |
| 1108 | |
| 1109 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1110 | ac_prev=target_alias ;; |
| 1111 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1112 | target_alias=$ac_optarg ;; |
| 1113 | |
| 1114 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1115 | verbose=yes ;; |
| 1116 | |
| 1117 | -version | --version | --versio | --versi | --vers | -V) |
| 1118 | ac_init_version=: ;; |
| 1119 | |
| 1120 | -with-* | --with-*) |
| 1121 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1122 | # Reject names that are not valid shell variable names. |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 1123 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1124 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1125 | { (exit 1); exit 1; }; } |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 1126 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1127 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1128 | |
| 1129 | -without-* | --without-*) |
| 1130 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1131 | # Reject names that are not valid shell variable names. |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 1132 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1133 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1134 | { (exit 1); exit 1; }; } |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 1135 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1136 | eval with_$ac_package=no ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1137 | |
| 1138 | --x) |
| 1139 | # Obsolete; use --with-x. |
| 1140 | with_x=yes ;; |
| 1141 | |
| 1142 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1143 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1144 | ac_prev=x_includes ;; |
| 1145 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1146 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1147 | x_includes=$ac_optarg ;; |
| 1148 | |
| 1149 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1150 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1151 | ac_prev=x_libraries ;; |
| 1152 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1153 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1154 | x_libraries=$ac_optarg ;; |
| 1155 | |
| 1156 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1157 | Try \`$0 --help' for more information." >&2 |
| 1158 | { (exit 1); exit 1; }; } |
| 1159 | ;; |
| 1160 | |
| 1161 | *=*) |
| 1162 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1163 | # Reject names that are not valid shell variable names. |
| 1164 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1165 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1166 | { (exit 1); exit 1; }; } |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1167 | eval $ac_envvar=\$ac_optarg |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1168 | export $ac_envvar ;; |
| 1169 | |
| 1170 | *) |
| 1171 | # FIXME: should be removed in autoconf 3.0. |
| 1172 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1173 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1174 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1175 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1176 | ;; |
| 1177 | |
| 1178 | esac |
| 1179 | done |
| 1180 | |
| 1181 | if test -n "$ac_prev"; then |
| 1182 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1183 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1184 | { (exit 1); exit 1; }; } |
| 1185 | fi |
| 1186 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1187 | # Be sure to have absolute directory names. |
| 1188 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1189 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1190 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1191 | libdir localedir mandir |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1192 | do |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1193 | eval ac_val=\$$ac_var |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1194 | case $ac_val in |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1195 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1196 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1197 | esac |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1198 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1199 | { (exit 1); exit 1; }; } |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1200 | done |
| 1201 | |
| 1202 | # There might be people who depend on the old broken behavior: `$host' |
| 1203 | # used to hold the argument of --host etc. |
| 1204 | # FIXME: To remove some day. |
| 1205 | build=$build_alias |
| 1206 | host=$host_alias |
| 1207 | target=$target_alias |
| 1208 | |
| 1209 | # FIXME: To remove some day. |
| 1210 | if test "x$host_alias" != x; then |
| 1211 | if test "x$build_alias" = x; then |
| 1212 | cross_compiling=maybe |
| 1213 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1214 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1215 | elif test "x$build_alias" != "x$host_alias"; then |
| 1216 | cross_compiling=yes |
| 1217 | fi |
| 1218 | fi |
| 1219 | |
| 1220 | ac_tool_prefix= |
| 1221 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1222 | |
| 1223 | test "$silent" = yes && exec 6>/dev/null |
| 1224 | |
| 1225 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1226 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1227 | ac_ls_di=`ls -di .` && |
| 1228 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1229 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1230 | { (exit 1); exit 1; }; } |
| 1231 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1232 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1233 | { (exit 1); exit 1; }; } |
| 1234 | |
| 1235 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1236 | # Find the source files, if location was not specified. |
| 1237 | if test -z "$srcdir"; then |
| 1238 | ac_srcdir_defaulted=yes |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1239 | # Try the directory containing this script, then the parent directory. |
| 1240 | ac_confdir=`$as_dirname -- "$0" || |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1241 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1242 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1243 | X"$0" : 'X\(//\)$' \| \ |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1244 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1245 | echo X"$0" | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1246 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1247 | s//\1/ |
| 1248 | q |
| 1249 | } |
| 1250 | /^X\(\/\/\)[^/].*/{ |
| 1251 | s//\1/ |
| 1252 | q |
| 1253 | } |
| 1254 | /^X\(\/\/\)$/{ |
| 1255 | s//\1/ |
| 1256 | q |
| 1257 | } |
| 1258 | /^X\(\/\).*/{ |
| 1259 | s//\1/ |
| 1260 | q |
| 1261 | } |
| 1262 | s/.*/./; q'` |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1263 | srcdir=$ac_confdir |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1264 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1265 | srcdir=.. |
| 1266 | fi |
| 1267 | else |
| 1268 | ac_srcdir_defaulted=no |
| 1269 | fi |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1270 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1271 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1272 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1273 | { (exit 1); exit 1; }; } |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 1274 | fi |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1275 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1276 | ac_abs_confdir=`( |
| 1277 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 1278 | { (exit 1); exit 1; }; } |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1279 | pwd)` |
| 1280 | # When building in place, set srcdir=. |
| 1281 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1282 | srcdir=. |
| 1283 | fi |
| 1284 | # Remove unnecessary trailing slashes from srcdir. |
| 1285 | # Double slashes in file names in object file debugging info |
| 1286 | # mess up M-x gdb in Emacs. |
| 1287 | case $srcdir in |
| 1288 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1289 | esac |
| 1290 | for ac_var in $ac_precious_vars; do |
| 1291 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1292 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1293 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1294 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1295 | done |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1296 | |
| 1297 | # |
| 1298 | # Report the --help message. |
| 1299 | # |
| 1300 | if test "$ac_init_help" = "long"; then |
| 1301 | # Omit some internal or obsolete options to make the list less imposing. |
| 1302 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1303 | cat <<_ACEOF |
| 1304 | \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems. |
| 1305 | |
| 1306 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1307 | |
| 1308 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1309 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1310 | |
| 1311 | Defaults for the options are specified in brackets. |
| 1312 | |
| 1313 | Configuration: |
| 1314 | -h, --help display this help and exit |
| 1315 | --help=short display options specific to this package |
| 1316 | --help=recursive display the short help of all the included packages |
| 1317 | -V, --version display version information and exit |
| 1318 | -q, --quiet, --silent do not print \`checking...' messages |
| 1319 | --cache-file=FILE cache test results in FILE [disabled] |
| 1320 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1321 | -n, --no-create do not create output files |
| 1322 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1323 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1324 | Installation directories: |
| 1325 | --prefix=PREFIX install architecture-independent files in PREFIX |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1326 | [$ac_default_prefix] |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1327 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1328 | [PREFIX] |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1329 | |
| 1330 | By default, \`make install' will install all the files in |
| 1331 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1332 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1333 | for instance \`--prefix=\$HOME'. |
| 1334 | |
| 1335 | For better control, use the options below. |
| 1336 | |
| 1337 | Fine tuning of the installation directories: |
| 1338 | --bindir=DIR user executables [EPREFIX/bin] |
| 1339 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1340 | --libexecdir=DIR program executables [EPREFIX/libexec] |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1341 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1342 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1343 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1344 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1345 | --includedir=DIR C header files [PREFIX/include] |
| 1346 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1347 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1348 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1349 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1350 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1351 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1352 | --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--] |
| 1353 | --htmldir=DIR html documentation [DOCDIR] |
| 1354 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1355 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1356 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1357 | _ACEOF |
| 1358 | |
| 1359 | cat <<\_ACEOF |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 1360 | |
| 1361 | System types: |
| 1362 | --build=BUILD configure for building on BUILD [guessed] |
| 1363 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1364 | --target=TARGET configure for building compilers for TARGET [HOST] |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1365 | _ACEOF |
| 1366 | fi |
| 1367 | |
| 1368 | if test -n "$ac_init_help"; then |
| 1369 | case $ac_init_help in |
| 1370 | short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";; |
| 1371 | esac |
| 1372 | cat <<\_ACEOF |
| 1373 | |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 1374 | Optional Features: |
| 1375 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1376 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1377 | --enable-polly Use polly if available (default is YES) |
| 1378 | --enable-optimized Compile with optimizations enabled (default is NO) |
| 1379 | --enable-profiling Compile with profiling enabled (default is NO) |
| 1380 | --enable-assertions Compile with assertion checks enabled (default is |
| 1381 | YES) |
| 1382 | --enable-expensive-checks |
| 1383 | Compile with expensive debug checks enabled (default |
| 1384 | is NO) |
| 1385 | --enable-debug-runtime Build runtime libs with debug symbols (default is |
| 1386 | NO) |
| 1387 | --enable-debug-symbols Build compiler with debug symbols (default is NO if |
| 1388 | optimization is on and YES if it's off) |
| 1389 | --enable-jit Enable Just In Time Compiling (default is YES) |
| 1390 | --enable-docs Build documents (default is YES) |
| 1391 | --enable-doxygen Build doxygen documentation (default is NO) |
| 1392 | --enable-threads Use threads if available (default is YES) |
| 1393 | --enable-pthreads Use pthreads if available (default is YES) |
| 1394 | --enable-pic Build LLVM with Position Independent Code (default |
| 1395 | is YES) |
| 1396 | --enable-shared Build a shared library and link tools against it |
| 1397 | (default is NO) |
| 1398 | --enable-embed-stdcxx Build a shared library with embedded libstdc++ for |
| 1399 | Win32 DLL (default is YES) |
| 1400 | --enable-timestamps Enable embedding timestamp information in build |
| 1401 | (default is YES) |
| 1402 | --enable-targets Build specific host targets: all or |
| 1403 | target1,target2,... Valid targets are: host, x86, |
Dan Gohman | 33ba8b0 | 2011-10-27 22:56:32 +0000 | [diff] [blame] | 1404 | x86_64, sparc, powerpc, arm, mips, spu, |
Dan Gohman | 3e6157d | 2011-10-25 00:05:42 +0000 | [diff] [blame] | 1405 | xcore, msp430, ptx, cbe, and cpp |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 1406 | (default=all) |
| 1407 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1408 | %a (default is YES) |
| 1409 | --enable-bindings Build specific language bindings: |
| 1410 | all,auto,none,{binding-name} (default=auto) |
| 1411 | --enable-libffi Check for the presence of libffi (default is NO) |
| 1412 | --enable-ltdl-install install libltdl |
| 1413 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1414 | Optional Packages: |
| 1415 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1416 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1417 | --with-llvmsrc Location of LLVM Source Code |
| 1418 | --with-llvmobj Location of LLVM Object Code |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 1419 | --with-optimize-option Select the compiler options to use for optimized |
| 1420 | builds |
| 1421 | --with-extra-options Specify additional options to compile LLVM with |
| 1422 | --with-extra-ld-options Specify additional options to link LLVM with |
| 1423 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1424 | is stdlib) |
| 1425 | --with-clang-resource-dir |
| 1426 | Relative directory from the Clang binary for |
| 1427 | resource files |
| 1428 | --with-c-include-dirs Colon separated list of directories clang will |
| 1429 | search for headers |
| 1430 | --with-cxx-include-root Directory with the libstdc++ headers. |
| 1431 | --with-cxx-include-arch Architecture of the libstdc++ headers. |
| 1432 | --with-cxx-include-32bit-dir |
| 1433 | 32 bit multilib dir. |
| 1434 | --with-cxx-include-64bit-dir |
| 1435 | 64 bit multilib directory. |
| 1436 | --with-binutils-include Specify path to binutils/include/ containing |
| 1437 | plugin-api.h file for gold plugin. |
| 1438 | --with-bug-report-url Specify the URL where bug reports should be |
| 1439 | submitted (default=http://llvm.org/bugs/) |
| 1440 | --with-tclinclude directory where tcl headers are |
| 1441 | --with-udis86=<path> Use udis86 external x86 disassembler library |
| 1442 | --with-oprofile=<prefix> |
| 1443 | Tell OProfile >= 0.9.4 how to symbolize JIT output |
| 1444 | |
| 1445 | Some influential environment variables: |
| 1446 | CC C compiler command |
| 1447 | CFLAGS C compiler flags |
| 1448 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1449 | nonstandard directory <lib dir> |
| 1450 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1451 | you have headers in a nonstandard directory <include dir> |
| 1452 | CXX C++ compiler command |
| 1453 | CXXFLAGS C++ compiler flags |
| 1454 | CPP C preprocessor |
| 1455 | |
| 1456 | Use these variables to override the choices made by `configure' or to help |
| 1457 | it to find libraries and programs with nonstandard names/locations. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1458 | |
| 1459 | Report bugs to <bugs@yourdomain>. |
| 1460 | _ACEOF |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1461 | ac_status=$? |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1462 | fi |
| 1463 | |
| 1464 | if test "$ac_init_help" = "recursive"; then |
| 1465 | # If there are subdirs, report their specific --help. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1466 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1467 | test -d "$ac_dir" || continue |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1468 | ac_builddir=. |
| 1469 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1470 | case "$ac_dir" in |
| 1471 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1472 | *) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1473 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1474 | # A ".." for each directory in $ac_dir_suffix. |
| 1475 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1476 | case $ac_top_builddir_sub in |
| 1477 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1478 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1479 | esac ;; |
| 1480 | esac |
| 1481 | ac_abs_top_builddir=$ac_pwd |
| 1482 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1483 | # for backward compatibility: |
| 1484 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1485 | |
| 1486 | case $srcdir in |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1487 | .) # We are building in place. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1488 | ac_srcdir=. |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1489 | ac_top_srcdir=$ac_top_builddir_sub |
| 1490 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1491 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1492 | ac_srcdir=$srcdir$ac_dir_suffix; |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1493 | ac_top_srcdir=$srcdir |
| 1494 | ac_abs_top_srcdir=$srcdir ;; |
| 1495 | *) # Relative name. |
| 1496 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1497 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1498 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1499 | esac |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1500 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1501 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1502 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1503 | # Check for guested configure. |
| 1504 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1505 | echo && |
| 1506 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1507 | elif test -f "$ac_srcdir/configure"; then |
| 1508 | echo && |
| 1509 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1510 | else |
| 1511 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1512 | fi || ac_status=$? |
| 1513 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1514 | done |
| 1515 | fi |
| 1516 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1517 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1518 | if $ac_init_version; then |
| 1519 | cat <<\_ACEOF |
| 1520 | [SAMPLE] configure [x.xx] |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1521 | generated by GNU Autoconf 2.60 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1522 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1523 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1524 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1525 | This configure script is free software; the Free Software Foundation |
| 1526 | gives unlimited permission to copy, distribute and modify it. |
| 1527 | _ACEOF |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1528 | exit |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1529 | fi |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1530 | cat >config.log <<_ACEOF |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1531 | This file contains any messages produced by compilers while |
| 1532 | running configure, to aid debugging if configure makes a mistake. |
| 1533 | |
| 1534 | It was created by [SAMPLE] $as_me [x.xx], which was |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1535 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1536 | |
| 1537 | $ $0 $@ |
| 1538 | |
| 1539 | _ACEOF |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1540 | exec 5>>config.log |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1541 | { |
| 1542 | cat <<_ASUNAME |
| 1543 | ## --------- ## |
| 1544 | ## Platform. ## |
| 1545 | ## --------- ## |
| 1546 | |
| 1547 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1548 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1549 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1550 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1551 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1552 | |
| 1553 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1554 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1555 | |
| 1556 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1557 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1558 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1559 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1560 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1561 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1562 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1563 | |
| 1564 | _ASUNAME |
| 1565 | |
| 1566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1567 | for as_dir in $PATH |
| 1568 | do |
| 1569 | IFS=$as_save_IFS |
| 1570 | test -z "$as_dir" && as_dir=. |
| 1571 | echo "PATH: $as_dir" |
| 1572 | done |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1573 | IFS=$as_save_IFS |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1574 | |
| 1575 | } >&5 |
| 1576 | |
| 1577 | cat >&5 <<_ACEOF |
| 1578 | |
| 1579 | |
| 1580 | ## ----------- ## |
| 1581 | ## Core tests. ## |
| 1582 | ## ----------- ## |
| 1583 | |
| 1584 | _ACEOF |
| 1585 | |
| 1586 | |
| 1587 | # Keep a trace of the command line. |
| 1588 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1589 | # Strip out --silent because we don't want to record it for future runs. |
| 1590 | # Also quote any args containing shell meta-characters. |
| 1591 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1592 | ac_configure_args= |
| 1593 | ac_configure_args0= |
| 1594 | ac_configure_args1= |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1595 | ac_must_keep_next=false |
| 1596 | for ac_pass in 1 2 |
| 1597 | do |
| 1598 | for ac_arg |
| 1599 | do |
| 1600 | case $ac_arg in |
| 1601 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1602 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1603 | | -silent | --silent | --silen | --sile | --sil) |
| 1604 | continue ;; |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1605 | *\'*) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1606 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1607 | esac |
| 1608 | case $ac_pass in |
| 1609 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1610 | 2) |
| 1611 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1612 | if test $ac_must_keep_next = true; then |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1613 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1614 | else |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1615 | case $ac_arg in |
| 1616 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1617 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1618 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1619 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1620 | case "$ac_configure_args0 " in |
| 1621 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1622 | esac |
| 1623 | ;; |
| 1624 | -* ) ac_must_keep_next=true ;; |
| 1625 | esac |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1626 | fi |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1627 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1628 | ;; |
| 1629 | esac |
| 1630 | done |
| 1631 | done |
| 1632 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1633 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1634 | |
| 1635 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1636 | # config.log. We remove comments because anyway the quotes in there |
| 1637 | # would cause problems or look ugly. |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1638 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1639 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1640 | trap 'exit_status=$? |
| 1641 | # Save into config.log some information that might help in debugging. |
| 1642 | { |
| 1643 | echo |
| 1644 | |
| 1645 | cat <<\_ASBOX |
| 1646 | ## ---------------- ## |
| 1647 | ## Cache variables. ## |
| 1648 | ## ---------------- ## |
| 1649 | _ASBOX |
| 1650 | echo |
| 1651 | # The following way of writing the cache mishandles newlines in values, |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1652 | ( |
| 1653 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1654 | eval ac_val=\$$ac_var |
| 1655 | case $ac_val in #( |
| 1656 | *${as_nl}*) |
| 1657 | case $ac_var in #( |
| 1658 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1659 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1660 | esac |
| 1661 | case $ac_var in #( |
| 1662 | _ | IFS | as_nl) ;; #( |
| 1663 | *) $as_unset $ac_var ;; |
| 1664 | esac ;; |
| 1665 | esac |
| 1666 | done |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1667 | (set) 2>&1 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1668 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1669 | *${as_nl}ac_space=\ *) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1670 | sed -n \ |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1671 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1672 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1673 | ;; #( |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 1674 | *) |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1675 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 1676 | ;; |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1677 | esac | |
| 1678 | sort |
| 1679 | ) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1680 | echo |
| 1681 | |
| 1682 | cat <<\_ASBOX |
| 1683 | ## ----------------- ## |
| 1684 | ## Output variables. ## |
| 1685 | ## ----------------- ## |
| 1686 | _ASBOX |
| 1687 | echo |
| 1688 | for ac_var in $ac_subst_vars |
| 1689 | do |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1690 | eval ac_val=\$$ac_var |
| 1691 | case $ac_val in |
| 1692 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1693 | esac |
| 1694 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1695 | done | sort |
| 1696 | echo |
| 1697 | |
| 1698 | if test -n "$ac_subst_files"; then |
| 1699 | cat <<\_ASBOX |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1700 | ## ------------------- ## |
| 1701 | ## File substitutions. ## |
| 1702 | ## ------------------- ## |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1703 | _ASBOX |
| 1704 | echo |
| 1705 | for ac_var in $ac_subst_files |
| 1706 | do |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1707 | eval ac_val=\$$ac_var |
| 1708 | case $ac_val in |
| 1709 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1710 | esac |
| 1711 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1712 | done | sort |
| 1713 | echo |
| 1714 | fi |
| 1715 | |
| 1716 | if test -s confdefs.h; then |
| 1717 | cat <<\_ASBOX |
| 1718 | ## ----------- ## |
| 1719 | ## confdefs.h. ## |
| 1720 | ## ----------- ## |
| 1721 | _ASBOX |
| 1722 | echo |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1723 | cat confdefs.h |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1724 | echo |
| 1725 | fi |
| 1726 | test "$ac_signal" != 0 && |
| 1727 | echo "$as_me: caught signal $ac_signal" |
| 1728 | echo "$as_me: exit $exit_status" |
| 1729 | } >&5 |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1730 | rm -f core *.core core.conftest.* && |
| 1731 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1732 | exit $exit_status |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1733 | ' 0 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1734 | for ac_signal in 1 2 13 15; do |
| 1735 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1736 | done |
| 1737 | ac_signal=0 |
| 1738 | |
| 1739 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1740 | rm -f -r conftest* confdefs.h |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1741 | |
| 1742 | # Predefined preprocessor variables. |
| 1743 | |
| 1744 | cat >>confdefs.h <<_ACEOF |
| 1745 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1746 | _ACEOF |
| 1747 | |
| 1748 | |
| 1749 | cat >>confdefs.h <<_ACEOF |
| 1750 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1751 | _ACEOF |
| 1752 | |
| 1753 | |
| 1754 | cat >>confdefs.h <<_ACEOF |
| 1755 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1756 | _ACEOF |
| 1757 | |
| 1758 | |
| 1759 | cat >>confdefs.h <<_ACEOF |
| 1760 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1761 | _ACEOF |
| 1762 | |
| 1763 | |
| 1764 | cat >>confdefs.h <<_ACEOF |
| 1765 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1766 | _ACEOF |
| 1767 | |
| 1768 | |
| 1769 | # Let the site file select an alternate cache file if it wants to. |
| 1770 | # Prefer explicitly selected file to automatically selected ones. |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1771 | if test -n "$CONFIG_SITE"; then |
| 1772 | set x "$CONFIG_SITE" |
| 1773 | elif test "x$prefix" != xNONE; then |
| 1774 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1775 | else |
| 1776 | set x "$ac_default_prefix/share/config.site" \ |
| 1777 | "$ac_default_prefix/etc/config.site" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1778 | fi |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1779 | shift |
| 1780 | for ac_site_file |
| 1781 | do |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1782 | if test -r "$ac_site_file"; then |
| 1783 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1784 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1785 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1786 | . "$ac_site_file" |
| 1787 | fi |
| 1788 | done |
| 1789 | |
| 1790 | if test -r "$cache_file"; then |
| 1791 | # Some versions of bash will fail to source /dev/null (special |
| 1792 | # files actually), so we avoid doing that. |
| 1793 | if test -f "$cache_file"; then |
| 1794 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1795 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1796 | case $cache_file in |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1797 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1798 | *) . "./$cache_file";; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1799 | esac |
| 1800 | fi |
| 1801 | else |
| 1802 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1803 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1804 | >$cache_file |
| 1805 | fi |
| 1806 | |
| 1807 | # Check that the precious variables saved in the cache have kept the same |
| 1808 | # value. |
| 1809 | ac_cache_corrupted=false |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1810 | for ac_var in $ac_precious_vars; do |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1811 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1812 | eval ac_new_set=\$ac_env_${ac_var}_set |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1813 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1814 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1815 | case $ac_old_set,$ac_new_set in |
| 1816 | set,) |
| 1817 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1818 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1819 | ac_cache_corrupted=: ;; |
| 1820 | ,set) |
| 1821 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1822 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1823 | ac_cache_corrupted=: ;; |
| 1824 | ,);; |
| 1825 | *) |
| 1826 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1827 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1828 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1829 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1830 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1831 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1832 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 1833 | ac_cache_corrupted=: |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1834 | fi;; |
| 1835 | esac |
| 1836 | # Pass precious variables to config.status. |
| 1837 | if test "$ac_new_set" = set; then |
| 1838 | case $ac_new_val in |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1839 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1840 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1841 | esac |
| 1842 | case " $ac_configure_args " in |
| 1843 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1844 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1845 | esac |
| 1846 | fi |
| 1847 | done |
| 1848 | if $ac_cache_corrupted; then |
| 1849 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1850 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1851 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1852 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1853 | { (exit 1); exit 1; }; } |
| 1854 | fi |
| 1855 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1856 | |
| 1857 | |
| 1858 | |
| 1859 | |
| 1860 | |
| 1861 | |
| 1862 | |
| 1863 | |
| 1864 | |
| 1865 | |
| 1866 | |
| 1867 | |
| 1868 | |
| 1869 | |
| 1870 | |
| 1871 | |
| 1872 | |
| 1873 | |
| 1874 | |
| 1875 | |
| 1876 | |
| 1877 | |
| 1878 | |
| 1879 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1880 | ac_ext=c |
| 1881 | ac_cpp='$CPP $CPPFLAGS' |
| 1882 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1883 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1884 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1885 | |
| 1886 | |
| 1887 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1888 | LLVM_SRC_ROOT="../.." |
| 1889 | LLVM_OBJ_ROOT="../.." |
| 1890 | |
| 1891 | LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`" |
| 1892 | LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`" |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 1893 | |
| 1894 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1895 | # Check whether --with-llvmsrc was given. |
| 1896 | if test "${with_llvmsrc+set}" = set; then |
| 1897 | withval=$with_llvmsrc; llvm_src="$withval" |
| 1898 | else |
| 1899 | llvm_src="$LLVM_ABS_SRC_ROOT" |
| 1900 | fi |
| 1901 | |
| 1902 | LLVM_SRC=$llvm_src |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 1903 | |
| 1904 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1905 | # Check whether --with-llvmobj was given. |
| 1906 | if test "${with_llvmobj+set}" = set; then |
| 1907 | withval=$with_llvmobj; llvm_obj="$withval" |
| 1908 | else |
| 1909 | llvm_obj="$LLVM_ABS_OBJ_ROOT" |
| 1910 | fi |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 1911 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1912 | LLVM_OBJ=$llvm_obj |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 1913 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1914 | ac_config_commands="$ac_config_commands setup" |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 1915 | |
| 1916 | |
| 1917 | |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 1918 | { echo "$as_me:$LINENO: checking llvm-config" >&5 |
| 1919 | echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; } |
| 1920 | llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`" |
| 1921 | if ! test -f "$llvm_config_path" ; then |
| 1922 | llvm_config_path="no" |
| 1923 | fi |
| 1924 | { echo "$as_me:$LINENO: result: $llvm_config_path" >&5 |
| 1925 | echo "${ECHO_T}$llvm_config_path" >&6; } |
| 1926 | |
| 1927 | { echo "$as_me:$LINENO: checking LLVM package version" >&5 |
| 1928 | echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; } |
| 1929 | if test "$llvm_config_path" != no ; then |
| 1930 | llvm_package_version=`$llvm_config_path --version` |
| 1931 | else |
| 1932 | llvm_package_version="unknown"; |
| 1933 | fi |
| 1934 | { echo "$as_me:$LINENO: result: $llvm_package_version" >&5 |
| 1935 | echo "${ECHO_T}$llvm_package_version" >&6; } |
| 1936 | LLVM_VERSION=$llvm_package_version |
| 1937 | |
| 1938 | |
| 1939 | |
| 1940 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1941 | ac_aux_dir= |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 1942 | for ac_dir in autoconf "$srcdir"/autoconf; do |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1943 | if test -f "$ac_dir/install-sh"; then |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1944 | ac_aux_dir=$ac_dir |
| 1945 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1946 | break |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1947 | elif test -f "$ac_dir/install.sh"; then |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1948 | ac_aux_dir=$ac_dir |
| 1949 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1950 | break |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1951 | elif test -f "$ac_dir/shtool"; then |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1952 | ac_aux_dir=$ac_dir |
| 1953 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1954 | break |
| 1955 | fi |
| 1956 | done |
| 1957 | if test -z "$ac_aux_dir"; then |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 1958 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 1959 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1960 | { (exit 1); exit 1; }; } |
| 1961 | fi |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 1962 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 1963 | # These three variables are undocumented and unsupported, |
| 1964 | # and are intended to be withdrawn in a future Autoconf release. |
| 1965 | # They can cause serious problems if a builder's source tree is in a directory |
| 1966 | # whose full name contains unusual characters. |
| 1967 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1968 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1969 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
Reid Spencer | 421ec05 | 2005-02-24 18:53:47 +0000 | [diff] [blame] | 1970 | |
| 1971 | |
| 1972 | |
| 1973 | |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 1974 | ac_ext=c |
| 1975 | ac_cpp='$CPP $CPPFLAGS' |
| 1976 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1977 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1978 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1979 | if test -n "$ac_tool_prefix"; then |
| 1980 | for ac_prog in clang llvm-gcc gcc |
| 1981 | do |
| 1982 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1983 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1984 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1985 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 1986 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1988 | else |
| 1989 | if test -n "$CC"; then |
| 1990 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1991 | else |
| 1992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1993 | for as_dir in $PATH |
| 1994 | do |
| 1995 | IFS=$as_save_IFS |
| 1996 | test -z "$as_dir" && as_dir=. |
| 1997 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1998 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 1999 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2000 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2001 | break 2 |
| 2002 | fi |
| 2003 | done |
| 2004 | done |
| 2005 | IFS=$as_save_IFS |
| 2006 | |
| 2007 | fi |
| 2008 | fi |
| 2009 | CC=$ac_cv_prog_CC |
| 2010 | if test -n "$CC"; then |
| 2011 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2012 | echo "${ECHO_T}$CC" >&6; } |
| 2013 | else |
| 2014 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2015 | echo "${ECHO_T}no" >&6; } |
| 2016 | fi |
| 2017 | |
| 2018 | |
| 2019 | test -n "$CC" && break |
| 2020 | done |
| 2021 | fi |
| 2022 | if test -z "$CC"; then |
| 2023 | ac_ct_CC=$CC |
| 2024 | for ac_prog in clang llvm-gcc gcc |
| 2025 | do |
| 2026 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2027 | set dummy $ac_prog; ac_word=$2 |
| 2028 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2029 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2030 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2032 | else |
| 2033 | if test -n "$ac_ct_CC"; then |
| 2034 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2035 | else |
| 2036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2037 | for as_dir in $PATH |
| 2038 | do |
| 2039 | IFS=$as_save_IFS |
| 2040 | test -z "$as_dir" && as_dir=. |
| 2041 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2042 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2043 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2044 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2045 | break 2 |
| 2046 | fi |
| 2047 | done |
| 2048 | done |
| 2049 | IFS=$as_save_IFS |
| 2050 | |
| 2051 | fi |
| 2052 | fi |
| 2053 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2054 | if test -n "$ac_ct_CC"; then |
| 2055 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2056 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 2057 | else |
| 2058 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2059 | echo "${ECHO_T}no" >&6; } |
| 2060 | fi |
| 2061 | |
| 2062 | |
| 2063 | test -n "$ac_ct_CC" && break |
| 2064 | done |
| 2065 | |
| 2066 | if test "x$ac_ct_CC" = x; then |
| 2067 | CC="" |
| 2068 | else |
| 2069 | case $cross_compiling:$ac_tool_warned in |
| 2070 | yes:) |
| 2071 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2072 | whose name does not start with the host triplet. If you think this |
| 2073 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2074 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2075 | whose name does not start with the host triplet. If you think this |
| 2076 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2077 | ac_tool_warned=yes ;; |
| 2078 | esac |
| 2079 | CC=$ac_ct_CC |
| 2080 | fi |
| 2081 | fi |
| 2082 | |
| 2083 | |
| 2084 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2085 | See \`config.log' for more details." >&5 |
| 2086 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2087 | See \`config.log' for more details." >&2;} |
| 2088 | { (exit 1); exit 1; }; } |
| 2089 | |
| 2090 | # Provide some information about the compiler. |
| 2091 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 2092 | ac_compiler=`set X $ac_compile; echo $2` |
| 2093 | { (ac_try="$ac_compiler --version >&5" |
| 2094 | case "(($ac_try" in |
| 2095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2096 | *) ac_try_echo=$ac_try;; |
| 2097 | esac |
| 2098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2099 | (eval "$ac_compiler --version >&5") 2>&5 |
| 2100 | ac_status=$? |
| 2101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2102 | (exit $ac_status); } |
| 2103 | { (ac_try="$ac_compiler -v >&5" |
| 2104 | case "(($ac_try" in |
| 2105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2106 | *) ac_try_echo=$ac_try;; |
| 2107 | esac |
| 2108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2109 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2110 | ac_status=$? |
| 2111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2112 | (exit $ac_status); } |
| 2113 | { (ac_try="$ac_compiler -V >&5" |
| 2114 | case "(($ac_try" in |
| 2115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2116 | *) ac_try_echo=$ac_try;; |
| 2117 | esac |
| 2118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2119 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2120 | ac_status=$? |
| 2121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2122 | (exit $ac_status); } |
| 2123 | |
| 2124 | cat >conftest.$ac_ext <<_ACEOF |
| 2125 | /* confdefs.h. */ |
| 2126 | _ACEOF |
| 2127 | cat confdefs.h >>conftest.$ac_ext |
| 2128 | cat >>conftest.$ac_ext <<_ACEOF |
| 2129 | /* end confdefs.h. */ |
| 2130 | |
| 2131 | int |
| 2132 | main () |
| 2133 | { |
| 2134 | |
| 2135 | ; |
| 2136 | return 0; |
| 2137 | } |
| 2138 | _ACEOF |
| 2139 | ac_clean_files_save=$ac_clean_files |
| 2140 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2141 | # Try to create an executable without -o first, disregard a.out. |
| 2142 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2143 | # of exeext. |
| 2144 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2145 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
| 2146 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2147 | # |
| 2148 | # List of possible output files, starting from the most likely. |
| 2149 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2150 | # only as a last resort. b.out is created by i960 compilers. |
| 2151 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2152 | # |
| 2153 | # The IRIX 6 linker writes into existing files which may not be |
| 2154 | # executable, retaining their permissions. Remove them first so a |
| 2155 | # subsequent execution test works. |
| 2156 | ac_rmfiles= |
| 2157 | for ac_file in $ac_files |
| 2158 | do |
| 2159 | case $ac_file in |
| 2160 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2161 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2162 | esac |
| 2163 | done |
| 2164 | rm -f $ac_rmfiles |
| 2165 | |
| 2166 | if { (ac_try="$ac_link_default" |
| 2167 | case "(($ac_try" in |
| 2168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2169 | *) ac_try_echo=$ac_try;; |
| 2170 | esac |
| 2171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2172 | (eval "$ac_link_default") 2>&5 |
| 2173 | ac_status=$? |
| 2174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2175 | (exit $ac_status); }; then |
| 2176 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2177 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2178 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2179 | # so that the user can short-circuit this test for compilers unknown to |
| 2180 | # Autoconf. |
| 2181 | for ac_file in $ac_files |
| 2182 | do |
| 2183 | test -f "$ac_file" || continue |
| 2184 | case $ac_file in |
| 2185 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
| 2186 | ;; |
| 2187 | [ab].out ) |
| 2188 | # We found the default executable, but exeext='' is most |
| 2189 | # certainly right. |
| 2190 | break;; |
| 2191 | *.* ) |
| 2192 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2193 | then :; else |
| 2194 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2195 | fi |
| 2196 | # We set ac_cv_exeext here because the later test for it is not |
| 2197 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2198 | # argument, so we may need to know it at that point already. |
| 2199 | # Even if this section looks crufty: it has the advantage of |
| 2200 | # actually working. |
| 2201 | break;; |
| 2202 | * ) |
| 2203 | break;; |
| 2204 | esac |
| 2205 | done |
| 2206 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2207 | |
| 2208 | else |
| 2209 | echo "$as_me: failed program was:" >&5 |
| 2210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2211 | |
| 2212 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2213 | See \`config.log' for more details." >&5 |
| 2214 | echo "$as_me: error: C compiler cannot create executables |
| 2215 | See \`config.log' for more details." >&2;} |
| 2216 | { (exit 77); exit 77; }; } |
| 2217 | fi |
| 2218 | |
| 2219 | ac_exeext=$ac_cv_exeext |
| 2220 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2221 | echo "${ECHO_T}$ac_file" >&6; } |
| 2222 | |
| 2223 | # Check that the compiler produces executables we can run. If not, either |
| 2224 | # the compiler is broken, or we cross compile. |
| 2225 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2226 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
| 2227 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2228 | # If not cross compiling, check that we can run a simple program. |
| 2229 | if test "$cross_compiling" != yes; then |
| 2230 | if { ac_try='./$ac_file' |
| 2231 | { (case "(($ac_try" in |
| 2232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2233 | *) ac_try_echo=$ac_try;; |
| 2234 | esac |
| 2235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2236 | (eval "$ac_try") 2>&5 |
| 2237 | ac_status=$? |
| 2238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2239 | (exit $ac_status); }; }; then |
| 2240 | cross_compiling=no |
| 2241 | else |
| 2242 | if test "$cross_compiling" = maybe; then |
| 2243 | cross_compiling=yes |
| 2244 | else |
| 2245 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2246 | If you meant to cross compile, use \`--host'. |
| 2247 | See \`config.log' for more details." >&5 |
| 2248 | echo "$as_me: error: cannot run C compiled programs. |
| 2249 | If you meant to cross compile, use \`--host'. |
| 2250 | See \`config.log' for more details." >&2;} |
| 2251 | { (exit 1); exit 1; }; } |
| 2252 | fi |
| 2253 | fi |
| 2254 | fi |
| 2255 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2256 | echo "${ECHO_T}yes" >&6; } |
| 2257 | |
| 2258 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2259 | ac_clean_files=$ac_clean_files_save |
| 2260 | # Check that the compiler produces executables we can run. If not, either |
| 2261 | # the compiler is broken, or we cross compile. |
| 2262 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2263 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2264 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2265 | echo "${ECHO_T}$cross_compiling" >&6; } |
| 2266 | |
| 2267 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2268 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2269 | if { (ac_try="$ac_link" |
| 2270 | case "(($ac_try" in |
| 2271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2272 | *) ac_try_echo=$ac_try;; |
| 2273 | esac |
| 2274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2275 | (eval "$ac_link") 2>&5 |
| 2276 | ac_status=$? |
| 2277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2278 | (exit $ac_status); }; then |
| 2279 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2280 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2281 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2282 | # `rm'. |
| 2283 | for ac_file in conftest.exe conftest conftest.*; do |
| 2284 | test -f "$ac_file" || continue |
| 2285 | case $ac_file in |
| 2286 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2287 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2288 | break;; |
| 2289 | * ) break;; |
| 2290 | esac |
| 2291 | done |
| 2292 | else |
| 2293 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2294 | See \`config.log' for more details." >&5 |
| 2295 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2296 | See \`config.log' for more details." >&2;} |
| 2297 | { (exit 1); exit 1; }; } |
| 2298 | fi |
| 2299 | |
| 2300 | rm -f conftest$ac_cv_exeext |
| 2301 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2302 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
| 2303 | |
| 2304 | rm -f conftest.$ac_ext |
| 2305 | EXEEXT=$ac_cv_exeext |
| 2306 | ac_exeext=$EXEEXT |
| 2307 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2308 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
| 2309 | if test "${ac_cv_objext+set}" = set; then |
| 2310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2311 | else |
| 2312 | cat >conftest.$ac_ext <<_ACEOF |
| 2313 | /* confdefs.h. */ |
| 2314 | _ACEOF |
| 2315 | cat confdefs.h >>conftest.$ac_ext |
| 2316 | cat >>conftest.$ac_ext <<_ACEOF |
| 2317 | /* end confdefs.h. */ |
| 2318 | |
| 2319 | int |
| 2320 | main () |
| 2321 | { |
| 2322 | |
| 2323 | ; |
| 2324 | return 0; |
| 2325 | } |
| 2326 | _ACEOF |
| 2327 | rm -f conftest.o conftest.obj |
| 2328 | if { (ac_try="$ac_compile" |
| 2329 | case "(($ac_try" in |
| 2330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2331 | *) ac_try_echo=$ac_try;; |
| 2332 | esac |
| 2333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2334 | (eval "$ac_compile") 2>&5 |
| 2335 | ac_status=$? |
| 2336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2337 | (exit $ac_status); }; then |
| 2338 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2339 | test -f "$ac_file" || continue; |
| 2340 | case $ac_file in |
| 2341 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
| 2342 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2343 | break;; |
| 2344 | esac |
| 2345 | done |
| 2346 | else |
| 2347 | echo "$as_me: failed program was:" >&5 |
| 2348 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2349 | |
| 2350 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2351 | See \`config.log' for more details." >&5 |
| 2352 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2353 | See \`config.log' for more details." >&2;} |
| 2354 | { (exit 1); exit 1; }; } |
| 2355 | fi |
| 2356 | |
| 2357 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2358 | fi |
| 2359 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2360 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
| 2361 | OBJEXT=$ac_cv_objext |
| 2362 | ac_objext=$OBJEXT |
| 2363 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2364 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 2365 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2367 | else |
| 2368 | cat >conftest.$ac_ext <<_ACEOF |
| 2369 | /* confdefs.h. */ |
| 2370 | _ACEOF |
| 2371 | cat confdefs.h >>conftest.$ac_ext |
| 2372 | cat >>conftest.$ac_ext <<_ACEOF |
| 2373 | /* end confdefs.h. */ |
| 2374 | |
| 2375 | int |
| 2376 | main () |
| 2377 | { |
| 2378 | #ifndef __GNUC__ |
| 2379 | choke me |
| 2380 | #endif |
| 2381 | |
| 2382 | ; |
| 2383 | return 0; |
| 2384 | } |
| 2385 | _ACEOF |
| 2386 | rm -f conftest.$ac_objext |
| 2387 | if { (ac_try="$ac_compile" |
| 2388 | case "(($ac_try" in |
| 2389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2390 | *) ac_try_echo=$ac_try;; |
| 2391 | esac |
| 2392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2393 | (eval "$ac_compile") 2>conftest.er1 |
| 2394 | ac_status=$? |
| 2395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2396 | rm -f conftest.er1 |
| 2397 | cat conftest.err >&5 |
| 2398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2399 | (exit $ac_status); } && |
| 2400 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2401 | { (case "(($ac_try" in |
| 2402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2403 | *) ac_try_echo=$ac_try;; |
| 2404 | esac |
| 2405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2406 | (eval "$ac_try") 2>&5 |
| 2407 | ac_status=$? |
| 2408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2409 | (exit $ac_status); }; } && |
| 2410 | { ac_try='test -s conftest.$ac_objext' |
| 2411 | { (case "(($ac_try" in |
| 2412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2413 | *) ac_try_echo=$ac_try;; |
| 2414 | esac |
| 2415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2416 | (eval "$ac_try") 2>&5 |
| 2417 | ac_status=$? |
| 2418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2419 | (exit $ac_status); }; }; then |
| 2420 | ac_compiler_gnu=yes |
| 2421 | else |
| 2422 | echo "$as_me: failed program was:" >&5 |
| 2423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2424 | |
| 2425 | ac_compiler_gnu=no |
| 2426 | fi |
| 2427 | |
| 2428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2429 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2430 | |
| 2431 | fi |
| 2432 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2433 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 2434 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2435 | ac_test_CFLAGS=${CFLAGS+set} |
| 2436 | ac_save_CFLAGS=$CFLAGS |
| 2437 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2438 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 2439 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2441 | else |
| 2442 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2443 | ac_c_werror_flag=yes |
| 2444 | ac_cv_prog_cc_g=no |
| 2445 | CFLAGS="-g" |
| 2446 | cat >conftest.$ac_ext <<_ACEOF |
| 2447 | /* confdefs.h. */ |
| 2448 | _ACEOF |
| 2449 | cat confdefs.h >>conftest.$ac_ext |
| 2450 | cat >>conftest.$ac_ext <<_ACEOF |
| 2451 | /* end confdefs.h. */ |
| 2452 | |
| 2453 | int |
| 2454 | main () |
| 2455 | { |
| 2456 | |
| 2457 | ; |
| 2458 | return 0; |
| 2459 | } |
| 2460 | _ACEOF |
| 2461 | rm -f conftest.$ac_objext |
| 2462 | if { (ac_try="$ac_compile" |
| 2463 | case "(($ac_try" in |
| 2464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2465 | *) ac_try_echo=$ac_try;; |
| 2466 | esac |
| 2467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2468 | (eval "$ac_compile") 2>conftest.er1 |
| 2469 | ac_status=$? |
| 2470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2471 | rm -f conftest.er1 |
| 2472 | cat conftest.err >&5 |
| 2473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2474 | (exit $ac_status); } && |
| 2475 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2476 | { (case "(($ac_try" in |
| 2477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2478 | *) ac_try_echo=$ac_try;; |
| 2479 | esac |
| 2480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2481 | (eval "$ac_try") 2>&5 |
| 2482 | ac_status=$? |
| 2483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2484 | (exit $ac_status); }; } && |
| 2485 | { ac_try='test -s conftest.$ac_objext' |
| 2486 | { (case "(($ac_try" in |
| 2487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2488 | *) ac_try_echo=$ac_try;; |
| 2489 | esac |
| 2490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2491 | (eval "$ac_try") 2>&5 |
| 2492 | ac_status=$? |
| 2493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2494 | (exit $ac_status); }; }; then |
| 2495 | ac_cv_prog_cc_g=yes |
| 2496 | else |
| 2497 | echo "$as_me: failed program was:" >&5 |
| 2498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2499 | |
| 2500 | CFLAGS="" |
| 2501 | cat >conftest.$ac_ext <<_ACEOF |
| 2502 | /* confdefs.h. */ |
| 2503 | _ACEOF |
| 2504 | cat confdefs.h >>conftest.$ac_ext |
| 2505 | cat >>conftest.$ac_ext <<_ACEOF |
| 2506 | /* end confdefs.h. */ |
| 2507 | |
| 2508 | int |
| 2509 | main () |
| 2510 | { |
| 2511 | |
| 2512 | ; |
| 2513 | return 0; |
| 2514 | } |
| 2515 | _ACEOF |
| 2516 | rm -f conftest.$ac_objext |
| 2517 | if { (ac_try="$ac_compile" |
| 2518 | case "(($ac_try" in |
| 2519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2520 | *) ac_try_echo=$ac_try;; |
| 2521 | esac |
| 2522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2523 | (eval "$ac_compile") 2>conftest.er1 |
| 2524 | ac_status=$? |
| 2525 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2526 | rm -f conftest.er1 |
| 2527 | cat conftest.err >&5 |
| 2528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2529 | (exit $ac_status); } && |
| 2530 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2531 | { (case "(($ac_try" in |
| 2532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2533 | *) ac_try_echo=$ac_try;; |
| 2534 | esac |
| 2535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2536 | (eval "$ac_try") 2>&5 |
| 2537 | ac_status=$? |
| 2538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2539 | (exit $ac_status); }; } && |
| 2540 | { ac_try='test -s conftest.$ac_objext' |
| 2541 | { (case "(($ac_try" in |
| 2542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2543 | *) ac_try_echo=$ac_try;; |
| 2544 | esac |
| 2545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2546 | (eval "$ac_try") 2>&5 |
| 2547 | ac_status=$? |
| 2548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2549 | (exit $ac_status); }; }; then |
| 2550 | : |
| 2551 | else |
| 2552 | echo "$as_me: failed program was:" >&5 |
| 2553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2554 | |
| 2555 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2556 | CFLAGS="-g" |
| 2557 | cat >conftest.$ac_ext <<_ACEOF |
| 2558 | /* confdefs.h. */ |
| 2559 | _ACEOF |
| 2560 | cat confdefs.h >>conftest.$ac_ext |
| 2561 | cat >>conftest.$ac_ext <<_ACEOF |
| 2562 | /* end confdefs.h. */ |
| 2563 | |
| 2564 | int |
| 2565 | main () |
| 2566 | { |
| 2567 | |
| 2568 | ; |
| 2569 | return 0; |
| 2570 | } |
| 2571 | _ACEOF |
| 2572 | rm -f conftest.$ac_objext |
| 2573 | if { (ac_try="$ac_compile" |
| 2574 | case "(($ac_try" in |
| 2575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2576 | *) ac_try_echo=$ac_try;; |
| 2577 | esac |
| 2578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2579 | (eval "$ac_compile") 2>conftest.er1 |
| 2580 | ac_status=$? |
| 2581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2582 | rm -f conftest.er1 |
| 2583 | cat conftest.err >&5 |
| 2584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2585 | (exit $ac_status); } && |
| 2586 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2587 | { (case "(($ac_try" in |
| 2588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2589 | *) ac_try_echo=$ac_try;; |
| 2590 | esac |
| 2591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2592 | (eval "$ac_try") 2>&5 |
| 2593 | ac_status=$? |
| 2594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2595 | (exit $ac_status); }; } && |
| 2596 | { ac_try='test -s conftest.$ac_objext' |
| 2597 | { (case "(($ac_try" in |
| 2598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2599 | *) ac_try_echo=$ac_try;; |
| 2600 | esac |
| 2601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2602 | (eval "$ac_try") 2>&5 |
| 2603 | ac_status=$? |
| 2604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2605 | (exit $ac_status); }; }; then |
| 2606 | ac_cv_prog_cc_g=yes |
| 2607 | else |
| 2608 | echo "$as_me: failed program was:" >&5 |
| 2609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2610 | |
| 2611 | |
| 2612 | fi |
| 2613 | |
| 2614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2615 | fi |
| 2616 | |
| 2617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2618 | fi |
| 2619 | |
| 2620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2621 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2622 | fi |
| 2623 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2624 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 2625 | if test "$ac_test_CFLAGS" = set; then |
| 2626 | CFLAGS=$ac_save_CFLAGS |
| 2627 | elif test $ac_cv_prog_cc_g = yes; then |
| 2628 | if test "$GCC" = yes; then |
| 2629 | CFLAGS="-g -O2" |
| 2630 | else |
| 2631 | CFLAGS="-g" |
| 2632 | fi |
| 2633 | else |
| 2634 | if test "$GCC" = yes; then |
| 2635 | CFLAGS="-O2" |
| 2636 | else |
| 2637 | CFLAGS= |
| 2638 | fi |
| 2639 | fi |
| 2640 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2641 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2642 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 2643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2644 | else |
| 2645 | ac_cv_prog_cc_c89=no |
| 2646 | ac_save_CC=$CC |
| 2647 | cat >conftest.$ac_ext <<_ACEOF |
| 2648 | /* confdefs.h. */ |
| 2649 | _ACEOF |
| 2650 | cat confdefs.h >>conftest.$ac_ext |
| 2651 | cat >>conftest.$ac_ext <<_ACEOF |
| 2652 | /* end confdefs.h. */ |
| 2653 | #include <stdarg.h> |
| 2654 | #include <stdio.h> |
| 2655 | #include <sys/types.h> |
| 2656 | #include <sys/stat.h> |
| 2657 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2658 | struct buf { int x; }; |
| 2659 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2660 | static char *e (p, i) |
| 2661 | char **p; |
| 2662 | int i; |
| 2663 | { |
| 2664 | return p[i]; |
| 2665 | } |
| 2666 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2667 | { |
| 2668 | char *s; |
| 2669 | va_list v; |
| 2670 | va_start (v,p); |
| 2671 | s = g (p, va_arg (v,int)); |
| 2672 | va_end (v); |
| 2673 | return s; |
| 2674 | } |
| 2675 | |
| 2676 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2677 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2678 | These don't provoke an error unfortunately, instead are silently treated |
| 2679 | as 'x'. The following induces an error, until -std is added to get |
| 2680 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2681 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2682 | that's true only with -std. */ |
| 2683 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2684 | |
| 2685 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2686 | inside strings and character constants. */ |
| 2687 | #define FOO(x) 'x' |
| 2688 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2689 | |
| 2690 | int test (int i, double x); |
| 2691 | struct s1 {int (*f) (int a);}; |
| 2692 | struct s2 {int (*f) (double a);}; |
| 2693 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2694 | int argc; |
| 2695 | char **argv; |
| 2696 | int |
| 2697 | main () |
| 2698 | { |
| 2699 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2700 | ; |
| 2701 | return 0; |
| 2702 | } |
| 2703 | _ACEOF |
| 2704 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2705 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2706 | do |
| 2707 | CC="$ac_save_CC $ac_arg" |
| 2708 | rm -f conftest.$ac_objext |
| 2709 | if { (ac_try="$ac_compile" |
| 2710 | case "(($ac_try" in |
| 2711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2712 | *) ac_try_echo=$ac_try;; |
| 2713 | esac |
| 2714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2715 | (eval "$ac_compile") 2>conftest.er1 |
| 2716 | ac_status=$? |
| 2717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2718 | rm -f conftest.er1 |
| 2719 | cat conftest.err >&5 |
| 2720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2721 | (exit $ac_status); } && |
| 2722 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2723 | { (case "(($ac_try" in |
| 2724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2725 | *) ac_try_echo=$ac_try;; |
| 2726 | esac |
| 2727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2728 | (eval "$ac_try") 2>&5 |
| 2729 | ac_status=$? |
| 2730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2731 | (exit $ac_status); }; } && |
| 2732 | { ac_try='test -s conftest.$ac_objext' |
| 2733 | { (case "(($ac_try" in |
| 2734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2735 | *) ac_try_echo=$ac_try;; |
| 2736 | esac |
| 2737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2738 | (eval "$ac_try") 2>&5 |
| 2739 | ac_status=$? |
| 2740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2741 | (exit $ac_status); }; }; then |
| 2742 | ac_cv_prog_cc_c89=$ac_arg |
| 2743 | else |
| 2744 | echo "$as_me: failed program was:" >&5 |
| 2745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2746 | |
| 2747 | |
| 2748 | fi |
| 2749 | |
| 2750 | rm -f core conftest.err conftest.$ac_objext |
| 2751 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 2752 | done |
| 2753 | rm -f conftest.$ac_ext |
| 2754 | CC=$ac_save_CC |
| 2755 | |
| 2756 | fi |
| 2757 | # AC_CACHE_VAL |
| 2758 | case "x$ac_cv_prog_cc_c89" in |
| 2759 | x) |
| 2760 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2761 | echo "${ECHO_T}none needed" >&6; } ;; |
| 2762 | xno) |
| 2763 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2764 | echo "${ECHO_T}unsupported" >&6; } ;; |
| 2765 | *) |
| 2766 | CC="$CC $ac_cv_prog_cc_c89" |
| 2767 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2768 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 2769 | esac |
| 2770 | |
| 2771 | |
| 2772 | ac_ext=c |
| 2773 | ac_cpp='$CPP $CPPFLAGS' |
| 2774 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2775 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2776 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2777 | |
| 2778 | ac_ext=cpp |
| 2779 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2780 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2781 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2782 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2783 | if test -z "$CXX"; then |
| 2784 | if test -n "$CCC"; then |
| 2785 | CXX=$CCC |
| 2786 | else |
| 2787 | if test -n "$ac_tool_prefix"; then |
| 2788 | for ac_prog in clang++ llvm-g++ g++ |
| 2789 | do |
| 2790 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2791 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2792 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2793 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2794 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2796 | else |
| 2797 | if test -n "$CXX"; then |
| 2798 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2799 | else |
| 2800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2801 | for as_dir in $PATH |
| 2802 | do |
| 2803 | IFS=$as_save_IFS |
| 2804 | test -z "$as_dir" && as_dir=. |
| 2805 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2806 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2807 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2808 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2809 | break 2 |
| 2810 | fi |
| 2811 | done |
| 2812 | done |
| 2813 | IFS=$as_save_IFS |
| 2814 | |
| 2815 | fi |
| 2816 | fi |
| 2817 | CXX=$ac_cv_prog_CXX |
| 2818 | if test -n "$CXX"; then |
| 2819 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2820 | echo "${ECHO_T}$CXX" >&6; } |
| 2821 | else |
| 2822 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2823 | echo "${ECHO_T}no" >&6; } |
| 2824 | fi |
| 2825 | |
| 2826 | |
| 2827 | test -n "$CXX" && break |
| 2828 | done |
| 2829 | fi |
| 2830 | if test -z "$CXX"; then |
| 2831 | ac_ct_CXX=$CXX |
| 2832 | for ac_prog in clang++ llvm-g++ g++ |
| 2833 | do |
| 2834 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2835 | set dummy $ac_prog; ac_word=$2 |
| 2836 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2837 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 2838 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2840 | else |
| 2841 | if test -n "$ac_ct_CXX"; then |
| 2842 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2843 | else |
| 2844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2845 | for as_dir in $PATH |
| 2846 | do |
| 2847 | IFS=$as_save_IFS |
| 2848 | test -z "$as_dir" && as_dir=. |
| 2849 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2850 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2851 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2852 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2853 | break 2 |
| 2854 | fi |
| 2855 | done |
| 2856 | done |
| 2857 | IFS=$as_save_IFS |
| 2858 | |
| 2859 | fi |
| 2860 | fi |
| 2861 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2862 | if test -n "$ac_ct_CXX"; then |
| 2863 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2864 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 2865 | else |
| 2866 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2867 | echo "${ECHO_T}no" >&6; } |
| 2868 | fi |
| 2869 | |
| 2870 | |
| 2871 | test -n "$ac_ct_CXX" && break |
| 2872 | done |
| 2873 | |
| 2874 | if test "x$ac_ct_CXX" = x; then |
| 2875 | CXX="g++" |
| 2876 | else |
| 2877 | case $cross_compiling:$ac_tool_warned in |
| 2878 | yes:) |
| 2879 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2880 | whose name does not start with the host triplet. If you think this |
| 2881 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2882 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2883 | whose name does not start with the host triplet. If you think this |
| 2884 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2885 | ac_tool_warned=yes ;; |
| 2886 | esac |
| 2887 | CXX=$ac_ct_CXX |
| 2888 | fi |
| 2889 | fi |
| 2890 | |
| 2891 | fi |
| 2892 | fi |
| 2893 | # Provide some information about the compiler. |
| 2894 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 2895 | ac_compiler=`set X $ac_compile; echo $2` |
| 2896 | { (ac_try="$ac_compiler --version >&5" |
| 2897 | case "(($ac_try" in |
| 2898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2899 | *) ac_try_echo=$ac_try;; |
| 2900 | esac |
| 2901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2902 | (eval "$ac_compiler --version >&5") 2>&5 |
| 2903 | ac_status=$? |
| 2904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2905 | (exit $ac_status); } |
| 2906 | { (ac_try="$ac_compiler -v >&5" |
| 2907 | case "(($ac_try" in |
| 2908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2909 | *) ac_try_echo=$ac_try;; |
| 2910 | esac |
| 2911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2912 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2913 | ac_status=$? |
| 2914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2915 | (exit $ac_status); } |
| 2916 | { (ac_try="$ac_compiler -V >&5" |
| 2917 | case "(($ac_try" in |
| 2918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2919 | *) ac_try_echo=$ac_try;; |
| 2920 | esac |
| 2921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2922 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2923 | ac_status=$? |
| 2924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2925 | (exit $ac_status); } |
| 2926 | |
| 2927 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2928 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 2929 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2931 | else |
| 2932 | cat >conftest.$ac_ext <<_ACEOF |
| 2933 | /* confdefs.h. */ |
| 2934 | _ACEOF |
| 2935 | cat confdefs.h >>conftest.$ac_ext |
| 2936 | cat >>conftest.$ac_ext <<_ACEOF |
| 2937 | /* end confdefs.h. */ |
| 2938 | |
| 2939 | int |
| 2940 | main () |
| 2941 | { |
| 2942 | #ifndef __GNUC__ |
| 2943 | choke me |
| 2944 | #endif |
| 2945 | |
| 2946 | ; |
| 2947 | return 0; |
| 2948 | } |
| 2949 | _ACEOF |
| 2950 | rm -f conftest.$ac_objext |
| 2951 | if { (ac_try="$ac_compile" |
| 2952 | case "(($ac_try" in |
| 2953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2954 | *) ac_try_echo=$ac_try;; |
| 2955 | esac |
| 2956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2957 | (eval "$ac_compile") 2>conftest.er1 |
| 2958 | ac_status=$? |
| 2959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2960 | rm -f conftest.er1 |
| 2961 | cat conftest.err >&5 |
| 2962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2963 | (exit $ac_status); } && |
| 2964 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2965 | { (case "(($ac_try" in |
| 2966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2967 | *) ac_try_echo=$ac_try;; |
| 2968 | esac |
| 2969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2970 | (eval "$ac_try") 2>&5 |
| 2971 | ac_status=$? |
| 2972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2973 | (exit $ac_status); }; } && |
| 2974 | { ac_try='test -s conftest.$ac_objext' |
| 2975 | { (case "(($ac_try" in |
| 2976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2977 | *) ac_try_echo=$ac_try;; |
| 2978 | esac |
| 2979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2980 | (eval "$ac_try") 2>&5 |
| 2981 | ac_status=$? |
| 2982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2983 | (exit $ac_status); }; }; then |
| 2984 | ac_compiler_gnu=yes |
| 2985 | else |
| 2986 | echo "$as_me: failed program was:" >&5 |
| 2987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2988 | |
| 2989 | ac_compiler_gnu=no |
| 2990 | fi |
| 2991 | |
| 2992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2993 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2994 | |
| 2995 | fi |
| 2996 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2997 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 2998 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2999 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3000 | ac_save_CXXFLAGS=$CXXFLAGS |
| 3001 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 3002 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 3003 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 3004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3005 | else |
| 3006 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3007 | ac_cxx_werror_flag=yes |
| 3008 | ac_cv_prog_cxx_g=no |
| 3009 | CXXFLAGS="-g" |
| 3010 | cat >conftest.$ac_ext <<_ACEOF |
| 3011 | /* confdefs.h. */ |
| 3012 | _ACEOF |
| 3013 | cat confdefs.h >>conftest.$ac_ext |
| 3014 | cat >>conftest.$ac_ext <<_ACEOF |
| 3015 | /* end confdefs.h. */ |
| 3016 | |
| 3017 | int |
| 3018 | main () |
| 3019 | { |
| 3020 | |
| 3021 | ; |
| 3022 | return 0; |
| 3023 | } |
| 3024 | _ACEOF |
| 3025 | rm -f conftest.$ac_objext |
| 3026 | if { (ac_try="$ac_compile" |
| 3027 | case "(($ac_try" in |
| 3028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3029 | *) ac_try_echo=$ac_try;; |
| 3030 | esac |
| 3031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3032 | (eval "$ac_compile") 2>conftest.er1 |
| 3033 | ac_status=$? |
| 3034 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3035 | rm -f conftest.er1 |
| 3036 | cat conftest.err >&5 |
| 3037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3038 | (exit $ac_status); } && |
| 3039 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3040 | { (case "(($ac_try" in |
| 3041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3042 | *) ac_try_echo=$ac_try;; |
| 3043 | esac |
| 3044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3045 | (eval "$ac_try") 2>&5 |
| 3046 | ac_status=$? |
| 3047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3048 | (exit $ac_status); }; } && |
| 3049 | { ac_try='test -s conftest.$ac_objext' |
| 3050 | { (case "(($ac_try" in |
| 3051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3052 | *) ac_try_echo=$ac_try;; |
| 3053 | esac |
| 3054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3055 | (eval "$ac_try") 2>&5 |
| 3056 | ac_status=$? |
| 3057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3058 | (exit $ac_status); }; }; then |
| 3059 | ac_cv_prog_cxx_g=yes |
| 3060 | else |
| 3061 | echo "$as_me: failed program was:" >&5 |
| 3062 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3063 | |
| 3064 | CXXFLAGS="" |
| 3065 | cat >conftest.$ac_ext <<_ACEOF |
| 3066 | /* confdefs.h. */ |
| 3067 | _ACEOF |
| 3068 | cat confdefs.h >>conftest.$ac_ext |
| 3069 | cat >>conftest.$ac_ext <<_ACEOF |
| 3070 | /* end confdefs.h. */ |
| 3071 | |
| 3072 | int |
| 3073 | main () |
| 3074 | { |
| 3075 | |
| 3076 | ; |
| 3077 | return 0; |
| 3078 | } |
| 3079 | _ACEOF |
| 3080 | rm -f conftest.$ac_objext |
| 3081 | if { (ac_try="$ac_compile" |
| 3082 | case "(($ac_try" in |
| 3083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3084 | *) ac_try_echo=$ac_try;; |
| 3085 | esac |
| 3086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3087 | (eval "$ac_compile") 2>conftest.er1 |
| 3088 | ac_status=$? |
| 3089 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3090 | rm -f conftest.er1 |
| 3091 | cat conftest.err >&5 |
| 3092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3093 | (exit $ac_status); } && |
| 3094 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3095 | { (case "(($ac_try" in |
| 3096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3097 | *) ac_try_echo=$ac_try;; |
| 3098 | esac |
| 3099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3100 | (eval "$ac_try") 2>&5 |
| 3101 | ac_status=$? |
| 3102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3103 | (exit $ac_status); }; } && |
| 3104 | { ac_try='test -s conftest.$ac_objext' |
| 3105 | { (case "(($ac_try" in |
| 3106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3107 | *) ac_try_echo=$ac_try;; |
| 3108 | esac |
| 3109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3110 | (eval "$ac_try") 2>&5 |
| 3111 | ac_status=$? |
| 3112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3113 | (exit $ac_status); }; }; then |
| 3114 | : |
| 3115 | else |
| 3116 | echo "$as_me: failed program was:" >&5 |
| 3117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3118 | |
| 3119 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3120 | CXXFLAGS="-g" |
| 3121 | cat >conftest.$ac_ext <<_ACEOF |
| 3122 | /* confdefs.h. */ |
| 3123 | _ACEOF |
| 3124 | cat confdefs.h >>conftest.$ac_ext |
| 3125 | cat >>conftest.$ac_ext <<_ACEOF |
| 3126 | /* end confdefs.h. */ |
| 3127 | |
| 3128 | int |
| 3129 | main () |
| 3130 | { |
| 3131 | |
| 3132 | ; |
| 3133 | return 0; |
| 3134 | } |
| 3135 | _ACEOF |
| 3136 | rm -f conftest.$ac_objext |
| 3137 | if { (ac_try="$ac_compile" |
| 3138 | case "(($ac_try" in |
| 3139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3140 | *) ac_try_echo=$ac_try;; |
| 3141 | esac |
| 3142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3143 | (eval "$ac_compile") 2>conftest.er1 |
| 3144 | ac_status=$? |
| 3145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3146 | rm -f conftest.er1 |
| 3147 | cat conftest.err >&5 |
| 3148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3149 | (exit $ac_status); } && |
| 3150 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 3151 | { (case "(($ac_try" in |
| 3152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3153 | *) ac_try_echo=$ac_try;; |
| 3154 | esac |
| 3155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3156 | (eval "$ac_try") 2>&5 |
| 3157 | ac_status=$? |
| 3158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3159 | (exit $ac_status); }; } && |
| 3160 | { ac_try='test -s conftest.$ac_objext' |
| 3161 | { (case "(($ac_try" in |
| 3162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3163 | *) ac_try_echo=$ac_try;; |
| 3164 | esac |
| 3165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3166 | (eval "$ac_try") 2>&5 |
| 3167 | ac_status=$? |
| 3168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3169 | (exit $ac_status); }; }; then |
| 3170 | ac_cv_prog_cxx_g=yes |
| 3171 | else |
| 3172 | echo "$as_me: failed program was:" >&5 |
| 3173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3174 | |
| 3175 | |
| 3176 | fi |
| 3177 | |
| 3178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3179 | fi |
| 3180 | |
| 3181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3182 | fi |
| 3183 | |
| 3184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3185 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3186 | fi |
| 3187 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 3188 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 3189 | if test "$ac_test_CXXFLAGS" = set; then |
| 3190 | CXXFLAGS=$ac_save_CXXFLAGS |
| 3191 | elif test $ac_cv_prog_cxx_g = yes; then |
| 3192 | if test "$GXX" = yes; then |
| 3193 | CXXFLAGS="-g -O2" |
| 3194 | else |
| 3195 | CXXFLAGS="-g" |
| 3196 | fi |
| 3197 | else |
| 3198 | if test "$GXX" = yes; then |
| 3199 | CXXFLAGS="-O2" |
| 3200 | else |
| 3201 | CXXFLAGS= |
| 3202 | fi |
| 3203 | fi |
| 3204 | ac_ext=c |
| 3205 | ac_cpp='$CPP $CPPFLAGS' |
| 3206 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3207 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3208 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3209 | |
| 3210 | ac_ext=c |
| 3211 | ac_cpp='$CPP $CPPFLAGS' |
| 3212 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3213 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3214 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3215 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3216 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 3217 | # On Suns, sometimes $CPP names a directory. |
| 3218 | if test -n "$CPP" && test -d "$CPP"; then |
| 3219 | CPP= |
| 3220 | fi |
| 3221 | if test -z "$CPP"; then |
| 3222 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3224 | else |
| 3225 | # Double quotes because CPP needs to be expanded |
| 3226 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3227 | do |
| 3228 | ac_preproc_ok=false |
| 3229 | for ac_c_preproc_warn_flag in '' yes |
| 3230 | do |
| 3231 | # Use a header file that comes with gcc, so configuring glibc |
| 3232 | # with a fresh cross-compiler works. |
| 3233 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3234 | # <limits.h> exists even on freestanding compilers. |
| 3235 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3236 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3237 | cat >conftest.$ac_ext <<_ACEOF |
| 3238 | /* confdefs.h. */ |
| 3239 | _ACEOF |
| 3240 | cat confdefs.h >>conftest.$ac_ext |
| 3241 | cat >>conftest.$ac_ext <<_ACEOF |
| 3242 | /* end confdefs.h. */ |
| 3243 | #ifdef __STDC__ |
| 3244 | # include <limits.h> |
| 3245 | #else |
| 3246 | # include <assert.h> |
| 3247 | #endif |
| 3248 | Syntax error |
| 3249 | _ACEOF |
| 3250 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3251 | case "(($ac_try" in |
| 3252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3253 | *) ac_try_echo=$ac_try;; |
| 3254 | esac |
| 3255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3256 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3257 | ac_status=$? |
| 3258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3259 | rm -f conftest.er1 |
| 3260 | cat conftest.err >&5 |
| 3261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3262 | (exit $ac_status); } >/dev/null; then |
| 3263 | if test -s conftest.err; then |
| 3264 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3265 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3266 | else |
| 3267 | ac_cpp_err= |
| 3268 | fi |
| 3269 | else |
| 3270 | ac_cpp_err=yes |
| 3271 | fi |
| 3272 | if test -z "$ac_cpp_err"; then |
| 3273 | : |
| 3274 | else |
| 3275 | echo "$as_me: failed program was:" >&5 |
| 3276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3277 | |
| 3278 | # Broken: fails on valid input. |
| 3279 | continue |
| 3280 | fi |
| 3281 | |
| 3282 | rm -f conftest.err conftest.$ac_ext |
| 3283 | |
| 3284 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3285 | # can be detected and how. |
| 3286 | cat >conftest.$ac_ext <<_ACEOF |
| 3287 | /* confdefs.h. */ |
| 3288 | _ACEOF |
| 3289 | cat confdefs.h >>conftest.$ac_ext |
| 3290 | cat >>conftest.$ac_ext <<_ACEOF |
| 3291 | /* end confdefs.h. */ |
| 3292 | #include <ac_nonexistent.h> |
| 3293 | _ACEOF |
| 3294 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3295 | case "(($ac_try" in |
| 3296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3297 | *) ac_try_echo=$ac_try;; |
| 3298 | esac |
| 3299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3300 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3301 | ac_status=$? |
| 3302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3303 | rm -f conftest.er1 |
| 3304 | cat conftest.err >&5 |
| 3305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3306 | (exit $ac_status); } >/dev/null; then |
| 3307 | if test -s conftest.err; then |
| 3308 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3309 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3310 | else |
| 3311 | ac_cpp_err= |
| 3312 | fi |
| 3313 | else |
| 3314 | ac_cpp_err=yes |
| 3315 | fi |
| 3316 | if test -z "$ac_cpp_err"; then |
| 3317 | # Broken: success on invalid input. |
| 3318 | continue |
| 3319 | else |
| 3320 | echo "$as_me: failed program was:" >&5 |
| 3321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3322 | |
| 3323 | # Passes both tests. |
| 3324 | ac_preproc_ok=: |
| 3325 | break |
| 3326 | fi |
| 3327 | |
| 3328 | rm -f conftest.err conftest.$ac_ext |
| 3329 | |
| 3330 | done |
| 3331 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3332 | rm -f conftest.err conftest.$ac_ext |
| 3333 | if $ac_preproc_ok; then |
| 3334 | break |
| 3335 | fi |
| 3336 | |
| 3337 | done |
| 3338 | ac_cv_prog_CPP=$CPP |
| 3339 | |
| 3340 | fi |
| 3341 | CPP=$ac_cv_prog_CPP |
| 3342 | else |
| 3343 | ac_cv_prog_CPP=$CPP |
| 3344 | fi |
| 3345 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3346 | echo "${ECHO_T}$CPP" >&6; } |
| 3347 | ac_preproc_ok=false |
| 3348 | for ac_c_preproc_warn_flag in '' yes |
| 3349 | do |
| 3350 | # Use a header file that comes with gcc, so configuring glibc |
| 3351 | # with a fresh cross-compiler works. |
| 3352 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3353 | # <limits.h> exists even on freestanding compilers. |
| 3354 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3355 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3356 | cat >conftest.$ac_ext <<_ACEOF |
| 3357 | /* confdefs.h. */ |
| 3358 | _ACEOF |
| 3359 | cat confdefs.h >>conftest.$ac_ext |
| 3360 | cat >>conftest.$ac_ext <<_ACEOF |
| 3361 | /* end confdefs.h. */ |
| 3362 | #ifdef __STDC__ |
| 3363 | # include <limits.h> |
| 3364 | #else |
| 3365 | # include <assert.h> |
| 3366 | #endif |
| 3367 | Syntax error |
| 3368 | _ACEOF |
| 3369 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3370 | case "(($ac_try" in |
| 3371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3372 | *) ac_try_echo=$ac_try;; |
| 3373 | esac |
| 3374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3375 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3376 | ac_status=$? |
| 3377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3378 | rm -f conftest.er1 |
| 3379 | cat conftest.err >&5 |
| 3380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3381 | (exit $ac_status); } >/dev/null; then |
| 3382 | if test -s conftest.err; then |
| 3383 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3384 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3385 | else |
| 3386 | ac_cpp_err= |
| 3387 | fi |
| 3388 | else |
| 3389 | ac_cpp_err=yes |
| 3390 | fi |
| 3391 | if test -z "$ac_cpp_err"; then |
| 3392 | : |
| 3393 | else |
| 3394 | echo "$as_me: failed program was:" >&5 |
| 3395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3396 | |
| 3397 | # Broken: fails on valid input. |
| 3398 | continue |
| 3399 | fi |
| 3400 | |
| 3401 | rm -f conftest.err conftest.$ac_ext |
| 3402 | |
| 3403 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3404 | # can be detected and how. |
| 3405 | cat >conftest.$ac_ext <<_ACEOF |
| 3406 | /* confdefs.h. */ |
| 3407 | _ACEOF |
| 3408 | cat confdefs.h >>conftest.$ac_ext |
| 3409 | cat >>conftest.$ac_ext <<_ACEOF |
| 3410 | /* end confdefs.h. */ |
| 3411 | #include <ac_nonexistent.h> |
| 3412 | _ACEOF |
| 3413 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3414 | case "(($ac_try" in |
| 3415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3416 | *) ac_try_echo=$ac_try;; |
| 3417 | esac |
| 3418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3419 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 3420 | ac_status=$? |
| 3421 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3422 | rm -f conftest.er1 |
| 3423 | cat conftest.err >&5 |
| 3424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3425 | (exit $ac_status); } >/dev/null; then |
| 3426 | if test -s conftest.err; then |
| 3427 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3428 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3429 | else |
| 3430 | ac_cpp_err= |
| 3431 | fi |
| 3432 | else |
| 3433 | ac_cpp_err=yes |
| 3434 | fi |
| 3435 | if test -z "$ac_cpp_err"; then |
| 3436 | # Broken: success on invalid input. |
| 3437 | continue |
| 3438 | else |
| 3439 | echo "$as_me: failed program was:" >&5 |
| 3440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3441 | |
| 3442 | # Passes both tests. |
| 3443 | ac_preproc_ok=: |
| 3444 | break |
| 3445 | fi |
| 3446 | |
| 3447 | rm -f conftest.err conftest.$ac_ext |
| 3448 | |
| 3449 | done |
| 3450 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3451 | rm -f conftest.err conftest.$ac_ext |
| 3452 | if $ac_preproc_ok; then |
| 3453 | : |
| 3454 | else |
| 3455 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3456 | See \`config.log' for more details." >&5 |
| 3457 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3458 | See \`config.log' for more details." >&2;} |
| 3459 | { (exit 1); exit 1; }; } |
| 3460 | fi |
| 3461 | |
| 3462 | ac_ext=c |
| 3463 | ac_cpp='$CPP $CPPFLAGS' |
| 3464 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3465 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3466 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3467 | |
| 3468 | |
| 3469 | |
| 3470 | |
| 3471 | # Check whether --enable-polly was given. |
| 3472 | if test "${enable_polly+set}" = set; then |
| 3473 | enableval=$enable_polly; |
| 3474 | else |
| 3475 | enableval=default |
| 3476 | fi |
| 3477 | |
| 3478 | case "$enableval" in |
| 3479 | yes) ENABLE_POLLY=1 |
| 3480 | ;; |
| 3481 | no) ENABLE_POLLY=0 |
| 3482 | ;; |
| 3483 | default) ENABLE_POLLY=1 |
| 3484 | ;; |
| 3485 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 |
| 3486 | echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} |
| 3487 | { (exit 1); exit 1; }; } ;; |
| 3488 | esac |
| 3489 | |
| 3490 | |
| 3491 | if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then |
| 3492 | LLVM_HAS_POLLY=1 |
| 3493 | |
| 3494 | subdirs="$subdirs tools/polly" |
| 3495 | |
| 3496 | fi |
| 3497 | |
| 3498 | |
| 3499 | # Make sure we can run config.sub. |
| 3500 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 3501 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 3502 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 3503 | { (exit 1); exit 1; }; } |
| 3504 | |
| 3505 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 3506 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
| 3507 | if test "${ac_cv_build+set}" = set; then |
| 3508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3509 | else |
| 3510 | ac_build_alias=$build_alias |
| 3511 | test "x$ac_build_alias" = x && |
| 3512 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3513 | test "x$ac_build_alias" = x && |
| 3514 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 3515 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 3516 | { (exit 1); exit 1; }; } |
| 3517 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 3518 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 3519 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 3520 | { (exit 1); exit 1; }; } |
| 3521 | |
| 3522 | fi |
| 3523 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 3524 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 3525 | case $ac_cv_build in |
| 3526 | *-*-*) ;; |
| 3527 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 3528 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 3529 | { (exit 1); exit 1; }; };; |
| 3530 | esac |
| 3531 | build=$ac_cv_build |
| 3532 | ac_save_IFS=$IFS; IFS='-' |
| 3533 | set x $ac_cv_build |
| 3534 | shift |
| 3535 | build_cpu=$1 |
| 3536 | build_vendor=$2 |
| 3537 | shift; shift |
| 3538 | # Remember, the first character of IFS is used to create $*, |
| 3539 | # except with old shells: |
| 3540 | build_os=$* |
| 3541 | IFS=$ac_save_IFS |
| 3542 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3543 | |
| 3544 | |
| 3545 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 3546 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
| 3547 | if test "${ac_cv_host+set}" = set; then |
| 3548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3549 | else |
| 3550 | if test "x$host_alias" = x; then |
| 3551 | ac_cv_host=$ac_cv_build |
| 3552 | else |
| 3553 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 3554 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 3555 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 3556 | { (exit 1); exit 1; }; } |
| 3557 | fi |
| 3558 | |
| 3559 | fi |
| 3560 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 3561 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 3562 | case $ac_cv_host in |
| 3563 | *-*-*) ;; |
| 3564 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 3565 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 3566 | { (exit 1); exit 1; }; };; |
| 3567 | esac |
| 3568 | host=$ac_cv_host |
| 3569 | ac_save_IFS=$IFS; IFS='-' |
| 3570 | set x $ac_cv_host |
| 3571 | shift |
| 3572 | host_cpu=$1 |
| 3573 | host_vendor=$2 |
| 3574 | shift; shift |
| 3575 | # Remember, the first character of IFS is used to create $*, |
| 3576 | # except with old shells: |
| 3577 | host_os=$* |
| 3578 | IFS=$ac_save_IFS |
| 3579 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3580 | |
| 3581 | |
| 3582 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 3583 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
| 3584 | if test "${ac_cv_target+set}" = set; then |
| 3585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3586 | else |
| 3587 | if test "x$target_alias" = x; then |
| 3588 | ac_cv_target=$ac_cv_host |
| 3589 | else |
| 3590 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 3591 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 3592 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 3593 | { (exit 1); exit 1; }; } |
| 3594 | fi |
| 3595 | |
| 3596 | fi |
| 3597 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 3598 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 3599 | case $ac_cv_target in |
| 3600 | *-*-*) ;; |
| 3601 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 3602 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 3603 | { (exit 1); exit 1; }; };; |
| 3604 | esac |
| 3605 | target=$ac_cv_target |
| 3606 | ac_save_IFS=$IFS; IFS='-' |
| 3607 | set x $ac_cv_target |
| 3608 | shift |
| 3609 | target_cpu=$1 |
| 3610 | target_vendor=$2 |
| 3611 | shift; shift |
| 3612 | # Remember, the first character of IFS is used to create $*, |
| 3613 | # except with old shells: |
| 3614 | target_os=$* |
| 3615 | IFS=$ac_save_IFS |
| 3616 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 3617 | |
| 3618 | |
| 3619 | # The aliases save the names the user supplied, while $host etc. |
| 3620 | # will get canonicalized. |
| 3621 | test -n "$target_alias" && |
| 3622 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 3623 | NONENONEs,x,x, && |
| 3624 | program_prefix=${target_alias}- |
| 3625 | |
| 3626 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 3627 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } |
| 3628 | if test "${llvm_cv_os_type+set}" = set; then |
| 3629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3630 | else |
| 3631 | case $host in |
| 3632 | *-*-aix*) |
| 3633 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3634 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3635 | llvm_cv_os_type="AIX" |
| 3636 | llvm_cv_platform_type="Unix" ;; |
| 3637 | *-*-irix*) |
| 3638 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3639 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3640 | llvm_cv_os_type="IRIX" |
| 3641 | llvm_cv_platform_type="Unix" ;; |
| 3642 | *-*-cygwin*) |
| 3643 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3644 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3645 | llvm_cv_os_type="Cygwin" |
| 3646 | llvm_cv_platform_type="Unix" ;; |
| 3647 | *-*-darwin*) |
| 3648 | llvm_cv_link_all_option="-Wl,-all_load" |
| 3649 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 3650 | llvm_cv_os_type="Darwin" |
| 3651 | llvm_cv_platform_type="Unix" ;; |
| 3652 | *-*-minix*) |
| 3653 | llvm_cv_link_all_option="-Wl,-all_load" |
| 3654 | llvm_cv_no_link_all_option="-Wl,-noall_load" |
| 3655 | llvm_cv_os_type="Minix" |
| 3656 | llvm_cv_platform_type="Unix" ;; |
| 3657 | *-*-freebsd*) |
| 3658 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3659 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3660 | llvm_cv_os_type="FreeBSD" |
| 3661 | llvm_cv_platform_type="Unix" ;; |
| 3662 | *-*-openbsd*) |
| 3663 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3664 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3665 | llvm_cv_os_type="OpenBSD" |
| 3666 | llvm_cv_platform_type="Unix" ;; |
| 3667 | *-*-netbsd*) |
| 3668 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3669 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3670 | llvm_cv_os_type="NetBSD" |
| 3671 | llvm_cv_platform_type="Unix" ;; |
| 3672 | *-*-dragonfly*) |
| 3673 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3674 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3675 | llvm_cv_os_type="DragonFly" |
| 3676 | llvm_cv_platform_type="Unix" ;; |
| 3677 | *-*-hpux*) |
| 3678 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3679 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3680 | llvm_cv_os_type="HP-UX" |
| 3681 | llvm_cv_platform_type="Unix" ;; |
| 3682 | *-*-interix*) |
| 3683 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3684 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3685 | llvm_cv_os_type="Interix" |
| 3686 | llvm_cv_platform_type="Unix" ;; |
| 3687 | *-*-linux*) |
| 3688 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3689 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3690 | llvm_cv_os_type="Linux" |
| 3691 | llvm_cv_platform_type="Unix" ;; |
| 3692 | *-*-solaris*) |
| 3693 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 3694 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
| 3695 | llvm_cv_os_type="SunOS" |
| 3696 | llvm_cv_platform_type="Unix" ;; |
| 3697 | *-*-auroraux*) |
| 3698 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 3699 | llvm_cv_link_all_option="-Wl,-z,defaultextract" |
| 3700 | llvm_cv_os_type="AuroraUX" |
| 3701 | llvm_cv_platform_type="Unix" ;; |
| 3702 | *-*-win32*) |
| 3703 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3704 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3705 | llvm_cv_os_type="Win32" |
| 3706 | llvm_cv_platform_type="Win32" ;; |
| 3707 | *-*-mingw*) |
| 3708 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3709 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3710 | llvm_cv_os_type="MingW" |
| 3711 | llvm_cv_platform_type="Win32" ;; |
| 3712 | *-*-haiku*) |
| 3713 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3714 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3715 | llvm_cv_os_type="Haiku" |
| 3716 | llvm_cv_platform_type="Unix" ;; |
| 3717 | *-unknown-eabi*) |
| 3718 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3719 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3720 | llvm_cv_os_type="Freestanding" |
| 3721 | llvm_cv_platform_type="Unix" ;; |
| 3722 | *-unknown-elf*) |
| 3723 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 3724 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 3725 | llvm_cv_os_type="Freestanding" |
| 3726 | llvm_cv_platform_type="Unix" ;; |
| 3727 | *) |
| 3728 | llvm_cv_link_all_option="" |
| 3729 | llvm_cv_no_link_all_option="" |
| 3730 | llvm_cv_os_type="Unknown" |
| 3731 | llvm_cv_platform_type="Unknown" ;; |
| 3732 | esac |
| 3733 | fi |
| 3734 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 3735 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
| 3736 | |
| 3737 | { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 |
| 3738 | echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } |
| 3739 | if test "${llvm_cv_target_os_type+set}" = set; then |
| 3740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3741 | else |
| 3742 | case $target in |
| 3743 | *-*-aix*) |
| 3744 | llvm_cv_target_os_type="AIX" ;; |
| 3745 | *-*-irix*) |
| 3746 | llvm_cv_target_os_type="IRIX" ;; |
| 3747 | *-*-cygwin*) |
| 3748 | llvm_cv_target_os_type="Cygwin" ;; |
| 3749 | *-*-darwin*) |
| 3750 | llvm_cv_target_os_type="Darwin" ;; |
| 3751 | *-*-minix*) |
| 3752 | llvm_cv_target_os_type="Minix" ;; |
| 3753 | *-*-freebsd*) |
| 3754 | llvm_cv_target_os_type="FreeBSD" ;; |
| 3755 | *-*-openbsd*) |
| 3756 | llvm_cv_target_os_type="OpenBSD" ;; |
| 3757 | *-*-netbsd*) |
| 3758 | llvm_cv_target_os_type="NetBSD" ;; |
| 3759 | *-*-dragonfly*) |
| 3760 | llvm_cv_target_os_type="DragonFly" ;; |
| 3761 | *-*-hpux*) |
| 3762 | llvm_cv_target_os_type="HP-UX" ;; |
| 3763 | *-*-interix*) |
| 3764 | llvm_cv_target_os_type="Interix" ;; |
| 3765 | *-*-linux*) |
| 3766 | llvm_cv_target_os_type="Linux" ;; |
| 3767 | *-*-solaris*) |
| 3768 | llvm_cv_target_os_type="SunOS" ;; |
| 3769 | *-*-auroraux*) |
| 3770 | llvm_cv_target_os_type="AuroraUX" ;; |
| 3771 | *-*-win32*) |
| 3772 | llvm_cv_target_os_type="Win32" ;; |
| 3773 | *-*-mingw*) |
| 3774 | llvm_cv_target_os_type="MingW" ;; |
| 3775 | *-*-haiku*) |
| 3776 | llvm_cv_target_os_type="Haiku" ;; |
| 3777 | *-*-rtems*) |
| 3778 | llvm_cv_target_os_type="RTEMS" ;; |
| 3779 | *-*-nacl*) |
| 3780 | llvm_cv_target_os_type="NativeClient" ;; |
| 3781 | *-unknown-eabi*) |
| 3782 | llvm_cv_target_os_type="Freestanding" ;; |
| 3783 | *) |
| 3784 | llvm_cv_target_os_type="Unknown" ;; |
| 3785 | esac |
| 3786 | fi |
| 3787 | { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 |
| 3788 | echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } |
| 3789 | |
| 3790 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 3791 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 3792 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
| 3793 | { (exit 1); exit 1; }; } |
| 3794 | fi |
| 3795 | |
| 3796 | OS=$llvm_cv_os_type |
| 3797 | |
| 3798 | HOST_OS=$llvm_cv_os_type |
| 3799 | |
| 3800 | TARGET_OS=$llvm_cv_target_os_type |
| 3801 | |
| 3802 | |
| 3803 | LINKALL=$llvm_cv_link_all_option |
| 3804 | |
| 3805 | NOLINKALL=$llvm_cv_no_link_all_option |
| 3806 | |
| 3807 | |
| 3808 | case $llvm_cv_platform_type in |
| 3809 | Unix) |
| 3810 | |
| 3811 | cat >>confdefs.h <<\_ACEOF |
| 3812 | #define LLVM_ON_UNIX 1 |
| 3813 | _ACEOF |
| 3814 | |
| 3815 | LLVM_ON_UNIX=1 |
| 3816 | |
| 3817 | LLVM_ON_WIN32=0 |
| 3818 | |
| 3819 | ;; |
| 3820 | Win32) |
| 3821 | |
| 3822 | cat >>confdefs.h <<\_ACEOF |
| 3823 | #define LLVM_ON_WIN32 1 |
| 3824 | _ACEOF |
| 3825 | |
| 3826 | LLVM_ON_UNIX=0 |
| 3827 | |
| 3828 | LLVM_ON_WIN32=1 |
| 3829 | |
| 3830 | ;; |
| 3831 | esac |
| 3832 | |
| 3833 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 3834 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
| 3835 | if test "${llvm_cv_target_arch+set}" = set; then |
| 3836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3837 | else |
| 3838 | case $target in |
| 3839 | i?86-*) llvm_cv_target_arch="x86" ;; |
| 3840 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
| 3841 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 3842 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 3843 | arm*-*) llvm_cv_target_arch="ARM" ;; |
| 3844 | mips-*) llvm_cv_target_arch="Mips" ;; |
| 3845 | xcore-*) llvm_cv_target_arch="XCore" ;; |
| 3846 | msp430-*) llvm_cv_target_arch="MSP430" ;; |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 3847 | mblaze-*) llvm_cv_target_arch="MBlaze" ;; |
| 3848 | ptx-*) llvm_cv_target_arch="PTX" ;; |
| 3849 | *) llvm_cv_target_arch="Unknown" ;; |
| 3850 | esac |
| 3851 | fi |
| 3852 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 3853 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
| 3854 | |
| 3855 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 3856 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 3857 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 3858 | fi |
| 3859 | |
| 3860 | # Determine the LLVM native architecture for the target |
| 3861 | case "$llvm_cv_target_arch" in |
| 3862 | x86) LLVM_NATIVE_ARCH="X86" ;; |
| 3863 | x86_64) LLVM_NATIVE_ARCH="X86" ;; |
| 3864 | *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; |
| 3865 | esac |
| 3866 | |
| 3867 | ARCH=$llvm_cv_target_arch |
| 3868 | |
| 3869 | |
| 3870 | |
| 3871 | |
| 3872 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3873 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3874 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3876 | else |
| 3877 | # Extract the first word of "grep ggrep" to use in msg output |
| 3878 | if test -z "$GREP"; then |
| 3879 | set dummy grep ggrep; ac_prog_name=$2 |
| 3880 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3882 | else |
| 3883 | ac_path_GREP_found=false |
| 3884 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3886 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3887 | do |
| 3888 | IFS=$as_save_IFS |
| 3889 | test -z "$as_dir" && as_dir=. |
| 3890 | for ac_prog in grep ggrep; do |
| 3891 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3892 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3893 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3894 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3895 | # Check for GNU $ac_path_GREP |
| 3896 | case `"$ac_path_GREP" --version 2>&1` in |
| 3897 | *GNU*) |
| 3898 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3899 | *) |
| 3900 | ac_count=0 |
| 3901 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3902 | while : |
| 3903 | do |
| 3904 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3905 | mv "conftest.tmp" "conftest.in" |
| 3906 | cp "conftest.in" "conftest.nl" |
| 3907 | echo 'GREP' >> "conftest.nl" |
| 3908 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3909 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3910 | ac_count=`expr $ac_count + 1` |
| 3911 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3912 | # Best one so far, save it but keep looking for a better one |
| 3913 | ac_cv_path_GREP="$ac_path_GREP" |
| 3914 | ac_path_GREP_max=$ac_count |
| 3915 | fi |
| 3916 | # 10*(2^10) chars as input seems more than enough |
| 3917 | test $ac_count -gt 10 && break |
| 3918 | done |
| 3919 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3920 | esac |
| 3921 | |
| 3922 | |
| 3923 | $ac_path_GREP_found && break 3 |
| 3924 | done |
| 3925 | done |
| 3926 | |
| 3927 | done |
| 3928 | IFS=$as_save_IFS |
| 3929 | |
| 3930 | |
| 3931 | fi |
| 3932 | |
| 3933 | GREP="$ac_cv_path_GREP" |
| 3934 | if test -z "$GREP"; then |
| 3935 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3936 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3937 | { (exit 1); exit 1; }; } |
| 3938 | fi |
| 3939 | |
| 3940 | else |
| 3941 | ac_cv_path_GREP=$GREP |
| 3942 | fi |
| 3943 | |
| 3944 | |
| 3945 | fi |
| 3946 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3947 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3948 | GREP="$ac_cv_path_GREP" |
| 3949 | |
| 3950 | |
| 3951 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3952 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3953 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3955 | else |
| 3956 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3957 | then ac_cv_path_EGREP="$GREP -E" |
| 3958 | else |
| 3959 | # Extract the first word of "egrep" to use in msg output |
| 3960 | if test -z "$EGREP"; then |
| 3961 | set dummy egrep; ac_prog_name=$2 |
| 3962 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3964 | else |
| 3965 | ac_path_EGREP_found=false |
| 3966 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3968 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3969 | do |
| 3970 | IFS=$as_save_IFS |
| 3971 | test -z "$as_dir" && as_dir=. |
| 3972 | for ac_prog in egrep; do |
| 3973 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3974 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3975 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3976 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3977 | # Check for GNU $ac_path_EGREP |
| 3978 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3979 | *GNU*) |
| 3980 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3981 | *) |
| 3982 | ac_count=0 |
| 3983 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3984 | while : |
| 3985 | do |
| 3986 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3987 | mv "conftest.tmp" "conftest.in" |
| 3988 | cp "conftest.in" "conftest.nl" |
| 3989 | echo 'EGREP' >> "conftest.nl" |
| 3990 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3991 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3992 | ac_count=`expr $ac_count + 1` |
| 3993 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3994 | # Best one so far, save it but keep looking for a better one |
| 3995 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3996 | ac_path_EGREP_max=$ac_count |
| 3997 | fi |
| 3998 | # 10*(2^10) chars as input seems more than enough |
| 3999 | test $ac_count -gt 10 && break |
| 4000 | done |
| 4001 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4002 | esac |
| 4003 | |
| 4004 | |
| 4005 | $ac_path_EGREP_found && break 3 |
| 4006 | done |
| 4007 | done |
| 4008 | |
| 4009 | done |
| 4010 | IFS=$as_save_IFS |
| 4011 | |
| 4012 | |
| 4013 | fi |
| 4014 | |
| 4015 | EGREP="$ac_cv_path_EGREP" |
| 4016 | if test -z "$EGREP"; then |
| 4017 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4018 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4019 | { (exit 1); exit 1; }; } |
| 4020 | fi |
| 4021 | |
| 4022 | else |
| 4023 | ac_cv_path_EGREP=$EGREP |
| 4024 | fi |
| 4025 | |
| 4026 | |
| 4027 | fi |
| 4028 | fi |
| 4029 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 4030 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 4031 | EGREP="$ac_cv_path_EGREP" |
| 4032 | |
| 4033 | |
| 4034 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4035 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
| 4036 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4038 | else |
| 4039 | cat >conftest.$ac_ext <<_ACEOF |
| 4040 | /* confdefs.h. */ |
| 4041 | _ACEOF |
| 4042 | cat confdefs.h >>conftest.$ac_ext |
| 4043 | cat >>conftest.$ac_ext <<_ACEOF |
| 4044 | /* end confdefs.h. */ |
| 4045 | #include <stdlib.h> |
| 4046 | #include <stdarg.h> |
| 4047 | #include <string.h> |
| 4048 | #include <float.h> |
| 4049 | |
| 4050 | int |
| 4051 | main () |
| 4052 | { |
| 4053 | |
| 4054 | ; |
| 4055 | return 0; |
| 4056 | } |
| 4057 | _ACEOF |
| 4058 | rm -f conftest.$ac_objext |
| 4059 | if { (ac_try="$ac_compile" |
| 4060 | case "(($ac_try" in |
| 4061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4062 | *) ac_try_echo=$ac_try;; |
| 4063 | esac |
| 4064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4065 | (eval "$ac_compile") 2>conftest.er1 |
| 4066 | ac_status=$? |
| 4067 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4068 | rm -f conftest.er1 |
| 4069 | cat conftest.err >&5 |
| 4070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4071 | (exit $ac_status); } && |
| 4072 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4073 | { (case "(($ac_try" in |
| 4074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4075 | *) ac_try_echo=$ac_try;; |
| 4076 | esac |
| 4077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4078 | (eval "$ac_try") 2>&5 |
| 4079 | ac_status=$? |
| 4080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4081 | (exit $ac_status); }; } && |
| 4082 | { ac_try='test -s conftest.$ac_objext' |
| 4083 | { (case "(($ac_try" in |
| 4084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4085 | *) ac_try_echo=$ac_try;; |
| 4086 | esac |
| 4087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4088 | (eval "$ac_try") 2>&5 |
| 4089 | ac_status=$? |
| 4090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4091 | (exit $ac_status); }; }; then |
| 4092 | ac_cv_header_stdc=yes |
| 4093 | else |
| 4094 | echo "$as_me: failed program was:" >&5 |
| 4095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4096 | |
| 4097 | ac_cv_header_stdc=no |
| 4098 | fi |
| 4099 | |
| 4100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4101 | |
| 4102 | if test $ac_cv_header_stdc = yes; then |
| 4103 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4104 | cat >conftest.$ac_ext <<_ACEOF |
| 4105 | /* confdefs.h. */ |
| 4106 | _ACEOF |
| 4107 | cat confdefs.h >>conftest.$ac_ext |
| 4108 | cat >>conftest.$ac_ext <<_ACEOF |
| 4109 | /* end confdefs.h. */ |
| 4110 | #include <string.h> |
| 4111 | |
| 4112 | _ACEOF |
| 4113 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4114 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4115 | : |
| 4116 | else |
| 4117 | ac_cv_header_stdc=no |
| 4118 | fi |
| 4119 | rm -f conftest* |
| 4120 | |
| 4121 | fi |
| 4122 | |
| 4123 | if test $ac_cv_header_stdc = yes; then |
| 4124 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4125 | cat >conftest.$ac_ext <<_ACEOF |
| 4126 | /* confdefs.h. */ |
| 4127 | _ACEOF |
| 4128 | cat confdefs.h >>conftest.$ac_ext |
| 4129 | cat >>conftest.$ac_ext <<_ACEOF |
| 4130 | /* end confdefs.h. */ |
| 4131 | #include <stdlib.h> |
| 4132 | |
| 4133 | _ACEOF |
| 4134 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4135 | $EGREP "free" >/dev/null 2>&1; then |
| 4136 | : |
| 4137 | else |
| 4138 | ac_cv_header_stdc=no |
| 4139 | fi |
| 4140 | rm -f conftest* |
| 4141 | |
| 4142 | fi |
| 4143 | |
| 4144 | if test $ac_cv_header_stdc = yes; then |
| 4145 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4146 | if test "$cross_compiling" = yes; then |
| 4147 | : |
| 4148 | else |
| 4149 | cat >conftest.$ac_ext <<_ACEOF |
| 4150 | /* confdefs.h. */ |
| 4151 | _ACEOF |
| 4152 | cat confdefs.h >>conftest.$ac_ext |
| 4153 | cat >>conftest.$ac_ext <<_ACEOF |
| 4154 | /* end confdefs.h. */ |
| 4155 | #include <ctype.h> |
| 4156 | #include <stdlib.h> |
| 4157 | #if ((' ' & 0x0FF) == 0x020) |
| 4158 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4159 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4160 | #else |
| 4161 | # define ISLOWER(c) \ |
| 4162 | (('a' <= (c) && (c) <= 'i') \ |
| 4163 | || ('j' <= (c) && (c) <= 'r') \ |
| 4164 | || ('s' <= (c) && (c) <= 'z')) |
| 4165 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4166 | #endif |
| 4167 | |
| 4168 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4169 | int |
| 4170 | main () |
| 4171 | { |
| 4172 | int i; |
| 4173 | for (i = 0; i < 256; i++) |
| 4174 | if (XOR (islower (i), ISLOWER (i)) |
| 4175 | || toupper (i) != TOUPPER (i)) |
| 4176 | return 2; |
| 4177 | return 0; |
| 4178 | } |
| 4179 | _ACEOF |
| 4180 | rm -f conftest$ac_exeext |
| 4181 | if { (ac_try="$ac_link" |
| 4182 | case "(($ac_try" in |
| 4183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4184 | *) ac_try_echo=$ac_try;; |
| 4185 | esac |
| 4186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4187 | (eval "$ac_link") 2>&5 |
| 4188 | ac_status=$? |
| 4189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4190 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4191 | { (case "(($ac_try" in |
| 4192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4193 | *) ac_try_echo=$ac_try;; |
| 4194 | esac |
| 4195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4196 | (eval "$ac_try") 2>&5 |
| 4197 | ac_status=$? |
| 4198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4199 | (exit $ac_status); }; }; then |
| 4200 | : |
| 4201 | else |
| 4202 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4203 | echo "$as_me: failed program was:" >&5 |
| 4204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4205 | |
| 4206 | ( exit $ac_status ) |
| 4207 | ac_cv_header_stdc=no |
| 4208 | fi |
| 4209 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4210 | fi |
| 4211 | |
| 4212 | |
| 4213 | fi |
| 4214 | fi |
| 4215 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4216 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
| 4217 | if test $ac_cv_header_stdc = yes; then |
| 4218 | |
| 4219 | cat >>confdefs.h <<\_ACEOF |
| 4220 | #define STDC_HEADERS 1 |
| 4221 | _ACEOF |
| 4222 | |
| 4223 | fi |
| 4224 | |
| 4225 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4226 | |
| 4227 | |
| 4228 | |
| 4229 | |
| 4230 | |
| 4231 | |
| 4232 | |
| 4233 | |
| 4234 | |
| 4235 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4236 | inttypes.h stdint.h unistd.h |
| 4237 | do |
| 4238 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4239 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4240 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 4241 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 4242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4243 | else |
| 4244 | cat >conftest.$ac_ext <<_ACEOF |
| 4245 | /* confdefs.h. */ |
| 4246 | _ACEOF |
| 4247 | cat confdefs.h >>conftest.$ac_ext |
| 4248 | cat >>conftest.$ac_ext <<_ACEOF |
| 4249 | /* end confdefs.h. */ |
| 4250 | $ac_includes_default |
| 4251 | |
| 4252 | #include <$ac_header> |
| 4253 | _ACEOF |
| 4254 | rm -f conftest.$ac_objext |
| 4255 | if { (ac_try="$ac_compile" |
| 4256 | case "(($ac_try" in |
| 4257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4258 | *) ac_try_echo=$ac_try;; |
| 4259 | esac |
| 4260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4261 | (eval "$ac_compile") 2>conftest.er1 |
| 4262 | ac_status=$? |
| 4263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4264 | rm -f conftest.er1 |
| 4265 | cat conftest.err >&5 |
| 4266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4267 | (exit $ac_status); } && |
| 4268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4269 | { (case "(($ac_try" in |
| 4270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4271 | *) ac_try_echo=$ac_try;; |
| 4272 | esac |
| 4273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4274 | (eval "$ac_try") 2>&5 |
| 4275 | ac_status=$? |
| 4276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4277 | (exit $ac_status); }; } && |
| 4278 | { ac_try='test -s conftest.$ac_objext' |
| 4279 | { (case "(($ac_try" in |
| 4280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4281 | *) ac_try_echo=$ac_try;; |
| 4282 | esac |
| 4283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4284 | (eval "$ac_try") 2>&5 |
| 4285 | ac_status=$? |
| 4286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4287 | (exit $ac_status); }; }; then |
| 4288 | eval "$as_ac_Header=yes" |
| 4289 | else |
| 4290 | echo "$as_me: failed program was:" >&5 |
| 4291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4292 | |
| 4293 | eval "$as_ac_Header=no" |
| 4294 | fi |
| 4295 | |
| 4296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4297 | fi |
| 4298 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4299 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4300 | echo "${ECHO_T}$ac_res" >&6; } |
| 4301 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4302 | cat >>confdefs.h <<_ACEOF |
| 4303 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4304 | _ACEOF |
| 4305 | |
| 4306 | fi |
| 4307 | |
| 4308 | done |
| 4309 | |
| 4310 | |
| 4311 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4312 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4313 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4315 | else |
| 4316 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4317 | cat >conftest.$ac_ext <<_ACEOF |
| 4318 | /* confdefs.h. */ |
| 4319 | _ACEOF |
| 4320 | cat confdefs.h >>conftest.$ac_ext |
| 4321 | cat >>conftest.$ac_ext <<_ACEOF |
| 4322 | /* end confdefs.h. */ |
| 4323 | #include <sys/types.h> |
| 4324 | #include <sys/param.h> |
| 4325 | |
| 4326 | int |
| 4327 | main () |
| 4328 | { |
| 4329 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4330 | bogus endian macros |
| 4331 | #endif |
| 4332 | |
| 4333 | ; |
| 4334 | return 0; |
| 4335 | } |
| 4336 | _ACEOF |
| 4337 | rm -f conftest.$ac_objext |
| 4338 | if { (ac_try="$ac_compile" |
| 4339 | case "(($ac_try" in |
| 4340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4341 | *) ac_try_echo=$ac_try;; |
| 4342 | esac |
| 4343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4344 | (eval "$ac_compile") 2>conftest.er1 |
| 4345 | ac_status=$? |
| 4346 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4347 | rm -f conftest.er1 |
| 4348 | cat conftest.err >&5 |
| 4349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4350 | (exit $ac_status); } && |
| 4351 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4352 | { (case "(($ac_try" in |
| 4353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4354 | *) ac_try_echo=$ac_try;; |
| 4355 | esac |
| 4356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4357 | (eval "$ac_try") 2>&5 |
| 4358 | ac_status=$? |
| 4359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4360 | (exit $ac_status); }; } && |
| 4361 | { ac_try='test -s conftest.$ac_objext' |
| 4362 | { (case "(($ac_try" in |
| 4363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4364 | *) ac_try_echo=$ac_try;; |
| 4365 | esac |
| 4366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4367 | (eval "$ac_try") 2>&5 |
| 4368 | ac_status=$? |
| 4369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4370 | (exit $ac_status); }; }; then |
| 4371 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 4372 | cat >conftest.$ac_ext <<_ACEOF |
| 4373 | /* confdefs.h. */ |
| 4374 | _ACEOF |
| 4375 | cat confdefs.h >>conftest.$ac_ext |
| 4376 | cat >>conftest.$ac_ext <<_ACEOF |
| 4377 | /* end confdefs.h. */ |
| 4378 | #include <sys/types.h> |
| 4379 | #include <sys/param.h> |
| 4380 | |
| 4381 | int |
| 4382 | main () |
| 4383 | { |
| 4384 | #if BYTE_ORDER != BIG_ENDIAN |
| 4385 | not big endian |
| 4386 | #endif |
| 4387 | |
| 4388 | ; |
| 4389 | return 0; |
| 4390 | } |
| 4391 | _ACEOF |
| 4392 | rm -f conftest.$ac_objext |
| 4393 | if { (ac_try="$ac_compile" |
| 4394 | case "(($ac_try" in |
| 4395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4396 | *) ac_try_echo=$ac_try;; |
| 4397 | esac |
| 4398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4399 | (eval "$ac_compile") 2>conftest.er1 |
| 4400 | ac_status=$? |
| 4401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4402 | rm -f conftest.er1 |
| 4403 | cat conftest.err >&5 |
| 4404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4405 | (exit $ac_status); } && |
| 4406 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4407 | { (case "(($ac_try" in |
| 4408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4409 | *) ac_try_echo=$ac_try;; |
| 4410 | esac |
| 4411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4412 | (eval "$ac_try") 2>&5 |
| 4413 | ac_status=$? |
| 4414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4415 | (exit $ac_status); }; } && |
| 4416 | { ac_try='test -s conftest.$ac_objext' |
| 4417 | { (case "(($ac_try" in |
| 4418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4419 | *) ac_try_echo=$ac_try;; |
| 4420 | esac |
| 4421 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4422 | (eval "$ac_try") 2>&5 |
| 4423 | ac_status=$? |
| 4424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4425 | (exit $ac_status); }; }; then |
| 4426 | ac_cv_c_bigendian=yes |
| 4427 | else |
| 4428 | echo "$as_me: failed program was:" >&5 |
| 4429 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4430 | |
| 4431 | ac_cv_c_bigendian=no |
| 4432 | fi |
| 4433 | |
| 4434 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4435 | else |
| 4436 | echo "$as_me: failed program was:" >&5 |
| 4437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4438 | |
| 4439 | # It does not; compile a test program. |
| 4440 | if test "$cross_compiling" = yes; then |
| 4441 | # try to guess the endianness by grepping values into an object file |
| 4442 | ac_cv_c_bigendian=unknown |
| 4443 | cat >conftest.$ac_ext <<_ACEOF |
| 4444 | /* confdefs.h. */ |
| 4445 | _ACEOF |
| 4446 | cat confdefs.h >>conftest.$ac_ext |
| 4447 | cat >>conftest.$ac_ext <<_ACEOF |
| 4448 | /* end confdefs.h. */ |
| 4449 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4450 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4451 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4452 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4453 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4454 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 4455 | int |
| 4456 | main () |
| 4457 | { |
| 4458 | _ascii (); _ebcdic (); |
| 4459 | ; |
| 4460 | return 0; |
| 4461 | } |
| 4462 | _ACEOF |
| 4463 | rm -f conftest.$ac_objext |
| 4464 | if { (ac_try="$ac_compile" |
| 4465 | case "(($ac_try" in |
| 4466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4467 | *) ac_try_echo=$ac_try;; |
| 4468 | esac |
| 4469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4470 | (eval "$ac_compile") 2>conftest.er1 |
| 4471 | ac_status=$? |
| 4472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4473 | rm -f conftest.er1 |
| 4474 | cat conftest.err >&5 |
| 4475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4476 | (exit $ac_status); } && |
| 4477 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4478 | { (case "(($ac_try" in |
| 4479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4480 | *) ac_try_echo=$ac_try;; |
| 4481 | esac |
| 4482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4483 | (eval "$ac_try") 2>&5 |
| 4484 | ac_status=$? |
| 4485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4486 | (exit $ac_status); }; } && |
| 4487 | { ac_try='test -s conftest.$ac_objext' |
| 4488 | { (case "(($ac_try" in |
| 4489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4490 | *) ac_try_echo=$ac_try;; |
| 4491 | esac |
| 4492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4493 | (eval "$ac_try") 2>&5 |
| 4494 | ac_status=$? |
| 4495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4496 | (exit $ac_status); }; }; then |
| 4497 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 4498 | ac_cv_c_bigendian=yes |
| 4499 | fi |
| 4500 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4501 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4502 | ac_cv_c_bigendian=no |
| 4503 | else |
| 4504 | # finding both strings is unlikely to happen, but who knows? |
| 4505 | ac_cv_c_bigendian=unknown |
| 4506 | fi |
| 4507 | fi |
| 4508 | else |
| 4509 | echo "$as_me: failed program was:" >&5 |
| 4510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4511 | |
| 4512 | |
| 4513 | fi |
| 4514 | |
| 4515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4516 | else |
| 4517 | cat >conftest.$ac_ext <<_ACEOF |
| 4518 | /* confdefs.h. */ |
| 4519 | _ACEOF |
| 4520 | cat confdefs.h >>conftest.$ac_ext |
| 4521 | cat >>conftest.$ac_ext <<_ACEOF |
| 4522 | /* end confdefs.h. */ |
| 4523 | $ac_includes_default |
| 4524 | int |
| 4525 | main () |
| 4526 | { |
| 4527 | |
| 4528 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4529 | union |
| 4530 | { |
| 4531 | long int l; |
| 4532 | char c[sizeof (long int)]; |
| 4533 | } u; |
| 4534 | u.l = 1; |
| 4535 | return u.c[sizeof (long int) - 1] == 1; |
| 4536 | |
| 4537 | ; |
| 4538 | return 0; |
| 4539 | } |
| 4540 | _ACEOF |
| 4541 | rm -f conftest$ac_exeext |
| 4542 | if { (ac_try="$ac_link" |
| 4543 | case "(($ac_try" in |
| 4544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4545 | *) ac_try_echo=$ac_try;; |
| 4546 | esac |
| 4547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4548 | (eval "$ac_link") 2>&5 |
| 4549 | ac_status=$? |
| 4550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4551 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4552 | { (case "(($ac_try" in |
| 4553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4554 | *) ac_try_echo=$ac_try;; |
| 4555 | esac |
| 4556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4557 | (eval "$ac_try") 2>&5 |
| 4558 | ac_status=$? |
| 4559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4560 | (exit $ac_status); }; }; then |
| 4561 | ac_cv_c_bigendian=no |
| 4562 | else |
| 4563 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4564 | echo "$as_me: failed program was:" >&5 |
| 4565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4566 | |
| 4567 | ( exit $ac_status ) |
| 4568 | ac_cv_c_bigendian=yes |
| 4569 | fi |
| 4570 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4571 | fi |
| 4572 | |
| 4573 | |
| 4574 | fi |
| 4575 | |
| 4576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4577 | fi |
| 4578 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4579 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4580 | case $ac_cv_c_bigendian in |
| 4581 | yes) |
| 4582 | ENDIAN=big |
| 4583 | ;; |
| 4584 | no) |
| 4585 | ENDIAN=little |
| 4586 | ;; |
| 4587 | *) |
| 4588 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4589 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4590 | echo "$as_me: error: unknown endianness |
| 4591 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4592 | { (exit 1); exit 1; }; } ;; |
| 4593 | esac |
| 4594 | |
| 4595 | |
| 4596 | if test "$cross_compiling" = yes; then |
| 4597 | LLVM_CROSS_COMPILING=1 |
| 4598 | |
| 4599 | |
| 4600 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4601 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4602 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4604 | else |
| 4605 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4606 | ac_cv_build_exeext=.exe |
| 4607 | else |
| 4608 | ac_build_prefix=${build_alias}- |
| 4609 | |
| 4610 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4611 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
| 4612 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4613 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4614 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4616 | else |
| 4617 | if test -n "$BUILD_CC"; then |
| 4618 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4619 | else |
| 4620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4621 | for as_dir in $PATH |
| 4622 | do |
| 4623 | IFS=$as_save_IFS |
| 4624 | test -z "$as_dir" && as_dir=. |
| 4625 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4626 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4627 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
| 4628 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4629 | break 2 |
| 4630 | fi |
| 4631 | done |
| 4632 | done |
| 4633 | IFS=$as_save_IFS |
| 4634 | |
| 4635 | fi |
| 4636 | fi |
| 4637 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4638 | if test -n "$BUILD_CC"; then |
| 4639 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4640 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4641 | else |
| 4642 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4643 | echo "${ECHO_T}no" >&6; } |
| 4644 | fi |
| 4645 | |
| 4646 | |
| 4647 | if test -z "$BUILD_CC"; then |
| 4648 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4649 | set dummy gcc; ac_word=$2 |
| 4650 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4652 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4654 | else |
| 4655 | if test -n "$BUILD_CC"; then |
| 4656 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4657 | else |
| 4658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4659 | for as_dir in $PATH |
| 4660 | do |
| 4661 | IFS=$as_save_IFS |
| 4662 | test -z "$as_dir" && as_dir=. |
| 4663 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4664 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4665 | ac_cv_prog_BUILD_CC="gcc" |
| 4666 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4667 | break 2 |
| 4668 | fi |
| 4669 | done |
| 4670 | done |
| 4671 | IFS=$as_save_IFS |
| 4672 | |
| 4673 | fi |
| 4674 | fi |
| 4675 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4676 | if test -n "$BUILD_CC"; then |
| 4677 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4678 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4679 | else |
| 4680 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4681 | echo "${ECHO_T}no" >&6; } |
| 4682 | fi |
| 4683 | |
| 4684 | |
| 4685 | if test -z "$BUILD_CC"; then |
| 4686 | # Extract the first word of "cc", so it can be a program name with args. |
| 4687 | set dummy cc; ac_word=$2 |
| 4688 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4689 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4690 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4692 | else |
| 4693 | if test -n "$BUILD_CC"; then |
| 4694 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4695 | else |
| 4696 | ac_prog_rejected=no |
| 4697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4698 | for as_dir in $PATH |
| 4699 | do |
| 4700 | IFS=$as_save_IFS |
| 4701 | test -z "$as_dir" && as_dir=. |
| 4702 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4703 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4704 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4705 | ac_prog_rejected=yes |
| 4706 | continue |
| 4707 | fi |
| 4708 | ac_cv_prog_BUILD_CC="cc" |
| 4709 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4710 | break 2 |
| 4711 | fi |
| 4712 | done |
| 4713 | done |
| 4714 | IFS=$as_save_IFS |
| 4715 | |
| 4716 | if test $ac_prog_rejected = yes; then |
| 4717 | # We found a bogon in the path, so make sure we never use it. |
| 4718 | set dummy $ac_cv_prog_BUILD_CC |
| 4719 | shift |
| 4720 | if test $# != 0; then |
| 4721 | # We chose a different compiler from the bogus one. |
| 4722 | # However, it has the same basename, so the bogon will be chosen |
| 4723 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4724 | shift |
| 4725 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4726 | fi |
| 4727 | fi |
| 4728 | fi |
| 4729 | fi |
| 4730 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4731 | if test -n "$BUILD_CC"; then |
| 4732 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4733 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4734 | else |
| 4735 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4736 | echo "${ECHO_T}no" >&6; } |
| 4737 | fi |
| 4738 | |
| 4739 | |
| 4740 | fi |
| 4741 | fi |
| 4742 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4743 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4744 | { (exit 1); exit 1; }; } |
| 4745 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4746 | rm -f conftest* |
| 4747 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4748 | ac_cv_build_exeext= |
| 4749 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
| 4750 | (eval $ac_build_link) 2>&5 |
| 4751 | ac_status=$? |
| 4752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4753 | (exit $ac_status); }; then |
| 4754 | for file in conftest.*; do |
| 4755 | case $file in |
| 4756 | *.c | *.o | *.obj | *.dSYM) ;; |
| 4757 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4758 | esac |
| 4759 | done |
| 4760 | else |
| 4761 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4762 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4763 | { (exit 1); exit 1; }; } |
| 4764 | fi |
| 4765 | rm -f conftest* |
| 4766 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4767 | fi |
| 4768 | fi |
| 4769 | |
| 4770 | BUILD_EXEEXT="" |
| 4771 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} |
| 4772 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4773 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
| 4774 | ac_build_exeext=$BUILD_EXEEXT |
| 4775 | |
| 4776 | ac_build_prefix=${build_alias}- |
| 4777 | # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. |
| 4778 | set dummy ${ac_build_prefix}g++; ac_word=$2 |
| 4779 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4780 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4781 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4783 | else |
| 4784 | if test -n "$BUILD_CXX"; then |
| 4785 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4786 | else |
| 4787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4788 | for as_dir in $PATH |
| 4789 | do |
| 4790 | IFS=$as_save_IFS |
| 4791 | test -z "$as_dir" && as_dir=. |
| 4792 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4793 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4794 | ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" |
| 4795 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4796 | break 2 |
| 4797 | fi |
| 4798 | done |
| 4799 | done |
| 4800 | IFS=$as_save_IFS |
| 4801 | |
| 4802 | fi |
| 4803 | fi |
| 4804 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4805 | if test -n "$BUILD_CXX"; then |
| 4806 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4807 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4808 | else |
| 4809 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4810 | echo "${ECHO_T}no" >&6; } |
| 4811 | fi |
| 4812 | |
| 4813 | |
| 4814 | if test -z "$BUILD_CXX"; then |
| 4815 | # Extract the first word of "g++", so it can be a program name with args. |
| 4816 | set dummy g++; ac_word=$2 |
| 4817 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4818 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4819 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4821 | else |
| 4822 | if test -n "$BUILD_CXX"; then |
| 4823 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4824 | else |
| 4825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4826 | for as_dir in $PATH |
| 4827 | do |
| 4828 | IFS=$as_save_IFS |
| 4829 | test -z "$as_dir" && as_dir=. |
| 4830 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4831 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4832 | ac_cv_prog_BUILD_CXX="g++" |
| 4833 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4834 | break 2 |
| 4835 | fi |
| 4836 | done |
| 4837 | done |
| 4838 | IFS=$as_save_IFS |
| 4839 | |
| 4840 | fi |
| 4841 | fi |
| 4842 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4843 | if test -n "$BUILD_CXX"; then |
| 4844 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4845 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4846 | else |
| 4847 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4848 | echo "${ECHO_T}no" >&6; } |
| 4849 | fi |
| 4850 | |
| 4851 | |
| 4852 | if test -z "$BUILD_CXX"; then |
| 4853 | # Extract the first word of "c++", so it can be a program name with args. |
| 4854 | set dummy c++; ac_word=$2 |
| 4855 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4856 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4857 | if test "${ac_cv_prog_BUILD_CXX+set}" = set; then |
| 4858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4859 | else |
| 4860 | if test -n "$BUILD_CXX"; then |
| 4861 | ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. |
| 4862 | else |
| 4863 | ac_prog_rejected=no |
| 4864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4865 | for as_dir in $PATH |
| 4866 | do |
| 4867 | IFS=$as_save_IFS |
| 4868 | test -z "$as_dir" && as_dir=. |
| 4869 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4870 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4871 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then |
| 4872 | ac_prog_rejected=yes |
| 4873 | continue |
| 4874 | fi |
| 4875 | ac_cv_prog_BUILD_CXX="c++" |
| 4876 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4877 | break 2 |
| 4878 | fi |
| 4879 | done |
| 4880 | done |
| 4881 | IFS=$as_save_IFS |
| 4882 | |
| 4883 | if test $ac_prog_rejected = yes; then |
| 4884 | # We found a bogon in the path, so make sure we never use it. |
| 4885 | set dummy $ac_cv_prog_BUILD_CXX |
| 4886 | shift |
| 4887 | if test $# != 0; then |
| 4888 | # We chose a different compiler from the bogus one. |
| 4889 | # However, it has the same basename, so the bogon will be chosen |
| 4890 | # first if we set BUILD_CXX to just the basename; use the full file name. |
| 4891 | shift |
| 4892 | ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" |
| 4893 | fi |
| 4894 | fi |
| 4895 | fi |
| 4896 | fi |
| 4897 | BUILD_CXX=$ac_cv_prog_BUILD_CXX |
| 4898 | if test -n "$BUILD_CXX"; then |
| 4899 | { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 |
| 4900 | echo "${ECHO_T}$BUILD_CXX" >&6; } |
| 4901 | else |
| 4902 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4903 | echo "${ECHO_T}no" >&6; } |
| 4904 | fi |
| 4905 | |
| 4906 | |
| 4907 | fi |
| 4908 | fi |
| 4909 | else |
| 4910 | LLVM_CROSS_COMPILING=0 |
| 4911 | |
| 4912 | fi |
| 4913 | |
| 4914 | if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then |
| 4915 | cvsbuild="yes" |
| 4916 | optimize="no" |
| 4917 | CVSBUILD=CVSBUILD=1 |
| 4918 | |
| 4919 | else |
| 4920 | cvsbuild="no" |
| 4921 | optimize="yes" |
| 4922 | fi |
| 4923 | |
| 4924 | |
| 4925 | # Check whether --enable-optimized was given. |
| 4926 | if test "${enable_optimized+set}" = set; then |
| 4927 | enableval=$enable_optimized; |
| 4928 | else |
| 4929 | enableval=$optimize |
| 4930 | fi |
| 4931 | |
| 4932 | if test ${enableval} = "no" ; then |
| 4933 | ENABLE_OPTIMIZED= |
| 4934 | |
| 4935 | else |
| 4936 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4937 | |
| 4938 | fi |
| 4939 | |
| 4940 | # Check whether --enable-profiling was given. |
| 4941 | if test "${enable_profiling+set}" = set; then |
| 4942 | enableval=$enable_profiling; |
| 4943 | else |
| 4944 | enableval="no" |
| 4945 | fi |
| 4946 | |
| 4947 | if test ${enableval} = "no" ; then |
| 4948 | ENABLE_PROFILING= |
| 4949 | |
| 4950 | else |
| 4951 | ENABLE_PROFILING=ENABLE_PROFILING=1 |
| 4952 | |
| 4953 | fi |
| 4954 | |
| 4955 | # Check whether --enable-assertions was given. |
| 4956 | if test "${enable_assertions+set}" = set; then |
| 4957 | enableval=$enable_assertions; |
| 4958 | else |
| 4959 | enableval="yes" |
| 4960 | fi |
| 4961 | |
| 4962 | if test ${enableval} = "yes" ; then |
| 4963 | DISABLE_ASSERTIONS= |
| 4964 | |
| 4965 | else |
| 4966 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4967 | |
| 4968 | fi |
| 4969 | |
| 4970 | # Check whether --enable-expensive-checks was given. |
| 4971 | if test "${enable_expensive_checks+set}" = set; then |
| 4972 | enableval=$enable_expensive_checks; |
| 4973 | else |
| 4974 | enableval="no" |
| 4975 | fi |
| 4976 | |
| 4977 | if test ${enableval} = "yes" ; then |
| 4978 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4979 | |
| 4980 | EXPENSIVE_CHECKS=yes |
| 4981 | |
| 4982 | else |
| 4983 | ENABLE_EXPENSIVE_CHECKS= |
| 4984 | |
| 4985 | EXPENSIVE_CHECKS=no |
| 4986 | |
| 4987 | fi |
| 4988 | |
| 4989 | # Check whether --enable-debug-runtime was given. |
| 4990 | if test "${enable_debug_runtime+set}" = set; then |
| 4991 | enableval=$enable_debug_runtime; |
| 4992 | else |
| 4993 | enableval=no |
| 4994 | fi |
| 4995 | |
| 4996 | if test ${enableval} = "no" ; then |
| 4997 | DEBUG_RUNTIME= |
| 4998 | |
| 4999 | else |
| 5000 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 5001 | |
| 5002 | fi |
| 5003 | |
| 5004 | # Check whether --enable-debug-symbols was given. |
| 5005 | if test "${enable_debug_symbols+set}" = set; then |
| 5006 | enableval=$enable_debug_symbols; |
| 5007 | else |
| 5008 | enableval=no |
| 5009 | fi |
| 5010 | |
| 5011 | if test ${enableval} = "no" ; then |
| 5012 | DEBUG_SYMBOLS= |
| 5013 | |
| 5014 | else |
| 5015 | DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 |
| 5016 | |
| 5017 | fi |
| 5018 | |
| 5019 | # Check whether --enable-jit was given. |
| 5020 | if test "${enable_jit+set}" = set; then |
| 5021 | enableval=$enable_jit; |
| 5022 | else |
| 5023 | enableval=default |
| 5024 | fi |
| 5025 | |
| 5026 | if test ${enableval} = "no" |
| 5027 | then |
| 5028 | JIT= |
| 5029 | |
| 5030 | else |
| 5031 | case "$llvm_cv_target_arch" in |
| 5032 | x86) TARGET_HAS_JIT=1 |
| 5033 | ;; |
| 5034 | Sparc) TARGET_HAS_JIT=0 |
| 5035 | ;; |
| 5036 | PowerPC) TARGET_HAS_JIT=1 |
| 5037 | ;; |
| 5038 | x86_64) TARGET_HAS_JIT=1 |
| 5039 | ;; |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 5040 | ARM) TARGET_HAS_JIT=1 |
| 5041 | ;; |
| 5042 | Mips) TARGET_HAS_JIT=1 |
| 5043 | ;; |
| 5044 | XCore) TARGET_HAS_JIT=0 |
| 5045 | ;; |
| 5046 | MSP430) TARGET_HAS_JIT=0 |
| 5047 | ;; |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 5048 | MBlaze) TARGET_HAS_JIT=0 |
| 5049 | ;; |
| 5050 | PTX) TARGET_HAS_JIT=0 |
| 5051 | ;; |
| 5052 | *) TARGET_HAS_JIT=0 |
| 5053 | ;; |
| 5054 | esac |
| 5055 | fi |
| 5056 | |
| 5057 | # Check whether --enable-docs was given. |
| 5058 | if test "${enable_docs+set}" = set; then |
| 5059 | enableval=$enable_docs; |
| 5060 | else |
| 5061 | enableval=default |
| 5062 | fi |
| 5063 | |
| 5064 | case "$enableval" in |
| 5065 | yes) ENABLE_DOCS=1 |
| 5066 | ;; |
| 5067 | no) ENABLE_DOCS=0 |
| 5068 | ;; |
| 5069 | default) ENABLE_DOCS=1 |
| 5070 | ;; |
| 5071 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 |
| 5072 | echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} |
| 5073 | { (exit 1); exit 1; }; } ;; |
| 5074 | esac |
| 5075 | |
| 5076 | # Check whether --enable-doxygen was given. |
| 5077 | if test "${enable_doxygen+set}" = set; then |
| 5078 | enableval=$enable_doxygen; |
| 5079 | else |
| 5080 | enableval=default |
| 5081 | fi |
| 5082 | |
| 5083 | case "$enableval" in |
| 5084 | yes) ENABLE_DOXYGEN=1 |
| 5085 | ;; |
| 5086 | no) ENABLE_DOXYGEN=0 |
| 5087 | ;; |
| 5088 | default) ENABLE_DOXYGEN=0 |
| 5089 | ;; |
| 5090 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 5091 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 5092 | { (exit 1); exit 1; }; } ;; |
| 5093 | esac |
| 5094 | |
| 5095 | # Check whether --enable-threads was given. |
| 5096 | if test "${enable_threads+set}" = set; then |
| 5097 | enableval=$enable_threads; |
| 5098 | else |
| 5099 | enableval=default |
| 5100 | fi |
| 5101 | |
| 5102 | case "$enableval" in |
| 5103 | yes) ENABLE_THREADS=1 |
| 5104 | ;; |
| 5105 | no) ENABLE_THREADS=0 |
| 5106 | ;; |
| 5107 | default) ENABLE_THREADS=1 |
| 5108 | ;; |
| 5109 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 5110 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 5111 | { (exit 1); exit 1; }; } ;; |
| 5112 | esac |
| 5113 | |
| 5114 | cat >>confdefs.h <<_ACEOF |
| 5115 | #define ENABLE_THREADS $ENABLE_THREADS |
| 5116 | _ACEOF |
| 5117 | |
| 5118 | |
| 5119 | # Check whether --enable-pthreads was given. |
| 5120 | if test "${enable_pthreads+set}" = set; then |
| 5121 | enableval=$enable_pthreads; |
| 5122 | else |
| 5123 | enableval=default |
| 5124 | fi |
| 5125 | |
| 5126 | case "$enableval" in |
| 5127 | yes) ENABLE_PTHREADS=1 |
| 5128 | ;; |
| 5129 | no) ENABLE_PTHREADS=0 |
| 5130 | ;; |
| 5131 | default) ENABLE_PTHREADS=1 |
| 5132 | ;; |
| 5133 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 |
| 5134 | echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} |
| 5135 | { (exit 1); exit 1; }; } ;; |
| 5136 | esac |
| 5137 | |
| 5138 | # Check whether --enable-pic was given. |
| 5139 | if test "${enable_pic+set}" = set; then |
| 5140 | enableval=$enable_pic; |
| 5141 | else |
| 5142 | enableval=default |
| 5143 | fi |
| 5144 | |
| 5145 | case "$enableval" in |
| 5146 | yes) ENABLE_PIC=1 |
| 5147 | ;; |
| 5148 | no) ENABLE_PIC=0 |
| 5149 | ;; |
| 5150 | default) ENABLE_PIC=1 |
| 5151 | ;; |
| 5152 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 5153 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 5154 | { (exit 1); exit 1; }; } ;; |
| 5155 | esac |
| 5156 | |
| 5157 | cat >>confdefs.h <<_ACEOF |
| 5158 | #define ENABLE_PIC $ENABLE_PIC |
| 5159 | _ACEOF |
| 5160 | |
| 5161 | |
| 5162 | # Check whether --enable-shared was given. |
| 5163 | if test "${enable_shared+set}" = set; then |
| 5164 | enableval=$enable_shared; |
| 5165 | else |
| 5166 | enableval=default |
| 5167 | fi |
| 5168 | |
| 5169 | case "$enableval" in |
| 5170 | yes) ENABLE_SHARED=1 |
| 5171 | ;; |
| 5172 | no) ENABLE_SHARED=0 |
| 5173 | ;; |
| 5174 | default) ENABLE_SHARED=0 |
| 5175 | ;; |
| 5176 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 |
| 5177 | echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} |
| 5178 | { (exit 1); exit 1; }; } ;; |
| 5179 | esac |
| 5180 | |
| 5181 | # Check whether --enable-embed-stdcxx was given. |
| 5182 | if test "${enable_embed_stdcxx+set}" = set; then |
| 5183 | enableval=$enable_embed_stdcxx; |
| 5184 | else |
| 5185 | enableval=default |
| 5186 | fi |
| 5187 | |
| 5188 | case "$enableval" in |
| 5189 | yes) ENABLE_EMBED_STDCXX=1 |
| 5190 | ;; |
| 5191 | no) ENABLE_EMBED_STDCXX=0 |
| 5192 | ;; |
| 5193 | default) ENABLE_EMBED_STDCXX=1 |
| 5194 | ;; |
| 5195 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 |
| 5196 | echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} |
| 5197 | { (exit 1); exit 1; }; } ;; |
| 5198 | esac |
| 5199 | |
| 5200 | # Check whether --enable-timestamps was given. |
| 5201 | if test "${enable_timestamps+set}" = set; then |
| 5202 | enableval=$enable_timestamps; |
| 5203 | else |
| 5204 | enableval=default |
| 5205 | fi |
| 5206 | |
| 5207 | case "$enableval" in |
| 5208 | yes) ENABLE_TIMESTAMPS=1 |
| 5209 | ;; |
| 5210 | no) ENABLE_TIMESTAMPS=0 |
| 5211 | ;; |
| 5212 | default) ENABLE_TIMESTAMPS=1 |
| 5213 | ;; |
| 5214 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 |
| 5215 | echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} |
| 5216 | { (exit 1); exit 1; }; } ;; |
| 5217 | esac |
| 5218 | |
| 5219 | cat >>confdefs.h <<_ACEOF |
| 5220 | #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS |
| 5221 | _ACEOF |
| 5222 | |
| 5223 | |
| 5224 | TARGETS_TO_BUILD="" |
| 5225 | # Check whether --enable-targets was given. |
| 5226 | if test "${enable_targets+set}" = set; then |
| 5227 | enableval=$enable_targets; |
| 5228 | else |
| 5229 | enableval=all |
| 5230 | fi |
| 5231 | |
| 5232 | if test "$enableval" = host-only ; then |
| 5233 | enableval=host |
| 5234 | fi |
| 5235 | case "$enableval" in |
Dan Gohman | 33ba8b0 | 2011-10-27 22:56:32 +0000 | [diff] [blame] | 5236 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;; |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 5237 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5238 | case "$a_target" in |
| 5239 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5240 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5241 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5242 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 5243 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5244 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 5245 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 5246 | xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5247 | msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 5248 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
| 5249 | cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; |
| 5250 | mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
| 5251 | ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; |
| 5252 | host) case "$llvm_cv_target_arch" in |
| 5253 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5254 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 5255 | Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 5256 | PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 5257 | ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
| 5258 | Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
| 5259 | MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; |
| 5260 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
| 5261 | XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; |
| 5262 | MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 5263 | PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; |
| 5264 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 5265 | echo "$as_me: error: Can not set target to build" >&2;} |
| 5266 | { (exit 1); exit 1; }; } ;; |
| 5267 | esac ;; |
| 5268 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 5269 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 5270 | { (exit 1); exit 1; }; } ;; |
| 5271 | esac |
| 5272 | done |
| 5273 | ;; |
| 5274 | esac |
| 5275 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 5276 | |
| 5277 | |
| 5278 | # Determine whether we are building LLVM support for the native architecture. |
| 5279 | # If so, define LLVM_NATIVE_ARCH to that LLVM target. |
| 5280 | for a_target in $TARGETS_TO_BUILD; do |
| 5281 | if test "$a_target" = "$LLVM_NATIVE_ARCH"; then |
| 5282 | |
| 5283 | cat >>confdefs.h <<_ACEOF |
| 5284 | #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH |
| 5285 | _ACEOF |
| 5286 | |
| 5287 | LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" |
| 5288 | LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" |
| 5289 | LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" |
| 5290 | LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" |
| 5291 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then |
| 5292 | LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" |
| 5293 | fi |
| 5294 | |
| 5295 | cat >>confdefs.h <<_ACEOF |
| 5296 | #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET |
| 5297 | _ACEOF |
| 5298 | |
| 5299 | |
| 5300 | cat >>confdefs.h <<_ACEOF |
| 5301 | #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO |
| 5302 | _ACEOF |
| 5303 | |
| 5304 | |
| 5305 | cat >>confdefs.h <<_ACEOF |
| 5306 | #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC |
| 5307 | _ACEOF |
| 5308 | |
| 5309 | |
| 5310 | cat >>confdefs.h <<_ACEOF |
| 5311 | #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER |
| 5312 | _ACEOF |
| 5313 | |
| 5314 | if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then |
| 5315 | |
| 5316 | cat >>confdefs.h <<_ACEOF |
| 5317 | #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER |
| 5318 | _ACEOF |
| 5319 | |
| 5320 | fi |
| 5321 | fi |
| 5322 | done |
| 5323 | |
| 5324 | # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual |
| 5325 | # target feature def files. |
| 5326 | LLVM_ENUM_TARGETS="" |
| 5327 | LLVM_ENUM_ASM_PRINTERS="" |
| 5328 | LLVM_ENUM_ASM_PARSERS="" |
| 5329 | LLVM_ENUM_DISASSEMBLERS="" |
| 5330 | for target_to_build in $TARGETS_TO_BUILD; do |
| 5331 | LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" |
| 5332 | if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then |
| 5333 | LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; |
| 5334 | fi |
| 5335 | if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then |
| 5336 | LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; |
| 5337 | fi |
| 5338 | if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then |
| 5339 | LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; |
| 5340 | fi |
| 5341 | done |
| 5342 | |
| 5343 | |
| 5344 | |
| 5345 | |
| 5346 | |
| 5347 | # Check whether --enable-cbe-printf-a was given. |
| 5348 | if test "${enable_cbe_printf_a+set}" = set; then |
| 5349 | enableval=$enable_cbe_printf_a; |
| 5350 | else |
| 5351 | enableval=default |
| 5352 | fi |
| 5353 | |
| 5354 | case "$enableval" in |
| 5355 | yes) ENABLE_CBE_PRINTF_A=1 |
| 5356 | ;; |
| 5357 | no) ENABLE_CBE_PRINTF_A=0 |
| 5358 | ;; |
| 5359 | default) ENABLE_CBE_PRINTF_A=1 |
| 5360 | ;; |
| 5361 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 5362 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 5363 | { (exit 1); exit 1; }; } ;; |
| 5364 | esac |
| 5365 | |
| 5366 | cat >>confdefs.h <<_ACEOF |
| 5367 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 5368 | _ACEOF |
| 5369 | |
| 5370 | |
| 5371 | |
| 5372 | # Check whether --with-optimize-option was given. |
| 5373 | if test "${with_optimize_option+set}" = set; then |
| 5374 | withval=$with_optimize_option; |
| 5375 | else |
| 5376 | withval=default |
| 5377 | fi |
| 5378 | |
| 5379 | { echo "$as_me:$LINENO: checking optimization flags" >&5 |
| 5380 | echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } |
| 5381 | case "$withval" in |
| 5382 | default) |
| 5383 | case "$llvm_cv_os_type" in |
| 5384 | FreeBSD) optimize_option=-O2 ;; |
| 5385 | MingW) optimize_option=-O2 ;; |
| 5386 | *) optimize_option=-O3 ;; |
| 5387 | esac ;; |
| 5388 | *) optimize_option="$withval" ;; |
| 5389 | esac |
| 5390 | OPTIMIZE_OPTION=$optimize_option |
| 5391 | |
| 5392 | { echo "$as_me:$LINENO: result: $optimize_option" >&5 |
| 5393 | echo "${ECHO_T}$optimize_option" >&6; } |
| 5394 | |
| 5395 | |
| 5396 | # Check whether --with-extra-options was given. |
| 5397 | if test "${with_extra_options+set}" = set; then |
| 5398 | withval=$with_extra_options; |
| 5399 | else |
| 5400 | withval=default |
| 5401 | fi |
| 5402 | |
| 5403 | case "$withval" in |
| 5404 | default) EXTRA_OPTIONS= ;; |
| 5405 | *) EXTRA_OPTIONS=$withval ;; |
| 5406 | esac |
| 5407 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 5408 | |
| 5409 | |
| 5410 | |
| 5411 | # Check whether --with-extra-ld-options was given. |
| 5412 | if test "${with_extra_ld_options+set}" = set; then |
| 5413 | withval=$with_extra_ld_options; |
| 5414 | else |
| 5415 | withval=default |
| 5416 | fi |
| 5417 | |
| 5418 | case "$withval" in |
| 5419 | default) EXTRA_LD_OPTIONS= ;; |
| 5420 | *) EXTRA_LD_OPTIONS=$withval ;; |
| 5421 | esac |
| 5422 | EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS |
| 5423 | |
| 5424 | |
| 5425 | # Check whether --enable-bindings was given. |
| 5426 | if test "${enable_bindings+set}" = set; then |
| 5427 | enableval=$enable_bindings; |
| 5428 | else |
| 5429 | enableval=default |
| 5430 | fi |
| 5431 | |
| 5432 | BINDINGS_TO_BUILD="" |
| 5433 | case "$enableval" in |
| 5434 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
| 5435 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 5436 | none | no) BINDINGS_TO_BUILD="" ;; |
| 5437 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 5438 | case "$a_binding" in |
| 5439 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
| 5440 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 5441 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 5442 | { (exit 1); exit 1; }; } ;; |
| 5443 | esac |
| 5444 | done |
| 5445 | ;; |
| 5446 | esac |
| 5447 | |
| 5448 | |
| 5449 | # Check whether --with-ocaml-libdir was given. |
| 5450 | if test "${with_ocaml_libdir+set}" = set; then |
| 5451 | withval=$with_ocaml_libdir; |
| 5452 | else |
| 5453 | withval=auto |
| 5454 | fi |
| 5455 | |
| 5456 | case "$withval" in |
| 5457 | auto) with_ocaml_libdir="$withval" ;; |
| 5458 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
| 5459 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 5460 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 5461 | { (exit 1); exit 1; }; } ;; |
| 5462 | esac |
| 5463 | |
| 5464 | |
| 5465 | # Check whether --with-clang-resource-dir was given. |
| 5466 | if test "${with_clang_resource_dir+set}" = set; then |
| 5467 | withval=$with_clang_resource_dir; |
| 5468 | else |
| 5469 | withval="" |
| 5470 | fi |
| 5471 | |
| 5472 | |
| 5473 | cat >>confdefs.h <<_ACEOF |
| 5474 | #define CLANG_RESOURCE_DIR "$withval" |
| 5475 | _ACEOF |
| 5476 | |
| 5477 | |
| 5478 | |
| 5479 | # Check whether --with-c-include-dirs was given. |
| 5480 | if test "${with_c_include_dirs+set}" = set; then |
| 5481 | withval=$with_c_include_dirs; |
| 5482 | else |
| 5483 | withval="" |
| 5484 | fi |
| 5485 | |
| 5486 | |
| 5487 | cat >>confdefs.h <<_ACEOF |
| 5488 | #define C_INCLUDE_DIRS "$withval" |
| 5489 | _ACEOF |
| 5490 | |
| 5491 | |
| 5492 | |
| 5493 | # Check whether --with-cxx-include-root was given. |
| 5494 | if test "${with_cxx_include_root+set}" = set; then |
| 5495 | withval=$with_cxx_include_root; |
| 5496 | else |
| 5497 | withval="" |
| 5498 | fi |
| 5499 | |
| 5500 | |
| 5501 | cat >>confdefs.h <<_ACEOF |
| 5502 | #define CXX_INCLUDE_ROOT "$withval" |
| 5503 | _ACEOF |
| 5504 | |
| 5505 | |
| 5506 | |
| 5507 | # Check whether --with-cxx-include-arch was given. |
| 5508 | if test "${with_cxx_include_arch+set}" = set; then |
| 5509 | withval=$with_cxx_include_arch; |
| 5510 | else |
| 5511 | withval="" |
| 5512 | fi |
| 5513 | |
| 5514 | |
| 5515 | cat >>confdefs.h <<_ACEOF |
| 5516 | #define CXX_INCLUDE_ARCH "$withval" |
| 5517 | _ACEOF |
| 5518 | |
| 5519 | |
| 5520 | |
| 5521 | # Check whether --with-cxx-include-32bit-dir was given. |
| 5522 | if test "${with_cxx_include_32bit_dir+set}" = set; then |
| 5523 | withval=$with_cxx_include_32bit_dir; |
| 5524 | else |
| 5525 | withval="" |
| 5526 | fi |
| 5527 | |
| 5528 | |
| 5529 | cat >>confdefs.h <<_ACEOF |
| 5530 | #define CXX_INCLUDE_32BIT_DIR "$withval" |
| 5531 | _ACEOF |
| 5532 | |
| 5533 | |
| 5534 | |
| 5535 | # Check whether --with-cxx-include-64bit-dir was given. |
| 5536 | if test "${with_cxx_include_64bit_dir+set}" = set; then |
| 5537 | withval=$with_cxx_include_64bit_dir; |
| 5538 | else |
| 5539 | withval="" |
| 5540 | fi |
| 5541 | |
| 5542 | |
| 5543 | cat >>confdefs.h <<_ACEOF |
| 5544 | #define CXX_INCLUDE_64BIT_DIR "$withval" |
| 5545 | _ACEOF |
| 5546 | |
| 5547 | |
| 5548 | |
| 5549 | # Check whether --with-binutils-include was given. |
| 5550 | if test "${with_binutils_include+set}" = set; then |
| 5551 | withval=$with_binutils_include; |
| 5552 | else |
| 5553 | withval=default |
| 5554 | fi |
| 5555 | |
| 5556 | case "$withval" in |
| 5557 | default) WITH_BINUTILS_INCDIR=default ;; |
| 5558 | /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; |
| 5559 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 |
| 5560 | echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} |
| 5561 | { (exit 1); exit 1; }; } ;; |
| 5562 | esac |
| 5563 | if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then |
| 5564 | BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR |
| 5565 | |
| 5566 | if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then |
| 5567 | echo "$WITH_BINUTILS_INCDIR/plugin-api.h" |
| 5568 | { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 |
| 5569 | echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} |
| 5570 | { (exit 1); exit 1; }; }; |
| 5571 | fi |
| 5572 | fi |
| 5573 | |
| 5574 | |
| 5575 | # Check whether --with-bug-report-url was given. |
| 5576 | if test "${with_bug_report_url+set}" = set; then |
| 5577 | withval=$with_bug_report_url; |
| 5578 | else |
| 5579 | withval="http://llvm.org/bugs/" |
| 5580 | fi |
| 5581 | |
| 5582 | |
| 5583 | cat >>confdefs.h <<_ACEOF |
| 5584 | #define BUG_REPORT_URL "$withval" |
| 5585 | _ACEOF |
| 5586 | |
| 5587 | |
| 5588 | # Check whether --enable-libffi was given. |
| 5589 | if test "${enable_libffi+set}" = set; then |
| 5590 | enableval=$enable_libffi; case "$enableval" in |
| 5591 | yes) llvm_cv_enable_libffi="yes" ;; |
| 5592 | no) llvm_cv_enable_libffi="no" ;; |
| 5593 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 |
| 5594 | echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} |
| 5595 | { (exit 1); exit 1; }; } ;; |
| 5596 | esac |
| 5597 | else |
| 5598 | llvm_cv_enable_libffi=no |
| 5599 | fi |
| 5600 | |
| 5601 | |
| 5602 | |
| 5603 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 5604 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 5605 | if test "${lt_cv_path_NM+set}" = set; then |
| 5606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5607 | else |
| 5608 | if test -n "$NM"; then |
| 5609 | # Let the user override the test. |
| 5610 | lt_cv_path_NM="$NM" |
| 5611 | else |
| 5612 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 5613 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5614 | lt_nm_to_check="$lt_nm_to_check nm" |
| 5615 | fi |
| 5616 | for lt_tmp_nm in $lt_nm_to_check; do |
| 5617 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5618 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5619 | IFS="$lt_save_ifs" |
| 5620 | test -z "$ac_dir" && ac_dir=. |
| 5621 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 5622 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 5623 | # Check to see if the nm accepts a BSD-compat flag. |
| 5624 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 5625 | # nm: unknown option "B" ignored |
| 5626 | # Tru64's nm complains that /dev/null is an invalid object file |
| 5627 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 5628 | */dev/null* | *'Invalid file or object type'*) |
| 5629 | lt_cv_path_NM="$tmp_nm -B" |
| 5630 | break |
| 5631 | ;; |
| 5632 | *) |
| 5633 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 5634 | */dev/null*) |
| 5635 | lt_cv_path_NM="$tmp_nm -p" |
| 5636 | break |
| 5637 | ;; |
| 5638 | *) |
| 5639 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5640 | continue # so that we can try to find one that supports BSD flags |
| 5641 | ;; |
| 5642 | esac |
| 5643 | ;; |
| 5644 | esac |
| 5645 | fi |
| 5646 | done |
| 5647 | IFS="$lt_save_ifs" |
| 5648 | done |
| 5649 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 5650 | fi |
| 5651 | fi |
| 5652 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 5653 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
| 5654 | NM="$lt_cv_path_NM" |
| 5655 | |
| 5656 | |
| 5657 | |
| 5658 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 5659 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 5660 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 5661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5662 | else |
| 5663 | llvm_cv_gnu_make_command='' |
| 5664 | for a in "$MAKE" make gmake gnumake ; do |
| 5665 | if test -z "$a" ; then continue ; fi ; |
| 5666 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 5667 | then |
| 5668 | llvm_cv_gnu_make_command=$a ; |
| 5669 | break; |
| 5670 | fi |
| 5671 | done |
| 5672 | fi |
| 5673 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 5674 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
| 5675 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 5676 | ifGNUmake='' ; |
| 5677 | else |
| 5678 | ifGNUmake='#' ; |
| 5679 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 5680 | echo "${ECHO_T}\"Not found\"" >&6; }; |
| 5681 | fi |
| 5682 | |
| 5683 | |
| 5684 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 5685 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
| 5686 | LN_S=$as_ln_s |
| 5687 | if test "$LN_S" = "ln -s"; then |
| 5688 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 5689 | echo "${ECHO_T}yes" >&6; } |
| 5690 | else |
| 5691 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 5692 | echo "${ECHO_T}no, using $LN_S" >&6; } |
| 5693 | fi |
| 5694 | |
| 5695 | # Extract the first word of "cmp", so it can be a program name with args. |
| 5696 | set dummy cmp; ac_word=$2 |
| 5697 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5698 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5699 | if test "${ac_cv_path_CMP+set}" = set; then |
| 5700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5701 | else |
| 5702 | case $CMP in |
| 5703 | [\\/]* | ?:[\\/]*) |
| 5704 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 5705 | ;; |
| 5706 | *) |
| 5707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5708 | for as_dir in $PATH |
| 5709 | do |
| 5710 | IFS=$as_save_IFS |
| 5711 | test -z "$as_dir" && as_dir=. |
| 5712 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5713 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5714 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
| 5715 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5716 | break 2 |
| 5717 | fi |
| 5718 | done |
| 5719 | done |
| 5720 | IFS=$as_save_IFS |
| 5721 | |
| 5722 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 5723 | ;; |
| 5724 | esac |
| 5725 | fi |
| 5726 | CMP=$ac_cv_path_CMP |
| 5727 | if test -n "$CMP"; then |
| 5728 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 5729 | echo "${ECHO_T}$CMP" >&6; } |
| 5730 | else |
| 5731 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5732 | echo "${ECHO_T}no" >&6; } |
| 5733 | fi |
| 5734 | |
| 5735 | |
| 5736 | # Extract the first word of "cp", so it can be a program name with args. |
| 5737 | set dummy cp; ac_word=$2 |
| 5738 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5739 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5740 | if test "${ac_cv_path_CP+set}" = set; then |
| 5741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5742 | else |
| 5743 | case $CP in |
| 5744 | [\\/]* | ?:[\\/]*) |
| 5745 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 5746 | ;; |
| 5747 | *) |
| 5748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5749 | for as_dir in $PATH |
| 5750 | do |
| 5751 | IFS=$as_save_IFS |
| 5752 | test -z "$as_dir" && as_dir=. |
| 5753 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5754 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5755 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 5756 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5757 | break 2 |
| 5758 | fi |
| 5759 | done |
| 5760 | done |
| 5761 | IFS=$as_save_IFS |
| 5762 | |
| 5763 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 5764 | ;; |
| 5765 | esac |
| 5766 | fi |
| 5767 | CP=$ac_cv_path_CP |
| 5768 | if test -n "$CP"; then |
| 5769 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 5770 | echo "${ECHO_T}$CP" >&6; } |
| 5771 | else |
| 5772 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5773 | echo "${ECHO_T}no" >&6; } |
| 5774 | fi |
| 5775 | |
| 5776 | |
| 5777 | # Extract the first word of "date", so it can be a program name with args. |
| 5778 | set dummy date; ac_word=$2 |
| 5779 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5780 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5781 | if test "${ac_cv_path_DATE+set}" = set; then |
| 5782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5783 | else |
| 5784 | case $DATE in |
| 5785 | [\\/]* | ?:[\\/]*) |
| 5786 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 5787 | ;; |
| 5788 | *) |
| 5789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5790 | for as_dir in $PATH |
| 5791 | do |
| 5792 | IFS=$as_save_IFS |
| 5793 | test -z "$as_dir" && as_dir=. |
| 5794 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5795 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5796 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 5797 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5798 | break 2 |
| 5799 | fi |
| 5800 | done |
| 5801 | done |
| 5802 | IFS=$as_save_IFS |
| 5803 | |
| 5804 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 5805 | ;; |
| 5806 | esac |
| 5807 | fi |
| 5808 | DATE=$ac_cv_path_DATE |
| 5809 | if test -n "$DATE"; then |
| 5810 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 5811 | echo "${ECHO_T}$DATE" >&6; } |
| 5812 | else |
| 5813 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5814 | echo "${ECHO_T}no" >&6; } |
| 5815 | fi |
| 5816 | |
| 5817 | |
| 5818 | # Extract the first word of "find", so it can be a program name with args. |
| 5819 | set dummy find; ac_word=$2 |
| 5820 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5821 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5822 | if test "${ac_cv_path_FIND+set}" = set; then |
| 5823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5824 | else |
| 5825 | case $FIND in |
| 5826 | [\\/]* | ?:[\\/]*) |
| 5827 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 5828 | ;; |
| 5829 | *) |
| 5830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5831 | for as_dir in $PATH |
| 5832 | do |
| 5833 | IFS=$as_save_IFS |
| 5834 | test -z "$as_dir" && as_dir=. |
| 5835 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5836 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5837 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
| 5838 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5839 | break 2 |
| 5840 | fi |
| 5841 | done |
| 5842 | done |
| 5843 | IFS=$as_save_IFS |
| 5844 | |
| 5845 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 5846 | ;; |
| 5847 | esac |
| 5848 | fi |
| 5849 | FIND=$ac_cv_path_FIND |
| 5850 | if test -n "$FIND"; then |
| 5851 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 5852 | echo "${ECHO_T}$FIND" >&6; } |
| 5853 | else |
| 5854 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5855 | echo "${ECHO_T}no" >&6; } |
| 5856 | fi |
| 5857 | |
| 5858 | |
| 5859 | # Extract the first word of "grep", so it can be a program name with args. |
| 5860 | set dummy grep; ac_word=$2 |
| 5861 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5862 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5863 | if test "${ac_cv_path_GREP+set}" = set; then |
| 5864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5865 | else |
| 5866 | case $GREP in |
| 5867 | [\\/]* | ?:[\\/]*) |
| 5868 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 5869 | ;; |
| 5870 | *) |
| 5871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5872 | for as_dir in $PATH |
| 5873 | do |
| 5874 | IFS=$as_save_IFS |
| 5875 | test -z "$as_dir" && as_dir=. |
| 5876 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5877 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5878 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 5879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5880 | break 2 |
| 5881 | fi |
| 5882 | done |
| 5883 | done |
| 5884 | IFS=$as_save_IFS |
| 5885 | |
| 5886 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 5887 | ;; |
| 5888 | esac |
| 5889 | fi |
| 5890 | GREP=$ac_cv_path_GREP |
| 5891 | if test -n "$GREP"; then |
| 5892 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 5893 | echo "${ECHO_T}$GREP" >&6; } |
| 5894 | else |
| 5895 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5896 | echo "${ECHO_T}no" >&6; } |
| 5897 | fi |
| 5898 | |
| 5899 | |
| 5900 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 5901 | set dummy mkdir; ac_word=$2 |
| 5902 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5903 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5904 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 5905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5906 | else |
| 5907 | case $MKDIR in |
| 5908 | [\\/]* | ?:[\\/]*) |
| 5909 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 5910 | ;; |
| 5911 | *) |
| 5912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5913 | for as_dir in $PATH |
| 5914 | do |
| 5915 | IFS=$as_save_IFS |
| 5916 | test -z "$as_dir" && as_dir=. |
| 5917 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5918 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5919 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 5920 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5921 | break 2 |
| 5922 | fi |
| 5923 | done |
| 5924 | done |
| 5925 | IFS=$as_save_IFS |
| 5926 | |
| 5927 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 5928 | ;; |
| 5929 | esac |
| 5930 | fi |
| 5931 | MKDIR=$ac_cv_path_MKDIR |
| 5932 | if test -n "$MKDIR"; then |
| 5933 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 5934 | echo "${ECHO_T}$MKDIR" >&6; } |
| 5935 | else |
| 5936 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5937 | echo "${ECHO_T}no" >&6; } |
| 5938 | fi |
| 5939 | |
| 5940 | |
| 5941 | # Extract the first word of "mv", so it can be a program name with args. |
| 5942 | set dummy mv; ac_word=$2 |
| 5943 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5944 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5945 | if test "${ac_cv_path_MV+set}" = set; then |
| 5946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5947 | else |
| 5948 | case $MV in |
| 5949 | [\\/]* | ?:[\\/]*) |
| 5950 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 5951 | ;; |
| 5952 | *) |
| 5953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5954 | for as_dir in $PATH |
| 5955 | do |
| 5956 | IFS=$as_save_IFS |
| 5957 | test -z "$as_dir" && as_dir=. |
| 5958 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5959 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5960 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 5961 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5962 | break 2 |
| 5963 | fi |
| 5964 | done |
| 5965 | done |
| 5966 | IFS=$as_save_IFS |
| 5967 | |
| 5968 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 5969 | ;; |
| 5970 | esac |
| 5971 | fi |
| 5972 | MV=$ac_cv_path_MV |
| 5973 | if test -n "$MV"; then |
| 5974 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 5975 | echo "${ECHO_T}$MV" >&6; } |
| 5976 | else |
| 5977 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5978 | echo "${ECHO_T}no" >&6; } |
| 5979 | fi |
| 5980 | |
| 5981 | |
| 5982 | if test -n "$ac_tool_prefix"; then |
| 5983 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5984 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5985 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5986 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5987 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 5988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5989 | else |
| 5990 | if test -n "$RANLIB"; then |
| 5991 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5992 | else |
| 5993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5994 | for as_dir in $PATH |
| 5995 | do |
| 5996 | IFS=$as_save_IFS |
| 5997 | test -z "$as_dir" && as_dir=. |
| 5998 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5999 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6000 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6001 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6002 | break 2 |
| 6003 | fi |
| 6004 | done |
| 6005 | done |
| 6006 | IFS=$as_save_IFS |
| 6007 | |
| 6008 | fi |
| 6009 | fi |
| 6010 | RANLIB=$ac_cv_prog_RANLIB |
| 6011 | if test -n "$RANLIB"; then |
| 6012 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6013 | echo "${ECHO_T}$RANLIB" >&6; } |
| 6014 | else |
| 6015 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6016 | echo "${ECHO_T}no" >&6; } |
| 6017 | fi |
| 6018 | |
| 6019 | |
| 6020 | fi |
| 6021 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6022 | ac_ct_RANLIB=$RANLIB |
| 6023 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6024 | set dummy ranlib; ac_word=$2 |
| 6025 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6027 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6029 | else |
| 6030 | if test -n "$ac_ct_RANLIB"; then |
| 6031 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6032 | else |
| 6033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6034 | for as_dir in $PATH |
| 6035 | do |
| 6036 | IFS=$as_save_IFS |
| 6037 | test -z "$as_dir" && as_dir=. |
| 6038 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6039 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6040 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6041 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6042 | break 2 |
| 6043 | fi |
| 6044 | done |
| 6045 | done |
| 6046 | IFS=$as_save_IFS |
| 6047 | |
| 6048 | fi |
| 6049 | fi |
| 6050 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6051 | if test -n "$ac_ct_RANLIB"; then |
| 6052 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6053 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 6054 | else |
| 6055 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6056 | echo "${ECHO_T}no" >&6; } |
| 6057 | fi |
| 6058 | |
| 6059 | if test "x$ac_ct_RANLIB" = x; then |
| 6060 | RANLIB=":" |
| 6061 | else |
| 6062 | case $cross_compiling:$ac_tool_warned in |
| 6063 | yes:) |
| 6064 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6065 | whose name does not start with the host triplet. If you think this |
| 6066 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6067 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6068 | whose name does not start with the host triplet. If you think this |
| 6069 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6070 | ac_tool_warned=yes ;; |
| 6071 | esac |
| 6072 | RANLIB=$ac_ct_RANLIB |
| 6073 | fi |
| 6074 | else |
| 6075 | RANLIB="$ac_cv_prog_RANLIB" |
| 6076 | fi |
| 6077 | |
| 6078 | if test -n "$ac_tool_prefix"; then |
| 6079 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6080 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 6081 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6082 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6083 | if test "${ac_cv_prog_AR+set}" = set; then |
| 6084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6085 | else |
| 6086 | if test -n "$AR"; then |
| 6087 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6088 | else |
| 6089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6090 | for as_dir in $PATH |
| 6091 | do |
| 6092 | IFS=$as_save_IFS |
| 6093 | test -z "$as_dir" && as_dir=. |
| 6094 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6095 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6096 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 6097 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6098 | break 2 |
| 6099 | fi |
| 6100 | done |
| 6101 | done |
| 6102 | IFS=$as_save_IFS |
| 6103 | |
| 6104 | fi |
| 6105 | fi |
| 6106 | AR=$ac_cv_prog_AR |
| 6107 | if test -n "$AR"; then |
| 6108 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 6109 | echo "${ECHO_T}$AR" >&6; } |
| 6110 | else |
| 6111 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6112 | echo "${ECHO_T}no" >&6; } |
| 6113 | fi |
| 6114 | |
| 6115 | |
| 6116 | fi |
| 6117 | if test -z "$ac_cv_prog_AR"; then |
| 6118 | ac_ct_AR=$AR |
| 6119 | # Extract the first word of "ar", so it can be a program name with args. |
| 6120 | set dummy ar; ac_word=$2 |
| 6121 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6122 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6123 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 6124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6125 | else |
| 6126 | if test -n "$ac_ct_AR"; then |
| 6127 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6128 | else |
| 6129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6130 | for as_dir in $PATH |
| 6131 | do |
| 6132 | IFS=$as_save_IFS |
| 6133 | test -z "$as_dir" && as_dir=. |
| 6134 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6135 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6136 | ac_cv_prog_ac_ct_AR="ar" |
| 6137 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6138 | break 2 |
| 6139 | fi |
| 6140 | done |
| 6141 | done |
| 6142 | IFS=$as_save_IFS |
| 6143 | |
| 6144 | fi |
| 6145 | fi |
| 6146 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6147 | if test -n "$ac_ct_AR"; then |
| 6148 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 6149 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
| 6150 | else |
| 6151 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6152 | echo "${ECHO_T}no" >&6; } |
| 6153 | fi |
| 6154 | |
| 6155 | if test "x$ac_ct_AR" = x; then |
| 6156 | AR="false" |
| 6157 | else |
| 6158 | case $cross_compiling:$ac_tool_warned in |
| 6159 | yes:) |
| 6160 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6161 | whose name does not start with the host triplet. If you think this |
| 6162 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6163 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6164 | whose name does not start with the host triplet. If you think this |
| 6165 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6166 | ac_tool_warned=yes ;; |
| 6167 | esac |
| 6168 | AR=$ac_ct_AR |
| 6169 | fi |
| 6170 | else |
| 6171 | AR="$ac_cv_prog_AR" |
| 6172 | fi |
| 6173 | |
| 6174 | # Extract the first word of "rm", so it can be a program name with args. |
| 6175 | set dummy rm; ac_word=$2 |
| 6176 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6177 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6178 | if test "${ac_cv_path_RM+set}" = set; then |
| 6179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6180 | else |
| 6181 | case $RM in |
| 6182 | [\\/]* | ?:[\\/]*) |
| 6183 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 6184 | ;; |
| 6185 | *) |
| 6186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6187 | for as_dir in $PATH |
| 6188 | do |
| 6189 | IFS=$as_save_IFS |
| 6190 | test -z "$as_dir" && as_dir=. |
| 6191 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6192 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6193 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 6194 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6195 | break 2 |
| 6196 | fi |
| 6197 | done |
| 6198 | done |
| 6199 | IFS=$as_save_IFS |
| 6200 | |
| 6201 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 6202 | ;; |
| 6203 | esac |
| 6204 | fi |
| 6205 | RM=$ac_cv_path_RM |
| 6206 | if test -n "$RM"; then |
| 6207 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 6208 | echo "${ECHO_T}$RM" >&6; } |
| 6209 | else |
| 6210 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6211 | echo "${ECHO_T}no" >&6; } |
| 6212 | fi |
| 6213 | |
| 6214 | |
| 6215 | # Extract the first word of "sed", so it can be a program name with args. |
| 6216 | set dummy sed; ac_word=$2 |
| 6217 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6218 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6219 | if test "${ac_cv_path_SED+set}" = set; then |
| 6220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6221 | else |
| 6222 | case $SED in |
| 6223 | [\\/]* | ?:[\\/]*) |
| 6224 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 6225 | ;; |
| 6226 | *) |
| 6227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6228 | for as_dir in $PATH |
| 6229 | do |
| 6230 | IFS=$as_save_IFS |
| 6231 | test -z "$as_dir" && as_dir=. |
| 6232 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6233 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6234 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 6235 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6236 | break 2 |
| 6237 | fi |
| 6238 | done |
| 6239 | done |
| 6240 | IFS=$as_save_IFS |
| 6241 | |
| 6242 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 6243 | ;; |
| 6244 | esac |
| 6245 | fi |
| 6246 | SED=$ac_cv_path_SED |
| 6247 | if test -n "$SED"; then |
| 6248 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 6249 | echo "${ECHO_T}$SED" >&6; } |
| 6250 | else |
| 6251 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6252 | echo "${ECHO_T}no" >&6; } |
| 6253 | fi |
| 6254 | |
| 6255 | |
| 6256 | # Extract the first word of "tar", so it can be a program name with args. |
| 6257 | set dummy tar; ac_word=$2 |
| 6258 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6259 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6260 | if test "${ac_cv_path_TAR+set}" = set; then |
| 6261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6262 | else |
| 6263 | case $TAR in |
| 6264 | [\\/]* | ?:[\\/]*) |
| 6265 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 6266 | ;; |
| 6267 | *) |
| 6268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6269 | for as_dir in $PATH |
| 6270 | do |
| 6271 | IFS=$as_save_IFS |
| 6272 | test -z "$as_dir" && as_dir=. |
| 6273 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6274 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6275 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 6276 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6277 | break 2 |
| 6278 | fi |
| 6279 | done |
| 6280 | done |
| 6281 | IFS=$as_save_IFS |
| 6282 | |
| 6283 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 6284 | ;; |
| 6285 | esac |
| 6286 | fi |
| 6287 | TAR=$ac_cv_path_TAR |
| 6288 | if test -n "$TAR"; then |
| 6289 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 6290 | echo "${ECHO_T}$TAR" >&6; } |
| 6291 | else |
| 6292 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6293 | echo "${ECHO_T}no" >&6; } |
| 6294 | fi |
| 6295 | |
| 6296 | |
| 6297 | # Extract the first word of "pwd", so it can be a program name with args. |
| 6298 | set dummy pwd; ac_word=$2 |
| 6299 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6300 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6301 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 6302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6303 | else |
| 6304 | case $BINPWD in |
| 6305 | [\\/]* | ?:[\\/]*) |
| 6306 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 6307 | ;; |
| 6308 | *) |
| 6309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6310 | for as_dir in $PATH |
| 6311 | do |
| 6312 | IFS=$as_save_IFS |
| 6313 | test -z "$as_dir" && as_dir=. |
| 6314 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6315 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6316 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
| 6317 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6318 | break 2 |
| 6319 | fi |
| 6320 | done |
| 6321 | done |
| 6322 | IFS=$as_save_IFS |
| 6323 | |
| 6324 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 6325 | ;; |
| 6326 | esac |
| 6327 | fi |
| 6328 | BINPWD=$ac_cv_path_BINPWD |
| 6329 | if test -n "$BINPWD"; then |
| 6330 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 6331 | echo "${ECHO_T}$BINPWD" >&6; } |
| 6332 | else |
| 6333 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6334 | echo "${ECHO_T}no" >&6; } |
| 6335 | fi |
| 6336 | |
| 6337 | |
| 6338 | |
| 6339 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 6340 | set dummy Graphviz; ac_word=$2 |
| 6341 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6342 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6343 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 6344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6345 | else |
| 6346 | case $GRAPHVIZ in |
| 6347 | [\\/]* | ?:[\\/]*) |
| 6348 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 6349 | ;; |
| 6350 | *) |
| 6351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6352 | for as_dir in $PATH |
| 6353 | do |
| 6354 | IFS=$as_save_IFS |
| 6355 | test -z "$as_dir" && as_dir=. |
| 6356 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6357 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6358 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
| 6359 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6360 | break 2 |
| 6361 | fi |
| 6362 | done |
| 6363 | done |
| 6364 | IFS=$as_save_IFS |
| 6365 | |
| 6366 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 6367 | ;; |
| 6368 | esac |
| 6369 | fi |
| 6370 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 6371 | if test -n "$GRAPHVIZ"; then |
| 6372 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 6373 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
| 6374 | else |
| 6375 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6376 | echo "${ECHO_T}no" >&6; } |
| 6377 | fi |
| 6378 | |
| 6379 | |
| 6380 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 6381 | |
| 6382 | cat >>confdefs.h <<\_ACEOF |
| 6383 | #define HAVE_GRAPHVIZ 1 |
| 6384 | _ACEOF |
| 6385 | |
| 6386 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6387 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6388 | fi |
| 6389 | |
| 6390 | cat >>confdefs.h <<_ACEOF |
| 6391 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 6392 | _ACEOF |
| 6393 | |
| 6394 | fi |
| 6395 | # Extract the first word of "dot", so it can be a program name with args. |
| 6396 | set dummy dot; ac_word=$2 |
| 6397 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6398 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6399 | if test "${ac_cv_path_DOT+set}" = set; then |
| 6400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6401 | else |
| 6402 | case $DOT in |
| 6403 | [\\/]* | ?:[\\/]*) |
| 6404 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 6405 | ;; |
| 6406 | *) |
| 6407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6408 | for as_dir in $PATH |
| 6409 | do |
| 6410 | IFS=$as_save_IFS |
| 6411 | test -z "$as_dir" && as_dir=. |
| 6412 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6413 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6414 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 6415 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6416 | break 2 |
| 6417 | fi |
| 6418 | done |
| 6419 | done |
| 6420 | IFS=$as_save_IFS |
| 6421 | |
| 6422 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 6423 | ;; |
| 6424 | esac |
| 6425 | fi |
| 6426 | DOT=$ac_cv_path_DOT |
| 6427 | if test -n "$DOT"; then |
| 6428 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 6429 | echo "${ECHO_T}$DOT" >&6; } |
| 6430 | else |
| 6431 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6432 | echo "${ECHO_T}no" >&6; } |
| 6433 | fi |
| 6434 | |
| 6435 | |
| 6436 | if test "$DOT" != "echo dot" ; then |
| 6437 | |
| 6438 | cat >>confdefs.h <<\_ACEOF |
| 6439 | #define HAVE_DOT 1 |
| 6440 | _ACEOF |
| 6441 | |
| 6442 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6443 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6444 | fi |
| 6445 | |
| 6446 | cat >>confdefs.h <<_ACEOF |
| 6447 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 6448 | _ACEOF |
| 6449 | |
| 6450 | fi |
| 6451 | # Extract the first word of "fdp", so it can be a program name with args. |
| 6452 | set dummy fdp; ac_word=$2 |
| 6453 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6454 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6455 | if test "${ac_cv_path_FDP+set}" = set; then |
| 6456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6457 | else |
| 6458 | case $FDP in |
| 6459 | [\\/]* | ?:[\\/]*) |
| 6460 | ac_cv_path_FDP="$FDP" # Let the user override the test with a path. |
| 6461 | ;; |
| 6462 | *) |
| 6463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6464 | for as_dir in $PATH |
| 6465 | do |
| 6466 | IFS=$as_save_IFS |
| 6467 | test -z "$as_dir" && as_dir=. |
| 6468 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6469 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6470 | ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" |
| 6471 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6472 | break 2 |
| 6473 | fi |
| 6474 | done |
| 6475 | done |
| 6476 | IFS=$as_save_IFS |
| 6477 | |
| 6478 | test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" |
| 6479 | ;; |
| 6480 | esac |
| 6481 | fi |
| 6482 | FDP=$ac_cv_path_FDP |
| 6483 | if test -n "$FDP"; then |
| 6484 | { echo "$as_me:$LINENO: result: $FDP" >&5 |
| 6485 | echo "${ECHO_T}$FDP" >&6; } |
| 6486 | else |
| 6487 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6488 | echo "${ECHO_T}no" >&6; } |
| 6489 | fi |
| 6490 | |
| 6491 | |
| 6492 | if test "$FDP" != "echo fdp" ; then |
| 6493 | |
| 6494 | cat >>confdefs.h <<\_ACEOF |
| 6495 | #define HAVE_FDP 1 |
| 6496 | _ACEOF |
| 6497 | |
| 6498 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6499 | FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6500 | fi |
| 6501 | |
| 6502 | cat >>confdefs.h <<_ACEOF |
| 6503 | #define LLVM_PATH_FDP "$FDP${EXEEXT}" |
| 6504 | _ACEOF |
| 6505 | |
| 6506 | fi |
| 6507 | # Extract the first word of "neato", so it can be a program name with args. |
| 6508 | set dummy neato; ac_word=$2 |
| 6509 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6510 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6511 | if test "${ac_cv_path_NEATO+set}" = set; then |
| 6512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6513 | else |
| 6514 | case $NEATO in |
| 6515 | [\\/]* | ?:[\\/]*) |
| 6516 | ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. |
| 6517 | ;; |
| 6518 | *) |
| 6519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6520 | for as_dir in $PATH |
| 6521 | do |
| 6522 | IFS=$as_save_IFS |
| 6523 | test -z "$as_dir" && as_dir=. |
| 6524 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6525 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6526 | ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" |
| 6527 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6528 | break 2 |
| 6529 | fi |
| 6530 | done |
| 6531 | done |
| 6532 | IFS=$as_save_IFS |
| 6533 | |
| 6534 | test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" |
| 6535 | ;; |
| 6536 | esac |
| 6537 | fi |
| 6538 | NEATO=$ac_cv_path_NEATO |
| 6539 | if test -n "$NEATO"; then |
| 6540 | { echo "$as_me:$LINENO: result: $NEATO" >&5 |
| 6541 | echo "${ECHO_T}$NEATO" >&6; } |
| 6542 | else |
| 6543 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6544 | echo "${ECHO_T}no" >&6; } |
| 6545 | fi |
| 6546 | |
| 6547 | |
| 6548 | if test "$NEATO" != "echo neato" ; then |
| 6549 | |
| 6550 | cat >>confdefs.h <<\_ACEOF |
| 6551 | #define HAVE_NEATO 1 |
| 6552 | _ACEOF |
| 6553 | |
| 6554 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6555 | NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6556 | fi |
| 6557 | |
| 6558 | cat >>confdefs.h <<_ACEOF |
| 6559 | #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" |
| 6560 | _ACEOF |
| 6561 | |
| 6562 | fi |
| 6563 | # Extract the first word of "twopi", so it can be a program name with args. |
| 6564 | set dummy twopi; ac_word=$2 |
| 6565 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6566 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6567 | if test "${ac_cv_path_TWOPI+set}" = set; then |
| 6568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6569 | else |
| 6570 | case $TWOPI in |
| 6571 | [\\/]* | ?:[\\/]*) |
| 6572 | ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. |
| 6573 | ;; |
| 6574 | *) |
| 6575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6576 | for as_dir in $PATH |
| 6577 | do |
| 6578 | IFS=$as_save_IFS |
| 6579 | test -z "$as_dir" && as_dir=. |
| 6580 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6581 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6582 | ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" |
| 6583 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6584 | break 2 |
| 6585 | fi |
| 6586 | done |
| 6587 | done |
| 6588 | IFS=$as_save_IFS |
| 6589 | |
| 6590 | test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" |
| 6591 | ;; |
| 6592 | esac |
| 6593 | fi |
| 6594 | TWOPI=$ac_cv_path_TWOPI |
| 6595 | if test -n "$TWOPI"; then |
| 6596 | { echo "$as_me:$LINENO: result: $TWOPI" >&5 |
| 6597 | echo "${ECHO_T}$TWOPI" >&6; } |
| 6598 | else |
| 6599 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6600 | echo "${ECHO_T}no" >&6; } |
| 6601 | fi |
| 6602 | |
| 6603 | |
| 6604 | if test "$TWOPI" != "echo twopi" ; then |
| 6605 | |
| 6606 | cat >>confdefs.h <<\_ACEOF |
| 6607 | #define HAVE_TWOPI 1 |
| 6608 | _ACEOF |
| 6609 | |
| 6610 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6611 | TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6612 | fi |
| 6613 | |
| 6614 | cat >>confdefs.h <<_ACEOF |
| 6615 | #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" |
| 6616 | _ACEOF |
| 6617 | |
| 6618 | fi |
| 6619 | # Extract the first word of "circo", so it can be a program name with args. |
| 6620 | set dummy circo; ac_word=$2 |
| 6621 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6622 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6623 | if test "${ac_cv_path_CIRCO+set}" = set; then |
| 6624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6625 | else |
| 6626 | case $CIRCO in |
| 6627 | [\\/]* | ?:[\\/]*) |
| 6628 | ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. |
| 6629 | ;; |
| 6630 | *) |
| 6631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6632 | for as_dir in $PATH |
| 6633 | do |
| 6634 | IFS=$as_save_IFS |
| 6635 | test -z "$as_dir" && as_dir=. |
| 6636 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6637 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6638 | ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" |
| 6639 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6640 | break 2 |
| 6641 | fi |
| 6642 | done |
| 6643 | done |
| 6644 | IFS=$as_save_IFS |
| 6645 | |
| 6646 | test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" |
| 6647 | ;; |
| 6648 | esac |
| 6649 | fi |
| 6650 | CIRCO=$ac_cv_path_CIRCO |
| 6651 | if test -n "$CIRCO"; then |
| 6652 | { echo "$as_me:$LINENO: result: $CIRCO" >&5 |
| 6653 | echo "${ECHO_T}$CIRCO" >&6; } |
| 6654 | else |
| 6655 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6656 | echo "${ECHO_T}no" >&6; } |
| 6657 | fi |
| 6658 | |
| 6659 | |
| 6660 | if test "$CIRCO" != "echo circo" ; then |
| 6661 | |
| 6662 | cat >>confdefs.h <<\_ACEOF |
| 6663 | #define HAVE_CIRCO 1 |
| 6664 | _ACEOF |
| 6665 | |
| 6666 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6667 | CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6668 | fi |
| 6669 | |
| 6670 | cat >>confdefs.h <<_ACEOF |
| 6671 | #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" |
| 6672 | _ACEOF |
| 6673 | |
| 6674 | fi |
| 6675 | for ac_prog in gv gsview32 |
| 6676 | do |
| 6677 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6678 | set dummy $ac_prog; ac_word=$2 |
| 6679 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6681 | if test "${ac_cv_path_GV+set}" = set; then |
| 6682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6683 | else |
| 6684 | case $GV in |
| 6685 | [\\/]* | ?:[\\/]*) |
| 6686 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 6687 | ;; |
| 6688 | *) |
| 6689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6690 | for as_dir in $PATH |
| 6691 | do |
| 6692 | IFS=$as_save_IFS |
| 6693 | test -z "$as_dir" && as_dir=. |
| 6694 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6695 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6696 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
| 6697 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6698 | break 2 |
| 6699 | fi |
| 6700 | done |
| 6701 | done |
| 6702 | IFS=$as_save_IFS |
| 6703 | |
| 6704 | ;; |
| 6705 | esac |
| 6706 | fi |
| 6707 | GV=$ac_cv_path_GV |
| 6708 | if test -n "$GV"; then |
| 6709 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 6710 | echo "${ECHO_T}$GV" >&6; } |
| 6711 | else |
| 6712 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6713 | echo "${ECHO_T}no" >&6; } |
| 6714 | fi |
| 6715 | |
| 6716 | |
| 6717 | test -n "$GV" && break |
| 6718 | done |
| 6719 | test -n "$GV" || GV="echo gv" |
| 6720 | |
| 6721 | if test "$GV" != "echo gv" ; then |
| 6722 | |
| 6723 | cat >>confdefs.h <<\_ACEOF |
| 6724 | #define HAVE_GV 1 |
| 6725 | _ACEOF |
| 6726 | |
| 6727 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6728 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6729 | fi |
| 6730 | |
| 6731 | cat >>confdefs.h <<_ACEOF |
| 6732 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 6733 | _ACEOF |
| 6734 | |
| 6735 | fi |
| 6736 | # Extract the first word of "dotty", so it can be a program name with args. |
| 6737 | set dummy dotty; ac_word=$2 |
| 6738 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6739 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6740 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 6741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6742 | else |
| 6743 | case $DOTTY in |
| 6744 | [\\/]* | ?:[\\/]*) |
| 6745 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 6746 | ;; |
| 6747 | *) |
| 6748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6749 | for as_dir in $PATH |
| 6750 | do |
| 6751 | IFS=$as_save_IFS |
| 6752 | test -z "$as_dir" && as_dir=. |
| 6753 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6754 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6755 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
| 6756 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6757 | break 2 |
| 6758 | fi |
| 6759 | done |
| 6760 | done |
| 6761 | IFS=$as_save_IFS |
| 6762 | |
| 6763 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 6764 | ;; |
| 6765 | esac |
| 6766 | fi |
| 6767 | DOTTY=$ac_cv_path_DOTTY |
| 6768 | if test -n "$DOTTY"; then |
| 6769 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 6770 | echo "${ECHO_T}$DOTTY" >&6; } |
| 6771 | else |
| 6772 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6773 | echo "${ECHO_T}no" >&6; } |
| 6774 | fi |
| 6775 | |
| 6776 | |
| 6777 | if test "$DOTTY" != "echo dotty" ; then |
| 6778 | |
| 6779 | cat >>confdefs.h <<\_ACEOF |
| 6780 | #define HAVE_DOTTY 1 |
| 6781 | _ACEOF |
| 6782 | |
| 6783 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6784 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6785 | fi |
| 6786 | |
| 6787 | cat >>confdefs.h <<_ACEOF |
| 6788 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 6789 | _ACEOF |
| 6790 | |
| 6791 | fi |
| 6792 | # Extract the first word of "xdot.py", so it can be a program name with args. |
| 6793 | set dummy xdot.py; ac_word=$2 |
| 6794 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6795 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6796 | if test "${ac_cv_path_XDOT_PY+set}" = set; then |
| 6797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6798 | else |
| 6799 | case $XDOT_PY in |
| 6800 | [\\/]* | ?:[\\/]*) |
| 6801 | ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. |
| 6802 | ;; |
| 6803 | *) |
| 6804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6805 | for as_dir in $PATH |
| 6806 | do |
| 6807 | IFS=$as_save_IFS |
| 6808 | test -z "$as_dir" && as_dir=. |
| 6809 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6810 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6811 | ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" |
| 6812 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6813 | break 2 |
| 6814 | fi |
| 6815 | done |
| 6816 | done |
| 6817 | IFS=$as_save_IFS |
| 6818 | |
| 6819 | test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" |
| 6820 | ;; |
| 6821 | esac |
| 6822 | fi |
| 6823 | XDOT_PY=$ac_cv_path_XDOT_PY |
| 6824 | if test -n "$XDOT_PY"; then |
| 6825 | { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 |
| 6826 | echo "${ECHO_T}$XDOT_PY" >&6; } |
| 6827 | else |
| 6828 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6829 | echo "${ECHO_T}no" >&6; } |
| 6830 | fi |
| 6831 | |
| 6832 | |
| 6833 | if test "$XDOT_PY" != "echo xdot.py" ; then |
| 6834 | |
| 6835 | cat >>confdefs.h <<\_ACEOF |
| 6836 | #define HAVE_XDOT_PY 1 |
| 6837 | _ACEOF |
| 6838 | |
| 6839 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 6840 | XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6841 | fi |
| 6842 | |
| 6843 | cat >>confdefs.h <<_ACEOF |
| 6844 | #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" |
| 6845 | _ACEOF |
| 6846 | |
| 6847 | fi |
| 6848 | |
| 6849 | |
| 6850 | # Extract the first word of "perl", so it can be a program name with args. |
| 6851 | set dummy perl; ac_word=$2 |
| 6852 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6853 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6854 | if test "${ac_cv_path_PERL+set}" = set; then |
| 6855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6856 | else |
| 6857 | case $PERL in |
| 6858 | [\\/]* | ?:[\\/]*) |
| 6859 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 6860 | ;; |
| 6861 | *) |
| 6862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6863 | for as_dir in $PATH |
| 6864 | do |
| 6865 | IFS=$as_save_IFS |
| 6866 | test -z "$as_dir" && as_dir=. |
| 6867 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6868 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6869 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 6870 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6871 | break 2 |
| 6872 | fi |
| 6873 | done |
| 6874 | done |
| 6875 | IFS=$as_save_IFS |
| 6876 | |
| 6877 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 6878 | ;; |
| 6879 | esac |
| 6880 | fi |
| 6881 | PERL=$ac_cv_path_PERL |
| 6882 | if test -n "$PERL"; then |
| 6883 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 6884 | echo "${ECHO_T}$PERL" >&6; } |
| 6885 | else |
| 6886 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6887 | echo "${ECHO_T}no" >&6; } |
| 6888 | fi |
| 6889 | |
| 6890 | |
| 6891 | if test "$PERL" != "none"; then |
| 6892 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 6893 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } |
| 6894 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
| 6895 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6896 | echo "${ECHO_T}yes" >&6; } |
| 6897 | else |
| 6898 | PERL=none |
| 6899 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 6900 | echo "${ECHO_T}not found" >&6; } |
| 6901 | fi |
| 6902 | fi |
| 6903 | |
| 6904 | |
| 6905 | if test x"$PERL" = xnone; then |
| 6906 | HAVE_PERL=0 |
| 6907 | |
| 6908 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 6909 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 6910 | { (exit 1); exit 1; }; } |
| 6911 | else |
| 6912 | HAVE_PERL=1 |
| 6913 | |
| 6914 | fi |
| 6915 | |
| 6916 | # Find a good install program. We prefer a C program (faster), |
| 6917 | # so one script is as good as another. But avoid the broken or |
| 6918 | # incompatible versions: |
| 6919 | # SysV /etc/install, /usr/sbin/install |
| 6920 | # SunOS /usr/etc/install |
| 6921 | # IRIX /sbin/install |
| 6922 | # AIX /bin/install |
| 6923 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 6924 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6925 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6926 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 6927 | # OS/2's system install, which has a completely different semantic |
| 6928 | # ./install, which can be erroneously created by make from ./install.sh. |
| 6929 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 6930 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| 6931 | if test -z "$INSTALL"; then |
| 6932 | if test "${ac_cv_path_install+set}" = set; then |
| 6933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6934 | else |
| 6935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6936 | for as_dir in $PATH |
| 6937 | do |
| 6938 | IFS=$as_save_IFS |
| 6939 | test -z "$as_dir" && as_dir=. |
| 6940 | # Account for people who put trailing slashes in PATH elements. |
| 6941 | case $as_dir/ in |
| 6942 | ./ | .// | /cC/* | \ |
| 6943 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 6944 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 6945 | /usr/ucb/* ) ;; |
| 6946 | *) |
| 6947 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 6948 | # Don't use installbsd from OSF since it installs stuff as root |
| 6949 | # by default. |
| 6950 | for ac_prog in ginstall scoinst install; do |
| 6951 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6952 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 6953 | if test $ac_prog = install && |
| 6954 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6955 | # AIX install. It has an incompatible calling convention. |
| 6956 | : |
| 6957 | elif test $ac_prog = install && |
| 6958 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6959 | # program-specific install script used by HP pwplus--don't use. |
| 6960 | : |
| 6961 | else |
| 6962 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 6963 | break 3 |
| 6964 | fi |
| 6965 | fi |
| 6966 | done |
| 6967 | done |
| 6968 | ;; |
| 6969 | esac |
| 6970 | done |
| 6971 | IFS=$as_save_IFS |
| 6972 | |
| 6973 | |
| 6974 | fi |
| 6975 | if test "${ac_cv_path_install+set}" = set; then |
| 6976 | INSTALL=$ac_cv_path_install |
| 6977 | else |
| 6978 | # As a last resort, use the slow shell script. Don't cache a |
| 6979 | # value for INSTALL within a source directory, because that will |
| 6980 | # break other packages using the cache if that directory is |
| 6981 | # removed, or if the value is a relative name. |
| 6982 | INSTALL=$ac_install_sh |
| 6983 | fi |
| 6984 | fi |
| 6985 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 6986 | echo "${ECHO_T}$INSTALL" >&6; } |
| 6987 | |
| 6988 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 6989 | # It thinks the first close brace ends the variable substitution. |
| 6990 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 6991 | |
| 6992 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 6993 | |
| 6994 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 6995 | |
| 6996 | case "$INSTALL" in |
| 6997 | [\\/$]* | ?:[\\/]* ) ;; |
| 6998 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 6999 | esac |
| 7000 | |
| 7001 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7002 | set dummy bzip2; ac_word=$2 |
| 7003 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7004 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7005 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7007 | else |
| 7008 | case $BZIP2 in |
| 7009 | [\\/]* | ?:[\\/]*) |
| 7010 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7011 | ;; |
| 7012 | *) |
| 7013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7014 | for as_dir in $PATH |
| 7015 | do |
| 7016 | IFS=$as_save_IFS |
| 7017 | test -z "$as_dir" && as_dir=. |
| 7018 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7019 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7020 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
| 7021 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7022 | break 2 |
| 7023 | fi |
| 7024 | done |
| 7025 | done |
| 7026 | IFS=$as_save_IFS |
| 7027 | |
| 7028 | ;; |
| 7029 | esac |
| 7030 | fi |
| 7031 | BZIP2=$ac_cv_path_BZIP2 |
| 7032 | if test -n "$BZIP2"; then |
| 7033 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7034 | echo "${ECHO_T}$BZIP2" >&6; } |
| 7035 | else |
| 7036 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7037 | echo "${ECHO_T}no" >&6; } |
| 7038 | fi |
| 7039 | |
| 7040 | |
| 7041 | # Extract the first word of "cat", so it can be a program name with args. |
| 7042 | set dummy cat; ac_word=$2 |
| 7043 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7044 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7045 | if test "${ac_cv_path_CAT+set}" = set; then |
| 7046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7047 | else |
| 7048 | case $CAT in |
| 7049 | [\\/]* | ?:[\\/]*) |
| 7050 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
| 7051 | ;; |
| 7052 | *) |
| 7053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7054 | for as_dir in $PATH |
| 7055 | do |
| 7056 | IFS=$as_save_IFS |
| 7057 | test -z "$as_dir" && as_dir=. |
| 7058 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7059 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7060 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" |
| 7061 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7062 | break 2 |
| 7063 | fi |
| 7064 | done |
| 7065 | done |
| 7066 | IFS=$as_save_IFS |
| 7067 | |
| 7068 | ;; |
| 7069 | esac |
| 7070 | fi |
| 7071 | CAT=$ac_cv_path_CAT |
| 7072 | if test -n "$CAT"; then |
| 7073 | { echo "$as_me:$LINENO: result: $CAT" >&5 |
| 7074 | echo "${ECHO_T}$CAT" >&6; } |
| 7075 | else |
| 7076 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7077 | echo "${ECHO_T}no" >&6; } |
| 7078 | fi |
| 7079 | |
| 7080 | |
| 7081 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7082 | set dummy doxygen; ac_word=$2 |
| 7083 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7084 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7085 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7087 | else |
| 7088 | case $DOXYGEN in |
| 7089 | [\\/]* | ?:[\\/]*) |
| 7090 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7091 | ;; |
| 7092 | *) |
| 7093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7094 | for as_dir in $PATH |
| 7095 | do |
| 7096 | IFS=$as_save_IFS |
| 7097 | test -z "$as_dir" && as_dir=. |
| 7098 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7099 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7100 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 7101 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7102 | break 2 |
| 7103 | fi |
| 7104 | done |
| 7105 | done |
| 7106 | IFS=$as_save_IFS |
| 7107 | |
| 7108 | ;; |
| 7109 | esac |
| 7110 | fi |
| 7111 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7112 | if test -n "$DOXYGEN"; then |
| 7113 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7114 | echo "${ECHO_T}$DOXYGEN" >&6; } |
| 7115 | else |
| 7116 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7117 | echo "${ECHO_T}no" >&6; } |
| 7118 | fi |
| 7119 | |
| 7120 | |
| 7121 | # Extract the first word of "groff", so it can be a program name with args. |
| 7122 | set dummy groff; ac_word=$2 |
| 7123 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7124 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7125 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7127 | else |
| 7128 | case $GROFF in |
| 7129 | [\\/]* | ?:[\\/]*) |
| 7130 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7131 | ;; |
| 7132 | *) |
| 7133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7134 | for as_dir in $PATH |
| 7135 | do |
| 7136 | IFS=$as_save_IFS |
| 7137 | test -z "$as_dir" && as_dir=. |
| 7138 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7139 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7140 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7141 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7142 | break 2 |
| 7143 | fi |
| 7144 | done |
| 7145 | done |
| 7146 | IFS=$as_save_IFS |
| 7147 | |
| 7148 | ;; |
| 7149 | esac |
| 7150 | fi |
| 7151 | GROFF=$ac_cv_path_GROFF |
| 7152 | if test -n "$GROFF"; then |
| 7153 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7154 | echo "${ECHO_T}$GROFF" >&6; } |
| 7155 | else |
| 7156 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7157 | echo "${ECHO_T}no" >&6; } |
| 7158 | fi |
| 7159 | |
| 7160 | |
| 7161 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7162 | set dummy gzip; ac_word=$2 |
| 7163 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7164 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7165 | if test "${ac_cv_path_GZIPBIN+set}" = set; then |
| 7166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7167 | else |
| 7168 | case $GZIPBIN in |
| 7169 | [\\/]* | ?:[\\/]*) |
| 7170 | ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. |
| 7171 | ;; |
| 7172 | *) |
| 7173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7174 | for as_dir in $PATH |
| 7175 | do |
| 7176 | IFS=$as_save_IFS |
| 7177 | test -z "$as_dir" && as_dir=. |
| 7178 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7179 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7180 | ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" |
| 7181 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7182 | break 2 |
| 7183 | fi |
| 7184 | done |
| 7185 | done |
| 7186 | IFS=$as_save_IFS |
| 7187 | |
| 7188 | ;; |
| 7189 | esac |
| 7190 | fi |
| 7191 | GZIPBIN=$ac_cv_path_GZIPBIN |
| 7192 | if test -n "$GZIPBIN"; then |
| 7193 | { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 |
| 7194 | echo "${ECHO_T}$GZIPBIN" >&6; } |
| 7195 | else |
| 7196 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7197 | echo "${ECHO_T}no" >&6; } |
| 7198 | fi |
| 7199 | |
| 7200 | |
| 7201 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 7202 | set dummy pod2html; ac_word=$2 |
| 7203 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7204 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7205 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 7206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7207 | else |
| 7208 | case $POD2HTML in |
| 7209 | [\\/]* | ?:[\\/]*) |
| 7210 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 7211 | ;; |
| 7212 | *) |
| 7213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7214 | for as_dir in $PATH |
| 7215 | do |
| 7216 | IFS=$as_save_IFS |
| 7217 | test -z "$as_dir" && as_dir=. |
| 7218 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7219 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7220 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
| 7221 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7222 | break 2 |
| 7223 | fi |
| 7224 | done |
| 7225 | done |
| 7226 | IFS=$as_save_IFS |
| 7227 | |
| 7228 | ;; |
| 7229 | esac |
| 7230 | fi |
| 7231 | POD2HTML=$ac_cv_path_POD2HTML |
| 7232 | if test -n "$POD2HTML"; then |
| 7233 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 7234 | echo "${ECHO_T}$POD2HTML" >&6; } |
| 7235 | else |
| 7236 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7237 | echo "${ECHO_T}no" >&6; } |
| 7238 | fi |
| 7239 | |
| 7240 | |
| 7241 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 7242 | set dummy pod2man; ac_word=$2 |
| 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_POD2MAN+set}" = set; then |
| 7246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7247 | else |
| 7248 | case $POD2MAN in |
| 7249 | [\\/]* | ?:[\\/]*) |
| 7250 | ac_cv_path_POD2MAN="$POD2MAN" # 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=. |
| 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 |
| 7260 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
| 7261 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7262 | break 2 |
| 7263 | fi |
| 7264 | done |
| 7265 | done |
| 7266 | IFS=$as_save_IFS |
| 7267 | |
| 7268 | ;; |
| 7269 | esac |
| 7270 | fi |
| 7271 | POD2MAN=$ac_cv_path_POD2MAN |
| 7272 | if test -n "$POD2MAN"; then |
| 7273 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 7274 | echo "${ECHO_T}$POD2MAN" >&6; } |
| 7275 | else |
| 7276 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7277 | echo "${ECHO_T}no" >&6; } |
| 7278 | fi |
| 7279 | |
| 7280 | |
| 7281 | # Extract the first word of "pdfroff", so it can be a program name with args. |
| 7282 | set dummy pdfroff; ac_word=$2 |
| 7283 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7284 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7285 | if test "${ac_cv_path_PDFROFF+set}" = set; then |
| 7286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7287 | else |
| 7288 | case $PDFROFF in |
| 7289 | [\\/]* | ?:[\\/]*) |
| 7290 | ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. |
| 7291 | ;; |
| 7292 | *) |
| 7293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7294 | for as_dir in $PATH |
| 7295 | do |
| 7296 | IFS=$as_save_IFS |
| 7297 | test -z "$as_dir" && as_dir=. |
| 7298 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7299 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7300 | ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7301 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7302 | break 2 |
| 7303 | fi |
| 7304 | done |
| 7305 | done |
| 7306 | IFS=$as_save_IFS |
| 7307 | |
| 7308 | ;; |
| 7309 | esac |
| 7310 | fi |
| 7311 | PDFROFF=$ac_cv_path_PDFROFF |
| 7312 | if test -n "$PDFROFF"; then |
| 7313 | { echo "$as_me:$LINENO: result: $PDFROFF" >&5 |
| 7314 | echo "${ECHO_T}$PDFROFF" >&6; } |
| 7315 | else |
| 7316 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7317 | echo "${ECHO_T}no" >&6; } |
| 7318 | fi |
| 7319 | |
| 7320 | |
| 7321 | # Extract the first word of "runtest", so it can be a program name with args. |
| 7322 | set dummy runtest; ac_word=$2 |
| 7323 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7324 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7325 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 7326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7327 | else |
| 7328 | case $RUNTEST in |
| 7329 | [\\/]* | ?:[\\/]*) |
| 7330 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 7331 | ;; |
| 7332 | *) |
| 7333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7334 | for as_dir in $PATH |
| 7335 | do |
| 7336 | IFS=$as_save_IFS |
| 7337 | test -z "$as_dir" && as_dir=. |
| 7338 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7339 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7340 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
| 7341 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7342 | break 2 |
| 7343 | fi |
| 7344 | done |
| 7345 | done |
| 7346 | IFS=$as_save_IFS |
| 7347 | |
| 7348 | ;; |
| 7349 | esac |
| 7350 | fi |
| 7351 | RUNTEST=$ac_cv_path_RUNTEST |
| 7352 | if test -n "$RUNTEST"; then |
| 7353 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 7354 | echo "${ECHO_T}$RUNTEST" >&6; } |
| 7355 | else |
| 7356 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7357 | echo "${ECHO_T}no" >&6; } |
| 7358 | fi |
| 7359 | |
| 7360 | |
| 7361 | |
| 7362 | no_itcl=true |
| 7363 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 7364 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } |
| 7365 | |
| 7366 | # Check whether --with-tclinclude was given. |
| 7367 | if test "${with_tclinclude+set}" = set; then |
| 7368 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 7369 | else |
| 7370 | with_tclinclude='' |
| 7371 | fi |
| 7372 | |
| 7373 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 7374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7375 | else |
| 7376 | |
| 7377 | if test x"${with_tclinclude}" != x ; then |
| 7378 | if test -f ${with_tclinclude}/tclsh ; then |
| 7379 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 7380 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 7381 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 7382 | else |
| 7383 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 7384 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 7385 | { (exit 1); exit 1; }; } |
| 7386 | fi |
| 7387 | fi |
| 7388 | fi |
| 7389 | |
| 7390 | |
| 7391 | if test x"${ac_cv_path_tclsh}" = x ; then |
| 7392 | { echo "$as_me:$LINENO: result: none" >&5 |
| 7393 | echo "${ECHO_T}none" >&6; } |
| 7394 | 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 |
| 7395 | do |
| 7396 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7397 | set dummy $ac_prog; ac_word=$2 |
| 7398 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7399 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7400 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 7401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7402 | else |
| 7403 | case $TCLSH in |
| 7404 | [\\/]* | ?:[\\/]*) |
| 7405 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 7406 | ;; |
| 7407 | *) |
| 7408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7409 | for as_dir in $PATH |
| 7410 | do |
| 7411 | IFS=$as_save_IFS |
| 7412 | test -z "$as_dir" && as_dir=. |
| 7413 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7414 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7415 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
| 7416 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7417 | break 2 |
| 7418 | fi |
| 7419 | done |
| 7420 | done |
| 7421 | IFS=$as_save_IFS |
| 7422 | |
| 7423 | ;; |
| 7424 | esac |
| 7425 | fi |
| 7426 | TCLSH=$ac_cv_path_TCLSH |
| 7427 | if test -n "$TCLSH"; then |
| 7428 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 7429 | echo "${ECHO_T}$TCLSH" >&6; } |
| 7430 | else |
| 7431 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7432 | echo "${ECHO_T}no" >&6; } |
| 7433 | fi |
| 7434 | |
| 7435 | |
| 7436 | test -n "$TCLSH" && break |
| 7437 | done |
| 7438 | |
| 7439 | if test x"${TCLSH}" = x ; then |
| 7440 | ac_cv_path_tclsh=''; |
| 7441 | else |
| 7442 | ac_cv_path_tclsh="${TCLSH}"; |
| 7443 | fi |
| 7444 | else |
| 7445 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 7446 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
| 7447 | TCLSH="${ac_cv_path_tclsh}" |
| 7448 | |
| 7449 | fi |
| 7450 | |
| 7451 | # Extract the first word of "zip", so it can be a program name with args. |
| 7452 | set dummy zip; ac_word=$2 |
| 7453 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7454 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7455 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 7456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7457 | else |
| 7458 | case $ZIP in |
| 7459 | [\\/]* | ?:[\\/]*) |
| 7460 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 7461 | ;; |
| 7462 | *) |
| 7463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7464 | for as_dir in $PATH |
| 7465 | do |
| 7466 | IFS=$as_save_IFS |
| 7467 | test -z "$as_dir" && as_dir=. |
| 7468 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7469 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7470 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7471 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7472 | break 2 |
| 7473 | fi |
| 7474 | done |
| 7475 | done |
| 7476 | IFS=$as_save_IFS |
| 7477 | |
| 7478 | ;; |
| 7479 | esac |
| 7480 | fi |
| 7481 | ZIP=$ac_cv_path_ZIP |
| 7482 | if test -n "$ZIP"; then |
| 7483 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 7484 | echo "${ECHO_T}$ZIP" >&6; } |
| 7485 | else |
| 7486 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7487 | echo "${ECHO_T}no" >&6; } |
| 7488 | fi |
| 7489 | |
| 7490 | |
| 7491 | for ac_prog in ocamlc |
| 7492 | do |
| 7493 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7494 | set dummy $ac_prog; ac_word=$2 |
| 7495 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7496 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7497 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 7498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7499 | else |
| 7500 | case $OCAMLC in |
| 7501 | [\\/]* | ?:[\\/]*) |
| 7502 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 7503 | ;; |
| 7504 | *) |
| 7505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7506 | for as_dir in $PATH |
| 7507 | do |
| 7508 | IFS=$as_save_IFS |
| 7509 | test -z "$as_dir" && as_dir=. |
| 7510 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7511 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7512 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
| 7513 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7514 | break 2 |
| 7515 | fi |
| 7516 | done |
| 7517 | done |
| 7518 | IFS=$as_save_IFS |
| 7519 | |
| 7520 | ;; |
| 7521 | esac |
| 7522 | fi |
| 7523 | OCAMLC=$ac_cv_path_OCAMLC |
| 7524 | if test -n "$OCAMLC"; then |
| 7525 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 7526 | echo "${ECHO_T}$OCAMLC" >&6; } |
| 7527 | else |
| 7528 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7529 | echo "${ECHO_T}no" >&6; } |
| 7530 | fi |
| 7531 | |
| 7532 | |
| 7533 | test -n "$OCAMLC" && break |
| 7534 | done |
| 7535 | |
| 7536 | for ac_prog in ocamlopt |
| 7537 | do |
| 7538 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7539 | set dummy $ac_prog; ac_word=$2 |
| 7540 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7541 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7542 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 7543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7544 | else |
| 7545 | case $OCAMLOPT in |
| 7546 | [\\/]* | ?:[\\/]*) |
| 7547 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 7548 | ;; |
| 7549 | *) |
| 7550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7551 | for as_dir in $PATH |
| 7552 | do |
| 7553 | IFS=$as_save_IFS |
| 7554 | test -z "$as_dir" && as_dir=. |
| 7555 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7556 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7557 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
| 7558 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7559 | break 2 |
| 7560 | fi |
| 7561 | done |
| 7562 | done |
| 7563 | IFS=$as_save_IFS |
| 7564 | |
| 7565 | ;; |
| 7566 | esac |
| 7567 | fi |
| 7568 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 7569 | if test -n "$OCAMLOPT"; then |
| 7570 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 7571 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
| 7572 | else |
| 7573 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7574 | echo "${ECHO_T}no" >&6; } |
| 7575 | fi |
| 7576 | |
| 7577 | |
| 7578 | test -n "$OCAMLOPT" && break |
| 7579 | done |
| 7580 | |
| 7581 | for ac_prog in ocamldep |
| 7582 | do |
| 7583 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7584 | set dummy $ac_prog; ac_word=$2 |
| 7585 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7586 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7587 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 7588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7589 | else |
| 7590 | case $OCAMLDEP in |
| 7591 | [\\/]* | ?:[\\/]*) |
| 7592 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 7593 | ;; |
| 7594 | *) |
| 7595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7596 | for as_dir in $PATH |
| 7597 | do |
| 7598 | IFS=$as_save_IFS |
| 7599 | test -z "$as_dir" && as_dir=. |
| 7600 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7601 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7602 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
| 7603 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7604 | break 2 |
| 7605 | fi |
| 7606 | done |
| 7607 | done |
| 7608 | IFS=$as_save_IFS |
| 7609 | |
| 7610 | ;; |
| 7611 | esac |
| 7612 | fi |
| 7613 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 7614 | if test -n "$OCAMLDEP"; then |
| 7615 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 7616 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
| 7617 | else |
| 7618 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7619 | echo "${ECHO_T}no" >&6; } |
| 7620 | fi |
| 7621 | |
| 7622 | |
| 7623 | test -n "$OCAMLDEP" && break |
| 7624 | done |
| 7625 | |
| 7626 | for ac_prog in ocamldoc |
| 7627 | do |
| 7628 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7629 | set dummy $ac_prog; ac_word=$2 |
| 7630 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7631 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7632 | if test "${ac_cv_path_OCAMLDOC+set}" = set; then |
| 7633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7634 | else |
| 7635 | case $OCAMLDOC in |
| 7636 | [\\/]* | ?:[\\/]*) |
| 7637 | ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. |
| 7638 | ;; |
| 7639 | *) |
| 7640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7641 | for as_dir in $PATH |
| 7642 | do |
| 7643 | IFS=$as_save_IFS |
| 7644 | test -z "$as_dir" && as_dir=. |
| 7645 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7646 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7647 | ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" |
| 7648 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7649 | break 2 |
| 7650 | fi |
| 7651 | done |
| 7652 | done |
| 7653 | IFS=$as_save_IFS |
| 7654 | |
| 7655 | ;; |
| 7656 | esac |
| 7657 | fi |
| 7658 | OCAMLDOC=$ac_cv_path_OCAMLDOC |
| 7659 | if test -n "$OCAMLDOC"; then |
| 7660 | { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 |
| 7661 | echo "${ECHO_T}$OCAMLDOC" >&6; } |
| 7662 | else |
| 7663 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7664 | echo "${ECHO_T}no" >&6; } |
| 7665 | fi |
| 7666 | |
| 7667 | |
| 7668 | test -n "$OCAMLDOC" && break |
| 7669 | done |
| 7670 | |
| 7671 | for ac_prog in gas as |
| 7672 | do |
| 7673 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7674 | set dummy $ac_prog; ac_word=$2 |
| 7675 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7676 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7677 | if test "${ac_cv_path_GAS+set}" = set; then |
| 7678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7679 | else |
| 7680 | case $GAS in |
| 7681 | [\\/]* | ?:[\\/]*) |
| 7682 | ac_cv_path_GAS="$GAS" # Let the user override the test with a path. |
| 7683 | ;; |
| 7684 | *) |
| 7685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7686 | for as_dir in $PATH |
| 7687 | do |
| 7688 | IFS=$as_save_IFS |
| 7689 | test -z "$as_dir" && as_dir=. |
| 7690 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7691 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7692 | ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" |
| 7693 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7694 | break 2 |
| 7695 | fi |
| 7696 | done |
| 7697 | done |
| 7698 | IFS=$as_save_IFS |
| 7699 | |
| 7700 | ;; |
| 7701 | esac |
| 7702 | fi |
| 7703 | GAS=$ac_cv_path_GAS |
| 7704 | if test -n "$GAS"; then |
| 7705 | { echo "$as_me:$LINENO: result: $GAS" >&5 |
| 7706 | echo "${ECHO_T}$GAS" >&6; } |
| 7707 | else |
| 7708 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7709 | echo "${ECHO_T}no" >&6; } |
| 7710 | fi |
| 7711 | |
| 7712 | |
| 7713 | test -n "$GAS" && break |
| 7714 | done |
| 7715 | |
| 7716 | |
| 7717 | { echo "$as_me:$LINENO: checking for linker version" >&5 |
| 7718 | echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } |
| 7719 | if test "${llvm_cv_link_version+set}" = set; then |
| 7720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7721 | else |
| 7722 | |
| 7723 | version_string="$(ld -v 2>&1 | head -1)" |
| 7724 | |
| 7725 | # Check for ld64. |
| 7726 | if (echo "$version_string" | grep -q "ld64"); then |
| 7727 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#") |
| 7728 | else |
| 7729 | llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") |
| 7730 | fi |
| 7731 | |
| 7732 | fi |
| 7733 | { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 |
| 7734 | echo "${ECHO_T}$llvm_cv_link_version" >&6; } |
| 7735 | |
| 7736 | cat >>confdefs.h <<_ACEOF |
| 7737 | #define HOST_LINK_VERSION "$llvm_cv_link_version" |
| 7738 | _ACEOF |
| 7739 | |
| 7740 | |
| 7741 | |
| 7742 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 7743 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 7744 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 7745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7746 | else |
| 7747 | ac_ext=c |
| 7748 | ac_cpp='$CPP $CPPFLAGS' |
| 7749 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7750 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7751 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7752 | |
| 7753 | oldcflags="$CFLAGS" |
| 7754 | CFLAGS="$CFLAGS -Wl,-R." |
| 7755 | cat >conftest.$ac_ext <<_ACEOF |
| 7756 | /* confdefs.h. */ |
| 7757 | _ACEOF |
| 7758 | cat confdefs.h >>conftest.$ac_ext |
| 7759 | cat >>conftest.$ac_ext <<_ACEOF |
| 7760 | /* end confdefs.h. */ |
| 7761 | |
| 7762 | int |
| 7763 | main () |
| 7764 | { |
| 7765 | |
| 7766 | ; |
| 7767 | return 0; |
| 7768 | } |
| 7769 | _ACEOF |
| 7770 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7771 | if { (ac_try="$ac_link" |
| 7772 | case "(($ac_try" in |
| 7773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7774 | *) ac_try_echo=$ac_try;; |
| 7775 | esac |
| 7776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7777 | (eval "$ac_link") 2>conftest.er1 |
| 7778 | ac_status=$? |
| 7779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7780 | rm -f conftest.er1 |
| 7781 | cat conftest.err >&5 |
| 7782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7783 | (exit $ac_status); } && |
| 7784 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7785 | { (case "(($ac_try" in |
| 7786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7787 | *) ac_try_echo=$ac_try;; |
| 7788 | esac |
| 7789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7790 | (eval "$ac_try") 2>&5 |
| 7791 | ac_status=$? |
| 7792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7793 | (exit $ac_status); }; } && |
| 7794 | { ac_try='test -s conftest$ac_exeext' |
| 7795 | { (case "(($ac_try" in |
| 7796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7797 | *) ac_try_echo=$ac_try;; |
| 7798 | esac |
| 7799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7800 | (eval "$ac_try") 2>&5 |
| 7801 | ac_status=$? |
| 7802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7803 | (exit $ac_status); }; }; then |
| 7804 | llvm_cv_link_use_r=yes |
| 7805 | else |
| 7806 | echo "$as_me: failed program was:" >&5 |
| 7807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7808 | |
| 7809 | llvm_cv_link_use_r=no |
| 7810 | fi |
| 7811 | |
| 7812 | rm -f core conftest.err conftest.$ac_objext \ |
| 7813 | conftest$ac_exeext conftest.$ac_ext |
| 7814 | CFLAGS="$oldcflags" |
| 7815 | ac_ext=c |
| 7816 | ac_cpp='$CPP $CPPFLAGS' |
| 7817 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7818 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7819 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7820 | |
| 7821 | |
| 7822 | fi |
| 7823 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 7824 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
| 7825 | if test "$llvm_cv_link_use_r" = yes ; then |
| 7826 | |
| 7827 | cat >>confdefs.h <<\_ACEOF |
| 7828 | #define HAVE_LINK_R 1 |
| 7829 | _ACEOF |
| 7830 | |
| 7831 | fi |
| 7832 | |
| 7833 | |
| 7834 | { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 |
| 7835 | echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } |
| 7836 | if test "${llvm_cv_link_use_export_dynamic+set}" = set; then |
| 7837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7838 | else |
| 7839 | ac_ext=c |
| 7840 | ac_cpp='$CPP $CPPFLAGS' |
| 7841 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7842 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7843 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7844 | |
| 7845 | oldcflags="$CFLAGS" |
| 7846 | CFLAGS="$CFLAGS -Wl,-export-dynamic" |
| 7847 | cat >conftest.$ac_ext <<_ACEOF |
| 7848 | /* confdefs.h. */ |
| 7849 | _ACEOF |
| 7850 | cat confdefs.h >>conftest.$ac_ext |
| 7851 | cat >>conftest.$ac_ext <<_ACEOF |
| 7852 | /* end confdefs.h. */ |
| 7853 | |
| 7854 | int |
| 7855 | main () |
| 7856 | { |
| 7857 | |
| 7858 | ; |
| 7859 | return 0; |
| 7860 | } |
| 7861 | _ACEOF |
| 7862 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7863 | if { (ac_try="$ac_link" |
| 7864 | case "(($ac_try" in |
| 7865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7866 | *) ac_try_echo=$ac_try;; |
| 7867 | esac |
| 7868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7869 | (eval "$ac_link") 2>conftest.er1 |
| 7870 | ac_status=$? |
| 7871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7872 | rm -f conftest.er1 |
| 7873 | cat conftest.err >&5 |
| 7874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7875 | (exit $ac_status); } && |
| 7876 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7877 | { (case "(($ac_try" in |
| 7878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7879 | *) ac_try_echo=$ac_try;; |
| 7880 | esac |
| 7881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7882 | (eval "$ac_try") 2>&5 |
| 7883 | ac_status=$? |
| 7884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7885 | (exit $ac_status); }; } && |
| 7886 | { ac_try='test -s conftest$ac_exeext' |
| 7887 | { (case "(($ac_try" in |
| 7888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7889 | *) ac_try_echo=$ac_try;; |
| 7890 | esac |
| 7891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7892 | (eval "$ac_try") 2>&5 |
| 7893 | ac_status=$? |
| 7894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7895 | (exit $ac_status); }; }; then |
| 7896 | llvm_cv_link_use_export_dynamic=yes |
| 7897 | else |
| 7898 | echo "$as_me: failed program was:" >&5 |
| 7899 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7900 | |
| 7901 | llvm_cv_link_use_export_dynamic=no |
| 7902 | fi |
| 7903 | |
| 7904 | rm -f core conftest.err conftest.$ac_objext \ |
| 7905 | conftest$ac_exeext conftest.$ac_ext |
| 7906 | CFLAGS="$oldcflags" |
| 7907 | ac_ext=c |
| 7908 | ac_cpp='$CPP $CPPFLAGS' |
| 7909 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7910 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7911 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7912 | |
| 7913 | |
| 7914 | fi |
| 7915 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 |
| 7916 | echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } |
| 7917 | if test "$llvm_cv_link_use_export_dynamic" = yes ; then |
| 7918 | |
| 7919 | cat >>confdefs.h <<\_ACEOF |
| 7920 | #define HAVE_LINK_EXPORT_DYNAMIC 1 |
| 7921 | _ACEOF |
| 7922 | |
| 7923 | fi |
| 7924 | |
| 7925 | |
| 7926 | { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 |
| 7927 | echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } |
| 7928 | if test "${llvm_cv_link_use_version_script+set}" = set; then |
| 7929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7930 | else |
| 7931 | ac_ext=c |
| 7932 | ac_cpp='$CPP $CPPFLAGS' |
| 7933 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7934 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7935 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7936 | |
| 7937 | oldcflags="$CFLAGS" |
| 7938 | |
| 7939 | # The following code is from the autoconf manual, |
| 7940 | # "11.13: Limitations of Usual Tools". |
| 7941 | # Create a temporary directory $tmp in $TMPDIR (default /tmp). |
| 7942 | # Use mktemp if possible; otherwise fall back on mkdir, |
| 7943 | # with $RANDOM to make collisions less likely. |
| 7944 | : ${TMPDIR=/tmp} |
| 7945 | { |
| 7946 | tmp=` |
| 7947 | (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null |
| 7948 | ` && |
| 7949 | test -n "$tmp" && test -d "$tmp" |
| 7950 | } || { |
| 7951 | tmp=$TMPDIR/foo$$-$RANDOM |
| 7952 | (umask 077 && mkdir "$tmp") |
| 7953 | } || exit $? |
| 7954 | |
| 7955 | echo "{" > "$tmp/export.map" |
| 7956 | echo " global: main;" >> "$tmp/export.map" |
| 7957 | echo " local: *;" >> "$tmp/export.map" |
| 7958 | echo "};" >> "$tmp/export.map" |
| 7959 | |
| 7960 | CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" |
| 7961 | cat >conftest.$ac_ext <<_ACEOF |
| 7962 | /* confdefs.h. */ |
| 7963 | _ACEOF |
| 7964 | cat confdefs.h >>conftest.$ac_ext |
| 7965 | cat >>conftest.$ac_ext <<_ACEOF |
| 7966 | /* end confdefs.h. */ |
| 7967 | |
| 7968 | int |
| 7969 | main () |
| 7970 | { |
| 7971 | |
| 7972 | ; |
| 7973 | return 0; |
| 7974 | } |
| 7975 | _ACEOF |
| 7976 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7977 | if { (ac_try="$ac_link" |
| 7978 | case "(($ac_try" in |
| 7979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7980 | *) ac_try_echo=$ac_try;; |
| 7981 | esac |
| 7982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7983 | (eval "$ac_link") 2>conftest.er1 |
| 7984 | ac_status=$? |
| 7985 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7986 | rm -f conftest.er1 |
| 7987 | cat conftest.err >&5 |
| 7988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7989 | (exit $ac_status); } && |
| 7990 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7991 | { (case "(($ac_try" in |
| 7992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7993 | *) ac_try_echo=$ac_try;; |
| 7994 | esac |
| 7995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7996 | (eval "$ac_try") 2>&5 |
| 7997 | ac_status=$? |
| 7998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7999 | (exit $ac_status); }; } && |
| 8000 | { ac_try='test -s conftest$ac_exeext' |
| 8001 | { (case "(($ac_try" in |
| 8002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8003 | *) ac_try_echo=$ac_try;; |
| 8004 | esac |
| 8005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8006 | (eval "$ac_try") 2>&5 |
| 8007 | ac_status=$? |
| 8008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8009 | (exit $ac_status); }; }; then |
| 8010 | llvm_cv_link_use_version_script=yes |
| 8011 | else |
| 8012 | echo "$as_me: failed program was:" >&5 |
| 8013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8014 | |
| 8015 | llvm_cv_link_use_version_script=no |
| 8016 | fi |
| 8017 | |
| 8018 | rm -f core conftest.err conftest.$ac_objext \ |
| 8019 | conftest$ac_exeext conftest.$ac_ext |
| 8020 | rm "$tmp/export.map" |
| 8021 | rmdir "$tmp" |
| 8022 | CFLAGS="$oldcflags" |
| 8023 | ac_ext=c |
| 8024 | ac_cpp='$CPP $CPPFLAGS' |
| 8025 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8026 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8027 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8028 | |
| 8029 | |
| 8030 | fi |
| 8031 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 |
| 8032 | echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } |
| 8033 | if test "$llvm_cv_link_use_version_script" = yes ; then |
| 8034 | HAVE_LINK_VERSION_SCRIPT=1 |
| 8035 | |
| 8036 | fi |
| 8037 | |
| 8038 | |
| 8039 | |
| 8040 | |
| 8041 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 8042 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 8043 | if test "${ac_cv_c_const+set}" = set; then |
| 8044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8045 | else |
| 8046 | cat >conftest.$ac_ext <<_ACEOF |
| 8047 | /* confdefs.h. */ |
| 8048 | _ACEOF |
| 8049 | cat confdefs.h >>conftest.$ac_ext |
| 8050 | cat >>conftest.$ac_ext <<_ACEOF |
| 8051 | /* end confdefs.h. */ |
| 8052 | |
| 8053 | int |
| 8054 | main () |
| 8055 | { |
| 8056 | /* FIXME: Include the comments suggested by Paul. */ |
| 8057 | #ifndef __cplusplus |
| 8058 | /* Ultrix mips cc rejects this. */ |
| 8059 | typedef int charset[2]; |
| 8060 | const charset x; |
| 8061 | /* SunOS 4.1.1 cc rejects this. */ |
| 8062 | char const *const *ccp; |
| 8063 | char **p; |
| 8064 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 8065 | struct point {int x, y;}; |
| 8066 | static struct point const zero = {0,0}; |
| 8067 | /* AIX XL C 1.02.0.0 rejects this. |
| 8068 | It does not let you subtract one const X* pointer from another in |
| 8069 | an arm of an if-expression whose if-part is not a constant |
| 8070 | expression */ |
| 8071 | const char *g = "string"; |
| 8072 | ccp = &g + (g ? g-g : 0); |
| 8073 | /* HPUX 7.0 cc rejects these. */ |
| 8074 | ++ccp; |
| 8075 | p = (char**) ccp; |
| 8076 | ccp = (char const *const *) p; |
| 8077 | { /* SCO 3.2v4 cc rejects this. */ |
| 8078 | char *t; |
| 8079 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8080 | |
| 8081 | *t++ = 0; |
| 8082 | if (s) return 0; |
| 8083 | } |
| 8084 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8085 | int x[] = {25, 17}; |
| 8086 | const int *foo = &x[0]; |
| 8087 | ++foo; |
| 8088 | } |
| 8089 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8090 | typedef const int *iptr; |
| 8091 | iptr p = 0; |
| 8092 | ++p; |
| 8093 | } |
| 8094 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8095 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8096 | struct s { int j; const int *ap[3]; }; |
| 8097 | struct s *b; b->j = 5; |
| 8098 | } |
| 8099 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8100 | const int foo = 10; |
| 8101 | if (!foo) return 0; |
| 8102 | } |
| 8103 | return !x[0] && !zero.x; |
| 8104 | #endif |
| 8105 | |
| 8106 | ; |
| 8107 | return 0; |
| 8108 | } |
| 8109 | _ACEOF |
| 8110 | rm -f conftest.$ac_objext |
| 8111 | if { (ac_try="$ac_compile" |
| 8112 | case "(($ac_try" in |
| 8113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8114 | *) ac_try_echo=$ac_try;; |
| 8115 | esac |
| 8116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8117 | (eval "$ac_compile") 2>conftest.er1 |
| 8118 | ac_status=$? |
| 8119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8120 | rm -f conftest.er1 |
| 8121 | cat conftest.err >&5 |
| 8122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8123 | (exit $ac_status); } && |
| 8124 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8125 | { (case "(($ac_try" in |
| 8126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8127 | *) ac_try_echo=$ac_try;; |
| 8128 | esac |
| 8129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8130 | (eval "$ac_try") 2>&5 |
| 8131 | ac_status=$? |
| 8132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8133 | (exit $ac_status); }; } && |
| 8134 | { ac_try='test -s conftest.$ac_objext' |
| 8135 | { (case "(($ac_try" in |
| 8136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8137 | *) ac_try_echo=$ac_try;; |
| 8138 | esac |
| 8139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8140 | (eval "$ac_try") 2>&5 |
| 8141 | ac_status=$? |
| 8142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8143 | (exit $ac_status); }; }; then |
| 8144 | ac_cv_c_const=yes |
| 8145 | else |
| 8146 | echo "$as_me: failed program was:" >&5 |
| 8147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8148 | |
| 8149 | ac_cv_c_const=no |
| 8150 | fi |
| 8151 | |
| 8152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8153 | fi |
| 8154 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8155 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
| 8156 | if test $ac_cv_c_const = no; then |
| 8157 | |
| 8158 | cat >>confdefs.h <<\_ACEOF |
| 8159 | #define const |
| 8160 | _ACEOF |
| 8161 | |
| 8162 | fi |
| 8163 | |
| 8164 | |
| 8165 | |
| 8166 | |
| 8167 | |
| 8168 | |
| 8169 | ac_header_dirent=no |
| 8170 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 8171 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 8172 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8173 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8174 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8176 | else |
| 8177 | cat >conftest.$ac_ext <<_ACEOF |
| 8178 | /* confdefs.h. */ |
| 8179 | _ACEOF |
| 8180 | cat confdefs.h >>conftest.$ac_ext |
| 8181 | cat >>conftest.$ac_ext <<_ACEOF |
| 8182 | /* end confdefs.h. */ |
| 8183 | #include <sys/types.h> |
| 8184 | #include <$ac_hdr> |
| 8185 | |
| 8186 | int |
| 8187 | main () |
| 8188 | { |
| 8189 | if ((DIR *) 0) |
| 8190 | return 0; |
| 8191 | ; |
| 8192 | return 0; |
| 8193 | } |
| 8194 | _ACEOF |
| 8195 | rm -f conftest.$ac_objext |
| 8196 | if { (ac_try="$ac_compile" |
| 8197 | case "(($ac_try" in |
| 8198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8199 | *) ac_try_echo=$ac_try;; |
| 8200 | esac |
| 8201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8202 | (eval "$ac_compile") 2>conftest.er1 |
| 8203 | ac_status=$? |
| 8204 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8205 | rm -f conftest.er1 |
| 8206 | cat conftest.err >&5 |
| 8207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8208 | (exit $ac_status); } && |
| 8209 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8210 | { (case "(($ac_try" in |
| 8211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8212 | *) ac_try_echo=$ac_try;; |
| 8213 | esac |
| 8214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8215 | (eval "$ac_try") 2>&5 |
| 8216 | ac_status=$? |
| 8217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8218 | (exit $ac_status); }; } && |
| 8219 | { ac_try='test -s conftest.$ac_objext' |
| 8220 | { (case "(($ac_try" in |
| 8221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8222 | *) ac_try_echo=$ac_try;; |
| 8223 | esac |
| 8224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8225 | (eval "$ac_try") 2>&5 |
| 8226 | ac_status=$? |
| 8227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8228 | (exit $ac_status); }; }; then |
| 8229 | eval "$as_ac_Header=yes" |
| 8230 | else |
| 8231 | echo "$as_me: failed program was:" >&5 |
| 8232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8233 | |
| 8234 | eval "$as_ac_Header=no" |
| 8235 | fi |
| 8236 | |
| 8237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8238 | fi |
| 8239 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8240 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8241 | echo "${ECHO_T}$ac_res" >&6; } |
| 8242 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8243 | cat >>confdefs.h <<_ACEOF |
| 8244 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 8245 | _ACEOF |
| 8246 | |
| 8247 | ac_header_dirent=$ac_hdr; break |
| 8248 | fi |
| 8249 | |
| 8250 | done |
| 8251 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8252 | if test $ac_header_dirent = dirent.h; then |
| 8253 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8254 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8255 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8257 | else |
| 8258 | ac_func_search_save_LIBS=$LIBS |
| 8259 | cat >conftest.$ac_ext <<_ACEOF |
| 8260 | /* confdefs.h. */ |
| 8261 | _ACEOF |
| 8262 | cat confdefs.h >>conftest.$ac_ext |
| 8263 | cat >>conftest.$ac_ext <<_ACEOF |
| 8264 | /* end confdefs.h. */ |
| 8265 | |
| 8266 | /* Override any GCC internal prototype to avoid an error. |
| 8267 | Use char because int might match the return type of a GCC |
| 8268 | builtin and then its argument prototype would still apply. */ |
| 8269 | #ifdef __cplusplus |
| 8270 | extern "C" |
| 8271 | #endif |
| 8272 | char opendir (); |
| 8273 | int |
| 8274 | main () |
| 8275 | { |
| 8276 | return opendir (); |
| 8277 | ; |
| 8278 | return 0; |
| 8279 | } |
| 8280 | _ACEOF |
| 8281 | for ac_lib in '' dir; do |
| 8282 | if test -z "$ac_lib"; then |
| 8283 | ac_res="none required" |
| 8284 | else |
| 8285 | ac_res=-l$ac_lib |
| 8286 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8287 | fi |
| 8288 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8289 | if { (ac_try="$ac_link" |
| 8290 | case "(($ac_try" in |
| 8291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8292 | *) ac_try_echo=$ac_try;; |
| 8293 | esac |
| 8294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8295 | (eval "$ac_link") 2>conftest.er1 |
| 8296 | ac_status=$? |
| 8297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8298 | rm -f conftest.er1 |
| 8299 | cat conftest.err >&5 |
| 8300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8301 | (exit $ac_status); } && |
| 8302 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8303 | { (case "(($ac_try" in |
| 8304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8305 | *) ac_try_echo=$ac_try;; |
| 8306 | esac |
| 8307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8308 | (eval "$ac_try") 2>&5 |
| 8309 | ac_status=$? |
| 8310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8311 | (exit $ac_status); }; } && |
| 8312 | { ac_try='test -s conftest$ac_exeext' |
| 8313 | { (case "(($ac_try" in |
| 8314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8315 | *) ac_try_echo=$ac_try;; |
| 8316 | esac |
| 8317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8318 | (eval "$ac_try") 2>&5 |
| 8319 | ac_status=$? |
| 8320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8321 | (exit $ac_status); }; }; then |
| 8322 | ac_cv_search_opendir=$ac_res |
| 8323 | else |
| 8324 | echo "$as_me: failed program was:" >&5 |
| 8325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8326 | |
| 8327 | |
| 8328 | fi |
| 8329 | |
| 8330 | rm -f core conftest.err conftest.$ac_objext \ |
| 8331 | conftest$ac_exeext |
| 8332 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8333 | break |
| 8334 | fi |
| 8335 | done |
| 8336 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8337 | : |
| 8338 | else |
| 8339 | ac_cv_search_opendir=no |
| 8340 | fi |
| 8341 | rm conftest.$ac_ext |
| 8342 | LIBS=$ac_func_search_save_LIBS |
| 8343 | fi |
| 8344 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8345 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8346 | ac_res=$ac_cv_search_opendir |
| 8347 | if test "$ac_res" != no; then |
| 8348 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8349 | |
| 8350 | fi |
| 8351 | |
| 8352 | else |
| 8353 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8354 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8355 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8357 | else |
| 8358 | ac_func_search_save_LIBS=$LIBS |
| 8359 | cat >conftest.$ac_ext <<_ACEOF |
| 8360 | /* confdefs.h. */ |
| 8361 | _ACEOF |
| 8362 | cat confdefs.h >>conftest.$ac_ext |
| 8363 | cat >>conftest.$ac_ext <<_ACEOF |
| 8364 | /* end confdefs.h. */ |
| 8365 | |
| 8366 | /* Override any GCC internal prototype to avoid an error. |
| 8367 | Use char because int might match the return type of a GCC |
| 8368 | builtin and then its argument prototype would still apply. */ |
| 8369 | #ifdef __cplusplus |
| 8370 | extern "C" |
| 8371 | #endif |
| 8372 | char opendir (); |
| 8373 | int |
| 8374 | main () |
| 8375 | { |
| 8376 | return opendir (); |
| 8377 | ; |
| 8378 | return 0; |
| 8379 | } |
| 8380 | _ACEOF |
| 8381 | for ac_lib in '' x; do |
| 8382 | if test -z "$ac_lib"; then |
| 8383 | ac_res="none required" |
| 8384 | else |
| 8385 | ac_res=-l$ac_lib |
| 8386 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8387 | fi |
| 8388 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8389 | if { (ac_try="$ac_link" |
| 8390 | case "(($ac_try" in |
| 8391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8392 | *) ac_try_echo=$ac_try;; |
| 8393 | esac |
| 8394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8395 | (eval "$ac_link") 2>conftest.er1 |
| 8396 | ac_status=$? |
| 8397 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8398 | rm -f conftest.er1 |
| 8399 | cat conftest.err >&5 |
| 8400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8401 | (exit $ac_status); } && |
| 8402 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8403 | { (case "(($ac_try" in |
| 8404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8405 | *) ac_try_echo=$ac_try;; |
| 8406 | esac |
| 8407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8408 | (eval "$ac_try") 2>&5 |
| 8409 | ac_status=$? |
| 8410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8411 | (exit $ac_status); }; } && |
| 8412 | { ac_try='test -s conftest$ac_exeext' |
| 8413 | { (case "(($ac_try" in |
| 8414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8415 | *) ac_try_echo=$ac_try;; |
| 8416 | esac |
| 8417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8418 | (eval "$ac_try") 2>&5 |
| 8419 | ac_status=$? |
| 8420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8421 | (exit $ac_status); }; }; then |
| 8422 | ac_cv_search_opendir=$ac_res |
| 8423 | else |
| 8424 | echo "$as_me: failed program was:" >&5 |
| 8425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8426 | |
| 8427 | |
| 8428 | fi |
| 8429 | |
| 8430 | rm -f core conftest.err conftest.$ac_objext \ |
| 8431 | conftest$ac_exeext |
| 8432 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8433 | break |
| 8434 | fi |
| 8435 | done |
| 8436 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8437 | : |
| 8438 | else |
| 8439 | ac_cv_search_opendir=no |
| 8440 | fi |
| 8441 | rm conftest.$ac_ext |
| 8442 | LIBS=$ac_func_search_save_LIBS |
| 8443 | fi |
| 8444 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8445 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8446 | ac_res=$ac_cv_search_opendir |
| 8447 | if test "$ac_res" != no; then |
| 8448 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8449 | |
| 8450 | fi |
| 8451 | |
| 8452 | fi |
| 8453 | |
| 8454 | |
| 8455 | for ac_header in dlfcn.h |
| 8456 | do |
| 8457 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8458 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8459 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8460 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8461 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8463 | fi |
| 8464 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8465 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8466 | echo "${ECHO_T}$ac_res" >&6; } |
| 8467 | else |
| 8468 | # Is the header compilable? |
| 8469 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8470 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 8471 | cat >conftest.$ac_ext <<_ACEOF |
| 8472 | /* confdefs.h. */ |
| 8473 | _ACEOF |
| 8474 | cat confdefs.h >>conftest.$ac_ext |
| 8475 | cat >>conftest.$ac_ext <<_ACEOF |
| 8476 | /* end confdefs.h. */ |
| 8477 | $ac_includes_default |
| 8478 | #include <$ac_header> |
| 8479 | _ACEOF |
| 8480 | rm -f conftest.$ac_objext |
| 8481 | if { (ac_try="$ac_compile" |
| 8482 | case "(($ac_try" in |
| 8483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8484 | *) ac_try_echo=$ac_try;; |
| 8485 | esac |
| 8486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8487 | (eval "$ac_compile") 2>conftest.er1 |
| 8488 | ac_status=$? |
| 8489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8490 | rm -f conftest.er1 |
| 8491 | cat conftest.err >&5 |
| 8492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8493 | (exit $ac_status); } && |
| 8494 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8495 | { (case "(($ac_try" in |
| 8496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8497 | *) ac_try_echo=$ac_try;; |
| 8498 | esac |
| 8499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8500 | (eval "$ac_try") 2>&5 |
| 8501 | ac_status=$? |
| 8502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8503 | (exit $ac_status); }; } && |
| 8504 | { ac_try='test -s conftest.$ac_objext' |
| 8505 | { (case "(($ac_try" in |
| 8506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8507 | *) ac_try_echo=$ac_try;; |
| 8508 | esac |
| 8509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8510 | (eval "$ac_try") 2>&5 |
| 8511 | ac_status=$? |
| 8512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8513 | (exit $ac_status); }; }; then |
| 8514 | ac_header_compiler=yes |
| 8515 | else |
| 8516 | echo "$as_me: failed program was:" >&5 |
| 8517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8518 | |
| 8519 | ac_header_compiler=no |
| 8520 | fi |
| 8521 | |
| 8522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8523 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8524 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 8525 | |
| 8526 | # Is the header present? |
| 8527 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8528 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 8529 | cat >conftest.$ac_ext <<_ACEOF |
| 8530 | /* confdefs.h. */ |
| 8531 | _ACEOF |
| 8532 | cat confdefs.h >>conftest.$ac_ext |
| 8533 | cat >>conftest.$ac_ext <<_ACEOF |
| 8534 | /* end confdefs.h. */ |
| 8535 | #include <$ac_header> |
| 8536 | _ACEOF |
| 8537 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8538 | case "(($ac_try" in |
| 8539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8540 | *) ac_try_echo=$ac_try;; |
| 8541 | esac |
| 8542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8543 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 8544 | ac_status=$? |
| 8545 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8546 | rm -f conftest.er1 |
| 8547 | cat conftest.err >&5 |
| 8548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8549 | (exit $ac_status); } >/dev/null; then |
| 8550 | if test -s conftest.err; then |
| 8551 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8552 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8553 | else |
| 8554 | ac_cpp_err= |
| 8555 | fi |
| 8556 | else |
| 8557 | ac_cpp_err=yes |
| 8558 | fi |
| 8559 | if test -z "$ac_cpp_err"; then |
| 8560 | ac_header_preproc=yes |
| 8561 | else |
| 8562 | echo "$as_me: failed program was:" >&5 |
| 8563 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8564 | |
| 8565 | ac_header_preproc=no |
| 8566 | fi |
| 8567 | |
| 8568 | rm -f conftest.err conftest.$ac_ext |
| 8569 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8570 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 8571 | |
| 8572 | # So? What about this header? |
| 8573 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8574 | yes:no: ) |
| 8575 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8576 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8577 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8578 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8579 | ac_header_preproc=yes |
| 8580 | ;; |
| 8581 | no:yes:* ) |
| 8582 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8583 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8584 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8585 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8586 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8587 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8588 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8589 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8590 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8591 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8592 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8593 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8594 | ( cat <<\_ASBOX |
| 8595 | ## ------------------------------ ## |
| 8596 | ## Report this to bugs@yourdomain ## |
| 8597 | ## ------------------------------ ## |
| 8598 | _ASBOX |
| 8599 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 8600 | ;; |
| 8601 | esac |
| 8602 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8603 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8604 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8606 | else |
| 8607 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8608 | fi |
| 8609 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8610 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8611 | echo "${ECHO_T}$ac_res" >&6; } |
| 8612 | |
| 8613 | fi |
| 8614 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8615 | cat >>confdefs.h <<_ACEOF |
| 8616 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8617 | _ACEOF |
| 8618 | |
| 8619 | fi |
| 8620 | |
| 8621 | done |
| 8622 | |
| 8623 | # Check whether --enable-ltdl-install was given. |
| 8624 | if test "${enable_ltdl_install+set}" = set; then |
| 8625 | enableval=$enable_ltdl_install; |
| 8626 | fi |
| 8627 | |
| 8628 | |
| 8629 | |
| 8630 | |
| 8631 | if test x"${enable_ltdl_install-no}" != xno; then |
| 8632 | INSTALL_LTDL_TRUE= |
| 8633 | INSTALL_LTDL_FALSE='#' |
| 8634 | else |
| 8635 | INSTALL_LTDL_TRUE='#' |
| 8636 | INSTALL_LTDL_FALSE= |
| 8637 | fi |
| 8638 | |
| 8639 | |
| 8640 | |
| 8641 | if test x"${enable_ltdl_convenience-no}" != xno; then |
| 8642 | CONVENIENCE_LTDL_TRUE= |
| 8643 | CONVENIENCE_LTDL_FALSE='#' |
| 8644 | else |
| 8645 | CONVENIENCE_LTDL_TRUE='#' |
| 8646 | CONVENIENCE_LTDL_FALSE= |
| 8647 | fi |
| 8648 | |
| 8649 | |
| 8650 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8651 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
| 8652 | library_names_spec= |
| 8653 | libname_spec='lib$name' |
| 8654 | soname_spec= |
| 8655 | shrext_cmds=".so" |
| 8656 | postinstall_cmds= |
| 8657 | postuninstall_cmds= |
| 8658 | finish_cmds= |
| 8659 | finish_eval= |
| 8660 | shlibpath_var= |
| 8661 | shlibpath_overrides_runpath=unknown |
| 8662 | version_type=none |
| 8663 | dynamic_linker="$host_os ld.so" |
| 8664 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8665 | if test "$GCC" = yes; then |
| 8666 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8667 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8668 | # if the path contains ";" then we assume it to be the separator |
| 8669 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8670 | # assumed that no part of a normal pathname contains ";" but that should |
| 8671 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8672 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8673 | else |
| 8674 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8675 | fi |
| 8676 | else |
| 8677 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8678 | fi |
| 8679 | need_lib_prefix=unknown |
| 8680 | hardcode_into_libs=no |
| 8681 | |
| 8682 | # when you set need_version to no, make sure it does not cause -set_version |
| 8683 | # flags to be left without arguments |
| 8684 | need_version=unknown |
| 8685 | |
| 8686 | case $host_os in |
| 8687 | aix3*) |
| 8688 | version_type=linux |
| 8689 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8690 | shlibpath_var=LIBPATH |
| 8691 | |
| 8692 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8693 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8694 | ;; |
| 8695 | |
| 8696 | aix4* | aix5*) |
| 8697 | version_type=linux |
| 8698 | need_lib_prefix=no |
| 8699 | need_version=no |
| 8700 | hardcode_into_libs=yes |
| 8701 | if test "$host_cpu" = ia64; then |
| 8702 | # AIX 5 supports IA64 |
| 8703 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8704 | shlibpath_var=LD_LIBRARY_PATH |
| 8705 | else |
| 8706 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8707 | # for dependence libraries. The import file would start with |
| 8708 | # the line `#! .'. This would cause the generated library to |
| 8709 | # depend on `.', always an invalid library. This was fixed in |
| 8710 | # development snapshots of GCC prior to 3.0. |
| 8711 | case $host_os in |
| 8712 | aix4 | aix4.[01] | aix4.[01].*) |
| 8713 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8714 | echo ' yes ' |
| 8715 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8716 | : |
| 8717 | else |
| 8718 | can_build_shared=no |
| 8719 | fi |
| 8720 | ;; |
| 8721 | esac |
| 8722 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8723 | # soname into executable. Probably we can add versioning support to |
| 8724 | # collect2, so additional links can be useful in future. |
| 8725 | if test "$aix_use_runtimelinking" = yes; then |
| 8726 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8727 | # instead of lib<name>.a to let people know that these are not |
| 8728 | # typical AIX shared libraries. |
| 8729 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8730 | else |
| 8731 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8732 | # and later when we are not doing run time linking. |
| 8733 | library_names_spec='${libname}${release}.a $libname.a' |
| 8734 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8735 | fi |
| 8736 | shlibpath_var=LIBPATH |
| 8737 | fi |
| 8738 | ;; |
| 8739 | |
| 8740 | amigaos*) |
| 8741 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8742 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8743 | 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' |
| 8744 | ;; |
| 8745 | |
| 8746 | beos*) |
| 8747 | library_names_spec='${libname}${shared_ext}' |
| 8748 | dynamic_linker="$host_os ld.so" |
| 8749 | shlibpath_var=LIBRARY_PATH |
| 8750 | ;; |
| 8751 | |
| 8752 | bsdi[45]*) |
| 8753 | version_type=linux |
| 8754 | need_version=no |
| 8755 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8756 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8757 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8758 | shlibpath_var=LD_LIBRARY_PATH |
| 8759 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8760 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8761 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8762 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8763 | # libtool to hard-code these into programs |
| 8764 | ;; |
| 8765 | |
| 8766 | cygwin* | mingw* | pw32*) |
| 8767 | version_type=windows |
| 8768 | shrext_cmds=".dll" |
| 8769 | need_version=no |
| 8770 | need_lib_prefix=no |
| 8771 | |
| 8772 | case $GCC,$host_os in |
| 8773 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8774 | library_names_spec='$libname.dll.a' |
| 8775 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8776 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8777 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8778 | dldir=$destdir/`dirname \$dlpath`~ |
| 8779 | test -d \$dldir || mkdir -p \$dldir~ |
| 8780 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8781 | chmod a+x \$dldir/$dlname' |
| 8782 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8783 | dlpath=$dir/\$dldll~ |
| 8784 | $rm \$dlpath' |
| 8785 | shlibpath_overrides_runpath=yes |
| 8786 | |
| 8787 | case $host_os in |
| 8788 | cygwin*) |
| 8789 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8790 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8791 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8792 | ;; |
| 8793 | mingw*) |
| 8794 | # MinGW DLLs use traditional 'lib' prefix |
| 8795 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8796 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8797 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8798 | # It is most probably a Windows format PATH printed by |
| 8799 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8800 | # path with ; separators, and with drive letters. We can handle the |
| 8801 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8802 | # especially as we might pass files found there to a mingw objdump, |
| 8803 | # which wouldn't understand a cygwinified path. Ahh. |
| 8804 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8805 | else |
| 8806 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8807 | fi |
| 8808 | ;; |
| 8809 | pw32*) |
| 8810 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 8811 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8812 | ;; |
| 8813 | esac |
| 8814 | ;; |
| 8815 | |
| 8816 | *) |
| 8817 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8818 | ;; |
| 8819 | esac |
| 8820 | dynamic_linker='Win32 ld.exe' |
| 8821 | # FIXME: first we should search . and the directory the executable is in |
| 8822 | shlibpath_var=PATH |
| 8823 | ;; |
| 8824 | |
| 8825 | darwin* | rhapsody*) |
| 8826 | dynamic_linker="$host_os dyld" |
| 8827 | version_type=darwin |
| 8828 | need_lib_prefix=no |
| 8829 | need_version=no |
| 8830 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8831 | soname_spec='${libname}${release}${major}$shared_ext' |
| 8832 | shlibpath_overrides_runpath=yes |
| 8833 | shlibpath_var=DYLD_LIBRARY_PATH |
| 8834 | shrext_cmds='.dylib' |
| 8835 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 8836 | if test "$GCC" = yes; then |
| 8837 | 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"` |
| 8838 | else |
| 8839 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 8840 | fi |
| 8841 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8842 | ;; |
| 8843 | |
| 8844 | dgux*) |
| 8845 | version_type=linux |
| 8846 | need_lib_prefix=no |
| 8847 | need_version=no |
| 8848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8849 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8850 | shlibpath_var=LD_LIBRARY_PATH |
| 8851 | ;; |
| 8852 | |
| 8853 | freebsd1*) |
| 8854 | dynamic_linker=no |
| 8855 | ;; |
| 8856 | |
| 8857 | kfreebsd*-gnu) |
| 8858 | version_type=linux |
| 8859 | need_lib_prefix=no |
| 8860 | need_version=no |
| 8861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8862 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8863 | shlibpath_var=LD_LIBRARY_PATH |
| 8864 | shlibpath_overrides_runpath=no |
| 8865 | hardcode_into_libs=yes |
| 8866 | dynamic_linker='GNU ld.so' |
| 8867 | ;; |
| 8868 | |
| 8869 | freebsd* | dragonfly*) |
| 8870 | # DragonFly does not have aout. When/if they implement a new |
| 8871 | # versioning mechanism, adjust this. |
| 8872 | if test -x /usr/bin/objformat; then |
| 8873 | objformat=`/usr/bin/objformat` |
| 8874 | else |
| 8875 | case $host_os in |
| 8876 | freebsd[123]*) objformat=aout ;; |
| 8877 | *) objformat=elf ;; |
| 8878 | esac |
| 8879 | fi |
| 8880 | version_type=freebsd-$objformat |
| 8881 | case $version_type in |
| 8882 | freebsd-elf*) |
| 8883 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8884 | need_version=no |
| 8885 | need_lib_prefix=no |
| 8886 | ;; |
| 8887 | freebsd-*) |
| 8888 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 8889 | need_version=yes |
| 8890 | ;; |
| 8891 | esac |
| 8892 | shlibpath_var=LD_LIBRARY_PATH |
| 8893 | case $host_os in |
| 8894 | freebsd2*) |
| 8895 | shlibpath_overrides_runpath=yes |
| 8896 | ;; |
| 8897 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 8898 | shlibpath_overrides_runpath=yes |
| 8899 | hardcode_into_libs=yes |
| 8900 | ;; |
| 8901 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 8902 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 8903 | shlibpath_overrides_runpath=no |
| 8904 | hardcode_into_libs=yes |
| 8905 | ;; |
| 8906 | freebsd*) # from 4.6 on |
| 8907 | shlibpath_overrides_runpath=yes |
| 8908 | hardcode_into_libs=yes |
| 8909 | ;; |
| 8910 | esac |
| 8911 | ;; |
| 8912 | |
| 8913 | gnu*) |
| 8914 | version_type=linux |
| 8915 | need_lib_prefix=no |
| 8916 | need_version=no |
| 8917 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 8918 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8919 | shlibpath_var=LD_LIBRARY_PATH |
| 8920 | hardcode_into_libs=yes |
| 8921 | ;; |
| 8922 | |
| 8923 | hpux9* | hpux10* | hpux11*) |
| 8924 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 8925 | # link against other versions. |
| 8926 | version_type=sunos |
| 8927 | need_lib_prefix=no |
| 8928 | need_version=no |
| 8929 | case $host_cpu in |
| 8930 | ia64*) |
| 8931 | shrext_cmds='.so' |
| 8932 | hardcode_into_libs=yes |
| 8933 | dynamic_linker="$host_os dld.so" |
| 8934 | shlibpath_var=LD_LIBRARY_PATH |
| 8935 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8936 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8937 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8938 | if test "X$HPUX_IA64_MODE" = X32; then |
| 8939 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 8940 | else |
| 8941 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 8942 | fi |
| 8943 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8944 | ;; |
| 8945 | hppa*64*) |
| 8946 | shrext_cmds='.sl' |
| 8947 | hardcode_into_libs=yes |
| 8948 | dynamic_linker="$host_os dld.sl" |
| 8949 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 8950 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8951 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8952 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8953 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 8954 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8955 | ;; |
| 8956 | *) |
| 8957 | shrext_cmds='.sl' |
| 8958 | dynamic_linker="$host_os dld.sl" |
| 8959 | shlibpath_var=SHLIB_PATH |
| 8960 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 8961 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8962 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8963 | ;; |
| 8964 | esac |
| 8965 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 8966 | postinstall_cmds='chmod 555 $lib' |
| 8967 | ;; |
| 8968 | |
| 8969 | interix3*) |
| 8970 | version_type=linux |
| 8971 | need_lib_prefix=no |
| 8972 | need_version=no |
| 8973 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8974 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8975 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 8976 | shlibpath_var=LD_LIBRARY_PATH |
| 8977 | shlibpath_overrides_runpath=no |
| 8978 | hardcode_into_libs=yes |
| 8979 | ;; |
| 8980 | |
| 8981 | irix5* | irix6* | nonstopux*) |
| 8982 | case $host_os in |
| 8983 | nonstopux*) version_type=nonstopux ;; |
| 8984 | *) |
| 8985 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 8986 | version_type=linux |
| 8987 | else |
| 8988 | version_type=irix |
| 8989 | fi ;; |
| 8990 | esac |
| 8991 | need_lib_prefix=no |
| 8992 | need_version=no |
| 8993 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8994 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8995 | case $host_os in |
| 8996 | irix5* | nonstopux*) |
| 8997 | libsuff= shlibsuff= |
| 8998 | ;; |
| 8999 | *) |
| 9000 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9001 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9002 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9003 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9004 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9005 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9006 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9007 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9008 | esac |
| 9009 | ;; |
| 9010 | esac |
| 9011 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9012 | shlibpath_overrides_runpath=no |
| 9013 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9014 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9015 | hardcode_into_libs=yes |
| 9016 | ;; |
| 9017 | |
| 9018 | # No shared lib support for Linux oldld, aout, or coff. |
| 9019 | linux*oldld* | linux*aout* | linux*coff*) |
| 9020 | dynamic_linker=no |
| 9021 | ;; |
| 9022 | |
| 9023 | # This must be Linux ELF. |
| 9024 | linux*) |
| 9025 | version_type=linux |
| 9026 | need_lib_prefix=no |
| 9027 | need_version=no |
| 9028 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9029 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9030 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9031 | shlibpath_var=LD_LIBRARY_PATH |
| 9032 | shlibpath_overrides_runpath=no |
| 9033 | # This implies no fast_install, which is unacceptable. |
| 9034 | # Some rework will be needed to allow for fast_install |
| 9035 | # before this can be enabled. |
| 9036 | hardcode_into_libs=yes |
| 9037 | |
| 9038 | # Append ld.so.conf contents to the search path |
| 9039 | if test -f /etc/ld.so.conf; then |
| 9040 | 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' ' '` |
| 9041 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9042 | fi |
| 9043 | |
| 9044 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9045 | # powerpc, because MkLinux only supported shared libraries with the |
| 9046 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9047 | # most powerpc-linux boxes support dynamic linking these days and |
| 9048 | # people can always --disable-shared, the test was removed, and we |
| 9049 | # assume the GNU/Linux dynamic linker is in use. |
| 9050 | dynamic_linker='GNU/Linux ld.so' |
| 9051 | ;; |
| 9052 | |
| 9053 | knetbsd*-gnu) |
| 9054 | version_type=linux |
| 9055 | need_lib_prefix=no |
| 9056 | need_version=no |
| 9057 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9058 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9059 | shlibpath_var=LD_LIBRARY_PATH |
| 9060 | shlibpath_overrides_runpath=no |
| 9061 | hardcode_into_libs=yes |
| 9062 | dynamic_linker='GNU ld.so' |
| 9063 | ;; |
| 9064 | |
| 9065 | netbsd*) |
| 9066 | version_type=sunos |
| 9067 | need_lib_prefix=no |
| 9068 | need_version=no |
| 9069 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9070 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9071 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9072 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9073 | else |
| 9074 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9075 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9076 | dynamic_linker='NetBSD ld.elf_so' |
| 9077 | fi |
| 9078 | shlibpath_var=LD_LIBRARY_PATH |
| 9079 | shlibpath_overrides_runpath=yes |
| 9080 | hardcode_into_libs=yes |
| 9081 | ;; |
| 9082 | |
| 9083 | newsos6) |
| 9084 | version_type=linux |
| 9085 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9086 | shlibpath_var=LD_LIBRARY_PATH |
| 9087 | shlibpath_overrides_runpath=yes |
| 9088 | ;; |
| 9089 | |
| 9090 | nto-qnx*) |
| 9091 | version_type=linux |
| 9092 | need_lib_prefix=no |
| 9093 | need_version=no |
| 9094 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9095 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9096 | shlibpath_var=LD_LIBRARY_PATH |
| 9097 | shlibpath_overrides_runpath=yes |
| 9098 | ;; |
| 9099 | |
| 9100 | openbsd*) |
| 9101 | version_type=sunos |
| 9102 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 9103 | need_lib_prefix=no |
| 9104 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9105 | case $host_os in |
| 9106 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9107 | *) need_version=no ;; |
| 9108 | esac |
| 9109 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9110 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9111 | shlibpath_var=LD_LIBRARY_PATH |
| 9112 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9113 | case $host_os in |
| 9114 | openbsd2.[89] | openbsd2.[89].*) |
| 9115 | shlibpath_overrides_runpath=no |
| 9116 | ;; |
| 9117 | *) |
| 9118 | shlibpath_overrides_runpath=yes |
| 9119 | ;; |
| 9120 | esac |
| 9121 | else |
| 9122 | shlibpath_overrides_runpath=yes |
| 9123 | fi |
| 9124 | ;; |
| 9125 | |
| 9126 | os2*) |
| 9127 | libname_spec='$name' |
| 9128 | shrext_cmds=".dll" |
| 9129 | need_lib_prefix=no |
| 9130 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9131 | dynamic_linker='OS/2 ld.exe' |
| 9132 | shlibpath_var=LIBPATH |
| 9133 | ;; |
| 9134 | |
| 9135 | osf3* | osf4* | osf5*) |
| 9136 | version_type=osf |
| 9137 | need_lib_prefix=no |
| 9138 | need_version=no |
| 9139 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9140 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9141 | shlibpath_var=LD_LIBRARY_PATH |
| 9142 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9143 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9144 | ;; |
| 9145 | |
| 9146 | solaris*) |
| 9147 | version_type=linux |
| 9148 | need_lib_prefix=no |
| 9149 | need_version=no |
| 9150 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9151 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9152 | shlibpath_var=LD_LIBRARY_PATH |
| 9153 | shlibpath_overrides_runpath=yes |
| 9154 | hardcode_into_libs=yes |
| 9155 | # ldd complains unless libraries are executable |
| 9156 | postinstall_cmds='chmod +x $lib' |
| 9157 | ;; |
| 9158 | |
| 9159 | sunos4*) |
| 9160 | version_type=sunos |
| 9161 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9162 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9163 | shlibpath_var=LD_LIBRARY_PATH |
| 9164 | shlibpath_overrides_runpath=yes |
| 9165 | if test "$with_gnu_ld" = yes; then |
| 9166 | need_lib_prefix=no |
| 9167 | fi |
| 9168 | need_version=yes |
| 9169 | ;; |
| 9170 | |
| 9171 | sysv4 | sysv4.3*) |
| 9172 | version_type=linux |
| 9173 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9174 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9175 | shlibpath_var=LD_LIBRARY_PATH |
| 9176 | case $host_vendor in |
| 9177 | sni) |
| 9178 | shlibpath_overrides_runpath=no |
| 9179 | need_lib_prefix=no |
| 9180 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9181 | runpath_var=LD_RUN_PATH |
| 9182 | ;; |
| 9183 | siemens) |
| 9184 | need_lib_prefix=no |
| 9185 | ;; |
| 9186 | motorola) |
| 9187 | need_lib_prefix=no |
| 9188 | need_version=no |
| 9189 | shlibpath_overrides_runpath=no |
| 9190 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9191 | ;; |
| 9192 | esac |
| 9193 | ;; |
| 9194 | |
| 9195 | sysv4*MP*) |
| 9196 | if test -d /usr/nec ;then |
| 9197 | version_type=linux |
| 9198 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9199 | soname_spec='$libname${shared_ext}.$major' |
| 9200 | shlibpath_var=LD_LIBRARY_PATH |
| 9201 | fi |
| 9202 | ;; |
| 9203 | |
| 9204 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9205 | version_type=freebsd-elf |
| 9206 | need_lib_prefix=no |
| 9207 | need_version=no |
| 9208 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9209 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9210 | shlibpath_var=LD_LIBRARY_PATH |
| 9211 | hardcode_into_libs=yes |
| 9212 | if test "$with_gnu_ld" = yes; then |
| 9213 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9214 | shlibpath_overrides_runpath=no |
| 9215 | else |
| 9216 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9217 | shlibpath_overrides_runpath=yes |
| 9218 | case $host_os in |
| 9219 | sco3.2v5*) |
| 9220 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9221 | ;; |
| 9222 | esac |
| 9223 | fi |
| 9224 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9225 | ;; |
| 9226 | |
| 9227 | uts4*) |
| 9228 | version_type=linux |
| 9229 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9230 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9231 | shlibpath_var=LD_LIBRARY_PATH |
| 9232 | ;; |
| 9233 | |
| 9234 | *) |
| 9235 | dynamic_linker=no |
| 9236 | ;; |
| 9237 | esac |
| 9238 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9239 | echo "${ECHO_T}$dynamic_linker" >&6; } |
| 9240 | test "$dynamic_linker" = no && can_build_shared=no |
| 9241 | |
| 9242 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9243 | if test "$GCC" = yes; then |
| 9244 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9245 | fi |
| 9246 | |
| 9247 | |
| 9248 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9249 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
| 9250 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9252 | else |
| 9253 | |
| 9254 | module=yes |
| 9255 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9256 | |
| 9257 | fi |
| 9258 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9259 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
| 9260 | if test -n "$libltdl_cv_shlibext"; then |
| 9261 | |
| 9262 | cat >>confdefs.h <<_ACEOF |
| 9263 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9264 | _ACEOF |
| 9265 | |
| 9266 | fi |
| 9267 | |
| 9268 | |
| 9269 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9270 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
| 9271 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9273 | else |
| 9274 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9275 | fi |
| 9276 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9277 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
| 9278 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9279 | |
| 9280 | cat >>confdefs.h <<_ACEOF |
| 9281 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9282 | _ACEOF |
| 9283 | |
| 9284 | fi |
| 9285 | |
| 9286 | |
| 9287 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9288 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
| 9289 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9291 | else |
| 9292 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9293 | fi |
| 9294 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9295 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
| 9296 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9297 | sys_search_path= |
| 9298 | for dir in $libltdl_cv_sys_search_path; do |
| 9299 | if test -z "$sys_search_path"; then |
| 9300 | sys_search_path="$dir" |
| 9301 | else |
| 9302 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9303 | fi |
| 9304 | done |
| 9305 | |
| 9306 | cat >>confdefs.h <<_ACEOF |
| 9307 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9308 | _ACEOF |
| 9309 | |
| 9310 | fi |
| 9311 | |
| 9312 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9313 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
| 9314 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9316 | else |
| 9317 | libltdl_cv_objdir="$objdir" |
| 9318 | if test -n "$objdir"; then |
| 9319 | : |
| 9320 | else |
| 9321 | rm -f .libs 2>/dev/null |
| 9322 | mkdir .libs 2>/dev/null |
| 9323 | if test -d .libs; then |
| 9324 | libltdl_cv_objdir=.libs |
| 9325 | else |
| 9326 | # MS-DOS does not allow filenames that begin with a dot. |
| 9327 | libltdl_cv_objdir=_libs |
| 9328 | fi |
| 9329 | rmdir .libs 2>/dev/null |
| 9330 | fi |
| 9331 | |
| 9332 | fi |
| 9333 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9334 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
| 9335 | |
| 9336 | cat >>confdefs.h <<_ACEOF |
| 9337 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9338 | _ACEOF |
| 9339 | |
| 9340 | |
| 9341 | |
| 9342 | |
| 9343 | |
| 9344 | |
| 9345 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 9346 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9347 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
| 9348 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9350 | else |
| 9351 | |
| 9352 | # These are sane defaults that work on at least a few old systems. |
| 9353 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9354 | |
| 9355 | # Character class describing NM global symbol codes. |
| 9356 | symcode='[BCDEGRST]' |
| 9357 | |
| 9358 | # Regexp to match symbols that can be accessed directly from C. |
| 9359 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9360 | |
| 9361 | # Transform an extracted symbol line into a proper C declaration |
| 9362 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9363 | |
| 9364 | # Transform an extracted symbol line into symbol name and symbol address |
| 9365 | 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'" |
| 9366 | |
| 9367 | # Define system-specific variables. |
| 9368 | case $host_os in |
| 9369 | aix*) |
| 9370 | symcode='[BCDT]' |
| 9371 | ;; |
| 9372 | cygwin* | mingw* | pw32*) |
| 9373 | symcode='[ABCDGISTW]' |
| 9374 | ;; |
| 9375 | hpux*) # Its linker distinguishes data from code symbols |
| 9376 | if test "$host_cpu" = ia64; then |
| 9377 | symcode='[ABCDEGRST]' |
| 9378 | fi |
| 9379 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9380 | 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'" |
| 9381 | ;; |
| 9382 | linux*) |
| 9383 | if test "$host_cpu" = ia64; then |
| 9384 | symcode='[ABCDGIRSTW]' |
| 9385 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9386 | 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'" |
| 9387 | fi |
| 9388 | ;; |
| 9389 | irix* | nonstopux*) |
| 9390 | symcode='[BCDEGRST]' |
| 9391 | ;; |
| 9392 | osf*) |
| 9393 | symcode='[BCDEGQRST]' |
| 9394 | ;; |
| 9395 | solaris*) |
| 9396 | symcode='[BDRT]' |
| 9397 | ;; |
| 9398 | sco3.2v5*) |
| 9399 | symcode='[DT]' |
| 9400 | ;; |
| 9401 | sysv4.2uw2*) |
| 9402 | symcode='[DT]' |
| 9403 | ;; |
| 9404 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9405 | symcode='[ABDT]' |
| 9406 | ;; |
| 9407 | sysv4) |
| 9408 | symcode='[DFNSTU]' |
| 9409 | ;; |
| 9410 | esac |
| 9411 | |
| 9412 | # Handle CRLF in mingw tool chain |
| 9413 | opt_cr= |
| 9414 | case $build_os in |
| 9415 | mingw*) |
| 9416 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9417 | ;; |
| 9418 | esac |
| 9419 | |
| 9420 | # If we're using GNU nm, then use its standard symbol codes. |
| 9421 | case `$NM -V 2>&1` in |
| 9422 | *GNU* | *'with BFD'*) |
| 9423 | symcode='[ABCDGIRSTW]' ;; |
| 9424 | esac |
| 9425 | |
| 9426 | # Try without a prefix undercore, then with it. |
| 9427 | for ac_symprfx in "" "_"; do |
| 9428 | |
| 9429 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9430 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9431 | |
| 9432 | # Write the raw and C identifiers. |
| 9433 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 9434 | |
| 9435 | # Check to see that the pipe works correctly. |
| 9436 | pipe_works=no |
| 9437 | |
| 9438 | rm -f conftest* |
| 9439 | cat > conftest.$ac_ext <<EOF |
| 9440 | #ifdef __cplusplus |
| 9441 | extern "C" { |
| 9442 | #endif |
| 9443 | char nm_test_var; |
| 9444 | void nm_test_func(){} |
| 9445 | #ifdef __cplusplus |
| 9446 | } |
| 9447 | #endif |
| 9448 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9449 | EOF |
| 9450 | |
| 9451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9452 | (eval $ac_compile) 2>&5 |
| 9453 | ac_status=$? |
| 9454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9455 | (exit $ac_status); }; then |
| 9456 | # Now try to grab the symbols. |
| 9457 | nlist=conftest.nm |
| 9458 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 9459 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9460 | ac_status=$? |
| 9461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9462 | (exit $ac_status); } && test -s "$nlist"; then |
| 9463 | # Try sorting and uniquifying the output. |
| 9464 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9465 | mv -f "$nlist"T "$nlist" |
| 9466 | else |
| 9467 | rm -f "$nlist"T |
| 9468 | fi |
| 9469 | |
| 9470 | # Make sure that we snagged all the symbols we need. |
| 9471 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 9472 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 9473 | cat <<EOF > conftest.$ac_ext |
| 9474 | #ifdef __cplusplus |
| 9475 | extern "C" { |
| 9476 | #endif |
| 9477 | |
| 9478 | EOF |
| 9479 | # Now generate the symbol file. |
| 9480 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 9481 | |
| 9482 | cat <<EOF >> conftest.$ac_ext |
| 9483 | #if defined (__STDC__) && __STDC__ |
| 9484 | # define lt_ptr_t void * |
| 9485 | #else |
| 9486 | # define lt_ptr_t char * |
| 9487 | # define const |
| 9488 | #endif |
| 9489 | |
| 9490 | /* The mapping between symbol names and symbols. */ |
| 9491 | const struct { |
| 9492 | const char *name; |
| 9493 | lt_ptr_t address; |
| 9494 | } |
| 9495 | lt_preloaded_symbols[] = |
| 9496 | { |
| 9497 | EOF |
| 9498 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 9499 | cat <<\EOF >> conftest.$ac_ext |
| 9500 | {0, (lt_ptr_t) 0} |
| 9501 | }; |
| 9502 | |
| 9503 | #ifdef __cplusplus |
| 9504 | } |
| 9505 | #endif |
| 9506 | EOF |
| 9507 | # Now try linking the two files. |
| 9508 | mv conftest.$ac_objext conftstm.$ac_objext |
| 9509 | lt_save_LIBS="$LIBS" |
| 9510 | lt_save_CFLAGS="$CFLAGS" |
| 9511 | LIBS="conftstm.$ac_objext" |
| 9512 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 9513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9514 | (eval $ac_link) 2>&5 |
| 9515 | ac_status=$? |
| 9516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9517 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 9518 | pipe_works=yes |
| 9519 | fi |
| 9520 | LIBS="$lt_save_LIBS" |
| 9521 | CFLAGS="$lt_save_CFLAGS" |
| 9522 | else |
| 9523 | echo "cannot find nm_test_func in $nlist" >&5 |
| 9524 | fi |
| 9525 | else |
| 9526 | echo "cannot find nm_test_var in $nlist" >&5 |
| 9527 | fi |
| 9528 | else |
| 9529 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9530 | fi |
| 9531 | else |
| 9532 | echo "$progname: failed program was:" >&5 |
| 9533 | cat conftest.$ac_ext >&5 |
| 9534 | fi |
| 9535 | rm -f conftest* conftst* |
| 9536 | |
| 9537 | # Do not use the global_symbol_pipe unless it works. |
| 9538 | if test "$pipe_works" = yes; then |
| 9539 | break |
| 9540 | else |
| 9541 | lt_cv_sys_global_symbol_pipe= |
| 9542 | fi |
| 9543 | done |
| 9544 | |
| 9545 | fi |
| 9546 | |
| 9547 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9548 | lt_cv_sys_global_symbol_to_cdecl= |
| 9549 | fi |
| 9550 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 9551 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 9552 | echo "${ECHO_T}failed" >&6; } |
| 9553 | else |
| 9554 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 9555 | echo "${ECHO_T}ok" >&6; } |
| 9556 | fi |
| 9557 | |
| 9558 | |
| 9559 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 9560 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
| 9561 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 9562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9563 | else |
| 9564 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 9565 | libltdl_cv_preloaded_symbols=yes |
| 9566 | else |
| 9567 | libltdl_cv_preloaded_symbols=no |
| 9568 | fi |
| 9569 | |
| 9570 | fi |
| 9571 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 9572 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
| 9573 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 9574 | |
| 9575 | cat >>confdefs.h <<\_ACEOF |
| 9576 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 9577 | _ACEOF |
| 9578 | |
| 9579 | fi |
| 9580 | |
| 9581 | LIBADD_DL= |
| 9582 | |
| 9583 | ac_ext=c |
| 9584 | ac_cpp='$CPP $CPPFLAGS' |
| 9585 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9586 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9587 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9588 | |
| 9589 | |
| 9590 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9591 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
| 9592 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9594 | else |
| 9595 | cat >conftest.$ac_ext <<_ACEOF |
| 9596 | /* confdefs.h. */ |
| 9597 | _ACEOF |
| 9598 | cat confdefs.h >>conftest.$ac_ext |
| 9599 | cat >>conftest.$ac_ext <<_ACEOF |
| 9600 | /* end confdefs.h. */ |
| 9601 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9602 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9603 | #define shl_load innocuous_shl_load |
| 9604 | |
| 9605 | /* System header to define __stub macros and hopefully few prototypes, |
| 9606 | which can conflict with char shl_load (); below. |
| 9607 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9608 | <limits.h> exists even on freestanding compilers. */ |
| 9609 | |
| 9610 | #ifdef __STDC__ |
| 9611 | # include <limits.h> |
| 9612 | #else |
| 9613 | # include <assert.h> |
| 9614 | #endif |
| 9615 | |
| 9616 | #undef shl_load |
| 9617 | |
| 9618 | /* Override any GCC internal prototype to avoid an error. |
| 9619 | Use char because int might match the return type of a GCC |
| 9620 | builtin and then its argument prototype would still apply. */ |
| 9621 | #ifdef __cplusplus |
| 9622 | extern "C" |
| 9623 | #endif |
| 9624 | char shl_load (); |
| 9625 | /* The GNU C library defines this for functions which it implements |
| 9626 | to always fail with ENOSYS. Some functions are actually named |
| 9627 | something starting with __ and the normal name is an alias. */ |
| 9628 | #if defined __stub_shl_load || defined __stub___shl_load |
| 9629 | choke me |
| 9630 | #endif |
| 9631 | |
| 9632 | int |
| 9633 | main () |
| 9634 | { |
| 9635 | return shl_load (); |
| 9636 | ; |
| 9637 | return 0; |
| 9638 | } |
| 9639 | _ACEOF |
| 9640 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9641 | if { (ac_try="$ac_link" |
| 9642 | case "(($ac_try" in |
| 9643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9644 | *) ac_try_echo=$ac_try;; |
| 9645 | esac |
| 9646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9647 | (eval "$ac_link") 2>conftest.er1 |
| 9648 | ac_status=$? |
| 9649 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9650 | rm -f conftest.er1 |
| 9651 | cat conftest.err >&5 |
| 9652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9653 | (exit $ac_status); } && |
| 9654 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9655 | { (case "(($ac_try" in |
| 9656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9657 | *) ac_try_echo=$ac_try;; |
| 9658 | esac |
| 9659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9660 | (eval "$ac_try") 2>&5 |
| 9661 | ac_status=$? |
| 9662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9663 | (exit $ac_status); }; } && |
| 9664 | { ac_try='test -s conftest$ac_exeext' |
| 9665 | { (case "(($ac_try" in |
| 9666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9667 | *) ac_try_echo=$ac_try;; |
| 9668 | esac |
| 9669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9670 | (eval "$ac_try") 2>&5 |
| 9671 | ac_status=$? |
| 9672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9673 | (exit $ac_status); }; }; then |
| 9674 | ac_cv_func_shl_load=yes |
| 9675 | else |
| 9676 | echo "$as_me: failed program was:" >&5 |
| 9677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9678 | |
| 9679 | ac_cv_func_shl_load=no |
| 9680 | fi |
| 9681 | |
| 9682 | rm -f core conftest.err conftest.$ac_objext \ |
| 9683 | conftest$ac_exeext conftest.$ac_ext |
| 9684 | fi |
| 9685 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9686 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
| 9687 | if test $ac_cv_func_shl_load = yes; then |
| 9688 | |
| 9689 | cat >>confdefs.h <<\_ACEOF |
| 9690 | #define HAVE_SHL_LOAD 1 |
| 9691 | _ACEOF |
| 9692 | |
| 9693 | else |
| 9694 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9695 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
| 9696 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9698 | else |
| 9699 | ac_check_lib_save_LIBS=$LIBS |
| 9700 | LIBS="-ldld $LIBS" |
| 9701 | cat >conftest.$ac_ext <<_ACEOF |
| 9702 | /* confdefs.h. */ |
| 9703 | _ACEOF |
| 9704 | cat confdefs.h >>conftest.$ac_ext |
| 9705 | cat >>conftest.$ac_ext <<_ACEOF |
| 9706 | /* end confdefs.h. */ |
| 9707 | |
| 9708 | /* Override any GCC internal prototype to avoid an error. |
| 9709 | Use char because int might match the return type of a GCC |
| 9710 | builtin and then its argument prototype would still apply. */ |
| 9711 | #ifdef __cplusplus |
| 9712 | extern "C" |
| 9713 | #endif |
| 9714 | char shl_load (); |
| 9715 | int |
| 9716 | main () |
| 9717 | { |
| 9718 | return shl_load (); |
| 9719 | ; |
| 9720 | return 0; |
| 9721 | } |
| 9722 | _ACEOF |
| 9723 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9724 | if { (ac_try="$ac_link" |
| 9725 | case "(($ac_try" in |
| 9726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9727 | *) ac_try_echo=$ac_try;; |
| 9728 | esac |
| 9729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9730 | (eval "$ac_link") 2>conftest.er1 |
| 9731 | ac_status=$? |
| 9732 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9733 | rm -f conftest.er1 |
| 9734 | cat conftest.err >&5 |
| 9735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9736 | (exit $ac_status); } && |
| 9737 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9738 | { (case "(($ac_try" in |
| 9739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9740 | *) ac_try_echo=$ac_try;; |
| 9741 | esac |
| 9742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9743 | (eval "$ac_try") 2>&5 |
| 9744 | ac_status=$? |
| 9745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9746 | (exit $ac_status); }; } && |
| 9747 | { ac_try='test -s conftest$ac_exeext' |
| 9748 | { (case "(($ac_try" in |
| 9749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9750 | *) ac_try_echo=$ac_try;; |
| 9751 | esac |
| 9752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9753 | (eval "$ac_try") 2>&5 |
| 9754 | ac_status=$? |
| 9755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9756 | (exit $ac_status); }; }; then |
| 9757 | ac_cv_lib_dld_shl_load=yes |
| 9758 | else |
| 9759 | echo "$as_me: failed program was:" >&5 |
| 9760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9761 | |
| 9762 | ac_cv_lib_dld_shl_load=no |
| 9763 | fi |
| 9764 | |
| 9765 | rm -f core conftest.err conftest.$ac_objext \ |
| 9766 | conftest$ac_exeext conftest.$ac_ext |
| 9767 | LIBS=$ac_check_lib_save_LIBS |
| 9768 | fi |
| 9769 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9770 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
| 9771 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9772 | |
| 9773 | cat >>confdefs.h <<\_ACEOF |
| 9774 | #define HAVE_SHL_LOAD 1 |
| 9775 | _ACEOF |
| 9776 | |
| 9777 | LIBADD_DL="$LIBADD_DL -ldld" |
| 9778 | else |
| 9779 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9780 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
| 9781 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9783 | else |
| 9784 | ac_check_lib_save_LIBS=$LIBS |
| 9785 | LIBS="-ldl $LIBS" |
| 9786 | cat >conftest.$ac_ext <<_ACEOF |
| 9787 | /* confdefs.h. */ |
| 9788 | _ACEOF |
| 9789 | cat confdefs.h >>conftest.$ac_ext |
| 9790 | cat >>conftest.$ac_ext <<_ACEOF |
| 9791 | /* end confdefs.h. */ |
| 9792 | |
| 9793 | /* Override any GCC internal prototype to avoid an error. |
| 9794 | Use char because int might match the return type of a GCC |
| 9795 | builtin and then its argument prototype would still apply. */ |
| 9796 | #ifdef __cplusplus |
| 9797 | extern "C" |
| 9798 | #endif |
| 9799 | char dlopen (); |
| 9800 | int |
| 9801 | main () |
| 9802 | { |
| 9803 | return dlopen (); |
| 9804 | ; |
| 9805 | return 0; |
| 9806 | } |
| 9807 | _ACEOF |
| 9808 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9809 | if { (ac_try="$ac_link" |
| 9810 | case "(($ac_try" in |
| 9811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9812 | *) ac_try_echo=$ac_try;; |
| 9813 | esac |
| 9814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9815 | (eval "$ac_link") 2>conftest.er1 |
| 9816 | ac_status=$? |
| 9817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9818 | rm -f conftest.er1 |
| 9819 | cat conftest.err >&5 |
| 9820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9821 | (exit $ac_status); } && |
| 9822 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9823 | { (case "(($ac_try" in |
| 9824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9825 | *) ac_try_echo=$ac_try;; |
| 9826 | esac |
| 9827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9828 | (eval "$ac_try") 2>&5 |
| 9829 | ac_status=$? |
| 9830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9831 | (exit $ac_status); }; } && |
| 9832 | { ac_try='test -s conftest$ac_exeext' |
| 9833 | { (case "(($ac_try" in |
| 9834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9835 | *) ac_try_echo=$ac_try;; |
| 9836 | esac |
| 9837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9838 | (eval "$ac_try") 2>&5 |
| 9839 | ac_status=$? |
| 9840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9841 | (exit $ac_status); }; }; then |
| 9842 | ac_cv_lib_dl_dlopen=yes |
| 9843 | else |
| 9844 | echo "$as_me: failed program was:" >&5 |
| 9845 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9846 | |
| 9847 | ac_cv_lib_dl_dlopen=no |
| 9848 | fi |
| 9849 | |
| 9850 | rm -f core conftest.err conftest.$ac_objext \ |
| 9851 | conftest$ac_exeext conftest.$ac_ext |
| 9852 | LIBS=$ac_check_lib_save_LIBS |
| 9853 | fi |
| 9854 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9855 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
| 9856 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9857 | |
| 9858 | cat >>confdefs.h <<\_ACEOF |
| 9859 | #define HAVE_LIBDL 1 |
| 9860 | _ACEOF |
| 9861 | |
| 9862 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 9863 | else |
| 9864 | cat >conftest.$ac_ext <<_ACEOF |
| 9865 | /* confdefs.h. */ |
| 9866 | _ACEOF |
| 9867 | cat confdefs.h >>conftest.$ac_ext |
| 9868 | cat >>conftest.$ac_ext <<_ACEOF |
| 9869 | /* end confdefs.h. */ |
| 9870 | #if HAVE_DLFCN_H |
| 9871 | # include <dlfcn.h> |
| 9872 | #endif |
| 9873 | |
| 9874 | int |
| 9875 | main () |
| 9876 | { |
| 9877 | dlopen(0, 0); |
| 9878 | ; |
| 9879 | return 0; |
| 9880 | } |
| 9881 | _ACEOF |
| 9882 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9883 | if { (ac_try="$ac_link" |
| 9884 | case "(($ac_try" in |
| 9885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9886 | *) ac_try_echo=$ac_try;; |
| 9887 | esac |
| 9888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9889 | (eval "$ac_link") 2>conftest.er1 |
| 9890 | ac_status=$? |
| 9891 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9892 | rm -f conftest.er1 |
| 9893 | cat conftest.err >&5 |
| 9894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9895 | (exit $ac_status); } && |
| 9896 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9897 | { (case "(($ac_try" in |
| 9898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9899 | *) ac_try_echo=$ac_try;; |
| 9900 | esac |
| 9901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9902 | (eval "$ac_try") 2>&5 |
| 9903 | ac_status=$? |
| 9904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9905 | (exit $ac_status); }; } && |
| 9906 | { ac_try='test -s conftest$ac_exeext' |
| 9907 | { (case "(($ac_try" in |
| 9908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9909 | *) ac_try_echo=$ac_try;; |
| 9910 | esac |
| 9911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9912 | (eval "$ac_try") 2>&5 |
| 9913 | ac_status=$? |
| 9914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9915 | (exit $ac_status); }; }; then |
| 9916 | |
| 9917 | cat >>confdefs.h <<\_ACEOF |
| 9918 | #define HAVE_LIBDL 1 |
| 9919 | _ACEOF |
| 9920 | libltdl_cv_func_dlopen="yes" |
| 9921 | else |
| 9922 | echo "$as_me: failed program was:" >&5 |
| 9923 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9924 | |
| 9925 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 9926 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
| 9927 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 9928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9929 | else |
| 9930 | ac_check_lib_save_LIBS=$LIBS |
| 9931 | LIBS="-lsvld $LIBS" |
| 9932 | cat >conftest.$ac_ext <<_ACEOF |
| 9933 | /* confdefs.h. */ |
| 9934 | _ACEOF |
| 9935 | cat confdefs.h >>conftest.$ac_ext |
| 9936 | cat >>conftest.$ac_ext <<_ACEOF |
| 9937 | /* end confdefs.h. */ |
| 9938 | |
| 9939 | /* Override any GCC internal prototype to avoid an error. |
| 9940 | Use char because int might match the return type of a GCC |
| 9941 | builtin and then its argument prototype would still apply. */ |
| 9942 | #ifdef __cplusplus |
| 9943 | extern "C" |
| 9944 | #endif |
| 9945 | char dlopen (); |
| 9946 | int |
| 9947 | main () |
| 9948 | { |
| 9949 | return dlopen (); |
| 9950 | ; |
| 9951 | return 0; |
| 9952 | } |
| 9953 | _ACEOF |
| 9954 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9955 | if { (ac_try="$ac_link" |
| 9956 | case "(($ac_try" in |
| 9957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9958 | *) ac_try_echo=$ac_try;; |
| 9959 | esac |
| 9960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9961 | (eval "$ac_link") 2>conftest.er1 |
| 9962 | ac_status=$? |
| 9963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9964 | rm -f conftest.er1 |
| 9965 | cat conftest.err >&5 |
| 9966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9967 | (exit $ac_status); } && |
| 9968 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9969 | { (case "(($ac_try" in |
| 9970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9971 | *) ac_try_echo=$ac_try;; |
| 9972 | esac |
| 9973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9974 | (eval "$ac_try") 2>&5 |
| 9975 | ac_status=$? |
| 9976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9977 | (exit $ac_status); }; } && |
| 9978 | { ac_try='test -s conftest$ac_exeext' |
| 9979 | { (case "(($ac_try" in |
| 9980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9981 | *) ac_try_echo=$ac_try;; |
| 9982 | esac |
| 9983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9984 | (eval "$ac_try") 2>&5 |
| 9985 | ac_status=$? |
| 9986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9987 | (exit $ac_status); }; }; then |
| 9988 | ac_cv_lib_svld_dlopen=yes |
| 9989 | else |
| 9990 | echo "$as_me: failed program was:" >&5 |
| 9991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9992 | |
| 9993 | ac_cv_lib_svld_dlopen=no |
| 9994 | fi |
| 9995 | |
| 9996 | rm -f core conftest.err conftest.$ac_objext \ |
| 9997 | conftest$ac_exeext conftest.$ac_ext |
| 9998 | LIBS=$ac_check_lib_save_LIBS |
| 9999 | fi |
| 10000 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10001 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
| 10002 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 10003 | |
| 10004 | cat >>confdefs.h <<\_ACEOF |
| 10005 | #define HAVE_LIBDL 1 |
| 10006 | _ACEOF |
| 10007 | |
| 10008 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 10009 | else |
| 10010 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10011 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
| 10012 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10014 | else |
| 10015 | ac_check_lib_save_LIBS=$LIBS |
| 10016 | LIBS="-ldld $LIBS" |
| 10017 | cat >conftest.$ac_ext <<_ACEOF |
| 10018 | /* confdefs.h. */ |
| 10019 | _ACEOF |
| 10020 | cat confdefs.h >>conftest.$ac_ext |
| 10021 | cat >>conftest.$ac_ext <<_ACEOF |
| 10022 | /* end confdefs.h. */ |
| 10023 | |
| 10024 | /* Override any GCC internal prototype to avoid an error. |
| 10025 | Use char because int might match the return type of a GCC |
| 10026 | builtin and then its argument prototype would still apply. */ |
| 10027 | #ifdef __cplusplus |
| 10028 | extern "C" |
| 10029 | #endif |
| 10030 | char dld_link (); |
| 10031 | int |
| 10032 | main () |
| 10033 | { |
| 10034 | return dld_link (); |
| 10035 | ; |
| 10036 | return 0; |
| 10037 | } |
| 10038 | _ACEOF |
| 10039 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10040 | if { (ac_try="$ac_link" |
| 10041 | case "(($ac_try" in |
| 10042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10043 | *) ac_try_echo=$ac_try;; |
| 10044 | esac |
| 10045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10046 | (eval "$ac_link") 2>conftest.er1 |
| 10047 | ac_status=$? |
| 10048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10049 | rm -f conftest.er1 |
| 10050 | cat conftest.err >&5 |
| 10051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10052 | (exit $ac_status); } && |
| 10053 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10054 | { (case "(($ac_try" in |
| 10055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10056 | *) ac_try_echo=$ac_try;; |
| 10057 | esac |
| 10058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10059 | (eval "$ac_try") 2>&5 |
| 10060 | ac_status=$? |
| 10061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10062 | (exit $ac_status); }; } && |
| 10063 | { ac_try='test -s conftest$ac_exeext' |
| 10064 | { (case "(($ac_try" in |
| 10065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10066 | *) ac_try_echo=$ac_try;; |
| 10067 | esac |
| 10068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10069 | (eval "$ac_try") 2>&5 |
| 10070 | ac_status=$? |
| 10071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10072 | (exit $ac_status); }; }; then |
| 10073 | ac_cv_lib_dld_dld_link=yes |
| 10074 | else |
| 10075 | echo "$as_me: failed program was:" >&5 |
| 10076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10077 | |
| 10078 | ac_cv_lib_dld_dld_link=no |
| 10079 | fi |
| 10080 | |
| 10081 | rm -f core conftest.err conftest.$ac_objext \ |
| 10082 | conftest$ac_exeext conftest.$ac_ext |
| 10083 | LIBS=$ac_check_lib_save_LIBS |
| 10084 | fi |
| 10085 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10086 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
| 10087 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 10088 | |
| 10089 | cat >>confdefs.h <<\_ACEOF |
| 10090 | #define HAVE_DLD 1 |
| 10091 | _ACEOF |
| 10092 | |
| 10093 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10094 | else |
| 10095 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10096 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
| 10097 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10099 | else |
| 10100 | cat >conftest.$ac_ext <<_ACEOF |
| 10101 | /* confdefs.h. */ |
| 10102 | _ACEOF |
| 10103 | cat confdefs.h >>conftest.$ac_ext |
| 10104 | cat >>conftest.$ac_ext <<_ACEOF |
| 10105 | /* end confdefs.h. */ |
| 10106 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10107 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10108 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
| 10109 | |
| 10110 | /* System header to define __stub macros and hopefully few prototypes, |
| 10111 | which can conflict with char _dyld_func_lookup (); below. |
| 10112 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10113 | <limits.h> exists even on freestanding compilers. */ |
| 10114 | |
| 10115 | #ifdef __STDC__ |
| 10116 | # include <limits.h> |
| 10117 | #else |
| 10118 | # include <assert.h> |
| 10119 | #endif |
| 10120 | |
| 10121 | #undef _dyld_func_lookup |
| 10122 | |
| 10123 | /* Override any GCC internal prototype to avoid an error. |
| 10124 | Use char because int might match the return type of a GCC |
| 10125 | builtin and then its argument prototype would still apply. */ |
| 10126 | #ifdef __cplusplus |
| 10127 | extern "C" |
| 10128 | #endif |
| 10129 | char _dyld_func_lookup (); |
| 10130 | /* The GNU C library defines this for functions which it implements |
| 10131 | to always fail with ENOSYS. Some functions are actually named |
| 10132 | something starting with __ and the normal name is an alias. */ |
| 10133 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
| 10134 | choke me |
| 10135 | #endif |
| 10136 | |
| 10137 | int |
| 10138 | main () |
| 10139 | { |
| 10140 | return _dyld_func_lookup (); |
| 10141 | ; |
| 10142 | return 0; |
| 10143 | } |
| 10144 | _ACEOF |
| 10145 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10146 | if { (ac_try="$ac_link" |
| 10147 | case "(($ac_try" in |
| 10148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10149 | *) ac_try_echo=$ac_try;; |
| 10150 | esac |
| 10151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10152 | (eval "$ac_link") 2>conftest.er1 |
| 10153 | ac_status=$? |
| 10154 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10155 | rm -f conftest.er1 |
| 10156 | cat conftest.err >&5 |
| 10157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10158 | (exit $ac_status); } && |
| 10159 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10160 | { (case "(($ac_try" in |
| 10161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10162 | *) ac_try_echo=$ac_try;; |
| 10163 | esac |
| 10164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10165 | (eval "$ac_try") 2>&5 |
| 10166 | ac_status=$? |
| 10167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10168 | (exit $ac_status); }; } && |
| 10169 | { ac_try='test -s conftest$ac_exeext' |
| 10170 | { (case "(($ac_try" in |
| 10171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10172 | *) ac_try_echo=$ac_try;; |
| 10173 | esac |
| 10174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10175 | (eval "$ac_try") 2>&5 |
| 10176 | ac_status=$? |
| 10177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10178 | (exit $ac_status); }; }; then |
| 10179 | ac_cv_func__dyld_func_lookup=yes |
| 10180 | else |
| 10181 | echo "$as_me: failed program was:" >&5 |
| 10182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10183 | |
| 10184 | ac_cv_func__dyld_func_lookup=no |
| 10185 | fi |
| 10186 | |
| 10187 | rm -f core conftest.err conftest.$ac_objext \ |
| 10188 | conftest$ac_exeext conftest.$ac_ext |
| 10189 | fi |
| 10190 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10191 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
| 10192 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10193 | |
| 10194 | cat >>confdefs.h <<\_ACEOF |
| 10195 | #define HAVE_DYLD 1 |
| 10196 | _ACEOF |
| 10197 | |
| 10198 | fi |
| 10199 | |
| 10200 | |
| 10201 | fi |
| 10202 | |
| 10203 | |
| 10204 | fi |
| 10205 | |
| 10206 | |
| 10207 | fi |
| 10208 | |
| 10209 | rm -f core conftest.err conftest.$ac_objext \ |
| 10210 | conftest$ac_exeext conftest.$ac_ext |
| 10211 | |
| 10212 | fi |
| 10213 | |
| 10214 | |
| 10215 | fi |
| 10216 | |
| 10217 | |
| 10218 | fi |
| 10219 | |
| 10220 | |
| 10221 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10222 | then |
| 10223 | lt_save_LIBS="$LIBS" |
| 10224 | LIBS="$LIBS $LIBADD_DL" |
| 10225 | |
| 10226 | for ac_func in dlerror |
| 10227 | do |
| 10228 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10229 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10230 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10231 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10233 | else |
| 10234 | cat >conftest.$ac_ext <<_ACEOF |
| 10235 | /* confdefs.h. */ |
| 10236 | _ACEOF |
| 10237 | cat confdefs.h >>conftest.$ac_ext |
| 10238 | cat >>conftest.$ac_ext <<_ACEOF |
| 10239 | /* end confdefs.h. */ |
| 10240 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10241 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10242 | #define $ac_func innocuous_$ac_func |
| 10243 | |
| 10244 | /* System header to define __stub macros and hopefully few prototypes, |
| 10245 | which can conflict with char $ac_func (); below. |
| 10246 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10247 | <limits.h> exists even on freestanding compilers. */ |
| 10248 | |
| 10249 | #ifdef __STDC__ |
| 10250 | # include <limits.h> |
| 10251 | #else |
| 10252 | # include <assert.h> |
| 10253 | #endif |
| 10254 | |
| 10255 | #undef $ac_func |
| 10256 | |
| 10257 | /* Override any GCC internal prototype to avoid an error. |
| 10258 | Use char because int might match the return type of a GCC |
| 10259 | builtin and then its argument prototype would still apply. */ |
| 10260 | #ifdef __cplusplus |
| 10261 | extern "C" |
| 10262 | #endif |
| 10263 | char $ac_func (); |
| 10264 | /* The GNU C library defines this for functions which it implements |
| 10265 | to always fail with ENOSYS. Some functions are actually named |
| 10266 | something starting with __ and the normal name is an alias. */ |
| 10267 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 10268 | choke me |
| 10269 | #endif |
| 10270 | |
| 10271 | int |
| 10272 | main () |
| 10273 | { |
| 10274 | return $ac_func (); |
| 10275 | ; |
| 10276 | return 0; |
| 10277 | } |
| 10278 | _ACEOF |
| 10279 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10280 | if { (ac_try="$ac_link" |
| 10281 | case "(($ac_try" in |
| 10282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10283 | *) ac_try_echo=$ac_try;; |
| 10284 | esac |
| 10285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10286 | (eval "$ac_link") 2>conftest.er1 |
| 10287 | ac_status=$? |
| 10288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10289 | rm -f conftest.er1 |
| 10290 | cat conftest.err >&5 |
| 10291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10292 | (exit $ac_status); } && |
| 10293 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10294 | { (case "(($ac_try" in |
| 10295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10296 | *) ac_try_echo=$ac_try;; |
| 10297 | esac |
| 10298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10299 | (eval "$ac_try") 2>&5 |
| 10300 | ac_status=$? |
| 10301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10302 | (exit $ac_status); }; } && |
| 10303 | { ac_try='test -s conftest$ac_exeext' |
| 10304 | { (case "(($ac_try" in |
| 10305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10306 | *) ac_try_echo=$ac_try;; |
| 10307 | esac |
| 10308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10309 | (eval "$ac_try") 2>&5 |
| 10310 | ac_status=$? |
| 10311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10312 | (exit $ac_status); }; }; then |
| 10313 | eval "$as_ac_var=yes" |
| 10314 | else |
| 10315 | echo "$as_me: failed program was:" >&5 |
| 10316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10317 | |
| 10318 | eval "$as_ac_var=no" |
| 10319 | fi |
| 10320 | |
| 10321 | rm -f core conftest.err conftest.$ac_objext \ |
| 10322 | conftest$ac_exeext conftest.$ac_ext |
| 10323 | fi |
| 10324 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10325 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10326 | echo "${ECHO_T}$ac_res" >&6; } |
| 10327 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10328 | cat >>confdefs.h <<_ACEOF |
| 10329 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10330 | _ACEOF |
| 10331 | |
| 10332 | fi |
| 10333 | done |
| 10334 | |
| 10335 | LIBS="$lt_save_LIBS" |
| 10336 | fi |
| 10337 | ac_ext=c |
| 10338 | ac_cpp='$CPP $CPPFLAGS' |
| 10339 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10340 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10341 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10342 | |
| 10343 | |
| 10344 | |
| 10345 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10346 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
| 10347 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 10348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10349 | else |
| 10350 | ac_cv_sys_symbol_underscore=no |
| 10351 | cat > conftest.$ac_ext <<EOF |
| 10352 | void nm_test_func(){} |
| 10353 | int main(){nm_test_func;return 0;} |
| 10354 | EOF |
| 10355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10356 | (eval $ac_compile) 2>&5 |
| 10357 | ac_status=$? |
| 10358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10359 | (exit $ac_status); }; then |
| 10360 | # Now try to grab the symbols. |
| 10361 | ac_nlist=conftest.nm |
| 10362 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
| 10363 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 10364 | ac_status=$? |
| 10365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10366 | (exit $ac_status); } && test -s "$ac_nlist"; then |
| 10367 | # See whether the symbols have a leading underscore. |
| 10368 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 10369 | ac_cv_sys_symbol_underscore=yes |
| 10370 | else |
| 10371 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 10372 | : |
| 10373 | else |
| 10374 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 10375 | fi |
| 10376 | fi |
| 10377 | else |
| 10378 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10379 | fi |
| 10380 | else |
| 10381 | echo "configure: failed program was:" >&5 |
| 10382 | cat conftest.c >&5 |
| 10383 | fi |
| 10384 | rm -rf conftest* |
| 10385 | |
| 10386 | fi |
| 10387 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 10388 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
| 10389 | |
| 10390 | |
| 10391 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 10392 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 10393 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
| 10394 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 10395 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
| 10396 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 10397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10398 | else |
| 10399 | libltdl_cv_need_uscore=unknown |
| 10400 | save_LIBS="$LIBS" |
| 10401 | LIBS="$LIBS $LIBADD_DL" |
| 10402 | if test "$cross_compiling" = yes; then : |
| 10403 | libltdl_cv_need_uscore=cross |
| 10404 | else |
| 10405 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10406 | lt_status=$lt_dlunknown |
| 10407 | cat > conftest.$ac_ext <<EOF |
| 10408 | #line 10423 "configure" |
| 10409 | #include "confdefs.h" |
| 10410 | |
| 10411 | #if HAVE_DLFCN_H |
| 10412 | #include <dlfcn.h> |
| 10413 | #endif |
| 10414 | |
| 10415 | #include <stdio.h> |
| 10416 | |
| 10417 | #ifdef RTLD_GLOBAL |
| 10418 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10419 | #else |
| 10420 | # ifdef DL_GLOBAL |
| 10421 | # define LT_DLGLOBAL DL_GLOBAL |
| 10422 | # else |
| 10423 | # define LT_DLGLOBAL 0 |
| 10424 | # endif |
| 10425 | #endif |
| 10426 | |
| 10427 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10428 | find out it does not work in some platform. */ |
| 10429 | #ifndef LT_DLLAZY_OR_NOW |
| 10430 | # ifdef RTLD_LAZY |
| 10431 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10432 | # else |
| 10433 | # ifdef DL_LAZY |
| 10434 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10435 | # else |
| 10436 | # ifdef RTLD_NOW |
| 10437 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10438 | # else |
| 10439 | # ifdef DL_NOW |
| 10440 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10441 | # else |
| 10442 | # define LT_DLLAZY_OR_NOW 0 |
| 10443 | # endif |
| 10444 | # endif |
| 10445 | # endif |
| 10446 | # endif |
| 10447 | #endif |
| 10448 | |
| 10449 | #ifdef __cplusplus |
| 10450 | extern "C" void exit (int); |
| 10451 | #endif |
| 10452 | |
| 10453 | void fnord() { int i=42;} |
| 10454 | int main () |
| 10455 | { |
| 10456 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10457 | int status = $lt_dlunknown; |
| 10458 | |
| 10459 | if (self) |
| 10460 | { |
| 10461 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10462 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10463 | /* dlclose (self); */ |
| 10464 | } |
| 10465 | else |
| 10466 | puts (dlerror ()); |
| 10467 | |
| 10468 | exit (status); |
| 10469 | } |
| 10470 | EOF |
| 10471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10472 | (eval $ac_link) 2>&5 |
| 10473 | ac_status=$? |
| 10474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10475 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 10476 | (./conftest; exit; ) >&5 2>/dev/null |
| 10477 | lt_status=$? |
| 10478 | case x$lt_status in |
| 10479 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 10480 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
| 10481 | x$lt_dlunknown|x*) ;; |
| 10482 | esac |
| 10483 | else : |
| 10484 | # compilation failed |
| 10485 | |
| 10486 | fi |
| 10487 | fi |
| 10488 | rm -fr conftest* |
| 10489 | |
| 10490 | LIBS="$save_LIBS" |
| 10491 | |
| 10492 | fi |
| 10493 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 10494 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
| 10495 | fi |
| 10496 | fi |
| 10497 | |
| 10498 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 10499 | |
| 10500 | cat >>confdefs.h <<\_ACEOF |
| 10501 | #define NEED_USCORE 1 |
| 10502 | _ACEOF |
| 10503 | |
| 10504 | fi |
| 10505 | |
| 10506 | |
| 10507 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 10508 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
| 10509 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 10510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10511 | else |
| 10512 | # PORTME does your system automatically load deplibs for dlopen? |
| 10513 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 10514 | # For now, we just catch OSes we know something about -- in the |
| 10515 | # future, we'll try test this programmatically. |
| 10516 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10517 | case "$host_os" in |
| 10518 | aix3*|aix4.1.*|aix4.2.*) |
| 10519 | # Unknown whether this is true for these versions of AIX, but |
| 10520 | # we want this `case' here to explicitly catch those versions. |
| 10521 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10522 | ;; |
| 10523 | aix[45]*) |
| 10524 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10525 | ;; |
| 10526 | darwin*) |
| 10527 | # Assuming the user has installed a libdl from somewhere, this is true |
| 10528 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 10529 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10530 | ;; |
| 10531 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 10532 | # GNU and its variants, using gnu ld.so (Glibc) |
| 10533 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10534 | ;; |
| 10535 | hpux10*|hpux11*) |
| 10536 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10537 | ;; |
| 10538 | interix*) |
| 10539 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10540 | ;; |
| 10541 | irix[12345]*|irix6.[01]*) |
| 10542 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 10543 | # know how it worked for any of those versions. |
| 10544 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10545 | ;; |
| 10546 | irix*) |
| 10547 | # The case above catches anything before 6.2, and it's known that |
| 10548 | # at 6.2 and later dlopen does load deplibs. |
| 10549 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10550 | ;; |
| 10551 | netbsd*) |
| 10552 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10553 | ;; |
| 10554 | openbsd*) |
| 10555 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10556 | ;; |
| 10557 | osf[1234]*) |
| 10558 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 10559 | # it did *not* use an RPATH in a shared library to find objects the |
| 10560 | # library depends on, so we explicitly say `no'. |
| 10561 | libltdl_cv_sys_dlopen_deplibs=no |
| 10562 | ;; |
| 10563 | osf5.0|osf5.0a|osf5.1) |
| 10564 | # dlopen *does* load deplibs and with the right loader patch applied |
| 10565 | # it even uses RPATH in a shared library to search for shared objects |
| 10566 | # that the library depends on, but there's no easy way to know if that |
| 10567 | # patch is installed. Since this is the case, all we can really |
| 10568 | # say is unknown -- it depends on the patch being installed. If |
| 10569 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 10570 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10571 | ;; |
| 10572 | osf*) |
| 10573 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 10574 | # the comments above for what we know about them. |
| 10575 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 10576 | # is used to find them so we can finally say `yes'. |
| 10577 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10578 | ;; |
| 10579 | solaris*) |
| 10580 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10581 | ;; |
| 10582 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10583 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10584 | ;; |
| 10585 | esac |
| 10586 | |
| 10587 | fi |
| 10588 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 10589 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
| 10590 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 10591 | |
| 10592 | cat >>confdefs.h <<\_ACEOF |
| 10593 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 10594 | _ACEOF |
| 10595 | |
| 10596 | fi |
| 10597 | |
| 10598 | |
| 10599 | for ac_header in argz.h |
| 10600 | do |
| 10601 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10602 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10603 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10604 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10605 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10607 | fi |
| 10608 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10609 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10610 | echo "${ECHO_T}$ac_res" >&6; } |
| 10611 | else |
| 10612 | # Is the header compilable? |
| 10613 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10614 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 10615 | cat >conftest.$ac_ext <<_ACEOF |
| 10616 | /* confdefs.h. */ |
| 10617 | _ACEOF |
| 10618 | cat confdefs.h >>conftest.$ac_ext |
| 10619 | cat >>conftest.$ac_ext <<_ACEOF |
| 10620 | /* end confdefs.h. */ |
| 10621 | $ac_includes_default |
| 10622 | #include <$ac_header> |
| 10623 | _ACEOF |
| 10624 | rm -f conftest.$ac_objext |
| 10625 | if { (ac_try="$ac_compile" |
| 10626 | case "(($ac_try" in |
| 10627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10628 | *) ac_try_echo=$ac_try;; |
| 10629 | esac |
| 10630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10631 | (eval "$ac_compile") 2>conftest.er1 |
| 10632 | ac_status=$? |
| 10633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10634 | rm -f conftest.er1 |
| 10635 | cat conftest.err >&5 |
| 10636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10637 | (exit $ac_status); } && |
| 10638 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10639 | { (case "(($ac_try" in |
| 10640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10641 | *) ac_try_echo=$ac_try;; |
| 10642 | esac |
| 10643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10644 | (eval "$ac_try") 2>&5 |
| 10645 | ac_status=$? |
| 10646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10647 | (exit $ac_status); }; } && |
| 10648 | { ac_try='test -s conftest.$ac_objext' |
| 10649 | { (case "(($ac_try" in |
| 10650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10651 | *) ac_try_echo=$ac_try;; |
| 10652 | esac |
| 10653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10654 | (eval "$ac_try") 2>&5 |
| 10655 | ac_status=$? |
| 10656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10657 | (exit $ac_status); }; }; then |
| 10658 | ac_header_compiler=yes |
| 10659 | else |
| 10660 | echo "$as_me: failed program was:" >&5 |
| 10661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10662 | |
| 10663 | ac_header_compiler=no |
| 10664 | fi |
| 10665 | |
| 10666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10667 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10668 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 10669 | |
| 10670 | # Is the header present? |
| 10671 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10672 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 10673 | cat >conftest.$ac_ext <<_ACEOF |
| 10674 | /* confdefs.h. */ |
| 10675 | _ACEOF |
| 10676 | cat confdefs.h >>conftest.$ac_ext |
| 10677 | cat >>conftest.$ac_ext <<_ACEOF |
| 10678 | /* end confdefs.h. */ |
| 10679 | #include <$ac_header> |
| 10680 | _ACEOF |
| 10681 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10682 | case "(($ac_try" in |
| 10683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10684 | *) ac_try_echo=$ac_try;; |
| 10685 | esac |
| 10686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10687 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 10688 | ac_status=$? |
| 10689 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10690 | rm -f conftest.er1 |
| 10691 | cat conftest.err >&5 |
| 10692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10693 | (exit $ac_status); } >/dev/null; then |
| 10694 | if test -s conftest.err; then |
| 10695 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10696 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10697 | else |
| 10698 | ac_cpp_err= |
| 10699 | fi |
| 10700 | else |
| 10701 | ac_cpp_err=yes |
| 10702 | fi |
| 10703 | if test -z "$ac_cpp_err"; then |
| 10704 | ac_header_preproc=yes |
| 10705 | else |
| 10706 | echo "$as_me: failed program was:" >&5 |
| 10707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10708 | |
| 10709 | ac_header_preproc=no |
| 10710 | fi |
| 10711 | |
| 10712 | rm -f conftest.err conftest.$ac_ext |
| 10713 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10714 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 10715 | |
| 10716 | # So? What about this header? |
| 10717 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10718 | yes:no: ) |
| 10719 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10720 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10721 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10722 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10723 | ac_header_preproc=yes |
| 10724 | ;; |
| 10725 | no:yes:* ) |
| 10726 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10727 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10728 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10729 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10730 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10731 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10732 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10733 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10734 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10735 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10736 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10737 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10738 | ( cat <<\_ASBOX |
| 10739 | ## ------------------------------ ## |
| 10740 | ## Report this to bugs@yourdomain ## |
| 10741 | ## ------------------------------ ## |
| 10742 | _ASBOX |
| 10743 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 10744 | ;; |
| 10745 | esac |
| 10746 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10747 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10748 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10750 | else |
| 10751 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10752 | fi |
| 10753 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10754 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10755 | echo "${ECHO_T}$ac_res" >&6; } |
| 10756 | |
| 10757 | fi |
| 10758 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10759 | cat >>confdefs.h <<_ACEOF |
| 10760 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10761 | _ACEOF |
| 10762 | |
| 10763 | fi |
| 10764 | |
| 10765 | done |
| 10766 | |
| 10767 | |
| 10768 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 10769 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
| 10770 | if test "${ac_cv_type_error_t+set}" = set; then |
| 10771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10772 | else |
| 10773 | cat >conftest.$ac_ext <<_ACEOF |
| 10774 | /* confdefs.h. */ |
| 10775 | _ACEOF |
| 10776 | cat confdefs.h >>conftest.$ac_ext |
| 10777 | cat >>conftest.$ac_ext <<_ACEOF |
| 10778 | /* end confdefs.h. */ |
| 10779 | #if HAVE_ARGZ_H |
| 10780 | # include <argz.h> |
| 10781 | #endif |
| 10782 | |
| 10783 | typedef error_t ac__type_new_; |
| 10784 | int |
| 10785 | main () |
| 10786 | { |
| 10787 | if ((ac__type_new_ *) 0) |
| 10788 | return 0; |
| 10789 | if (sizeof (ac__type_new_)) |
| 10790 | return 0; |
| 10791 | ; |
| 10792 | return 0; |
| 10793 | } |
| 10794 | _ACEOF |
| 10795 | rm -f conftest.$ac_objext |
| 10796 | if { (ac_try="$ac_compile" |
| 10797 | case "(($ac_try" in |
| 10798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10799 | *) ac_try_echo=$ac_try;; |
| 10800 | esac |
| 10801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10802 | (eval "$ac_compile") 2>conftest.er1 |
| 10803 | ac_status=$? |
| 10804 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10805 | rm -f conftest.er1 |
| 10806 | cat conftest.err >&5 |
| 10807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10808 | (exit $ac_status); } && |
| 10809 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10810 | { (case "(($ac_try" in |
| 10811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10812 | *) ac_try_echo=$ac_try;; |
| 10813 | esac |
| 10814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10815 | (eval "$ac_try") 2>&5 |
| 10816 | ac_status=$? |
| 10817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10818 | (exit $ac_status); }; } && |
| 10819 | { ac_try='test -s conftest.$ac_objext' |
| 10820 | { (case "(($ac_try" in |
| 10821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10822 | *) ac_try_echo=$ac_try;; |
| 10823 | esac |
| 10824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10825 | (eval "$ac_try") 2>&5 |
| 10826 | ac_status=$? |
| 10827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10828 | (exit $ac_status); }; }; then |
| 10829 | ac_cv_type_error_t=yes |
| 10830 | else |
| 10831 | echo "$as_me: failed program was:" >&5 |
| 10832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10833 | |
| 10834 | ac_cv_type_error_t=no |
| 10835 | fi |
| 10836 | |
| 10837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10838 | fi |
| 10839 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 10840 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
| 10841 | if test $ac_cv_type_error_t = yes; then |
| 10842 | |
| 10843 | cat >>confdefs.h <<_ACEOF |
| 10844 | #define HAVE_ERROR_T 1 |
| 10845 | _ACEOF |
| 10846 | |
| 10847 | |
| 10848 | else |
| 10849 | |
| 10850 | cat >>confdefs.h <<\_ACEOF |
| 10851 | #define error_t int |
| 10852 | _ACEOF |
| 10853 | |
| 10854 | fi |
| 10855 | |
| 10856 | |
| 10857 | |
| 10858 | |
| 10859 | |
| 10860 | |
| 10861 | |
| 10862 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
| 10863 | do |
| 10864 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10865 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10866 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10867 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10869 | else |
| 10870 | cat >conftest.$ac_ext <<_ACEOF |
| 10871 | /* confdefs.h. */ |
| 10872 | _ACEOF |
| 10873 | cat confdefs.h >>conftest.$ac_ext |
| 10874 | cat >>conftest.$ac_ext <<_ACEOF |
| 10875 | /* end confdefs.h. */ |
| 10876 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10877 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10878 | #define $ac_func innocuous_$ac_func |
| 10879 | |
| 10880 | /* System header to define __stub macros and hopefully few prototypes, |
| 10881 | which can conflict with char $ac_func (); below. |
| 10882 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10883 | <limits.h> exists even on freestanding compilers. */ |
| 10884 | |
| 10885 | #ifdef __STDC__ |
| 10886 | # include <limits.h> |
| 10887 | #else |
| 10888 | # include <assert.h> |
| 10889 | #endif |
| 10890 | |
| 10891 | #undef $ac_func |
| 10892 | |
| 10893 | /* Override any GCC internal prototype to avoid an error. |
| 10894 | Use char because int might match the return type of a GCC |
| 10895 | builtin and then its argument prototype would still apply. */ |
| 10896 | #ifdef __cplusplus |
| 10897 | extern "C" |
| 10898 | #endif |
| 10899 | char $ac_func (); |
| 10900 | /* The GNU C library defines this for functions which it implements |
| 10901 | to always fail with ENOSYS. Some functions are actually named |
| 10902 | something starting with __ and the normal name is an alias. */ |
| 10903 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 10904 | choke me |
| 10905 | #endif |
| 10906 | |
| 10907 | int |
| 10908 | main () |
| 10909 | { |
| 10910 | return $ac_func (); |
| 10911 | ; |
| 10912 | return 0; |
| 10913 | } |
| 10914 | _ACEOF |
| 10915 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10916 | if { (ac_try="$ac_link" |
| 10917 | case "(($ac_try" in |
| 10918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10919 | *) ac_try_echo=$ac_try;; |
| 10920 | esac |
| 10921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10922 | (eval "$ac_link") 2>conftest.er1 |
| 10923 | ac_status=$? |
| 10924 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10925 | rm -f conftest.er1 |
| 10926 | cat conftest.err >&5 |
| 10927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10928 | (exit $ac_status); } && |
| 10929 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10930 | { (case "(($ac_try" in |
| 10931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10932 | *) ac_try_echo=$ac_try;; |
| 10933 | esac |
| 10934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10935 | (eval "$ac_try") 2>&5 |
| 10936 | ac_status=$? |
| 10937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10938 | (exit $ac_status); }; } && |
| 10939 | { ac_try='test -s conftest$ac_exeext' |
| 10940 | { (case "(($ac_try" in |
| 10941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10942 | *) ac_try_echo=$ac_try;; |
| 10943 | esac |
| 10944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10945 | (eval "$ac_try") 2>&5 |
| 10946 | ac_status=$? |
| 10947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10948 | (exit $ac_status); }; }; then |
| 10949 | eval "$as_ac_var=yes" |
| 10950 | else |
| 10951 | echo "$as_me: failed program was:" >&5 |
| 10952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10953 | |
| 10954 | eval "$as_ac_var=no" |
| 10955 | fi |
| 10956 | |
| 10957 | rm -f core conftest.err conftest.$ac_objext \ |
| 10958 | conftest$ac_exeext conftest.$ac_ext |
| 10959 | fi |
| 10960 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10961 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10962 | echo "${ECHO_T}$ac_res" >&6; } |
| 10963 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10964 | cat >>confdefs.h <<_ACEOF |
| 10965 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10966 | _ACEOF |
| 10967 | |
| 10968 | fi |
| 10969 | done |
| 10970 | |
| 10971 | |
| 10972 | |
| 10973 | |
| 10974 | |
| 10975 | |
| 10976 | |
| 10977 | |
| 10978 | |
| 10979 | |
| 10980 | |
| 10981 | |
| 10982 | |
| 10983 | |
| 10984 | |
| 10985 | |
| 10986 | |
| 10987 | |
| 10988 | |
| 10989 | |
| 10990 | |
| 10991 | |
| 10992 | |
| 10993 | |
| 10994 | |
| 10995 | |
| 10996 | |
| 10997 | |
| 10998 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 10999 | stdio.h unistd.h |
| 11000 | do |
| 11001 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11002 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11003 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11004 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11005 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11007 | fi |
| 11008 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11009 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11010 | echo "${ECHO_T}$ac_res" >&6; } |
| 11011 | else |
| 11012 | # Is the header compilable? |
| 11013 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11014 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11015 | cat >conftest.$ac_ext <<_ACEOF |
| 11016 | /* confdefs.h. */ |
| 11017 | _ACEOF |
| 11018 | cat confdefs.h >>conftest.$ac_ext |
| 11019 | cat >>conftest.$ac_ext <<_ACEOF |
| 11020 | /* end confdefs.h. */ |
| 11021 | $ac_includes_default |
| 11022 | #include <$ac_header> |
| 11023 | _ACEOF |
| 11024 | rm -f conftest.$ac_objext |
| 11025 | if { (ac_try="$ac_compile" |
| 11026 | case "(($ac_try" in |
| 11027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11028 | *) ac_try_echo=$ac_try;; |
| 11029 | esac |
| 11030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11031 | (eval "$ac_compile") 2>conftest.er1 |
| 11032 | ac_status=$? |
| 11033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11034 | rm -f conftest.er1 |
| 11035 | cat conftest.err >&5 |
| 11036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11037 | (exit $ac_status); } && |
| 11038 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11039 | { (case "(($ac_try" in |
| 11040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11041 | *) ac_try_echo=$ac_try;; |
| 11042 | esac |
| 11043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11044 | (eval "$ac_try") 2>&5 |
| 11045 | ac_status=$? |
| 11046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11047 | (exit $ac_status); }; } && |
| 11048 | { ac_try='test -s conftest.$ac_objext' |
| 11049 | { (case "(($ac_try" in |
| 11050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11051 | *) ac_try_echo=$ac_try;; |
| 11052 | esac |
| 11053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11054 | (eval "$ac_try") 2>&5 |
| 11055 | ac_status=$? |
| 11056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11057 | (exit $ac_status); }; }; then |
| 11058 | ac_header_compiler=yes |
| 11059 | else |
| 11060 | echo "$as_me: failed program was:" >&5 |
| 11061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11062 | |
| 11063 | ac_header_compiler=no |
| 11064 | fi |
| 11065 | |
| 11066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11067 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11068 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11069 | |
| 11070 | # Is the header present? |
| 11071 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11072 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11073 | cat >conftest.$ac_ext <<_ACEOF |
| 11074 | /* confdefs.h. */ |
| 11075 | _ACEOF |
| 11076 | cat confdefs.h >>conftest.$ac_ext |
| 11077 | cat >>conftest.$ac_ext <<_ACEOF |
| 11078 | /* end confdefs.h. */ |
| 11079 | #include <$ac_header> |
| 11080 | _ACEOF |
| 11081 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11082 | case "(($ac_try" in |
| 11083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11084 | *) ac_try_echo=$ac_try;; |
| 11085 | esac |
| 11086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11087 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11088 | ac_status=$? |
| 11089 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11090 | rm -f conftest.er1 |
| 11091 | cat conftest.err >&5 |
| 11092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11093 | (exit $ac_status); } >/dev/null; then |
| 11094 | if test -s conftest.err; then |
| 11095 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11096 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11097 | else |
| 11098 | ac_cpp_err= |
| 11099 | fi |
| 11100 | else |
| 11101 | ac_cpp_err=yes |
| 11102 | fi |
| 11103 | if test -z "$ac_cpp_err"; then |
| 11104 | ac_header_preproc=yes |
| 11105 | else |
| 11106 | echo "$as_me: failed program was:" >&5 |
| 11107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11108 | |
| 11109 | ac_header_preproc=no |
| 11110 | fi |
| 11111 | |
| 11112 | rm -f conftest.err conftest.$ac_ext |
| 11113 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11114 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11115 | |
| 11116 | # So? What about this header? |
| 11117 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11118 | yes:no: ) |
| 11119 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11120 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11121 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11122 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11123 | ac_header_preproc=yes |
| 11124 | ;; |
| 11125 | no:yes:* ) |
| 11126 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11127 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11128 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11129 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11130 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11131 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11132 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11133 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11134 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11135 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11136 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11137 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11138 | ( cat <<\_ASBOX |
| 11139 | ## ------------------------------ ## |
| 11140 | ## Report this to bugs@yourdomain ## |
| 11141 | ## ------------------------------ ## |
| 11142 | _ASBOX |
| 11143 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11144 | ;; |
| 11145 | esac |
| 11146 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11147 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11148 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11150 | else |
| 11151 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11152 | fi |
| 11153 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11154 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11155 | echo "${ECHO_T}$ac_res" >&6; } |
| 11156 | |
| 11157 | fi |
| 11158 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11159 | cat >>confdefs.h <<_ACEOF |
| 11160 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11161 | _ACEOF |
| 11162 | |
| 11163 | fi |
| 11164 | |
| 11165 | done |
| 11166 | |
| 11167 | |
| 11168 | |
| 11169 | |
| 11170 | |
| 11171 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
| 11172 | do |
| 11173 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11174 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11175 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11176 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11177 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11179 | fi |
| 11180 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11181 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11182 | echo "${ECHO_T}$ac_res" >&6; } |
| 11183 | else |
| 11184 | # Is the header compilable? |
| 11185 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11186 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11187 | cat >conftest.$ac_ext <<_ACEOF |
| 11188 | /* confdefs.h. */ |
| 11189 | _ACEOF |
| 11190 | cat confdefs.h >>conftest.$ac_ext |
| 11191 | cat >>conftest.$ac_ext <<_ACEOF |
| 11192 | /* end confdefs.h. */ |
| 11193 | $ac_includes_default |
| 11194 | #include <$ac_header> |
| 11195 | _ACEOF |
| 11196 | rm -f conftest.$ac_objext |
| 11197 | if { (ac_try="$ac_compile" |
| 11198 | case "(($ac_try" in |
| 11199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11200 | *) ac_try_echo=$ac_try;; |
| 11201 | esac |
| 11202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11203 | (eval "$ac_compile") 2>conftest.er1 |
| 11204 | ac_status=$? |
| 11205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11206 | rm -f conftest.er1 |
| 11207 | cat conftest.err >&5 |
| 11208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11209 | (exit $ac_status); } && |
| 11210 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11211 | { (case "(($ac_try" in |
| 11212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11213 | *) ac_try_echo=$ac_try;; |
| 11214 | esac |
| 11215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11216 | (eval "$ac_try") 2>&5 |
| 11217 | ac_status=$? |
| 11218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11219 | (exit $ac_status); }; } && |
| 11220 | { ac_try='test -s conftest.$ac_objext' |
| 11221 | { (case "(($ac_try" in |
| 11222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11223 | *) ac_try_echo=$ac_try;; |
| 11224 | esac |
| 11225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11226 | (eval "$ac_try") 2>&5 |
| 11227 | ac_status=$? |
| 11228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11229 | (exit $ac_status); }; }; then |
| 11230 | ac_header_compiler=yes |
| 11231 | else |
| 11232 | echo "$as_me: failed program was:" >&5 |
| 11233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11234 | |
| 11235 | ac_header_compiler=no |
| 11236 | fi |
| 11237 | |
| 11238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11239 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11240 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11241 | |
| 11242 | # Is the header present? |
| 11243 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11244 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11245 | cat >conftest.$ac_ext <<_ACEOF |
| 11246 | /* confdefs.h. */ |
| 11247 | _ACEOF |
| 11248 | cat confdefs.h >>conftest.$ac_ext |
| 11249 | cat >>conftest.$ac_ext <<_ACEOF |
| 11250 | /* end confdefs.h. */ |
| 11251 | #include <$ac_header> |
| 11252 | _ACEOF |
| 11253 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11254 | case "(($ac_try" in |
| 11255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11256 | *) ac_try_echo=$ac_try;; |
| 11257 | esac |
| 11258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11259 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11260 | ac_status=$? |
| 11261 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11262 | rm -f conftest.er1 |
| 11263 | cat conftest.err >&5 |
| 11264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11265 | (exit $ac_status); } >/dev/null; then |
| 11266 | if test -s conftest.err; then |
| 11267 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11268 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11269 | else |
| 11270 | ac_cpp_err= |
| 11271 | fi |
| 11272 | else |
| 11273 | ac_cpp_err=yes |
| 11274 | fi |
| 11275 | if test -z "$ac_cpp_err"; then |
| 11276 | ac_header_preproc=yes |
| 11277 | else |
| 11278 | echo "$as_me: failed program was:" >&5 |
| 11279 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11280 | |
| 11281 | ac_header_preproc=no |
| 11282 | fi |
| 11283 | |
| 11284 | rm -f conftest.err conftest.$ac_ext |
| 11285 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11286 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11287 | |
| 11288 | # So? What about this header? |
| 11289 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11290 | yes:no: ) |
| 11291 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11292 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11293 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11294 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11295 | ac_header_preproc=yes |
| 11296 | ;; |
| 11297 | no:yes:* ) |
| 11298 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11299 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11300 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11301 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11302 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11303 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11304 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11305 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11306 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11307 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11308 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11309 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11310 | ( cat <<\_ASBOX |
| 11311 | ## ------------------------------ ## |
| 11312 | ## Report this to bugs@yourdomain ## |
| 11313 | ## ------------------------------ ## |
| 11314 | _ASBOX |
| 11315 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11316 | ;; |
| 11317 | esac |
| 11318 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11319 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11320 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11322 | else |
| 11323 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11324 | fi |
| 11325 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11326 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11327 | echo "${ECHO_T}$ac_res" >&6; } |
| 11328 | |
| 11329 | fi |
| 11330 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11331 | cat >>confdefs.h <<_ACEOF |
| 11332 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11333 | _ACEOF |
| 11334 | |
| 11335 | fi |
| 11336 | |
| 11337 | done |
| 11338 | |
| 11339 | |
| 11340 | |
| 11341 | for ac_header in string.h strings.h |
| 11342 | do |
| 11343 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11344 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11345 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11346 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11347 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11349 | fi |
| 11350 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11351 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11352 | echo "${ECHO_T}$ac_res" >&6; } |
| 11353 | else |
| 11354 | # Is the header compilable? |
| 11355 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11356 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 11357 | cat >conftest.$ac_ext <<_ACEOF |
| 11358 | /* confdefs.h. */ |
| 11359 | _ACEOF |
| 11360 | cat confdefs.h >>conftest.$ac_ext |
| 11361 | cat >>conftest.$ac_ext <<_ACEOF |
| 11362 | /* end confdefs.h. */ |
| 11363 | $ac_includes_default |
| 11364 | #include <$ac_header> |
| 11365 | _ACEOF |
| 11366 | rm -f conftest.$ac_objext |
| 11367 | if { (ac_try="$ac_compile" |
| 11368 | case "(($ac_try" in |
| 11369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11370 | *) ac_try_echo=$ac_try;; |
| 11371 | esac |
| 11372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11373 | (eval "$ac_compile") 2>conftest.er1 |
| 11374 | ac_status=$? |
| 11375 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11376 | rm -f conftest.er1 |
| 11377 | cat conftest.err >&5 |
| 11378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11379 | (exit $ac_status); } && |
| 11380 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11381 | { (case "(($ac_try" in |
| 11382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11383 | *) ac_try_echo=$ac_try;; |
| 11384 | esac |
| 11385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11386 | (eval "$ac_try") 2>&5 |
| 11387 | ac_status=$? |
| 11388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11389 | (exit $ac_status); }; } && |
| 11390 | { ac_try='test -s conftest.$ac_objext' |
| 11391 | { (case "(($ac_try" in |
| 11392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11393 | *) ac_try_echo=$ac_try;; |
| 11394 | esac |
| 11395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11396 | (eval "$ac_try") 2>&5 |
| 11397 | ac_status=$? |
| 11398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11399 | (exit $ac_status); }; }; then |
| 11400 | ac_header_compiler=yes |
| 11401 | else |
| 11402 | echo "$as_me: failed program was:" >&5 |
| 11403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11404 | |
| 11405 | ac_header_compiler=no |
| 11406 | fi |
| 11407 | |
| 11408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11409 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11410 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 11411 | |
| 11412 | # Is the header present? |
| 11413 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11414 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 11415 | cat >conftest.$ac_ext <<_ACEOF |
| 11416 | /* confdefs.h. */ |
| 11417 | _ACEOF |
| 11418 | cat confdefs.h >>conftest.$ac_ext |
| 11419 | cat >>conftest.$ac_ext <<_ACEOF |
| 11420 | /* end confdefs.h. */ |
| 11421 | #include <$ac_header> |
| 11422 | _ACEOF |
| 11423 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11424 | case "(($ac_try" in |
| 11425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11426 | *) ac_try_echo=$ac_try;; |
| 11427 | esac |
| 11428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11429 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11430 | ac_status=$? |
| 11431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11432 | rm -f conftest.er1 |
| 11433 | cat conftest.err >&5 |
| 11434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11435 | (exit $ac_status); } >/dev/null; then |
| 11436 | if test -s conftest.err; then |
| 11437 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11438 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11439 | else |
| 11440 | ac_cpp_err= |
| 11441 | fi |
| 11442 | else |
| 11443 | ac_cpp_err=yes |
| 11444 | fi |
| 11445 | if test -z "$ac_cpp_err"; then |
| 11446 | ac_header_preproc=yes |
| 11447 | else |
| 11448 | echo "$as_me: failed program was:" >&5 |
| 11449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11450 | |
| 11451 | ac_header_preproc=no |
| 11452 | fi |
| 11453 | |
| 11454 | rm -f conftest.err conftest.$ac_ext |
| 11455 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11456 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 11457 | |
| 11458 | # So? What about this header? |
| 11459 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11460 | yes:no: ) |
| 11461 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11462 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11463 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11464 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11465 | ac_header_preproc=yes |
| 11466 | ;; |
| 11467 | no:yes:* ) |
| 11468 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11469 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11470 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11471 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11472 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11473 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11474 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11475 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11476 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11477 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11478 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11479 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11480 | ( cat <<\_ASBOX |
| 11481 | ## ------------------------------ ## |
| 11482 | ## Report this to bugs@yourdomain ## |
| 11483 | ## ------------------------------ ## |
| 11484 | _ASBOX |
| 11485 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 11486 | ;; |
| 11487 | esac |
| 11488 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11489 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11490 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11492 | else |
| 11493 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11494 | fi |
| 11495 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11496 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11497 | echo "${ECHO_T}$ac_res" >&6; } |
| 11498 | |
| 11499 | fi |
| 11500 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11501 | cat >>confdefs.h <<_ACEOF |
| 11502 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11503 | _ACEOF |
| 11504 | break |
| 11505 | fi |
| 11506 | |
| 11507 | done |
| 11508 | |
| 11509 | |
| 11510 | |
| 11511 | |
| 11512 | for ac_func in strchr index |
| 11513 | do |
| 11514 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11515 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11516 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11517 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11519 | else |
| 11520 | cat >conftest.$ac_ext <<_ACEOF |
| 11521 | /* confdefs.h. */ |
| 11522 | _ACEOF |
| 11523 | cat confdefs.h >>conftest.$ac_ext |
| 11524 | cat >>conftest.$ac_ext <<_ACEOF |
| 11525 | /* end confdefs.h. */ |
| 11526 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11527 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11528 | #define $ac_func innocuous_$ac_func |
| 11529 | |
| 11530 | /* System header to define __stub macros and hopefully few prototypes, |
| 11531 | which can conflict with char $ac_func (); below. |
| 11532 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11533 | <limits.h> exists even on freestanding compilers. */ |
| 11534 | |
| 11535 | #ifdef __STDC__ |
| 11536 | # include <limits.h> |
| 11537 | #else |
| 11538 | # include <assert.h> |
| 11539 | #endif |
| 11540 | |
| 11541 | #undef $ac_func |
| 11542 | |
| 11543 | /* Override any GCC internal prototype to avoid an error. |
| 11544 | Use char because int might match the return type of a GCC |
| 11545 | builtin and then its argument prototype would still apply. */ |
| 11546 | #ifdef __cplusplus |
| 11547 | extern "C" |
| 11548 | #endif |
| 11549 | char $ac_func (); |
| 11550 | /* The GNU C library defines this for functions which it implements |
| 11551 | to always fail with ENOSYS. Some functions are actually named |
| 11552 | something starting with __ and the normal name is an alias. */ |
| 11553 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11554 | choke me |
| 11555 | #endif |
| 11556 | |
| 11557 | int |
| 11558 | main () |
| 11559 | { |
| 11560 | return $ac_func (); |
| 11561 | ; |
| 11562 | return 0; |
| 11563 | } |
| 11564 | _ACEOF |
| 11565 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11566 | if { (ac_try="$ac_link" |
| 11567 | case "(($ac_try" in |
| 11568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11569 | *) ac_try_echo=$ac_try;; |
| 11570 | esac |
| 11571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11572 | (eval "$ac_link") 2>conftest.er1 |
| 11573 | ac_status=$? |
| 11574 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11575 | rm -f conftest.er1 |
| 11576 | cat conftest.err >&5 |
| 11577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11578 | (exit $ac_status); } && |
| 11579 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11580 | { (case "(($ac_try" in |
| 11581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11582 | *) ac_try_echo=$ac_try;; |
| 11583 | esac |
| 11584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11585 | (eval "$ac_try") 2>&5 |
| 11586 | ac_status=$? |
| 11587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11588 | (exit $ac_status); }; } && |
| 11589 | { ac_try='test -s conftest$ac_exeext' |
| 11590 | { (case "(($ac_try" in |
| 11591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11592 | *) ac_try_echo=$ac_try;; |
| 11593 | esac |
| 11594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11595 | (eval "$ac_try") 2>&5 |
| 11596 | ac_status=$? |
| 11597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11598 | (exit $ac_status); }; }; then |
| 11599 | eval "$as_ac_var=yes" |
| 11600 | else |
| 11601 | echo "$as_me: failed program was:" >&5 |
| 11602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11603 | |
| 11604 | eval "$as_ac_var=no" |
| 11605 | fi |
| 11606 | |
| 11607 | rm -f core conftest.err conftest.$ac_objext \ |
| 11608 | conftest$ac_exeext conftest.$ac_ext |
| 11609 | fi |
| 11610 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11611 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11612 | echo "${ECHO_T}$ac_res" >&6; } |
| 11613 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11614 | cat >>confdefs.h <<_ACEOF |
| 11615 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11616 | _ACEOF |
| 11617 | break |
| 11618 | fi |
| 11619 | done |
| 11620 | |
| 11621 | |
| 11622 | |
| 11623 | for ac_func in strrchr rindex |
| 11624 | do |
| 11625 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11626 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11627 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11628 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11630 | else |
| 11631 | cat >conftest.$ac_ext <<_ACEOF |
| 11632 | /* confdefs.h. */ |
| 11633 | _ACEOF |
| 11634 | cat confdefs.h >>conftest.$ac_ext |
| 11635 | cat >>conftest.$ac_ext <<_ACEOF |
| 11636 | /* end confdefs.h. */ |
| 11637 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11638 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11639 | #define $ac_func innocuous_$ac_func |
| 11640 | |
| 11641 | /* System header to define __stub macros and hopefully few prototypes, |
| 11642 | which can conflict with char $ac_func (); below. |
| 11643 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11644 | <limits.h> exists even on freestanding compilers. */ |
| 11645 | |
| 11646 | #ifdef __STDC__ |
| 11647 | # include <limits.h> |
| 11648 | #else |
| 11649 | # include <assert.h> |
| 11650 | #endif |
| 11651 | |
| 11652 | #undef $ac_func |
| 11653 | |
| 11654 | /* Override any GCC internal prototype to avoid an error. |
| 11655 | Use char because int might match the return type of a GCC |
| 11656 | builtin and then its argument prototype would still apply. */ |
| 11657 | #ifdef __cplusplus |
| 11658 | extern "C" |
| 11659 | #endif |
| 11660 | char $ac_func (); |
| 11661 | /* The GNU C library defines this for functions which it implements |
| 11662 | to always fail with ENOSYS. Some functions are actually named |
| 11663 | something starting with __ and the normal name is an alias. */ |
| 11664 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11665 | choke me |
| 11666 | #endif |
| 11667 | |
| 11668 | int |
| 11669 | main () |
| 11670 | { |
| 11671 | return $ac_func (); |
| 11672 | ; |
| 11673 | return 0; |
| 11674 | } |
| 11675 | _ACEOF |
| 11676 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11677 | if { (ac_try="$ac_link" |
| 11678 | case "(($ac_try" in |
| 11679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11680 | *) ac_try_echo=$ac_try;; |
| 11681 | esac |
| 11682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11683 | (eval "$ac_link") 2>conftest.er1 |
| 11684 | ac_status=$? |
| 11685 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11686 | rm -f conftest.er1 |
| 11687 | cat conftest.err >&5 |
| 11688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11689 | (exit $ac_status); } && |
| 11690 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11691 | { (case "(($ac_try" in |
| 11692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11693 | *) ac_try_echo=$ac_try;; |
| 11694 | esac |
| 11695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11696 | (eval "$ac_try") 2>&5 |
| 11697 | ac_status=$? |
| 11698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11699 | (exit $ac_status); }; } && |
| 11700 | { ac_try='test -s conftest$ac_exeext' |
| 11701 | { (case "(($ac_try" in |
| 11702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11703 | *) ac_try_echo=$ac_try;; |
| 11704 | esac |
| 11705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11706 | (eval "$ac_try") 2>&5 |
| 11707 | ac_status=$? |
| 11708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11709 | (exit $ac_status); }; }; then |
| 11710 | eval "$as_ac_var=yes" |
| 11711 | else |
| 11712 | echo "$as_me: failed program was:" >&5 |
| 11713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11714 | |
| 11715 | eval "$as_ac_var=no" |
| 11716 | fi |
| 11717 | |
| 11718 | rm -f core conftest.err conftest.$ac_objext \ |
| 11719 | conftest$ac_exeext conftest.$ac_ext |
| 11720 | fi |
| 11721 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11722 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11723 | echo "${ECHO_T}$ac_res" >&6; } |
| 11724 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11725 | cat >>confdefs.h <<_ACEOF |
| 11726 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11727 | _ACEOF |
| 11728 | break |
| 11729 | fi |
| 11730 | done |
| 11731 | |
| 11732 | |
| 11733 | |
| 11734 | for ac_func in memcpy bcopy |
| 11735 | do |
| 11736 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11737 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11738 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11739 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11741 | else |
| 11742 | cat >conftest.$ac_ext <<_ACEOF |
| 11743 | /* confdefs.h. */ |
| 11744 | _ACEOF |
| 11745 | cat confdefs.h >>conftest.$ac_ext |
| 11746 | cat >>conftest.$ac_ext <<_ACEOF |
| 11747 | /* end confdefs.h. */ |
| 11748 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11749 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11750 | #define $ac_func innocuous_$ac_func |
| 11751 | |
| 11752 | /* System header to define __stub macros and hopefully few prototypes, |
| 11753 | which can conflict with char $ac_func (); below. |
| 11754 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11755 | <limits.h> exists even on freestanding compilers. */ |
| 11756 | |
| 11757 | #ifdef __STDC__ |
| 11758 | # include <limits.h> |
| 11759 | #else |
| 11760 | # include <assert.h> |
| 11761 | #endif |
| 11762 | |
| 11763 | #undef $ac_func |
| 11764 | |
| 11765 | /* Override any GCC internal prototype to avoid an error. |
| 11766 | Use char because int might match the return type of a GCC |
| 11767 | builtin and then its argument prototype would still apply. */ |
| 11768 | #ifdef __cplusplus |
| 11769 | extern "C" |
| 11770 | #endif |
| 11771 | char $ac_func (); |
| 11772 | /* The GNU C library defines this for functions which it implements |
| 11773 | to always fail with ENOSYS. Some functions are actually named |
| 11774 | something starting with __ and the normal name is an alias. */ |
| 11775 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11776 | choke me |
| 11777 | #endif |
| 11778 | |
| 11779 | int |
| 11780 | main () |
| 11781 | { |
| 11782 | return $ac_func (); |
| 11783 | ; |
| 11784 | return 0; |
| 11785 | } |
| 11786 | _ACEOF |
| 11787 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11788 | if { (ac_try="$ac_link" |
| 11789 | case "(($ac_try" in |
| 11790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11791 | *) ac_try_echo=$ac_try;; |
| 11792 | esac |
| 11793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11794 | (eval "$ac_link") 2>conftest.er1 |
| 11795 | ac_status=$? |
| 11796 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11797 | rm -f conftest.er1 |
| 11798 | cat conftest.err >&5 |
| 11799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11800 | (exit $ac_status); } && |
| 11801 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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); }; } && |
| 11811 | { ac_try='test -s conftest$ac_exeext' |
| 11812 | { (case "(($ac_try" in |
| 11813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11814 | *) ac_try_echo=$ac_try;; |
| 11815 | esac |
| 11816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11817 | (eval "$ac_try") 2>&5 |
| 11818 | ac_status=$? |
| 11819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11820 | (exit $ac_status); }; }; then |
| 11821 | eval "$as_ac_var=yes" |
| 11822 | else |
| 11823 | echo "$as_me: failed program was:" >&5 |
| 11824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11825 | |
| 11826 | eval "$as_ac_var=no" |
| 11827 | fi |
| 11828 | |
| 11829 | rm -f core conftest.err conftest.$ac_objext \ |
| 11830 | conftest$ac_exeext conftest.$ac_ext |
| 11831 | fi |
| 11832 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11833 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11834 | echo "${ECHO_T}$ac_res" >&6; } |
| 11835 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11836 | cat >>confdefs.h <<_ACEOF |
| 11837 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11838 | _ACEOF |
| 11839 | break |
| 11840 | fi |
| 11841 | done |
| 11842 | |
| 11843 | |
| 11844 | |
| 11845 | for ac_func in memmove strcmp |
| 11846 | do |
| 11847 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11848 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11849 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11850 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11852 | else |
| 11853 | cat >conftest.$ac_ext <<_ACEOF |
| 11854 | /* confdefs.h. */ |
| 11855 | _ACEOF |
| 11856 | cat confdefs.h >>conftest.$ac_ext |
| 11857 | cat >>conftest.$ac_ext <<_ACEOF |
| 11858 | /* end confdefs.h. */ |
| 11859 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11860 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11861 | #define $ac_func innocuous_$ac_func |
| 11862 | |
| 11863 | /* System header to define __stub macros and hopefully few prototypes, |
| 11864 | which can conflict with char $ac_func (); below. |
| 11865 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11866 | <limits.h> exists even on freestanding compilers. */ |
| 11867 | |
| 11868 | #ifdef __STDC__ |
| 11869 | # include <limits.h> |
| 11870 | #else |
| 11871 | # include <assert.h> |
| 11872 | #endif |
| 11873 | |
| 11874 | #undef $ac_func |
| 11875 | |
| 11876 | /* Override any GCC internal prototype to avoid an error. |
| 11877 | Use char because int might match the return type of a GCC |
| 11878 | builtin and then its argument prototype would still apply. */ |
| 11879 | #ifdef __cplusplus |
| 11880 | extern "C" |
| 11881 | #endif |
| 11882 | char $ac_func (); |
| 11883 | /* The GNU C library defines this for functions which it implements |
| 11884 | to always fail with ENOSYS. Some functions are actually named |
| 11885 | something starting with __ and the normal name is an alias. */ |
| 11886 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11887 | choke me |
| 11888 | #endif |
| 11889 | |
| 11890 | int |
| 11891 | main () |
| 11892 | { |
| 11893 | return $ac_func (); |
| 11894 | ; |
| 11895 | return 0; |
| 11896 | } |
| 11897 | _ACEOF |
| 11898 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11899 | if { (ac_try="$ac_link" |
| 11900 | case "(($ac_try" in |
| 11901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11902 | *) ac_try_echo=$ac_try;; |
| 11903 | esac |
| 11904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11905 | (eval "$ac_link") 2>conftest.er1 |
| 11906 | ac_status=$? |
| 11907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11908 | rm -f conftest.er1 |
| 11909 | cat conftest.err >&5 |
| 11910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11911 | (exit $ac_status); } && |
| 11912 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11913 | { (case "(($ac_try" in |
| 11914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11915 | *) ac_try_echo=$ac_try;; |
| 11916 | esac |
| 11917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11918 | (eval "$ac_try") 2>&5 |
| 11919 | ac_status=$? |
| 11920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11921 | (exit $ac_status); }; } && |
| 11922 | { ac_try='test -s conftest$ac_exeext' |
| 11923 | { (case "(($ac_try" in |
| 11924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11925 | *) ac_try_echo=$ac_try;; |
| 11926 | esac |
| 11927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11928 | (eval "$ac_try") 2>&5 |
| 11929 | ac_status=$? |
| 11930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11931 | (exit $ac_status); }; }; then |
| 11932 | eval "$as_ac_var=yes" |
| 11933 | else |
| 11934 | echo "$as_me: failed program was:" >&5 |
| 11935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11936 | |
| 11937 | eval "$as_ac_var=no" |
| 11938 | fi |
| 11939 | |
| 11940 | rm -f core conftest.err conftest.$ac_objext \ |
| 11941 | conftest$ac_exeext conftest.$ac_ext |
| 11942 | fi |
| 11943 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11944 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11945 | echo "${ECHO_T}$ac_res" >&6; } |
| 11946 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11947 | cat >>confdefs.h <<_ACEOF |
| 11948 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11949 | _ACEOF |
| 11950 | |
| 11951 | fi |
| 11952 | done |
| 11953 | |
| 11954 | |
| 11955 | |
| 11956 | |
| 11957 | for ac_func in closedir opendir readdir |
| 11958 | do |
| 11959 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11960 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11961 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11962 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11964 | else |
| 11965 | cat >conftest.$ac_ext <<_ACEOF |
| 11966 | /* confdefs.h. */ |
| 11967 | _ACEOF |
| 11968 | cat confdefs.h >>conftest.$ac_ext |
| 11969 | cat >>conftest.$ac_ext <<_ACEOF |
| 11970 | /* end confdefs.h. */ |
| 11971 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11972 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11973 | #define $ac_func innocuous_$ac_func |
| 11974 | |
| 11975 | /* System header to define __stub macros and hopefully few prototypes, |
| 11976 | which can conflict with char $ac_func (); below. |
| 11977 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11978 | <limits.h> exists even on freestanding compilers. */ |
| 11979 | |
| 11980 | #ifdef __STDC__ |
| 11981 | # include <limits.h> |
| 11982 | #else |
| 11983 | # include <assert.h> |
| 11984 | #endif |
| 11985 | |
| 11986 | #undef $ac_func |
| 11987 | |
| 11988 | /* Override any GCC internal prototype to avoid an error. |
| 11989 | Use char because int might match the return type of a GCC |
| 11990 | builtin and then its argument prototype would still apply. */ |
| 11991 | #ifdef __cplusplus |
| 11992 | extern "C" |
| 11993 | #endif |
| 11994 | char $ac_func (); |
| 11995 | /* The GNU C library defines this for functions which it implements |
| 11996 | to always fail with ENOSYS. Some functions are actually named |
| 11997 | something starting with __ and the normal name is an alias. */ |
| 11998 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 11999 | choke me |
| 12000 | #endif |
| 12001 | |
| 12002 | int |
| 12003 | main () |
| 12004 | { |
| 12005 | return $ac_func (); |
| 12006 | ; |
| 12007 | return 0; |
| 12008 | } |
| 12009 | _ACEOF |
| 12010 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12011 | if { (ac_try="$ac_link" |
| 12012 | case "(($ac_try" in |
| 12013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12014 | *) ac_try_echo=$ac_try;; |
| 12015 | esac |
| 12016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12017 | (eval "$ac_link") 2>conftest.er1 |
| 12018 | ac_status=$? |
| 12019 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12020 | rm -f conftest.er1 |
| 12021 | cat conftest.err >&5 |
| 12022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12023 | (exit $ac_status); } && |
| 12024 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12025 | { (case "(($ac_try" in |
| 12026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12027 | *) ac_try_echo=$ac_try;; |
| 12028 | esac |
| 12029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12030 | (eval "$ac_try") 2>&5 |
| 12031 | ac_status=$? |
| 12032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12033 | (exit $ac_status); }; } && |
| 12034 | { ac_try='test -s conftest$ac_exeext' |
| 12035 | { (case "(($ac_try" in |
| 12036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12037 | *) ac_try_echo=$ac_try;; |
| 12038 | esac |
| 12039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12040 | (eval "$ac_try") 2>&5 |
| 12041 | ac_status=$? |
| 12042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12043 | (exit $ac_status); }; }; then |
| 12044 | eval "$as_ac_var=yes" |
| 12045 | else |
| 12046 | echo "$as_me: failed program was:" >&5 |
| 12047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12048 | |
| 12049 | eval "$as_ac_var=no" |
| 12050 | fi |
| 12051 | |
| 12052 | rm -f core conftest.err conftest.$ac_objext \ |
| 12053 | conftest$ac_exeext conftest.$ac_ext |
| 12054 | fi |
| 12055 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12056 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12057 | echo "${ECHO_T}$ac_res" >&6; } |
| 12058 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12059 | cat >>confdefs.h <<_ACEOF |
| 12060 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12061 | _ACEOF |
| 12062 | |
| 12063 | fi |
| 12064 | done |
| 12065 | |
| 12066 | |
| 12067 | |
| 12068 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 12069 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
| 12070 | |
| 12071 | ICC=no |
| 12072 | IXX=no |
| 12073 | case $CC in |
| 12074 | icc*|icpc*) |
| 12075 | ICC=yes |
| 12076 | IXX=yes |
| 12077 | ;; |
| 12078 | *) |
| 12079 | ;; |
| 12080 | esac |
| 12081 | |
| 12082 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 12083 | then |
| 12084 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 12085 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 12086 | { (exit 1); exit 1; }; } |
| 12087 | fi |
| 12088 | |
| 12089 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 12090 | then |
| 12091 | { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 |
| 12092 | echo "$as_me: error: g++|clang++|icc required but not found" >&2;} |
| 12093 | { (exit 1); exit 1; }; } |
| 12094 | fi |
| 12095 | |
| 12096 | if test "$GCC" = "yes" |
| 12097 | then |
| 12098 | cat >conftest.$ac_ext <<_ACEOF |
| 12099 | #if !defined(__GNUC__) || __GNUC__ < 3 |
| 12100 | #error Unsupported GCC version |
| 12101 | #endif |
| 12102 | |
| 12103 | _ACEOF |
| 12104 | rm -f conftest.$ac_objext |
| 12105 | if { (ac_try="$ac_compile" |
| 12106 | case "(($ac_try" in |
| 12107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12108 | *) ac_try_echo=$ac_try;; |
| 12109 | esac |
| 12110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12111 | (eval "$ac_compile") 2>conftest.er1 |
| 12112 | ac_status=$? |
| 12113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12114 | rm -f conftest.er1 |
| 12115 | cat conftest.err >&5 |
| 12116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12117 | (exit $ac_status); } && |
| 12118 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12119 | { (case "(($ac_try" in |
| 12120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12121 | *) ac_try_echo=$ac_try;; |
| 12122 | esac |
| 12123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12124 | (eval "$ac_try") 2>&5 |
| 12125 | ac_status=$? |
| 12126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12127 | (exit $ac_status); }; } && |
| 12128 | { ac_try='test -s conftest.$ac_objext' |
| 12129 | { (case "(($ac_try" in |
| 12130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12131 | *) ac_try_echo=$ac_try;; |
| 12132 | esac |
| 12133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12134 | (eval "$ac_try") 2>&5 |
| 12135 | ac_status=$? |
| 12136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12137 | (exit $ac_status); }; }; then |
| 12138 | : |
| 12139 | else |
| 12140 | echo "$as_me: failed program was:" >&5 |
| 12141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12142 | |
| 12143 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
| 12144 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 12145 | { (exit 1); exit 1; }; } |
| 12146 | fi |
| 12147 | |
| 12148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12149 | fi |
| 12150 | |
| 12151 | if test -z "$llvm_cv_gnu_make_command" |
| 12152 | then |
| 12153 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 12154 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 12155 | { (exit 1); exit 1; }; } |
| 12156 | fi |
| 12157 | |
| 12158 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 12159 | echo "${ECHO_T}ok" >&6; } |
| 12160 | |
| 12161 | { echo "$as_me:$LINENO: checking optional compiler flags" >&5 |
| 12162 | echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } |
| 12163 | NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` |
| 12164 | |
| 12165 | NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` |
| 12166 | |
| 12167 | { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 |
| 12168 | echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } |
| 12169 | |
| 12170 | |
| 12171 | |
| 12172 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 12173 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
| 12174 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 12175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12176 | else |
| 12177 | ac_check_lib_save_LIBS=$LIBS |
| 12178 | LIBS="-lm $LIBS" |
| 12179 | cat >conftest.$ac_ext <<_ACEOF |
| 12180 | /* confdefs.h. */ |
| 12181 | _ACEOF |
| 12182 | cat confdefs.h >>conftest.$ac_ext |
| 12183 | cat >>conftest.$ac_ext <<_ACEOF |
| 12184 | /* end confdefs.h. */ |
| 12185 | |
| 12186 | /* Override any GCC internal prototype to avoid an error. |
| 12187 | Use char because int might match the return type of a GCC |
| 12188 | builtin and then its argument prototype would still apply. */ |
| 12189 | #ifdef __cplusplus |
| 12190 | extern "C" |
| 12191 | #endif |
| 12192 | char sin (); |
| 12193 | int |
| 12194 | main () |
| 12195 | { |
| 12196 | return sin (); |
| 12197 | ; |
| 12198 | return 0; |
| 12199 | } |
| 12200 | _ACEOF |
| 12201 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12202 | if { (ac_try="$ac_link" |
| 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_link") 2>conftest.er1 |
| 12209 | ac_status=$? |
| 12210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12211 | rm -f conftest.er1 |
| 12212 | cat conftest.err >&5 |
| 12213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12214 | (exit $ac_status); } && |
| 12215 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12216 | { (case "(($ac_try" in |
| 12217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12218 | *) ac_try_echo=$ac_try;; |
| 12219 | esac |
| 12220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12221 | (eval "$ac_try") 2>&5 |
| 12222 | ac_status=$? |
| 12223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12224 | (exit $ac_status); }; } && |
| 12225 | { ac_try='test -s conftest$ac_exeext' |
| 12226 | { (case "(($ac_try" in |
| 12227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12228 | *) ac_try_echo=$ac_try;; |
| 12229 | esac |
| 12230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12231 | (eval "$ac_try") 2>&5 |
| 12232 | ac_status=$? |
| 12233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12234 | (exit $ac_status); }; }; then |
| 12235 | ac_cv_lib_m_sin=yes |
| 12236 | else |
| 12237 | echo "$as_me: failed program was:" >&5 |
| 12238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12239 | |
| 12240 | ac_cv_lib_m_sin=no |
| 12241 | fi |
| 12242 | |
| 12243 | rm -f core conftest.err conftest.$ac_objext \ |
| 12244 | conftest$ac_exeext conftest.$ac_ext |
| 12245 | LIBS=$ac_check_lib_save_LIBS |
| 12246 | fi |
| 12247 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 12248 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
| 12249 | if test $ac_cv_lib_m_sin = yes; then |
| 12250 | cat >>confdefs.h <<_ACEOF |
| 12251 | #define HAVE_LIBM 1 |
| 12252 | _ACEOF |
| 12253 | |
| 12254 | LIBS="-lm $LIBS" |
| 12255 | |
| 12256 | fi |
| 12257 | |
| 12258 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 12259 | |
| 12260 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 12261 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
| 12262 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
| 12263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12264 | else |
| 12265 | ac_check_lib_save_LIBS=$LIBS |
| 12266 | LIBS="-limagehlp $LIBS" |
| 12267 | cat >conftest.$ac_ext <<_ACEOF |
| 12268 | /* confdefs.h. */ |
| 12269 | _ACEOF |
| 12270 | cat confdefs.h >>conftest.$ac_ext |
| 12271 | cat >>conftest.$ac_ext <<_ACEOF |
| 12272 | /* end confdefs.h. */ |
| 12273 | |
| 12274 | |
| 12275 | int |
| 12276 | main () |
| 12277 | { |
| 12278 | return main (); |
| 12279 | ; |
| 12280 | return 0; |
| 12281 | } |
| 12282 | _ACEOF |
| 12283 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12284 | if { (ac_try="$ac_link" |
| 12285 | case "(($ac_try" in |
| 12286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12287 | *) ac_try_echo=$ac_try;; |
| 12288 | esac |
| 12289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12290 | (eval "$ac_link") 2>conftest.er1 |
| 12291 | ac_status=$? |
| 12292 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12293 | rm -f conftest.er1 |
| 12294 | cat conftest.err >&5 |
| 12295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12296 | (exit $ac_status); } && |
| 12297 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12298 | { (case "(($ac_try" in |
| 12299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12300 | *) ac_try_echo=$ac_try;; |
| 12301 | esac |
| 12302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12303 | (eval "$ac_try") 2>&5 |
| 12304 | ac_status=$? |
| 12305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12306 | (exit $ac_status); }; } && |
| 12307 | { ac_try='test -s conftest$ac_exeext' |
| 12308 | { (case "(($ac_try" in |
| 12309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12310 | *) ac_try_echo=$ac_try;; |
| 12311 | esac |
| 12312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12313 | (eval "$ac_try") 2>&5 |
| 12314 | ac_status=$? |
| 12315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12316 | (exit $ac_status); }; }; then |
| 12317 | ac_cv_lib_imagehlp_main=yes |
| 12318 | else |
| 12319 | echo "$as_me: failed program was:" >&5 |
| 12320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12321 | |
| 12322 | ac_cv_lib_imagehlp_main=no |
| 12323 | fi |
| 12324 | |
| 12325 | rm -f core conftest.err conftest.$ac_objext \ |
| 12326 | conftest$ac_exeext conftest.$ac_ext |
| 12327 | LIBS=$ac_check_lib_save_LIBS |
| 12328 | fi |
| 12329 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 12330 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
| 12331 | if test $ac_cv_lib_imagehlp_main = yes; then |
| 12332 | cat >>confdefs.h <<_ACEOF |
| 12333 | #define HAVE_LIBIMAGEHLP 1 |
| 12334 | _ACEOF |
| 12335 | |
| 12336 | LIBS="-limagehlp $LIBS" |
| 12337 | |
| 12338 | fi |
| 12339 | |
| 12340 | |
| 12341 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 12342 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
| 12343 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
| 12344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12345 | else |
| 12346 | ac_check_lib_save_LIBS=$LIBS |
| 12347 | LIBS="-lpsapi $LIBS" |
| 12348 | cat >conftest.$ac_ext <<_ACEOF |
| 12349 | /* confdefs.h. */ |
| 12350 | _ACEOF |
| 12351 | cat confdefs.h >>conftest.$ac_ext |
| 12352 | cat >>conftest.$ac_ext <<_ACEOF |
| 12353 | /* end confdefs.h. */ |
| 12354 | |
| 12355 | |
| 12356 | int |
| 12357 | main () |
| 12358 | { |
| 12359 | return main (); |
| 12360 | ; |
| 12361 | return 0; |
| 12362 | } |
| 12363 | _ACEOF |
| 12364 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12365 | if { (ac_try="$ac_link" |
| 12366 | case "(($ac_try" in |
| 12367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12368 | *) ac_try_echo=$ac_try;; |
| 12369 | esac |
| 12370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12371 | (eval "$ac_link") 2>conftest.er1 |
| 12372 | ac_status=$? |
| 12373 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12374 | rm -f conftest.er1 |
| 12375 | cat conftest.err >&5 |
| 12376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12377 | (exit $ac_status); } && |
| 12378 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12379 | { (case "(($ac_try" in |
| 12380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12381 | *) ac_try_echo=$ac_try;; |
| 12382 | esac |
| 12383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12384 | (eval "$ac_try") 2>&5 |
| 12385 | ac_status=$? |
| 12386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12387 | (exit $ac_status); }; } && |
| 12388 | { ac_try='test -s conftest$ac_exeext' |
| 12389 | { (case "(($ac_try" in |
| 12390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12391 | *) ac_try_echo=$ac_try;; |
| 12392 | esac |
| 12393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12394 | (eval "$ac_try") 2>&5 |
| 12395 | ac_status=$? |
| 12396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12397 | (exit $ac_status); }; }; then |
| 12398 | ac_cv_lib_psapi_main=yes |
| 12399 | else |
| 12400 | echo "$as_me: failed program was:" >&5 |
| 12401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12402 | |
| 12403 | ac_cv_lib_psapi_main=no |
| 12404 | fi |
| 12405 | |
| 12406 | rm -f core conftest.err conftest.$ac_objext \ |
| 12407 | conftest$ac_exeext conftest.$ac_ext |
| 12408 | LIBS=$ac_check_lib_save_LIBS |
| 12409 | fi |
| 12410 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 12411 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
| 12412 | if test $ac_cv_lib_psapi_main = yes; then |
| 12413 | cat >>confdefs.h <<_ACEOF |
| 12414 | #define HAVE_LIBPSAPI 1 |
| 12415 | _ACEOF |
| 12416 | |
| 12417 | LIBS="-lpsapi $LIBS" |
| 12418 | |
| 12419 | fi |
| 12420 | |
| 12421 | fi |
| 12422 | |
| 12423 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 12424 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
| 12425 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 12426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12427 | else |
| 12428 | ac_func_search_save_LIBS=$LIBS |
| 12429 | cat >conftest.$ac_ext <<_ACEOF |
| 12430 | /* confdefs.h. */ |
| 12431 | _ACEOF |
| 12432 | cat confdefs.h >>conftest.$ac_ext |
| 12433 | cat >>conftest.$ac_ext <<_ACEOF |
| 12434 | /* end confdefs.h. */ |
| 12435 | |
| 12436 | /* Override any GCC internal prototype to avoid an error. |
| 12437 | Use char because int might match the return type of a GCC |
| 12438 | builtin and then its argument prototype would still apply. */ |
| 12439 | #ifdef __cplusplus |
| 12440 | extern "C" |
| 12441 | #endif |
| 12442 | char dlopen (); |
| 12443 | int |
| 12444 | main () |
| 12445 | { |
| 12446 | return dlopen (); |
| 12447 | ; |
| 12448 | return 0; |
| 12449 | } |
| 12450 | _ACEOF |
| 12451 | for ac_lib in '' dl; do |
| 12452 | if test -z "$ac_lib"; then |
| 12453 | ac_res="none required" |
| 12454 | else |
| 12455 | ac_res=-l$ac_lib |
| 12456 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12457 | fi |
| 12458 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12459 | if { (ac_try="$ac_link" |
| 12460 | case "(($ac_try" in |
| 12461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12462 | *) ac_try_echo=$ac_try;; |
| 12463 | esac |
| 12464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12465 | (eval "$ac_link") 2>conftest.er1 |
| 12466 | ac_status=$? |
| 12467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12468 | rm -f conftest.er1 |
| 12469 | cat conftest.err >&5 |
| 12470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12471 | (exit $ac_status); } && |
| 12472 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12473 | { (case "(($ac_try" in |
| 12474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12475 | *) ac_try_echo=$ac_try;; |
| 12476 | esac |
| 12477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12478 | (eval "$ac_try") 2>&5 |
| 12479 | ac_status=$? |
| 12480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12481 | (exit $ac_status); }; } && |
| 12482 | { ac_try='test -s conftest$ac_exeext' |
| 12483 | { (case "(($ac_try" in |
| 12484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12485 | *) ac_try_echo=$ac_try;; |
| 12486 | esac |
| 12487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12488 | (eval "$ac_try") 2>&5 |
| 12489 | ac_status=$? |
| 12490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12491 | (exit $ac_status); }; }; then |
| 12492 | ac_cv_search_dlopen=$ac_res |
| 12493 | else |
| 12494 | echo "$as_me: failed program was:" >&5 |
| 12495 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12496 | |
| 12497 | |
| 12498 | fi |
| 12499 | |
| 12500 | rm -f core conftest.err conftest.$ac_objext \ |
| 12501 | conftest$ac_exeext |
| 12502 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 12503 | break |
| 12504 | fi |
| 12505 | done |
| 12506 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 12507 | : |
| 12508 | else |
| 12509 | ac_cv_search_dlopen=no |
| 12510 | fi |
| 12511 | rm conftest.$ac_ext |
| 12512 | LIBS=$ac_func_search_save_LIBS |
| 12513 | fi |
| 12514 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 12515 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
| 12516 | ac_res=$ac_cv_search_dlopen |
| 12517 | if test "$ac_res" != no; then |
| 12518 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12519 | |
| 12520 | cat >>confdefs.h <<\_ACEOF |
| 12521 | #define HAVE_DLOPEN 1 |
| 12522 | _ACEOF |
| 12523 | |
| 12524 | else |
| 12525 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 12526 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
| 12527 | fi |
| 12528 | |
| 12529 | |
| 12530 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
| 12531 | { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 |
| 12532 | echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } |
| 12533 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 12534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12535 | else |
| 12536 | ac_func_search_save_LIBS=$LIBS |
| 12537 | cat >conftest.$ac_ext <<_ACEOF |
| 12538 | /* confdefs.h. */ |
| 12539 | _ACEOF |
| 12540 | cat confdefs.h >>conftest.$ac_ext |
| 12541 | cat >>conftest.$ac_ext <<_ACEOF |
| 12542 | /* end confdefs.h. */ |
| 12543 | |
| 12544 | /* Override any GCC internal prototype to avoid an error. |
| 12545 | Use char because int might match the return type of a GCC |
| 12546 | builtin and then its argument prototype would still apply. */ |
| 12547 | #ifdef __cplusplus |
| 12548 | extern "C" |
| 12549 | #endif |
| 12550 | char ffi_call (); |
| 12551 | int |
| 12552 | main () |
| 12553 | { |
| 12554 | return ffi_call (); |
| 12555 | ; |
| 12556 | return 0; |
| 12557 | } |
| 12558 | _ACEOF |
| 12559 | for ac_lib in '' ffi; do |
| 12560 | if test -z "$ac_lib"; then |
| 12561 | ac_res="none required" |
| 12562 | else |
| 12563 | ac_res=-l$ac_lib |
| 12564 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12565 | fi |
| 12566 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12567 | if { (ac_try="$ac_link" |
| 12568 | case "(($ac_try" in |
| 12569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12570 | *) ac_try_echo=$ac_try;; |
| 12571 | esac |
| 12572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12573 | (eval "$ac_link") 2>conftest.er1 |
| 12574 | ac_status=$? |
| 12575 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12576 | rm -f conftest.er1 |
| 12577 | cat conftest.err >&5 |
| 12578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12579 | (exit $ac_status); } && |
| 12580 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12581 | { (case "(($ac_try" in |
| 12582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12583 | *) ac_try_echo=$ac_try;; |
| 12584 | esac |
| 12585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12586 | (eval "$ac_try") 2>&5 |
| 12587 | ac_status=$? |
| 12588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12589 | (exit $ac_status); }; } && |
| 12590 | { ac_try='test -s conftest$ac_exeext' |
| 12591 | { (case "(($ac_try" in |
| 12592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12593 | *) ac_try_echo=$ac_try;; |
| 12594 | esac |
| 12595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12596 | (eval "$ac_try") 2>&5 |
| 12597 | ac_status=$? |
| 12598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12599 | (exit $ac_status); }; }; then |
| 12600 | ac_cv_search_ffi_call=$ac_res |
| 12601 | else |
| 12602 | echo "$as_me: failed program was:" >&5 |
| 12603 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12604 | |
| 12605 | |
| 12606 | fi |
| 12607 | |
| 12608 | rm -f core conftest.err conftest.$ac_objext \ |
| 12609 | conftest$ac_exeext |
| 12610 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 12611 | break |
| 12612 | fi |
| 12613 | done |
| 12614 | if test "${ac_cv_search_ffi_call+set}" = set; then |
| 12615 | : |
| 12616 | else |
| 12617 | ac_cv_search_ffi_call=no |
| 12618 | fi |
| 12619 | rm conftest.$ac_ext |
| 12620 | LIBS=$ac_func_search_save_LIBS |
| 12621 | fi |
| 12622 | { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 |
| 12623 | echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } |
| 12624 | ac_res=$ac_cv_search_ffi_call |
| 12625 | if test "$ac_res" != no; then |
| 12626 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12627 | |
| 12628 | cat >>confdefs.h <<\_ACEOF |
| 12629 | #define HAVE_FFI_CALL 1 |
| 12630 | _ACEOF |
| 12631 | |
| 12632 | else |
| 12633 | { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 |
| 12634 | echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} |
| 12635 | { (exit 1); exit 1; }; } |
| 12636 | fi |
| 12637 | |
| 12638 | fi |
| 12639 | |
| 12640 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 12641 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
| 12642 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 12643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12644 | else |
| 12645 | ac_func_search_save_LIBS=$LIBS |
| 12646 | cat >conftest.$ac_ext <<_ACEOF |
| 12647 | /* confdefs.h. */ |
| 12648 | _ACEOF |
| 12649 | cat confdefs.h >>conftest.$ac_ext |
| 12650 | cat >>conftest.$ac_ext <<_ACEOF |
| 12651 | /* end confdefs.h. */ |
| 12652 | |
| 12653 | /* Override any GCC internal prototype to avoid an error. |
| 12654 | Use char because int might match the return type of a GCC |
| 12655 | builtin and then its argument prototype would still apply. */ |
| 12656 | #ifdef __cplusplus |
| 12657 | extern "C" |
| 12658 | #endif |
| 12659 | char mallinfo (); |
| 12660 | int |
| 12661 | main () |
| 12662 | { |
| 12663 | return mallinfo (); |
| 12664 | ; |
| 12665 | return 0; |
| 12666 | } |
| 12667 | _ACEOF |
| 12668 | for ac_lib in '' malloc; do |
| 12669 | if test -z "$ac_lib"; then |
| 12670 | ac_res="none required" |
| 12671 | else |
| 12672 | ac_res=-l$ac_lib |
| 12673 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12674 | fi |
| 12675 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12676 | if { (ac_try="$ac_link" |
| 12677 | case "(($ac_try" in |
| 12678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12679 | *) ac_try_echo=$ac_try;; |
| 12680 | esac |
| 12681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12682 | (eval "$ac_link") 2>conftest.er1 |
| 12683 | ac_status=$? |
| 12684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12685 | rm -f conftest.er1 |
| 12686 | cat conftest.err >&5 |
| 12687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12688 | (exit $ac_status); } && |
| 12689 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12690 | { (case "(($ac_try" in |
| 12691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12692 | *) ac_try_echo=$ac_try;; |
| 12693 | esac |
| 12694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12695 | (eval "$ac_try") 2>&5 |
| 12696 | ac_status=$? |
| 12697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12698 | (exit $ac_status); }; } && |
| 12699 | { ac_try='test -s conftest$ac_exeext' |
| 12700 | { (case "(($ac_try" in |
| 12701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12702 | *) ac_try_echo=$ac_try;; |
| 12703 | esac |
| 12704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12705 | (eval "$ac_try") 2>&5 |
| 12706 | ac_status=$? |
| 12707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12708 | (exit $ac_status); }; }; then |
| 12709 | ac_cv_search_mallinfo=$ac_res |
| 12710 | else |
| 12711 | echo "$as_me: failed program was:" >&5 |
| 12712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12713 | |
| 12714 | |
| 12715 | fi |
| 12716 | |
| 12717 | rm -f core conftest.err conftest.$ac_objext \ |
| 12718 | conftest$ac_exeext |
| 12719 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 12720 | break |
| 12721 | fi |
| 12722 | done |
| 12723 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 12724 | : |
| 12725 | else |
| 12726 | ac_cv_search_mallinfo=no |
| 12727 | fi |
| 12728 | rm conftest.$ac_ext |
| 12729 | LIBS=$ac_func_search_save_LIBS |
| 12730 | fi |
| 12731 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 12732 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
| 12733 | ac_res=$ac_cv_search_mallinfo |
| 12734 | if test "$ac_res" != no; then |
| 12735 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12736 | |
| 12737 | cat >>confdefs.h <<\_ACEOF |
| 12738 | #define HAVE_MALLINFO 1 |
| 12739 | _ACEOF |
| 12740 | |
| 12741 | fi |
| 12742 | |
| 12743 | |
| 12744 | if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then |
| 12745 | |
| 12746 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 12747 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
| 12748 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 12749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12750 | else |
| 12751 | ac_check_lib_save_LIBS=$LIBS |
| 12752 | LIBS="-lpthread $LIBS" |
| 12753 | cat >conftest.$ac_ext <<_ACEOF |
| 12754 | /* confdefs.h. */ |
| 12755 | _ACEOF |
| 12756 | cat confdefs.h >>conftest.$ac_ext |
| 12757 | cat >>conftest.$ac_ext <<_ACEOF |
| 12758 | /* end confdefs.h. */ |
| 12759 | |
| 12760 | /* Override any GCC internal prototype to avoid an error. |
| 12761 | Use char because int might match the return type of a GCC |
| 12762 | builtin and then its argument prototype would still apply. */ |
| 12763 | #ifdef __cplusplus |
| 12764 | extern "C" |
| 12765 | #endif |
| 12766 | char pthread_mutex_init (); |
| 12767 | int |
| 12768 | main () |
| 12769 | { |
| 12770 | return pthread_mutex_init (); |
| 12771 | ; |
| 12772 | return 0; |
| 12773 | } |
| 12774 | _ACEOF |
| 12775 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12776 | if { (ac_try="$ac_link" |
| 12777 | case "(($ac_try" in |
| 12778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12779 | *) ac_try_echo=$ac_try;; |
| 12780 | esac |
| 12781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12782 | (eval "$ac_link") 2>conftest.er1 |
| 12783 | ac_status=$? |
| 12784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12785 | rm -f conftest.er1 |
| 12786 | cat conftest.err >&5 |
| 12787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12788 | (exit $ac_status); } && |
| 12789 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12790 | { (case "(($ac_try" in |
| 12791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12792 | *) ac_try_echo=$ac_try;; |
| 12793 | esac |
| 12794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12795 | (eval "$ac_try") 2>&5 |
| 12796 | ac_status=$? |
| 12797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12798 | (exit $ac_status); }; } && |
| 12799 | { ac_try='test -s conftest$ac_exeext' |
| 12800 | { (case "(($ac_try" in |
| 12801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12802 | *) ac_try_echo=$ac_try;; |
| 12803 | esac |
| 12804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12805 | (eval "$ac_try") 2>&5 |
| 12806 | ac_status=$? |
| 12807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12808 | (exit $ac_status); }; }; then |
| 12809 | ac_cv_lib_pthread_pthread_mutex_init=yes |
| 12810 | else |
| 12811 | echo "$as_me: failed program was:" >&5 |
| 12812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12813 | |
| 12814 | ac_cv_lib_pthread_pthread_mutex_init=no |
| 12815 | fi |
| 12816 | |
| 12817 | rm -f core conftest.err conftest.$ac_objext \ |
| 12818 | conftest$ac_exeext conftest.$ac_ext |
| 12819 | LIBS=$ac_check_lib_save_LIBS |
| 12820 | fi |
| 12821 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 12822 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 12823 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
| 12824 | cat >>confdefs.h <<_ACEOF |
| 12825 | #define HAVE_LIBPTHREAD 1 |
| 12826 | _ACEOF |
| 12827 | |
| 12828 | LIBS="-lpthread $LIBS" |
| 12829 | |
| 12830 | fi |
| 12831 | |
| 12832 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 12833 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
| 12834 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 12835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12836 | else |
| 12837 | ac_func_search_save_LIBS=$LIBS |
| 12838 | cat >conftest.$ac_ext <<_ACEOF |
| 12839 | /* confdefs.h. */ |
| 12840 | _ACEOF |
| 12841 | cat confdefs.h >>conftest.$ac_ext |
| 12842 | cat >>conftest.$ac_ext <<_ACEOF |
| 12843 | /* end confdefs.h. */ |
| 12844 | |
| 12845 | /* Override any GCC internal prototype to avoid an error. |
| 12846 | Use char because int might match the return type of a GCC |
| 12847 | builtin and then its argument prototype would still apply. */ |
| 12848 | #ifdef __cplusplus |
| 12849 | extern "C" |
| 12850 | #endif |
| 12851 | char pthread_mutex_lock (); |
| 12852 | int |
| 12853 | main () |
| 12854 | { |
| 12855 | return pthread_mutex_lock (); |
| 12856 | ; |
| 12857 | return 0; |
| 12858 | } |
| 12859 | _ACEOF |
| 12860 | for ac_lib in '' pthread; do |
| 12861 | if test -z "$ac_lib"; then |
| 12862 | ac_res="none required" |
| 12863 | else |
| 12864 | ac_res=-l$ac_lib |
| 12865 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12866 | fi |
| 12867 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12868 | if { (ac_try="$ac_link" |
| 12869 | case "(($ac_try" in |
| 12870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12871 | *) ac_try_echo=$ac_try;; |
| 12872 | esac |
| 12873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12874 | (eval "$ac_link") 2>conftest.er1 |
| 12875 | ac_status=$? |
| 12876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12877 | rm -f conftest.er1 |
| 12878 | cat conftest.err >&5 |
| 12879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12880 | (exit $ac_status); } && |
| 12881 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
| 12888 | ac_status=$? |
| 12889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12890 | (exit $ac_status); }; } && |
| 12891 | { ac_try='test -s conftest$ac_exeext' |
| 12892 | { (case "(($ac_try" in |
| 12893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12894 | *) ac_try_echo=$ac_try;; |
| 12895 | esac |
| 12896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12897 | (eval "$ac_try") 2>&5 |
| 12898 | ac_status=$? |
| 12899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12900 | (exit $ac_status); }; }; then |
| 12901 | ac_cv_search_pthread_mutex_lock=$ac_res |
| 12902 | else |
| 12903 | echo "$as_me: failed program was:" >&5 |
| 12904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12905 | |
| 12906 | |
| 12907 | fi |
| 12908 | |
| 12909 | rm -f core conftest.err conftest.$ac_objext \ |
| 12910 | conftest$ac_exeext |
| 12911 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 12912 | break |
| 12913 | fi |
| 12914 | done |
| 12915 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 12916 | : |
| 12917 | else |
| 12918 | ac_cv_search_pthread_mutex_lock=no |
| 12919 | fi |
| 12920 | rm conftest.$ac_ext |
| 12921 | LIBS=$ac_func_search_save_LIBS |
| 12922 | fi |
| 12923 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 12924 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
| 12925 | ac_res=$ac_cv_search_pthread_mutex_lock |
| 12926 | if test "$ac_res" != no; then |
| 12927 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12928 | |
| 12929 | cat >>confdefs.h <<\_ACEOF |
| 12930 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 12931 | _ACEOF |
| 12932 | |
| 12933 | fi |
| 12934 | |
| 12935 | { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 |
| 12936 | echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } |
| 12937 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 12938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12939 | else |
| 12940 | ac_func_search_save_LIBS=$LIBS |
| 12941 | cat >conftest.$ac_ext <<_ACEOF |
| 12942 | /* confdefs.h. */ |
| 12943 | _ACEOF |
| 12944 | cat confdefs.h >>conftest.$ac_ext |
| 12945 | cat >>conftest.$ac_ext <<_ACEOF |
| 12946 | /* end confdefs.h. */ |
| 12947 | |
| 12948 | /* Override any GCC internal prototype to avoid an error. |
| 12949 | Use char because int might match the return type of a GCC |
| 12950 | builtin and then its argument prototype would still apply. */ |
| 12951 | #ifdef __cplusplus |
| 12952 | extern "C" |
| 12953 | #endif |
| 12954 | char pthread_rwlock_init (); |
| 12955 | int |
| 12956 | main () |
| 12957 | { |
| 12958 | return pthread_rwlock_init (); |
| 12959 | ; |
| 12960 | return 0; |
| 12961 | } |
| 12962 | _ACEOF |
| 12963 | for ac_lib in '' pthread; do |
| 12964 | if test -z "$ac_lib"; then |
| 12965 | ac_res="none required" |
| 12966 | else |
| 12967 | ac_res=-l$ac_lib |
| 12968 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12969 | fi |
| 12970 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12971 | if { (ac_try="$ac_link" |
| 12972 | case "(($ac_try" in |
| 12973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12974 | *) ac_try_echo=$ac_try;; |
| 12975 | esac |
| 12976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12977 | (eval "$ac_link") 2>conftest.er1 |
| 12978 | ac_status=$? |
| 12979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12980 | rm -f conftest.er1 |
| 12981 | cat conftest.err >&5 |
| 12982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12983 | (exit $ac_status); } && |
| 12984 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12985 | { (case "(($ac_try" in |
| 12986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12987 | *) ac_try_echo=$ac_try;; |
| 12988 | esac |
| 12989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12990 | (eval "$ac_try") 2>&5 |
| 12991 | ac_status=$? |
| 12992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12993 | (exit $ac_status); }; } && |
| 12994 | { ac_try='test -s conftest$ac_exeext' |
| 12995 | { (case "(($ac_try" in |
| 12996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12997 | *) ac_try_echo=$ac_try;; |
| 12998 | esac |
| 12999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13000 | (eval "$ac_try") 2>&5 |
| 13001 | ac_status=$? |
| 13002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13003 | (exit $ac_status); }; }; then |
| 13004 | ac_cv_search_pthread_rwlock_init=$ac_res |
| 13005 | else |
| 13006 | echo "$as_me: failed program was:" >&5 |
| 13007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13008 | |
| 13009 | |
| 13010 | fi |
| 13011 | |
| 13012 | rm -f core conftest.err conftest.$ac_objext \ |
| 13013 | conftest$ac_exeext |
| 13014 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 13015 | break |
| 13016 | fi |
| 13017 | done |
| 13018 | if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then |
| 13019 | : |
| 13020 | else |
| 13021 | ac_cv_search_pthread_rwlock_init=no |
| 13022 | fi |
| 13023 | rm conftest.$ac_ext |
| 13024 | LIBS=$ac_func_search_save_LIBS |
| 13025 | fi |
| 13026 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 |
| 13027 | echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } |
| 13028 | ac_res=$ac_cv_search_pthread_rwlock_init |
| 13029 | if test "$ac_res" != no; then |
| 13030 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13031 | |
| 13032 | cat >>confdefs.h <<\_ACEOF |
| 13033 | #define HAVE_PTHREAD_RWLOCK_INIT 1 |
| 13034 | _ACEOF |
| 13035 | |
| 13036 | fi |
| 13037 | |
| 13038 | { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 |
| 13039 | echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } |
| 13040 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13042 | else |
| 13043 | ac_func_search_save_LIBS=$LIBS |
| 13044 | cat >conftest.$ac_ext <<_ACEOF |
| 13045 | /* confdefs.h. */ |
| 13046 | _ACEOF |
| 13047 | cat confdefs.h >>conftest.$ac_ext |
| 13048 | cat >>conftest.$ac_ext <<_ACEOF |
| 13049 | /* end confdefs.h. */ |
| 13050 | |
| 13051 | /* Override any GCC internal prototype to avoid an error. |
| 13052 | Use char because int might match the return type of a GCC |
| 13053 | builtin and then its argument prototype would still apply. */ |
| 13054 | #ifdef __cplusplus |
| 13055 | extern "C" |
| 13056 | #endif |
| 13057 | char pthread_getspecific (); |
| 13058 | int |
| 13059 | main () |
| 13060 | { |
| 13061 | return pthread_getspecific (); |
| 13062 | ; |
| 13063 | return 0; |
| 13064 | } |
| 13065 | _ACEOF |
| 13066 | for ac_lib in '' pthread; do |
| 13067 | if test -z "$ac_lib"; then |
| 13068 | ac_res="none required" |
| 13069 | else |
| 13070 | ac_res=-l$ac_lib |
| 13071 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13072 | fi |
| 13073 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13074 | if { (ac_try="$ac_link" |
| 13075 | case "(($ac_try" in |
| 13076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13077 | *) ac_try_echo=$ac_try;; |
| 13078 | esac |
| 13079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13080 | (eval "$ac_link") 2>conftest.er1 |
| 13081 | ac_status=$? |
| 13082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13083 | rm -f conftest.er1 |
| 13084 | cat conftest.err >&5 |
| 13085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13086 | (exit $ac_status); } && |
| 13087 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13088 | { (case "(($ac_try" in |
| 13089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13090 | *) ac_try_echo=$ac_try;; |
| 13091 | esac |
| 13092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13093 | (eval "$ac_try") 2>&5 |
| 13094 | ac_status=$? |
| 13095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13096 | (exit $ac_status); }; } && |
| 13097 | { ac_try='test -s conftest$ac_exeext' |
| 13098 | { (case "(($ac_try" in |
| 13099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13100 | *) ac_try_echo=$ac_try;; |
| 13101 | esac |
| 13102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13103 | (eval "$ac_try") 2>&5 |
| 13104 | ac_status=$? |
| 13105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13106 | (exit $ac_status); }; }; then |
| 13107 | ac_cv_search_pthread_getspecific=$ac_res |
| 13108 | else |
| 13109 | echo "$as_me: failed program was:" >&5 |
| 13110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13111 | |
| 13112 | |
| 13113 | fi |
| 13114 | |
| 13115 | rm -f core conftest.err conftest.$ac_objext \ |
| 13116 | conftest$ac_exeext |
| 13117 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13118 | break |
| 13119 | fi |
| 13120 | done |
| 13121 | if test "${ac_cv_search_pthread_getspecific+set}" = set; then |
| 13122 | : |
| 13123 | else |
| 13124 | ac_cv_search_pthread_getspecific=no |
| 13125 | fi |
| 13126 | rm conftest.$ac_ext |
| 13127 | LIBS=$ac_func_search_save_LIBS |
| 13128 | fi |
| 13129 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 |
| 13130 | echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } |
| 13131 | ac_res=$ac_cv_search_pthread_getspecific |
| 13132 | if test "$ac_res" != no; then |
| 13133 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13134 | |
| 13135 | cat >>confdefs.h <<\_ACEOF |
| 13136 | #define HAVE_PTHREAD_GETSPECIFIC 1 |
| 13137 | _ACEOF |
| 13138 | |
| 13139 | fi |
| 13140 | |
| 13141 | fi |
| 13142 | |
| 13143 | |
| 13144 | # Check whether --with-udis86 was given. |
| 13145 | if test "${with_udis86+set}" = set; then |
| 13146 | withval=$with_udis86; |
| 13147 | USE_UDIS86=1 |
| 13148 | |
| 13149 | case "$withval" in |
| 13150 | /usr/lib|yes) ;; |
| 13151 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 13152 | esac |
| 13153 | |
| 13154 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 13155 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 13156 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 13157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13158 | else |
| 13159 | ac_check_lib_save_LIBS=$LIBS |
| 13160 | LIBS="-ludis86 $LIBS" |
| 13161 | cat >conftest.$ac_ext <<_ACEOF |
| 13162 | /* confdefs.h. */ |
| 13163 | _ACEOF |
| 13164 | cat confdefs.h >>conftest.$ac_ext |
| 13165 | cat >>conftest.$ac_ext <<_ACEOF |
| 13166 | /* end confdefs.h. */ |
| 13167 | |
| 13168 | /* Override any GCC internal prototype to avoid an error. |
| 13169 | Use char because int might match the return type of a GCC |
| 13170 | builtin and then its argument prototype would still apply. */ |
| 13171 | #ifdef __cplusplus |
| 13172 | extern "C" |
| 13173 | #endif |
| 13174 | char ud_init (); |
| 13175 | int |
| 13176 | main () |
| 13177 | { |
| 13178 | return ud_init (); |
| 13179 | ; |
| 13180 | return 0; |
| 13181 | } |
| 13182 | _ACEOF |
| 13183 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13184 | if { (ac_try="$ac_link" |
| 13185 | case "(($ac_try" in |
| 13186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13187 | *) ac_try_echo=$ac_try;; |
| 13188 | esac |
| 13189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13190 | (eval "$ac_link") 2>conftest.er1 |
| 13191 | ac_status=$? |
| 13192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13193 | rm -f conftest.er1 |
| 13194 | cat conftest.err >&5 |
| 13195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13196 | (exit $ac_status); } && |
| 13197 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13198 | { (case "(($ac_try" in |
| 13199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13200 | *) ac_try_echo=$ac_try;; |
| 13201 | esac |
| 13202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13203 | (eval "$ac_try") 2>&5 |
| 13204 | ac_status=$? |
| 13205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13206 | (exit $ac_status); }; } && |
| 13207 | { ac_try='test -s conftest$ac_exeext' |
| 13208 | { (case "(($ac_try" in |
| 13209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13210 | *) ac_try_echo=$ac_try;; |
| 13211 | esac |
| 13212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13213 | (eval "$ac_try") 2>&5 |
| 13214 | ac_status=$? |
| 13215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13216 | (exit $ac_status); }; }; then |
| 13217 | ac_cv_lib_udis86_ud_init=yes |
| 13218 | else |
| 13219 | echo "$as_me: failed program was:" >&5 |
| 13220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13221 | |
| 13222 | ac_cv_lib_udis86_ud_init=no |
| 13223 | fi |
| 13224 | |
| 13225 | rm -f core conftest.err conftest.$ac_objext \ |
| 13226 | conftest$ac_exeext conftest.$ac_ext |
| 13227 | LIBS=$ac_check_lib_save_LIBS |
| 13228 | fi |
| 13229 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 13230 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 13231 | if test $ac_cv_lib_udis86_ud_init = yes; then |
| 13232 | cat >>confdefs.h <<_ACEOF |
| 13233 | #define HAVE_LIBUDIS86 1 |
| 13234 | _ACEOF |
| 13235 | |
| 13236 | LIBS="-ludis86 $LIBS" |
| 13237 | |
| 13238 | else |
| 13239 | |
| 13240 | echo "Error! You need to have libudis86 around." |
| 13241 | exit -1 |
| 13242 | |
| 13243 | fi |
| 13244 | |
| 13245 | |
| 13246 | else |
| 13247 | USE_UDIS86=0 |
| 13248 | |
| 13249 | fi |
| 13250 | |
| 13251 | |
| 13252 | cat >>confdefs.h <<_ACEOF |
| 13253 | #define USE_UDIS86 $USE_UDIS86 |
| 13254 | _ACEOF |
| 13255 | |
| 13256 | |
| 13257 | |
| 13258 | # Check whether --with-oprofile was given. |
| 13259 | if test "${with_oprofile+set}" = set; then |
| 13260 | withval=$with_oprofile; |
| 13261 | USE_OPROFILE=1 |
| 13262 | |
| 13263 | case "$withval" in |
| 13264 | /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; |
| 13265 | no) llvm_cv_oppath= |
| 13266 | USE_OPROFILE=0 |
| 13267 | ;; |
| 13268 | *) llvm_cv_oppath="${withval}/lib/oprofile" |
| 13269 | CPPFLAGS="-I${withval}/include";; |
| 13270 | esac |
| 13271 | if test -n "$llvm_cv_oppath" ; then |
| 13272 | LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" |
| 13273 | { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 |
| 13274 | echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } |
| 13275 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 13276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13277 | else |
| 13278 | ac_func_search_save_LIBS=$LIBS |
| 13279 | cat >conftest.$ac_ext <<_ACEOF |
| 13280 | /* confdefs.h. */ |
| 13281 | _ACEOF |
| 13282 | cat confdefs.h >>conftest.$ac_ext |
| 13283 | cat >>conftest.$ac_ext <<_ACEOF |
| 13284 | /* end confdefs.h. */ |
| 13285 | |
| 13286 | /* Override any GCC internal prototype to avoid an error. |
| 13287 | Use char because int might match the return type of a GCC |
| 13288 | builtin and then its argument prototype would still apply. */ |
| 13289 | #ifdef __cplusplus |
| 13290 | extern "C" |
| 13291 | #endif |
| 13292 | char bfd_init (); |
| 13293 | int |
| 13294 | main () |
| 13295 | { |
| 13296 | return bfd_init (); |
| 13297 | ; |
| 13298 | return 0; |
| 13299 | } |
| 13300 | _ACEOF |
| 13301 | for ac_lib in '' bfd; do |
| 13302 | if test -z "$ac_lib"; then |
| 13303 | ac_res="none required" |
| 13304 | else |
| 13305 | ac_res=-l$ac_lib |
| 13306 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13307 | fi |
| 13308 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13309 | if { (ac_try="$ac_link" |
| 13310 | case "(($ac_try" in |
| 13311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13312 | *) ac_try_echo=$ac_try;; |
| 13313 | esac |
| 13314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13315 | (eval "$ac_link") 2>conftest.er1 |
| 13316 | ac_status=$? |
| 13317 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13318 | rm -f conftest.er1 |
| 13319 | cat conftest.err >&5 |
| 13320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13321 | (exit $ac_status); } && |
| 13322 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13323 | { (case "(($ac_try" in |
| 13324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13325 | *) ac_try_echo=$ac_try;; |
| 13326 | esac |
| 13327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13328 | (eval "$ac_try") 2>&5 |
| 13329 | ac_status=$? |
| 13330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13331 | (exit $ac_status); }; } && |
| 13332 | { ac_try='test -s conftest$ac_exeext' |
| 13333 | { (case "(($ac_try" in |
| 13334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13335 | *) ac_try_echo=$ac_try;; |
| 13336 | esac |
| 13337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13338 | (eval "$ac_try") 2>&5 |
| 13339 | ac_status=$? |
| 13340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13341 | (exit $ac_status); }; }; then |
| 13342 | ac_cv_search_bfd_init=$ac_res |
| 13343 | else |
| 13344 | echo "$as_me: failed program was:" >&5 |
| 13345 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13346 | |
| 13347 | |
| 13348 | fi |
| 13349 | |
| 13350 | rm -f core conftest.err conftest.$ac_objext \ |
| 13351 | conftest$ac_exeext |
| 13352 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 13353 | break |
| 13354 | fi |
| 13355 | done |
| 13356 | if test "${ac_cv_search_bfd_init+set}" = set; then |
| 13357 | : |
| 13358 | else |
| 13359 | ac_cv_search_bfd_init=no |
| 13360 | fi |
| 13361 | rm conftest.$ac_ext |
| 13362 | LIBS=$ac_func_search_save_LIBS |
| 13363 | fi |
| 13364 | { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 |
| 13365 | echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } |
| 13366 | ac_res=$ac_cv_search_bfd_init |
| 13367 | if test "$ac_res" != no; then |
| 13368 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13369 | |
| 13370 | fi |
| 13371 | |
| 13372 | { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 |
| 13373 | echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } |
| 13374 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 13375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13376 | else |
| 13377 | ac_func_search_save_LIBS=$LIBS |
| 13378 | cat >conftest.$ac_ext <<_ACEOF |
| 13379 | /* confdefs.h. */ |
| 13380 | _ACEOF |
| 13381 | cat confdefs.h >>conftest.$ac_ext |
| 13382 | cat >>conftest.$ac_ext <<_ACEOF |
| 13383 | /* end confdefs.h. */ |
| 13384 | |
| 13385 | /* Override any GCC internal prototype to avoid an error. |
| 13386 | Use char because int might match the return type of a GCC |
| 13387 | builtin and then its argument prototype would still apply. */ |
| 13388 | #ifdef __cplusplus |
| 13389 | extern "C" |
| 13390 | #endif |
| 13391 | char op_open_agent (); |
| 13392 | int |
| 13393 | main () |
| 13394 | { |
| 13395 | return op_open_agent (); |
| 13396 | ; |
| 13397 | return 0; |
| 13398 | } |
| 13399 | _ACEOF |
| 13400 | for ac_lib in '' opagent; do |
| 13401 | if test -z "$ac_lib"; then |
| 13402 | ac_res="none required" |
| 13403 | else |
| 13404 | ac_res=-l$ac_lib |
| 13405 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13406 | fi |
| 13407 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13408 | if { (ac_try="$ac_link" |
| 13409 | case "(($ac_try" in |
| 13410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13411 | *) ac_try_echo=$ac_try;; |
| 13412 | esac |
| 13413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13414 | (eval "$ac_link") 2>conftest.er1 |
| 13415 | ac_status=$? |
| 13416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13417 | rm -f conftest.er1 |
| 13418 | cat conftest.err >&5 |
| 13419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13420 | (exit $ac_status); } && |
| 13421 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13422 | { (case "(($ac_try" in |
| 13423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13424 | *) ac_try_echo=$ac_try;; |
| 13425 | esac |
| 13426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13427 | (eval "$ac_try") 2>&5 |
| 13428 | ac_status=$? |
| 13429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13430 | (exit $ac_status); }; } && |
| 13431 | { ac_try='test -s conftest$ac_exeext' |
| 13432 | { (case "(($ac_try" in |
| 13433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13434 | *) ac_try_echo=$ac_try;; |
| 13435 | esac |
| 13436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13437 | (eval "$ac_try") 2>&5 |
| 13438 | ac_status=$? |
| 13439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13440 | (exit $ac_status); }; }; then |
| 13441 | ac_cv_search_op_open_agent=$ac_res |
| 13442 | else |
| 13443 | echo "$as_me: failed program was:" >&5 |
| 13444 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13445 | |
| 13446 | |
| 13447 | fi |
| 13448 | |
| 13449 | rm -f core conftest.err conftest.$ac_objext \ |
| 13450 | conftest$ac_exeext |
| 13451 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 13452 | break |
| 13453 | fi |
| 13454 | done |
| 13455 | if test "${ac_cv_search_op_open_agent+set}" = set; then |
| 13456 | : |
| 13457 | else |
| 13458 | ac_cv_search_op_open_agent=no |
| 13459 | fi |
| 13460 | rm conftest.$ac_ext |
| 13461 | LIBS=$ac_func_search_save_LIBS |
| 13462 | fi |
| 13463 | { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 |
| 13464 | echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } |
| 13465 | ac_res=$ac_cv_search_op_open_agent |
| 13466 | if test "$ac_res" != no; then |
| 13467 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13468 | |
| 13469 | else |
| 13470 | |
| 13471 | echo "Error! You need to have libopagent around." |
| 13472 | exit -1 |
| 13473 | |
| 13474 | fi |
| 13475 | |
| 13476 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 13477 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 13478 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 13479 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 13480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13481 | fi |
| 13482 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 13483 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 13484 | else |
| 13485 | # Is the header compilable? |
| 13486 | { echo "$as_me:$LINENO: checking opagent.h usability" >&5 |
| 13487 | echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } |
| 13488 | cat >conftest.$ac_ext <<_ACEOF |
| 13489 | /* confdefs.h. */ |
| 13490 | _ACEOF |
| 13491 | cat confdefs.h >>conftest.$ac_ext |
| 13492 | cat >>conftest.$ac_ext <<_ACEOF |
| 13493 | /* end confdefs.h. */ |
| 13494 | $ac_includes_default |
| 13495 | #include <opagent.h> |
| 13496 | _ACEOF |
| 13497 | rm -f conftest.$ac_objext |
| 13498 | if { (ac_try="$ac_compile" |
| 13499 | case "(($ac_try" in |
| 13500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13501 | *) ac_try_echo=$ac_try;; |
| 13502 | esac |
| 13503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13504 | (eval "$ac_compile") 2>conftest.er1 |
| 13505 | ac_status=$? |
| 13506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13507 | rm -f conftest.er1 |
| 13508 | cat conftest.err >&5 |
| 13509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13510 | (exit $ac_status); } && |
| 13511 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13512 | { (case "(($ac_try" in |
| 13513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13514 | *) ac_try_echo=$ac_try;; |
| 13515 | esac |
| 13516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13517 | (eval "$ac_try") 2>&5 |
| 13518 | ac_status=$? |
| 13519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13520 | (exit $ac_status); }; } && |
| 13521 | { ac_try='test -s conftest.$ac_objext' |
| 13522 | { (case "(($ac_try" in |
| 13523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13524 | *) ac_try_echo=$ac_try;; |
| 13525 | esac |
| 13526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13527 | (eval "$ac_try") 2>&5 |
| 13528 | ac_status=$? |
| 13529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13530 | (exit $ac_status); }; }; then |
| 13531 | ac_header_compiler=yes |
| 13532 | else |
| 13533 | echo "$as_me: failed program was:" >&5 |
| 13534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13535 | |
| 13536 | ac_header_compiler=no |
| 13537 | fi |
| 13538 | |
| 13539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13540 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13541 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 13542 | |
| 13543 | # Is the header present? |
| 13544 | { echo "$as_me:$LINENO: checking opagent.h presence" >&5 |
| 13545 | echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } |
| 13546 | cat >conftest.$ac_ext <<_ACEOF |
| 13547 | /* confdefs.h. */ |
| 13548 | _ACEOF |
| 13549 | cat confdefs.h >>conftest.$ac_ext |
| 13550 | cat >>conftest.$ac_ext <<_ACEOF |
| 13551 | /* end confdefs.h. */ |
| 13552 | #include <opagent.h> |
| 13553 | _ACEOF |
| 13554 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13555 | case "(($ac_try" in |
| 13556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13557 | *) ac_try_echo=$ac_try;; |
| 13558 | esac |
| 13559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13560 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 13561 | ac_status=$? |
| 13562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13563 | rm -f conftest.er1 |
| 13564 | cat conftest.err >&5 |
| 13565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13566 | (exit $ac_status); } >/dev/null; then |
| 13567 | if test -s conftest.err; then |
| 13568 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 13569 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 13570 | else |
| 13571 | ac_cpp_err= |
| 13572 | fi |
| 13573 | else |
| 13574 | ac_cpp_err=yes |
| 13575 | fi |
| 13576 | if test -z "$ac_cpp_err"; then |
| 13577 | ac_header_preproc=yes |
| 13578 | else |
| 13579 | echo "$as_me: failed program was:" >&5 |
| 13580 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13581 | |
| 13582 | ac_header_preproc=no |
| 13583 | fi |
| 13584 | |
| 13585 | rm -f conftest.err conftest.$ac_ext |
| 13586 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13587 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 13588 | |
| 13589 | # So? What about this header? |
| 13590 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13591 | yes:no: ) |
| 13592 | { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13593 | echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13594 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 |
| 13595 | echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} |
| 13596 | ac_header_preproc=yes |
| 13597 | ;; |
| 13598 | no:yes:* ) |
| 13599 | { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 |
| 13600 | echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} |
| 13601 | { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 |
| 13602 | echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} |
| 13603 | { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 |
| 13604 | echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} |
| 13605 | { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13606 | echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 13607 | { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 |
| 13608 | echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} |
| 13609 | { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 |
| 13610 | echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} |
| 13611 | ( cat <<\_ASBOX |
| 13612 | ## ------------------------------ ## |
| 13613 | ## Report this to bugs@yourdomain ## |
| 13614 | ## ------------------------------ ## |
| 13615 | _ASBOX |
| 13616 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 13617 | ;; |
| 13618 | esac |
| 13619 | { echo "$as_me:$LINENO: checking for opagent.h" >&5 |
| 13620 | echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } |
| 13621 | if test "${ac_cv_header_opagent_h+set}" = set; then |
| 13622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13623 | else |
| 13624 | ac_cv_header_opagent_h=$ac_header_preproc |
| 13625 | fi |
| 13626 | { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 |
| 13627 | echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } |
| 13628 | |
| 13629 | fi |
| 13630 | if test $ac_cv_header_opagent_h = yes; then |
| 13631 | : |
| 13632 | else |
| 13633 | |
| 13634 | echo "Error! You need to have opagent.h around." |
| 13635 | exit -1 |
| 13636 | |
| 13637 | fi |
| 13638 | |
| 13639 | |
| 13640 | fi |
| 13641 | |
| 13642 | else |
| 13643 | |
| 13644 | USE_OPROFILE=0 |
| 13645 | |
| 13646 | |
| 13647 | fi |
| 13648 | |
| 13649 | |
| 13650 | cat >>confdefs.h <<_ACEOF |
| 13651 | #define USE_OPROFILE $USE_OPROFILE |
| 13652 | _ACEOF |
| 13653 | |
| 13654 | |
| 13655 | |
| 13656 | |
| 13657 | |
| 13658 | |
| 13659 | |
| 13660 | |
| 13661 | ac_header_dirent=no |
| 13662 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 13663 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 13664 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 13665 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 13666 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 13667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13668 | else |
| 13669 | cat >conftest.$ac_ext <<_ACEOF |
| 13670 | /* confdefs.h. */ |
| 13671 | _ACEOF |
| 13672 | cat confdefs.h >>conftest.$ac_ext |
| 13673 | cat >>conftest.$ac_ext <<_ACEOF |
| 13674 | /* end confdefs.h. */ |
| 13675 | #include <sys/types.h> |
| 13676 | #include <$ac_hdr> |
| 13677 | |
| 13678 | int |
| 13679 | main () |
| 13680 | { |
| 13681 | if ((DIR *) 0) |
| 13682 | return 0; |
| 13683 | ; |
| 13684 | return 0; |
| 13685 | } |
| 13686 | _ACEOF |
| 13687 | rm -f conftest.$ac_objext |
| 13688 | if { (ac_try="$ac_compile" |
| 13689 | case "(($ac_try" in |
| 13690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13691 | *) ac_try_echo=$ac_try;; |
| 13692 | esac |
| 13693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13694 | (eval "$ac_compile") 2>conftest.er1 |
| 13695 | ac_status=$? |
| 13696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13697 | rm -f conftest.er1 |
| 13698 | cat conftest.err >&5 |
| 13699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13700 | (exit $ac_status); } && |
| 13701 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13702 | { (case "(($ac_try" in |
| 13703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13704 | *) ac_try_echo=$ac_try;; |
| 13705 | esac |
| 13706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13707 | (eval "$ac_try") 2>&5 |
| 13708 | ac_status=$? |
| 13709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13710 | (exit $ac_status); }; } && |
| 13711 | { ac_try='test -s conftest.$ac_objext' |
| 13712 | { (case "(($ac_try" in |
| 13713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13714 | *) ac_try_echo=$ac_try;; |
| 13715 | esac |
| 13716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13717 | (eval "$ac_try") 2>&5 |
| 13718 | ac_status=$? |
| 13719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13720 | (exit $ac_status); }; }; then |
| 13721 | eval "$as_ac_Header=yes" |
| 13722 | else |
| 13723 | echo "$as_me: failed program was:" >&5 |
| 13724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13725 | |
| 13726 | eval "$as_ac_Header=no" |
| 13727 | fi |
| 13728 | |
| 13729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13730 | fi |
| 13731 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 13732 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 13733 | echo "${ECHO_T}$ac_res" >&6; } |
| 13734 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13735 | cat >>confdefs.h <<_ACEOF |
| 13736 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 13737 | _ACEOF |
| 13738 | |
| 13739 | ac_header_dirent=$ac_hdr; break |
| 13740 | fi |
| 13741 | |
| 13742 | done |
| 13743 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 13744 | if test $ac_header_dirent = dirent.h; then |
| 13745 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 13746 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 13747 | if test "${ac_cv_search_opendir+set}" = set; then |
| 13748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13749 | else |
| 13750 | ac_func_search_save_LIBS=$LIBS |
| 13751 | cat >conftest.$ac_ext <<_ACEOF |
| 13752 | /* confdefs.h. */ |
| 13753 | _ACEOF |
| 13754 | cat confdefs.h >>conftest.$ac_ext |
| 13755 | cat >>conftest.$ac_ext <<_ACEOF |
| 13756 | /* end confdefs.h. */ |
| 13757 | |
| 13758 | /* Override any GCC internal prototype to avoid an error. |
| 13759 | Use char because int might match the return type of a GCC |
| 13760 | builtin and then its argument prototype would still apply. */ |
| 13761 | #ifdef __cplusplus |
| 13762 | extern "C" |
| 13763 | #endif |
| 13764 | char opendir (); |
| 13765 | int |
| 13766 | main () |
| 13767 | { |
| 13768 | return opendir (); |
| 13769 | ; |
| 13770 | return 0; |
| 13771 | } |
| 13772 | _ACEOF |
| 13773 | for ac_lib in '' dir; do |
| 13774 | if test -z "$ac_lib"; then |
| 13775 | ac_res="none required" |
| 13776 | else |
| 13777 | ac_res=-l$ac_lib |
| 13778 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13779 | fi |
| 13780 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13781 | if { (ac_try="$ac_link" |
| 13782 | case "(($ac_try" in |
| 13783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13784 | *) ac_try_echo=$ac_try;; |
| 13785 | esac |
| 13786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13787 | (eval "$ac_link") 2>conftest.er1 |
| 13788 | ac_status=$? |
| 13789 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13790 | rm -f conftest.er1 |
| 13791 | cat conftest.err >&5 |
| 13792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13793 | (exit $ac_status); } && |
| 13794 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13795 | { (case "(($ac_try" in |
| 13796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13797 | *) ac_try_echo=$ac_try;; |
| 13798 | esac |
| 13799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13800 | (eval "$ac_try") 2>&5 |
| 13801 | ac_status=$? |
| 13802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13803 | (exit $ac_status); }; } && |
| 13804 | { ac_try='test -s conftest$ac_exeext' |
| 13805 | { (case "(($ac_try" in |
| 13806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13807 | *) ac_try_echo=$ac_try;; |
| 13808 | esac |
| 13809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13810 | (eval "$ac_try") 2>&5 |
| 13811 | ac_status=$? |
| 13812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13813 | (exit $ac_status); }; }; then |
| 13814 | ac_cv_search_opendir=$ac_res |
| 13815 | else |
| 13816 | echo "$as_me: failed program was:" >&5 |
| 13817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13818 | |
| 13819 | |
| 13820 | fi |
| 13821 | |
| 13822 | rm -f core conftest.err conftest.$ac_objext \ |
| 13823 | conftest$ac_exeext |
| 13824 | if test "${ac_cv_search_opendir+set}" = set; then |
| 13825 | break |
| 13826 | fi |
| 13827 | done |
| 13828 | if test "${ac_cv_search_opendir+set}" = set; then |
| 13829 | : |
| 13830 | else |
| 13831 | ac_cv_search_opendir=no |
| 13832 | fi |
| 13833 | rm conftest.$ac_ext |
| 13834 | LIBS=$ac_func_search_save_LIBS |
| 13835 | fi |
| 13836 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 13837 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 13838 | ac_res=$ac_cv_search_opendir |
| 13839 | if test "$ac_res" != no; then |
| 13840 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13841 | |
| 13842 | fi |
| 13843 | |
| 13844 | else |
| 13845 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 13846 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 13847 | if test "${ac_cv_search_opendir+set}" = set; then |
| 13848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13849 | else |
| 13850 | ac_func_search_save_LIBS=$LIBS |
| 13851 | cat >conftest.$ac_ext <<_ACEOF |
| 13852 | /* confdefs.h. */ |
| 13853 | _ACEOF |
| 13854 | cat confdefs.h >>conftest.$ac_ext |
| 13855 | cat >>conftest.$ac_ext <<_ACEOF |
| 13856 | /* end confdefs.h. */ |
| 13857 | |
| 13858 | /* Override any GCC internal prototype to avoid an error. |
| 13859 | Use char because int might match the return type of a GCC |
| 13860 | builtin and then its argument prototype would still apply. */ |
| 13861 | #ifdef __cplusplus |
| 13862 | extern "C" |
| 13863 | #endif |
| 13864 | char opendir (); |
| 13865 | int |
| 13866 | main () |
| 13867 | { |
| 13868 | return opendir (); |
| 13869 | ; |
| 13870 | return 0; |
| 13871 | } |
| 13872 | _ACEOF |
| 13873 | for ac_lib in '' x; do |
| 13874 | if test -z "$ac_lib"; then |
| 13875 | ac_res="none required" |
| 13876 | else |
| 13877 | ac_res=-l$ac_lib |
| 13878 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13879 | fi |
| 13880 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13881 | if { (ac_try="$ac_link" |
| 13882 | case "(($ac_try" in |
| 13883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13884 | *) ac_try_echo=$ac_try;; |
| 13885 | esac |
| 13886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13887 | (eval "$ac_link") 2>conftest.er1 |
| 13888 | ac_status=$? |
| 13889 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13890 | rm -f conftest.er1 |
| 13891 | cat conftest.err >&5 |
| 13892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13893 | (exit $ac_status); } && |
| 13894 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13895 | { (case "(($ac_try" in |
| 13896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13897 | *) ac_try_echo=$ac_try;; |
| 13898 | esac |
| 13899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13900 | (eval "$ac_try") 2>&5 |
| 13901 | ac_status=$? |
| 13902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13903 | (exit $ac_status); }; } && |
| 13904 | { ac_try='test -s conftest$ac_exeext' |
| 13905 | { (case "(($ac_try" in |
| 13906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13907 | *) ac_try_echo=$ac_try;; |
| 13908 | esac |
| 13909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13910 | (eval "$ac_try") 2>&5 |
| 13911 | ac_status=$? |
| 13912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13913 | (exit $ac_status); }; }; then |
| 13914 | ac_cv_search_opendir=$ac_res |
| 13915 | else |
| 13916 | echo "$as_me: failed program was:" >&5 |
| 13917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13918 | |
| 13919 | |
| 13920 | fi |
| 13921 | |
| 13922 | rm -f core conftest.err conftest.$ac_objext \ |
| 13923 | conftest$ac_exeext |
| 13924 | if test "${ac_cv_search_opendir+set}" = set; then |
| 13925 | break |
| 13926 | fi |
| 13927 | done |
| 13928 | if test "${ac_cv_search_opendir+set}" = set; then |
| 13929 | : |
| 13930 | else |
| 13931 | ac_cv_search_opendir=no |
| 13932 | fi |
| 13933 | rm conftest.$ac_ext |
| 13934 | LIBS=$ac_func_search_save_LIBS |
| 13935 | fi |
| 13936 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 13937 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 13938 | ac_res=$ac_cv_search_opendir |
| 13939 | if test "$ac_res" != no; then |
| 13940 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13941 | |
| 13942 | fi |
| 13943 | |
| 13944 | fi |
| 13945 | |
| 13946 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 13947 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
| 13948 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 13949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13950 | else |
| 13951 | ac_ext=c |
| 13952 | ac_cpp='$CPP $CPPFLAGS' |
| 13953 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13954 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13955 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13956 | |
| 13957 | cat >conftest.$ac_ext <<_ACEOF |
| 13958 | /* confdefs.h. */ |
| 13959 | _ACEOF |
| 13960 | cat confdefs.h >>conftest.$ac_ext |
| 13961 | cat >>conftest.$ac_ext <<_ACEOF |
| 13962 | /* end confdefs.h. */ |
| 13963 | #include <sys/mman.h> |
| 13964 | #include <unistd.h> |
| 13965 | #include <fcntl.h> |
| 13966 | int |
| 13967 | main () |
| 13968 | { |
| 13969 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 13970 | ; |
| 13971 | return 0; |
| 13972 | } |
| 13973 | _ACEOF |
| 13974 | rm -f conftest.$ac_objext |
| 13975 | if { (ac_try="$ac_compile" |
| 13976 | case "(($ac_try" in |
| 13977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13978 | *) ac_try_echo=$ac_try;; |
| 13979 | esac |
| 13980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13981 | (eval "$ac_compile") 2>conftest.er1 |
| 13982 | ac_status=$? |
| 13983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13984 | rm -f conftest.er1 |
| 13985 | cat conftest.err >&5 |
| 13986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13987 | (exit $ac_status); } && |
| 13988 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13989 | { (case "(($ac_try" in |
| 13990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13991 | *) ac_try_echo=$ac_try;; |
| 13992 | esac |
| 13993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13994 | (eval "$ac_try") 2>&5 |
| 13995 | ac_status=$? |
| 13996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13997 | (exit $ac_status); }; } && |
| 13998 | { ac_try='test -s conftest.$ac_objext' |
| 13999 | { (case "(($ac_try" in |
| 14000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14001 | *) ac_try_echo=$ac_try;; |
| 14002 | esac |
| 14003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14004 | (eval "$ac_try") 2>&5 |
| 14005 | ac_status=$? |
| 14006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14007 | (exit $ac_status); }; }; then |
| 14008 | ac_cv_header_mmap_anon=yes |
| 14009 | else |
| 14010 | echo "$as_me: failed program was:" >&5 |
| 14011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14012 | |
| 14013 | ac_cv_header_mmap_anon=no |
| 14014 | fi |
| 14015 | |
| 14016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14017 | ac_ext=c |
| 14018 | ac_cpp='$CPP $CPPFLAGS' |
| 14019 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14020 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14021 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14022 | |
| 14023 | |
| 14024 | fi |
| 14025 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 14026 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
| 14027 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 14028 | |
| 14029 | cat >>confdefs.h <<\_ACEOF |
| 14030 | #define HAVE_MMAP_ANONYMOUS 1 |
| 14031 | _ACEOF |
| 14032 | |
| 14033 | fi |
| 14034 | |
| 14035 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 14036 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
| 14037 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 14038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14039 | else |
| 14040 | cat >conftest.$ac_ext <<_ACEOF |
| 14041 | /* confdefs.h. */ |
| 14042 | _ACEOF |
| 14043 | cat confdefs.h >>conftest.$ac_ext |
| 14044 | cat >>conftest.$ac_ext <<_ACEOF |
| 14045 | /* end confdefs.h. */ |
| 14046 | #include <sys/types.h> |
| 14047 | #include <sys/stat.h> |
| 14048 | |
| 14049 | #if defined S_ISBLK && defined S_IFDIR |
| 14050 | # if S_ISBLK (S_IFDIR) |
| 14051 | You lose. |
| 14052 | # endif |
| 14053 | #endif |
| 14054 | |
| 14055 | #if defined S_ISBLK && defined S_IFCHR |
| 14056 | # if S_ISBLK (S_IFCHR) |
| 14057 | You lose. |
| 14058 | # endif |
| 14059 | #endif |
| 14060 | |
| 14061 | #if defined S_ISLNK && defined S_IFREG |
| 14062 | # if S_ISLNK (S_IFREG) |
| 14063 | You lose. |
| 14064 | # endif |
| 14065 | #endif |
| 14066 | |
| 14067 | #if defined S_ISSOCK && defined S_IFREG |
| 14068 | # if S_ISSOCK (S_IFREG) |
| 14069 | You lose. |
| 14070 | # endif |
| 14071 | #endif |
| 14072 | |
| 14073 | _ACEOF |
| 14074 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 14075 | $EGREP "You lose" >/dev/null 2>&1; then |
| 14076 | ac_cv_header_stat_broken=yes |
| 14077 | else |
| 14078 | ac_cv_header_stat_broken=no |
| 14079 | fi |
| 14080 | rm -f conftest* |
| 14081 | |
| 14082 | fi |
| 14083 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 14084 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
| 14085 | if test $ac_cv_header_stat_broken = yes; then |
| 14086 | |
| 14087 | cat >>confdefs.h <<\_ACEOF |
| 14088 | #define STAT_MACROS_BROKEN 1 |
| 14089 | _ACEOF |
| 14090 | |
| 14091 | fi |
| 14092 | |
| 14093 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 14094 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
| 14095 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 14096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14097 | else |
| 14098 | cat >conftest.$ac_ext <<_ACEOF |
| 14099 | /* confdefs.h. */ |
| 14100 | _ACEOF |
| 14101 | cat confdefs.h >>conftest.$ac_ext |
| 14102 | cat >>conftest.$ac_ext <<_ACEOF |
| 14103 | /* end confdefs.h. */ |
| 14104 | #include <sys/types.h> |
| 14105 | #include <sys/wait.h> |
| 14106 | #ifndef WEXITSTATUS |
| 14107 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
| 14108 | #endif |
| 14109 | #ifndef WIFEXITED |
| 14110 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 14111 | #endif |
| 14112 | |
| 14113 | int |
| 14114 | main () |
| 14115 | { |
| 14116 | int s; |
| 14117 | wait (&s); |
| 14118 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 14119 | ; |
| 14120 | return 0; |
| 14121 | } |
| 14122 | _ACEOF |
| 14123 | rm -f conftest.$ac_objext |
| 14124 | if { (ac_try="$ac_compile" |
| 14125 | case "(($ac_try" in |
| 14126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14127 | *) ac_try_echo=$ac_try;; |
| 14128 | esac |
| 14129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14130 | (eval "$ac_compile") 2>conftest.er1 |
| 14131 | ac_status=$? |
| 14132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14133 | rm -f conftest.er1 |
| 14134 | cat conftest.err >&5 |
| 14135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14136 | (exit $ac_status); } && |
| 14137 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14138 | { (case "(($ac_try" in |
| 14139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14140 | *) ac_try_echo=$ac_try;; |
| 14141 | esac |
| 14142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14143 | (eval "$ac_try") 2>&5 |
| 14144 | ac_status=$? |
| 14145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14146 | (exit $ac_status); }; } && |
| 14147 | { ac_try='test -s conftest.$ac_objext' |
| 14148 | { (case "(($ac_try" in |
| 14149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14150 | *) ac_try_echo=$ac_try;; |
| 14151 | esac |
| 14152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14153 | (eval "$ac_try") 2>&5 |
| 14154 | ac_status=$? |
| 14155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14156 | (exit $ac_status); }; }; then |
| 14157 | ac_cv_header_sys_wait_h=yes |
| 14158 | else |
| 14159 | echo "$as_me: failed program was:" >&5 |
| 14160 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14161 | |
| 14162 | ac_cv_header_sys_wait_h=no |
| 14163 | fi |
| 14164 | |
| 14165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14166 | fi |
| 14167 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 14168 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
| 14169 | if test $ac_cv_header_sys_wait_h = yes; then |
| 14170 | |
| 14171 | cat >>confdefs.h <<\_ACEOF |
| 14172 | #define HAVE_SYS_WAIT_H 1 |
| 14173 | _ACEOF |
| 14174 | |
| 14175 | fi |
| 14176 | |
| 14177 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 14178 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
| 14179 | if test "${ac_cv_header_time+set}" = set; then |
| 14180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14181 | else |
| 14182 | cat >conftest.$ac_ext <<_ACEOF |
| 14183 | /* confdefs.h. */ |
| 14184 | _ACEOF |
| 14185 | cat confdefs.h >>conftest.$ac_ext |
| 14186 | cat >>conftest.$ac_ext <<_ACEOF |
| 14187 | /* end confdefs.h. */ |
| 14188 | #include <sys/types.h> |
| 14189 | #include <sys/time.h> |
| 14190 | #include <time.h> |
| 14191 | |
| 14192 | int |
| 14193 | main () |
| 14194 | { |
| 14195 | if ((struct tm *) 0) |
| 14196 | return 0; |
| 14197 | ; |
| 14198 | return 0; |
| 14199 | } |
| 14200 | _ACEOF |
| 14201 | rm -f conftest.$ac_objext |
| 14202 | if { (ac_try="$ac_compile" |
| 14203 | case "(($ac_try" in |
| 14204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14205 | *) ac_try_echo=$ac_try;; |
| 14206 | esac |
| 14207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14208 | (eval "$ac_compile") 2>conftest.er1 |
| 14209 | ac_status=$? |
| 14210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14211 | rm -f conftest.er1 |
| 14212 | cat conftest.err >&5 |
| 14213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14214 | (exit $ac_status); } && |
| 14215 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14216 | { (case "(($ac_try" in |
| 14217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14218 | *) ac_try_echo=$ac_try;; |
| 14219 | esac |
| 14220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14221 | (eval "$ac_try") 2>&5 |
| 14222 | ac_status=$? |
| 14223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14224 | (exit $ac_status); }; } && |
| 14225 | { ac_try='test -s conftest.$ac_objext' |
| 14226 | { (case "(($ac_try" in |
| 14227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14228 | *) ac_try_echo=$ac_try;; |
| 14229 | esac |
| 14230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14231 | (eval "$ac_try") 2>&5 |
| 14232 | ac_status=$? |
| 14233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14234 | (exit $ac_status); }; }; then |
| 14235 | ac_cv_header_time=yes |
| 14236 | else |
| 14237 | echo "$as_me: failed program was:" >&5 |
| 14238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14239 | |
| 14240 | ac_cv_header_time=no |
| 14241 | fi |
| 14242 | |
| 14243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14244 | fi |
| 14245 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 14246 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
| 14247 | if test $ac_cv_header_time = yes; then |
| 14248 | |
| 14249 | cat >>confdefs.h <<\_ACEOF |
| 14250 | #define TIME_WITH_SYS_TIME 1 |
| 14251 | _ACEOF |
| 14252 | |
| 14253 | fi |
| 14254 | |
| 14255 | |
| 14256 | |
| 14257 | |
| 14258 | |
| 14259 | |
| 14260 | |
| 14261 | |
| 14262 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
| 14263 | do |
| 14264 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14265 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14266 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14267 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14268 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14270 | fi |
| 14271 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14272 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14273 | echo "${ECHO_T}$ac_res" >&6; } |
| 14274 | else |
| 14275 | # Is the header compilable? |
| 14276 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14277 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14278 | cat >conftest.$ac_ext <<_ACEOF |
| 14279 | /* confdefs.h. */ |
| 14280 | _ACEOF |
| 14281 | cat confdefs.h >>conftest.$ac_ext |
| 14282 | cat >>conftest.$ac_ext <<_ACEOF |
| 14283 | /* end confdefs.h. */ |
| 14284 | $ac_includes_default |
| 14285 | #include <$ac_header> |
| 14286 | _ACEOF |
| 14287 | rm -f conftest.$ac_objext |
| 14288 | if { (ac_try="$ac_compile" |
| 14289 | case "(($ac_try" in |
| 14290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14291 | *) ac_try_echo=$ac_try;; |
| 14292 | esac |
| 14293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14294 | (eval "$ac_compile") 2>conftest.er1 |
| 14295 | ac_status=$? |
| 14296 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14297 | rm -f conftest.er1 |
| 14298 | cat conftest.err >&5 |
| 14299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14300 | (exit $ac_status); } && |
| 14301 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14302 | { (case "(($ac_try" in |
| 14303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14304 | *) ac_try_echo=$ac_try;; |
| 14305 | esac |
| 14306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14307 | (eval "$ac_try") 2>&5 |
| 14308 | ac_status=$? |
| 14309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14310 | (exit $ac_status); }; } && |
| 14311 | { ac_try='test -s conftest.$ac_objext' |
| 14312 | { (case "(($ac_try" in |
| 14313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14314 | *) ac_try_echo=$ac_try;; |
| 14315 | esac |
| 14316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14317 | (eval "$ac_try") 2>&5 |
| 14318 | ac_status=$? |
| 14319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14320 | (exit $ac_status); }; }; then |
| 14321 | ac_header_compiler=yes |
| 14322 | else |
| 14323 | echo "$as_me: failed program was:" >&5 |
| 14324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14325 | |
| 14326 | ac_header_compiler=no |
| 14327 | fi |
| 14328 | |
| 14329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14330 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14331 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14332 | |
| 14333 | # Is the header present? |
| 14334 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14335 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14336 | cat >conftest.$ac_ext <<_ACEOF |
| 14337 | /* confdefs.h. */ |
| 14338 | _ACEOF |
| 14339 | cat confdefs.h >>conftest.$ac_ext |
| 14340 | cat >>conftest.$ac_ext <<_ACEOF |
| 14341 | /* end confdefs.h. */ |
| 14342 | #include <$ac_header> |
| 14343 | _ACEOF |
| 14344 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14345 | case "(($ac_try" in |
| 14346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14347 | *) ac_try_echo=$ac_try;; |
| 14348 | esac |
| 14349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14350 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14351 | ac_status=$? |
| 14352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14353 | rm -f conftest.er1 |
| 14354 | cat conftest.err >&5 |
| 14355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14356 | (exit $ac_status); } >/dev/null; then |
| 14357 | if test -s conftest.err; then |
| 14358 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14359 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14360 | else |
| 14361 | ac_cpp_err= |
| 14362 | fi |
| 14363 | else |
| 14364 | ac_cpp_err=yes |
| 14365 | fi |
| 14366 | if test -z "$ac_cpp_err"; then |
| 14367 | ac_header_preproc=yes |
| 14368 | else |
| 14369 | echo "$as_me: failed program was:" >&5 |
| 14370 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14371 | |
| 14372 | ac_header_preproc=no |
| 14373 | fi |
| 14374 | |
| 14375 | rm -f conftest.err conftest.$ac_ext |
| 14376 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14377 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14378 | |
| 14379 | # So? What about this header? |
| 14380 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14381 | yes:no: ) |
| 14382 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14383 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14384 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14385 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14386 | ac_header_preproc=yes |
| 14387 | ;; |
| 14388 | no:yes:* ) |
| 14389 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14390 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14391 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14392 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14393 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14394 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14395 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14396 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14397 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14398 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14399 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14400 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14401 | ( cat <<\_ASBOX |
| 14402 | ## ------------------------------ ## |
| 14403 | ## Report this to bugs@yourdomain ## |
| 14404 | ## ------------------------------ ## |
| 14405 | _ASBOX |
| 14406 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14407 | ;; |
| 14408 | esac |
| 14409 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14410 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14411 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14413 | else |
| 14414 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14415 | fi |
| 14416 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14417 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14418 | echo "${ECHO_T}$ac_res" >&6; } |
| 14419 | |
| 14420 | fi |
| 14421 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14422 | cat >>confdefs.h <<_ACEOF |
| 14423 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14424 | _ACEOF |
| 14425 | |
| 14426 | fi |
| 14427 | |
| 14428 | done |
| 14429 | |
| 14430 | |
| 14431 | |
| 14432 | |
| 14433 | |
| 14434 | |
| 14435 | |
| 14436 | for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h |
| 14437 | do |
| 14438 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14439 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14440 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14441 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14442 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14444 | fi |
| 14445 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14446 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14447 | echo "${ECHO_T}$ac_res" >&6; } |
| 14448 | else |
| 14449 | # Is the header compilable? |
| 14450 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14451 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14452 | cat >conftest.$ac_ext <<_ACEOF |
| 14453 | /* confdefs.h. */ |
| 14454 | _ACEOF |
| 14455 | cat confdefs.h >>conftest.$ac_ext |
| 14456 | cat >>conftest.$ac_ext <<_ACEOF |
| 14457 | /* end confdefs.h. */ |
| 14458 | $ac_includes_default |
| 14459 | #include <$ac_header> |
| 14460 | _ACEOF |
| 14461 | rm -f conftest.$ac_objext |
| 14462 | if { (ac_try="$ac_compile" |
| 14463 | case "(($ac_try" in |
| 14464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14465 | *) ac_try_echo=$ac_try;; |
| 14466 | esac |
| 14467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14468 | (eval "$ac_compile") 2>conftest.er1 |
| 14469 | ac_status=$? |
| 14470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14471 | rm -f conftest.er1 |
| 14472 | cat conftest.err >&5 |
| 14473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14474 | (exit $ac_status); } && |
| 14475 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14476 | { (case "(($ac_try" in |
| 14477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14478 | *) ac_try_echo=$ac_try;; |
| 14479 | esac |
| 14480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14481 | (eval "$ac_try") 2>&5 |
| 14482 | ac_status=$? |
| 14483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14484 | (exit $ac_status); }; } && |
| 14485 | { ac_try='test -s conftest.$ac_objext' |
| 14486 | { (case "(($ac_try" in |
| 14487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14488 | *) ac_try_echo=$ac_try;; |
| 14489 | esac |
| 14490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14491 | (eval "$ac_try") 2>&5 |
| 14492 | ac_status=$? |
| 14493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14494 | (exit $ac_status); }; }; then |
| 14495 | ac_header_compiler=yes |
| 14496 | else |
| 14497 | echo "$as_me: failed program was:" >&5 |
| 14498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14499 | |
| 14500 | ac_header_compiler=no |
| 14501 | fi |
| 14502 | |
| 14503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14504 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14505 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14506 | |
| 14507 | # Is the header present? |
| 14508 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14509 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14510 | cat >conftest.$ac_ext <<_ACEOF |
| 14511 | /* confdefs.h. */ |
| 14512 | _ACEOF |
| 14513 | cat confdefs.h >>conftest.$ac_ext |
| 14514 | cat >>conftest.$ac_ext <<_ACEOF |
| 14515 | /* end confdefs.h. */ |
| 14516 | #include <$ac_header> |
| 14517 | _ACEOF |
| 14518 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14519 | case "(($ac_try" in |
| 14520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14521 | *) ac_try_echo=$ac_try;; |
| 14522 | esac |
| 14523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14524 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14525 | ac_status=$? |
| 14526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14527 | rm -f conftest.er1 |
| 14528 | cat conftest.err >&5 |
| 14529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14530 | (exit $ac_status); } >/dev/null; then |
| 14531 | if test -s conftest.err; then |
| 14532 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14533 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14534 | else |
| 14535 | ac_cpp_err= |
| 14536 | fi |
| 14537 | else |
| 14538 | ac_cpp_err=yes |
| 14539 | fi |
| 14540 | if test -z "$ac_cpp_err"; then |
| 14541 | ac_header_preproc=yes |
| 14542 | else |
| 14543 | echo "$as_me: failed program was:" >&5 |
| 14544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14545 | |
| 14546 | ac_header_preproc=no |
| 14547 | fi |
| 14548 | |
| 14549 | rm -f conftest.err conftest.$ac_ext |
| 14550 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14551 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14552 | |
| 14553 | # So? What about this header? |
| 14554 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14555 | yes:no: ) |
| 14556 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14557 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14558 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14559 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14560 | ac_header_preproc=yes |
| 14561 | ;; |
| 14562 | no:yes:* ) |
| 14563 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14564 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14565 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14566 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14567 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14568 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14569 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14570 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14571 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14572 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14573 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14574 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14575 | ( cat <<\_ASBOX |
| 14576 | ## ------------------------------ ## |
| 14577 | ## Report this to bugs@yourdomain ## |
| 14578 | ## ------------------------------ ## |
| 14579 | _ASBOX |
| 14580 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14581 | ;; |
| 14582 | esac |
| 14583 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14584 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14585 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14587 | else |
| 14588 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14589 | fi |
| 14590 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14591 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14592 | echo "${ECHO_T}$ac_res" >&6; } |
| 14593 | |
| 14594 | fi |
| 14595 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14596 | cat >>confdefs.h <<_ACEOF |
| 14597 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14598 | _ACEOF |
| 14599 | |
| 14600 | fi |
| 14601 | |
| 14602 | done |
| 14603 | |
| 14604 | |
| 14605 | |
| 14606 | for ac_header in utime.h windows.h |
| 14607 | do |
| 14608 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14609 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14610 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14611 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14612 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14614 | fi |
| 14615 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14616 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14617 | echo "${ECHO_T}$ac_res" >&6; } |
| 14618 | else |
| 14619 | # Is the header compilable? |
| 14620 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14621 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14622 | cat >conftest.$ac_ext <<_ACEOF |
| 14623 | /* confdefs.h. */ |
| 14624 | _ACEOF |
| 14625 | cat confdefs.h >>conftest.$ac_ext |
| 14626 | cat >>conftest.$ac_ext <<_ACEOF |
| 14627 | /* end confdefs.h. */ |
| 14628 | $ac_includes_default |
| 14629 | #include <$ac_header> |
| 14630 | _ACEOF |
| 14631 | rm -f conftest.$ac_objext |
| 14632 | if { (ac_try="$ac_compile" |
| 14633 | case "(($ac_try" in |
| 14634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14635 | *) ac_try_echo=$ac_try;; |
| 14636 | esac |
| 14637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14638 | (eval "$ac_compile") 2>conftest.er1 |
| 14639 | ac_status=$? |
| 14640 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14641 | rm -f conftest.er1 |
| 14642 | cat conftest.err >&5 |
| 14643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14644 | (exit $ac_status); } && |
| 14645 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14646 | { (case "(($ac_try" in |
| 14647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14648 | *) ac_try_echo=$ac_try;; |
| 14649 | esac |
| 14650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14651 | (eval "$ac_try") 2>&5 |
| 14652 | ac_status=$? |
| 14653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14654 | (exit $ac_status); }; } && |
| 14655 | { ac_try='test -s conftest.$ac_objext' |
| 14656 | { (case "(($ac_try" in |
| 14657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14658 | *) ac_try_echo=$ac_try;; |
| 14659 | esac |
| 14660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14661 | (eval "$ac_try") 2>&5 |
| 14662 | ac_status=$? |
| 14663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14664 | (exit $ac_status); }; }; then |
| 14665 | ac_header_compiler=yes |
| 14666 | else |
| 14667 | echo "$as_me: failed program was:" >&5 |
| 14668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14669 | |
| 14670 | ac_header_compiler=no |
| 14671 | fi |
| 14672 | |
| 14673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14674 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14675 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14676 | |
| 14677 | # Is the header present? |
| 14678 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14679 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14680 | cat >conftest.$ac_ext <<_ACEOF |
| 14681 | /* confdefs.h. */ |
| 14682 | _ACEOF |
| 14683 | cat confdefs.h >>conftest.$ac_ext |
| 14684 | cat >>conftest.$ac_ext <<_ACEOF |
| 14685 | /* end confdefs.h. */ |
| 14686 | #include <$ac_header> |
| 14687 | _ACEOF |
| 14688 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14689 | case "(($ac_try" in |
| 14690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14691 | *) ac_try_echo=$ac_try;; |
| 14692 | esac |
| 14693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14694 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14695 | ac_status=$? |
| 14696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14697 | rm -f conftest.er1 |
| 14698 | cat conftest.err >&5 |
| 14699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14700 | (exit $ac_status); } >/dev/null; then |
| 14701 | if test -s conftest.err; then |
| 14702 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14703 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14704 | else |
| 14705 | ac_cpp_err= |
| 14706 | fi |
| 14707 | else |
| 14708 | ac_cpp_err=yes |
| 14709 | fi |
| 14710 | if test -z "$ac_cpp_err"; then |
| 14711 | ac_header_preproc=yes |
| 14712 | else |
| 14713 | echo "$as_me: failed program was:" >&5 |
| 14714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14715 | |
| 14716 | ac_header_preproc=no |
| 14717 | fi |
| 14718 | |
| 14719 | rm -f conftest.err conftest.$ac_ext |
| 14720 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14721 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14722 | |
| 14723 | # So? What about this header? |
| 14724 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14725 | yes:no: ) |
| 14726 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14727 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14728 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14729 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14730 | ac_header_preproc=yes |
| 14731 | ;; |
| 14732 | no:yes:* ) |
| 14733 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14734 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14735 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14736 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14737 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14738 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14739 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14740 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14741 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14742 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14743 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14744 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14745 | ( cat <<\_ASBOX |
| 14746 | ## ------------------------------ ## |
| 14747 | ## Report this to bugs@yourdomain ## |
| 14748 | ## ------------------------------ ## |
| 14749 | _ASBOX |
| 14750 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14751 | ;; |
| 14752 | esac |
| 14753 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14754 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14755 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14757 | else |
| 14758 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14759 | fi |
| 14760 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14761 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14762 | echo "${ECHO_T}$ac_res" >&6; } |
| 14763 | |
| 14764 | fi |
| 14765 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14766 | cat >>confdefs.h <<_ACEOF |
| 14767 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14768 | _ACEOF |
| 14769 | |
| 14770 | fi |
| 14771 | |
| 14772 | done |
| 14773 | |
| 14774 | |
| 14775 | |
| 14776 | |
| 14777 | |
| 14778 | |
| 14779 | for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h |
| 14780 | do |
| 14781 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14782 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14783 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14784 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14785 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14787 | fi |
| 14788 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14789 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14790 | echo "${ECHO_T}$ac_res" >&6; } |
| 14791 | else |
| 14792 | # Is the header compilable? |
| 14793 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14794 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14795 | cat >conftest.$ac_ext <<_ACEOF |
| 14796 | /* confdefs.h. */ |
| 14797 | _ACEOF |
| 14798 | cat confdefs.h >>conftest.$ac_ext |
| 14799 | cat >>conftest.$ac_ext <<_ACEOF |
| 14800 | /* end confdefs.h. */ |
| 14801 | $ac_includes_default |
| 14802 | #include <$ac_header> |
| 14803 | _ACEOF |
| 14804 | rm -f conftest.$ac_objext |
| 14805 | if { (ac_try="$ac_compile" |
| 14806 | case "(($ac_try" in |
| 14807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14808 | *) ac_try_echo=$ac_try;; |
| 14809 | esac |
| 14810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14811 | (eval "$ac_compile") 2>conftest.er1 |
| 14812 | ac_status=$? |
| 14813 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14814 | rm -f conftest.er1 |
| 14815 | cat conftest.err >&5 |
| 14816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14817 | (exit $ac_status); } && |
| 14818 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14819 | { (case "(($ac_try" in |
| 14820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14821 | *) ac_try_echo=$ac_try;; |
| 14822 | esac |
| 14823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14824 | (eval "$ac_try") 2>&5 |
| 14825 | ac_status=$? |
| 14826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14827 | (exit $ac_status); }; } && |
| 14828 | { ac_try='test -s conftest.$ac_objext' |
| 14829 | { (case "(($ac_try" in |
| 14830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14831 | *) ac_try_echo=$ac_try;; |
| 14832 | esac |
| 14833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14834 | (eval "$ac_try") 2>&5 |
| 14835 | ac_status=$? |
| 14836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14837 | (exit $ac_status); }; }; then |
| 14838 | ac_header_compiler=yes |
| 14839 | else |
| 14840 | echo "$as_me: failed program was:" >&5 |
| 14841 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14842 | |
| 14843 | ac_header_compiler=no |
| 14844 | fi |
| 14845 | |
| 14846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14847 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14848 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 14849 | |
| 14850 | # Is the header present? |
| 14851 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14852 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 14853 | cat >conftest.$ac_ext <<_ACEOF |
| 14854 | /* confdefs.h. */ |
| 14855 | _ACEOF |
| 14856 | cat confdefs.h >>conftest.$ac_ext |
| 14857 | cat >>conftest.$ac_ext <<_ACEOF |
| 14858 | /* end confdefs.h. */ |
| 14859 | #include <$ac_header> |
| 14860 | _ACEOF |
| 14861 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14862 | case "(($ac_try" in |
| 14863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14864 | *) ac_try_echo=$ac_try;; |
| 14865 | esac |
| 14866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14867 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 14868 | ac_status=$? |
| 14869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14870 | rm -f conftest.er1 |
| 14871 | cat conftest.err >&5 |
| 14872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14873 | (exit $ac_status); } >/dev/null; then |
| 14874 | if test -s conftest.err; then |
| 14875 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14876 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14877 | else |
| 14878 | ac_cpp_err= |
| 14879 | fi |
| 14880 | else |
| 14881 | ac_cpp_err=yes |
| 14882 | fi |
| 14883 | if test -z "$ac_cpp_err"; then |
| 14884 | ac_header_preproc=yes |
| 14885 | else |
| 14886 | echo "$as_me: failed program was:" >&5 |
| 14887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14888 | |
| 14889 | ac_header_preproc=no |
| 14890 | fi |
| 14891 | |
| 14892 | rm -f conftest.err conftest.$ac_ext |
| 14893 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14894 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 14895 | |
| 14896 | # So? What about this header? |
| 14897 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14898 | yes:no: ) |
| 14899 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14900 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14901 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14902 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14903 | ac_header_preproc=yes |
| 14904 | ;; |
| 14905 | no:yes:* ) |
| 14906 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14907 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14908 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14909 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14910 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14911 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14912 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14913 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14914 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14915 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14916 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14917 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 14918 | ( cat <<\_ASBOX |
| 14919 | ## ------------------------------ ## |
| 14920 | ## Report this to bugs@yourdomain ## |
| 14921 | ## ------------------------------ ## |
| 14922 | _ASBOX |
| 14923 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 14924 | ;; |
| 14925 | esac |
| 14926 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14927 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14928 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14930 | else |
| 14931 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14932 | fi |
| 14933 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14934 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14935 | echo "${ECHO_T}$ac_res" >&6; } |
| 14936 | |
| 14937 | fi |
| 14938 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14939 | cat >>confdefs.h <<_ACEOF |
| 14940 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14941 | _ACEOF |
| 14942 | |
| 14943 | fi |
| 14944 | |
| 14945 | done |
| 14946 | |
| 14947 | |
| 14948 | |
| 14949 | |
| 14950 | |
| 14951 | for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h |
| 14952 | do |
| 14953 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 14954 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14955 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14956 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14957 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14959 | fi |
| 14960 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14961 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14962 | echo "${ECHO_T}$ac_res" >&6; } |
| 14963 | else |
| 14964 | # Is the header compilable? |
| 14965 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14966 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 14967 | cat >conftest.$ac_ext <<_ACEOF |
| 14968 | /* confdefs.h. */ |
| 14969 | _ACEOF |
| 14970 | cat confdefs.h >>conftest.$ac_ext |
| 14971 | cat >>conftest.$ac_ext <<_ACEOF |
| 14972 | /* end confdefs.h. */ |
| 14973 | $ac_includes_default |
| 14974 | #include <$ac_header> |
| 14975 | _ACEOF |
| 14976 | rm -f conftest.$ac_objext |
| 14977 | if { (ac_try="$ac_compile" |
| 14978 | case "(($ac_try" in |
| 14979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14980 | *) ac_try_echo=$ac_try;; |
| 14981 | esac |
| 14982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14983 | (eval "$ac_compile") 2>conftest.er1 |
| 14984 | ac_status=$? |
| 14985 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14986 | rm -f conftest.er1 |
| 14987 | cat conftest.err >&5 |
| 14988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14989 | (exit $ac_status); } && |
| 14990 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14991 | { (case "(($ac_try" in |
| 14992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14993 | *) ac_try_echo=$ac_try;; |
| 14994 | esac |
| 14995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14996 | (eval "$ac_try") 2>&5 |
| 14997 | ac_status=$? |
| 14998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14999 | (exit $ac_status); }; } && |
| 15000 | { ac_try='test -s conftest.$ac_objext' |
| 15001 | { (case "(($ac_try" in |
| 15002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15003 | *) ac_try_echo=$ac_try;; |
| 15004 | esac |
| 15005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15006 | (eval "$ac_try") 2>&5 |
| 15007 | ac_status=$? |
| 15008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15009 | (exit $ac_status); }; }; then |
| 15010 | ac_header_compiler=yes |
| 15011 | else |
| 15012 | echo "$as_me: failed program was:" >&5 |
| 15013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15014 | |
| 15015 | ac_header_compiler=no |
| 15016 | fi |
| 15017 | |
| 15018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15019 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15020 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15021 | |
| 15022 | # Is the header present? |
| 15023 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15024 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15025 | cat >conftest.$ac_ext <<_ACEOF |
| 15026 | /* confdefs.h. */ |
| 15027 | _ACEOF |
| 15028 | cat confdefs.h >>conftest.$ac_ext |
| 15029 | cat >>conftest.$ac_ext <<_ACEOF |
| 15030 | /* end confdefs.h. */ |
| 15031 | #include <$ac_header> |
| 15032 | _ACEOF |
| 15033 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15034 | case "(($ac_try" in |
| 15035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15036 | *) ac_try_echo=$ac_try;; |
| 15037 | esac |
| 15038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15039 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15040 | ac_status=$? |
| 15041 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15042 | rm -f conftest.er1 |
| 15043 | cat conftest.err >&5 |
| 15044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15045 | (exit $ac_status); } >/dev/null; then |
| 15046 | if test -s conftest.err; then |
| 15047 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15048 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15049 | else |
| 15050 | ac_cpp_err= |
| 15051 | fi |
| 15052 | else |
| 15053 | ac_cpp_err=yes |
| 15054 | fi |
| 15055 | if test -z "$ac_cpp_err"; then |
| 15056 | ac_header_preproc=yes |
| 15057 | else |
| 15058 | echo "$as_me: failed program was:" >&5 |
| 15059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15060 | |
| 15061 | ac_header_preproc=no |
| 15062 | fi |
| 15063 | |
| 15064 | rm -f conftest.err conftest.$ac_ext |
| 15065 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15066 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15067 | |
| 15068 | # So? What about this header? |
| 15069 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15070 | yes:no: ) |
| 15071 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15072 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15073 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15074 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15075 | ac_header_preproc=yes |
| 15076 | ;; |
| 15077 | no:yes:* ) |
| 15078 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15079 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15080 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15081 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15082 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15083 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15084 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15085 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15086 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15087 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15088 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15089 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15090 | ( cat <<\_ASBOX |
| 15091 | ## ------------------------------ ## |
| 15092 | ## Report this to bugs@yourdomain ## |
| 15093 | ## ------------------------------ ## |
| 15094 | _ASBOX |
| 15095 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15096 | ;; |
| 15097 | esac |
| 15098 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15099 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15100 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15102 | else |
| 15103 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15104 | fi |
| 15105 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15106 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15107 | echo "${ECHO_T}$ac_res" >&6; } |
| 15108 | |
| 15109 | fi |
| 15110 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15111 | cat >>confdefs.h <<_ACEOF |
| 15112 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15113 | _ACEOF |
| 15114 | |
| 15115 | fi |
| 15116 | |
| 15117 | done |
| 15118 | |
| 15119 | |
| 15120 | for ac_header in valgrind/valgrind.h |
| 15121 | do |
| 15122 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15123 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15124 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15125 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15126 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15128 | fi |
| 15129 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15130 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15131 | echo "${ECHO_T}$ac_res" >&6; } |
| 15132 | else |
| 15133 | # Is the header compilable? |
| 15134 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15135 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15136 | cat >conftest.$ac_ext <<_ACEOF |
| 15137 | /* confdefs.h. */ |
| 15138 | _ACEOF |
| 15139 | cat confdefs.h >>conftest.$ac_ext |
| 15140 | cat >>conftest.$ac_ext <<_ACEOF |
| 15141 | /* end confdefs.h. */ |
| 15142 | $ac_includes_default |
| 15143 | #include <$ac_header> |
| 15144 | _ACEOF |
| 15145 | rm -f conftest.$ac_objext |
| 15146 | if { (ac_try="$ac_compile" |
| 15147 | case "(($ac_try" in |
| 15148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15149 | *) ac_try_echo=$ac_try;; |
| 15150 | esac |
| 15151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15152 | (eval "$ac_compile") 2>conftest.er1 |
| 15153 | ac_status=$? |
| 15154 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15155 | rm -f conftest.er1 |
| 15156 | cat conftest.err >&5 |
| 15157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15158 | (exit $ac_status); } && |
| 15159 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15160 | { (case "(($ac_try" in |
| 15161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15162 | *) ac_try_echo=$ac_try;; |
| 15163 | esac |
| 15164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15165 | (eval "$ac_try") 2>&5 |
| 15166 | ac_status=$? |
| 15167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15168 | (exit $ac_status); }; } && |
| 15169 | { ac_try='test -s conftest.$ac_objext' |
| 15170 | { (case "(($ac_try" in |
| 15171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15172 | *) ac_try_echo=$ac_try;; |
| 15173 | esac |
| 15174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15175 | (eval "$ac_try") 2>&5 |
| 15176 | ac_status=$? |
| 15177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15178 | (exit $ac_status); }; }; then |
| 15179 | ac_header_compiler=yes |
| 15180 | else |
| 15181 | echo "$as_me: failed program was:" >&5 |
| 15182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15183 | |
| 15184 | ac_header_compiler=no |
| 15185 | fi |
| 15186 | |
| 15187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15188 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15189 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15190 | |
| 15191 | # Is the header present? |
| 15192 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15193 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15194 | cat >conftest.$ac_ext <<_ACEOF |
| 15195 | /* confdefs.h. */ |
| 15196 | _ACEOF |
| 15197 | cat confdefs.h >>conftest.$ac_ext |
| 15198 | cat >>conftest.$ac_ext <<_ACEOF |
| 15199 | /* end confdefs.h. */ |
| 15200 | #include <$ac_header> |
| 15201 | _ACEOF |
| 15202 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15203 | case "(($ac_try" in |
| 15204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15205 | *) ac_try_echo=$ac_try;; |
| 15206 | esac |
| 15207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15208 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15209 | ac_status=$? |
| 15210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15211 | rm -f conftest.er1 |
| 15212 | cat conftest.err >&5 |
| 15213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15214 | (exit $ac_status); } >/dev/null; then |
| 15215 | if test -s conftest.err; then |
| 15216 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15217 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15218 | else |
| 15219 | ac_cpp_err= |
| 15220 | fi |
| 15221 | else |
| 15222 | ac_cpp_err=yes |
| 15223 | fi |
| 15224 | if test -z "$ac_cpp_err"; then |
| 15225 | ac_header_preproc=yes |
| 15226 | else |
| 15227 | echo "$as_me: failed program was:" >&5 |
| 15228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15229 | |
| 15230 | ac_header_preproc=no |
| 15231 | fi |
| 15232 | |
| 15233 | rm -f conftest.err conftest.$ac_ext |
| 15234 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15235 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15236 | |
| 15237 | # So? What about this header? |
| 15238 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15239 | yes:no: ) |
| 15240 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15241 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15242 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15243 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15244 | ac_header_preproc=yes |
| 15245 | ;; |
| 15246 | no:yes:* ) |
| 15247 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15248 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15249 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15250 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15251 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15252 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15253 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15254 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15255 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15256 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15257 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15258 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15259 | ( cat <<\_ASBOX |
| 15260 | ## ------------------------------ ## |
| 15261 | ## Report this to bugs@yourdomain ## |
| 15262 | ## ------------------------------ ## |
| 15263 | _ASBOX |
| 15264 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15265 | ;; |
| 15266 | esac |
| 15267 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15268 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15269 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15271 | else |
| 15272 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15273 | fi |
| 15274 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15275 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15276 | echo "${ECHO_T}$ac_res" >&6; } |
| 15277 | |
| 15278 | fi |
| 15279 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15280 | cat >>confdefs.h <<_ACEOF |
| 15281 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15282 | _ACEOF |
| 15283 | |
| 15284 | fi |
| 15285 | |
| 15286 | done |
| 15287 | |
| 15288 | |
| 15289 | for ac_header in fenv.h |
| 15290 | do |
| 15291 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15292 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15293 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15294 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15295 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15297 | fi |
| 15298 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15299 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15300 | echo "${ECHO_T}$ac_res" >&6; } |
| 15301 | else |
| 15302 | # Is the header compilable? |
| 15303 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15304 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15305 | cat >conftest.$ac_ext <<_ACEOF |
| 15306 | /* confdefs.h. */ |
| 15307 | _ACEOF |
| 15308 | cat confdefs.h >>conftest.$ac_ext |
| 15309 | cat >>conftest.$ac_ext <<_ACEOF |
| 15310 | /* end confdefs.h. */ |
| 15311 | $ac_includes_default |
| 15312 | #include <$ac_header> |
| 15313 | _ACEOF |
| 15314 | rm -f conftest.$ac_objext |
| 15315 | if { (ac_try="$ac_compile" |
| 15316 | case "(($ac_try" in |
| 15317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15318 | *) ac_try_echo=$ac_try;; |
| 15319 | esac |
| 15320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15321 | (eval "$ac_compile") 2>conftest.er1 |
| 15322 | ac_status=$? |
| 15323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15324 | rm -f conftest.er1 |
| 15325 | cat conftest.err >&5 |
| 15326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15327 | (exit $ac_status); } && |
| 15328 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15329 | { (case "(($ac_try" in |
| 15330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15331 | *) ac_try_echo=$ac_try;; |
| 15332 | esac |
| 15333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15334 | (eval "$ac_try") 2>&5 |
| 15335 | ac_status=$? |
| 15336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15337 | (exit $ac_status); }; } && |
| 15338 | { ac_try='test -s conftest.$ac_objext' |
| 15339 | { (case "(($ac_try" in |
| 15340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15341 | *) ac_try_echo=$ac_try;; |
| 15342 | esac |
| 15343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15344 | (eval "$ac_try") 2>&5 |
| 15345 | ac_status=$? |
| 15346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15347 | (exit $ac_status); }; }; then |
| 15348 | ac_header_compiler=yes |
| 15349 | else |
| 15350 | echo "$as_me: failed program was:" >&5 |
| 15351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15352 | |
| 15353 | ac_header_compiler=no |
| 15354 | fi |
| 15355 | |
| 15356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15357 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15358 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15359 | |
| 15360 | # Is the header present? |
| 15361 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15362 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15363 | cat >conftest.$ac_ext <<_ACEOF |
| 15364 | /* confdefs.h. */ |
| 15365 | _ACEOF |
| 15366 | cat confdefs.h >>conftest.$ac_ext |
| 15367 | cat >>conftest.$ac_ext <<_ACEOF |
| 15368 | /* end confdefs.h. */ |
| 15369 | #include <$ac_header> |
| 15370 | _ACEOF |
| 15371 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 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_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15378 | ac_status=$? |
| 15379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15380 | rm -f conftest.er1 |
| 15381 | cat conftest.err >&5 |
| 15382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15383 | (exit $ac_status); } >/dev/null; then |
| 15384 | if test -s conftest.err; then |
| 15385 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15386 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15387 | else |
| 15388 | ac_cpp_err= |
| 15389 | fi |
| 15390 | else |
| 15391 | ac_cpp_err=yes |
| 15392 | fi |
| 15393 | if test -z "$ac_cpp_err"; then |
| 15394 | ac_header_preproc=yes |
| 15395 | else |
| 15396 | echo "$as_me: failed program was:" >&5 |
| 15397 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15398 | |
| 15399 | ac_header_preproc=no |
| 15400 | fi |
| 15401 | |
| 15402 | rm -f conftest.err conftest.$ac_ext |
| 15403 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15404 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15405 | |
| 15406 | # So? What about this header? |
| 15407 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15408 | yes:no: ) |
| 15409 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15410 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15411 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15412 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15413 | ac_header_preproc=yes |
| 15414 | ;; |
| 15415 | no:yes:* ) |
| 15416 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15417 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15418 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15419 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15420 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15421 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15422 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15423 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15424 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15425 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15426 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15427 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15428 | ( cat <<\_ASBOX |
| 15429 | ## ------------------------------ ## |
| 15430 | ## Report this to bugs@yourdomain ## |
| 15431 | ## ------------------------------ ## |
| 15432 | _ASBOX |
| 15433 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15434 | ;; |
| 15435 | esac |
| 15436 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15437 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15438 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15440 | else |
| 15441 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15442 | fi |
| 15443 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15444 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15445 | echo "${ECHO_T}$ac_res" >&6; } |
| 15446 | |
| 15447 | fi |
| 15448 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15449 | cat >>confdefs.h <<_ACEOF |
| 15450 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15451 | _ACEOF |
| 15452 | |
| 15453 | fi |
| 15454 | |
| 15455 | done |
| 15456 | |
| 15457 | if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then |
| 15458 | |
| 15459 | for ac_header in pthread.h |
| 15460 | do |
| 15461 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15462 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15463 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15464 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15465 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15467 | fi |
| 15468 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15469 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15470 | echo "${ECHO_T}$ac_res" >&6; } |
| 15471 | else |
| 15472 | # Is the header compilable? |
| 15473 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15474 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15475 | cat >conftest.$ac_ext <<_ACEOF |
| 15476 | /* confdefs.h. */ |
| 15477 | _ACEOF |
| 15478 | cat confdefs.h >>conftest.$ac_ext |
| 15479 | cat >>conftest.$ac_ext <<_ACEOF |
| 15480 | /* end confdefs.h. */ |
| 15481 | $ac_includes_default |
| 15482 | #include <$ac_header> |
| 15483 | _ACEOF |
| 15484 | rm -f conftest.$ac_objext |
| 15485 | if { (ac_try="$ac_compile" |
| 15486 | case "(($ac_try" in |
| 15487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15488 | *) ac_try_echo=$ac_try;; |
| 15489 | esac |
| 15490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15491 | (eval "$ac_compile") 2>conftest.er1 |
| 15492 | ac_status=$? |
| 15493 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15494 | rm -f conftest.er1 |
| 15495 | cat conftest.err >&5 |
| 15496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15497 | (exit $ac_status); } && |
| 15498 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15499 | { (case "(($ac_try" in |
| 15500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15501 | *) ac_try_echo=$ac_try;; |
| 15502 | esac |
| 15503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15504 | (eval "$ac_try") 2>&5 |
| 15505 | ac_status=$? |
| 15506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15507 | (exit $ac_status); }; } && |
| 15508 | { ac_try='test -s conftest.$ac_objext' |
| 15509 | { (case "(($ac_try" in |
| 15510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15511 | *) ac_try_echo=$ac_try;; |
| 15512 | esac |
| 15513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15514 | (eval "$ac_try") 2>&5 |
| 15515 | ac_status=$? |
| 15516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15517 | (exit $ac_status); }; }; then |
| 15518 | ac_header_compiler=yes |
| 15519 | else |
| 15520 | echo "$as_me: failed program was:" >&5 |
| 15521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15522 | |
| 15523 | ac_header_compiler=no |
| 15524 | fi |
| 15525 | |
| 15526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15527 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15528 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15529 | |
| 15530 | # Is the header present? |
| 15531 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15532 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15533 | cat >conftest.$ac_ext <<_ACEOF |
| 15534 | /* confdefs.h. */ |
| 15535 | _ACEOF |
| 15536 | cat confdefs.h >>conftest.$ac_ext |
| 15537 | cat >>conftest.$ac_ext <<_ACEOF |
| 15538 | /* end confdefs.h. */ |
| 15539 | #include <$ac_header> |
| 15540 | _ACEOF |
| 15541 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15542 | case "(($ac_try" in |
| 15543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15544 | *) ac_try_echo=$ac_try;; |
| 15545 | esac |
| 15546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15547 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15548 | ac_status=$? |
| 15549 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15550 | rm -f conftest.er1 |
| 15551 | cat conftest.err >&5 |
| 15552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15553 | (exit $ac_status); } >/dev/null; then |
| 15554 | if test -s conftest.err; then |
| 15555 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15556 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15557 | else |
| 15558 | ac_cpp_err= |
| 15559 | fi |
| 15560 | else |
| 15561 | ac_cpp_err=yes |
| 15562 | fi |
| 15563 | if test -z "$ac_cpp_err"; then |
| 15564 | ac_header_preproc=yes |
| 15565 | else |
| 15566 | echo "$as_me: failed program was:" >&5 |
| 15567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15568 | |
| 15569 | ac_header_preproc=no |
| 15570 | fi |
| 15571 | |
| 15572 | rm -f conftest.err conftest.$ac_ext |
| 15573 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15574 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15575 | |
| 15576 | # So? What about this header? |
| 15577 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15578 | yes:no: ) |
| 15579 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15580 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15581 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15582 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15583 | ac_header_preproc=yes |
| 15584 | ;; |
| 15585 | no:yes:* ) |
| 15586 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15587 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15588 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15589 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15590 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15591 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15592 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15593 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15594 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15595 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15596 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15597 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15598 | ( cat <<\_ASBOX |
| 15599 | ## ------------------------------ ## |
| 15600 | ## Report this to bugs@yourdomain ## |
| 15601 | ## ------------------------------ ## |
| 15602 | _ASBOX |
| 15603 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15604 | ;; |
| 15605 | esac |
| 15606 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15607 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15608 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15610 | else |
| 15611 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15612 | fi |
| 15613 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15614 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15615 | echo "${ECHO_T}$ac_res" >&6; } |
| 15616 | |
| 15617 | fi |
| 15618 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15619 | cat >>confdefs.h <<_ACEOF |
| 15620 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15621 | _ACEOF |
| 15622 | HAVE_PTHREAD=1 |
| 15623 | |
| 15624 | else |
| 15625 | HAVE_PTHREAD=0 |
| 15626 | |
| 15627 | fi |
| 15628 | |
| 15629 | done |
| 15630 | |
| 15631 | else |
| 15632 | HAVE_PTHREAD=0 |
| 15633 | |
| 15634 | fi |
| 15635 | |
| 15636 | if test "$llvm_cv_enable_libffi" = "yes" ; then |
| 15637 | |
| 15638 | |
| 15639 | for ac_header in ffi.h ffi/ffi.h |
| 15640 | do |
| 15641 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15642 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15643 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15644 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15645 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15647 | fi |
| 15648 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15649 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15650 | echo "${ECHO_T}$ac_res" >&6; } |
| 15651 | else |
| 15652 | # Is the header compilable? |
| 15653 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15654 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15655 | cat >conftest.$ac_ext <<_ACEOF |
| 15656 | /* confdefs.h. */ |
| 15657 | _ACEOF |
| 15658 | cat confdefs.h >>conftest.$ac_ext |
| 15659 | cat >>conftest.$ac_ext <<_ACEOF |
| 15660 | /* end confdefs.h. */ |
| 15661 | $ac_includes_default |
| 15662 | #include <$ac_header> |
| 15663 | _ACEOF |
| 15664 | rm -f conftest.$ac_objext |
| 15665 | if { (ac_try="$ac_compile" |
| 15666 | case "(($ac_try" in |
| 15667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15668 | *) ac_try_echo=$ac_try;; |
| 15669 | esac |
| 15670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15671 | (eval "$ac_compile") 2>conftest.er1 |
| 15672 | ac_status=$? |
| 15673 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15674 | rm -f conftest.er1 |
| 15675 | cat conftest.err >&5 |
| 15676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15677 | (exit $ac_status); } && |
| 15678 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15679 | { (case "(($ac_try" in |
| 15680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15681 | *) ac_try_echo=$ac_try;; |
| 15682 | esac |
| 15683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15684 | (eval "$ac_try") 2>&5 |
| 15685 | ac_status=$? |
| 15686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15687 | (exit $ac_status); }; } && |
| 15688 | { ac_try='test -s conftest.$ac_objext' |
| 15689 | { (case "(($ac_try" in |
| 15690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15691 | *) ac_try_echo=$ac_try;; |
| 15692 | esac |
| 15693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15694 | (eval "$ac_try") 2>&5 |
| 15695 | ac_status=$? |
| 15696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15697 | (exit $ac_status); }; }; then |
| 15698 | ac_header_compiler=yes |
| 15699 | else |
| 15700 | echo "$as_me: failed program was:" >&5 |
| 15701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15702 | |
| 15703 | ac_header_compiler=no |
| 15704 | fi |
| 15705 | |
| 15706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15707 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15708 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15709 | |
| 15710 | # Is the header present? |
| 15711 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15712 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15713 | cat >conftest.$ac_ext <<_ACEOF |
| 15714 | /* confdefs.h. */ |
| 15715 | _ACEOF |
| 15716 | cat confdefs.h >>conftest.$ac_ext |
| 15717 | cat >>conftest.$ac_ext <<_ACEOF |
| 15718 | /* end confdefs.h. */ |
| 15719 | #include <$ac_header> |
| 15720 | _ACEOF |
| 15721 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15722 | case "(($ac_try" in |
| 15723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15724 | *) ac_try_echo=$ac_try;; |
| 15725 | esac |
| 15726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15727 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15728 | ac_status=$? |
| 15729 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15730 | rm -f conftest.er1 |
| 15731 | cat conftest.err >&5 |
| 15732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15733 | (exit $ac_status); } >/dev/null; then |
| 15734 | if test -s conftest.err; then |
| 15735 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15736 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15737 | else |
| 15738 | ac_cpp_err= |
| 15739 | fi |
| 15740 | else |
| 15741 | ac_cpp_err=yes |
| 15742 | fi |
| 15743 | if test -z "$ac_cpp_err"; then |
| 15744 | ac_header_preproc=yes |
| 15745 | else |
| 15746 | echo "$as_me: failed program was:" >&5 |
| 15747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15748 | |
| 15749 | ac_header_preproc=no |
| 15750 | fi |
| 15751 | |
| 15752 | rm -f conftest.err conftest.$ac_ext |
| 15753 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15754 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15755 | |
| 15756 | # So? What about this header? |
| 15757 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15758 | yes:no: ) |
| 15759 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15760 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15761 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15762 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15763 | ac_header_preproc=yes |
| 15764 | ;; |
| 15765 | no:yes:* ) |
| 15766 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15767 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15768 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15769 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15770 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15771 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15772 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15773 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15774 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15775 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15776 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15777 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15778 | ( cat <<\_ASBOX |
| 15779 | ## ------------------------------ ## |
| 15780 | ## Report this to bugs@yourdomain ## |
| 15781 | ## ------------------------------ ## |
| 15782 | _ASBOX |
| 15783 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15784 | ;; |
| 15785 | esac |
| 15786 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15787 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15788 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15790 | else |
| 15791 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15792 | fi |
| 15793 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15794 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15795 | echo "${ECHO_T}$ac_res" >&6; } |
| 15796 | |
| 15797 | fi |
| 15798 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15799 | cat >>confdefs.h <<_ACEOF |
| 15800 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15801 | _ACEOF |
| 15802 | |
| 15803 | fi |
| 15804 | |
| 15805 | done |
| 15806 | |
| 15807 | fi |
| 15808 | |
| 15809 | |
| 15810 | for ac_header in CrashReporterClient.h |
| 15811 | do |
| 15812 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15813 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15814 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15815 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15816 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15818 | fi |
| 15819 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15820 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15821 | echo "${ECHO_T}$ac_res" >&6; } |
| 15822 | else |
| 15823 | # Is the header compilable? |
| 15824 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15825 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 15826 | cat >conftest.$ac_ext <<_ACEOF |
| 15827 | /* confdefs.h. */ |
| 15828 | _ACEOF |
| 15829 | cat confdefs.h >>conftest.$ac_ext |
| 15830 | cat >>conftest.$ac_ext <<_ACEOF |
| 15831 | /* end confdefs.h. */ |
| 15832 | $ac_includes_default |
| 15833 | #include <$ac_header> |
| 15834 | _ACEOF |
| 15835 | rm -f conftest.$ac_objext |
| 15836 | if { (ac_try="$ac_compile" |
| 15837 | case "(($ac_try" in |
| 15838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15839 | *) ac_try_echo=$ac_try;; |
| 15840 | esac |
| 15841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15842 | (eval "$ac_compile") 2>conftest.er1 |
| 15843 | ac_status=$? |
| 15844 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15845 | rm -f conftest.er1 |
| 15846 | cat conftest.err >&5 |
| 15847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15848 | (exit $ac_status); } && |
| 15849 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15850 | { (case "(($ac_try" in |
| 15851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15852 | *) ac_try_echo=$ac_try;; |
| 15853 | esac |
| 15854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15855 | (eval "$ac_try") 2>&5 |
| 15856 | ac_status=$? |
| 15857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15858 | (exit $ac_status); }; } && |
| 15859 | { ac_try='test -s conftest.$ac_objext' |
| 15860 | { (case "(($ac_try" in |
| 15861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15862 | *) ac_try_echo=$ac_try;; |
| 15863 | esac |
| 15864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15865 | (eval "$ac_try") 2>&5 |
| 15866 | ac_status=$? |
| 15867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15868 | (exit $ac_status); }; }; then |
| 15869 | ac_header_compiler=yes |
| 15870 | else |
| 15871 | echo "$as_me: failed program was:" >&5 |
| 15872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15873 | |
| 15874 | ac_header_compiler=no |
| 15875 | fi |
| 15876 | |
| 15877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15878 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15879 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 15880 | |
| 15881 | # Is the header present? |
| 15882 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15883 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 15884 | cat >conftest.$ac_ext <<_ACEOF |
| 15885 | /* confdefs.h. */ |
| 15886 | _ACEOF |
| 15887 | cat confdefs.h >>conftest.$ac_ext |
| 15888 | cat >>conftest.$ac_ext <<_ACEOF |
| 15889 | /* end confdefs.h. */ |
| 15890 | #include <$ac_header> |
| 15891 | _ACEOF |
| 15892 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 15893 | case "(($ac_try" in |
| 15894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15895 | *) ac_try_echo=$ac_try;; |
| 15896 | esac |
| 15897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15898 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 15899 | ac_status=$? |
| 15900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15901 | rm -f conftest.er1 |
| 15902 | cat conftest.err >&5 |
| 15903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15904 | (exit $ac_status); } >/dev/null; then |
| 15905 | if test -s conftest.err; then |
| 15906 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15907 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15908 | else |
| 15909 | ac_cpp_err= |
| 15910 | fi |
| 15911 | else |
| 15912 | ac_cpp_err=yes |
| 15913 | fi |
| 15914 | if test -z "$ac_cpp_err"; then |
| 15915 | ac_header_preproc=yes |
| 15916 | else |
| 15917 | echo "$as_me: failed program was:" >&5 |
| 15918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15919 | |
| 15920 | ac_header_preproc=no |
| 15921 | fi |
| 15922 | |
| 15923 | rm -f conftest.err conftest.$ac_ext |
| 15924 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15925 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 15926 | |
| 15927 | # So? What about this header? |
| 15928 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15929 | yes:no: ) |
| 15930 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15931 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15932 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15933 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15934 | ac_header_preproc=yes |
| 15935 | ;; |
| 15936 | no:yes:* ) |
| 15937 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15938 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15939 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15940 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15941 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15942 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15943 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15944 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15945 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15946 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15947 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15948 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15949 | ( cat <<\_ASBOX |
| 15950 | ## ------------------------------ ## |
| 15951 | ## Report this to bugs@yourdomain ## |
| 15952 | ## ------------------------------ ## |
| 15953 | _ASBOX |
| 15954 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 15955 | ;; |
| 15956 | esac |
| 15957 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15958 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 15959 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 15960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15961 | else |
| 15962 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15963 | fi |
| 15964 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 15965 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15966 | echo "${ECHO_T}$ac_res" >&6; } |
| 15967 | |
| 15968 | fi |
| 15969 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15970 | cat >>confdefs.h <<_ACEOF |
| 15971 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15972 | _ACEOF |
| 15973 | |
| 15974 | fi |
| 15975 | |
| 15976 | done |
| 15977 | |
| 15978 | |
| 15979 | { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 |
| 15980 | echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } |
| 15981 | cat >conftest.$ac_ext <<_ACEOF |
| 15982 | /* confdefs.h. */ |
| 15983 | _ACEOF |
| 15984 | cat confdefs.h >>conftest.$ac_ext |
| 15985 | cat >>conftest.$ac_ext <<_ACEOF |
| 15986 | /* end confdefs.h. */ |
| 15987 | extern const char *__crashreporter_info__; |
| 15988 | int main() { |
| 15989 | __crashreporter_info__ = "test"; |
| 15990 | return 0; |
| 15991 | } |
| 15992 | |
| 15993 | _ACEOF |
| 15994 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15995 | if { (ac_try="$ac_link" |
| 15996 | case "(($ac_try" in |
| 15997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15998 | *) ac_try_echo=$ac_try;; |
| 15999 | esac |
| 16000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16001 | (eval "$ac_link") 2>conftest.er1 |
| 16002 | ac_status=$? |
| 16003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16004 | rm -f conftest.er1 |
| 16005 | cat conftest.err >&5 |
| 16006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16007 | (exit $ac_status); } && |
| 16008 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16009 | { (case "(($ac_try" in |
| 16010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16011 | *) ac_try_echo=$ac_try;; |
| 16012 | esac |
| 16013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16014 | (eval "$ac_try") 2>&5 |
| 16015 | ac_status=$? |
| 16016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16017 | (exit $ac_status); }; } && |
| 16018 | { ac_try='test -s conftest$ac_exeext' |
| 16019 | { (case "(($ac_try" in |
| 16020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16021 | *) ac_try_echo=$ac_try;; |
| 16022 | esac |
| 16023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16024 | (eval "$ac_try") 2>&5 |
| 16025 | ac_status=$? |
| 16026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16027 | (exit $ac_status); }; }; then |
| 16028 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16029 | echo "${ECHO_T}yes" >&6; } |
| 16030 | |
| 16031 | cat >>confdefs.h <<\_ACEOF |
| 16032 | #define HAVE_CRASHREPORTER_INFO 1 |
| 16033 | _ACEOF |
| 16034 | |
| 16035 | else |
| 16036 | echo "$as_me: failed program was:" >&5 |
| 16037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16038 | |
| 16039 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16040 | echo "${ECHO_T}no" >&6; } |
| 16041 | |
| 16042 | cat >>confdefs.h <<\_ACEOF |
| 16043 | #define HAVE_CRASHREPORTER_INFO 0 |
| 16044 | _ACEOF |
| 16045 | |
| 16046 | fi |
| 16047 | |
| 16048 | rm -f core conftest.err conftest.$ac_objext \ |
| 16049 | conftest$ac_exeext conftest.$ac_ext |
| 16050 | |
| 16051 | |
| 16052 | |
| 16053 | |
| 16054 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 16055 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 16056 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 16057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16058 | else |
| 16059 | |
| 16060 | ac_ext=cpp |
| 16061 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16062 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16063 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16064 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16065 | |
| 16066 | ac_save_CXXFLAGS=$CXXFLAGS |
| 16067 | CXXFLAGS=-pedantic |
| 16068 | if test "$cross_compiling" = yes; then |
| 16069 | ac_cv_huge_val_sanity=yes |
| 16070 | else |
| 16071 | cat >conftest.$ac_ext <<_ACEOF |
| 16072 | /* confdefs.h. */ |
| 16073 | _ACEOF |
| 16074 | cat confdefs.h >>conftest.$ac_ext |
| 16075 | cat >>conftest.$ac_ext <<_ACEOF |
| 16076 | /* end confdefs.h. */ |
| 16077 | #include <math.h> |
| 16078 | int |
| 16079 | main () |
| 16080 | { |
| 16081 | double x = HUGE_VAL; return x != x; |
| 16082 | ; |
| 16083 | return 0; |
| 16084 | } |
| 16085 | _ACEOF |
| 16086 | rm -f conftest$ac_exeext |
| 16087 | if { (ac_try="$ac_link" |
| 16088 | case "(($ac_try" in |
| 16089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16090 | *) ac_try_echo=$ac_try;; |
| 16091 | esac |
| 16092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16093 | (eval "$ac_link") 2>&5 |
| 16094 | ac_status=$? |
| 16095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16096 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16097 | { (case "(($ac_try" in |
| 16098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16099 | *) ac_try_echo=$ac_try;; |
| 16100 | esac |
| 16101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16102 | (eval "$ac_try") 2>&5 |
| 16103 | ac_status=$? |
| 16104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16105 | (exit $ac_status); }; }; then |
| 16106 | ac_cv_huge_val_sanity=yes |
| 16107 | else |
| 16108 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16109 | echo "$as_me: failed program was:" >&5 |
| 16110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16111 | |
| 16112 | ( exit $ac_status ) |
| 16113 | ac_cv_huge_val_sanity=no |
| 16114 | fi |
| 16115 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16116 | fi |
| 16117 | |
| 16118 | |
| 16119 | CXXFLAGS=$ac_save_CXXFLAGS |
| 16120 | ac_ext=c |
| 16121 | ac_cpp='$CPP $CPPFLAGS' |
| 16122 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16123 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16124 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16125 | |
| 16126 | |
| 16127 | fi |
| 16128 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 16129 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
| 16130 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 16131 | |
| 16132 | |
| 16133 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 16134 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
| 16135 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 16136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16137 | else |
| 16138 | cat >conftest.$ac_ext <<_ACEOF |
| 16139 | /* confdefs.h. */ |
| 16140 | _ACEOF |
| 16141 | cat confdefs.h >>conftest.$ac_ext |
| 16142 | cat >>conftest.$ac_ext <<_ACEOF |
| 16143 | /* end confdefs.h. */ |
| 16144 | $ac_includes_default |
| 16145 | typedef pid_t ac__type_new_; |
| 16146 | int |
| 16147 | main () |
| 16148 | { |
| 16149 | if ((ac__type_new_ *) 0) |
| 16150 | return 0; |
| 16151 | if (sizeof (ac__type_new_)) |
| 16152 | return 0; |
| 16153 | ; |
| 16154 | return 0; |
| 16155 | } |
| 16156 | _ACEOF |
| 16157 | rm -f conftest.$ac_objext |
| 16158 | if { (ac_try="$ac_compile" |
| 16159 | case "(($ac_try" in |
| 16160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16161 | *) ac_try_echo=$ac_try;; |
| 16162 | esac |
| 16163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16164 | (eval "$ac_compile") 2>conftest.er1 |
| 16165 | ac_status=$? |
| 16166 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16167 | rm -f conftest.er1 |
| 16168 | cat conftest.err >&5 |
| 16169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16170 | (exit $ac_status); } && |
| 16171 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16172 | { (case "(($ac_try" in |
| 16173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16174 | *) ac_try_echo=$ac_try;; |
| 16175 | esac |
| 16176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16177 | (eval "$ac_try") 2>&5 |
| 16178 | ac_status=$? |
| 16179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16180 | (exit $ac_status); }; } && |
| 16181 | { ac_try='test -s conftest.$ac_objext' |
| 16182 | { (case "(($ac_try" in |
| 16183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16184 | *) ac_try_echo=$ac_try;; |
| 16185 | esac |
| 16186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16187 | (eval "$ac_try") 2>&5 |
| 16188 | ac_status=$? |
| 16189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16190 | (exit $ac_status); }; }; then |
| 16191 | ac_cv_type_pid_t=yes |
| 16192 | else |
| 16193 | echo "$as_me: failed program was:" >&5 |
| 16194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16195 | |
| 16196 | ac_cv_type_pid_t=no |
| 16197 | fi |
| 16198 | |
| 16199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16200 | fi |
| 16201 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 16202 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
| 16203 | if test $ac_cv_type_pid_t = yes; then |
| 16204 | : |
| 16205 | else |
| 16206 | |
| 16207 | cat >>confdefs.h <<_ACEOF |
| 16208 | #define pid_t int |
| 16209 | _ACEOF |
| 16210 | |
| 16211 | fi |
| 16212 | |
| 16213 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 16214 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
| 16215 | if test "${ac_cv_type_size_t+set}" = set; then |
| 16216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16217 | else |
| 16218 | cat >conftest.$ac_ext <<_ACEOF |
| 16219 | /* confdefs.h. */ |
| 16220 | _ACEOF |
| 16221 | cat confdefs.h >>conftest.$ac_ext |
| 16222 | cat >>conftest.$ac_ext <<_ACEOF |
| 16223 | /* end confdefs.h. */ |
| 16224 | $ac_includes_default |
| 16225 | typedef size_t ac__type_new_; |
| 16226 | int |
| 16227 | main () |
| 16228 | { |
| 16229 | if ((ac__type_new_ *) 0) |
| 16230 | return 0; |
| 16231 | if (sizeof (ac__type_new_)) |
| 16232 | return 0; |
| 16233 | ; |
| 16234 | return 0; |
| 16235 | } |
| 16236 | _ACEOF |
| 16237 | rm -f conftest.$ac_objext |
| 16238 | if { (ac_try="$ac_compile" |
| 16239 | case "(($ac_try" in |
| 16240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16241 | *) ac_try_echo=$ac_try;; |
| 16242 | esac |
| 16243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16244 | (eval "$ac_compile") 2>conftest.er1 |
| 16245 | ac_status=$? |
| 16246 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16247 | rm -f conftest.er1 |
| 16248 | cat conftest.err >&5 |
| 16249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16250 | (exit $ac_status); } && |
| 16251 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16252 | { (case "(($ac_try" in |
| 16253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16254 | *) ac_try_echo=$ac_try;; |
| 16255 | esac |
| 16256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16257 | (eval "$ac_try") 2>&5 |
| 16258 | ac_status=$? |
| 16259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16260 | (exit $ac_status); }; } && |
| 16261 | { ac_try='test -s conftest.$ac_objext' |
| 16262 | { (case "(($ac_try" in |
| 16263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16264 | *) ac_try_echo=$ac_try;; |
| 16265 | esac |
| 16266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16267 | (eval "$ac_try") 2>&5 |
| 16268 | ac_status=$? |
| 16269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16270 | (exit $ac_status); }; }; then |
| 16271 | ac_cv_type_size_t=yes |
| 16272 | else |
| 16273 | echo "$as_me: failed program was:" >&5 |
| 16274 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16275 | |
| 16276 | ac_cv_type_size_t=no |
| 16277 | fi |
| 16278 | |
| 16279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16280 | fi |
| 16281 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 16282 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
| 16283 | if test $ac_cv_type_size_t = yes; then |
| 16284 | : |
| 16285 | else |
| 16286 | |
| 16287 | cat >>confdefs.h <<_ACEOF |
| 16288 | #define size_t unsigned int |
| 16289 | _ACEOF |
| 16290 | |
| 16291 | fi |
| 16292 | |
| 16293 | |
| 16294 | cat >>confdefs.h <<_ACEOF |
| 16295 | #define RETSIGTYPE void |
| 16296 | _ACEOF |
| 16297 | |
| 16298 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 16299 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
| 16300 | if test "${ac_cv_struct_tm+set}" = set; then |
| 16301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16302 | else |
| 16303 | cat >conftest.$ac_ext <<_ACEOF |
| 16304 | /* confdefs.h. */ |
| 16305 | _ACEOF |
| 16306 | cat confdefs.h >>conftest.$ac_ext |
| 16307 | cat >>conftest.$ac_ext <<_ACEOF |
| 16308 | /* end confdefs.h. */ |
| 16309 | #include <sys/types.h> |
| 16310 | #include <time.h> |
| 16311 | |
| 16312 | int |
| 16313 | main () |
| 16314 | { |
| 16315 | struct tm *tp; tp->tm_sec; |
| 16316 | ; |
| 16317 | return 0; |
| 16318 | } |
| 16319 | _ACEOF |
| 16320 | rm -f conftest.$ac_objext |
| 16321 | if { (ac_try="$ac_compile" |
| 16322 | case "(($ac_try" in |
| 16323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16324 | *) ac_try_echo=$ac_try;; |
| 16325 | esac |
| 16326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16327 | (eval "$ac_compile") 2>conftest.er1 |
| 16328 | ac_status=$? |
| 16329 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16330 | rm -f conftest.er1 |
| 16331 | cat conftest.err >&5 |
| 16332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16333 | (exit $ac_status); } && |
| 16334 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16335 | { (case "(($ac_try" in |
| 16336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16337 | *) ac_try_echo=$ac_try;; |
| 16338 | esac |
| 16339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16340 | (eval "$ac_try") 2>&5 |
| 16341 | ac_status=$? |
| 16342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16343 | (exit $ac_status); }; } && |
| 16344 | { ac_try='test -s conftest.$ac_objext' |
| 16345 | { (case "(($ac_try" in |
| 16346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16347 | *) ac_try_echo=$ac_try;; |
| 16348 | esac |
| 16349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16350 | (eval "$ac_try") 2>&5 |
| 16351 | ac_status=$? |
| 16352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16353 | (exit $ac_status); }; }; then |
| 16354 | ac_cv_struct_tm=time.h |
| 16355 | else |
| 16356 | echo "$as_me: failed program was:" >&5 |
| 16357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16358 | |
| 16359 | ac_cv_struct_tm=sys/time.h |
| 16360 | fi |
| 16361 | |
| 16362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16363 | fi |
| 16364 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 16365 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
| 16366 | if test $ac_cv_struct_tm = sys/time.h; then |
| 16367 | |
| 16368 | cat >>confdefs.h <<\_ACEOF |
| 16369 | #define TM_IN_SYS_TIME 1 |
| 16370 | _ACEOF |
| 16371 | |
| 16372 | fi |
| 16373 | |
| 16374 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 16375 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
| 16376 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 16377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16378 | else |
| 16379 | cat >conftest.$ac_ext <<_ACEOF |
| 16380 | /* confdefs.h. */ |
| 16381 | _ACEOF |
| 16382 | cat confdefs.h >>conftest.$ac_ext |
| 16383 | cat >>conftest.$ac_ext <<_ACEOF |
| 16384 | /* end confdefs.h. */ |
| 16385 | $ac_includes_default |
| 16386 | typedef int64_t ac__type_new_; |
| 16387 | int |
| 16388 | main () |
| 16389 | { |
| 16390 | if ((ac__type_new_ *) 0) |
| 16391 | return 0; |
| 16392 | if (sizeof (ac__type_new_)) |
| 16393 | return 0; |
| 16394 | ; |
| 16395 | return 0; |
| 16396 | } |
| 16397 | _ACEOF |
| 16398 | rm -f conftest.$ac_objext |
| 16399 | if { (ac_try="$ac_compile" |
| 16400 | case "(($ac_try" in |
| 16401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16402 | *) ac_try_echo=$ac_try;; |
| 16403 | esac |
| 16404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16405 | (eval "$ac_compile") 2>conftest.er1 |
| 16406 | ac_status=$? |
| 16407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16408 | rm -f conftest.er1 |
| 16409 | cat conftest.err >&5 |
| 16410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16411 | (exit $ac_status); } && |
| 16412 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16413 | { (case "(($ac_try" in |
| 16414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16415 | *) ac_try_echo=$ac_try;; |
| 16416 | esac |
| 16417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16418 | (eval "$ac_try") 2>&5 |
| 16419 | ac_status=$? |
| 16420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16421 | (exit $ac_status); }; } && |
| 16422 | { ac_try='test -s conftest.$ac_objext' |
| 16423 | { (case "(($ac_try" in |
| 16424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16425 | *) ac_try_echo=$ac_try;; |
| 16426 | esac |
| 16427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16428 | (eval "$ac_try") 2>&5 |
| 16429 | ac_status=$? |
| 16430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16431 | (exit $ac_status); }; }; then |
| 16432 | ac_cv_type_int64_t=yes |
| 16433 | else |
| 16434 | echo "$as_me: failed program was:" >&5 |
| 16435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16436 | |
| 16437 | ac_cv_type_int64_t=no |
| 16438 | fi |
| 16439 | |
| 16440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16441 | fi |
| 16442 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 16443 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
| 16444 | if test $ac_cv_type_int64_t = yes; then |
| 16445 | |
| 16446 | cat >>confdefs.h <<_ACEOF |
| 16447 | #define HAVE_INT64_T 1 |
| 16448 | _ACEOF |
| 16449 | |
| 16450 | |
| 16451 | else |
| 16452 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 16453 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 16454 | { (exit 1); exit 1; }; } |
| 16455 | fi |
| 16456 | |
| 16457 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 16458 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
| 16459 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 16460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16461 | else |
| 16462 | cat >conftest.$ac_ext <<_ACEOF |
| 16463 | /* confdefs.h. */ |
| 16464 | _ACEOF |
| 16465 | cat confdefs.h >>conftest.$ac_ext |
| 16466 | cat >>conftest.$ac_ext <<_ACEOF |
| 16467 | /* end confdefs.h. */ |
| 16468 | $ac_includes_default |
| 16469 | typedef uint64_t ac__type_new_; |
| 16470 | int |
| 16471 | main () |
| 16472 | { |
| 16473 | if ((ac__type_new_ *) 0) |
| 16474 | return 0; |
| 16475 | if (sizeof (ac__type_new_)) |
| 16476 | return 0; |
| 16477 | ; |
| 16478 | return 0; |
| 16479 | } |
| 16480 | _ACEOF |
| 16481 | rm -f conftest.$ac_objext |
| 16482 | if { (ac_try="$ac_compile" |
| 16483 | case "(($ac_try" in |
| 16484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16485 | *) ac_try_echo=$ac_try;; |
| 16486 | esac |
| 16487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16488 | (eval "$ac_compile") 2>conftest.er1 |
| 16489 | ac_status=$? |
| 16490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16491 | rm -f conftest.er1 |
| 16492 | cat conftest.err >&5 |
| 16493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16494 | (exit $ac_status); } && |
| 16495 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16496 | { (case "(($ac_try" in |
| 16497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16498 | *) ac_try_echo=$ac_try;; |
| 16499 | esac |
| 16500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16501 | (eval "$ac_try") 2>&5 |
| 16502 | ac_status=$? |
| 16503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16504 | (exit $ac_status); }; } && |
| 16505 | { ac_try='test -s conftest.$ac_objext' |
| 16506 | { (case "(($ac_try" in |
| 16507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16508 | *) ac_try_echo=$ac_try;; |
| 16509 | esac |
| 16510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16511 | (eval "$ac_try") 2>&5 |
| 16512 | ac_status=$? |
| 16513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16514 | (exit $ac_status); }; }; then |
| 16515 | ac_cv_type_uint64_t=yes |
| 16516 | else |
| 16517 | echo "$as_me: failed program was:" >&5 |
| 16518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16519 | |
| 16520 | ac_cv_type_uint64_t=no |
| 16521 | fi |
| 16522 | |
| 16523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16524 | fi |
| 16525 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 16526 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
| 16527 | if test $ac_cv_type_uint64_t = yes; then |
| 16528 | |
| 16529 | cat >>confdefs.h <<_ACEOF |
| 16530 | #define HAVE_UINT64_T 1 |
| 16531 | _ACEOF |
| 16532 | |
| 16533 | |
| 16534 | else |
| 16535 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 16536 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
| 16537 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 16538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16539 | else |
| 16540 | cat >conftest.$ac_ext <<_ACEOF |
| 16541 | /* confdefs.h. */ |
| 16542 | _ACEOF |
| 16543 | cat confdefs.h >>conftest.$ac_ext |
| 16544 | cat >>conftest.$ac_ext <<_ACEOF |
| 16545 | /* end confdefs.h. */ |
| 16546 | $ac_includes_default |
| 16547 | typedef u_int64_t ac__type_new_; |
| 16548 | int |
| 16549 | main () |
| 16550 | { |
| 16551 | if ((ac__type_new_ *) 0) |
| 16552 | return 0; |
| 16553 | if (sizeof (ac__type_new_)) |
| 16554 | return 0; |
| 16555 | ; |
| 16556 | return 0; |
| 16557 | } |
| 16558 | _ACEOF |
| 16559 | rm -f conftest.$ac_objext |
| 16560 | if { (ac_try="$ac_compile" |
| 16561 | case "(($ac_try" in |
| 16562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16563 | *) ac_try_echo=$ac_try;; |
| 16564 | esac |
| 16565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16566 | (eval "$ac_compile") 2>conftest.er1 |
| 16567 | ac_status=$? |
| 16568 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16569 | rm -f conftest.er1 |
| 16570 | cat conftest.err >&5 |
| 16571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16572 | (exit $ac_status); } && |
| 16573 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16574 | { (case "(($ac_try" in |
| 16575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16576 | *) ac_try_echo=$ac_try;; |
| 16577 | esac |
| 16578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16579 | (eval "$ac_try") 2>&5 |
| 16580 | ac_status=$? |
| 16581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16582 | (exit $ac_status); }; } && |
| 16583 | { ac_try='test -s conftest.$ac_objext' |
| 16584 | { (case "(($ac_try" in |
| 16585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16586 | *) ac_try_echo=$ac_try;; |
| 16587 | esac |
| 16588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16589 | (eval "$ac_try") 2>&5 |
| 16590 | ac_status=$? |
| 16591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16592 | (exit $ac_status); }; }; then |
| 16593 | ac_cv_type_u_int64_t=yes |
| 16594 | else |
| 16595 | echo "$as_me: failed program was:" >&5 |
| 16596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16597 | |
| 16598 | ac_cv_type_u_int64_t=no |
| 16599 | fi |
| 16600 | |
| 16601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16602 | fi |
| 16603 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 16604 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
| 16605 | if test $ac_cv_type_u_int64_t = yes; then |
| 16606 | |
| 16607 | cat >>confdefs.h <<_ACEOF |
| 16608 | #define HAVE_U_INT64_T 1 |
| 16609 | _ACEOF |
| 16610 | |
| 16611 | |
| 16612 | else |
| 16613 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 16614 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 16615 | { (exit 1); exit 1; }; } |
| 16616 | fi |
| 16617 | |
| 16618 | fi |
| 16619 | |
| 16620 | |
| 16621 | |
| 16622 | |
| 16623 | |
| 16624 | |
| 16625 | |
| 16626 | |
| 16627 | |
| 16628 | |
| 16629 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
| 16630 | do |
| 16631 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16632 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16633 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16634 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16636 | else |
| 16637 | cat >conftest.$ac_ext <<_ACEOF |
| 16638 | /* confdefs.h. */ |
| 16639 | _ACEOF |
| 16640 | cat confdefs.h >>conftest.$ac_ext |
| 16641 | cat >>conftest.$ac_ext <<_ACEOF |
| 16642 | /* end confdefs.h. */ |
| 16643 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16644 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16645 | #define $ac_func innocuous_$ac_func |
| 16646 | |
| 16647 | /* System header to define __stub macros and hopefully few prototypes, |
| 16648 | which can conflict with char $ac_func (); below. |
| 16649 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16650 | <limits.h> exists even on freestanding compilers. */ |
| 16651 | |
| 16652 | #ifdef __STDC__ |
| 16653 | # include <limits.h> |
| 16654 | #else |
| 16655 | # include <assert.h> |
| 16656 | #endif |
| 16657 | |
| 16658 | #undef $ac_func |
| 16659 | |
| 16660 | /* Override any GCC internal prototype to avoid an error. |
| 16661 | Use char because int might match the return type of a GCC |
| 16662 | builtin and then its argument prototype would still apply. */ |
| 16663 | #ifdef __cplusplus |
| 16664 | extern "C" |
| 16665 | #endif |
| 16666 | char $ac_func (); |
| 16667 | /* The GNU C library defines this for functions which it implements |
| 16668 | to always fail with ENOSYS. Some functions are actually named |
| 16669 | something starting with __ and the normal name is an alias. */ |
| 16670 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 16671 | choke me |
| 16672 | #endif |
| 16673 | |
| 16674 | int |
| 16675 | main () |
| 16676 | { |
| 16677 | return $ac_func (); |
| 16678 | ; |
| 16679 | return 0; |
| 16680 | } |
| 16681 | _ACEOF |
| 16682 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16683 | if { (ac_try="$ac_link" |
| 16684 | case "(($ac_try" in |
| 16685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16686 | *) ac_try_echo=$ac_try;; |
| 16687 | esac |
| 16688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16689 | (eval "$ac_link") 2>conftest.er1 |
| 16690 | ac_status=$? |
| 16691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16692 | rm -f conftest.er1 |
| 16693 | cat conftest.err >&5 |
| 16694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16695 | (exit $ac_status); } && |
| 16696 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16697 | { (case "(($ac_try" in |
| 16698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16699 | *) ac_try_echo=$ac_try;; |
| 16700 | esac |
| 16701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16702 | (eval "$ac_try") 2>&5 |
| 16703 | ac_status=$? |
| 16704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16705 | (exit $ac_status); }; } && |
| 16706 | { ac_try='test -s conftest$ac_exeext' |
| 16707 | { (case "(($ac_try" in |
| 16708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16709 | *) ac_try_echo=$ac_try;; |
| 16710 | esac |
| 16711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16712 | (eval "$ac_try") 2>&5 |
| 16713 | ac_status=$? |
| 16714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16715 | (exit $ac_status); }; }; then |
| 16716 | eval "$as_ac_var=yes" |
| 16717 | else |
| 16718 | echo "$as_me: failed program was:" >&5 |
| 16719 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16720 | |
| 16721 | eval "$as_ac_var=no" |
| 16722 | fi |
| 16723 | |
| 16724 | rm -f core conftest.err conftest.$ac_objext \ |
| 16725 | conftest$ac_exeext conftest.$ac_ext |
| 16726 | fi |
| 16727 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16728 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16729 | echo "${ECHO_T}$ac_res" >&6; } |
| 16730 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16731 | cat >>confdefs.h <<_ACEOF |
| 16732 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16733 | _ACEOF |
| 16734 | |
| 16735 | fi |
| 16736 | done |
| 16737 | |
| 16738 | |
| 16739 | |
| 16740 | |
| 16741 | |
| 16742 | for ac_func in powf fmodf strtof round |
| 16743 | do |
| 16744 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16745 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16746 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16747 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16749 | else |
| 16750 | cat >conftest.$ac_ext <<_ACEOF |
| 16751 | /* confdefs.h. */ |
| 16752 | _ACEOF |
| 16753 | cat confdefs.h >>conftest.$ac_ext |
| 16754 | cat >>conftest.$ac_ext <<_ACEOF |
| 16755 | /* end confdefs.h. */ |
| 16756 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16757 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16758 | #define $ac_func innocuous_$ac_func |
| 16759 | |
| 16760 | /* System header to define __stub macros and hopefully few prototypes, |
| 16761 | which can conflict with char $ac_func (); below. |
| 16762 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16763 | <limits.h> exists even on freestanding compilers. */ |
| 16764 | |
| 16765 | #ifdef __STDC__ |
| 16766 | # include <limits.h> |
| 16767 | #else |
| 16768 | # include <assert.h> |
| 16769 | #endif |
| 16770 | |
| 16771 | #undef $ac_func |
| 16772 | |
| 16773 | /* Override any GCC internal prototype to avoid an error. |
| 16774 | Use char because int might match the return type of a GCC |
| 16775 | builtin and then its argument prototype would still apply. */ |
| 16776 | #ifdef __cplusplus |
| 16777 | extern "C" |
| 16778 | #endif |
| 16779 | char $ac_func (); |
| 16780 | /* The GNU C library defines this for functions which it implements |
| 16781 | to always fail with ENOSYS. Some functions are actually named |
| 16782 | something starting with __ and the normal name is an alias. */ |
| 16783 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 16784 | choke me |
| 16785 | #endif |
| 16786 | |
| 16787 | int |
| 16788 | main () |
| 16789 | { |
| 16790 | return $ac_func (); |
| 16791 | ; |
| 16792 | return 0; |
| 16793 | } |
| 16794 | _ACEOF |
| 16795 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16796 | if { (ac_try="$ac_link" |
| 16797 | case "(($ac_try" in |
| 16798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16799 | *) ac_try_echo=$ac_try;; |
| 16800 | esac |
| 16801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16802 | (eval "$ac_link") 2>conftest.er1 |
| 16803 | ac_status=$? |
| 16804 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16805 | rm -f conftest.er1 |
| 16806 | cat conftest.err >&5 |
| 16807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16808 | (exit $ac_status); } && |
| 16809 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16810 | { (case "(($ac_try" in |
| 16811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16812 | *) ac_try_echo=$ac_try;; |
| 16813 | esac |
| 16814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16815 | (eval "$ac_try") 2>&5 |
| 16816 | ac_status=$? |
| 16817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16818 | (exit $ac_status); }; } && |
| 16819 | { ac_try='test -s conftest$ac_exeext' |
| 16820 | { (case "(($ac_try" in |
| 16821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16822 | *) ac_try_echo=$ac_try;; |
| 16823 | esac |
| 16824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16825 | (eval "$ac_try") 2>&5 |
| 16826 | ac_status=$? |
| 16827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16828 | (exit $ac_status); }; }; then |
| 16829 | eval "$as_ac_var=yes" |
| 16830 | else |
| 16831 | echo "$as_me: failed program was:" >&5 |
| 16832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16833 | |
| 16834 | eval "$as_ac_var=no" |
| 16835 | fi |
| 16836 | |
| 16837 | rm -f core conftest.err conftest.$ac_objext \ |
| 16838 | conftest$ac_exeext conftest.$ac_ext |
| 16839 | fi |
| 16840 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16841 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16842 | echo "${ECHO_T}$ac_res" >&6; } |
| 16843 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16844 | cat >>confdefs.h <<_ACEOF |
| 16845 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16846 | _ACEOF |
| 16847 | |
| 16848 | fi |
| 16849 | done |
| 16850 | |
| 16851 | |
| 16852 | |
| 16853 | |
| 16854 | |
| 16855 | |
| 16856 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
| 16857 | do |
| 16858 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16859 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16860 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16861 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16863 | else |
| 16864 | cat >conftest.$ac_ext <<_ACEOF |
| 16865 | /* confdefs.h. */ |
| 16866 | _ACEOF |
| 16867 | cat confdefs.h >>conftest.$ac_ext |
| 16868 | cat >>conftest.$ac_ext <<_ACEOF |
| 16869 | /* end confdefs.h. */ |
| 16870 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16871 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16872 | #define $ac_func innocuous_$ac_func |
| 16873 | |
| 16874 | /* System header to define __stub macros and hopefully few prototypes, |
| 16875 | which can conflict with char $ac_func (); below. |
| 16876 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16877 | <limits.h> exists even on freestanding compilers. */ |
| 16878 | |
| 16879 | #ifdef __STDC__ |
| 16880 | # include <limits.h> |
| 16881 | #else |
| 16882 | # include <assert.h> |
| 16883 | #endif |
| 16884 | |
| 16885 | #undef $ac_func |
| 16886 | |
| 16887 | /* Override any GCC internal prototype to avoid an error. |
| 16888 | Use char because int might match the return type of a GCC |
| 16889 | builtin and then its argument prototype would still apply. */ |
| 16890 | #ifdef __cplusplus |
| 16891 | extern "C" |
| 16892 | #endif |
| 16893 | char $ac_func (); |
| 16894 | /* The GNU C library defines this for functions which it implements |
| 16895 | to always fail with ENOSYS. Some functions are actually named |
| 16896 | something starting with __ and the normal name is an alias. */ |
| 16897 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 16898 | choke me |
| 16899 | #endif |
| 16900 | |
| 16901 | int |
| 16902 | main () |
| 16903 | { |
| 16904 | return $ac_func (); |
| 16905 | ; |
| 16906 | return 0; |
| 16907 | } |
| 16908 | _ACEOF |
| 16909 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16910 | if { (ac_try="$ac_link" |
| 16911 | case "(($ac_try" in |
| 16912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16913 | *) ac_try_echo=$ac_try;; |
| 16914 | esac |
| 16915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16916 | (eval "$ac_link") 2>conftest.er1 |
| 16917 | ac_status=$? |
| 16918 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16919 | rm -f conftest.er1 |
| 16920 | cat conftest.err >&5 |
| 16921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16922 | (exit $ac_status); } && |
| 16923 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16924 | { (case "(($ac_try" in |
| 16925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16926 | *) ac_try_echo=$ac_try;; |
| 16927 | esac |
| 16928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16929 | (eval "$ac_try") 2>&5 |
| 16930 | ac_status=$? |
| 16931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16932 | (exit $ac_status); }; } && |
| 16933 | { ac_try='test -s conftest$ac_exeext' |
| 16934 | { (case "(($ac_try" in |
| 16935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16936 | *) ac_try_echo=$ac_try;; |
| 16937 | esac |
| 16938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16939 | (eval "$ac_try") 2>&5 |
| 16940 | ac_status=$? |
| 16941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16942 | (exit $ac_status); }; }; then |
| 16943 | eval "$as_ac_var=yes" |
| 16944 | else |
| 16945 | echo "$as_me: failed program was:" >&5 |
| 16946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16947 | |
| 16948 | eval "$as_ac_var=no" |
| 16949 | fi |
| 16950 | |
| 16951 | rm -f core conftest.err conftest.$ac_objext \ |
| 16952 | conftest$ac_exeext conftest.$ac_ext |
| 16953 | fi |
| 16954 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 16955 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 16956 | echo "${ECHO_T}$ac_res" >&6; } |
| 16957 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16958 | cat >>confdefs.h <<_ACEOF |
| 16959 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16960 | _ACEOF |
| 16961 | |
| 16962 | fi |
| 16963 | done |
| 16964 | |
| 16965 | |
| 16966 | |
| 16967 | |
| 16968 | for ac_func in isatty mkdtemp mkstemp |
| 16969 | do |
| 16970 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16971 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16972 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 16973 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 16974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16975 | else |
| 16976 | cat >conftest.$ac_ext <<_ACEOF |
| 16977 | /* confdefs.h. */ |
| 16978 | _ACEOF |
| 16979 | cat confdefs.h >>conftest.$ac_ext |
| 16980 | cat >>conftest.$ac_ext <<_ACEOF |
| 16981 | /* end confdefs.h. */ |
| 16982 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16983 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16984 | #define $ac_func innocuous_$ac_func |
| 16985 | |
| 16986 | /* System header to define __stub macros and hopefully few prototypes, |
| 16987 | which can conflict with char $ac_func (); below. |
| 16988 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16989 | <limits.h> exists even on freestanding compilers. */ |
| 16990 | |
| 16991 | #ifdef __STDC__ |
| 16992 | # include <limits.h> |
| 16993 | #else |
| 16994 | # include <assert.h> |
| 16995 | #endif |
| 16996 | |
| 16997 | #undef $ac_func |
| 16998 | |
| 16999 | /* Override any GCC internal prototype to avoid an error. |
| 17000 | Use char because int might match the return type of a GCC |
| 17001 | builtin and then its argument prototype would still apply. */ |
| 17002 | #ifdef __cplusplus |
| 17003 | extern "C" |
| 17004 | #endif |
| 17005 | char $ac_func (); |
| 17006 | /* The GNU C library defines this for functions which it implements |
| 17007 | to always fail with ENOSYS. Some functions are actually named |
| 17008 | something starting with __ and the normal name is an alias. */ |
| 17009 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17010 | choke me |
| 17011 | #endif |
| 17012 | |
| 17013 | int |
| 17014 | main () |
| 17015 | { |
| 17016 | return $ac_func (); |
| 17017 | ; |
| 17018 | return 0; |
| 17019 | } |
| 17020 | _ACEOF |
| 17021 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17022 | if { (ac_try="$ac_link" |
| 17023 | case "(($ac_try" in |
| 17024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17025 | *) ac_try_echo=$ac_try;; |
| 17026 | esac |
| 17027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17028 | (eval "$ac_link") 2>conftest.er1 |
| 17029 | ac_status=$? |
| 17030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17031 | rm -f conftest.er1 |
| 17032 | cat conftest.err >&5 |
| 17033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17034 | (exit $ac_status); } && |
| 17035 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17036 | { (case "(($ac_try" in |
| 17037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17038 | *) ac_try_echo=$ac_try;; |
| 17039 | esac |
| 17040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17041 | (eval "$ac_try") 2>&5 |
| 17042 | ac_status=$? |
| 17043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17044 | (exit $ac_status); }; } && |
| 17045 | { ac_try='test -s conftest$ac_exeext' |
| 17046 | { (case "(($ac_try" in |
| 17047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17048 | *) ac_try_echo=$ac_try;; |
| 17049 | esac |
| 17050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17051 | (eval "$ac_try") 2>&5 |
| 17052 | ac_status=$? |
| 17053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17054 | (exit $ac_status); }; }; then |
| 17055 | eval "$as_ac_var=yes" |
| 17056 | else |
| 17057 | echo "$as_me: failed program was:" >&5 |
| 17058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17059 | |
| 17060 | eval "$as_ac_var=no" |
| 17061 | fi |
| 17062 | |
| 17063 | rm -f core conftest.err conftest.$ac_objext \ |
| 17064 | conftest$ac_exeext conftest.$ac_ext |
| 17065 | fi |
| 17066 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17067 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17068 | echo "${ECHO_T}$ac_res" >&6; } |
| 17069 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17070 | cat >>confdefs.h <<_ACEOF |
| 17071 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17072 | _ACEOF |
| 17073 | |
| 17074 | fi |
| 17075 | done |
| 17076 | |
| 17077 | |
| 17078 | |
| 17079 | |
| 17080 | |
| 17081 | |
| 17082 | |
| 17083 | for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup |
| 17084 | do |
| 17085 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17086 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17087 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17088 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17090 | else |
| 17091 | cat >conftest.$ac_ext <<_ACEOF |
| 17092 | /* confdefs.h. */ |
| 17093 | _ACEOF |
| 17094 | cat confdefs.h >>conftest.$ac_ext |
| 17095 | cat >>conftest.$ac_ext <<_ACEOF |
| 17096 | /* end confdefs.h. */ |
| 17097 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17098 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17099 | #define $ac_func innocuous_$ac_func |
| 17100 | |
| 17101 | /* System header to define __stub macros and hopefully few prototypes, |
| 17102 | which can conflict with char $ac_func (); below. |
| 17103 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17104 | <limits.h> exists even on freestanding compilers. */ |
| 17105 | |
| 17106 | #ifdef __STDC__ |
| 17107 | # include <limits.h> |
| 17108 | #else |
| 17109 | # include <assert.h> |
| 17110 | #endif |
| 17111 | |
| 17112 | #undef $ac_func |
| 17113 | |
| 17114 | /* Override any GCC internal prototype to avoid an error. |
| 17115 | Use char because int might match the return type of a GCC |
| 17116 | builtin and then its argument prototype would still apply. */ |
| 17117 | #ifdef __cplusplus |
| 17118 | extern "C" |
| 17119 | #endif |
| 17120 | char $ac_func (); |
| 17121 | /* The GNU C library defines this for functions which it implements |
| 17122 | to always fail with ENOSYS. Some functions are actually named |
| 17123 | something starting with __ and the normal name is an alias. */ |
| 17124 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17125 | choke me |
| 17126 | #endif |
| 17127 | |
| 17128 | int |
| 17129 | main () |
| 17130 | { |
| 17131 | return $ac_func (); |
| 17132 | ; |
| 17133 | return 0; |
| 17134 | } |
| 17135 | _ACEOF |
| 17136 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17137 | if { (ac_try="$ac_link" |
| 17138 | case "(($ac_try" in |
| 17139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17140 | *) ac_try_echo=$ac_try;; |
| 17141 | esac |
| 17142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17143 | (eval "$ac_link") 2>conftest.er1 |
| 17144 | ac_status=$? |
| 17145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17146 | rm -f conftest.er1 |
| 17147 | cat conftest.err >&5 |
| 17148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17149 | (exit $ac_status); } && |
| 17150 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17151 | { (case "(($ac_try" in |
| 17152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17153 | *) ac_try_echo=$ac_try;; |
| 17154 | esac |
| 17155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17156 | (eval "$ac_try") 2>&5 |
| 17157 | ac_status=$? |
| 17158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17159 | (exit $ac_status); }; } && |
| 17160 | { ac_try='test -s conftest$ac_exeext' |
| 17161 | { (case "(($ac_try" in |
| 17162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17163 | *) ac_try_echo=$ac_try;; |
| 17164 | esac |
| 17165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17166 | (eval "$ac_try") 2>&5 |
| 17167 | ac_status=$? |
| 17168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17169 | (exit $ac_status); }; }; then |
| 17170 | eval "$as_ac_var=yes" |
| 17171 | else |
| 17172 | echo "$as_me: failed program was:" >&5 |
| 17173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17174 | |
| 17175 | eval "$as_ac_var=no" |
| 17176 | fi |
| 17177 | |
| 17178 | rm -f core conftest.err conftest.$ac_objext \ |
| 17179 | conftest$ac_exeext conftest.$ac_ext |
| 17180 | fi |
| 17181 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17182 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17183 | echo "${ECHO_T}$ac_res" >&6; } |
| 17184 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17185 | cat >>confdefs.h <<_ACEOF |
| 17186 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17187 | _ACEOF |
| 17188 | |
| 17189 | fi |
| 17190 | done |
| 17191 | |
| 17192 | |
| 17193 | |
| 17194 | |
| 17195 | for ac_func in strerror strerror_r setenv |
| 17196 | do |
| 17197 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17198 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17199 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17200 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17202 | else |
| 17203 | cat >conftest.$ac_ext <<_ACEOF |
| 17204 | /* confdefs.h. */ |
| 17205 | _ACEOF |
| 17206 | cat confdefs.h >>conftest.$ac_ext |
| 17207 | cat >>conftest.$ac_ext <<_ACEOF |
| 17208 | /* end confdefs.h. */ |
| 17209 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17210 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17211 | #define $ac_func innocuous_$ac_func |
| 17212 | |
| 17213 | /* System header to define __stub macros and hopefully few prototypes, |
| 17214 | which can conflict with char $ac_func (); below. |
| 17215 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17216 | <limits.h> exists even on freestanding compilers. */ |
| 17217 | |
| 17218 | #ifdef __STDC__ |
| 17219 | # include <limits.h> |
| 17220 | #else |
| 17221 | # include <assert.h> |
| 17222 | #endif |
| 17223 | |
| 17224 | #undef $ac_func |
| 17225 | |
| 17226 | /* Override any GCC internal prototype to avoid an error. |
| 17227 | Use char because int might match the return type of a GCC |
| 17228 | builtin and then its argument prototype would still apply. */ |
| 17229 | #ifdef __cplusplus |
| 17230 | extern "C" |
| 17231 | #endif |
| 17232 | char $ac_func (); |
| 17233 | /* The GNU C library defines this for functions which it implements |
| 17234 | to always fail with ENOSYS. Some functions are actually named |
| 17235 | something starting with __ and the normal name is an alias. */ |
| 17236 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17237 | choke me |
| 17238 | #endif |
| 17239 | |
| 17240 | int |
| 17241 | main () |
| 17242 | { |
| 17243 | return $ac_func (); |
| 17244 | ; |
| 17245 | return 0; |
| 17246 | } |
| 17247 | _ACEOF |
| 17248 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17249 | if { (ac_try="$ac_link" |
| 17250 | case "(($ac_try" in |
| 17251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17252 | *) ac_try_echo=$ac_try;; |
| 17253 | esac |
| 17254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17255 | (eval "$ac_link") 2>conftest.er1 |
| 17256 | ac_status=$? |
| 17257 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17258 | rm -f conftest.er1 |
| 17259 | cat conftest.err >&5 |
| 17260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17261 | (exit $ac_status); } && |
| 17262 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17263 | { (case "(($ac_try" in |
| 17264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17265 | *) ac_try_echo=$ac_try;; |
| 17266 | esac |
| 17267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17268 | (eval "$ac_try") 2>&5 |
| 17269 | ac_status=$? |
| 17270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17271 | (exit $ac_status); }; } && |
| 17272 | { ac_try='test -s conftest$ac_exeext' |
| 17273 | { (case "(($ac_try" in |
| 17274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17275 | *) ac_try_echo=$ac_try;; |
| 17276 | esac |
| 17277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17278 | (eval "$ac_try") 2>&5 |
| 17279 | ac_status=$? |
| 17280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17281 | (exit $ac_status); }; }; then |
| 17282 | eval "$as_ac_var=yes" |
| 17283 | else |
| 17284 | echo "$as_me: failed program was:" >&5 |
| 17285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17286 | |
| 17287 | eval "$as_ac_var=no" |
| 17288 | fi |
| 17289 | |
| 17290 | rm -f core conftest.err conftest.$ac_objext \ |
| 17291 | conftest$ac_exeext conftest.$ac_ext |
| 17292 | fi |
| 17293 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17294 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17295 | echo "${ECHO_T}$ac_res" >&6; } |
| 17296 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17297 | cat >>confdefs.h <<_ACEOF |
| 17298 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17299 | _ACEOF |
| 17300 | |
| 17301 | fi |
| 17302 | done |
| 17303 | |
| 17304 | |
| 17305 | |
| 17306 | |
| 17307 | |
| 17308 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
| 17309 | do |
| 17310 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17311 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17312 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17313 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17315 | else |
| 17316 | cat >conftest.$ac_ext <<_ACEOF |
| 17317 | /* confdefs.h. */ |
| 17318 | _ACEOF |
| 17319 | cat confdefs.h >>conftest.$ac_ext |
| 17320 | cat >>conftest.$ac_ext <<_ACEOF |
| 17321 | /* end confdefs.h. */ |
| 17322 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17323 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17324 | #define $ac_func innocuous_$ac_func |
| 17325 | |
| 17326 | /* System header to define __stub macros and hopefully few prototypes, |
| 17327 | which can conflict with char $ac_func (); below. |
| 17328 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17329 | <limits.h> exists even on freestanding compilers. */ |
| 17330 | |
| 17331 | #ifdef __STDC__ |
| 17332 | # include <limits.h> |
| 17333 | #else |
| 17334 | # include <assert.h> |
| 17335 | #endif |
| 17336 | |
| 17337 | #undef $ac_func |
| 17338 | |
| 17339 | /* Override any GCC internal prototype to avoid an error. |
| 17340 | Use char because int might match the return type of a GCC |
| 17341 | builtin and then its argument prototype would still apply. */ |
| 17342 | #ifdef __cplusplus |
| 17343 | extern "C" |
| 17344 | #endif |
| 17345 | char $ac_func (); |
| 17346 | /* The GNU C library defines this for functions which it implements |
| 17347 | to always fail with ENOSYS. Some functions are actually named |
| 17348 | something starting with __ and the normal name is an alias. */ |
| 17349 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17350 | choke me |
| 17351 | #endif |
| 17352 | |
| 17353 | int |
| 17354 | main () |
| 17355 | { |
| 17356 | return $ac_func (); |
| 17357 | ; |
| 17358 | return 0; |
| 17359 | } |
| 17360 | _ACEOF |
| 17361 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17362 | if { (ac_try="$ac_link" |
| 17363 | case "(($ac_try" in |
| 17364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17365 | *) ac_try_echo=$ac_try;; |
| 17366 | esac |
| 17367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17368 | (eval "$ac_link") 2>conftest.er1 |
| 17369 | ac_status=$? |
| 17370 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17371 | rm -f conftest.er1 |
| 17372 | cat conftest.err >&5 |
| 17373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17374 | (exit $ac_status); } && |
| 17375 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17376 | { (case "(($ac_try" in |
| 17377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17378 | *) ac_try_echo=$ac_try;; |
| 17379 | esac |
| 17380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17381 | (eval "$ac_try") 2>&5 |
| 17382 | ac_status=$? |
| 17383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17384 | (exit $ac_status); }; } && |
| 17385 | { ac_try='test -s conftest$ac_exeext' |
| 17386 | { (case "(($ac_try" in |
| 17387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17388 | *) ac_try_echo=$ac_try;; |
| 17389 | esac |
| 17390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17391 | (eval "$ac_try") 2>&5 |
| 17392 | ac_status=$? |
| 17393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17394 | (exit $ac_status); }; }; then |
| 17395 | eval "$as_ac_var=yes" |
| 17396 | else |
| 17397 | echo "$as_me: failed program was:" >&5 |
| 17398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17399 | |
| 17400 | eval "$as_ac_var=no" |
| 17401 | fi |
| 17402 | |
| 17403 | rm -f core conftest.err conftest.$ac_objext \ |
| 17404 | conftest$ac_exeext conftest.$ac_ext |
| 17405 | fi |
| 17406 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17407 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17408 | echo "${ECHO_T}$ac_res" >&6; } |
| 17409 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17410 | cat >>confdefs.h <<_ACEOF |
| 17411 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17412 | _ACEOF |
| 17413 | |
| 17414 | fi |
| 17415 | done |
| 17416 | |
| 17417 | |
| 17418 | |
| 17419 | |
| 17420 | |
| 17421 | |
| 17422 | for ac_func in setjmp longjmp sigsetjmp siglongjmp writev |
| 17423 | do |
| 17424 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17425 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17426 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 17427 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 17428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17429 | else |
| 17430 | cat >conftest.$ac_ext <<_ACEOF |
| 17431 | /* confdefs.h. */ |
| 17432 | _ACEOF |
| 17433 | cat confdefs.h >>conftest.$ac_ext |
| 17434 | cat >>conftest.$ac_ext <<_ACEOF |
| 17435 | /* end confdefs.h. */ |
| 17436 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 17437 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 17438 | #define $ac_func innocuous_$ac_func |
| 17439 | |
| 17440 | /* System header to define __stub macros and hopefully few prototypes, |
| 17441 | which can conflict with char $ac_func (); below. |
| 17442 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17443 | <limits.h> exists even on freestanding compilers. */ |
| 17444 | |
| 17445 | #ifdef __STDC__ |
| 17446 | # include <limits.h> |
| 17447 | #else |
| 17448 | # include <assert.h> |
| 17449 | #endif |
| 17450 | |
| 17451 | #undef $ac_func |
| 17452 | |
| 17453 | /* Override any GCC internal prototype to avoid an error. |
| 17454 | Use char because int might match the return type of a GCC |
| 17455 | builtin and then its argument prototype would still apply. */ |
| 17456 | #ifdef __cplusplus |
| 17457 | extern "C" |
| 17458 | #endif |
| 17459 | char $ac_func (); |
| 17460 | /* The GNU C library defines this for functions which it implements |
| 17461 | to always fail with ENOSYS. Some functions are actually named |
| 17462 | something starting with __ and the normal name is an alias. */ |
| 17463 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 17464 | choke me |
| 17465 | #endif |
| 17466 | |
| 17467 | int |
| 17468 | main () |
| 17469 | { |
| 17470 | return $ac_func (); |
| 17471 | ; |
| 17472 | return 0; |
| 17473 | } |
| 17474 | _ACEOF |
| 17475 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17476 | if { (ac_try="$ac_link" |
| 17477 | case "(($ac_try" in |
| 17478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17479 | *) ac_try_echo=$ac_try;; |
| 17480 | esac |
| 17481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17482 | (eval "$ac_link") 2>conftest.er1 |
| 17483 | ac_status=$? |
| 17484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17485 | rm -f conftest.er1 |
| 17486 | cat conftest.err >&5 |
| 17487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17488 | (exit $ac_status); } && |
| 17489 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17490 | { (case "(($ac_try" in |
| 17491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17492 | *) ac_try_echo=$ac_try;; |
| 17493 | esac |
| 17494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17495 | (eval "$ac_try") 2>&5 |
| 17496 | ac_status=$? |
| 17497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17498 | (exit $ac_status); }; } && |
| 17499 | { ac_try='test -s conftest$ac_exeext' |
| 17500 | { (case "(($ac_try" in |
| 17501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17502 | *) ac_try_echo=$ac_try;; |
| 17503 | esac |
| 17504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17505 | (eval "$ac_try") 2>&5 |
| 17506 | ac_status=$? |
| 17507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17508 | (exit $ac_status); }; }; then |
| 17509 | eval "$as_ac_var=yes" |
| 17510 | else |
| 17511 | echo "$as_me: failed program was:" >&5 |
| 17512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17513 | |
| 17514 | eval "$as_ac_var=no" |
| 17515 | fi |
| 17516 | |
| 17517 | rm -f core conftest.err conftest.$ac_objext \ |
| 17518 | conftest$ac_exeext conftest.$ac_ext |
| 17519 | fi |
| 17520 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 17521 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 17522 | echo "${ECHO_T}$ac_res" >&6; } |
| 17523 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17524 | cat >>confdefs.h <<_ACEOF |
| 17525 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17526 | _ACEOF |
| 17527 | |
| 17528 | fi |
| 17529 | done |
| 17530 | |
| 17531 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 17532 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
| 17533 | if test "${llvm_cv_c_printf_a+set}" = set; then |
| 17534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17535 | else |
| 17536 | ac_ext=c |
| 17537 | ac_cpp='$CPP $CPPFLAGS' |
| 17538 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17539 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17540 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17541 | |
| 17542 | if test "$cross_compiling" = yes; then |
| 17543 | llvmac_cv_c_printf_a=no |
| 17544 | else |
| 17545 | cat >conftest.$ac_ext <<_ACEOF |
| 17546 | |
| 17547 | /* confdefs.h. */ |
| 17548 | _ACEOF |
| 17549 | cat confdefs.h >>conftest.$ac_ext |
| 17550 | cat >>conftest.$ac_ext <<_ACEOF |
| 17551 | /* end confdefs.h. */ |
| 17552 | |
| 17553 | #include <stdio.h> |
| 17554 | #include <stdlib.h> |
| 17555 | |
| 17556 | int |
| 17557 | main () |
| 17558 | { |
| 17559 | |
| 17560 | volatile double A, B; |
| 17561 | char Buffer[100]; |
| 17562 | A = 1; |
| 17563 | A /= 10.0; |
| 17564 | sprintf(Buffer, "%a", A); |
| 17565 | B = atof(Buffer); |
| 17566 | if (A != B) |
| 17567 | return (1); |
| 17568 | if (A != 0x1.999999999999ap-4) |
| 17569 | return (1); |
| 17570 | return (0); |
| 17571 | ; |
| 17572 | return 0; |
| 17573 | } |
| 17574 | _ACEOF |
| 17575 | rm -f conftest$ac_exeext |
| 17576 | if { (ac_try="$ac_link" |
| 17577 | case "(($ac_try" in |
| 17578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17579 | *) ac_try_echo=$ac_try;; |
| 17580 | esac |
| 17581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17582 | (eval "$ac_link") 2>&5 |
| 17583 | ac_status=$? |
| 17584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17585 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17586 | { (case "(($ac_try" in |
| 17587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17588 | *) ac_try_echo=$ac_try;; |
| 17589 | esac |
| 17590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17591 | (eval "$ac_try") 2>&5 |
| 17592 | ac_status=$? |
| 17593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17594 | (exit $ac_status); }; }; then |
| 17595 | llvm_cv_c_printf_a=yes |
| 17596 | else |
| 17597 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17598 | echo "$as_me: failed program was:" >&5 |
| 17599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17600 | |
| 17601 | ( exit $ac_status ) |
| 17602 | llvmac_cv_c_printf_a=no |
| 17603 | fi |
| 17604 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 17605 | fi |
| 17606 | |
| 17607 | |
| 17608 | ac_ext=c |
| 17609 | ac_cpp='$CPP $CPPFLAGS' |
| 17610 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17611 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17612 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17613 | |
| 17614 | fi |
| 17615 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 17616 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
| 17617 | if test "$llvm_cv_c_printf_a" = "yes"; then |
| 17618 | |
| 17619 | cat >>confdefs.h <<\_ACEOF |
| 17620 | #define HAVE_PRINTF_A 1 |
| 17621 | _ACEOF |
| 17622 | |
| 17623 | fi |
| 17624 | |
| 17625 | |
| 17626 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 17627 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
| 17628 | if test "${ac_cv_func_rand48+set}" = set; then |
| 17629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17630 | else |
| 17631 | ac_ext=cpp |
| 17632 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17633 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17634 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17635 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 17636 | |
| 17637 | cat >conftest.$ac_ext <<_ACEOF |
| 17638 | /* confdefs.h. */ |
| 17639 | _ACEOF |
| 17640 | cat confdefs.h >>conftest.$ac_ext |
| 17641 | cat >>conftest.$ac_ext <<_ACEOF |
| 17642 | /* end confdefs.h. */ |
| 17643 | #include <stdlib.h> |
| 17644 | int |
| 17645 | main () |
| 17646 | { |
| 17647 | srand48(0);lrand48();drand48(); |
| 17648 | ; |
| 17649 | return 0; |
| 17650 | } |
| 17651 | _ACEOF |
| 17652 | rm -f conftest.$ac_objext |
| 17653 | if { (ac_try="$ac_compile" |
| 17654 | case "(($ac_try" in |
| 17655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17656 | *) ac_try_echo=$ac_try;; |
| 17657 | esac |
| 17658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17659 | (eval "$ac_compile") 2>conftest.er1 |
| 17660 | ac_status=$? |
| 17661 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17662 | rm -f conftest.er1 |
| 17663 | cat conftest.err >&5 |
| 17664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17665 | (exit $ac_status); } && |
| 17666 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 17667 | { (case "(($ac_try" in |
| 17668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17669 | *) ac_try_echo=$ac_try;; |
| 17670 | esac |
| 17671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17672 | (eval "$ac_try") 2>&5 |
| 17673 | ac_status=$? |
| 17674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17675 | (exit $ac_status); }; } && |
| 17676 | { ac_try='test -s conftest.$ac_objext' |
| 17677 | { (case "(($ac_try" in |
| 17678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17679 | *) ac_try_echo=$ac_try;; |
| 17680 | esac |
| 17681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17682 | (eval "$ac_try") 2>&5 |
| 17683 | ac_status=$? |
| 17684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17685 | (exit $ac_status); }; }; then |
| 17686 | ac_cv_func_rand48=yes |
| 17687 | else |
| 17688 | echo "$as_me: failed program was:" >&5 |
| 17689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17690 | |
| 17691 | ac_cv_func_rand48=no |
| 17692 | fi |
| 17693 | |
| 17694 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17695 | ac_ext=c |
| 17696 | ac_cpp='$CPP $CPPFLAGS' |
| 17697 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17698 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17699 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17700 | |
| 17701 | fi |
| 17702 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 17703 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
| 17704 | |
| 17705 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 17706 | |
| 17707 | cat >>confdefs.h <<\_ACEOF |
| 17708 | #define HAVE_RAND48 1 |
| 17709 | _ACEOF |
| 17710 | |
| 17711 | fi |
| 17712 | |
| 17713 | |
| 17714 | { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 |
| 17715 | echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } |
| 17716 | if test "${ac_cv_have_decl_strerror_s+set}" = set; then |
| 17717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17718 | else |
| 17719 | cat >conftest.$ac_ext <<_ACEOF |
| 17720 | /* confdefs.h. */ |
| 17721 | _ACEOF |
| 17722 | cat confdefs.h >>conftest.$ac_ext |
| 17723 | cat >>conftest.$ac_ext <<_ACEOF |
| 17724 | /* end confdefs.h. */ |
| 17725 | $ac_includes_default |
| 17726 | int |
| 17727 | main () |
| 17728 | { |
| 17729 | #ifndef strerror_s |
| 17730 | char *p = (char *) strerror_s; |
| 17731 | return !p; |
| 17732 | #endif |
| 17733 | |
| 17734 | ; |
| 17735 | return 0; |
| 17736 | } |
| 17737 | _ACEOF |
| 17738 | rm -f conftest.$ac_objext |
| 17739 | if { (ac_try="$ac_compile" |
| 17740 | case "(($ac_try" in |
| 17741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17742 | *) ac_try_echo=$ac_try;; |
| 17743 | esac |
| 17744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17745 | (eval "$ac_compile") 2>conftest.er1 |
| 17746 | ac_status=$? |
| 17747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17748 | rm -f conftest.er1 |
| 17749 | cat conftest.err >&5 |
| 17750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17751 | (exit $ac_status); } && |
| 17752 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17753 | { (case "(($ac_try" in |
| 17754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17755 | *) ac_try_echo=$ac_try;; |
| 17756 | esac |
| 17757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17758 | (eval "$ac_try") 2>&5 |
| 17759 | ac_status=$? |
| 17760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17761 | (exit $ac_status); }; } && |
| 17762 | { ac_try='test -s conftest.$ac_objext' |
| 17763 | { (case "(($ac_try" in |
| 17764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17765 | *) ac_try_echo=$ac_try;; |
| 17766 | esac |
| 17767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17768 | (eval "$ac_try") 2>&5 |
| 17769 | ac_status=$? |
| 17770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17771 | (exit $ac_status); }; }; then |
| 17772 | ac_cv_have_decl_strerror_s=yes |
| 17773 | else |
| 17774 | echo "$as_me: failed program was:" >&5 |
| 17775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17776 | |
| 17777 | ac_cv_have_decl_strerror_s=no |
| 17778 | fi |
| 17779 | |
| 17780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17781 | fi |
| 17782 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 |
| 17783 | echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } |
| 17784 | if test $ac_cv_have_decl_strerror_s = yes; then |
| 17785 | |
| 17786 | cat >>confdefs.h <<_ACEOF |
| 17787 | #define HAVE_DECL_STRERROR_S 1 |
| 17788 | _ACEOF |
| 17789 | |
| 17790 | |
| 17791 | else |
| 17792 | cat >>confdefs.h <<_ACEOF |
| 17793 | #define HAVE_DECL_STRERROR_S 0 |
| 17794 | _ACEOF |
| 17795 | |
| 17796 | |
| 17797 | fi |
| 17798 | |
| 17799 | |
| 17800 | |
| 17801 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 17802 | { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 |
| 17803 | echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } |
| 17804 | if test "${ac_cv_lib_gcc__alloca+set}" = set; then |
| 17805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17806 | else |
| 17807 | ac_check_lib_save_LIBS=$LIBS |
| 17808 | LIBS="-lgcc $LIBS" |
| 17809 | cat >conftest.$ac_ext <<_ACEOF |
| 17810 | /* confdefs.h. */ |
| 17811 | _ACEOF |
| 17812 | cat confdefs.h >>conftest.$ac_ext |
| 17813 | cat >>conftest.$ac_ext <<_ACEOF |
| 17814 | /* end confdefs.h. */ |
| 17815 | |
| 17816 | /* Override any GCC internal prototype to avoid an error. |
| 17817 | Use char because int might match the return type of a GCC |
| 17818 | builtin and then its argument prototype would still apply. */ |
| 17819 | #ifdef __cplusplus |
| 17820 | extern "C" |
| 17821 | #endif |
| 17822 | char _alloca (); |
| 17823 | int |
| 17824 | main () |
| 17825 | { |
| 17826 | return _alloca (); |
| 17827 | ; |
| 17828 | return 0; |
| 17829 | } |
| 17830 | _ACEOF |
| 17831 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17832 | if { (ac_try="$ac_link" |
| 17833 | case "(($ac_try" in |
| 17834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17835 | *) ac_try_echo=$ac_try;; |
| 17836 | esac |
| 17837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17838 | (eval "$ac_link") 2>conftest.er1 |
| 17839 | ac_status=$? |
| 17840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17841 | rm -f conftest.er1 |
| 17842 | cat conftest.err >&5 |
| 17843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17844 | (exit $ac_status); } && |
| 17845 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17846 | { (case "(($ac_try" in |
| 17847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17848 | *) ac_try_echo=$ac_try;; |
| 17849 | esac |
| 17850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17851 | (eval "$ac_try") 2>&5 |
| 17852 | ac_status=$? |
| 17853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17854 | (exit $ac_status); }; } && |
| 17855 | { ac_try='test -s conftest$ac_exeext' |
| 17856 | { (case "(($ac_try" in |
| 17857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17858 | *) ac_try_echo=$ac_try;; |
| 17859 | esac |
| 17860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17861 | (eval "$ac_try") 2>&5 |
| 17862 | ac_status=$? |
| 17863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17864 | (exit $ac_status); }; }; then |
| 17865 | ac_cv_lib_gcc__alloca=yes |
| 17866 | else |
| 17867 | echo "$as_me: failed program was:" >&5 |
| 17868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17869 | |
| 17870 | ac_cv_lib_gcc__alloca=no |
| 17871 | fi |
| 17872 | |
| 17873 | rm -f core conftest.err conftest.$ac_objext \ |
| 17874 | conftest$ac_exeext conftest.$ac_ext |
| 17875 | LIBS=$ac_check_lib_save_LIBS |
| 17876 | fi |
| 17877 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 |
| 17878 | echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } |
| 17879 | if test $ac_cv_lib_gcc__alloca = yes; then |
| 17880 | |
| 17881 | cat >>confdefs.h <<\_ACEOF |
| 17882 | #define HAVE__ALLOCA 1 |
| 17883 | _ACEOF |
| 17884 | |
| 17885 | fi |
| 17886 | |
| 17887 | { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 |
| 17888 | echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } |
| 17889 | if test "${ac_cv_lib_gcc___alloca+set}" = set; then |
| 17890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17891 | else |
| 17892 | ac_check_lib_save_LIBS=$LIBS |
| 17893 | LIBS="-lgcc $LIBS" |
| 17894 | cat >conftest.$ac_ext <<_ACEOF |
| 17895 | /* confdefs.h. */ |
| 17896 | _ACEOF |
| 17897 | cat confdefs.h >>conftest.$ac_ext |
| 17898 | cat >>conftest.$ac_ext <<_ACEOF |
| 17899 | /* end confdefs.h. */ |
| 17900 | |
| 17901 | /* Override any GCC internal prototype to avoid an error. |
| 17902 | Use char because int might match the return type of a GCC |
| 17903 | builtin and then its argument prototype would still apply. */ |
| 17904 | #ifdef __cplusplus |
| 17905 | extern "C" |
| 17906 | #endif |
| 17907 | char __alloca (); |
| 17908 | int |
| 17909 | main () |
| 17910 | { |
| 17911 | return __alloca (); |
| 17912 | ; |
| 17913 | return 0; |
| 17914 | } |
| 17915 | _ACEOF |
| 17916 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17917 | if { (ac_try="$ac_link" |
| 17918 | case "(($ac_try" in |
| 17919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17920 | *) ac_try_echo=$ac_try;; |
| 17921 | esac |
| 17922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17923 | (eval "$ac_link") 2>conftest.er1 |
| 17924 | ac_status=$? |
| 17925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17926 | rm -f conftest.er1 |
| 17927 | cat conftest.err >&5 |
| 17928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17929 | (exit $ac_status); } && |
| 17930 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17931 | { (case "(($ac_try" in |
| 17932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17933 | *) ac_try_echo=$ac_try;; |
| 17934 | esac |
| 17935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17936 | (eval "$ac_try") 2>&5 |
| 17937 | ac_status=$? |
| 17938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17939 | (exit $ac_status); }; } && |
| 17940 | { ac_try='test -s conftest$ac_exeext' |
| 17941 | { (case "(($ac_try" in |
| 17942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17943 | *) ac_try_echo=$ac_try;; |
| 17944 | esac |
| 17945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17946 | (eval "$ac_try") 2>&5 |
| 17947 | ac_status=$? |
| 17948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17949 | (exit $ac_status); }; }; then |
| 17950 | ac_cv_lib_gcc___alloca=yes |
| 17951 | else |
| 17952 | echo "$as_me: failed program was:" >&5 |
| 17953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17954 | |
| 17955 | ac_cv_lib_gcc___alloca=no |
| 17956 | fi |
| 17957 | |
| 17958 | rm -f core conftest.err conftest.$ac_objext \ |
| 17959 | conftest$ac_exeext conftest.$ac_ext |
| 17960 | LIBS=$ac_check_lib_save_LIBS |
| 17961 | fi |
| 17962 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 |
| 17963 | echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } |
| 17964 | if test $ac_cv_lib_gcc___alloca = yes; then |
| 17965 | |
| 17966 | cat >>confdefs.h <<\_ACEOF |
| 17967 | #define HAVE___ALLOCA 1 |
| 17968 | _ACEOF |
| 17969 | |
| 17970 | fi |
| 17971 | |
| 17972 | { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 |
| 17973 | echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } |
| 17974 | if test "${ac_cv_lib_gcc___chkstk+set}" = set; then |
| 17975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17976 | else |
| 17977 | ac_check_lib_save_LIBS=$LIBS |
| 17978 | LIBS="-lgcc $LIBS" |
| 17979 | cat >conftest.$ac_ext <<_ACEOF |
| 17980 | /* confdefs.h. */ |
| 17981 | _ACEOF |
| 17982 | cat confdefs.h >>conftest.$ac_ext |
| 17983 | cat >>conftest.$ac_ext <<_ACEOF |
| 17984 | /* end confdefs.h. */ |
| 17985 | |
| 17986 | /* Override any GCC internal prototype to avoid an error. |
| 17987 | Use char because int might match the return type of a GCC |
| 17988 | builtin and then its argument prototype would still apply. */ |
| 17989 | #ifdef __cplusplus |
| 17990 | extern "C" |
| 17991 | #endif |
| 17992 | char __chkstk (); |
| 17993 | int |
| 17994 | main () |
| 17995 | { |
| 17996 | return __chkstk (); |
| 17997 | ; |
| 17998 | return 0; |
| 17999 | } |
| 18000 | _ACEOF |
| 18001 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18002 | if { (ac_try="$ac_link" |
| 18003 | case "(($ac_try" in |
| 18004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18005 | *) ac_try_echo=$ac_try;; |
| 18006 | esac |
| 18007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18008 | (eval "$ac_link") 2>conftest.er1 |
| 18009 | ac_status=$? |
| 18010 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18011 | rm -f conftest.er1 |
| 18012 | cat conftest.err >&5 |
| 18013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18014 | (exit $ac_status); } && |
| 18015 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18016 | { (case "(($ac_try" in |
| 18017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18018 | *) ac_try_echo=$ac_try;; |
| 18019 | esac |
| 18020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18021 | (eval "$ac_try") 2>&5 |
| 18022 | ac_status=$? |
| 18023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18024 | (exit $ac_status); }; } && |
| 18025 | { ac_try='test -s conftest$ac_exeext' |
| 18026 | { (case "(($ac_try" in |
| 18027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18028 | *) ac_try_echo=$ac_try;; |
| 18029 | esac |
| 18030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18031 | (eval "$ac_try") 2>&5 |
| 18032 | ac_status=$? |
| 18033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18034 | (exit $ac_status); }; }; then |
| 18035 | ac_cv_lib_gcc___chkstk=yes |
| 18036 | else |
| 18037 | echo "$as_me: failed program was:" >&5 |
| 18038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18039 | |
| 18040 | ac_cv_lib_gcc___chkstk=no |
| 18041 | fi |
| 18042 | |
| 18043 | rm -f core conftest.err conftest.$ac_objext \ |
| 18044 | conftest$ac_exeext conftest.$ac_ext |
| 18045 | LIBS=$ac_check_lib_save_LIBS |
| 18046 | fi |
| 18047 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 |
| 18048 | echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } |
| 18049 | if test $ac_cv_lib_gcc___chkstk = yes; then |
| 18050 | |
| 18051 | cat >>confdefs.h <<\_ACEOF |
| 18052 | #define HAVE___CHKSTK 1 |
| 18053 | _ACEOF |
| 18054 | |
| 18055 | fi |
| 18056 | |
| 18057 | { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 |
| 18058 | echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } |
| 18059 | if test "${ac_cv_lib_gcc____chkstk+set}" = set; then |
| 18060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18061 | else |
| 18062 | ac_check_lib_save_LIBS=$LIBS |
| 18063 | LIBS="-lgcc $LIBS" |
| 18064 | cat >conftest.$ac_ext <<_ACEOF |
| 18065 | /* confdefs.h. */ |
| 18066 | _ACEOF |
| 18067 | cat confdefs.h >>conftest.$ac_ext |
| 18068 | cat >>conftest.$ac_ext <<_ACEOF |
| 18069 | /* end confdefs.h. */ |
| 18070 | |
| 18071 | /* Override any GCC internal prototype to avoid an error. |
| 18072 | Use char because int might match the return type of a GCC |
| 18073 | builtin and then its argument prototype would still apply. */ |
| 18074 | #ifdef __cplusplus |
| 18075 | extern "C" |
| 18076 | #endif |
| 18077 | char ___chkstk (); |
| 18078 | int |
| 18079 | main () |
| 18080 | { |
| 18081 | return ___chkstk (); |
| 18082 | ; |
| 18083 | return 0; |
| 18084 | } |
| 18085 | _ACEOF |
| 18086 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18087 | if { (ac_try="$ac_link" |
| 18088 | case "(($ac_try" in |
| 18089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18090 | *) ac_try_echo=$ac_try;; |
| 18091 | esac |
| 18092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18093 | (eval "$ac_link") 2>conftest.er1 |
| 18094 | ac_status=$? |
| 18095 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18096 | rm -f conftest.er1 |
| 18097 | cat conftest.err >&5 |
| 18098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18099 | (exit $ac_status); } && |
| 18100 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18101 | { (case "(($ac_try" in |
| 18102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18103 | *) ac_try_echo=$ac_try;; |
| 18104 | esac |
| 18105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18106 | (eval "$ac_try") 2>&5 |
| 18107 | ac_status=$? |
| 18108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18109 | (exit $ac_status); }; } && |
| 18110 | { ac_try='test -s conftest$ac_exeext' |
| 18111 | { (case "(($ac_try" in |
| 18112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18113 | *) ac_try_echo=$ac_try;; |
| 18114 | esac |
| 18115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18116 | (eval "$ac_try") 2>&5 |
| 18117 | ac_status=$? |
| 18118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18119 | (exit $ac_status); }; }; then |
| 18120 | ac_cv_lib_gcc____chkstk=yes |
| 18121 | else |
| 18122 | echo "$as_me: failed program was:" >&5 |
| 18123 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18124 | |
| 18125 | ac_cv_lib_gcc____chkstk=no |
| 18126 | fi |
| 18127 | |
| 18128 | rm -f core conftest.err conftest.$ac_objext \ |
| 18129 | conftest$ac_exeext conftest.$ac_ext |
| 18130 | LIBS=$ac_check_lib_save_LIBS |
| 18131 | fi |
| 18132 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 |
| 18133 | echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } |
| 18134 | if test $ac_cv_lib_gcc____chkstk = yes; then |
| 18135 | |
| 18136 | cat >>confdefs.h <<\_ACEOF |
| 18137 | #define HAVE____CHKSTK 1 |
| 18138 | _ACEOF |
| 18139 | |
| 18140 | fi |
| 18141 | |
| 18142 | |
| 18143 | { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 |
| 18144 | echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } |
| 18145 | if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then |
| 18146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18147 | else |
| 18148 | ac_check_lib_save_LIBS=$LIBS |
| 18149 | LIBS="-lgcc $LIBS" |
| 18150 | cat >conftest.$ac_ext <<_ACEOF |
| 18151 | /* confdefs.h. */ |
| 18152 | _ACEOF |
| 18153 | cat confdefs.h >>conftest.$ac_ext |
| 18154 | cat >>conftest.$ac_ext <<_ACEOF |
| 18155 | /* end confdefs.h. */ |
| 18156 | |
| 18157 | /* Override any GCC internal prototype to avoid an error. |
| 18158 | Use char because int might match the return type of a GCC |
| 18159 | builtin and then its argument prototype would still apply. */ |
| 18160 | #ifdef __cplusplus |
| 18161 | extern "C" |
| 18162 | #endif |
| 18163 | char __ashldi3 (); |
| 18164 | int |
| 18165 | main () |
| 18166 | { |
| 18167 | return __ashldi3 (); |
| 18168 | ; |
| 18169 | return 0; |
| 18170 | } |
| 18171 | _ACEOF |
| 18172 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18173 | if { (ac_try="$ac_link" |
| 18174 | case "(($ac_try" in |
| 18175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18176 | *) ac_try_echo=$ac_try;; |
| 18177 | esac |
| 18178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18179 | (eval "$ac_link") 2>conftest.er1 |
| 18180 | ac_status=$? |
| 18181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18182 | rm -f conftest.er1 |
| 18183 | cat conftest.err >&5 |
| 18184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18185 | (exit $ac_status); } && |
| 18186 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18187 | { (case "(($ac_try" in |
| 18188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18189 | *) ac_try_echo=$ac_try;; |
| 18190 | esac |
| 18191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18192 | (eval "$ac_try") 2>&5 |
| 18193 | ac_status=$? |
| 18194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18195 | (exit $ac_status); }; } && |
| 18196 | { ac_try='test -s conftest$ac_exeext' |
| 18197 | { (case "(($ac_try" in |
| 18198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18199 | *) ac_try_echo=$ac_try;; |
| 18200 | esac |
| 18201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18202 | (eval "$ac_try") 2>&5 |
| 18203 | ac_status=$? |
| 18204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18205 | (exit $ac_status); }; }; then |
| 18206 | ac_cv_lib_gcc___ashldi3=yes |
| 18207 | else |
| 18208 | echo "$as_me: failed program was:" >&5 |
| 18209 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18210 | |
| 18211 | ac_cv_lib_gcc___ashldi3=no |
| 18212 | fi |
| 18213 | |
| 18214 | rm -f core conftest.err conftest.$ac_objext \ |
| 18215 | conftest$ac_exeext conftest.$ac_ext |
| 18216 | LIBS=$ac_check_lib_save_LIBS |
| 18217 | fi |
| 18218 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 |
| 18219 | echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } |
| 18220 | if test $ac_cv_lib_gcc___ashldi3 = yes; then |
| 18221 | |
| 18222 | cat >>confdefs.h <<\_ACEOF |
| 18223 | #define HAVE___ASHLDI3 1 |
| 18224 | _ACEOF |
| 18225 | |
| 18226 | fi |
| 18227 | |
| 18228 | { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 |
| 18229 | echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } |
| 18230 | if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then |
| 18231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18232 | else |
| 18233 | ac_check_lib_save_LIBS=$LIBS |
| 18234 | LIBS="-lgcc $LIBS" |
| 18235 | cat >conftest.$ac_ext <<_ACEOF |
| 18236 | /* confdefs.h. */ |
| 18237 | _ACEOF |
| 18238 | cat confdefs.h >>conftest.$ac_ext |
| 18239 | cat >>conftest.$ac_ext <<_ACEOF |
| 18240 | /* end confdefs.h. */ |
| 18241 | |
| 18242 | /* Override any GCC internal prototype to avoid an error. |
| 18243 | Use char because int might match the return type of a GCC |
| 18244 | builtin and then its argument prototype would still apply. */ |
| 18245 | #ifdef __cplusplus |
| 18246 | extern "C" |
| 18247 | #endif |
| 18248 | char __ashrdi3 (); |
| 18249 | int |
| 18250 | main () |
| 18251 | { |
| 18252 | return __ashrdi3 (); |
| 18253 | ; |
| 18254 | return 0; |
| 18255 | } |
| 18256 | _ACEOF |
| 18257 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18258 | if { (ac_try="$ac_link" |
| 18259 | case "(($ac_try" in |
| 18260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18261 | *) ac_try_echo=$ac_try;; |
| 18262 | esac |
| 18263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18264 | (eval "$ac_link") 2>conftest.er1 |
| 18265 | ac_status=$? |
| 18266 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18267 | rm -f conftest.er1 |
| 18268 | cat conftest.err >&5 |
| 18269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18270 | (exit $ac_status); } && |
| 18271 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18272 | { (case "(($ac_try" in |
| 18273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18274 | *) ac_try_echo=$ac_try;; |
| 18275 | esac |
| 18276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18277 | (eval "$ac_try") 2>&5 |
| 18278 | ac_status=$? |
| 18279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18280 | (exit $ac_status); }; } && |
| 18281 | { ac_try='test -s conftest$ac_exeext' |
| 18282 | { (case "(($ac_try" in |
| 18283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18284 | *) ac_try_echo=$ac_try;; |
| 18285 | esac |
| 18286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18287 | (eval "$ac_try") 2>&5 |
| 18288 | ac_status=$? |
| 18289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18290 | (exit $ac_status); }; }; then |
| 18291 | ac_cv_lib_gcc___ashrdi3=yes |
| 18292 | else |
| 18293 | echo "$as_me: failed program was:" >&5 |
| 18294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18295 | |
| 18296 | ac_cv_lib_gcc___ashrdi3=no |
| 18297 | fi |
| 18298 | |
| 18299 | rm -f core conftest.err conftest.$ac_objext \ |
| 18300 | conftest$ac_exeext conftest.$ac_ext |
| 18301 | LIBS=$ac_check_lib_save_LIBS |
| 18302 | fi |
| 18303 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 |
| 18304 | echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } |
| 18305 | if test $ac_cv_lib_gcc___ashrdi3 = yes; then |
| 18306 | |
| 18307 | cat >>confdefs.h <<\_ACEOF |
| 18308 | #define HAVE___ASHRDI3 1 |
| 18309 | _ACEOF |
| 18310 | |
| 18311 | fi |
| 18312 | |
| 18313 | { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 |
| 18314 | echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } |
| 18315 | if test "${ac_cv_lib_gcc___divdi3+set}" = set; then |
| 18316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18317 | else |
| 18318 | ac_check_lib_save_LIBS=$LIBS |
| 18319 | LIBS="-lgcc $LIBS" |
| 18320 | cat >conftest.$ac_ext <<_ACEOF |
| 18321 | /* confdefs.h. */ |
| 18322 | _ACEOF |
| 18323 | cat confdefs.h >>conftest.$ac_ext |
| 18324 | cat >>conftest.$ac_ext <<_ACEOF |
| 18325 | /* end confdefs.h. */ |
| 18326 | |
| 18327 | /* Override any GCC internal prototype to avoid an error. |
| 18328 | Use char because int might match the return type of a GCC |
| 18329 | builtin and then its argument prototype would still apply. */ |
| 18330 | #ifdef __cplusplus |
| 18331 | extern "C" |
| 18332 | #endif |
| 18333 | char __divdi3 (); |
| 18334 | int |
| 18335 | main () |
| 18336 | { |
| 18337 | return __divdi3 (); |
| 18338 | ; |
| 18339 | return 0; |
| 18340 | } |
| 18341 | _ACEOF |
| 18342 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18343 | if { (ac_try="$ac_link" |
| 18344 | case "(($ac_try" in |
| 18345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18346 | *) ac_try_echo=$ac_try;; |
| 18347 | esac |
| 18348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18349 | (eval "$ac_link") 2>conftest.er1 |
| 18350 | ac_status=$? |
| 18351 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18352 | rm -f conftest.er1 |
| 18353 | cat conftest.err >&5 |
| 18354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18355 | (exit $ac_status); } && |
| 18356 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18357 | { (case "(($ac_try" in |
| 18358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18359 | *) ac_try_echo=$ac_try;; |
| 18360 | esac |
| 18361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18362 | (eval "$ac_try") 2>&5 |
| 18363 | ac_status=$? |
| 18364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18365 | (exit $ac_status); }; } && |
| 18366 | { ac_try='test -s conftest$ac_exeext' |
| 18367 | { (case "(($ac_try" in |
| 18368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18369 | *) ac_try_echo=$ac_try;; |
| 18370 | esac |
| 18371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18372 | (eval "$ac_try") 2>&5 |
| 18373 | ac_status=$? |
| 18374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18375 | (exit $ac_status); }; }; then |
| 18376 | ac_cv_lib_gcc___divdi3=yes |
| 18377 | else |
| 18378 | echo "$as_me: failed program was:" >&5 |
| 18379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18380 | |
| 18381 | ac_cv_lib_gcc___divdi3=no |
| 18382 | fi |
| 18383 | |
| 18384 | rm -f core conftest.err conftest.$ac_objext \ |
| 18385 | conftest$ac_exeext conftest.$ac_ext |
| 18386 | LIBS=$ac_check_lib_save_LIBS |
| 18387 | fi |
| 18388 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 |
| 18389 | echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } |
| 18390 | if test $ac_cv_lib_gcc___divdi3 = yes; then |
| 18391 | |
| 18392 | cat >>confdefs.h <<\_ACEOF |
| 18393 | #define HAVE___DIVDI3 1 |
| 18394 | _ACEOF |
| 18395 | |
| 18396 | fi |
| 18397 | |
| 18398 | { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 |
| 18399 | echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } |
| 18400 | if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then |
| 18401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18402 | else |
| 18403 | ac_check_lib_save_LIBS=$LIBS |
| 18404 | LIBS="-lgcc $LIBS" |
| 18405 | cat >conftest.$ac_ext <<_ACEOF |
| 18406 | /* confdefs.h. */ |
| 18407 | _ACEOF |
| 18408 | cat confdefs.h >>conftest.$ac_ext |
| 18409 | cat >>conftest.$ac_ext <<_ACEOF |
| 18410 | /* end confdefs.h. */ |
| 18411 | |
| 18412 | /* Override any GCC internal prototype to avoid an error. |
| 18413 | Use char because int might match the return type of a GCC |
| 18414 | builtin and then its argument prototype would still apply. */ |
| 18415 | #ifdef __cplusplus |
| 18416 | extern "C" |
| 18417 | #endif |
| 18418 | char __fixdfdi (); |
| 18419 | int |
| 18420 | main () |
| 18421 | { |
| 18422 | return __fixdfdi (); |
| 18423 | ; |
| 18424 | return 0; |
| 18425 | } |
| 18426 | _ACEOF |
| 18427 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18428 | if { (ac_try="$ac_link" |
| 18429 | case "(($ac_try" in |
| 18430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18431 | *) ac_try_echo=$ac_try;; |
| 18432 | esac |
| 18433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18434 | (eval "$ac_link") 2>conftest.er1 |
| 18435 | ac_status=$? |
| 18436 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18437 | rm -f conftest.er1 |
| 18438 | cat conftest.err >&5 |
| 18439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18440 | (exit $ac_status); } && |
| 18441 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18442 | { (case "(($ac_try" in |
| 18443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18444 | *) ac_try_echo=$ac_try;; |
| 18445 | esac |
| 18446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18447 | (eval "$ac_try") 2>&5 |
| 18448 | ac_status=$? |
| 18449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18450 | (exit $ac_status); }; } && |
| 18451 | { ac_try='test -s conftest$ac_exeext' |
| 18452 | { (case "(($ac_try" in |
| 18453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18454 | *) ac_try_echo=$ac_try;; |
| 18455 | esac |
| 18456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18457 | (eval "$ac_try") 2>&5 |
| 18458 | ac_status=$? |
| 18459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18460 | (exit $ac_status); }; }; then |
| 18461 | ac_cv_lib_gcc___fixdfdi=yes |
| 18462 | else |
| 18463 | echo "$as_me: failed program was:" >&5 |
| 18464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18465 | |
| 18466 | ac_cv_lib_gcc___fixdfdi=no |
| 18467 | fi |
| 18468 | |
| 18469 | rm -f core conftest.err conftest.$ac_objext \ |
| 18470 | conftest$ac_exeext conftest.$ac_ext |
| 18471 | LIBS=$ac_check_lib_save_LIBS |
| 18472 | fi |
| 18473 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 |
| 18474 | echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } |
| 18475 | if test $ac_cv_lib_gcc___fixdfdi = yes; then |
| 18476 | |
| 18477 | cat >>confdefs.h <<\_ACEOF |
| 18478 | #define HAVE___FIXDFDI 1 |
| 18479 | _ACEOF |
| 18480 | |
| 18481 | fi |
| 18482 | |
| 18483 | { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 |
| 18484 | echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } |
| 18485 | if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then |
| 18486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18487 | else |
| 18488 | ac_check_lib_save_LIBS=$LIBS |
| 18489 | LIBS="-lgcc $LIBS" |
| 18490 | cat >conftest.$ac_ext <<_ACEOF |
| 18491 | /* confdefs.h. */ |
| 18492 | _ACEOF |
| 18493 | cat confdefs.h >>conftest.$ac_ext |
| 18494 | cat >>conftest.$ac_ext <<_ACEOF |
| 18495 | /* end confdefs.h. */ |
| 18496 | |
| 18497 | /* Override any GCC internal prototype to avoid an error. |
| 18498 | Use char because int might match the return type of a GCC |
| 18499 | builtin and then its argument prototype would still apply. */ |
| 18500 | #ifdef __cplusplus |
| 18501 | extern "C" |
| 18502 | #endif |
| 18503 | char __fixsfdi (); |
| 18504 | int |
| 18505 | main () |
| 18506 | { |
| 18507 | return __fixsfdi (); |
| 18508 | ; |
| 18509 | return 0; |
| 18510 | } |
| 18511 | _ACEOF |
| 18512 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18513 | if { (ac_try="$ac_link" |
| 18514 | case "(($ac_try" in |
| 18515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18516 | *) ac_try_echo=$ac_try;; |
| 18517 | esac |
| 18518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18519 | (eval "$ac_link") 2>conftest.er1 |
| 18520 | ac_status=$? |
| 18521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18522 | rm -f conftest.er1 |
| 18523 | cat conftest.err >&5 |
| 18524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18525 | (exit $ac_status); } && |
| 18526 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18527 | { (case "(($ac_try" in |
| 18528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18529 | *) ac_try_echo=$ac_try;; |
| 18530 | esac |
| 18531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18532 | (eval "$ac_try") 2>&5 |
| 18533 | ac_status=$? |
| 18534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18535 | (exit $ac_status); }; } && |
| 18536 | { ac_try='test -s conftest$ac_exeext' |
| 18537 | { (case "(($ac_try" in |
| 18538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18539 | *) ac_try_echo=$ac_try;; |
| 18540 | esac |
| 18541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18542 | (eval "$ac_try") 2>&5 |
| 18543 | ac_status=$? |
| 18544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18545 | (exit $ac_status); }; }; then |
| 18546 | ac_cv_lib_gcc___fixsfdi=yes |
| 18547 | else |
| 18548 | echo "$as_me: failed program was:" >&5 |
| 18549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18550 | |
| 18551 | ac_cv_lib_gcc___fixsfdi=no |
| 18552 | fi |
| 18553 | |
| 18554 | rm -f core conftest.err conftest.$ac_objext \ |
| 18555 | conftest$ac_exeext conftest.$ac_ext |
| 18556 | LIBS=$ac_check_lib_save_LIBS |
| 18557 | fi |
| 18558 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 |
| 18559 | echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } |
| 18560 | if test $ac_cv_lib_gcc___fixsfdi = yes; then |
| 18561 | |
| 18562 | cat >>confdefs.h <<\_ACEOF |
| 18563 | #define HAVE___FIXSFDI 1 |
| 18564 | _ACEOF |
| 18565 | |
| 18566 | fi |
| 18567 | |
| 18568 | { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 |
| 18569 | echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } |
| 18570 | if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then |
| 18571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18572 | else |
| 18573 | ac_check_lib_save_LIBS=$LIBS |
| 18574 | LIBS="-lgcc $LIBS" |
| 18575 | cat >conftest.$ac_ext <<_ACEOF |
| 18576 | /* confdefs.h. */ |
| 18577 | _ACEOF |
| 18578 | cat confdefs.h >>conftest.$ac_ext |
| 18579 | cat >>conftest.$ac_ext <<_ACEOF |
| 18580 | /* end confdefs.h. */ |
| 18581 | |
| 18582 | /* Override any GCC internal prototype to avoid an error. |
| 18583 | Use char because int might match the return type of a GCC |
| 18584 | builtin and then its argument prototype would still apply. */ |
| 18585 | #ifdef __cplusplus |
| 18586 | extern "C" |
| 18587 | #endif |
| 18588 | char __floatdidf (); |
| 18589 | int |
| 18590 | main () |
| 18591 | { |
| 18592 | return __floatdidf (); |
| 18593 | ; |
| 18594 | return 0; |
| 18595 | } |
| 18596 | _ACEOF |
| 18597 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18598 | if { (ac_try="$ac_link" |
| 18599 | case "(($ac_try" in |
| 18600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18601 | *) ac_try_echo=$ac_try;; |
| 18602 | esac |
| 18603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18604 | (eval "$ac_link") 2>conftest.er1 |
| 18605 | ac_status=$? |
| 18606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18607 | rm -f conftest.er1 |
| 18608 | cat conftest.err >&5 |
| 18609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18610 | (exit $ac_status); } && |
| 18611 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18612 | { (case "(($ac_try" in |
| 18613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18614 | *) ac_try_echo=$ac_try;; |
| 18615 | esac |
| 18616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18617 | (eval "$ac_try") 2>&5 |
| 18618 | ac_status=$? |
| 18619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18620 | (exit $ac_status); }; } && |
| 18621 | { ac_try='test -s conftest$ac_exeext' |
| 18622 | { (case "(($ac_try" in |
| 18623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18624 | *) ac_try_echo=$ac_try;; |
| 18625 | esac |
| 18626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18627 | (eval "$ac_try") 2>&5 |
| 18628 | ac_status=$? |
| 18629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18630 | (exit $ac_status); }; }; then |
| 18631 | ac_cv_lib_gcc___floatdidf=yes |
| 18632 | else |
| 18633 | echo "$as_me: failed program was:" >&5 |
| 18634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18635 | |
| 18636 | ac_cv_lib_gcc___floatdidf=no |
| 18637 | fi |
| 18638 | |
| 18639 | rm -f core conftest.err conftest.$ac_objext \ |
| 18640 | conftest$ac_exeext conftest.$ac_ext |
| 18641 | LIBS=$ac_check_lib_save_LIBS |
| 18642 | fi |
| 18643 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 |
| 18644 | echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } |
| 18645 | if test $ac_cv_lib_gcc___floatdidf = yes; then |
| 18646 | |
| 18647 | cat >>confdefs.h <<\_ACEOF |
| 18648 | #define HAVE___FLOATDIDF 1 |
| 18649 | _ACEOF |
| 18650 | |
| 18651 | fi |
| 18652 | |
| 18653 | { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 |
| 18654 | echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } |
| 18655 | if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then |
| 18656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18657 | else |
| 18658 | ac_check_lib_save_LIBS=$LIBS |
| 18659 | LIBS="-lgcc $LIBS" |
| 18660 | cat >conftest.$ac_ext <<_ACEOF |
| 18661 | /* confdefs.h. */ |
| 18662 | _ACEOF |
| 18663 | cat confdefs.h >>conftest.$ac_ext |
| 18664 | cat >>conftest.$ac_ext <<_ACEOF |
| 18665 | /* end confdefs.h. */ |
| 18666 | |
| 18667 | /* Override any GCC internal prototype to avoid an error. |
| 18668 | Use char because int might match the return type of a GCC |
| 18669 | builtin and then its argument prototype would still apply. */ |
| 18670 | #ifdef __cplusplus |
| 18671 | extern "C" |
| 18672 | #endif |
| 18673 | char __lshrdi3 (); |
| 18674 | int |
| 18675 | main () |
| 18676 | { |
| 18677 | return __lshrdi3 (); |
| 18678 | ; |
| 18679 | return 0; |
| 18680 | } |
| 18681 | _ACEOF |
| 18682 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18683 | if { (ac_try="$ac_link" |
| 18684 | case "(($ac_try" in |
| 18685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18686 | *) ac_try_echo=$ac_try;; |
| 18687 | esac |
| 18688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18689 | (eval "$ac_link") 2>conftest.er1 |
| 18690 | ac_status=$? |
| 18691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18692 | rm -f conftest.er1 |
| 18693 | cat conftest.err >&5 |
| 18694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18695 | (exit $ac_status); } && |
| 18696 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18697 | { (case "(($ac_try" in |
| 18698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18699 | *) ac_try_echo=$ac_try;; |
| 18700 | esac |
| 18701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18702 | (eval "$ac_try") 2>&5 |
| 18703 | ac_status=$? |
| 18704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18705 | (exit $ac_status); }; } && |
| 18706 | { ac_try='test -s conftest$ac_exeext' |
| 18707 | { (case "(($ac_try" in |
| 18708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18709 | *) ac_try_echo=$ac_try;; |
| 18710 | esac |
| 18711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18712 | (eval "$ac_try") 2>&5 |
| 18713 | ac_status=$? |
| 18714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18715 | (exit $ac_status); }; }; then |
| 18716 | ac_cv_lib_gcc___lshrdi3=yes |
| 18717 | else |
| 18718 | echo "$as_me: failed program was:" >&5 |
| 18719 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18720 | |
| 18721 | ac_cv_lib_gcc___lshrdi3=no |
| 18722 | fi |
| 18723 | |
| 18724 | rm -f core conftest.err conftest.$ac_objext \ |
| 18725 | conftest$ac_exeext conftest.$ac_ext |
| 18726 | LIBS=$ac_check_lib_save_LIBS |
| 18727 | fi |
| 18728 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 |
| 18729 | echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } |
| 18730 | if test $ac_cv_lib_gcc___lshrdi3 = yes; then |
| 18731 | |
| 18732 | cat >>confdefs.h <<\_ACEOF |
| 18733 | #define HAVE___LSHRDI3 1 |
| 18734 | _ACEOF |
| 18735 | |
| 18736 | fi |
| 18737 | |
| 18738 | { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 |
| 18739 | echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } |
| 18740 | if test "${ac_cv_lib_gcc___moddi3+set}" = set; then |
| 18741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18742 | else |
| 18743 | ac_check_lib_save_LIBS=$LIBS |
| 18744 | LIBS="-lgcc $LIBS" |
| 18745 | cat >conftest.$ac_ext <<_ACEOF |
| 18746 | /* confdefs.h. */ |
| 18747 | _ACEOF |
| 18748 | cat confdefs.h >>conftest.$ac_ext |
| 18749 | cat >>conftest.$ac_ext <<_ACEOF |
| 18750 | /* end confdefs.h. */ |
| 18751 | |
| 18752 | /* Override any GCC internal prototype to avoid an error. |
| 18753 | Use char because int might match the return type of a GCC |
| 18754 | builtin and then its argument prototype would still apply. */ |
| 18755 | #ifdef __cplusplus |
| 18756 | extern "C" |
| 18757 | #endif |
| 18758 | char __moddi3 (); |
| 18759 | int |
| 18760 | main () |
| 18761 | { |
| 18762 | return __moddi3 (); |
| 18763 | ; |
| 18764 | return 0; |
| 18765 | } |
| 18766 | _ACEOF |
| 18767 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18768 | if { (ac_try="$ac_link" |
| 18769 | case "(($ac_try" in |
| 18770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18771 | *) ac_try_echo=$ac_try;; |
| 18772 | esac |
| 18773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18774 | (eval "$ac_link") 2>conftest.er1 |
| 18775 | ac_status=$? |
| 18776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18777 | rm -f conftest.er1 |
| 18778 | cat conftest.err >&5 |
| 18779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18780 | (exit $ac_status); } && |
| 18781 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18782 | { (case "(($ac_try" in |
| 18783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18784 | *) ac_try_echo=$ac_try;; |
| 18785 | esac |
| 18786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18787 | (eval "$ac_try") 2>&5 |
| 18788 | ac_status=$? |
| 18789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18790 | (exit $ac_status); }; } && |
| 18791 | { ac_try='test -s conftest$ac_exeext' |
| 18792 | { (case "(($ac_try" in |
| 18793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18794 | *) ac_try_echo=$ac_try;; |
| 18795 | esac |
| 18796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18797 | (eval "$ac_try") 2>&5 |
| 18798 | ac_status=$? |
| 18799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18800 | (exit $ac_status); }; }; then |
| 18801 | ac_cv_lib_gcc___moddi3=yes |
| 18802 | else |
| 18803 | echo "$as_me: failed program was:" >&5 |
| 18804 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18805 | |
| 18806 | ac_cv_lib_gcc___moddi3=no |
| 18807 | fi |
| 18808 | |
| 18809 | rm -f core conftest.err conftest.$ac_objext \ |
| 18810 | conftest$ac_exeext conftest.$ac_ext |
| 18811 | LIBS=$ac_check_lib_save_LIBS |
| 18812 | fi |
| 18813 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 |
| 18814 | echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } |
| 18815 | if test $ac_cv_lib_gcc___moddi3 = yes; then |
| 18816 | |
| 18817 | cat >>confdefs.h <<\_ACEOF |
| 18818 | #define HAVE___MODDI3 1 |
| 18819 | _ACEOF |
| 18820 | |
| 18821 | fi |
| 18822 | |
| 18823 | { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 |
| 18824 | echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } |
| 18825 | if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then |
| 18826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18827 | else |
| 18828 | ac_check_lib_save_LIBS=$LIBS |
| 18829 | LIBS="-lgcc $LIBS" |
| 18830 | cat >conftest.$ac_ext <<_ACEOF |
| 18831 | /* confdefs.h. */ |
| 18832 | _ACEOF |
| 18833 | cat confdefs.h >>conftest.$ac_ext |
| 18834 | cat >>conftest.$ac_ext <<_ACEOF |
| 18835 | /* end confdefs.h. */ |
| 18836 | |
| 18837 | /* Override any GCC internal prototype to avoid an error. |
| 18838 | Use char because int might match the return type of a GCC |
| 18839 | builtin and then its argument prototype would still apply. */ |
| 18840 | #ifdef __cplusplus |
| 18841 | extern "C" |
| 18842 | #endif |
| 18843 | char __udivdi3 (); |
| 18844 | int |
| 18845 | main () |
| 18846 | { |
| 18847 | return __udivdi3 (); |
| 18848 | ; |
| 18849 | return 0; |
| 18850 | } |
| 18851 | _ACEOF |
| 18852 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18853 | if { (ac_try="$ac_link" |
| 18854 | case "(($ac_try" in |
| 18855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18856 | *) ac_try_echo=$ac_try;; |
| 18857 | esac |
| 18858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18859 | (eval "$ac_link") 2>conftest.er1 |
| 18860 | ac_status=$? |
| 18861 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18862 | rm -f conftest.er1 |
| 18863 | cat conftest.err >&5 |
| 18864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18865 | (exit $ac_status); } && |
| 18866 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18867 | { (case "(($ac_try" in |
| 18868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18869 | *) ac_try_echo=$ac_try;; |
| 18870 | esac |
| 18871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18872 | (eval "$ac_try") 2>&5 |
| 18873 | ac_status=$? |
| 18874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18875 | (exit $ac_status); }; } && |
| 18876 | { ac_try='test -s conftest$ac_exeext' |
| 18877 | { (case "(($ac_try" in |
| 18878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18879 | *) ac_try_echo=$ac_try;; |
| 18880 | esac |
| 18881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18882 | (eval "$ac_try") 2>&5 |
| 18883 | ac_status=$? |
| 18884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18885 | (exit $ac_status); }; }; then |
| 18886 | ac_cv_lib_gcc___udivdi3=yes |
| 18887 | else |
| 18888 | echo "$as_me: failed program was:" >&5 |
| 18889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18890 | |
| 18891 | ac_cv_lib_gcc___udivdi3=no |
| 18892 | fi |
| 18893 | |
| 18894 | rm -f core conftest.err conftest.$ac_objext \ |
| 18895 | conftest$ac_exeext conftest.$ac_ext |
| 18896 | LIBS=$ac_check_lib_save_LIBS |
| 18897 | fi |
| 18898 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 |
| 18899 | echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } |
| 18900 | if test $ac_cv_lib_gcc___udivdi3 = yes; then |
| 18901 | |
| 18902 | cat >>confdefs.h <<\_ACEOF |
| 18903 | #define HAVE___UDIVDI3 1 |
| 18904 | _ACEOF |
| 18905 | |
| 18906 | fi |
| 18907 | |
| 18908 | { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 |
| 18909 | echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } |
| 18910 | if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then |
| 18911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18912 | else |
| 18913 | ac_check_lib_save_LIBS=$LIBS |
| 18914 | LIBS="-lgcc $LIBS" |
| 18915 | cat >conftest.$ac_ext <<_ACEOF |
| 18916 | /* confdefs.h. */ |
| 18917 | _ACEOF |
| 18918 | cat confdefs.h >>conftest.$ac_ext |
| 18919 | cat >>conftest.$ac_ext <<_ACEOF |
| 18920 | /* end confdefs.h. */ |
| 18921 | |
| 18922 | /* Override any GCC internal prototype to avoid an error. |
| 18923 | Use char because int might match the return type of a GCC |
| 18924 | builtin and then its argument prototype would still apply. */ |
| 18925 | #ifdef __cplusplus |
| 18926 | extern "C" |
| 18927 | #endif |
| 18928 | char __umoddi3 (); |
| 18929 | int |
| 18930 | main () |
| 18931 | { |
| 18932 | return __umoddi3 (); |
| 18933 | ; |
| 18934 | return 0; |
| 18935 | } |
| 18936 | _ACEOF |
| 18937 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18938 | if { (ac_try="$ac_link" |
| 18939 | case "(($ac_try" in |
| 18940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18941 | *) ac_try_echo=$ac_try;; |
| 18942 | esac |
| 18943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18944 | (eval "$ac_link") 2>conftest.er1 |
| 18945 | ac_status=$? |
| 18946 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18947 | rm -f conftest.er1 |
| 18948 | cat conftest.err >&5 |
| 18949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18950 | (exit $ac_status); } && |
| 18951 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18952 | { (case "(($ac_try" in |
| 18953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18954 | *) ac_try_echo=$ac_try;; |
| 18955 | esac |
| 18956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18957 | (eval "$ac_try") 2>&5 |
| 18958 | ac_status=$? |
| 18959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18960 | (exit $ac_status); }; } && |
| 18961 | { ac_try='test -s conftest$ac_exeext' |
| 18962 | { (case "(($ac_try" in |
| 18963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18964 | *) ac_try_echo=$ac_try;; |
| 18965 | esac |
| 18966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18967 | (eval "$ac_try") 2>&5 |
| 18968 | ac_status=$? |
| 18969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18970 | (exit $ac_status); }; }; then |
| 18971 | ac_cv_lib_gcc___umoddi3=yes |
| 18972 | else |
| 18973 | echo "$as_me: failed program was:" >&5 |
| 18974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18975 | |
| 18976 | ac_cv_lib_gcc___umoddi3=no |
| 18977 | fi |
| 18978 | |
| 18979 | rm -f core conftest.err conftest.$ac_objext \ |
| 18980 | conftest$ac_exeext conftest.$ac_ext |
| 18981 | LIBS=$ac_check_lib_save_LIBS |
| 18982 | fi |
| 18983 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 |
| 18984 | echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } |
| 18985 | if test $ac_cv_lib_gcc___umoddi3 = yes; then |
| 18986 | |
| 18987 | cat >>confdefs.h <<\_ACEOF |
| 18988 | #define HAVE___UMODDI3 1 |
| 18989 | _ACEOF |
| 18990 | |
| 18991 | fi |
| 18992 | |
| 18993 | |
| 18994 | { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 |
| 18995 | echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } |
| 18996 | if test "${ac_cv_lib_gcc___main+set}" = set; then |
| 18997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18998 | else |
| 18999 | ac_check_lib_save_LIBS=$LIBS |
| 19000 | LIBS="-lgcc $LIBS" |
| 19001 | cat >conftest.$ac_ext <<_ACEOF |
| 19002 | /* confdefs.h. */ |
| 19003 | _ACEOF |
| 19004 | cat confdefs.h >>conftest.$ac_ext |
| 19005 | cat >>conftest.$ac_ext <<_ACEOF |
| 19006 | /* end confdefs.h. */ |
| 19007 | |
| 19008 | /* Override any GCC internal prototype to avoid an error. |
| 19009 | Use char because int might match the return type of a GCC |
| 19010 | builtin and then its argument prototype would still apply. */ |
| 19011 | #ifdef __cplusplus |
| 19012 | extern "C" |
| 19013 | #endif |
| 19014 | char __main (); |
| 19015 | int |
| 19016 | main () |
| 19017 | { |
| 19018 | return __main (); |
| 19019 | ; |
| 19020 | return 0; |
| 19021 | } |
| 19022 | _ACEOF |
| 19023 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19024 | if { (ac_try="$ac_link" |
| 19025 | case "(($ac_try" in |
| 19026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19027 | *) ac_try_echo=$ac_try;; |
| 19028 | esac |
| 19029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19030 | (eval "$ac_link") 2>conftest.er1 |
| 19031 | ac_status=$? |
| 19032 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19033 | rm -f conftest.er1 |
| 19034 | cat conftest.err >&5 |
| 19035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19036 | (exit $ac_status); } && |
| 19037 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19038 | { (case "(($ac_try" in |
| 19039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19040 | *) ac_try_echo=$ac_try;; |
| 19041 | esac |
| 19042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19043 | (eval "$ac_try") 2>&5 |
| 19044 | ac_status=$? |
| 19045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19046 | (exit $ac_status); }; } && |
| 19047 | { ac_try='test -s conftest$ac_exeext' |
| 19048 | { (case "(($ac_try" in |
| 19049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19050 | *) ac_try_echo=$ac_try;; |
| 19051 | esac |
| 19052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19053 | (eval "$ac_try") 2>&5 |
| 19054 | ac_status=$? |
| 19055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19056 | (exit $ac_status); }; }; then |
| 19057 | ac_cv_lib_gcc___main=yes |
| 19058 | else |
| 19059 | echo "$as_me: failed program was:" >&5 |
| 19060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19061 | |
| 19062 | ac_cv_lib_gcc___main=no |
| 19063 | fi |
| 19064 | |
| 19065 | rm -f core conftest.err conftest.$ac_objext \ |
| 19066 | conftest$ac_exeext conftest.$ac_ext |
| 19067 | LIBS=$ac_check_lib_save_LIBS |
| 19068 | fi |
| 19069 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 |
| 19070 | echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } |
| 19071 | if test $ac_cv_lib_gcc___main = yes; then |
| 19072 | |
| 19073 | cat >>confdefs.h <<\_ACEOF |
| 19074 | #define HAVE___MAIN 1 |
| 19075 | _ACEOF |
| 19076 | |
| 19077 | fi |
| 19078 | |
| 19079 | { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 |
| 19080 | echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } |
| 19081 | if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then |
| 19082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19083 | else |
| 19084 | ac_check_lib_save_LIBS=$LIBS |
| 19085 | LIBS="-lgcc $LIBS" |
| 19086 | cat >conftest.$ac_ext <<_ACEOF |
| 19087 | /* confdefs.h. */ |
| 19088 | _ACEOF |
| 19089 | cat confdefs.h >>conftest.$ac_ext |
| 19090 | cat >>conftest.$ac_ext <<_ACEOF |
| 19091 | /* end confdefs.h. */ |
| 19092 | |
| 19093 | /* Override any GCC internal prototype to avoid an error. |
| 19094 | Use char because int might match the return type of a GCC |
| 19095 | builtin and then its argument prototype would still apply. */ |
| 19096 | #ifdef __cplusplus |
| 19097 | extern "C" |
| 19098 | #endif |
| 19099 | char __cmpdi2 (); |
| 19100 | int |
| 19101 | main () |
| 19102 | { |
| 19103 | return __cmpdi2 (); |
| 19104 | ; |
| 19105 | return 0; |
| 19106 | } |
| 19107 | _ACEOF |
| 19108 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19109 | if { (ac_try="$ac_link" |
| 19110 | case "(($ac_try" in |
| 19111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19112 | *) ac_try_echo=$ac_try;; |
| 19113 | esac |
| 19114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19115 | (eval "$ac_link") 2>conftest.er1 |
| 19116 | ac_status=$? |
| 19117 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19118 | rm -f conftest.er1 |
| 19119 | cat conftest.err >&5 |
| 19120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19121 | (exit $ac_status); } && |
| 19122 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19123 | { (case "(($ac_try" in |
| 19124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19125 | *) ac_try_echo=$ac_try;; |
| 19126 | esac |
| 19127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19128 | (eval "$ac_try") 2>&5 |
| 19129 | ac_status=$? |
| 19130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19131 | (exit $ac_status); }; } && |
| 19132 | { ac_try='test -s conftest$ac_exeext' |
| 19133 | { (case "(($ac_try" in |
| 19134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19135 | *) ac_try_echo=$ac_try;; |
| 19136 | esac |
| 19137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19138 | (eval "$ac_try") 2>&5 |
| 19139 | ac_status=$? |
| 19140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19141 | (exit $ac_status); }; }; then |
| 19142 | ac_cv_lib_gcc___cmpdi2=yes |
| 19143 | else |
| 19144 | echo "$as_me: failed program was:" >&5 |
| 19145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19146 | |
| 19147 | ac_cv_lib_gcc___cmpdi2=no |
| 19148 | fi |
| 19149 | |
| 19150 | rm -f core conftest.err conftest.$ac_objext \ |
| 19151 | conftest$ac_exeext conftest.$ac_ext |
| 19152 | LIBS=$ac_check_lib_save_LIBS |
| 19153 | fi |
| 19154 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 |
| 19155 | echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } |
| 19156 | if test $ac_cv_lib_gcc___cmpdi2 = yes; then |
| 19157 | |
| 19158 | cat >>confdefs.h <<\_ACEOF |
| 19159 | #define HAVE___CMPDI2 1 |
| 19160 | _ACEOF |
| 19161 | |
| 19162 | fi |
| 19163 | |
| 19164 | fi |
| 19165 | |
| 19166 | if test "$llvm_cv_os_type" = "MingW" ; then |
| 19167 | { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 |
| 19168 | echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } |
| 19169 | cat >conftest.$ac_ext <<_ACEOF |
| 19170 | #include <windows.h> |
| 19171 | #include <imagehlp.h> |
| 19172 | extern void foo(PENUMLOADED_MODULES_CALLBACK); |
| 19173 | extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); |
| 19174 | _ACEOF |
| 19175 | rm -f conftest.$ac_objext |
| 19176 | if { (ac_try="$ac_compile" |
| 19177 | case "(($ac_try" in |
| 19178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19179 | *) ac_try_echo=$ac_try;; |
| 19180 | esac |
| 19181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19182 | (eval "$ac_compile") 2>conftest.er1 |
| 19183 | ac_status=$? |
| 19184 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19185 | rm -f conftest.er1 |
| 19186 | cat conftest.err >&5 |
| 19187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19188 | (exit $ac_status); } && |
| 19189 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19190 | { (case "(($ac_try" in |
| 19191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19192 | *) ac_try_echo=$ac_try;; |
| 19193 | esac |
| 19194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19195 | (eval "$ac_try") 2>&5 |
| 19196 | ac_status=$? |
| 19197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19198 | (exit $ac_status); }; } && |
| 19199 | { ac_try='test -s conftest.$ac_objext' |
| 19200 | { (case "(($ac_try" in |
| 19201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19202 | *) ac_try_echo=$ac_try;; |
| 19203 | esac |
| 19204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19205 | (eval "$ac_try") 2>&5 |
| 19206 | ac_status=$? |
| 19207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19208 | (exit $ac_status); }; }; then |
| 19209 | |
| 19210 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 19211 | echo "${ECHO_T}yes" >&6; } |
| 19212 | llvm_cv_win32_elmcb_pcstr="PCSTR" |
| 19213 | |
| 19214 | else |
| 19215 | echo "$as_me: failed program was:" >&5 |
| 19216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19217 | |
| 19218 | |
| 19219 | { echo "$as_me:$LINENO: result: no" >&5 |
| 19220 | echo "${ECHO_T}no" >&6; } |
| 19221 | llvm_cv_win32_elmcb_pcstr="PSTR" |
| 19222 | |
| 19223 | fi |
| 19224 | |
| 19225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19226 | |
| 19227 | cat >>confdefs.h <<_ACEOF |
| 19228 | #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr |
| 19229 | _ACEOF |
| 19230 | |
| 19231 | fi |
| 19232 | |
| 19233 | |
| 19234 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 19235 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
| 19236 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 19237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19238 | else |
| 19239 | ac_ext=cpp |
| 19240 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19241 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19242 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19243 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19244 | |
| 19245 | cat >conftest.$ac_ext <<_ACEOF |
| 19246 | /* confdefs.h. */ |
| 19247 | _ACEOF |
| 19248 | cat confdefs.h >>conftest.$ac_ext |
| 19249 | cat >>conftest.$ac_ext <<_ACEOF |
| 19250 | /* end confdefs.h. */ |
| 19251 | #include <math.h> |
| 19252 | int |
| 19253 | main () |
| 19254 | { |
| 19255 | float f; isnan(f); |
| 19256 | ; |
| 19257 | return 0; |
| 19258 | } |
| 19259 | _ACEOF |
| 19260 | rm -f conftest.$ac_objext |
| 19261 | if { (ac_try="$ac_compile" |
| 19262 | case "(($ac_try" in |
| 19263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19264 | *) ac_try_echo=$ac_try;; |
| 19265 | esac |
| 19266 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19267 | (eval "$ac_compile") 2>conftest.er1 |
| 19268 | ac_status=$? |
| 19269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19270 | rm -f conftest.er1 |
| 19271 | cat conftest.err >&5 |
| 19272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19273 | (exit $ac_status); } && |
| 19274 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19275 | { (case "(($ac_try" in |
| 19276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19277 | *) ac_try_echo=$ac_try;; |
| 19278 | esac |
| 19279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19280 | (eval "$ac_try") 2>&5 |
| 19281 | ac_status=$? |
| 19282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19283 | (exit $ac_status); }; } && |
| 19284 | { ac_try='test -s conftest.$ac_objext' |
| 19285 | { (case "(($ac_try" in |
| 19286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19287 | *) ac_try_echo=$ac_try;; |
| 19288 | esac |
| 19289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19290 | (eval "$ac_try") 2>&5 |
| 19291 | ac_status=$? |
| 19292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19293 | (exit $ac_status); }; }; then |
| 19294 | ac_cv_func_isnan_in_math_h=yes |
| 19295 | else |
| 19296 | echo "$as_me: failed program was:" >&5 |
| 19297 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19298 | |
| 19299 | ac_cv_func_isnan_in_math_h=no |
| 19300 | fi |
| 19301 | |
| 19302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19303 | ac_ext=c |
| 19304 | ac_cpp='$CPP $CPPFLAGS' |
| 19305 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19306 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19307 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19308 | |
| 19309 | fi |
| 19310 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 19311 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
| 19312 | |
| 19313 | |
| 19314 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
| 19315 | |
| 19316 | cat >>confdefs.h <<\_ACEOF |
| 19317 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 19318 | _ACEOF |
| 19319 | |
| 19320 | fi |
| 19321 | |
| 19322 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 19323 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
| 19324 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 19325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19326 | else |
| 19327 | ac_ext=cpp |
| 19328 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19329 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19330 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19331 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19332 | |
| 19333 | cat >conftest.$ac_ext <<_ACEOF |
| 19334 | /* confdefs.h. */ |
| 19335 | _ACEOF |
| 19336 | cat confdefs.h >>conftest.$ac_ext |
| 19337 | cat >>conftest.$ac_ext <<_ACEOF |
| 19338 | /* end confdefs.h. */ |
| 19339 | #include <cmath> |
| 19340 | int |
| 19341 | main () |
| 19342 | { |
| 19343 | float f; isnan(f); |
| 19344 | ; |
| 19345 | return 0; |
| 19346 | } |
| 19347 | _ACEOF |
| 19348 | rm -f conftest.$ac_objext |
| 19349 | if { (ac_try="$ac_compile" |
| 19350 | case "(($ac_try" in |
| 19351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19352 | *) ac_try_echo=$ac_try;; |
| 19353 | esac |
| 19354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19355 | (eval "$ac_compile") 2>conftest.er1 |
| 19356 | ac_status=$? |
| 19357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19358 | rm -f conftest.er1 |
| 19359 | cat conftest.err >&5 |
| 19360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19361 | (exit $ac_status); } && |
| 19362 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19363 | { (case "(($ac_try" in |
| 19364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19365 | *) ac_try_echo=$ac_try;; |
| 19366 | esac |
| 19367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19368 | (eval "$ac_try") 2>&5 |
| 19369 | ac_status=$? |
| 19370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19371 | (exit $ac_status); }; } && |
| 19372 | { ac_try='test -s conftest.$ac_objext' |
| 19373 | { (case "(($ac_try" in |
| 19374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19375 | *) ac_try_echo=$ac_try;; |
| 19376 | esac |
| 19377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19378 | (eval "$ac_try") 2>&5 |
| 19379 | ac_status=$? |
| 19380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19381 | (exit $ac_status); }; }; then |
| 19382 | ac_cv_func_isnan_in_cmath=yes |
| 19383 | else |
| 19384 | echo "$as_me: failed program was:" >&5 |
| 19385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19386 | |
| 19387 | ac_cv_func_isnan_in_cmath=no |
| 19388 | fi |
| 19389 | |
| 19390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19391 | ac_ext=c |
| 19392 | ac_cpp='$CPP $CPPFLAGS' |
| 19393 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19394 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19395 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19396 | |
| 19397 | fi |
| 19398 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 19399 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
| 19400 | |
| 19401 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
| 19402 | |
| 19403 | cat >>confdefs.h <<\_ACEOF |
| 19404 | #define HAVE_ISNAN_IN_CMATH 1 |
| 19405 | _ACEOF |
| 19406 | |
| 19407 | fi |
| 19408 | |
| 19409 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 19410 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
| 19411 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 19412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19413 | else |
| 19414 | ac_ext=cpp |
| 19415 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19416 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19417 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19418 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19419 | |
| 19420 | cat >conftest.$ac_ext <<_ACEOF |
| 19421 | /* confdefs.h. */ |
| 19422 | _ACEOF |
| 19423 | cat confdefs.h >>conftest.$ac_ext |
| 19424 | cat >>conftest.$ac_ext <<_ACEOF |
| 19425 | /* end confdefs.h. */ |
| 19426 | #include <cmath> |
| 19427 | int |
| 19428 | main () |
| 19429 | { |
| 19430 | float f; std::isnan(f); |
| 19431 | ; |
| 19432 | return 0; |
| 19433 | } |
| 19434 | _ACEOF |
| 19435 | rm -f conftest.$ac_objext |
| 19436 | if { (ac_try="$ac_compile" |
| 19437 | case "(($ac_try" in |
| 19438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19439 | *) ac_try_echo=$ac_try;; |
| 19440 | esac |
| 19441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19442 | (eval "$ac_compile") 2>conftest.er1 |
| 19443 | ac_status=$? |
| 19444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19445 | rm -f conftest.er1 |
| 19446 | cat conftest.err >&5 |
| 19447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19448 | (exit $ac_status); } && |
| 19449 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19450 | { (case "(($ac_try" in |
| 19451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19452 | *) ac_try_echo=$ac_try;; |
| 19453 | esac |
| 19454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19455 | (eval "$ac_try") 2>&5 |
| 19456 | ac_status=$? |
| 19457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19458 | (exit $ac_status); }; } && |
| 19459 | { ac_try='test -s conftest.$ac_objext' |
| 19460 | { (case "(($ac_try" in |
| 19461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19462 | *) ac_try_echo=$ac_try;; |
| 19463 | esac |
| 19464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19465 | (eval "$ac_try") 2>&5 |
| 19466 | ac_status=$? |
| 19467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19468 | (exit $ac_status); }; }; then |
| 19469 | ac_cv_func_std_isnan_in_cmath=yes |
| 19470 | else |
| 19471 | echo "$as_me: failed program was:" >&5 |
| 19472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19473 | |
| 19474 | ac_cv_func_std_isnan_in_cmath=no |
| 19475 | fi |
| 19476 | |
| 19477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19478 | ac_ext=c |
| 19479 | ac_cpp='$CPP $CPPFLAGS' |
| 19480 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19481 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19482 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19483 | |
| 19484 | fi |
| 19485 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 19486 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
| 19487 | |
| 19488 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
| 19489 | |
| 19490 | cat >>confdefs.h <<\_ACEOF |
| 19491 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 19492 | _ACEOF |
| 19493 | |
| 19494 | fi |
| 19495 | |
| 19496 | |
| 19497 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 19498 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
| 19499 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 19500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19501 | else |
| 19502 | ac_ext=cpp |
| 19503 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19504 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19505 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19506 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19507 | |
| 19508 | cat >conftest.$ac_ext <<_ACEOF |
| 19509 | /* confdefs.h. */ |
| 19510 | _ACEOF |
| 19511 | cat confdefs.h >>conftest.$ac_ext |
| 19512 | cat >>conftest.$ac_ext <<_ACEOF |
| 19513 | /* end confdefs.h. */ |
| 19514 | #include <math.h> |
| 19515 | int |
| 19516 | main () |
| 19517 | { |
| 19518 | float f; isinf(f); |
| 19519 | ; |
| 19520 | return 0; |
| 19521 | } |
| 19522 | _ACEOF |
| 19523 | rm -f conftest.$ac_objext |
| 19524 | if { (ac_try="$ac_compile" |
| 19525 | case "(($ac_try" in |
| 19526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19527 | *) ac_try_echo=$ac_try;; |
| 19528 | esac |
| 19529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19530 | (eval "$ac_compile") 2>conftest.er1 |
| 19531 | ac_status=$? |
| 19532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19533 | rm -f conftest.er1 |
| 19534 | cat conftest.err >&5 |
| 19535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19536 | (exit $ac_status); } && |
| 19537 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19538 | { (case "(($ac_try" in |
| 19539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19540 | *) ac_try_echo=$ac_try;; |
| 19541 | esac |
| 19542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19543 | (eval "$ac_try") 2>&5 |
| 19544 | ac_status=$? |
| 19545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19546 | (exit $ac_status); }; } && |
| 19547 | { ac_try='test -s conftest.$ac_objext' |
| 19548 | { (case "(($ac_try" in |
| 19549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19550 | *) ac_try_echo=$ac_try;; |
| 19551 | esac |
| 19552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19553 | (eval "$ac_try") 2>&5 |
| 19554 | ac_status=$? |
| 19555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19556 | (exit $ac_status); }; }; then |
| 19557 | ac_cv_func_isinf_in_math_h=yes |
| 19558 | else |
| 19559 | echo "$as_me: failed program was:" >&5 |
| 19560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19561 | |
| 19562 | ac_cv_func_isinf_in_math_h=no |
| 19563 | fi |
| 19564 | |
| 19565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19566 | ac_ext=c |
| 19567 | ac_cpp='$CPP $CPPFLAGS' |
| 19568 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19569 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19570 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19571 | |
| 19572 | fi |
| 19573 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 19574 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
| 19575 | |
| 19576 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
| 19577 | |
| 19578 | cat >>confdefs.h <<\_ACEOF |
| 19579 | #define HAVE_ISINF_IN_MATH_H 1 |
| 19580 | _ACEOF |
| 19581 | |
| 19582 | fi |
| 19583 | |
| 19584 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 19585 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
| 19586 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 19587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19588 | else |
| 19589 | ac_ext=cpp |
| 19590 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19591 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19592 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19593 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19594 | |
| 19595 | cat >conftest.$ac_ext <<_ACEOF |
| 19596 | /* confdefs.h. */ |
| 19597 | _ACEOF |
| 19598 | cat confdefs.h >>conftest.$ac_ext |
| 19599 | cat >>conftest.$ac_ext <<_ACEOF |
| 19600 | /* end confdefs.h. */ |
| 19601 | #include <cmath> |
| 19602 | int |
| 19603 | main () |
| 19604 | { |
| 19605 | float f; isinf(f); |
| 19606 | ; |
| 19607 | return 0; |
| 19608 | } |
| 19609 | _ACEOF |
| 19610 | rm -f conftest.$ac_objext |
| 19611 | if { (ac_try="$ac_compile" |
| 19612 | case "(($ac_try" in |
| 19613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19614 | *) ac_try_echo=$ac_try;; |
| 19615 | esac |
| 19616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19617 | (eval "$ac_compile") 2>conftest.er1 |
| 19618 | ac_status=$? |
| 19619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19620 | rm -f conftest.er1 |
| 19621 | cat conftest.err >&5 |
| 19622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19623 | (exit $ac_status); } && |
| 19624 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19625 | { (case "(($ac_try" in |
| 19626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19627 | *) ac_try_echo=$ac_try;; |
| 19628 | esac |
| 19629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19630 | (eval "$ac_try") 2>&5 |
| 19631 | ac_status=$? |
| 19632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19633 | (exit $ac_status); }; } && |
| 19634 | { ac_try='test -s conftest.$ac_objext' |
| 19635 | { (case "(($ac_try" in |
| 19636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19637 | *) ac_try_echo=$ac_try;; |
| 19638 | esac |
| 19639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19640 | (eval "$ac_try") 2>&5 |
| 19641 | ac_status=$? |
| 19642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19643 | (exit $ac_status); }; }; then |
| 19644 | ac_cv_func_isinf_in_cmath=yes |
| 19645 | else |
| 19646 | echo "$as_me: failed program was:" >&5 |
| 19647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19648 | |
| 19649 | ac_cv_func_isinf_in_cmath=no |
| 19650 | fi |
| 19651 | |
| 19652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19653 | ac_ext=c |
| 19654 | ac_cpp='$CPP $CPPFLAGS' |
| 19655 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19656 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19657 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19658 | |
| 19659 | fi |
| 19660 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 19661 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
| 19662 | |
| 19663 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
| 19664 | |
| 19665 | cat >>confdefs.h <<\_ACEOF |
| 19666 | #define HAVE_ISINF_IN_CMATH 1 |
| 19667 | _ACEOF |
| 19668 | |
| 19669 | fi |
| 19670 | |
| 19671 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 19672 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
| 19673 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 19674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19675 | else |
| 19676 | ac_ext=cpp |
| 19677 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19678 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19679 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19680 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19681 | |
| 19682 | cat >conftest.$ac_ext <<_ACEOF |
| 19683 | /* confdefs.h. */ |
| 19684 | _ACEOF |
| 19685 | cat confdefs.h >>conftest.$ac_ext |
| 19686 | cat >>conftest.$ac_ext <<_ACEOF |
| 19687 | /* end confdefs.h. */ |
| 19688 | #include <cmath> |
| 19689 | int |
| 19690 | main () |
| 19691 | { |
| 19692 | float f; std::isinf(f)} |
| 19693 | ; |
| 19694 | return 0; |
| 19695 | } |
| 19696 | _ACEOF |
| 19697 | rm -f conftest.$ac_objext |
| 19698 | if { (ac_try="$ac_compile" |
| 19699 | case "(($ac_try" in |
| 19700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19701 | *) ac_try_echo=$ac_try;; |
| 19702 | esac |
| 19703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19704 | (eval "$ac_compile") 2>conftest.er1 |
| 19705 | ac_status=$? |
| 19706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19707 | rm -f conftest.er1 |
| 19708 | cat conftest.err >&5 |
| 19709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19710 | (exit $ac_status); } && |
| 19711 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19712 | { (case "(($ac_try" in |
| 19713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19714 | *) ac_try_echo=$ac_try;; |
| 19715 | esac |
| 19716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19717 | (eval "$ac_try") 2>&5 |
| 19718 | ac_status=$? |
| 19719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19720 | (exit $ac_status); }; } && |
| 19721 | { ac_try='test -s conftest.$ac_objext' |
| 19722 | { (case "(($ac_try" in |
| 19723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19724 | *) ac_try_echo=$ac_try;; |
| 19725 | esac |
| 19726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19727 | (eval "$ac_try") 2>&5 |
| 19728 | ac_status=$? |
| 19729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19730 | (exit $ac_status); }; }; then |
| 19731 | ac_cv_func_std_isinf_in_cmath=yes |
| 19732 | else |
| 19733 | echo "$as_me: failed program was:" >&5 |
| 19734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19735 | |
| 19736 | ac_cv_func_std_isinf_in_cmath=no |
| 19737 | fi |
| 19738 | |
| 19739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19740 | ac_ext=c |
| 19741 | ac_cpp='$CPP $CPPFLAGS' |
| 19742 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19743 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19744 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19745 | |
| 19746 | fi |
| 19747 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 19748 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
| 19749 | |
| 19750 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
| 19751 | |
| 19752 | cat >>confdefs.h <<\_ACEOF |
| 19753 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 19754 | _ACEOF |
| 19755 | |
| 19756 | fi |
| 19757 | |
| 19758 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 19759 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
| 19760 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 19761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19762 | else |
| 19763 | ac_ext=cpp |
| 19764 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 19765 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19766 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19767 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 19768 | |
| 19769 | cat >conftest.$ac_ext <<_ACEOF |
| 19770 | /* confdefs.h. */ |
| 19771 | _ACEOF |
| 19772 | cat confdefs.h >>conftest.$ac_ext |
| 19773 | cat >>conftest.$ac_ext <<_ACEOF |
| 19774 | /* end confdefs.h. */ |
| 19775 | #include <ieeefp.h> |
| 19776 | int |
| 19777 | main () |
| 19778 | { |
| 19779 | float f; finite(f); |
| 19780 | ; |
| 19781 | return 0; |
| 19782 | } |
| 19783 | _ACEOF |
| 19784 | rm -f conftest.$ac_objext |
| 19785 | if { (ac_try="$ac_compile" |
| 19786 | case "(($ac_try" in |
| 19787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19788 | *) ac_try_echo=$ac_try;; |
| 19789 | esac |
| 19790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19791 | (eval "$ac_compile") 2>conftest.er1 |
| 19792 | ac_status=$? |
| 19793 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19794 | rm -f conftest.er1 |
| 19795 | cat conftest.err >&5 |
| 19796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19797 | (exit $ac_status); } && |
| 19798 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 19799 | { (case "(($ac_try" in |
| 19800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19801 | *) ac_try_echo=$ac_try;; |
| 19802 | esac |
| 19803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19804 | (eval "$ac_try") 2>&5 |
| 19805 | ac_status=$? |
| 19806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19807 | (exit $ac_status); }; } && |
| 19808 | { ac_try='test -s conftest.$ac_objext' |
| 19809 | { (case "(($ac_try" in |
| 19810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19811 | *) ac_try_echo=$ac_try;; |
| 19812 | esac |
| 19813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19814 | (eval "$ac_try") 2>&5 |
| 19815 | ac_status=$? |
| 19816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19817 | (exit $ac_status); }; }; then |
| 19818 | ac_cv_func_finite_in_ieeefp_h=yes |
| 19819 | else |
| 19820 | echo "$as_me: failed program was:" >&5 |
| 19821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19822 | |
| 19823 | ac_cv_func_finite_in_ieeefp_h=no |
| 19824 | fi |
| 19825 | |
| 19826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19827 | ac_ext=c |
| 19828 | ac_cpp='$CPP $CPPFLAGS' |
| 19829 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19830 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19831 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19832 | |
| 19833 | fi |
| 19834 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 19835 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
| 19836 | |
| 19837 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
| 19838 | |
| 19839 | cat >>confdefs.h <<\_ACEOF |
| 19840 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
| 19841 | _ACEOF |
| 19842 | |
| 19843 | fi |
| 19844 | |
| 19845 | |
| 19846 | |
| 19847 | if test "$llvm_cv_platform_type" = "Unix" ; then |
| 19848 | |
| 19849 | |
| 19850 | for ac_header in stdlib.h unistd.h |
| 19851 | do |
| 19852 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19853 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19854 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19855 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19856 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19858 | fi |
| 19859 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 19860 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19861 | echo "${ECHO_T}$ac_res" >&6; } |
| 19862 | else |
| 19863 | # Is the header compilable? |
| 19864 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 19865 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 19866 | cat >conftest.$ac_ext <<_ACEOF |
| 19867 | /* confdefs.h. */ |
| 19868 | _ACEOF |
| 19869 | cat confdefs.h >>conftest.$ac_ext |
| 19870 | cat >>conftest.$ac_ext <<_ACEOF |
| 19871 | /* end confdefs.h. */ |
| 19872 | $ac_includes_default |
| 19873 | #include <$ac_header> |
| 19874 | _ACEOF |
| 19875 | rm -f conftest.$ac_objext |
| 19876 | if { (ac_try="$ac_compile" |
| 19877 | case "(($ac_try" in |
| 19878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19879 | *) ac_try_echo=$ac_try;; |
| 19880 | esac |
| 19881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19882 | (eval "$ac_compile") 2>conftest.er1 |
| 19883 | ac_status=$? |
| 19884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19885 | rm -f conftest.er1 |
| 19886 | cat conftest.err >&5 |
| 19887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19888 | (exit $ac_status); } && |
| 19889 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19890 | { (case "(($ac_try" in |
| 19891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19892 | *) ac_try_echo=$ac_try;; |
| 19893 | esac |
| 19894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19895 | (eval "$ac_try") 2>&5 |
| 19896 | ac_status=$? |
| 19897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19898 | (exit $ac_status); }; } && |
| 19899 | { ac_try='test -s conftest.$ac_objext' |
| 19900 | { (case "(($ac_try" in |
| 19901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19902 | *) ac_try_echo=$ac_try;; |
| 19903 | esac |
| 19904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19905 | (eval "$ac_try") 2>&5 |
| 19906 | ac_status=$? |
| 19907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19908 | (exit $ac_status); }; }; then |
| 19909 | ac_header_compiler=yes |
| 19910 | else |
| 19911 | echo "$as_me: failed program was:" >&5 |
| 19912 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19913 | |
| 19914 | ac_header_compiler=no |
| 19915 | fi |
| 19916 | |
| 19917 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19918 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19919 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 19920 | |
| 19921 | # Is the header present? |
| 19922 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 19923 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 19924 | cat >conftest.$ac_ext <<_ACEOF |
| 19925 | /* confdefs.h. */ |
| 19926 | _ACEOF |
| 19927 | cat confdefs.h >>conftest.$ac_ext |
| 19928 | cat >>conftest.$ac_ext <<_ACEOF |
| 19929 | /* end confdefs.h. */ |
| 19930 | #include <$ac_header> |
| 19931 | _ACEOF |
| 19932 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 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_cpp conftest.$ac_ext") 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); } >/dev/null; then |
| 19945 | if test -s conftest.err; then |
| 19946 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 19947 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 19948 | else |
| 19949 | ac_cpp_err= |
| 19950 | fi |
| 19951 | else |
| 19952 | ac_cpp_err=yes |
| 19953 | fi |
| 19954 | if test -z "$ac_cpp_err"; then |
| 19955 | ac_header_preproc=yes |
| 19956 | else |
| 19957 | echo "$as_me: failed program was:" >&5 |
| 19958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19959 | |
| 19960 | ac_header_preproc=no |
| 19961 | fi |
| 19962 | |
| 19963 | rm -f conftest.err conftest.$ac_ext |
| 19964 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19965 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 19966 | |
| 19967 | # So? What about this header? |
| 19968 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 19969 | yes:no: ) |
| 19970 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19971 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 19972 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 19973 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 19974 | ac_header_preproc=yes |
| 19975 | ;; |
| 19976 | no:yes:* ) |
| 19977 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 19978 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 19979 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 19980 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 19981 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 19982 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 19983 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 19984 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 19985 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 19986 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 19987 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 19988 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 19989 | ( cat <<\_ASBOX |
| 19990 | ## ------------------------------ ## |
| 19991 | ## Report this to bugs@yourdomain ## |
| 19992 | ## ------------------------------ ## |
| 19993 | _ASBOX |
| 19994 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 19995 | ;; |
| 19996 | esac |
| 19997 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19998 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 19999 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20001 | else |
| 20002 | eval "$as_ac_Header=\$ac_header_preproc" |
| 20003 | fi |
| 20004 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 20005 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20006 | echo "${ECHO_T}$ac_res" >&6; } |
| 20007 | |
| 20008 | fi |
| 20009 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 20010 | cat >>confdefs.h <<_ACEOF |
| 20011 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 20012 | _ACEOF |
| 20013 | |
| 20014 | fi |
| 20015 | |
| 20016 | done |
| 20017 | |
| 20018 | |
| 20019 | for ac_func in getpagesize |
| 20020 | do |
| 20021 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20022 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20023 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20024 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20026 | else |
| 20027 | cat >conftest.$ac_ext <<_ACEOF |
| 20028 | /* confdefs.h. */ |
| 20029 | _ACEOF |
| 20030 | cat confdefs.h >>conftest.$ac_ext |
| 20031 | cat >>conftest.$ac_ext <<_ACEOF |
| 20032 | /* end confdefs.h. */ |
| 20033 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20034 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20035 | #define $ac_func innocuous_$ac_func |
| 20036 | |
| 20037 | /* System header to define __stub macros and hopefully few prototypes, |
| 20038 | which can conflict with char $ac_func (); below. |
| 20039 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20040 | <limits.h> exists even on freestanding compilers. */ |
| 20041 | |
| 20042 | #ifdef __STDC__ |
| 20043 | # include <limits.h> |
| 20044 | #else |
| 20045 | # include <assert.h> |
| 20046 | #endif |
| 20047 | |
| 20048 | #undef $ac_func |
| 20049 | |
| 20050 | /* Override any GCC internal prototype to avoid an error. |
| 20051 | Use char because int might match the return type of a GCC |
| 20052 | builtin and then its argument prototype would still apply. */ |
| 20053 | #ifdef __cplusplus |
| 20054 | extern "C" |
| 20055 | #endif |
| 20056 | char $ac_func (); |
| 20057 | /* The GNU C library defines this for functions which it implements |
| 20058 | to always fail with ENOSYS. Some functions are actually named |
| 20059 | something starting with __ and the normal name is an alias. */ |
| 20060 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20061 | choke me |
| 20062 | #endif |
| 20063 | |
| 20064 | int |
| 20065 | main () |
| 20066 | { |
| 20067 | return $ac_func (); |
| 20068 | ; |
| 20069 | return 0; |
| 20070 | } |
| 20071 | _ACEOF |
| 20072 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20073 | if { (ac_try="$ac_link" |
| 20074 | case "(($ac_try" in |
| 20075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20076 | *) ac_try_echo=$ac_try;; |
| 20077 | esac |
| 20078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20079 | (eval "$ac_link") 2>conftest.er1 |
| 20080 | ac_status=$? |
| 20081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20082 | rm -f conftest.er1 |
| 20083 | cat conftest.err >&5 |
| 20084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20085 | (exit $ac_status); } && |
| 20086 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20087 | { (case "(($ac_try" in |
| 20088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20089 | *) ac_try_echo=$ac_try;; |
| 20090 | esac |
| 20091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20092 | (eval "$ac_try") 2>&5 |
| 20093 | ac_status=$? |
| 20094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20095 | (exit $ac_status); }; } && |
| 20096 | { ac_try='test -s conftest$ac_exeext' |
| 20097 | { (case "(($ac_try" in |
| 20098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20099 | *) ac_try_echo=$ac_try;; |
| 20100 | esac |
| 20101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20102 | (eval "$ac_try") 2>&5 |
| 20103 | ac_status=$? |
| 20104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20105 | (exit $ac_status); }; }; then |
| 20106 | eval "$as_ac_var=yes" |
| 20107 | else |
| 20108 | echo "$as_me: failed program was:" >&5 |
| 20109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20110 | |
| 20111 | eval "$as_ac_var=no" |
| 20112 | fi |
| 20113 | |
| 20114 | rm -f core conftest.err conftest.$ac_objext \ |
| 20115 | conftest$ac_exeext conftest.$ac_ext |
| 20116 | fi |
| 20117 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20118 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20119 | echo "${ECHO_T}$ac_res" >&6; } |
| 20120 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 20121 | cat >>confdefs.h <<_ACEOF |
| 20122 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 20123 | _ACEOF |
| 20124 | |
| 20125 | fi |
| 20126 | done |
| 20127 | |
| 20128 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 20129 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
| 20130 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 20131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20132 | else |
| 20133 | if test "$cross_compiling" = yes; then |
| 20134 | ac_cv_func_mmap_fixed_mapped=no |
| 20135 | else |
| 20136 | cat >conftest.$ac_ext <<_ACEOF |
| 20137 | /* confdefs.h. */ |
| 20138 | _ACEOF |
| 20139 | cat confdefs.h >>conftest.$ac_ext |
| 20140 | cat >>conftest.$ac_ext <<_ACEOF |
| 20141 | /* end confdefs.h. */ |
| 20142 | $ac_includes_default |
| 20143 | /* malloc might have been renamed as rpl_malloc. */ |
| 20144 | #undef malloc |
| 20145 | |
| 20146 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 20147 | Here is a matrix of mmap possibilities: |
| 20148 | mmap private not fixed |
| 20149 | mmap private fixed at somewhere currently unmapped |
| 20150 | mmap private fixed at somewhere already mapped |
| 20151 | mmap shared not fixed |
| 20152 | mmap shared fixed at somewhere currently unmapped |
| 20153 | mmap shared fixed at somewhere already mapped |
| 20154 | For private mappings, we should verify that changes cannot be read() |
| 20155 | back from the file, nor mmap's back from the file at a different |
| 20156 | address. (There have been systems where private was not correctly |
| 20157 | implemented like the infamous i386 svr4.0, and systems where the |
| 20158 | VM page cache was not coherent with the file system buffer cache |
| 20159 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 20160 | For shared mappings, we should conversely verify that changes get |
| 20161 | propagated back to all the places they're supposed to be. |
| 20162 | |
| 20163 | Grep wants private fixed already mapped. |
| 20164 | The main things grep needs to know about mmap are: |
| 20165 | * does it exist and is it safe to write into the mmap'd area |
| 20166 | * how to use it (BSD variants) */ |
| 20167 | |
| 20168 | #include <fcntl.h> |
| 20169 | #include <sys/mman.h> |
| 20170 | |
| 20171 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 20172 | char *malloc (); |
| 20173 | #endif |
| 20174 | |
| 20175 | /* This mess was copied from the GNU getpagesize.h. */ |
| 20176 | #if !HAVE_GETPAGESIZE |
| 20177 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 20178 | # if !HAVE_SYS_PARAM_H |
| 20179 | # define HAVE_SYS_PARAM_H 1 |
| 20180 | # endif |
| 20181 | |
| 20182 | # ifdef _SC_PAGESIZE |
| 20183 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 20184 | # else /* no _SC_PAGESIZE */ |
| 20185 | # if HAVE_SYS_PARAM_H |
| 20186 | # include <sys/param.h> |
| 20187 | # ifdef EXEC_PAGESIZE |
| 20188 | # define getpagesize() EXEC_PAGESIZE |
| 20189 | # else /* no EXEC_PAGESIZE */ |
| 20190 | # ifdef NBPG |
| 20191 | # define getpagesize() NBPG * CLSIZE |
| 20192 | # ifndef CLSIZE |
| 20193 | # define CLSIZE 1 |
| 20194 | # endif /* no CLSIZE */ |
| 20195 | # else /* no NBPG */ |
| 20196 | # ifdef NBPC |
| 20197 | # define getpagesize() NBPC |
| 20198 | # else /* no NBPC */ |
| 20199 | # ifdef PAGESIZE |
| 20200 | # define getpagesize() PAGESIZE |
| 20201 | # endif /* PAGESIZE */ |
| 20202 | # endif /* no NBPC */ |
| 20203 | # endif /* no NBPG */ |
| 20204 | # endif /* no EXEC_PAGESIZE */ |
| 20205 | # else /* no HAVE_SYS_PARAM_H */ |
| 20206 | # define getpagesize() 8192 /* punt totally */ |
| 20207 | # endif /* no HAVE_SYS_PARAM_H */ |
| 20208 | # endif /* no _SC_PAGESIZE */ |
| 20209 | |
| 20210 | #endif /* no HAVE_GETPAGESIZE */ |
| 20211 | |
| 20212 | int |
| 20213 | main () |
| 20214 | { |
| 20215 | char *data, *data2, *data3; |
| 20216 | int i, pagesize; |
| 20217 | int fd; |
| 20218 | |
| 20219 | pagesize = getpagesize (); |
| 20220 | |
| 20221 | /* First, make a file with some known garbage in it. */ |
| 20222 | data = (char *) malloc (pagesize); |
| 20223 | if (!data) |
| 20224 | return 1; |
| 20225 | for (i = 0; i < pagesize; ++i) |
| 20226 | *(data + i) = rand (); |
| 20227 | umask (0); |
| 20228 | fd = creat ("conftest.mmap", 0600); |
| 20229 | if (fd < 0) |
| 20230 | return 1; |
| 20231 | if (write (fd, data, pagesize) != pagesize) |
| 20232 | return 1; |
| 20233 | close (fd); |
| 20234 | |
| 20235 | /* Next, try to mmap the file at a fixed address which already has |
| 20236 | something else allocated at it. If we can, also make sure that |
| 20237 | we see the same garbage. */ |
| 20238 | fd = open ("conftest.mmap", O_RDWR); |
| 20239 | if (fd < 0) |
| 20240 | return 1; |
| 20241 | data2 = (char *) malloc (2 * pagesize); |
| 20242 | if (!data2) |
| 20243 | return 1; |
| 20244 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
| 20245 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 20246 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 20247 | return 1; |
| 20248 | for (i = 0; i < pagesize; ++i) |
| 20249 | if (*(data + i) != *(data2 + i)) |
| 20250 | return 1; |
| 20251 | |
| 20252 | /* Finally, make sure that changes to the mapped area do not |
| 20253 | percolate back to the file as seen by read(). (This is a bug on |
| 20254 | some variants of i386 svr4.0.) */ |
| 20255 | for (i = 0; i < pagesize; ++i) |
| 20256 | *(data2 + i) = *(data2 + i) + 1; |
| 20257 | data3 = (char *) malloc (pagesize); |
| 20258 | if (!data3) |
| 20259 | return 1; |
| 20260 | if (read (fd, data3, pagesize) != pagesize) |
| 20261 | return 1; |
| 20262 | for (i = 0; i < pagesize; ++i) |
| 20263 | if (*(data + i) != *(data3 + i)) |
| 20264 | return 1; |
| 20265 | close (fd); |
| 20266 | return 0; |
| 20267 | } |
| 20268 | _ACEOF |
| 20269 | rm -f conftest$ac_exeext |
| 20270 | if { (ac_try="$ac_link" |
| 20271 | case "(($ac_try" in |
| 20272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20273 | *) ac_try_echo=$ac_try;; |
| 20274 | esac |
| 20275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20276 | (eval "$ac_link") 2>&5 |
| 20277 | ac_status=$? |
| 20278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20279 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20280 | { (case "(($ac_try" in |
| 20281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20282 | *) ac_try_echo=$ac_try;; |
| 20283 | esac |
| 20284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20285 | (eval "$ac_try") 2>&5 |
| 20286 | ac_status=$? |
| 20287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20288 | (exit $ac_status); }; }; then |
| 20289 | ac_cv_func_mmap_fixed_mapped=yes |
| 20290 | else |
| 20291 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20292 | echo "$as_me: failed program was:" >&5 |
| 20293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20294 | |
| 20295 | ( exit $ac_status ) |
| 20296 | ac_cv_func_mmap_fixed_mapped=no |
| 20297 | fi |
| 20298 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 20299 | fi |
| 20300 | |
| 20301 | |
| 20302 | fi |
| 20303 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 20304 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
| 20305 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 20306 | |
| 20307 | cat >>confdefs.h <<\_ACEOF |
| 20308 | #define HAVE_MMAP 1 |
| 20309 | _ACEOF |
| 20310 | |
| 20311 | fi |
| 20312 | rm -f conftest.mmap |
| 20313 | |
| 20314 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 20315 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
| 20316 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 20317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20318 | else |
| 20319 | ac_ext=c |
| 20320 | ac_cpp='$CPP $CPPFLAGS' |
| 20321 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20322 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20323 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20324 | |
| 20325 | if test "$cross_compiling" = yes; then |
| 20326 | ac_cv_func_mmap_file=no |
| 20327 | else |
| 20328 | cat >conftest.$ac_ext <<_ACEOF |
| 20329 | |
| 20330 | /* confdefs.h. */ |
| 20331 | _ACEOF |
| 20332 | cat confdefs.h >>conftest.$ac_ext |
| 20333 | cat >>conftest.$ac_ext <<_ACEOF |
| 20334 | /* end confdefs.h. */ |
| 20335 | |
| 20336 | #include <sys/types.h> |
| 20337 | #include <sys/mman.h> |
| 20338 | #include <fcntl.h> |
| 20339 | |
| 20340 | int |
| 20341 | main () |
| 20342 | { |
| 20343 | |
| 20344 | int fd; |
| 20345 | fd = creat ("foo",0777); |
| 20346 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 20347 | unlink ("foo"); |
| 20348 | return (fd != (int) MAP_FAILED); |
| 20349 | ; |
| 20350 | return 0; |
| 20351 | } |
| 20352 | _ACEOF |
| 20353 | rm -f conftest$ac_exeext |
| 20354 | if { (ac_try="$ac_link" |
| 20355 | case "(($ac_try" in |
| 20356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20357 | *) ac_try_echo=$ac_try;; |
| 20358 | esac |
| 20359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20360 | (eval "$ac_link") 2>&5 |
| 20361 | ac_status=$? |
| 20362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20363 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20364 | { (case "(($ac_try" in |
| 20365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20366 | *) ac_try_echo=$ac_try;; |
| 20367 | esac |
| 20368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20369 | (eval "$ac_try") 2>&5 |
| 20370 | ac_status=$? |
| 20371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20372 | (exit $ac_status); }; }; then |
| 20373 | ac_cv_func_mmap_file=yes |
| 20374 | else |
| 20375 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20376 | echo "$as_me: failed program was:" >&5 |
| 20377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20378 | |
| 20379 | ( exit $ac_status ) |
| 20380 | ac_cv_func_mmap_file=no |
| 20381 | fi |
| 20382 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 20383 | fi |
| 20384 | |
| 20385 | |
| 20386 | ac_ext=c |
| 20387 | ac_cpp='$CPP $CPPFLAGS' |
| 20388 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20389 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20390 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20391 | |
| 20392 | |
| 20393 | fi |
| 20394 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 20395 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
| 20396 | if test "$ac_cv_func_mmap_file" = yes; then |
| 20397 | |
| 20398 | cat >>confdefs.h <<\_ACEOF |
| 20399 | #define HAVE_MMAP_FILE |
| 20400 | _ACEOF |
| 20401 | |
| 20402 | MMAP_FILE=yes |
| 20403 | |
| 20404 | fi |
| 20405 | |
| 20406 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 20407 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
| 20408 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 20409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20410 | else |
| 20411 | if test "$llvm_cv_os_type" = "Interix" ; then |
| 20412 | ac_cv_need_dev_zero_for_mmap=yes |
| 20413 | else |
| 20414 | ac_cv_need_dev_zero_for_mmap=no |
| 20415 | fi |
| 20416 | |
| 20417 | fi |
| 20418 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 20419 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
| 20420 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 20421 | |
| 20422 | cat >>confdefs.h <<\_ACEOF |
| 20423 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 20424 | _ACEOF |
| 20425 | |
| 20426 | fi |
| 20427 | |
| 20428 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 20429 | then |
| 20430 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 20431 | echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} |
| 20432 | fi |
| 20433 | if test "$ac_cv_func_mmap_file" = "no" |
| 20434 | then |
| 20435 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 20436 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
| 20437 | fi |
| 20438 | fi |
| 20439 | |
| 20440 | { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 |
| 20441 | echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } |
| 20442 | ac_ext=cpp |
| 20443 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20444 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20445 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20446 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20447 | |
| 20448 | cat >conftest.$ac_ext <<_ACEOF |
| 20449 | /* confdefs.h. */ |
| 20450 | _ACEOF |
| 20451 | cat confdefs.h >>conftest.$ac_ext |
| 20452 | cat >>conftest.$ac_ext <<_ACEOF |
| 20453 | /* end confdefs.h. */ |
| 20454 | int main() { |
| 20455 | volatile unsigned long val = 1; |
| 20456 | __sync_synchronize(); |
| 20457 | __sync_val_compare_and_swap(&val, 1, 0); |
| 20458 | __sync_add_and_fetch(&val, 1); |
| 20459 | __sync_sub_and_fetch(&val, 1); |
| 20460 | return 0; |
| 20461 | } |
| 20462 | |
| 20463 | _ACEOF |
| 20464 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20465 | if { (ac_try="$ac_link" |
| 20466 | case "(($ac_try" in |
| 20467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20468 | *) ac_try_echo=$ac_try;; |
| 20469 | esac |
| 20470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20471 | (eval "$ac_link") 2>conftest.er1 |
| 20472 | ac_status=$? |
| 20473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20474 | rm -f conftest.er1 |
| 20475 | cat conftest.err >&5 |
| 20476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20477 | (exit $ac_status); } && |
| 20478 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20479 | { (case "(($ac_try" in |
| 20480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20481 | *) ac_try_echo=$ac_try;; |
| 20482 | esac |
| 20483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20484 | (eval "$ac_try") 2>&5 |
| 20485 | ac_status=$? |
| 20486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20487 | (exit $ac_status); }; } && |
| 20488 | { ac_try='test -s conftest$ac_exeext' |
| 20489 | { (case "(($ac_try" in |
| 20490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20491 | *) ac_try_echo=$ac_try;; |
| 20492 | esac |
| 20493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20494 | (eval "$ac_try") 2>&5 |
| 20495 | ac_status=$? |
| 20496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20497 | (exit $ac_status); }; }; then |
| 20498 | ac_ext=c |
| 20499 | ac_cpp='$CPP $CPPFLAGS' |
| 20500 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20501 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20502 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20503 | |
| 20504 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 20505 | echo "${ECHO_T}yes" >&6; } |
| 20506 | |
| 20507 | cat >>confdefs.h <<\_ACEOF |
| 20508 | #define LLVM_HAS_ATOMICS 1 |
| 20509 | _ACEOF |
| 20510 | |
| 20511 | else |
| 20512 | echo "$as_me: failed program was:" >&5 |
| 20513 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20514 | |
| 20515 | { echo "$as_me:$LINENO: result: no" >&5 |
| 20516 | echo "${ECHO_T}no" >&6; } |
| 20517 | |
| 20518 | cat >>confdefs.h <<\_ACEOF |
| 20519 | #define LLVM_HAS_ATOMICS 0 |
| 20520 | _ACEOF |
| 20521 | |
| 20522 | { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 |
| 20523 | echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} |
| 20524 | fi |
| 20525 | |
| 20526 | rm -f core conftest.err conftest.$ac_objext \ |
| 20527 | conftest$ac_exeext conftest.$ac_ext |
| 20528 | |
| 20529 | |
| 20530 | if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then |
| 20531 | { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 |
| 20532 | echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } |
| 20533 | if test "${llvm_cv_linux_mixed+set}" = set; then |
| 20534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20535 | else |
| 20536 | ac_ext=c |
| 20537 | ac_cpp='$CPP $CPPFLAGS' |
| 20538 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20539 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20540 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20541 | |
| 20542 | cat >conftest.$ac_ext <<_ACEOF |
| 20543 | /* confdefs.h. */ |
| 20544 | _ACEOF |
| 20545 | cat confdefs.h >>conftest.$ac_ext |
| 20546 | cat >>conftest.$ac_ext <<_ACEOF |
| 20547 | /* end confdefs.h. */ |
| 20548 | #ifndef __x86_64__ |
| 20549 | error: Not x86-64 even if uname says so! |
| 20550 | #endif |
| 20551 | |
| 20552 | int |
| 20553 | main () |
| 20554 | { |
| 20555 | |
| 20556 | ; |
| 20557 | return 0; |
| 20558 | } |
| 20559 | _ACEOF |
| 20560 | rm -f conftest.$ac_objext |
| 20561 | if { (ac_try="$ac_compile" |
| 20562 | case "(($ac_try" in |
| 20563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20564 | *) ac_try_echo=$ac_try;; |
| 20565 | esac |
| 20566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20567 | (eval "$ac_compile") 2>conftest.er1 |
| 20568 | ac_status=$? |
| 20569 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20570 | rm -f conftest.er1 |
| 20571 | cat conftest.err >&5 |
| 20572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20573 | (exit $ac_status); } && |
| 20574 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20575 | { (case "(($ac_try" in |
| 20576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20577 | *) ac_try_echo=$ac_try;; |
| 20578 | esac |
| 20579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20580 | (eval "$ac_try") 2>&5 |
| 20581 | ac_status=$? |
| 20582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20583 | (exit $ac_status); }; } && |
| 20584 | { ac_try='test -s conftest.$ac_objext' |
| 20585 | { (case "(($ac_try" in |
| 20586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20587 | *) ac_try_echo=$ac_try;; |
| 20588 | esac |
| 20589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20590 | (eval "$ac_try") 2>&5 |
| 20591 | ac_status=$? |
| 20592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20593 | (exit $ac_status); }; }; then |
| 20594 | llvm_cv_linux_mixed=no |
| 20595 | else |
| 20596 | echo "$as_me: failed program was:" >&5 |
| 20597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20598 | |
| 20599 | llvm_cv_linux_mixed=yes |
| 20600 | fi |
| 20601 | |
| 20602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20603 | ac_ext=c |
| 20604 | ac_cpp='$CPP $CPPFLAGS' |
| 20605 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20606 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20607 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20608 | |
| 20609 | |
| 20610 | fi |
| 20611 | { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 |
| 20612 | echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } |
| 20613 | |
| 20614 | if test "$llvm_cv_linux_mixed" = "yes"; then |
| 20615 | llvm_cv_target_arch="x86" |
| 20616 | ARCH="x86" |
| 20617 | fi |
| 20618 | fi |
| 20619 | |
| 20620 | |
| 20621 | for ac_func in __dso_handle |
| 20622 | do |
| 20623 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20624 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20625 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 20626 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20628 | else |
| 20629 | cat >conftest.$ac_ext <<_ACEOF |
| 20630 | /* confdefs.h. */ |
| 20631 | _ACEOF |
| 20632 | cat confdefs.h >>conftest.$ac_ext |
| 20633 | cat >>conftest.$ac_ext <<_ACEOF |
| 20634 | /* end confdefs.h. */ |
| 20635 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20636 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20637 | #define $ac_func innocuous_$ac_func |
| 20638 | |
| 20639 | /* System header to define __stub macros and hopefully few prototypes, |
| 20640 | which can conflict with char $ac_func (); below. |
| 20641 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20642 | <limits.h> exists even on freestanding compilers. */ |
| 20643 | |
| 20644 | #ifdef __STDC__ |
| 20645 | # include <limits.h> |
| 20646 | #else |
| 20647 | # include <assert.h> |
| 20648 | #endif |
| 20649 | |
| 20650 | #undef $ac_func |
| 20651 | |
| 20652 | /* Override any GCC internal prototype to avoid an error. |
| 20653 | Use char because int might match the return type of a GCC |
| 20654 | builtin and then its argument prototype would still apply. */ |
| 20655 | #ifdef __cplusplus |
| 20656 | extern "C" |
| 20657 | #endif |
| 20658 | char $ac_func (); |
| 20659 | /* The GNU C library defines this for functions which it implements |
| 20660 | to always fail with ENOSYS. Some functions are actually named |
| 20661 | something starting with __ and the normal name is an alias. */ |
| 20662 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20663 | choke me |
| 20664 | #endif |
| 20665 | |
| 20666 | int |
| 20667 | main () |
| 20668 | { |
| 20669 | return $ac_func (); |
| 20670 | ; |
| 20671 | return 0; |
| 20672 | } |
| 20673 | _ACEOF |
| 20674 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20675 | if { (ac_try="$ac_link" |
| 20676 | case "(($ac_try" in |
| 20677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20678 | *) ac_try_echo=$ac_try;; |
| 20679 | esac |
| 20680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20681 | (eval "$ac_link") 2>conftest.er1 |
| 20682 | ac_status=$? |
| 20683 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20684 | rm -f conftest.er1 |
| 20685 | cat conftest.err >&5 |
| 20686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20687 | (exit $ac_status); } && |
| 20688 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20689 | { (case "(($ac_try" in |
| 20690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20691 | *) ac_try_echo=$ac_try;; |
| 20692 | esac |
| 20693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20694 | (eval "$ac_try") 2>&5 |
| 20695 | ac_status=$? |
| 20696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20697 | (exit $ac_status); }; } && |
| 20698 | { ac_try='test -s conftest$ac_exeext' |
| 20699 | { (case "(($ac_try" in |
| 20700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20701 | *) ac_try_echo=$ac_try;; |
| 20702 | esac |
| 20703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20704 | (eval "$ac_try") 2>&5 |
| 20705 | ac_status=$? |
| 20706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20707 | (exit $ac_status); }; }; then |
| 20708 | eval "$as_ac_var=yes" |
| 20709 | else |
| 20710 | echo "$as_me: failed program was:" >&5 |
| 20711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20712 | |
| 20713 | eval "$as_ac_var=no" |
| 20714 | fi |
| 20715 | |
| 20716 | rm -f core conftest.err conftest.$ac_objext \ |
| 20717 | conftest$ac_exeext conftest.$ac_ext |
| 20718 | fi |
| 20719 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 20720 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20721 | echo "${ECHO_T}$ac_res" >&6; } |
| 20722 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 20723 | cat >>confdefs.h <<_ACEOF |
| 20724 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 20725 | _ACEOF |
| 20726 | |
| 20727 | fi |
| 20728 | done |
| 20729 | |
| 20730 | |
| 20731 | SHLIBEXT=$libltdl_cv_shlibext |
| 20732 | |
| 20733 | |
| 20734 | SHLIBPATH_VAR=$libltdl_cv_shlibpath_var |
| 20735 | |
| 20736 | |
| 20737 | # Translate the various configuration directories and other basic |
| 20738 | # information into substitutions that will end up in Makefile.config.in |
| 20739 | # that these configured values can be used by the makefiles |
| 20740 | if test "${prefix}" = "NONE" ; then |
| 20741 | prefix="/usr/local" |
| 20742 | fi |
| 20743 | eval LLVM_PREFIX="${prefix}"; |
| 20744 | eval LLVM_BINDIR="${prefix}/bin"; |
| 20745 | eval LLVM_LIBDIR="${prefix}/lib"; |
| 20746 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 20747 | eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; |
| 20748 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
| 20749 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 20750 | eval LLVM_INFODIR="${prefix}/info"; |
| 20751 | eval LLVM_MANDIR="${prefix}/man"; |
| 20752 | LLVM_CONFIGTIME=`date` |
| 20753 | |
| 20754 | |
| 20755 | |
| 20756 | |
| 20757 | |
| 20758 | |
| 20759 | |
| 20760 | |
| 20761 | |
| 20762 | |
| 20763 | |
| 20764 | # Place the various directores into the config.h file as #defines so that we |
| 20765 | # can know about the installation paths within LLVM. |
| 20766 | |
| 20767 | cat >>confdefs.h <<_ACEOF |
| 20768 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 20769 | _ACEOF |
| 20770 | |
| 20771 | |
| 20772 | cat >>confdefs.h <<_ACEOF |
| 20773 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 20774 | _ACEOF |
| 20775 | |
| 20776 | |
| 20777 | cat >>confdefs.h <<_ACEOF |
| 20778 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 20779 | _ACEOF |
| 20780 | |
| 20781 | |
| 20782 | cat >>confdefs.h <<_ACEOF |
| 20783 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 20784 | _ACEOF |
| 20785 | |
| 20786 | |
| 20787 | cat >>confdefs.h <<_ACEOF |
| 20788 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
| 20789 | _ACEOF |
| 20790 | |
| 20791 | |
| 20792 | cat >>confdefs.h <<_ACEOF |
| 20793 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
| 20794 | _ACEOF |
| 20795 | |
| 20796 | |
| 20797 | cat >>confdefs.h <<_ACEOF |
| 20798 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 20799 | _ACEOF |
| 20800 | |
| 20801 | |
| 20802 | cat >>confdefs.h <<_ACEOF |
| 20803 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 20804 | _ACEOF |
| 20805 | |
| 20806 | |
| 20807 | cat >>confdefs.h <<_ACEOF |
| 20808 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 20809 | _ACEOF |
| 20810 | |
| 20811 | |
| 20812 | cat >>confdefs.h <<_ACEOF |
| 20813 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 20814 | _ACEOF |
| 20815 | |
| 20816 | |
| 20817 | cat >>confdefs.h <<_ACEOF |
Sebastian Pop | de2e0b5 | 2011-11-01 21:31:44 +0000 | [diff] [blame] | 20818 | #define LLVM_DEFAULT_TARGET_TRIPLE "$target" |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 20819 | _ACEOF |
| 20820 | |
| 20821 | |
| 20822 | # Determine which bindings to build. |
| 20823 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 20824 | BINDINGS_TO_BUILD="" |
| 20825 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 20826 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 20827 | fi |
| 20828 | fi |
| 20829 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 20830 | |
| 20831 | |
| 20832 | # This isn't really configurey, but it avoids having to repeat the list in |
| 20833 | # other files. |
| 20834 | ALL_BINDINGS=ocaml |
| 20835 | |
| 20836 | |
| 20837 | # Do any work necessary to ensure that bindings have what they need. |
| 20838 | binding_prereqs_failed=0 |
| 20839 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 20840 | case "$a_binding" in |
| 20841 | ocaml) |
| 20842 | if test "x$OCAMLC" = x ; then |
| 20843 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 20844 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} |
| 20845 | binding_prereqs_failed=1 |
| 20846 | fi |
| 20847 | if test "x$OCAMLDEP" = x ; then |
| 20848 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 20849 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} |
| 20850 | binding_prereqs_failed=1 |
| 20851 | fi |
| 20852 | if test "x$OCAMLOPT" = x ; then |
| 20853 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 20854 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} |
| 20855 | fi |
| 20856 | if test "x$with_ocaml_libdir" != xauto ; then |
| 20857 | OCAML_LIBDIR=$with_ocaml_libdir |
| 20858 | |
| 20859 | else |
| 20860 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 20861 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 20862 | then |
| 20863 | # ocaml stdlib is beneath our prefix; use stdlib |
| 20864 | OCAML_LIBDIR=$ocaml_stdlib |
| 20865 | |
| 20866 | else |
| 20867 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 20868 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 20869 | |
| 20870 | fi |
| 20871 | fi |
| 20872 | ;; |
| 20873 | esac |
| 20874 | done |
| 20875 | if test "$binding_prereqs_failed" = 1 ; then |
| 20876 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 20877 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 20878 | { (exit 1); exit 1; }; } |
| 20879 | fi |
| 20880 | |
| 20881 | { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 |
| 20882 | echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } |
| 20883 | if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then |
| 20884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20885 | else |
| 20886 | ac_ext=cpp |
| 20887 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 20888 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20889 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20890 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20891 | |
| 20892 | oldcxxflags="$CXXFLAGS" |
| 20893 | CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" |
| 20894 | cat >conftest.$ac_ext <<_ACEOF |
| 20895 | /* confdefs.h. */ |
| 20896 | _ACEOF |
| 20897 | cat confdefs.h >>conftest.$ac_ext |
| 20898 | cat >>conftest.$ac_ext <<_ACEOF |
| 20899 | /* end confdefs.h. */ |
| 20900 | |
| 20901 | int |
| 20902 | main () |
| 20903 | { |
| 20904 | |
| 20905 | ; |
| 20906 | return 0; |
| 20907 | } |
| 20908 | _ACEOF |
| 20909 | rm -f conftest.$ac_objext |
| 20910 | if { (ac_try="$ac_compile" |
| 20911 | case "(($ac_try" in |
| 20912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20913 | *) ac_try_echo=$ac_try;; |
| 20914 | esac |
| 20915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20916 | (eval "$ac_compile") 2>conftest.er1 |
| 20917 | ac_status=$? |
| 20918 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20919 | rm -f conftest.er1 |
| 20920 | cat conftest.err >&5 |
| 20921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20922 | (exit $ac_status); } && |
| 20923 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 20924 | { (case "(($ac_try" in |
| 20925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20926 | *) ac_try_echo=$ac_try;; |
| 20927 | esac |
| 20928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20929 | (eval "$ac_try") 2>&5 |
| 20930 | ac_status=$? |
| 20931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20932 | (exit $ac_status); }; } && |
| 20933 | { ac_try='test -s conftest.$ac_objext' |
| 20934 | { (case "(($ac_try" in |
| 20935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20936 | *) ac_try_echo=$ac_try;; |
| 20937 | esac |
| 20938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20939 | (eval "$ac_try") 2>&5 |
| 20940 | ac_status=$? |
| 20941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20942 | (exit $ac_status); }; }; then |
| 20943 | llvm_cv_cxx_visibility_inlines_hidden=yes |
| 20944 | else |
| 20945 | echo "$as_me: failed program was:" >&5 |
| 20946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20947 | |
| 20948 | llvm_cv_cxx_visibility_inlines_hidden=no |
| 20949 | fi |
| 20950 | |
| 20951 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20952 | CXXFLAGS="$oldcxxflags" |
| 20953 | ac_ext=c |
| 20954 | ac_cpp='$CPP $CPPFLAGS' |
| 20955 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20956 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20957 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20958 | |
| 20959 | |
| 20960 | fi |
| 20961 | { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 |
| 20962 | echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } |
| 20963 | if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then |
| 20964 | ENABLE_VISIBILITY_INLINES_HIDDEN=1 |
| 20965 | |
| 20966 | else |
| 20967 | ENABLE_VISIBILITY_INLINES_HIDDEN=0 |
| 20968 | |
| 20969 | fi |
| 20970 | |
| 20971 | |
| 20972 | if test "$llvm_cv_link_use_r" = "yes" ; then |
| 20973 | RPATH="-Wl,-R" |
| 20974 | else |
| 20975 | RPATH="-Wl,-rpath" |
| 20976 | fi |
| 20977 | |
| 20978 | |
| 20979 | if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then |
| 20980 | RDYNAMIC="-Wl,-export-dynamic" |
| 20981 | else |
| 20982 | RDYNAMIC="" |
| 20983 | fi |
| 20984 | |
| 20985 | |
| 20986 | |
Reid Spencer | 421ec05 | 2005-02-24 18:53:47 +0000 | [diff] [blame] | 20987 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 20988 | ac_config_files="$ac_config_files Makefile.common" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 20989 | |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 20990 | ac_config_files="$ac_config_files Makefile.llvm.config" |
| 20991 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 20992 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 20993 | ac_config_commands="$ac_config_commands Makefile" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 20994 | |
| 20995 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 20996 | ac_config_commands="$ac_config_commands lib/Makefile" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 20997 | |
| 20998 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 20999 | ac_config_commands="$ac_config_commands lib/sample/Makefile" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21000 | |
| 21001 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21002 | ac_config_commands="$ac_config_commands tools/Makefile" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21003 | |
| 21004 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21005 | ac_config_commands="$ac_config_commands tools/sample/Makefile" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21006 | |
| 21007 | |
| 21008 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21009 | cat >confcache <<\_ACEOF |
| 21010 | # This file is a shell script that caches the results of configure |
| 21011 | # tests run on this system so they can be shared between configure |
| 21012 | # scripts and configure runs, see configure's option --config-cache. |
| 21013 | # It is not useful on other systems. If it contains results you don't |
| 21014 | # want to keep, you may remove or edit it. |
| 21015 | # |
| 21016 | # config.status only pays attention to the cache file if you give it |
| 21017 | # the --recheck option to rerun configure. |
| 21018 | # |
| 21019 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 21020 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 21021 | # following values. |
| 21022 | |
| 21023 | _ACEOF |
| 21024 | |
| 21025 | # The following way of writing the cache mishandles newlines in values, |
| 21026 | # but we know of no workaround that is simple, portable, and efficient. |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21027 | # So, we kill variables containing newlines. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21028 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 21029 | # and sets the high bit in the cache file unless we assign to the vars. |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21030 | ( |
| 21031 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 21032 | eval ac_val=\$$ac_var |
| 21033 | case $ac_val in #( |
| 21034 | *${as_nl}*) |
| 21035 | case $ac_var in #( |
| 21036 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 21037 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 21038 | esac |
| 21039 | case $ac_var in #( |
| 21040 | _ | IFS | as_nl) ;; #( |
| 21041 | *) $as_unset $ac_var ;; |
| 21042 | esac ;; |
| 21043 | esac |
| 21044 | done |
| 21045 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21046 | (set) 2>&1 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21047 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 21048 | *${as_nl}ac_space=\ *) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21049 | # `set' does not quote correctly, so add quotes (double-quote |
| 21050 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 21051 | sed -n \ |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 21052 | "s/'/'\\\\''/g; |
| 21053 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21054 | ;; #( |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21055 | *) |
| 21056 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21057 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21058 | ;; |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21059 | esac | |
| 21060 | sort |
| 21061 | ) | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21062 | sed ' |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21063 | /^ac_cv_env_/b end |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21064 | t clear |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21065 | :clear |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21066 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 21067 | t end |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21068 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 21069 | :end' >>confcache |
| 21070 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 21071 | if test -w "$cache_file"; then |
| 21072 | test "x$cache_file" != "x/dev/null" && |
| 21073 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 21074 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21075 | cat confcache >$cache_file |
| 21076 | else |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21077 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 21078 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21079 | fi |
| 21080 | fi |
| 21081 | rm -f confcache |
| 21082 | |
| 21083 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 21084 | # Let make expand exec_prefix. |
| 21085 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 21086 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21087 | # Transform confdefs.h into DEFS. |
| 21088 | # Protect against shell expansion while executing Makefile rules. |
| 21089 | # Protect against Makefile macro expansion. |
| 21090 | # |
| 21091 | # If the first sed substitution is executed (which looks for macros that |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21092 | # take arguments), then branch to the quote section. Otherwise, |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21093 | # look for a macro that doesn't take arguments. |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21094 | ac_script=' |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21095 | t clear |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21096 | :clear |
| 21097 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21098 | t quote |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21099 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21100 | t quote |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21101 | b any |
| 21102 | :quote |
| 21103 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 21104 | s/\[/\\&/g |
| 21105 | s/\]/\\&/g |
| 21106 | s/\$/$$/g |
| 21107 | H |
| 21108 | :any |
| 21109 | ${ |
| 21110 | g |
| 21111 | s/^\n// |
| 21112 | s/\n/ /g |
| 21113 | p |
| 21114 | } |
| 21115 | ' |
| 21116 | DEFS=`sed -n "$ac_script" confdefs.h` |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21117 | |
| 21118 | |
| 21119 | ac_libobjs= |
| 21120 | ac_ltlibobjs= |
| 21121 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 21122 | # 1. Remove the extension, and $U if already installed. |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21123 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 21124 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 21125 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 21126 | # will be set to the directory where LIBOBJS objects are built. |
| 21127 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 21128 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21129 | done |
| 21130 | LIBOBJS=$ac_libobjs |
| 21131 | |
| 21132 | LTLIBOBJS=$ac_ltlibobjs |
| 21133 | |
| 21134 | |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 21135 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 21136 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 21137 | Usually this means the macro was only invoked conditionally." >&5 |
| 21138 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 21139 | Usually this means the macro was only invoked conditionally." >&2;} |
| 21140 | { (exit 1); exit 1; }; } |
| 21141 | fi |
| 21142 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 21143 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 21144 | Usually this means the macro was only invoked conditionally." >&5 |
| 21145 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 21146 | Usually this means the macro was only invoked conditionally." >&2;} |
| 21147 | { (exit 1); exit 1; }; } |
| 21148 | fi |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21149 | |
| 21150 | : ${CONFIG_STATUS=./config.status} |
| 21151 | ac_clean_files_save=$ac_clean_files |
| 21152 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 21153 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 21154 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 21155 | cat >$CONFIG_STATUS <<_ACEOF |
| 21156 | #! $SHELL |
| 21157 | # Generated by $as_me. |
| 21158 | # Run this file to recreate the current configuration. |
| 21159 | # Compiler output produced by configure, useful for debugging |
| 21160 | # configure, is in config.log if it exists. |
| 21161 | |
| 21162 | debug=false |
| 21163 | ac_cs_recheck=false |
| 21164 | ac_cs_silent=false |
| 21165 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 21166 | _ACEOF |
| 21167 | |
| 21168 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21169 | ## --------------------- ## |
| 21170 | ## M4sh Initialization. ## |
| 21171 | ## --------------------- ## |
| 21172 | |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 21173 | # Be Bourne compatible |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21174 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 21175 | emulate sh |
| 21176 | NULLCMD=: |
| 21177 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 21178 | # is contrary to our usage. Disable this feature. |
| 21179 | alias -g '${1+"$@"}'='"$@"' |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21180 | setopt NO_GLOB_SUBST |
| 21181 | else |
| 21182 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 21183 | fi |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21184 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 21185 | DUALCASE=1; export DUALCASE # for MKS sh |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 21186 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21187 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21188 | # PATH needs CR |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21189 | # Avoid depending upon Character Ranges. |
| 21190 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 21191 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 21192 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 21193 | as_cr_digits='0123456789' |
| 21194 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 21195 | |
| 21196 | # The user is always right. |
| 21197 | if test "${PATH_SEPARATOR+set}" != set; then |
| 21198 | echo "#! /bin/sh" >conf$$.sh |
| 21199 | echo "exit 0" >>conf$$.sh |
| 21200 | chmod +x conf$$.sh |
| 21201 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 21202 | PATH_SEPARATOR=';' |
| 21203 | else |
| 21204 | PATH_SEPARATOR=: |
| 21205 | fi |
| 21206 | rm -f conf$$.sh |
| 21207 | fi |
| 21208 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21209 | # Support unset when possible. |
| 21210 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 21211 | as_unset=unset |
| 21212 | else |
| 21213 | as_unset=false |
| 21214 | fi |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21215 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21216 | |
| 21217 | # IFS |
| 21218 | # We need space, tab and new line, in precisely that order. Quoting is |
| 21219 | # there to prevent editors from complaining about space-tab. |
| 21220 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 21221 | # splitting by setting IFS to empty value.) |
| 21222 | as_nl=' |
| 21223 | ' |
| 21224 | IFS=" "" $as_nl" |
| 21225 | |
| 21226 | # Find who we are. Look in the path if we contain no directory separator. |
| 21227 | case $0 in |
| 21228 | *[\\/]* ) as_myself=$0 ;; |
| 21229 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21230 | for as_dir in $PATH |
| 21231 | do |
| 21232 | IFS=$as_save_IFS |
| 21233 | test -z "$as_dir" && as_dir=. |
| 21234 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 21235 | done |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21236 | IFS=$as_save_IFS |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21237 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21238 | ;; |
| 21239 | esac |
| 21240 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 21241 | # in which case we are not to be found in the path. |
| 21242 | if test "x$as_myself" = x; then |
| 21243 | as_myself=$0 |
| 21244 | fi |
| 21245 | if test ! -f "$as_myself"; then |
| 21246 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 21247 | { (exit 1); exit 1; } |
| 21248 | fi |
| 21249 | |
| 21250 | # Work around bugs in pre-3.0 UWIN ksh. |
| 21251 | for as_var in ENV MAIL MAILPATH |
| 21252 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 21253 | done |
| 21254 | PS1='$ ' |
| 21255 | PS2='> ' |
| 21256 | PS4='+ ' |
| 21257 | |
| 21258 | # NLS nuisances. |
| 21259 | for as_var in \ |
| 21260 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 21261 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 21262 | LC_TELEPHONE LC_TIME |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 21263 | do |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21264 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 21265 | eval $as_var=C; export $as_var |
| 21266 | else |
| 21267 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 21268 | fi |
| 21269 | done |
| 21270 | |
| 21271 | # Required to use basename. |
| 21272 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 21273 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 21274 | as_expr=expr |
| 21275 | else |
| 21276 | as_expr=false |
| 21277 | fi |
| 21278 | |
| 21279 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 21280 | as_basename=basename |
| 21281 | else |
| 21282 | as_basename=false |
| 21283 | fi |
| 21284 | |
| 21285 | |
| 21286 | # Name of the executable. |
| 21287 | as_me=`$as_basename -- "$0" || |
| 21288 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 21289 | X"$0" : 'X\(//\)$' \| \ |
| 21290 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 21291 | echo X/"$0" | |
| 21292 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 21293 | s//\1/ |
| 21294 | q |
| 21295 | } |
| 21296 | /^X\/\(\/\/\)$/{ |
| 21297 | s//\1/ |
| 21298 | q |
| 21299 | } |
| 21300 | /^X\/\(\/\).*/{ |
| 21301 | s//\1/ |
| 21302 | q |
| 21303 | } |
| 21304 | s/.*/./; q'` |
| 21305 | |
| 21306 | # CDPATH. |
| 21307 | $as_unset CDPATH |
| 21308 | |
| 21309 | |
| 21310 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21311 | as_lineno_1=$LINENO |
| 21312 | as_lineno_2=$LINENO |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21313 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21314 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21315 | |
| 21316 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 21317 | # uniformly replaced by the line number. The first 'sed' inserts a |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21318 | # line-number line after each line using $LINENO; the second 'sed' |
| 21319 | # does the real work. The second script uses 'N' to pair each |
| 21320 | # line-number line with the line containing $LINENO, and appends |
| 21321 | # trailing '-' during substitution so that $LINENO is not a special |
| 21322 | # case at line end. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21323 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21324 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 21325 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 21326 | sed -n ' |
| 21327 | p |
| 21328 | /[$]LINENO/= |
| 21329 | ' <$as_myself | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21330 | sed ' |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21331 | s/[$]LINENO.*/&-/ |
| 21332 | t lineno |
| 21333 | b |
| 21334 | :lineno |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21335 | N |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21336 | :loop |
| 21337 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21338 | t loop |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21339 | s/-\n.*// |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21340 | ' >$as_me.lineno && |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21341 | chmod +x "$as_me.lineno" || |
| 21342 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21343 | { (exit 1); exit 1; }; } |
| 21344 | |
| 21345 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 21346 | # (the dirname of $[0] is not the place where we might find the |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21347 | # original and so on. Autoconf is especially sensitive to this). |
| 21348 | . "./$as_me.lineno" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21349 | # Exit status is that of the last command. |
| 21350 | exit |
| 21351 | } |
| 21352 | |
| 21353 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21354 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 21355 | as_dirname=dirname |
| 21356 | else |
| 21357 | as_dirname=false |
| 21358 | fi |
| 21359 | |
| 21360 | ECHO_C= ECHO_N= ECHO_T= |
| 21361 | case `echo -n x` in |
| 21362 | -n*) |
| 21363 | case `echo 'x\c'` in |
| 21364 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 21365 | *) ECHO_C='\c';; |
| 21366 | esac;; |
| 21367 | *) |
| 21368 | ECHO_N='-n';; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21369 | esac |
| 21370 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21371 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 21372 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21373 | as_expr=expr |
| 21374 | else |
| 21375 | as_expr=false |
| 21376 | fi |
| 21377 | |
| 21378 | rm -f conf$$ conf$$.exe conf$$.file |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21379 | if test -d conf$$.dir; then |
| 21380 | rm -f conf$$.dir/conf$$.file |
| 21381 | else |
| 21382 | rm -f conf$$.dir |
| 21383 | mkdir conf$$.dir |
| 21384 | fi |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21385 | echo >conf$$.file |
| 21386 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21387 | as_ln_s='ln -s' |
| 21388 | # ... but there are two gotchas: |
| 21389 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 21390 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 21391 | # In both cases, we have to default to `cp -p'. |
| 21392 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21393 | as_ln_s='cp -p' |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21394 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 21395 | as_ln_s=ln |
| 21396 | else |
| 21397 | as_ln_s='cp -p' |
| 21398 | fi |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21399 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 21400 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21401 | |
| 21402 | if mkdir -p . 2>/dev/null; then |
| 21403 | as_mkdir_p=: |
| 21404 | else |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 21405 | test -d ./-p && rmdir ./-p |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21406 | as_mkdir_p=false |
| 21407 | fi |
| 21408 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21409 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 21410 | # systems may use methods other than mode bits to determine executability. |
| 21411 | cat >conf$$.file <<_ASEOF |
| 21412 | #! /bin/sh |
| 21413 | exit 0 |
| 21414 | _ASEOF |
| 21415 | chmod +x conf$$.file |
| 21416 | if test -x conf$$.file >/dev/null 2>&1; then |
| 21417 | as_executable_p="test -x" |
| 21418 | else |
| 21419 | as_executable_p=: |
| 21420 | fi |
| 21421 | rm -f conf$$.file |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21422 | |
| 21423 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 21424 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21425 | |
| 21426 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 21427 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21428 | |
| 21429 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21430 | exec 6>&1 |
| 21431 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21432 | # Save the log message, to keep $[0] and so on meaningful, and to |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21433 | # report actual input values of CONFIG_FILES etc. instead of their |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21434 | # values after options handling. |
| 21435 | ac_log=" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21436 | This file was extended by [SAMPLE] $as_me [x.xx], which was |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21437 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21438 | |
| 21439 | CONFIG_FILES = $CONFIG_FILES |
| 21440 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 21441 | CONFIG_LINKS = $CONFIG_LINKS |
| 21442 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 21443 | $ $0 $@ |
| 21444 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21445 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 21446 | " |
| 21447 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21448 | _ACEOF |
| 21449 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21450 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21451 | # Files that config.status was made for. |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21452 | config_files="$ac_config_files" |
| 21453 | config_commands="$ac_config_commands" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21454 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21455 | _ACEOF |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21456 | |
| 21457 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21458 | ac_cs_usage="\ |
| 21459 | \`$as_me' instantiates files from templates according to the |
| 21460 | current configuration. |
| 21461 | |
| 21462 | Usage: $0 [OPTIONS] [FILE]... |
| 21463 | |
| 21464 | -h, --help print this help, then exit |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 21465 | -V, --version print version number, then exit |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21466 | -q, --quiet do not print progress messages |
| 21467 | -d, --debug don't remove temporary files |
| 21468 | --recheck update $as_me by reconfiguring in the same conditions |
| 21469 | --file=FILE[:TEMPLATE] |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 21470 | instantiate the configuration file FILE |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21471 | |
| 21472 | Configuration files: |
| 21473 | $config_files |
| 21474 | |
| 21475 | Configuration commands: |
| 21476 | $config_commands |
| 21477 | |
| 21478 | Report bugs to <bug-autoconf@gnu.org>." |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 21479 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21480 | _ACEOF |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21481 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21482 | ac_cs_version="\\ |
| 21483 | [SAMPLE] config.status [x.xx] |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21484 | configured by $0, generated by GNU Autoconf 2.60, |
| 21485 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21486 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21487 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21488 | This config.status script is free software; the Free Software Foundation |
| 21489 | gives unlimited permission to copy, distribute and modify it." |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21490 | |
| 21491 | ac_pwd='$ac_pwd' |
| 21492 | srcdir='$srcdir' |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 21493 | INSTALL='$INSTALL' |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21494 | _ACEOF |
| 21495 | |
| 21496 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21497 | # If no file are specified by the user, then we need to provide default |
| 21498 | # value. By we need to know if files were specified by the user. |
| 21499 | ac_need_defaults=: |
| 21500 | while test $# != 0 |
| 21501 | do |
| 21502 | case $1 in |
| 21503 | --*=*) |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21504 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 21505 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21506 | ac_shift=: |
| 21507 | ;; |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21508 | *) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21509 | ac_option=$1 |
| 21510 | ac_optarg=$2 |
| 21511 | ac_shift=shift |
| 21512 | ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21513 | esac |
| 21514 | |
| 21515 | case $ac_option in |
| 21516 | # Handling of the options. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21517 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 21518 | ac_cs_recheck=: ;; |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21519 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 21520 | echo "$ac_cs_version"; exit ;; |
| 21521 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21522 | debug=: ;; |
| 21523 | --file | --fil | --fi | --f ) |
| 21524 | $ac_shift |
| 21525 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 21526 | ac_need_defaults=false;; |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21527 | --he | --h | --help | --hel | -h ) |
| 21528 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21529 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 21530 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 21531 | ac_cs_silent=: ;; |
| 21532 | |
| 21533 | # This is an error. |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21534 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 21535 | Try \`$0 --help' for more information." >&2 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21536 | { (exit 1); exit 1; }; } ;; |
| 21537 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21538 | *) ac_config_targets="$ac_config_targets $1" |
| 21539 | ac_need_defaults=false ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21540 | |
| 21541 | esac |
| 21542 | shift |
| 21543 | done |
| 21544 | |
| 21545 | ac_configure_extra_args= |
| 21546 | |
| 21547 | if $ac_cs_silent; then |
| 21548 | exec 6>/dev/null |
| 21549 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 21550 | fi |
| 21551 | |
| 21552 | _ACEOF |
| 21553 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21554 | if \$ac_cs_recheck; then |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21555 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 21556 | CONFIG_SHELL=$SHELL |
| 21557 | export CONFIG_SHELL |
| 21558 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21559 | fi |
| 21560 | |
| 21561 | _ACEOF |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21562 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21563 | exec 5>>config.log |
| 21564 | { |
| 21565 | echo |
| 21566 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 21567 | ## Running $as_me. ## |
| 21568 | _ASBOX |
| 21569 | echo "$ac_log" |
| 21570 | } >&5 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21571 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21572 | _ACEOF |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21573 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21574 | # |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21575 | # INIT-COMMANDS |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21576 | # |
Reid Spencer | 421ec05 | 2005-02-24 18:53:47 +0000 | [diff] [blame] | 21577 | llvm_src="${LLVM_SRC}" |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21578 | |
| 21579 | _ACEOF |
| 21580 | |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 21581 | cat >>$CONFIG_STATUS <<\_ACEOF |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21582 | |
| 21583 | # Handling of arguments. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21584 | for ac_config_target in $ac_config_targets |
| 21585 | do |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21586 | case $ac_config_target in |
| 21587 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 21588 | "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;; |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 21589 | "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;; |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21590 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 21591 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
| 21592 | "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;; |
| 21593 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 21594 | "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;; |
| 21595 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21596 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 21597 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 21598 | { (exit 1); exit 1; }; };; |
| 21599 | esac |
| 21600 | done |
| 21601 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21602 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21603 | # If the user did not use the arguments to specify the items to instantiate, |
| 21604 | # then the envvar interface is used. Set only those that are not. |
| 21605 | # We use the long form for the default assignment because of an extremely |
| 21606 | # bizarre bug on SunOS 4.1.3. |
| 21607 | if $ac_need_defaults; then |
| 21608 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 21609 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 21610 | fi |
| 21611 | |
| 21612 | # Have a temporary directory for convenience. Make it in the build tree |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21613 | # simply because there is no reason against having it here, and in addition, |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21614 | # creating and moving files from /tmp can sometimes cause problems. |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21615 | # Hook for its removal unless debugging. |
| 21616 | # Note that there is a small window in which the directory will not be cleaned: |
| 21617 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21618 | $debug || |
| 21619 | { |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21620 | tmp= |
| 21621 | trap 'exit_status=$? |
| 21622 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 21623 | ' 0 |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21624 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 21625 | } |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21626 | # Create a (secure) tmp directory for tmp files. |
| 21627 | |
| 21628 | { |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21629 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21630 | test -n "$tmp" && test -d "$tmp" |
| 21631 | } || |
| 21632 | { |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21633 | tmp=./conf$$-$RANDOM |
| 21634 | (umask 077 && mkdir "$tmp") |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21635 | } || |
| 21636 | { |
| 21637 | echo "$me: cannot create a temporary directory in ." >&2 |
| 21638 | { (exit 1); exit 1; } |
| 21639 | } |
| 21640 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21641 | # |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21642 | # Set up the sed scripts for CONFIG_FILES section. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21643 | # |
| 21644 | |
| 21645 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 21646 | # This happens for instance when ./config.status config.h |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21647 | if test -n "$CONFIG_FILES"; then |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21648 | |
| 21649 | _ACEOF |
| 21650 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21651 | |
| 21652 | |
| 21653 | ac_delim='%!_!# ' |
| 21654 | for ac_last_try in false false false false false :; do |
| 21655 | cat >conf$$subs.sed <<_ACEOF |
| 21656 | SHELL!$SHELL$ac_delim |
| 21657 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 21658 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 21659 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 21660 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 21661 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 21662 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 21663 | exec_prefix!$exec_prefix$ac_delim |
| 21664 | prefix!$prefix$ac_delim |
| 21665 | program_transform_name!$program_transform_name$ac_delim |
| 21666 | bindir!$bindir$ac_delim |
| 21667 | sbindir!$sbindir$ac_delim |
| 21668 | libexecdir!$libexecdir$ac_delim |
| 21669 | datarootdir!$datarootdir$ac_delim |
| 21670 | datadir!$datadir$ac_delim |
| 21671 | sysconfdir!$sysconfdir$ac_delim |
| 21672 | sharedstatedir!$sharedstatedir$ac_delim |
| 21673 | localstatedir!$localstatedir$ac_delim |
| 21674 | includedir!$includedir$ac_delim |
| 21675 | oldincludedir!$oldincludedir$ac_delim |
| 21676 | docdir!$docdir$ac_delim |
| 21677 | infodir!$infodir$ac_delim |
| 21678 | htmldir!$htmldir$ac_delim |
| 21679 | dvidir!$dvidir$ac_delim |
| 21680 | pdfdir!$pdfdir$ac_delim |
| 21681 | psdir!$psdir$ac_delim |
| 21682 | libdir!$libdir$ac_delim |
| 21683 | localedir!$localedir$ac_delim |
| 21684 | mandir!$mandir$ac_delim |
| 21685 | DEFS!$DEFS$ac_delim |
| 21686 | ECHO_C!$ECHO_C$ac_delim |
| 21687 | ECHO_N!$ECHO_N$ac_delim |
| 21688 | ECHO_T!$ECHO_T$ac_delim |
| 21689 | LIBS!$LIBS$ac_delim |
| 21690 | build_alias!$build_alias$ac_delim |
| 21691 | host_alias!$host_alias$ac_delim |
| 21692 | target_alias!$target_alias$ac_delim |
| 21693 | LLVM_SRC!$LLVM_SRC$ac_delim |
| 21694 | LLVM_OBJ!$LLVM_OBJ$ac_delim |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 21695 | LLVM_VERSION!$LLVM_VERSION$ac_delim |
| 21696 | CC!$CC$ac_delim |
| 21697 | CFLAGS!$CFLAGS$ac_delim |
| 21698 | LDFLAGS!$LDFLAGS$ac_delim |
| 21699 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 21700 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 21701 | EXEEXT!$EXEEXT$ac_delim |
| 21702 | OBJEXT!$OBJEXT$ac_delim |
| 21703 | CXX!$CXX$ac_delim |
| 21704 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 21705 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 21706 | CPP!$CPP$ac_delim |
| 21707 | ENABLE_POLLY!$ENABLE_POLLY$ac_delim |
| 21708 | LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim |
| 21709 | subdirs!$subdirs$ac_delim |
| 21710 | build!$build$ac_delim |
| 21711 | build_cpu!$build_cpu$ac_delim |
| 21712 | build_vendor!$build_vendor$ac_delim |
| 21713 | build_os!$build_os$ac_delim |
| 21714 | host!$host$ac_delim |
| 21715 | host_cpu!$host_cpu$ac_delim |
| 21716 | host_vendor!$host_vendor$ac_delim |
| 21717 | host_os!$host_os$ac_delim |
| 21718 | target!$target$ac_delim |
| 21719 | target_cpu!$target_cpu$ac_delim |
| 21720 | target_vendor!$target_vendor$ac_delim |
| 21721 | target_os!$target_os$ac_delim |
| 21722 | OS!$OS$ac_delim |
| 21723 | HOST_OS!$HOST_OS$ac_delim |
| 21724 | TARGET_OS!$TARGET_OS$ac_delim |
| 21725 | LINKALL!$LINKALL$ac_delim |
| 21726 | NOLINKALL!$NOLINKALL$ac_delim |
| 21727 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 21728 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 21729 | ARCH!$ARCH$ac_delim |
| 21730 | ENDIAN!$ENDIAN$ac_delim |
| 21731 | GREP!$GREP$ac_delim |
| 21732 | EGREP!$EGREP$ac_delim |
| 21733 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 21734 | BUILD_CC!$BUILD_CC$ac_delim |
| 21735 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 21736 | BUILD_CXX!$BUILD_CXX$ac_delim |
| 21737 | CVSBUILD!$CVSBUILD$ac_delim |
| 21738 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 21739 | ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim |
| 21740 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
| 21741 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 21742 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
| 21743 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 21744 | DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim |
| 21745 | JIT!$JIT$ac_delim |
| 21746 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 21747 | ENABLE_DOCS!$ENABLE_DOCS$ac_delim |
| 21748 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 21749 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
| 21750 | ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim |
| 21751 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
| 21752 | ENABLE_SHARED!$ENABLE_SHARED$ac_delim |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21753 | _ACEOF |
| 21754 | |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 21755 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21756 | break |
| 21757 | elif $ac_last_try; then |
| 21758 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21759 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21760 | { (exit 1); exit 1; }; } |
| 21761 | else |
| 21762 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21763 | fi |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21764 | done |
| 21765 | |
| 21766 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21767 | if test -n "$ac_eof"; then |
| 21768 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21769 | ac_eof=`expr $ac_eof + 1` |
| 21770 | fi |
| 21771 | |
| 21772 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21773 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 21774 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 21775 | _ACEOF |
| 21776 | sed ' |
| 21777 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21778 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21779 | :n |
| 21780 | t n |
| 21781 | s/'"$ac_delim"'$/,g/; t |
| 21782 | s/$/\\/; p |
| 21783 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21784 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21785 | rm -f conf$$subs.sed |
| 21786 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21787 | CEOF$ac_eof |
| 21788 | _ACEOF |
| 21789 | |
| 21790 | |
| 21791 | ac_delim='%!_!# ' |
| 21792 | for ac_last_try in false false false false false :; do |
| 21793 | cat >conf$$subs.sed <<_ACEOF |
| 21794 | ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim |
| 21795 | ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim |
| 21796 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 21797 | LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim |
| 21798 | LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim |
| 21799 | LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim |
| 21800 | LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim |
| 21801 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
| 21802 | OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim |
| 21803 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 21804 | EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim |
| 21805 | BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim |
| 21806 | NM!$NM$ac_delim |
| 21807 | ifGNUmake!$ifGNUmake$ac_delim |
| 21808 | LN_S!$LN_S$ac_delim |
| 21809 | CMP!$CMP$ac_delim |
| 21810 | CP!$CP$ac_delim |
| 21811 | DATE!$DATE$ac_delim |
| 21812 | FIND!$FIND$ac_delim |
| 21813 | MKDIR!$MKDIR$ac_delim |
| 21814 | MV!$MV$ac_delim |
| 21815 | RANLIB!$RANLIB$ac_delim |
| 21816 | AR!$AR$ac_delim |
| 21817 | RM!$RM$ac_delim |
| 21818 | SED!$SED$ac_delim |
| 21819 | TAR!$TAR$ac_delim |
| 21820 | BINPWD!$BINPWD$ac_delim |
| 21821 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 21822 | DOT!$DOT$ac_delim |
| 21823 | FDP!$FDP$ac_delim |
| 21824 | NEATO!$NEATO$ac_delim |
| 21825 | TWOPI!$TWOPI$ac_delim |
| 21826 | CIRCO!$CIRCO$ac_delim |
| 21827 | GV!$GV$ac_delim |
| 21828 | DOTTY!$DOTTY$ac_delim |
| 21829 | XDOT_PY!$XDOT_PY$ac_delim |
| 21830 | PERL!$PERL$ac_delim |
| 21831 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 21832 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 21833 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 21834 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 21835 | BZIP2!$BZIP2$ac_delim |
| 21836 | CAT!$CAT$ac_delim |
| 21837 | DOXYGEN!$DOXYGEN$ac_delim |
| 21838 | GROFF!$GROFF$ac_delim |
| 21839 | GZIPBIN!$GZIPBIN$ac_delim |
| 21840 | POD2HTML!$POD2HTML$ac_delim |
| 21841 | POD2MAN!$POD2MAN$ac_delim |
| 21842 | PDFROFF!$PDFROFF$ac_delim |
| 21843 | RUNTEST!$RUNTEST$ac_delim |
| 21844 | TCLSH!$TCLSH$ac_delim |
| 21845 | ZIP!$ZIP$ac_delim |
| 21846 | OCAMLC!$OCAMLC$ac_delim |
| 21847 | OCAMLOPT!$OCAMLOPT$ac_delim |
| 21848 | OCAMLDEP!$OCAMLDEP$ac_delim |
| 21849 | OCAMLDOC!$OCAMLDOC$ac_delim |
| 21850 | GAS!$GAS$ac_delim |
| 21851 | HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim |
| 21852 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 21853 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 21854 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 21855 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 21856 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 21857 | NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim |
| 21858 | NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim |
| 21859 | USE_UDIS86!$USE_UDIS86$ac_delim |
| 21860 | USE_OPROFILE!$USE_OPROFILE$ac_delim |
| 21861 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
| 21862 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
| 21863 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 21864 | SHLIBEXT!$SHLIBEXT$ac_delim |
| 21865 | SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim |
| 21866 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 21867 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 21868 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 21869 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 21870 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 21871 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 21872 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 21873 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 21874 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 21875 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 21876 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 21877 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
| 21878 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
| 21879 | ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim |
| 21880 | RPATH!$RPATH$ac_delim |
| 21881 | RDYNAMIC!$RDYNAMIC$ac_delim |
| 21882 | LIBOBJS!$LIBOBJS$ac_delim |
| 21883 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 21884 | _ACEOF |
| 21885 | |
| 21886 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then |
| 21887 | break |
| 21888 | elif $ac_last_try; then |
| 21889 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 21890 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 21891 | { (exit 1); exit 1; }; } |
| 21892 | else |
| 21893 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 21894 | fi |
| 21895 | done |
| 21896 | |
| 21897 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 21898 | if test -n "$ac_eof"; then |
| 21899 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 21900 | ac_eof=`expr $ac_eof + 1` |
| 21901 | fi |
| 21902 | |
| 21903 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21904 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21905 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 21906 | _ACEOF |
| 21907 | sed ' |
| 21908 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 21909 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 21910 | :n |
| 21911 | t n |
| 21912 | s/'"$ac_delim"'$/,g/; t |
| 21913 | s/$/\\/; p |
| 21914 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 21915 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 21916 | rm -f conf$$subs.sed |
| 21917 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21918 | :end |
| 21919 | s/|#_!!_#|//g |
| 21920 | CEOF$ac_eof |
| 21921 | _ACEOF |
| 21922 | |
| 21923 | |
| 21924 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 21925 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 21926 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 21927 | # (actually we leave an empty line to preserve line numbers). |
| 21928 | if test "x$srcdir" = x.; then |
| 21929 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 21930 | s/:*\$(srcdir):*/:/ |
| 21931 | s/:*\${srcdir}:*/:/ |
| 21932 | s/:*@srcdir@:*/:/ |
| 21933 | s/^\([^=]*=[ ]*\):*/\1/ |
| 21934 | s/:*$// |
| 21935 | s/^[^=]*=[ ]*$// |
| 21936 | }' |
| 21937 | fi |
| 21938 | |
| 21939 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 21940 | fi # test -n "$CONFIG_FILES" |
| 21941 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 21942 | |
| 21943 | for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS |
| 21944 | do |
| 21945 | case $ac_tag in |
| 21946 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 21947 | esac |
| 21948 | case $ac_mode$ac_tag in |
| 21949 | :[FHL]*:*);; |
| 21950 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 21951 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 21952 | { (exit 1); exit 1; }; };; |
| 21953 | :[FH]-) ac_tag=-:-;; |
| 21954 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 21955 | esac |
| 21956 | ac_save_IFS=$IFS |
| 21957 | IFS=: |
| 21958 | set x $ac_tag |
| 21959 | IFS=$ac_save_IFS |
| 21960 | shift |
| 21961 | ac_file=$1 |
| 21962 | shift |
| 21963 | |
| 21964 | case $ac_mode in |
| 21965 | :L) ac_source=$1;; |
| 21966 | :[FH]) |
| 21967 | ac_file_inputs= |
| 21968 | for ac_f |
| 21969 | do |
| 21970 | case $ac_f in |
| 21971 | -) ac_f="$tmp/stdin";; |
| 21972 | *) # Look for the file first in the build tree, then in the source tree |
| 21973 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 21974 | # because $ac_f cannot contain `:'. |
| 21975 | test -f "$ac_f" || |
| 21976 | case $ac_f in |
| 21977 | [\\/$]*) false;; |
| 21978 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 21979 | esac || |
| 21980 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 21981 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 21982 | { (exit 1); exit 1; }; };; |
| 21983 | esac |
| 21984 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 21985 | done |
| 21986 | |
| 21987 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21988 | # use $as_me), people would be surprised to read: |
| 21989 | # /* config.h. Generated by config.status. */ |
| 21990 | configure_input="Generated from "`IFS=: |
| 21991 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 21992 | if test x"$ac_file" != x-; then |
| 21993 | configure_input="$ac_file. $configure_input" |
| 21994 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21995 | echo "$as_me: creating $ac_file" >&6;} |
| 21996 | fi |
| 21997 | |
| 21998 | case $ac_tag in |
| 21999 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 22000 | esac |
| 22001 | ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 22002 | esac |
| 22003 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22004 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 22005 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 22006 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 22007 | X"$ac_file" : 'X\(//\)$' \| \ |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22008 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 22009 | echo X"$ac_file" | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22010 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22011 | s//\1/ |
| 22012 | q |
| 22013 | } |
| 22014 | /^X\(\/\/\)[^/].*/{ |
| 22015 | s//\1/ |
| 22016 | q |
| 22017 | } |
| 22018 | /^X\(\/\/\)$/{ |
| 22019 | s//\1/ |
| 22020 | q |
| 22021 | } |
| 22022 | /^X\(\/\).*/{ |
| 22023 | s//\1/ |
| 22024 | q |
| 22025 | } |
| 22026 | s/.*/./; q'` |
| 22027 | { as_dir="$ac_dir" |
| 22028 | case $as_dir in #( |
| 22029 | -*) as_dir=./$as_dir;; |
| 22030 | esac |
| 22031 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 22032 | as_dirs= |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22033 | while :; do |
| 22034 | case $as_dir in #( |
| 22035 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 22036 | *) as_qdir=$as_dir;; |
| 22037 | esac |
| 22038 | as_dirs="'$as_qdir' $as_dirs" |
| 22039 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 22040 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 9964cd8 | 2005-01-01 09:26:55 +0000 | [diff] [blame] | 22041 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22042 | X"$as_dir" : 'X\(//\)$' \| \ |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22043 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 22044 | echo X"$as_dir" | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22045 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22046 | s//\1/ |
| 22047 | q |
| 22048 | } |
| 22049 | /^X\(\/\/\)[^/].*/{ |
| 22050 | s//\1/ |
| 22051 | q |
| 22052 | } |
| 22053 | /^X\(\/\/\)$/{ |
| 22054 | s//\1/ |
| 22055 | q |
| 22056 | } |
| 22057 | /^X\(\/\).*/{ |
| 22058 | s//\1/ |
| 22059 | q |
| 22060 | } |
| 22061 | s/.*/./; q'` |
| 22062 | test -d "$as_dir" && break |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 22063 | done |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22064 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 22065 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 22066 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 22067 | { (exit 1); exit 1; }; }; } |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 22068 | ac_builddir=. |
| 22069 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22070 | case "$ac_dir" in |
| 22071 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22072 | *) |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 22073 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22074 | # A ".." for each directory in $ac_dir_suffix. |
| 22075 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 22076 | case $ac_top_builddir_sub in |
| 22077 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22078 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 22079 | esac ;; |
| 22080 | esac |
| 22081 | ac_abs_top_builddir=$ac_pwd |
| 22082 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 22083 | # for backward compatibility: |
| 22084 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 22085 | |
| 22086 | case $srcdir in |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22087 | .) # We are building in place. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 22088 | ac_srcdir=. |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22089 | ac_top_srcdir=$ac_top_builddir_sub |
| 22090 | ac_abs_top_srcdir=$ac_pwd ;; |
| 22091 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 22092 | ac_srcdir=$srcdir$ac_dir_suffix; |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22093 | ac_top_srcdir=$srcdir |
| 22094 | ac_abs_top_srcdir=$srcdir ;; |
| 22095 | *) # Relative name. |
| 22096 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 22097 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 22098 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 22099 | esac |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22100 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 22101 | |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 22102 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22103 | case $ac_mode in |
| 22104 | :F) |
| 22105 | # |
| 22106 | # CONFIG_FILE |
| 22107 | # |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 22108 | |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 22109 | case $INSTALL in |
| 22110 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 22111 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 22112 | esac |
Dan Gohman | 324f608 | 2009-03-25 00:52:11 +0000 | [diff] [blame] | 22113 | _ACEOF |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22114 | |
| 22115 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22116 | # If the template does not know about datarootdir, expand it. |
| 22117 | # FIXME: This hack should be removed a few years after 2.60. |
| 22118 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 22119 | |
| 22120 | case `sed -n '/datarootdir/ { |
| 22121 | p |
| 22122 | q |
| 22123 | } |
| 22124 | /@datadir@/p |
| 22125 | /@docdir@/p |
| 22126 | /@infodir@/p |
| 22127 | /@localedir@/p |
| 22128 | /@mandir@/p |
| 22129 | ' $ac_file_inputs` in |
| 22130 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 22131 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 22132 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 22133 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 22134 | _ACEOF |
| 22135 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22136 | ac_datarootdir_hack=' |
| 22137 | s&@datadir@&$datadir&g |
| 22138 | s&@docdir@&$docdir&g |
| 22139 | s&@infodir@&$infodir&g |
| 22140 | s&@localedir@&$localedir&g |
| 22141 | s&@mandir@&$mandir&g |
| 22142 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 22143 | esac |
| 22144 | _ACEOF |
| 22145 | |
| 22146 | # Neutralize VPATH when `$srcdir' = `.'. |
| 22147 | # Shell code in configure.ac might set extrasub. |
| 22148 | # FIXME: do we really want to maintain this feature? |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 22149 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22150 | sed "$ac_vpsub |
| 22151 | $extrasub |
| 22152 | _ACEOF |
| 22153 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22154 | :t |
| 22155 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22156 | s&@configure_input@&$configure_input&;t t |
| 22157 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 22158 | s&@srcdir@&$ac_srcdir&;t t |
| 22159 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 22160 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 22161 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 22162 | s&@builddir@&$ac_builddir&;t t |
| 22163 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 22164 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 22165 | s&@INSTALL@&$ac_INSTALL&;t t |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22166 | $ac_datarootdir_hack |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 22167 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 22168 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22169 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 22170 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 22171 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 22172 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 22173 | which seems to be undefined. Please make sure it is defined." >&5 |
| 22174 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 22175 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 22176 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22177 | rm -f "$tmp/stdin" |
| 22178 | case $ac_file in |
| 22179 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 22180 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 22181 | esac |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22182 | ;; |
Dan Gohman | d02a281 | 2009-03-24 23:47:11 +0000 | [diff] [blame] | 22183 | |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22184 | |
| 22185 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 22186 | echo "$as_me: executing $ac_file commands" >&6;} |
| 22187 | ;; |
| 22188 | esac |
| 22189 | |
| 22190 | |
| 22191 | case $ac_file$ac_mode in |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 22192 | "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile` |
| 22193 | ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; |
| 22194 | "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile` |
| 22195 | ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; |
| 22196 | "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile` |
| 22197 | ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;; |
| 22198 | "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile` |
| 22199 | ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; |
| 22200 | "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile` |
| 22201 | ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;; |
Peter Collingbourne | 2bf4b54 | 2010-12-12 21:42:01 +0000 | [diff] [blame] | 22202 | |
| 22203 | esac |
| 22204 | done # for ac_tag |
| 22205 | |
John Criswell | 451f67f | 2003-10-16 01:45:35 +0000 | [diff] [blame] | 22206 | |
| 22207 | { (exit 0); exit 0; } |
| 22208 | _ACEOF |
| 22209 | chmod +x $CONFIG_STATUS |
| 22210 | ac_clean_files=$ac_clean_files_save |
| 22211 | |
| 22212 | |
| 22213 | # configure is writing to config.log, and then calls config.status. |
| 22214 | # config.status does its own redirection, appending to config.log. |
| 22215 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 22216 | # by configure, so config.status won't be able to write to it; its |
| 22217 | # output is simply discarded. So we exec the FD to /dev/null, |
| 22218 | # effectively closing config.log, so it can be properly (re)opened and |
| 22219 | # appended to by config.status. When coming back to configure, we |
| 22220 | # need to make the FD available again. |
| 22221 | if test "$no_create" != yes; then |
| 22222 | ac_cs_success=: |
| 22223 | ac_config_status_args= |
| 22224 | test "$silent" = yes && |
| 22225 | ac_config_status_args="$ac_config_status_args --quiet" |
| 22226 | exec 5>/dev/null |
| 22227 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 22228 | exec 5>>config.log |
| 22229 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 22230 | # would make configure fail if this is the last instruction. |
| 22231 | $ac_cs_success || { (exit 1); exit 1; } |
| 22232 | fi |
| 22233 | |
Daniel Dunbar | bf79f91 | 2011-10-18 23:10:58 +0000 | [diff] [blame] | 22234 | # |
| 22235 | # CONFIG_SUBDIRS section. |
| 22236 | # |
| 22237 | if test "$no_recursion" != yes; then |
| 22238 | |
| 22239 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 22240 | ac_sub_configure_args= |
| 22241 | ac_prev= |
| 22242 | eval "set x $ac_configure_args" |
| 22243 | shift |
| 22244 | for ac_arg |
| 22245 | do |
| 22246 | if test -n "$ac_prev"; then |
| 22247 | ac_prev= |
| 22248 | continue |
| 22249 | fi |
| 22250 | case $ac_arg in |
| 22251 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 22252 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 22253 | ac_prev=cache_file ;; |
| 22254 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 22255 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 22256 | | --c=*) |
| 22257 | ;; |
| 22258 | --config-cache | -C) |
| 22259 | ;; |
| 22260 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 22261 | ac_prev=srcdir ;; |
| 22262 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 22263 | ;; |
| 22264 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 22265 | ac_prev=prefix ;; |
| 22266 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 22267 | ;; |
| 22268 | *) |
| 22269 | case $ac_arg in |
| 22270 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 22271 | esac |
| 22272 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
| 22273 | esac |
| 22274 | done |
| 22275 | |
| 22276 | # Always prepend --prefix to ensure using the same prefix |
| 22277 | # in subdir configurations. |
| 22278 | ac_arg="--prefix=$prefix" |
| 22279 | case $ac_arg in |
| 22280 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 22281 | esac |
| 22282 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
| 22283 | |
| 22284 | ac_popdir=`pwd` |
| 22285 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 22286 | |
| 22287 | # Do not complain, so a configure script can configure whichever |
| 22288 | # parts of a large source tree are present. |
| 22289 | test -d "$srcdir/$ac_dir" || continue |
| 22290 | |
| 22291 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 22292 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 22293 | echo "$ac_msg" >&6 |
| 22294 | { as_dir="$ac_dir" |
| 22295 | case $as_dir in #( |
| 22296 | -*) as_dir=./$as_dir;; |
| 22297 | esac |
| 22298 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 22299 | as_dirs= |
| 22300 | while :; do |
| 22301 | case $as_dir in #( |
| 22302 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 22303 | *) as_qdir=$as_dir;; |
| 22304 | esac |
| 22305 | as_dirs="'$as_qdir' $as_dirs" |
| 22306 | as_dir=`$as_dirname -- "$as_dir" || |
| 22307 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 22308 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22309 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22310 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 22311 | echo X"$as_dir" | |
| 22312 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 22313 | s//\1/ |
| 22314 | q |
| 22315 | } |
| 22316 | /^X\(\/\/\)[^/].*/{ |
| 22317 | s//\1/ |
| 22318 | q |
| 22319 | } |
| 22320 | /^X\(\/\/\)$/{ |
| 22321 | s//\1/ |
| 22322 | q |
| 22323 | } |
| 22324 | /^X\(\/\).*/{ |
| 22325 | s//\1/ |
| 22326 | q |
| 22327 | } |
| 22328 | s/.*/./; q'` |
| 22329 | test -d "$as_dir" && break |
| 22330 | done |
| 22331 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 22332 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 22333 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 22334 | { (exit 1); exit 1; }; }; } |
| 22335 | ac_builddir=. |
| 22336 | |
| 22337 | case "$ac_dir" in |
| 22338 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22339 | *) |
| 22340 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 22341 | # A ".." for each directory in $ac_dir_suffix. |
| 22342 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 22343 | case $ac_top_builddir_sub in |
| 22344 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 22345 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 22346 | esac ;; |
| 22347 | esac |
| 22348 | ac_abs_top_builddir=$ac_pwd |
| 22349 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 22350 | # for backward compatibility: |
| 22351 | ac_top_builddir=$ac_top_build_prefix |
| 22352 | |
| 22353 | case $srcdir in |
| 22354 | .) # We are building in place. |
| 22355 | ac_srcdir=. |
| 22356 | ac_top_srcdir=$ac_top_builddir_sub |
| 22357 | ac_abs_top_srcdir=$ac_pwd ;; |
| 22358 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 22359 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 22360 | ac_top_srcdir=$srcdir |
| 22361 | ac_abs_top_srcdir=$srcdir ;; |
| 22362 | *) # Relative name. |
| 22363 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 22364 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 22365 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 22366 | esac |
| 22367 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 22368 | |
| 22369 | |
| 22370 | cd "$ac_dir" |
| 22371 | |
| 22372 | # Check for guested configure; otherwise get Cygnus style configure. |
| 22373 | if test -f "$ac_srcdir/configure.gnu"; then |
| 22374 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 22375 | elif test -f "$ac_srcdir/configure"; then |
| 22376 | ac_sub_configure=$ac_srcdir/configure |
| 22377 | elif test -f "$ac_srcdir/configure.in"; then |
| 22378 | # This should be Cygnus configure. |
| 22379 | ac_sub_configure=$ac_aux_dir/configure |
| 22380 | else |
| 22381 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 22382 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 22383 | ac_sub_configure= |
| 22384 | fi |
| 22385 | |
| 22386 | # The recursion is here. |
| 22387 | if test -n "$ac_sub_configure"; then |
| 22388 | # Make the cache file name correct relative to the subdirectory. |
| 22389 | case $cache_file in |
| 22390 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
| 22391 | *) # Relative name. |
| 22392 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
| 22393 | esac |
| 22394 | |
| 22395 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 22396 | echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
| 22397 | # The eval makes quoting arguments work. |
| 22398 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 22399 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
| 22400 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
| 22401 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 22402 | { (exit 1); exit 1; }; } |
| 22403 | fi |
| 22404 | |
| 22405 | cd "$ac_popdir" |
| 22406 | done |
| 22407 | fi |
| 22408 | |