| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame^] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.63 for ImageMagick 6.5.5. |
| 4 | # |
| 5 | # Report bugs to <http://www.imagemagick.org>. |
| 6 | # |
| 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 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 | |
| 15 | # Be more Bourne compatible |
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
| 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 18 | emulate sh |
| 19 | NULLCMD=: |
| 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
| 23 | setopt NO_GLOB_SUBST |
| 24 | else |
| 25 | case `(set -o) 2>/dev/null` in |
| 26 | *posix*) set -o posix ;; |
| 27 | esac |
| 28 | |
| 29 | fi |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | # PATH needs CR |
| 35 | # Avoid depending upon Character Ranges. |
| 36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 39 | as_cr_digits='0123456789' |
| 40 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 41 | |
| 42 | as_nl=' |
| 43 | ' |
| 44 | export as_nl |
| 45 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 46 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 47 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 48 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 49 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 | as_echo_n='/usr/ucb/echo -n' |
| 56 | else |
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 | as_echo_n_body='eval |
| 59 | arg=$1; |
| 60 | case $arg in |
| 61 | *"$as_nl"*) |
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 | esac; |
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 | ' |
| 67 | export as_echo_n_body |
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 | fi |
| 70 | export as_echo_body |
| 71 | as_echo='sh -c $as_echo_body as_echo' |
| 72 | fi |
| 73 | |
| 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
| 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
| 81 | fi |
| 82 | |
| 83 | # Support unset when possible. |
| 84 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 85 | as_unset=unset |
| 86 | else |
| 87 | as_unset=false |
| 88 | fi |
| 89 | |
| 90 | |
| 91 | # IFS |
| 92 | # We need space, tab and new line, in precisely that order. Quoting is |
| 93 | # there to prevent editors from complaining about space-tab. |
| 94 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 95 | # splitting by setting IFS to empty value.) |
| 96 | IFS=" "" $as_nl" |
| 97 | |
| 98 | # Find who we are. Look in the path if we contain no directory separator. |
| 99 | case $0 in |
| 100 | *[\\/]* ) as_myself=$0 ;; |
| 101 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 102 | for as_dir in $PATH |
| 103 | do |
| 104 | IFS=$as_save_IFS |
| 105 | test -z "$as_dir" && as_dir=. |
| 106 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 107 | done |
| 108 | IFS=$as_save_IFS |
| 109 | |
| 110 | ;; |
| 111 | esac |
| 112 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 113 | # in which case we are not to be found in the path. |
| 114 | if test "x$as_myself" = x; then |
| 115 | as_myself=$0 |
| 116 | fi |
| 117 | if test ! -f "$as_myself"; then |
| 118 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 119 | { (exit 1); exit 1; } |
| 120 | fi |
| 121 | |
| 122 | # Work around bugs in pre-3.0 UWIN ksh. |
| 123 | for as_var in ENV MAIL MAILPATH |
| 124 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 125 | done |
| 126 | PS1='$ ' |
| 127 | PS2='> ' |
| 128 | PS4='+ ' |
| 129 | |
| 130 | # NLS nuisances. |
| 131 | LC_ALL=C |
| 132 | export LC_ALL |
| 133 | LANGUAGE=C |
| 134 | export LANGUAGE |
| 135 | |
| 136 | # Required to use basename. |
| 137 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 138 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 139 | as_expr=expr |
| 140 | else |
| 141 | as_expr=false |
| 142 | fi |
| 143 | |
| 144 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 145 | as_basename=basename |
| 146 | else |
| 147 | as_basename=false |
| 148 | fi |
| 149 | |
| 150 | |
| 151 | # Name of the executable. |
| 152 | as_me=`$as_basename -- "$0" || |
| 153 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 154 | X"$0" : 'X\(//\)$' \| \ |
| 155 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 156 | $as_echo X/"$0" | |
| 157 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 158 | s//\1/ |
| 159 | q |
| 160 | } |
| 161 | /^X\/\(\/\/\)$/{ |
| 162 | s//\1/ |
| 163 | q |
| 164 | } |
| 165 | /^X\/\(\/\).*/{ |
| 166 | s//\1/ |
| 167 | q |
| 168 | } |
| 169 | s/.*/./; q'` |
| 170 | |
| 171 | # CDPATH. |
| 172 | $as_unset CDPATH |
| 173 | |
| 174 | |
| 175 | if test "x$CONFIG_SHELL" = x; then |
| 176 | if (eval ":") 2>/dev/null; then |
| 177 | as_have_required=yes |
| 178 | else |
| 179 | as_have_required=no |
| 180 | fi |
| 181 | |
| 182 | if test $as_have_required = yes && (eval ": |
| 183 | (as_func_return () { |
| 184 | (exit \$1) |
| 185 | } |
| 186 | as_func_success () { |
| 187 | as_func_return 0 |
| 188 | } |
| 189 | as_func_failure () { |
| 190 | as_func_return 1 |
| 191 | } |
| 192 | as_func_ret_success () { |
| 193 | return 0 |
| 194 | } |
| 195 | as_func_ret_failure () { |
| 196 | return 1 |
| 197 | } |
| 198 | |
| 199 | exitcode=0 |
| 200 | if as_func_success; then |
| 201 | : |
| 202 | else |
| 203 | exitcode=1 |
| 204 | echo as_func_success failed. |
| 205 | fi |
| 206 | |
| 207 | if as_func_failure; then |
| 208 | exitcode=1 |
| 209 | echo as_func_failure succeeded. |
| 210 | fi |
| 211 | |
| 212 | if as_func_ret_success; then |
| 213 | : |
| 214 | else |
| 215 | exitcode=1 |
| 216 | echo as_func_ret_success failed. |
| 217 | fi |
| 218 | |
| 219 | if as_func_ret_failure; then |
| 220 | exitcode=1 |
| 221 | echo as_func_ret_failure succeeded. |
| 222 | fi |
| 223 | |
| 224 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 225 | : |
| 226 | else |
| 227 | exitcode=1 |
| 228 | echo positional parameters were not saved. |
| 229 | fi |
| 230 | |
| 231 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 232 | |
| 233 | ( |
| 234 | as_lineno_1=\$LINENO |
| 235 | as_lineno_2=\$LINENO |
| 236 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 237 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 238 | ") 2> /dev/null; then |
| 239 | : |
| 240 | else |
| 241 | as_candidate_shells= |
| 242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 243 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 244 | do |
| 245 | IFS=$as_save_IFS |
| 246 | test -z "$as_dir" && as_dir=. |
| 247 | case $as_dir in |
| 248 | /*) |
| 249 | for as_base in sh bash ksh sh5; do |
| 250 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 251 | done;; |
| 252 | esac |
| 253 | done |
| 254 | IFS=$as_save_IFS |
| 255 | |
| 256 | |
| 257 | for as_shell in $as_candidate_shells $SHELL; do |
| 258 | # Try only shells that exist, to save several forks. |
| 259 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 260 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 262 | emulate sh |
| 263 | NULLCMD=: |
| 264 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 265 | # is contrary to our usage. Disable this feature. |
| 266 | alias -g '${1+"$@"}'='"$@"' |
| 267 | setopt NO_GLOB_SUBST |
| 268 | else |
| 269 | case `(set -o) 2>/dev/null` in |
| 270 | *posix*) set -o posix ;; |
| 271 | esac |
| 272 | |
| 273 | fi |
| 274 | |
| 275 | |
| 276 | : |
| 277 | _ASEOF |
| 278 | }; then |
| 279 | CONFIG_SHELL=$as_shell |
| 280 | as_have_required=yes |
| 281 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 282 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 283 | emulate sh |
| 284 | NULLCMD=: |
| 285 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 286 | # is contrary to our usage. Disable this feature. |
| 287 | alias -g '${1+"$@"}'='"$@"' |
| 288 | setopt NO_GLOB_SUBST |
| 289 | else |
| 290 | case `(set -o) 2>/dev/null` in |
| 291 | *posix*) set -o posix ;; |
| 292 | esac |
| 293 | |
| 294 | fi |
| 295 | |
| 296 | |
| 297 | : |
| 298 | (as_func_return () { |
| 299 | (exit $1) |
| 300 | } |
| 301 | as_func_success () { |
| 302 | as_func_return 0 |
| 303 | } |
| 304 | as_func_failure () { |
| 305 | as_func_return 1 |
| 306 | } |
| 307 | as_func_ret_success () { |
| 308 | return 0 |
| 309 | } |
| 310 | as_func_ret_failure () { |
| 311 | return 1 |
| 312 | } |
| 313 | |
| 314 | exitcode=0 |
| 315 | if as_func_success; then |
| 316 | : |
| 317 | else |
| 318 | exitcode=1 |
| 319 | echo as_func_success failed. |
| 320 | fi |
| 321 | |
| 322 | if as_func_failure; then |
| 323 | exitcode=1 |
| 324 | echo as_func_failure succeeded. |
| 325 | fi |
| 326 | |
| 327 | if as_func_ret_success; then |
| 328 | : |
| 329 | else |
| 330 | exitcode=1 |
| 331 | echo as_func_ret_success failed. |
| 332 | fi |
| 333 | |
| 334 | if as_func_ret_failure; then |
| 335 | exitcode=1 |
| 336 | echo as_func_ret_failure succeeded. |
| 337 | fi |
| 338 | |
| 339 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 340 | : |
| 341 | else |
| 342 | exitcode=1 |
| 343 | echo positional parameters were not saved. |
| 344 | fi |
| 345 | |
| 346 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 347 | |
| 348 | ( |
| 349 | as_lineno_1=$LINENO |
| 350 | as_lineno_2=$LINENO |
| 351 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 352 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 353 | |
| 354 | _ASEOF |
| 355 | }; then |
| 356 | break |
| 357 | fi |
| 358 | |
| 359 | fi |
| 360 | |
| 361 | done |
| 362 | |
| 363 | if test "x$CONFIG_SHELL" != x; then |
| 364 | for as_var in BASH_ENV ENV |
| 365 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 366 | done |
| 367 | export CONFIG_SHELL |
| 368 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 369 | fi |
| 370 | |
| 371 | |
| 372 | if test $as_have_required = no; then |
| 373 | echo This script requires a shell more modern than all the |
| 374 | echo shells that I found on your system. Please install a |
| 375 | echo modern shell, or manually run the script under such a |
| 376 | echo shell if you do have one. |
| 377 | { (exit 1); exit 1; } |
| 378 | fi |
| 379 | |
| 380 | |
| 381 | fi |
| 382 | |
| 383 | fi |
| 384 | |
| 385 | |
| 386 | |
| 387 | (eval "as_func_return () { |
| 388 | (exit \$1) |
| 389 | } |
| 390 | as_func_success () { |
| 391 | as_func_return 0 |
| 392 | } |
| 393 | as_func_failure () { |
| 394 | as_func_return 1 |
| 395 | } |
| 396 | as_func_ret_success () { |
| 397 | return 0 |
| 398 | } |
| 399 | as_func_ret_failure () { |
| 400 | return 1 |
| 401 | } |
| 402 | |
| 403 | exitcode=0 |
| 404 | if as_func_success; then |
| 405 | : |
| 406 | else |
| 407 | exitcode=1 |
| 408 | echo as_func_success failed. |
| 409 | fi |
| 410 | |
| 411 | if as_func_failure; then |
| 412 | exitcode=1 |
| 413 | echo as_func_failure succeeded. |
| 414 | fi |
| 415 | |
| 416 | if as_func_ret_success; then |
| 417 | : |
| 418 | else |
| 419 | exitcode=1 |
| 420 | echo as_func_ret_success failed. |
| 421 | fi |
| 422 | |
| 423 | if as_func_ret_failure; then |
| 424 | exitcode=1 |
| 425 | echo as_func_ret_failure succeeded. |
| 426 | fi |
| 427 | |
| 428 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 429 | : |
| 430 | else |
| 431 | exitcode=1 |
| 432 | echo positional parameters were not saved. |
| 433 | fi |
| 434 | |
| 435 | test \$exitcode = 0") || { |
| 436 | echo No shell found that supports shell functions. |
| 437 | echo Please tell bug-autoconf@gnu.org about your system, |
| 438 | echo including any error possibly output before this message. |
| 439 | echo This can help us improve future autoconf versions. |
| 440 | echo Configuration will now proceed without shell functions. |
| 441 | } |
| 442 | |
| 443 | |
| 444 | |
| 445 | as_lineno_1=$LINENO |
| 446 | as_lineno_2=$LINENO |
| 447 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 448 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 449 | |
| 450 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 451 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 452 | # line-number line after each line using $LINENO; the second 'sed' |
| 453 | # does the real work. The second script uses 'N' to pair each |
| 454 | # line-number line with the line containing $LINENO, and appends |
| 455 | # trailing '-' during substitution so that $LINENO is not a special |
| 456 | # case at line end. |
| 457 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 458 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 459 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 460 | sed -n ' |
| 461 | p |
| 462 | /[$]LINENO/= |
| 463 | ' <$as_myself | |
| 464 | sed ' |
| 465 | s/[$]LINENO.*/&-/ |
| 466 | t lineno |
| 467 | b |
| 468 | :lineno |
| 469 | N |
| 470 | :loop |
| 471 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 472 | t loop |
| 473 | s/-\n.*// |
| 474 | ' >$as_me.lineno && |
| 475 | chmod +x "$as_me.lineno" || |
| 476 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 477 | { (exit 1); exit 1; }; } |
| 478 | |
| 479 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 480 | # (the dirname of $[0] is not the place where we might find the |
| 481 | # original and so on. Autoconf is especially sensitive to this). |
| 482 | . "./$as_me.lineno" |
| 483 | # Exit status is that of the last command. |
| 484 | exit |
| 485 | } |
| 486 | |
| 487 | |
| 488 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 489 | as_dirname=dirname |
| 490 | else |
| 491 | as_dirname=false |
| 492 | fi |
| 493 | |
| 494 | ECHO_C= ECHO_N= ECHO_T= |
| 495 | case `echo -n x` in |
| 496 | -n*) |
| 497 | case `echo 'x\c'` in |
| 498 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 499 | *) ECHO_C='\c';; |
| 500 | esac;; |
| 501 | *) |
| 502 | ECHO_N='-n';; |
| 503 | esac |
| 504 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 505 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 506 | as_expr=expr |
| 507 | else |
| 508 | as_expr=false |
| 509 | fi |
| 510 | |
| 511 | rm -f conf$$ conf$$.exe conf$$.file |
| 512 | if test -d conf$$.dir; then |
| 513 | rm -f conf$$.dir/conf$$.file |
| 514 | else |
| 515 | rm -f conf$$.dir |
| 516 | mkdir conf$$.dir 2>/dev/null |
| 517 | fi |
| 518 | if (echo >conf$$.file) 2>/dev/null; then |
| 519 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 520 | as_ln_s='ln -s' |
| 521 | # ... but there are two gotchas: |
| 522 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 523 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 524 | # In both cases, we have to default to `cp -p'. |
| 525 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 526 | as_ln_s='cp -p' |
| 527 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 528 | as_ln_s=ln |
| 529 | else |
| 530 | as_ln_s='cp -p' |
| 531 | fi |
| 532 | else |
| 533 | as_ln_s='cp -p' |
| 534 | fi |
| 535 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 536 | rmdir conf$$.dir 2>/dev/null |
| 537 | |
| 538 | if mkdir -p . 2>/dev/null; then |
| 539 | as_mkdir_p=: |
| 540 | else |
| 541 | test -d ./-p && rmdir ./-p |
| 542 | as_mkdir_p=false |
| 543 | fi |
| 544 | |
| 545 | if test -x / >/dev/null 2>&1; then |
| 546 | as_test_x='test -x' |
| 547 | else |
| 548 | if ls -dL / >/dev/null 2>&1; then |
| 549 | as_ls_L_option=L |
| 550 | else |
| 551 | as_ls_L_option= |
| 552 | fi |
| 553 | as_test_x=' |
| 554 | eval sh -c '\'' |
| 555 | if test -d "$1"; then |
| 556 | test -d "$1/."; |
| 557 | else |
| 558 | case $1 in |
| 559 | -*)set "./$1";; |
| 560 | esac; |
| 561 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 562 | ???[sx]*):;;*)false;;esac;fi |
| 563 | '\'' sh |
| 564 | ' |
| 565 | fi |
| 566 | as_executable_p=$as_test_x |
| 567 | |
| 568 | # Sed expression to map a string onto a valid CPP name. |
| 569 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 570 | |
| 571 | # Sed expression to map a string onto a valid variable name. |
| 572 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 573 | |
| 574 | |
| 575 | |
| 576 | |
| 577 | # Check that we are running under the correct shell. |
| 578 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 579 | |
| 580 | case X$lt_ECHO in |
| 581 | X*--fallback-echo) |
| 582 | # Remove one level of quotation (which was required for Make). |
| 583 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 584 | ;; |
| 585 | esac |
| 586 | |
| 587 | ECHO=${lt_ECHO-echo} |
| 588 | if test "X$1" = X--no-reexec; then |
| 589 | # Discard the --no-reexec flag, and continue. |
| 590 | shift |
| 591 | elif test "X$1" = X--fallback-echo; then |
| 592 | # Avoid inline document here, it may be left over |
| 593 | : |
| 594 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
| 595 | # Yippee, $ECHO works! |
| 596 | : |
| 597 | else |
| 598 | # Restart under the correct shell. |
| 599 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 600 | fi |
| 601 | |
| 602 | if test "X$1" = X--fallback-echo; then |
| 603 | # used as fallback echo |
| 604 | shift |
| 605 | cat <<_LT_EOF |
| 606 | $* |
| 607 | _LT_EOF |
| 608 | exit 0 |
| 609 | fi |
| 610 | |
| 611 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 612 | # if CDPATH is set. |
| 613 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 614 | |
| 615 | if test -z "$lt_ECHO"; then |
| 616 | if test "X${echo_test_string+set}" != Xset; then |
| 617 | # find a string as large as possible, as long as the shell can cope with it |
| 618 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 619 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 620 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && |
| 621 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null |
| 622 | then |
| 623 | break |
| 624 | fi |
| 625 | done |
| 626 | fi |
| 627 | |
| 628 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 629 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 630 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 631 | : |
| 632 | else |
| 633 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 634 | # backslashes. This makes it impossible to quote backslashes using |
| 635 | # echo "$something" | sed 's/\\/\\\\/g' |
| 636 | # |
| 637 | # So, first we look for a working echo in the user's PATH. |
| 638 | |
| 639 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 640 | for dir in $PATH /usr/ucb; do |
| 641 | IFS="$lt_save_ifs" |
| 642 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 643 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 644 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 645 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 646 | ECHO="$dir/echo" |
| 647 | break |
| 648 | fi |
| 649 | done |
| 650 | IFS="$lt_save_ifs" |
| 651 | |
| 652 | if test "X$ECHO" = Xecho; then |
| 653 | # We didn't find a better echo, so look for alternatives. |
| 654 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && |
| 655 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && |
| 656 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 657 | # This shell has a builtin print -r that does the trick. |
| 658 | ECHO='print -r' |
| 659 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && |
| 660 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 661 | # If we have ksh, try running configure again with it. |
| 662 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 663 | export ORIGINAL_CONFIG_SHELL |
| 664 | CONFIG_SHELL=/bin/ksh |
| 665 | export CONFIG_SHELL |
| 666 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 667 | else |
| 668 | # Try using printf. |
| 669 | ECHO='printf %s\n' |
| 670 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 671 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 672 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 673 | # Cool, printf works |
| 674 | : |
| 675 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 676 | test "X$echo_testing_string" = 'X\t' && |
| 677 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 678 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 679 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 680 | export CONFIG_SHELL |
| 681 | SHELL="$CONFIG_SHELL" |
| 682 | export SHELL |
| 683 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 684 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 685 | test "X$echo_testing_string" = 'X\t' && |
| 686 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 687 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 688 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 689 | else |
| 690 | # maybe with a smaller string... |
| 691 | prev=: |
| 692 | |
| 693 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 694 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null |
| 695 | then |
| 696 | break |
| 697 | fi |
| 698 | prev="$cmd" |
| 699 | done |
| 700 | |
| 701 | if test "$prev" != 'sed 50q "$0"'; then |
| 702 | echo_test_string=`eval $prev` |
| 703 | export echo_test_string |
| 704 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 705 | else |
| 706 | # Oops. We lost completely, so just stick with echo. |
| 707 | ECHO=echo |
| 708 | fi |
| 709 | fi |
| 710 | fi |
| 711 | fi |
| 712 | fi |
| 713 | fi |
| 714 | |
| 715 | # Copy echo and quote the copy suitably for passing to libtool from |
| 716 | # the Makefile, instead of quoting the original, which is used later. |
| 717 | lt_ECHO=$ECHO |
| 718 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 719 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 720 | fi |
| 721 | |
| 722 | |
| 723 | |
| 724 | |
| 725 | lt_ltdl_dir='ltdl' |
| 726 | |
| 727 | lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/" |
| 728 | |
| 729 | exec 7<&0 </dev/null 6>&1 |
| 730 | |
| 731 | # Name of the host. |
| 732 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 733 | # so uname gets run too. |
| 734 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 735 | |
| 736 | # |
| 737 | # Initializations. |
| 738 | # |
| 739 | ac_default_prefix=/usr/local |
| 740 | ac_clean_files= |
| 741 | ac_config_libobj_dir=. |
| 742 | LIBOBJS= |
| 743 | cross_compiling=no |
| 744 | subdirs= |
| 745 | MFLAGS= |
| 746 | MAKEFLAGS= |
| 747 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 748 | |
| 749 | # Identity of this package. |
| 750 | PACKAGE_NAME='ImageMagick' |
| 751 | PACKAGE_TARNAME='ImageMagick' |
| 752 | PACKAGE_VERSION='6.5.5' |
| 753 | PACKAGE_STRING='ImageMagick 6.5.5' |
| 754 | PACKAGE_BUGREPORT='http://www.imagemagick.org' |
| 755 | |
| 756 | ac_unique_file="magick/MagickCore.h" |
| 757 | ac_config_libobj_dir=ltdl |
| 758 | # Factoring default headers for most tests. |
| 759 | ac_includes_default="\ |
| 760 | #include <stdio.h> |
| 761 | #ifdef HAVE_SYS_TYPES_H |
| 762 | # include <sys/types.h> |
| 763 | #endif |
| 764 | #ifdef HAVE_SYS_STAT_H |
| 765 | # include <sys/stat.h> |
| 766 | #endif |
| 767 | #ifdef STDC_HEADERS |
| 768 | # include <stdlib.h> |
| 769 | # include <stddef.h> |
| 770 | #else |
| 771 | # ifdef HAVE_STDLIB_H |
| 772 | # include <stdlib.h> |
| 773 | # endif |
| 774 | #endif |
| 775 | #ifdef HAVE_STRING_H |
| 776 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 777 | # include <memory.h> |
| 778 | # endif |
| 779 | # include <string.h> |
| 780 | #endif |
| 781 | #ifdef HAVE_STRINGS_H |
| 782 | # include <strings.h> |
| 783 | #endif |
| 784 | #ifdef HAVE_INTTYPES_H |
| 785 | # include <inttypes.h> |
| 786 | #endif |
| 787 | #ifdef HAVE_STDINT_H |
| 788 | # include <stdint.h> |
| 789 | #endif |
| 790 | #ifdef HAVE_UNISTD_H |
| 791 | # include <unistd.h> |
| 792 | #endif" |
| 793 | |
| 794 | ac_subst_vars='ltdl_LTLIBOBJS |
| 795 | ltdl_LIBOBJS |
| 796 | am__EXEEXT_FALSE |
| 797 | am__EXEEXT_TRUE |
| 798 | LTLIBOBJS |
| 799 | MAGICK_LIBS |
| 800 | MAGICK_LDFLAGS |
| 801 | MAGICK_PCFLAGS |
| 802 | MAGICK_CPPFLAGS |
| 803 | MAGICK_CXXFLAGS |
| 804 | MAGICK_CFLAGS |
| 805 | MAGICK_DEP_LIBS |
| 806 | MAGICK_LTDLDEPS |
| 807 | MAGICK_LIBLTDL |
| 808 | OSX_GCOV_LDFLAG |
| 809 | DELEGATES |
| 810 | MAGICKCORE_PATH |
| 811 | PERL_SUPPORTS_DESTDIR |
| 812 | WITH_PERL_DYNAMIC_FALSE |
| 813 | WITH_PERL_DYNAMIC_TRUE |
| 814 | WITH_PERL_STATIC_FALSE |
| 815 | WITH_PERL_STATIC_TRUE |
| 816 | WITH_PERL_FALSE |
| 817 | WITH_PERL_TRUE |
| 818 | GSVersion |
| 819 | GSPSDevice |
| 820 | GSPDFDevice |
| 821 | GSMonoDevice |
| 822 | GSEPSDevice |
| 823 | GSColorDevice |
| 824 | GSCMYKDevice |
| 825 | GSAlphaDevice |
| 826 | XPSVersion |
| 827 | XPSCMYKDevice |
| 828 | XPSColorDevice |
| 829 | XPSMonoDevice |
| 830 | PCLVersion |
| 831 | PCLCMYKDevice |
| 832 | PCLColorDevice |
| 833 | PCLMonoDevice |
| 834 | ZIP_DELEGATE_FALSE |
| 835 | ZIP_DELEGATE_TRUE |
| 836 | ZIP |
| 837 | P7ZIP_DELEGATE_FALSE |
| 838 | P7ZIP_DELEGATE_TRUE |
| 839 | P7ZIP |
| 840 | RPM_DELEGATE_FALSE |
| 841 | RPM_DELEGATE_TRUE |
| 842 | RPM |
| 843 | PERL |
| 844 | TAR |
| 845 | ShowImageDelegate |
| 846 | type_include_files |
| 847 | ghostscript_font_dir |
| 848 | windows_font_dir |
| 849 | PrintDelegate |
| 850 | ZipDelegate |
| 851 | XPSDelegate |
| 852 | WWWDecodeDelegate |
| 853 | WMFDecodeDelegate |
| 854 | TXTDelegate |
| 855 | SCANDecodeDelegate |
| 856 | RMDelegate |
| 857 | RLEEncodeDelegate |
| 858 | PSDelegate |
| 859 | POVDelegate |
| 860 | PGPDecodeDelegate |
| 861 | PCLDelegate |
| 862 | MVDelegate |
| 863 | MPEGEncodeDelegate |
| 864 | MPEGDecodeDelegate |
| 865 | MANDelegate |
| 866 | LaunchDelegate |
| 867 | LZWEncodeDelegate |
| 868 | LZWDecodeDelegate |
| 869 | LPRDelegate |
| 870 | LPDelegate |
| 871 | ILBMEncodeDelegate |
| 872 | ILBMDecodeDelegate |
| 873 | HTMLDecodeDelegate |
| 874 | HPGLDecodeDelegate |
| 875 | HDRDecodeDelegate |
| 876 | GnuplotDecodeDelegate |
| 877 | MogrifyDelegate |
| 878 | DisplayDelegate |
| 879 | ConvertDelegate |
| 880 | FIGDecodeDelegate |
| 881 | EditorDelegate |
| 882 | EchoDelegate |
| 883 | DVIDecodeDelegate |
| 884 | GVCDecodeDelegate |
| 885 | DNGDecodeDelegate |
| 886 | CatDelegate |
| 887 | CGMDecodeDelegate |
| 888 | BrowseDelegate |
| 889 | BZIPDelegate |
| 890 | BlenderDecodeDelegate |
| 891 | AVIDecodeDelegate |
| 892 | AutotraceDecodeDelegate |
| 893 | SHARE_CONFIGURE_PATH |
| 894 | SHARE_PATH |
| 895 | DOCUMENTATION_PATH |
| 896 | FILTER_PATH |
| 897 | CODER_PATH |
| 898 | CONFIGURE_PATH |
| 899 | LIBRARY_PATH |
| 900 | EXECUTABLE_PATH |
| 901 | PERLMAINCC |
| 902 | XML_LIBS |
| 903 | XML_DELEGATE_FALSE |
| 904 | XML_DELEGATE_TRUE |
| 905 | xml2_config |
| 906 | WMF_LIBS_DEPS |
| 907 | WMF_LIBS |
| 908 | WMF_DELEGATE_FALSE |
| 909 | WMF_DELEGATE_TRUE |
| 910 | TIFF_LIBS |
| 911 | TIFF_DELEGATE_FALSE |
| 912 | TIFF_DELEGATE_TRUE |
| 913 | CAIRO_DELEGATE_FALSE |
| 914 | CAIRO_DELEGATE_TRUE |
| 915 | RSVG_DELEGATE_FALSE |
| 916 | RSVG_DELEGATE_TRUE |
| 917 | CAIRO_SVG_LIBS |
| 918 | CAIRO_SVG_CFLAGS |
| 919 | RSVG_LIBS |
| 920 | RSVG_CFLAGS |
| 921 | PNG_LIBS |
| 922 | PNG_DELEGATE_FALSE |
| 923 | PNG_DELEGATE_TRUE |
| 924 | OPENEXR_DELEGATE_FALSE |
| 925 | OPENEXR_DELEGATE_TRUE |
| 926 | OPENEXR_LIBS |
| 927 | OPENEXR_CFLAGS |
| 928 | LQR_DELEGATE_FALSE |
| 929 | LQR_DELEGATE_TRUE |
| 930 | LQR_LIBS |
| 931 | LQR_CFLAGS |
| 932 | LCMS_LIBS |
| 933 | LCMS_DELEGATE_FALSE |
| 934 | LCMS_DELEGATE_TRUE |
| 935 | JP2_LIBS |
| 936 | JP2_DELEGATE_FALSE |
| 937 | JP2_DELEGATE_TRUE |
| 938 | JPEG_LIBS |
| 939 | JPEG_DELEGATE_FALSE |
| 940 | JPEG_DELEGATE_TRUE |
| 941 | JBIG_LIBS |
| 942 | JBIG_DELEGATE_FALSE |
| 943 | JBIG_DELEGATE_TRUE |
| 944 | GVC_DELEGATE_FALSE |
| 945 | GVC_DELEGATE_TRUE |
| 946 | GVC_LIBS |
| 947 | GVC_CFLAGS |
| 948 | GS_LIBS |
| 949 | GS_DELEGATE_FALSE |
| 950 | GS_DELEGATE_TRUE |
| 951 | FREETYPE_LIBS |
| 952 | FREETYPE_DELEGATE_FALSE |
| 953 | FREETYPE_DELEGATE_TRUE |
| 954 | freetype_config |
| 955 | FONTCONFIG_DELEGATE_FALSE |
| 956 | FONTCONFIG_DELEGATE_TRUE |
| 957 | FONTCONFIG_LIBS |
| 958 | FONTCONFIG_CFLAGS |
| 959 | FPX_LIBS |
| 960 | FPX_DELEGATE_FALSE |
| 961 | FPX_DELEGATE_TRUE |
| 962 | FFTW_LIBS |
| 963 | FFTW_DELEGATE_FALSE |
| 964 | FFTW_DELEGATE_TRUE |
| 965 | DJVU_LIBS |
| 966 | DJVU_DELEGATE_FALSE |
| 967 | DJVU_DELEGATE_TRUE |
| 968 | DPS_LIBS |
| 969 | DPS_DELEGATE_FALSE |
| 970 | DPS_DELEGATE_TRUE |
| 971 | AUTOTRACE_DELEGATE_FALSE |
| 972 | AUTOTRACE_DELEGATE_TRUE |
| 973 | AUTOTRACE_LIBS |
| 974 | AUTOTRACE_CFLAGS |
| 975 | LIB_DL |
| 976 | ZLIB_LIBS |
| 977 | ZLIB_DELEGATE_FALSE |
| 978 | ZLIB_DELEGATE_TRUE |
| 979 | XEXT_LIBS |
| 980 | X11_LIBS |
| 981 | X11_DELEGATE_FALSE |
| 982 | X11_DELEGATE_TRUE |
| 983 | X_EXTRA_LIBS |
| 984 | X_LIBS |
| 985 | X_PRE_LIBS |
| 986 | X_CFLAGS |
| 987 | XMKMF |
| 988 | BZLIB_LIBS |
| 989 | BZLIB_DELEGATE_FALSE |
| 990 | BZLIB_DELEGATE_TRUE |
| 991 | MATH_LIBS |
| 992 | CCMALLOCDelegate |
| 993 | UMEM_LIBS |
| 994 | HasUMEM_FALSE |
| 995 | HasUMEM_TRUE |
| 996 | THREAD_LIBS |
| 997 | GOMP_LIBS |
| 998 | WITH_MAGICK_PLUS_PLUS_FALSE |
| 999 | WITH_MAGICK_PLUS_PLUS_TRUE |
| 1000 | OPENMP_CXXFLAGS |
| 1001 | POW_LIB |
| 1002 | LIBOBJS |
| 1003 | UINTPTR_T |
| 1004 | UINTMAX_T |
| 1005 | UINT64_T |
| 1006 | INT64_T |
| 1007 | UINT32_T |
| 1008 | INT32_T |
| 1009 | UINT16_T |
| 1010 | INT16_T |
| 1011 | UINT8_T |
| 1012 | INT8_T |
| 1013 | LIBRARY_EXTRA_CPPFLAGS |
| 1014 | MODULE_EXTRA_CPPFLAGS |
| 1015 | LIBSTDCLDFLAGS |
| 1016 | PERL_MAKE_OPTIONS |
| 1017 | QUANTUM_DEPTH |
| 1018 | MAINT |
| 1019 | MAINTAINER_MODE_FALSE |
| 1020 | MAINTAINER_MODE_TRUE |
| 1021 | MAGICK_HDRI |
| 1022 | DLLDFLAGS |
| 1023 | WITH_LTDL_FALSE |
| 1024 | WITH_LTDL_TRUE |
| 1025 | WITH_MODULES_FALSE |
| 1026 | WITH_MODULES_TRUE |
| 1027 | LTCXXLIBOPTS |
| 1028 | LTDLOPEN |
| 1029 | LT_CONFIG_H |
| 1030 | CONVENIENCE_LTDL_FALSE |
| 1031 | CONVENIENCE_LTDL_TRUE |
| 1032 | INSTALL_LTDL_FALSE |
| 1033 | INSTALL_LTDL_TRUE |
| 1034 | ARGZ_H |
| 1035 | sys_symbol_underscore |
| 1036 | LIBADD_DL |
| 1037 | LT_DLPREOPEN |
| 1038 | LIBADD_DLD_LINK |
| 1039 | LIBADD_SHL_LOAD |
| 1040 | LIBADD_DLOPEN |
| 1041 | LT_DLLOADERS |
| 1042 | INCLTDL |
| 1043 | LTDLINCL |
| 1044 | LTDLDEPS |
| 1045 | LIBLTDL |
| 1046 | LIBTOOL_DEPS |
| 1047 | CXXCPP |
| 1048 | OTOOL64 |
| 1049 | OTOOL |
| 1050 | LIPO |
| 1051 | NMEDIT |
| 1052 | DSYMUTIL |
| 1053 | lt_ECHO |
| 1054 | AR |
| 1055 | NM |
| 1056 | ac_ct_DUMPBIN |
| 1057 | DUMPBIN |
| 1058 | LIBTOOL |
| 1059 | OBJDUMP |
| 1060 | DLLTOOL |
| 1061 | AS |
| 1062 | LFS_CPPFLAGS |
| 1063 | OPENMP_CFLAGS |
| 1064 | PTHREAD_CFLAGS |
| 1065 | PTHREAD_LIBS |
| 1066 | PTHREAD_CXX |
| 1067 | PTHREAD_CC |
| 1068 | acx_pthread_config |
| 1069 | WinPathScript |
| 1070 | USING_CL_FALSE |
| 1071 | USING_CL_TRUE |
| 1072 | CYGWIN_BUILD_FALSE |
| 1073 | CYGWIN_BUILD_TRUE |
| 1074 | WIN32_NATIVE_BUILD_FALSE |
| 1075 | WIN32_NATIVE_BUILD_TRUE |
| 1076 | WINGDI32_DELEGATE_FALSE |
| 1077 | WINGDI32_DELEGATE_TRUE |
| 1078 | GDI32_LIBS |
| 1079 | PKG_CONFIG |
| 1080 | LN_S |
| 1081 | am__fastdepCXX_FALSE |
| 1082 | am__fastdepCXX_TRUE |
| 1083 | CXXDEPMODE |
| 1084 | ac_ct_CXX |
| 1085 | CXXFLAGS |
| 1086 | CXX |
| 1087 | RANLIB |
| 1088 | LD |
| 1089 | FGREP |
| 1090 | EGREP |
| 1091 | GREP |
| 1092 | SED |
| 1093 | CPP |
| 1094 | am__fastdepCC_FALSE |
| 1095 | am__fastdepCC_TRUE |
| 1096 | CCDEPMODE |
| 1097 | AMDEPBACKSLASH |
| 1098 | AMDEP_FALSE |
| 1099 | AMDEP_TRUE |
| 1100 | am__quote |
| 1101 | am__include |
| 1102 | DEPDIR |
| 1103 | OBJEXT |
| 1104 | EXEEXT |
| 1105 | ac_ct_CC |
| 1106 | CPPFLAGS |
| 1107 | LDFLAGS |
| 1108 | CFLAGS |
| 1109 | CC |
| 1110 | DIRSEP |
| 1111 | MAGICK_FILTER_MODULE_PATH |
| 1112 | MAGICK_CONFIGURE_BUILD_PATH |
| 1113 | MAGICK_CONFIGURE_SRC_PATH |
| 1114 | MAGICK_CODER_MODULE_PATH |
| 1115 | MAN_DIR |
| 1116 | INFO_DIR |
| 1117 | PERSISTINCLUDE_DIR |
| 1118 | INCLUDE_DIR |
| 1119 | LIB_DIR |
| 1120 | LOCALSTATE_DIR |
| 1121 | SHAREDSTATE_DIR |
| 1122 | SYSCONF_DIR |
| 1123 | DATA_DIR |
| 1124 | LIBEXEC_DIR |
| 1125 | SBIN_DIR |
| 1126 | BIN_DIR |
| 1127 | EXEC_PREFIX_DIR |
| 1128 | PREFIX_DIR |
| 1129 | CONFIG_STATUS_DEPENDENCIES |
| 1130 | MAGICK_LIB_VERSION_NUMBER |
| 1131 | MAGICK_LIB_VERSION_TEXT |
| 1132 | MAGICK_LIB_VERSION |
| 1133 | AM_BACKSLASH |
| 1134 | AM_DEFAULT_VERBOSITY |
| 1135 | am__untar |
| 1136 | am__tar |
| 1137 | AMTAR |
| 1138 | am__leading_dot |
| 1139 | SET_MAKE |
| 1140 | AWK |
| 1141 | mkdir_p |
| 1142 | MKDIR_P |
| 1143 | INSTALL_STRIP_PROGRAM |
| 1144 | STRIP |
| 1145 | install_sh |
| 1146 | MAKEINFO |
| 1147 | AUTOHEADER |
| 1148 | AUTOMAKE |
| 1149 | AUTOCONF |
| 1150 | ACLOCAL |
| 1151 | VERSION |
| 1152 | PACKAGE |
| 1153 | CYGPATH_W |
| 1154 | am__isrc |
| 1155 | INSTALL_DATA |
| 1156 | INSTALL_SCRIPT |
| 1157 | INSTALL_PROGRAM |
| 1158 | PACKAGE_LIB_SUBVERSION |
| 1159 | PACKAGE_RELEASE_DATE |
| 1160 | PACKAGE_LIB_VERSION_NUMBER |
| 1161 | PACKAGE_LIB_VERSION |
| 1162 | PACKAGE_CHANGE_DATE |
| 1163 | PACKAGE_RELEASE |
| 1164 | MAGICK_LIBRARY_AGE |
| 1165 | MAGICK_LIBRARY_REVISION |
| 1166 | MAGICK_LIBRARY_CURRENT |
| 1167 | target_os |
| 1168 | target_vendor |
| 1169 | target_cpu |
| 1170 | target |
| 1171 | host_os |
| 1172 | host_vendor |
| 1173 | host_cpu |
| 1174 | host |
| 1175 | build_os |
| 1176 | build_vendor |
| 1177 | build_cpu |
| 1178 | build |
| 1179 | CONFIGURE_ARGS |
| 1180 | DISTCHECK_CONFIG_FLAGS |
| 1181 | target_alias |
| 1182 | host_alias |
| 1183 | build_alias |
| 1184 | LIBS |
| 1185 | ECHO_T |
| 1186 | ECHO_N |
| 1187 | ECHO_C |
| 1188 | DEFS |
| 1189 | mandir |
| 1190 | localedir |
| 1191 | libdir |
| 1192 | psdir |
| 1193 | pdfdir |
| 1194 | dvidir |
| 1195 | htmldir |
| 1196 | infodir |
| 1197 | docdir |
| 1198 | oldincludedir |
| 1199 | includedir |
| 1200 | localstatedir |
| 1201 | sharedstatedir |
| 1202 | sysconfdir |
| 1203 | datadir |
| 1204 | datarootdir |
| 1205 | libexecdir |
| 1206 | sbindir |
| 1207 | bindir |
| 1208 | program_transform_name |
| 1209 | prefix |
| 1210 | exec_prefix |
| 1211 | PACKAGE_BUGREPORT |
| 1212 | PACKAGE_STRING |
| 1213 | PACKAGE_VERSION |
| 1214 | PACKAGE_TARNAME |
| 1215 | PACKAGE_NAME |
| 1216 | PATH_SEPARATOR |
| 1217 | SHELL' |
| 1218 | ac_subst_files='' |
| 1219 | ac_user_opts=' |
| 1220 | enable_option_checking |
| 1221 | enable_silent_rules |
| 1222 | enable_dependency_tracking |
| 1223 | with_gnu_ld |
| 1224 | with_maximum_compile_warnings |
| 1225 | with_dmalloc |
| 1226 | enable_bounds_checking |
| 1227 | enable_osx_universal_binary |
| 1228 | with_threads |
| 1229 | enable_openmp |
| 1230 | enable_largefile |
| 1231 | enable_shared |
| 1232 | enable_static |
| 1233 | with_pic |
| 1234 | enable_fast_install |
| 1235 | enable_libtool_lock |
| 1236 | with_included_ltdl |
| 1237 | with_ltdl_include |
| 1238 | with_ltdl_lib |
| 1239 | enable_ltdl_install |
| 1240 | with_modules |
| 1241 | enable_delegate_build |
| 1242 | enable_deprecated |
| 1243 | enable_installed |
| 1244 | enable_cipher |
| 1245 | enable_embeddable |
| 1246 | enable_hdri |
| 1247 | enable_libtool_verbose |
| 1248 | enable_assert |
| 1249 | enable_maintainer_mode |
| 1250 | enable_ccmalloc |
| 1251 | enable_efence |
| 1252 | enable_prof |
| 1253 | enable_gprof |
| 1254 | enable_gcov |
| 1255 | with_method_prefix |
| 1256 | with_quantum_depth |
| 1257 | with_cache |
| 1258 | with_frozenpaths |
| 1259 | with_magick_plus_plus |
| 1260 | with_perl |
| 1261 | with_perl_options |
| 1262 | with_umem |
| 1263 | with_libstdc |
| 1264 | with_bzlib |
| 1265 | with_x |
| 1266 | with_zlib |
| 1267 | with_autotrace |
| 1268 | with_dps |
| 1269 | with_djvu |
| 1270 | with_fftw |
| 1271 | with_fpx |
| 1272 | with_fontconfig |
| 1273 | with_freetype |
| 1274 | with_gslib |
| 1275 | with_fontpath |
| 1276 | with_gs_font_dir |
| 1277 | with_gvc |
| 1278 | with_jbig |
| 1279 | with_jpeg |
| 1280 | with_jp2 |
| 1281 | with_lcms |
| 1282 | with_lqr |
| 1283 | with_openexr |
| 1284 | with_png |
| 1285 | with_rsvg |
| 1286 | with_tiff |
| 1287 | with_windows_font_dir |
| 1288 | with_wmf |
| 1289 | with_xml |
| 1290 | ' |
| 1291 | ac_precious_vars='build_alias |
| 1292 | host_alias |
| 1293 | target_alias |
| 1294 | CC |
| 1295 | CFLAGS |
| 1296 | LDFLAGS |
| 1297 | LIBS |
| 1298 | CPPFLAGS |
| 1299 | CPP |
| 1300 | CXX |
| 1301 | CXXFLAGS |
| 1302 | CCC |
| 1303 | PKG_CONFIG |
| 1304 | CXXCPP |
| 1305 | XMKMF |
| 1306 | AUTOTRACE_CFLAGS |
| 1307 | AUTOTRACE_LIBS |
| 1308 | FONTCONFIG_CFLAGS |
| 1309 | FONTCONFIG_LIBS |
| 1310 | GVC_CFLAGS |
| 1311 | GVC_LIBS |
| 1312 | LQR_CFLAGS |
| 1313 | LQR_LIBS |
| 1314 | OPENEXR_CFLAGS |
| 1315 | OPENEXR_LIBS |
| 1316 | RSVG_CFLAGS |
| 1317 | RSVG_LIBS |
| 1318 | CAIRO_SVG_CFLAGS |
| 1319 | CAIRO_SVG_LIBS' |
| 1320 | |
| 1321 | |
| 1322 | # Initialize some variables set by options. |
| 1323 | ac_init_help= |
| 1324 | ac_init_version=false |
| 1325 | ac_unrecognized_opts= |
| 1326 | ac_unrecognized_sep= |
| 1327 | # The variables have the same names as the options, with |
| 1328 | # dashes changed to underlines. |
| 1329 | cache_file=/dev/null |
| 1330 | exec_prefix=NONE |
| 1331 | no_create= |
| 1332 | no_recursion= |
| 1333 | prefix=NONE |
| 1334 | program_prefix=NONE |
| 1335 | program_suffix=NONE |
| 1336 | program_transform_name=s,x,x, |
| 1337 | silent= |
| 1338 | site= |
| 1339 | srcdir= |
| 1340 | verbose= |
| 1341 | x_includes=NONE |
| 1342 | x_libraries=NONE |
| 1343 | |
| 1344 | # Installation directory options. |
| 1345 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 1346 | # and all the variables that are supposed to be based on exec_prefix |
| 1347 | # by default will actually change. |
| 1348 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 1349 | # (The list follows the same order as the GNU Coding Standards.) |
| 1350 | bindir='${exec_prefix}/bin' |
| 1351 | sbindir='${exec_prefix}/sbin' |
| 1352 | libexecdir='${exec_prefix}/libexec' |
| 1353 | datarootdir='${prefix}/share' |
| 1354 | datadir='${datarootdir}' |
| 1355 | sysconfdir='${prefix}/etc' |
| 1356 | sharedstatedir='${prefix}/com' |
| 1357 | localstatedir='${prefix}/var' |
| 1358 | includedir='${prefix}/include' |
| 1359 | oldincludedir='/usr/include' |
| 1360 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 1361 | infodir='${datarootdir}/info' |
| 1362 | htmldir='${docdir}' |
| 1363 | dvidir='${docdir}' |
| 1364 | pdfdir='${docdir}' |
| 1365 | psdir='${docdir}' |
| 1366 | libdir='${exec_prefix}/lib' |
| 1367 | localedir='${datarootdir}/locale' |
| 1368 | mandir='${datarootdir}/man' |
| 1369 | |
| 1370 | ac_prev= |
| 1371 | ac_dashdash= |
| 1372 | for ac_option |
| 1373 | do |
| 1374 | # If the previous option needs an argument, assign it. |
| 1375 | if test -n "$ac_prev"; then |
| 1376 | eval $ac_prev=\$ac_option |
| 1377 | ac_prev= |
| 1378 | continue |
| 1379 | fi |
| 1380 | |
| 1381 | case $ac_option in |
| 1382 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1383 | *) ac_optarg=yes ;; |
| 1384 | esac |
| 1385 | |
| 1386 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1387 | |
| 1388 | case $ac_dashdash$ac_option in |
| 1389 | --) |
| 1390 | ac_dashdash=yes ;; |
| 1391 | |
| 1392 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1393 | ac_prev=bindir ;; |
| 1394 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1395 | bindir=$ac_optarg ;; |
| 1396 | |
| 1397 | -build | --build | --buil | --bui | --bu) |
| 1398 | ac_prev=build_alias ;; |
| 1399 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1400 | build_alias=$ac_optarg ;; |
| 1401 | |
| 1402 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1403 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1404 | ac_prev=cache_file ;; |
| 1405 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1406 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1407 | cache_file=$ac_optarg ;; |
| 1408 | |
| 1409 | --config-cache | -C) |
| 1410 | cache_file=config.cache ;; |
| 1411 | |
| 1412 | -datadir | --datadir | --datadi | --datad) |
| 1413 | ac_prev=datadir ;; |
| 1414 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 1415 | datadir=$ac_optarg ;; |
| 1416 | |
| 1417 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1418 | | --dataroo | --dataro | --datar) |
| 1419 | ac_prev=datarootdir ;; |
| 1420 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1421 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1422 | datarootdir=$ac_optarg ;; |
| 1423 | |
| 1424 | -disable-* | --disable-*) |
| 1425 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1426 | # Reject names that are not valid shell variable names. |
| 1427 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1428 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
| 1429 | { (exit 1); exit 1; }; } |
| 1430 | ac_useropt_orig=$ac_useropt |
| 1431 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1432 | case $ac_user_opts in |
| 1433 | *" |
| 1434 | "enable_$ac_useropt" |
| 1435 | "*) ;; |
| 1436 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1437 | ac_unrecognized_sep=', ';; |
| 1438 | esac |
| 1439 | eval enable_$ac_useropt=no ;; |
| 1440 | |
| 1441 | -docdir | --docdir | --docdi | --doc | --do) |
| 1442 | ac_prev=docdir ;; |
| 1443 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1444 | docdir=$ac_optarg ;; |
| 1445 | |
| 1446 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1447 | ac_prev=dvidir ;; |
| 1448 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1449 | dvidir=$ac_optarg ;; |
| 1450 | |
| 1451 | -enable-* | --enable-*) |
| 1452 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1453 | # Reject names that are not valid shell variable names. |
| 1454 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1455 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
| 1456 | { (exit 1); exit 1; }; } |
| 1457 | ac_useropt_orig=$ac_useropt |
| 1458 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1459 | case $ac_user_opts in |
| 1460 | *" |
| 1461 | "enable_$ac_useropt" |
| 1462 | "*) ;; |
| 1463 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1464 | ac_unrecognized_sep=', ';; |
| 1465 | esac |
| 1466 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 1467 | |
| 1468 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1469 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1470 | | --exec | --exe | --ex) |
| 1471 | ac_prev=exec_prefix ;; |
| 1472 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1473 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1474 | | --exec=* | --exe=* | --ex=*) |
| 1475 | exec_prefix=$ac_optarg ;; |
| 1476 | |
| 1477 | -gas | --gas | --ga | --g) |
| 1478 | # Obsolete; use --with-gas. |
| 1479 | with_gas=yes ;; |
| 1480 | |
| 1481 | -help | --help | --hel | --he | -h) |
| 1482 | ac_init_help=long ;; |
| 1483 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1484 | ac_init_help=recursive ;; |
| 1485 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1486 | ac_init_help=short ;; |
| 1487 | |
| 1488 | -host | --host | --hos | --ho) |
| 1489 | ac_prev=host_alias ;; |
| 1490 | -host=* | --host=* | --hos=* | --ho=*) |
| 1491 | host_alias=$ac_optarg ;; |
| 1492 | |
| 1493 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1494 | ac_prev=htmldir ;; |
| 1495 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1496 | | --ht=*) |
| 1497 | htmldir=$ac_optarg ;; |
| 1498 | |
| 1499 | -includedir | --includedir | --includedi | --included | --include \ |
| 1500 | | --includ | --inclu | --incl | --inc) |
| 1501 | ac_prev=includedir ;; |
| 1502 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1503 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1504 | includedir=$ac_optarg ;; |
| 1505 | |
| 1506 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1507 | ac_prev=infodir ;; |
| 1508 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1509 | infodir=$ac_optarg ;; |
| 1510 | |
| 1511 | -libdir | --libdir | --libdi | --libd) |
| 1512 | ac_prev=libdir ;; |
| 1513 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1514 | libdir=$ac_optarg ;; |
| 1515 | |
| 1516 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1517 | | --libexe | --libex | --libe) |
| 1518 | ac_prev=libexecdir ;; |
| 1519 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1520 | | --libexe=* | --libex=* | --libe=*) |
| 1521 | libexecdir=$ac_optarg ;; |
| 1522 | |
| 1523 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1524 | ac_prev=localedir ;; |
| 1525 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1526 | localedir=$ac_optarg ;; |
| 1527 | |
| 1528 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1529 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1530 | ac_prev=localstatedir ;; |
| 1531 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1532 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1533 | localstatedir=$ac_optarg ;; |
| 1534 | |
| 1535 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1536 | ac_prev=mandir ;; |
| 1537 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1538 | mandir=$ac_optarg ;; |
| 1539 | |
| 1540 | -nfp | --nfp | --nf) |
| 1541 | # Obsolete; use --without-fp. |
| 1542 | with_fp=no ;; |
| 1543 | |
| 1544 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1545 | | --no-cr | --no-c | -n) |
| 1546 | no_create=yes ;; |
| 1547 | |
| 1548 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1549 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1550 | no_recursion=yes ;; |
| 1551 | |
| 1552 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1553 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1554 | | --oldin | --oldi | --old | --ol | --o) |
| 1555 | ac_prev=oldincludedir ;; |
| 1556 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1557 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1558 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1559 | oldincludedir=$ac_optarg ;; |
| 1560 | |
| 1561 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1562 | ac_prev=prefix ;; |
| 1563 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1564 | prefix=$ac_optarg ;; |
| 1565 | |
| 1566 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1567 | | --program-pre | --program-pr | --program-p) |
| 1568 | ac_prev=program_prefix ;; |
| 1569 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1570 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1571 | program_prefix=$ac_optarg ;; |
| 1572 | |
| 1573 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1574 | | --program-suf | --program-su | --program-s) |
| 1575 | ac_prev=program_suffix ;; |
| 1576 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1577 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1578 | program_suffix=$ac_optarg ;; |
| 1579 | |
| 1580 | -program-transform-name | --program-transform-name \ |
| 1581 | | --program-transform-nam | --program-transform-na \ |
| 1582 | | --program-transform-n | --program-transform- \ |
| 1583 | | --program-transform | --program-transfor \ |
| 1584 | | --program-transfo | --program-transf \ |
| 1585 | | --program-trans | --program-tran \ |
| 1586 | | --progr-tra | --program-tr | --program-t) |
| 1587 | ac_prev=program_transform_name ;; |
| 1588 | -program-transform-name=* | --program-transform-name=* \ |
| 1589 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1590 | | --program-transform-n=* | --program-transform-=* \ |
| 1591 | | --program-transform=* | --program-transfor=* \ |
| 1592 | | --program-transfo=* | --program-transf=* \ |
| 1593 | | --program-trans=* | --program-tran=* \ |
| 1594 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1595 | program_transform_name=$ac_optarg ;; |
| 1596 | |
| 1597 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1598 | ac_prev=pdfdir ;; |
| 1599 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1600 | pdfdir=$ac_optarg ;; |
| 1601 | |
| 1602 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1603 | ac_prev=psdir ;; |
| 1604 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1605 | psdir=$ac_optarg ;; |
| 1606 | |
| 1607 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1608 | | -silent | --silent | --silen | --sile | --sil) |
| 1609 | silent=yes ;; |
| 1610 | |
| 1611 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1612 | ac_prev=sbindir ;; |
| 1613 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1614 | | --sbi=* | --sb=*) |
| 1615 | sbindir=$ac_optarg ;; |
| 1616 | |
| 1617 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1618 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1619 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1620 | | --sha | --sh) |
| 1621 | ac_prev=sharedstatedir ;; |
| 1622 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1623 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1624 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1625 | | --sha=* | --sh=*) |
| 1626 | sharedstatedir=$ac_optarg ;; |
| 1627 | |
| 1628 | -site | --site | --sit) |
| 1629 | ac_prev=site ;; |
| 1630 | -site=* | --site=* | --sit=*) |
| 1631 | site=$ac_optarg ;; |
| 1632 | |
| 1633 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1634 | ac_prev=srcdir ;; |
| 1635 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1636 | srcdir=$ac_optarg ;; |
| 1637 | |
| 1638 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1639 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1640 | ac_prev=sysconfdir ;; |
| 1641 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1642 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1643 | sysconfdir=$ac_optarg ;; |
| 1644 | |
| 1645 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1646 | ac_prev=target_alias ;; |
| 1647 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1648 | target_alias=$ac_optarg ;; |
| 1649 | |
| 1650 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1651 | verbose=yes ;; |
| 1652 | |
| 1653 | -version | --version | --versio | --versi | --vers | -V) |
| 1654 | ac_init_version=: ;; |
| 1655 | |
| 1656 | -with-* | --with-*) |
| 1657 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1658 | # Reject names that are not valid shell variable names. |
| 1659 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1660 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
| 1661 | { (exit 1); exit 1; }; } |
| 1662 | ac_useropt_orig=$ac_useropt |
| 1663 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1664 | case $ac_user_opts in |
| 1665 | *" |
| 1666 | "with_$ac_useropt" |
| 1667 | "*) ;; |
| 1668 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1669 | ac_unrecognized_sep=', ';; |
| 1670 | esac |
| 1671 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1672 | |
| 1673 | -without-* | --without-*) |
| 1674 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1675 | # Reject names that are not valid shell variable names. |
| 1676 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1677 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
| 1678 | { (exit 1); exit 1; }; } |
| 1679 | ac_useropt_orig=$ac_useropt |
| 1680 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1681 | case $ac_user_opts in |
| 1682 | *" |
| 1683 | "with_$ac_useropt" |
| 1684 | "*) ;; |
| 1685 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1686 | ac_unrecognized_sep=', ';; |
| 1687 | esac |
| 1688 | eval with_$ac_useropt=no ;; |
| 1689 | |
| 1690 | --x) |
| 1691 | # Obsolete; use --with-x. |
| 1692 | with_x=yes ;; |
| 1693 | |
| 1694 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1695 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1696 | ac_prev=x_includes ;; |
| 1697 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1698 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1699 | x_includes=$ac_optarg ;; |
| 1700 | |
| 1701 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1702 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1703 | ac_prev=x_libraries ;; |
| 1704 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1705 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1706 | x_libraries=$ac_optarg ;; |
| 1707 | |
| 1708 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
| 1709 | Try \`$0 --help' for more information." >&2 |
| 1710 | { (exit 1); exit 1; }; } |
| 1711 | ;; |
| 1712 | |
| 1713 | *=*) |
| 1714 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1715 | # Reject names that are not valid shell variable names. |
| 1716 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1717 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1718 | { (exit 1); exit 1; }; } |
| 1719 | eval $ac_envvar=\$ac_optarg |
| 1720 | export $ac_envvar ;; |
| 1721 | |
| 1722 | *) |
| 1723 | # FIXME: should be removed in autoconf 3.0. |
| 1724 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1725 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1726 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1727 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1728 | ;; |
| 1729 | |
| 1730 | esac |
| 1731 | done |
| 1732 | |
| 1733 | if test -n "$ac_prev"; then |
| 1734 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1735 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1736 | { (exit 1); exit 1; }; } |
| 1737 | fi |
| 1738 | |
| 1739 | if test -n "$ac_unrecognized_opts"; then |
| 1740 | case $enable_option_checking in |
| 1741 | no) ;; |
| 1742 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 |
| 1743 | { (exit 1); exit 1; }; } ;; |
| 1744 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1745 | esac |
| 1746 | fi |
| 1747 | |
| 1748 | # Check all directory arguments for consistency. |
| 1749 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1750 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1751 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1752 | libdir localedir mandir |
| 1753 | do |
| 1754 | eval ac_val=\$$ac_var |
| 1755 | # Remove trailing slashes. |
| 1756 | case $ac_val in |
| 1757 | */ ) |
| 1758 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1759 | eval $ac_var=\$ac_val;; |
| 1760 | esac |
| 1761 | # Be sure to have absolute directory names. |
| 1762 | case $ac_val in |
| 1763 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1764 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1765 | esac |
| 1766 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1767 | { (exit 1); exit 1; }; } |
| 1768 | done |
| 1769 | |
| 1770 | # There might be people who depend on the old broken behavior: `$host' |
| 1771 | # used to hold the argument of --host etc. |
| 1772 | # FIXME: To remove some day. |
| 1773 | build=$build_alias |
| 1774 | host=$host_alias |
| 1775 | target=$target_alias |
| 1776 | |
| 1777 | # FIXME: To remove some day. |
| 1778 | if test "x$host_alias" != x; then |
| 1779 | if test "x$build_alias" = x; then |
| 1780 | cross_compiling=maybe |
| 1781 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1782 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1783 | elif test "x$build_alias" != "x$host_alias"; then |
| 1784 | cross_compiling=yes |
| 1785 | fi |
| 1786 | fi |
| 1787 | |
| 1788 | ac_tool_prefix= |
| 1789 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1790 | |
| 1791 | test "$silent" = yes && exec 6>/dev/null |
| 1792 | |
| 1793 | |
| 1794 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1795 | ac_ls_di=`ls -di .` && |
| 1796 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1797 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 |
| 1798 | { (exit 1); exit 1; }; } |
| 1799 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1800 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1801 | { (exit 1); exit 1; }; } |
| 1802 | |
| 1803 | |
| 1804 | # Find the source files, if location was not specified. |
| 1805 | if test -z "$srcdir"; then |
| 1806 | ac_srcdir_defaulted=yes |
| 1807 | # Try the directory containing this script, then the parent directory. |
| 1808 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1809 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1810 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1811 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1812 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1813 | $as_echo X"$as_myself" | |
| 1814 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1815 | s//\1/ |
| 1816 | q |
| 1817 | } |
| 1818 | /^X\(\/\/\)[^/].*/{ |
| 1819 | s//\1/ |
| 1820 | q |
| 1821 | } |
| 1822 | /^X\(\/\/\)$/{ |
| 1823 | s//\1/ |
| 1824 | q |
| 1825 | } |
| 1826 | /^X\(\/\).*/{ |
| 1827 | s//\1/ |
| 1828 | q |
| 1829 | } |
| 1830 | s/.*/./; q'` |
| 1831 | srcdir=$ac_confdir |
| 1832 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1833 | srcdir=.. |
| 1834 | fi |
| 1835 | else |
| 1836 | ac_srcdir_defaulted=no |
| 1837 | fi |
| 1838 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1839 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1840 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1841 | { (exit 1); exit 1; }; } |
| 1842 | fi |
| 1843 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1844 | ac_abs_confdir=`( |
| 1845 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
| 1846 | { (exit 1); exit 1; }; } |
| 1847 | pwd)` |
| 1848 | # When building in place, set srcdir=. |
| 1849 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1850 | srcdir=. |
| 1851 | fi |
| 1852 | # Remove unnecessary trailing slashes from srcdir. |
| 1853 | # Double slashes in file names in object file debugging info |
| 1854 | # mess up M-x gdb in Emacs. |
| 1855 | case $srcdir in |
| 1856 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1857 | esac |
| 1858 | for ac_var in $ac_precious_vars; do |
| 1859 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1860 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1861 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1862 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1863 | done |
| 1864 | |
| 1865 | # |
| 1866 | # Report the --help message. |
| 1867 | # |
| 1868 | if test "$ac_init_help" = "long"; then |
| 1869 | # Omit some internal or obsolete options to make the list less imposing. |
| 1870 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1871 | cat <<_ACEOF |
| 1872 | \`configure' configures ImageMagick 6.5.5 to adapt to many kinds of systems. |
| 1873 | |
| 1874 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1875 | |
| 1876 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1877 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1878 | |
| 1879 | Defaults for the options are specified in brackets. |
| 1880 | |
| 1881 | Configuration: |
| 1882 | -h, --help display this help and exit |
| 1883 | --help=short display options specific to this package |
| 1884 | --help=recursive display the short help of all the included packages |
| 1885 | -V, --version display version information and exit |
| 1886 | -q, --quiet, --silent do not print \`checking...' messages |
| 1887 | --cache-file=FILE cache test results in FILE [disabled] |
| 1888 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1889 | -n, --no-create do not create output files |
| 1890 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1891 | |
| 1892 | Installation directories: |
| 1893 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1894 | [$ac_default_prefix] |
| 1895 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1896 | [PREFIX] |
| 1897 | |
| 1898 | By default, \`make install' will install all the files in |
| 1899 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1900 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1901 | for instance \`--prefix=\$HOME'. |
| 1902 | |
| 1903 | For better control, use the options below. |
| 1904 | |
| 1905 | Fine tuning of the installation directories: |
| 1906 | --bindir=DIR user executables [EPREFIX/bin] |
| 1907 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1908 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1909 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1910 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1911 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1912 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1913 | --includedir=DIR C header files [PREFIX/include] |
| 1914 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1915 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1916 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1917 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1918 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1919 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1920 | --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick] |
| 1921 | --htmldir=DIR html documentation [DOCDIR] |
| 1922 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1923 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1924 | --psdir=DIR ps documentation [DOCDIR] |
| 1925 | _ACEOF |
| 1926 | |
| 1927 | cat <<\_ACEOF |
| 1928 | |
| 1929 | Program names: |
| 1930 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1931 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1932 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1933 | |
| 1934 | X features: |
| 1935 | --x-includes=DIR X include files are in DIR |
| 1936 | --x-libraries=DIR X library files are in DIR |
| 1937 | |
| 1938 | System types: |
| 1939 | --build=BUILD configure for building on BUILD [guessed] |
| 1940 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1941 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1942 | _ACEOF |
| 1943 | fi |
| 1944 | |
| 1945 | if test -n "$ac_init_help"; then |
| 1946 | case $ac_init_help in |
| 1947 | short | recursive ) echo "Configuration of ImageMagick 6.5.5:";; |
| 1948 | esac |
| 1949 | cat <<\_ACEOF |
| 1950 | |
| 1951 | Optional Features: |
| 1952 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1953 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1954 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1955 | --enable-silent-rules less verbose build output (undo: `make V=1') |
| 1956 | --disable-silent-rules verbose build output (undo: `make V=0') |
| 1957 | --disable-dependency-tracking speeds up one-time build |
| 1958 | --enable-dependency-tracking do not reject slow dependency extractors |
| 1959 | --bounds-checking enable run-time bounds-checking |
| 1960 | --enable-osx-universal-binary |
| 1961 | build universal binary on OS X [default=no] |
| 1962 | --disable-openmp do not use OpenMP |
| 1963 | --disable-largefile omit support for large files |
| 1964 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1965 | --enable-static[=PKGS] build static libraries [default=yes] |
| 1966 | --enable-fast-install[=PKGS] |
| 1967 | optimize for fast installation [default=yes] |
| 1968 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1969 | --enable-ltdl-install install libltdl |
| 1970 | --enable-delegate-build look for delegate libraries in build directory |
| 1971 | --disable-deprecated exclude deprecated methods in MagickCore and |
| 1972 | MagickWand API's |
| 1973 | --disable-installed Formally install ImageMagick under PREFIX |
| 1974 | --disable-cipher disable enciphering and deciphering image pixels |
| 1975 | --enable-embeddable enable self-contained, embeddable, |
| 1976 | zero-configuration ImageMagick |
| 1977 | --enable-hdri accurately represent the wide range of intensity |
| 1978 | levels found in real scenes |
| 1979 | --enable-libtool-verbose |
| 1980 | enable verbose libtool output |
| 1981 | --disable-assert disable assert() statements in build |
| 1982 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 1983 | (and sometimes confusing) to the casual installer |
| 1984 | --enable-ccmalloc enable 'ccmalloc' memory debug support |
| 1985 | --enable-efence enable 'efence' memory debug support |
| 1986 | --enable-prof enable 'prof' profiling support |
| 1987 | --enable-gprof enable 'gprof' profiling support |
| 1988 | --enable-gcov enable 'gcov' profiling support |
| 1989 | |
| 1990 | Optional Packages: |
| 1991 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1992 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1993 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1994 | --without-maximum-compile-warnings |
| 1995 | Disable maximum warning verbosity |
| 1996 | --with-dmalloc use dmalloc, as in |
| 1997 | http://www.dmalloc.com/dmalloc.tar.gz |
| 1998 | --without-threads disable threads support |
| 1999 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 2000 | both] |
| 2001 | --with-included-ltdl use the GNU ltdl sources included here |
| 2002 | --with-ltdl-include=DIR use the ltdl headers installed in DIR |
| 2003 | --with-ltdl-lib=DIR use the libltdl.la installed in DIR |
| 2004 | --with-modules enable building dynamically loadable modules |
| 2005 | --with-method-prefix=PREFIX |
| 2006 | prefix MagickCore API methods |
| 2007 | --with-quantum-depth=DEPTH |
| 2008 | number of bits in a pixel quantum (default 16) |
| 2009 | --with-cache=THRESHOLD set pixel cache threshhold in MB (default available |
| 2010 | memory) |
| 2011 | --with-frozenpaths freeze delegate paths |
| 2012 | --without-magick-plus-plus |
| 2013 | disable build/install of Magick++ |
| 2014 | --with-perl enable build/install of PerlMagick |
| 2015 | --with-perl-options=OPTIONS |
| 2016 | options to pass on command-line when generating |
| 2017 | PerlMagick's build file |
| 2018 | --with-umem enable umem memory allocation library support |
| 2019 | --with-libstdc=DIR use libstdc++ in DIR (for GNU C++) |
| 2020 | --without-bzlib disable BZLIB support |
| 2021 | --with-x use the X Window System |
| 2022 | --without-zlib disable ZLIB support |
| 2023 | --with-autotrace enable autotrace support |
| 2024 | --without-dps disable Display Postscript support |
| 2025 | --without-djvu disable DjVu support |
| 2026 | --without-fftw disable FFTW support |
| 2027 | --without-fpx disable FlashPIX support |
| 2028 | --without-fontconfig disable fontconfig support |
| 2029 | --without-freetype disable Freetype support |
| 2030 | --without-gslib enable Ghostscript library support |
| 2031 | --with-fontpath=DIR prepend to default font search path |
| 2032 | --with-gs-font-dir=DIR Ghostscript font directory |
| 2033 | --without-gvc disable GVC support |
| 2034 | --without-jbig disable JBIG support |
| 2035 | --without-jpeg disable JPEG support |
| 2036 | --without-jp2 disable JPEG-2000 support |
| 2037 | --without-lcms disable LCMS support |
| 2038 | --without-lqr disable Liquid Rescale support (experimental) |
| 2039 | --without-openexr disable OpenEXR support |
| 2040 | --without-png disable PNG support |
| 2041 | --without-rsvg disable RSVG support |
| 2042 | --without-tiff disable TIFF support |
| 2043 | --with-windows-font-dir=DIR |
| 2044 | directory containing MS-Windows fonts |
| 2045 | --without-wmf disable WMF support |
| 2046 | --without-xml disable XML support |
| 2047 | |
| 2048 | Some influential environment variables: |
| 2049 | CC C compiler command |
| 2050 | CFLAGS C compiler flags |
| 2051 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 2052 | nonstandard directory <lib dir> |
| 2053 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 2054 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 2055 | you have headers in a nonstandard directory <include dir> |
| 2056 | CPP C preprocessor |
| 2057 | CXX C++ compiler command |
| 2058 | CXXFLAGS C++ compiler flags |
| 2059 | PKG_CONFIG path to pkg-config utility |
| 2060 | CXXCPP C++ preprocessor |
| 2061 | XMKMF Path to xmkmf, Makefile generator for X Window System |
| 2062 | AUTOTRACE_CFLAGS |
| 2063 | C compiler flags for AUTOTRACE, overriding pkg-config |
| 2064 | AUTOTRACE_LIBS |
| 2065 | linker flags for AUTOTRACE, overriding pkg-config |
| 2066 | FONTCONFIG_CFLAGS |
| 2067 | C compiler flags for FONTCONFIG, overriding pkg-config |
| 2068 | FONTCONFIG_LIBS |
| 2069 | linker flags for FONTCONFIG, overriding pkg-config |
| 2070 | GVC_CFLAGS C compiler flags for GVC, overriding pkg-config |
| 2071 | GVC_LIBS linker flags for GVC, overriding pkg-config |
| 2072 | LQR_CFLAGS C compiler flags for LQR, overriding pkg-config |
| 2073 | LQR_LIBS linker flags for LQR, overriding pkg-config |
| 2074 | OPENEXR_CFLAGS |
| 2075 | C compiler flags for OPENEXR, overriding pkg-config |
| 2076 | OPENEXR_LIBS |
| 2077 | linker flags for OPENEXR, overriding pkg-config |
| 2078 | RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config |
| 2079 | RSVG_LIBS linker flags for RSVG, overriding pkg-config |
| 2080 | CAIRO_SVG_CFLAGS |
| 2081 | C compiler flags for CAIRO_SVG, overriding pkg-config |
| 2082 | CAIRO_SVG_LIBS |
| 2083 | linker flags for CAIRO_SVG, overriding pkg-config |
| 2084 | |
| 2085 | Use these variables to override the choices made by `configure' or to help |
| 2086 | it to find libraries and programs with nonstandard names/locations. |
| 2087 | |
| 2088 | Report bugs to <http://www.imagemagick.org>. |
| 2089 | _ACEOF |
| 2090 | ac_status=$? |
| 2091 | fi |
| 2092 | |
| 2093 | if test "$ac_init_help" = "recursive"; then |
| 2094 | # If there are subdirs, report their specific --help. |
| 2095 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 2096 | test -d "$ac_dir" || |
| 2097 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 2098 | continue |
| 2099 | ac_builddir=. |
| 2100 | |
| 2101 | case "$ac_dir" in |
| 2102 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 2103 | *) |
| 2104 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 2105 | # A ".." for each directory in $ac_dir_suffix. |
| 2106 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 2107 | case $ac_top_builddir_sub in |
| 2108 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 2109 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 2110 | esac ;; |
| 2111 | esac |
| 2112 | ac_abs_top_builddir=$ac_pwd |
| 2113 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 2114 | # for backward compatibility: |
| 2115 | ac_top_builddir=$ac_top_build_prefix |
| 2116 | |
| 2117 | case $srcdir in |
| 2118 | .) # We are building in place. |
| 2119 | ac_srcdir=. |
| 2120 | ac_top_srcdir=$ac_top_builddir_sub |
| 2121 | ac_abs_top_srcdir=$ac_pwd ;; |
| 2122 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 2123 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 2124 | ac_top_srcdir=$srcdir |
| 2125 | ac_abs_top_srcdir=$srcdir ;; |
| 2126 | *) # Relative name. |
| 2127 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 2128 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 2129 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 2130 | esac |
| 2131 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 2132 | |
| 2133 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 2134 | # Check for guested configure. |
| 2135 | if test -f "$ac_srcdir/configure.gnu"; then |
| 2136 | echo && |
| 2137 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 2138 | elif test -f "$ac_srcdir/configure"; then |
| 2139 | echo && |
| 2140 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 2141 | else |
| 2142 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 2143 | fi || ac_status=$? |
| 2144 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 2145 | done |
| 2146 | fi |
| 2147 | |
| 2148 | test -n "$ac_init_help" && exit $ac_status |
| 2149 | if $ac_init_version; then |
| 2150 | cat <<\_ACEOF |
| 2151 | ImageMagick configure 6.5.5 |
| 2152 | generated by GNU Autoconf 2.63 |
| 2153 | |
| 2154 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 2155 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 2156 | This configure script is free software; the Free Software Foundation |
| 2157 | gives unlimited permission to copy, distribute and modify it. |
| 2158 | _ACEOF |
| 2159 | exit |
| 2160 | fi |
| 2161 | cat >config.log <<_ACEOF |
| 2162 | This file contains any messages produced by compilers while |
| 2163 | running configure, to aid debugging if configure makes a mistake. |
| 2164 | |
| 2165 | It was created by ImageMagick $as_me 6.5.5, which was |
| 2166 | generated by GNU Autoconf 2.63. Invocation command line was |
| 2167 | |
| 2168 | $ $0 $@ |
| 2169 | |
| 2170 | _ACEOF |
| 2171 | exec 5>>config.log |
| 2172 | { |
| 2173 | cat <<_ASUNAME |
| 2174 | ## --------- ## |
| 2175 | ## Platform. ## |
| 2176 | ## --------- ## |
| 2177 | |
| 2178 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2179 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2180 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2181 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2182 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2183 | |
| 2184 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2185 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2186 | |
| 2187 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2188 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2189 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2190 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2191 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2192 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2193 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2194 | |
| 2195 | _ASUNAME |
| 2196 | |
| 2197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2198 | for as_dir in $PATH |
| 2199 | do |
| 2200 | IFS=$as_save_IFS |
| 2201 | test -z "$as_dir" && as_dir=. |
| 2202 | $as_echo "PATH: $as_dir" |
| 2203 | done |
| 2204 | IFS=$as_save_IFS |
| 2205 | |
| 2206 | } >&5 |
| 2207 | |
| 2208 | cat >&5 <<_ACEOF |
| 2209 | |
| 2210 | |
| 2211 | ## ----------- ## |
| 2212 | ## Core tests. ## |
| 2213 | ## ----------- ## |
| 2214 | |
| 2215 | _ACEOF |
| 2216 | |
| 2217 | |
| 2218 | # Keep a trace of the command line. |
| 2219 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2220 | # Strip out --silent because we don't want to record it for future runs. |
| 2221 | # Also quote any args containing shell meta-characters. |
| 2222 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2223 | ac_configure_args= |
| 2224 | ac_configure_args0= |
| 2225 | ac_configure_args1= |
| 2226 | ac_must_keep_next=false |
| 2227 | for ac_pass in 1 2 |
| 2228 | do |
| 2229 | for ac_arg |
| 2230 | do |
| 2231 | case $ac_arg in |
| 2232 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2233 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2234 | | -silent | --silent | --silen | --sile | --sil) |
| 2235 | continue ;; |
| 2236 | *\'*) |
| 2237 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2238 | esac |
| 2239 | case $ac_pass in |
| 2240 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 2241 | 2) |
| 2242 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 2243 | if test $ac_must_keep_next = true; then |
| 2244 | ac_must_keep_next=false # Got value, back to normal. |
| 2245 | else |
| 2246 | case $ac_arg in |
| 2247 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2248 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2249 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2250 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2251 | case "$ac_configure_args0 " in |
| 2252 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2253 | esac |
| 2254 | ;; |
| 2255 | -* ) ac_must_keep_next=true ;; |
| 2256 | esac |
| 2257 | fi |
| 2258 | ac_configure_args="$ac_configure_args '$ac_arg'" |
| 2259 | ;; |
| 2260 | esac |
| 2261 | done |
| 2262 | done |
| 2263 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 2264 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 2265 | |
| 2266 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2267 | # config.log. We remove comments because anyway the quotes in there |
| 2268 | # would cause problems or look ugly. |
| 2269 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2270 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2271 | trap 'exit_status=$? |
| 2272 | # Save into config.log some information that might help in debugging. |
| 2273 | { |
| 2274 | echo |
| 2275 | |
| 2276 | cat <<\_ASBOX |
| 2277 | ## ---------------- ## |
| 2278 | ## Cache variables. ## |
| 2279 | ## ---------------- ## |
| 2280 | _ASBOX |
| 2281 | echo |
| 2282 | # The following way of writing the cache mishandles newlines in values, |
| 2283 | ( |
| 2284 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2285 | eval ac_val=\$$ac_var |
| 2286 | case $ac_val in #( |
| 2287 | *${as_nl}*) |
| 2288 | case $ac_var in #( |
| 2289 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2290 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2291 | esac |
| 2292 | case $ac_var in #( |
| 2293 | _ | IFS | as_nl) ;; #( |
| 2294 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2295 | *) $as_unset $ac_var ;; |
| 2296 | esac ;; |
| 2297 | esac |
| 2298 | done |
| 2299 | (set) 2>&1 | |
| 2300 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2301 | *${as_nl}ac_space=\ *) |
| 2302 | sed -n \ |
| 2303 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2304 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2305 | ;; #( |
| 2306 | *) |
| 2307 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2308 | ;; |
| 2309 | esac | |
| 2310 | sort |
| 2311 | ) |
| 2312 | echo |
| 2313 | |
| 2314 | cat <<\_ASBOX |
| 2315 | ## ----------------- ## |
| 2316 | ## Output variables. ## |
| 2317 | ## ----------------- ## |
| 2318 | _ASBOX |
| 2319 | echo |
| 2320 | for ac_var in $ac_subst_vars |
| 2321 | do |
| 2322 | eval ac_val=\$$ac_var |
| 2323 | case $ac_val in |
| 2324 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2325 | esac |
| 2326 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2327 | done | sort |
| 2328 | echo |
| 2329 | |
| 2330 | if test -n "$ac_subst_files"; then |
| 2331 | cat <<\_ASBOX |
| 2332 | ## ------------------- ## |
| 2333 | ## File substitutions. ## |
| 2334 | ## ------------------- ## |
| 2335 | _ASBOX |
| 2336 | echo |
| 2337 | for ac_var in $ac_subst_files |
| 2338 | do |
| 2339 | eval ac_val=\$$ac_var |
| 2340 | case $ac_val in |
| 2341 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2342 | esac |
| 2343 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2344 | done | sort |
| 2345 | echo |
| 2346 | fi |
| 2347 | |
| 2348 | if test -s confdefs.h; then |
| 2349 | cat <<\_ASBOX |
| 2350 | ## ----------- ## |
| 2351 | ## confdefs.h. ## |
| 2352 | ## ----------- ## |
| 2353 | _ASBOX |
| 2354 | echo |
| 2355 | cat confdefs.h |
| 2356 | echo |
| 2357 | fi |
| 2358 | test "$ac_signal" != 0 && |
| 2359 | $as_echo "$as_me: caught signal $ac_signal" |
| 2360 | $as_echo "$as_me: exit $exit_status" |
| 2361 | } >&5 |
| 2362 | rm -f core *.core core.conftest.* && |
| 2363 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2364 | exit $exit_status |
| 2365 | ' 0 |
| 2366 | for ac_signal in 1 2 13 15; do |
| 2367 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 2368 | done |
| 2369 | ac_signal=0 |
| 2370 | |
| 2371 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2372 | rm -f -r conftest* confdefs.h |
| 2373 | |
| 2374 | # Predefined preprocessor variables. |
| 2375 | |
| 2376 | cat >>confdefs.h <<_ACEOF |
| 2377 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2378 | _ACEOF |
| 2379 | |
| 2380 | |
| 2381 | cat >>confdefs.h <<_ACEOF |
| 2382 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2383 | _ACEOF |
| 2384 | |
| 2385 | |
| 2386 | cat >>confdefs.h <<_ACEOF |
| 2387 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2388 | _ACEOF |
| 2389 | |
| 2390 | |
| 2391 | cat >>confdefs.h <<_ACEOF |
| 2392 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2393 | _ACEOF |
| 2394 | |
| 2395 | |
| 2396 | cat >>confdefs.h <<_ACEOF |
| 2397 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2398 | _ACEOF |
| 2399 | |
| 2400 | |
| 2401 | # Let the site file select an alternate cache file if it wants to. |
| 2402 | # Prefer an explicitly selected file to automatically selected ones. |
| 2403 | ac_site_file1=NONE |
| 2404 | ac_site_file2=NONE |
| 2405 | if test -n "$CONFIG_SITE"; then |
| 2406 | ac_site_file1=$CONFIG_SITE |
| 2407 | elif test "x$prefix" != xNONE; then |
| 2408 | ac_site_file1=$prefix/share/config.site |
| 2409 | ac_site_file2=$prefix/etc/config.site |
| 2410 | else |
| 2411 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2412 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 2413 | fi |
| 2414 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2415 | do |
| 2416 | test "x$ac_site_file" = xNONE && continue |
| 2417 | if test -r "$ac_site_file"; then |
| 2418 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 2419 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2420 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2421 | . "$ac_site_file" |
| 2422 | fi |
| 2423 | done |
| 2424 | |
| 2425 | if test -r "$cache_file"; then |
| 2426 | # Some versions of bash will fail to source /dev/null (special |
| 2427 | # files actually), so we avoid doing that. |
| 2428 | if test -f "$cache_file"; then |
| 2429 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 2430 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2431 | case $cache_file in |
| 2432 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2433 | *) . "./$cache_file";; |
| 2434 | esac |
| 2435 | fi |
| 2436 | else |
| 2437 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 2438 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2439 | >$cache_file |
| 2440 | fi |
| 2441 | |
| 2442 | # Check that the precious variables saved in the cache have kept the same |
| 2443 | # value. |
| 2444 | ac_cache_corrupted=false |
| 2445 | for ac_var in $ac_precious_vars; do |
| 2446 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2447 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2448 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2449 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2450 | case $ac_old_set,$ac_new_set in |
| 2451 | set,) |
| 2452 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2453 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2454 | ac_cache_corrupted=: ;; |
| 2455 | ,set) |
| 2456 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 2457 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2458 | ac_cache_corrupted=: ;; |
| 2459 | ,);; |
| 2460 | *) |
| 2461 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2462 | # differences in whitespace do not lead to failure. |
| 2463 | ac_old_val_w=`echo x $ac_old_val` |
| 2464 | ac_new_val_w=`echo x $ac_new_val` |
| 2465 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2466 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2467 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2468 | ac_cache_corrupted=: |
| 2469 | else |
| 2470 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2471 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2472 | eval $ac_var=\$ac_old_val |
| 2473 | fi |
| 2474 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
| 2475 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2476 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
| 2477 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2478 | fi;; |
| 2479 | esac |
| 2480 | # Pass precious variables to config.status. |
| 2481 | if test "$ac_new_set" = set; then |
| 2482 | case $ac_new_val in |
| 2483 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2484 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2485 | esac |
| 2486 | case " $ac_configure_args " in |
| 2487 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2488 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 2489 | esac |
| 2490 | fi |
| 2491 | done |
| 2492 | if $ac_cache_corrupted; then |
| 2493 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 2494 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2495 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 2496 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2497 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 2498 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 2499 | { (exit 1); exit 1; }; } |
| 2500 | fi |
| 2501 | |
| 2502 | |
| 2503 | |
| 2504 | |
| 2505 | |
| 2506 | |
| 2507 | |
| 2508 | |
| 2509 | |
| 2510 | |
| 2511 | |
| 2512 | |
| 2513 | |
| 2514 | |
| 2515 | |
| 2516 | |
| 2517 | |
| 2518 | |
| 2519 | |
| 2520 | |
| 2521 | |
| 2522 | |
| 2523 | |
| 2524 | |
| 2525 | |
| 2526 | ac_ext=c |
| 2527 | ac_cpp='$CPP $CPPFLAGS' |
| 2528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2531 | |
| 2532 | |
| 2533 | |
| 2534 | ac_aux_dir= |
| 2535 | for ac_dir in config "$srcdir"/config; do |
| 2536 | if test -f "$ac_dir/install-sh"; then |
| 2537 | ac_aux_dir=$ac_dir |
| 2538 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2539 | break |
| 2540 | elif test -f "$ac_dir/install.sh"; then |
| 2541 | ac_aux_dir=$ac_dir |
| 2542 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2543 | break |
| 2544 | elif test -f "$ac_dir/shtool"; then |
| 2545 | ac_aux_dir=$ac_dir |
| 2546 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2547 | break |
| 2548 | fi |
| 2549 | done |
| 2550 | if test -z "$ac_aux_dir"; then |
| 2551 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 |
| 2552 | $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} |
| 2553 | { (exit 1); exit 1; }; } |
| 2554 | fi |
| 2555 | |
| 2556 | # These three variables are undocumented and unsupported, |
| 2557 | # and are intended to be withdrawn in a future Autoconf release. |
| 2558 | # They can cause serious problems if a builder's source tree is in a directory |
| 2559 | # whose full name contains unusual characters. |
| 2560 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2561 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2562 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2563 | |
| 2564 | |
| 2565 | |
| 2566 | |
| 2567 | ac_config_headers="$ac_config_headers config/config.h" |
| 2568 | |
| 2569 | ac_config_commands="$ac_config_commands magick/magick-config.h" |
| 2570 | |
| 2571 | ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc" |
| 2572 | |
| 2573 | |
| 2574 | # |
| 2575 | # Save initial user-tunable values |
| 2576 | # |
| 2577 | USER_LIBS=$LIBS |
| 2578 | for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do |
| 2579 | eval isset=\${$var+set} |
| 2580 | if test "$isset" = 'set'; then |
| 2581 | eval val=$`echo $var` |
| 2582 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' " |
| 2583 | fi |
| 2584 | done |
| 2585 | |
| 2586 | |
| 2587 | CONFIGURE_ARGS="$0 ${ac_configure_args}" |
| 2588 | |
| 2589 | |
| 2590 | # Source file containing package/library versioning information. |
| 2591 | . ${srcdir}/version.sh |
| 2592 | |
| 2593 | echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}" |
| 2594 | # Make sure we can run config.sub. |
| 2595 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2596 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2597 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 2598 | { (exit 1); exit 1; }; } |
| 2599 | |
| 2600 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
| 2601 | $as_echo_n "checking build system type... " >&6; } |
| 2602 | if test "${ac_cv_build+set}" = set; then |
| 2603 | $as_echo_n "(cached) " >&6 |
| 2604 | else |
| 2605 | ac_build_alias=$build_alias |
| 2606 | test "x$ac_build_alias" = x && |
| 2607 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2608 | test "x$ac_build_alias" = x && |
| 2609 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2610 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2611 | { (exit 1); exit 1; }; } |
| 2612 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2613 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2614 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 2615 | { (exit 1); exit 1; }; } |
| 2616 | |
| 2617 | fi |
| 2618 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2619 | $as_echo "$ac_cv_build" >&6; } |
| 2620 | case $ac_cv_build in |
| 2621 | *-*-*) ;; |
| 2622 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2623 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2624 | { (exit 1); exit 1; }; };; |
| 2625 | esac |
| 2626 | build=$ac_cv_build |
| 2627 | ac_save_IFS=$IFS; IFS='-' |
| 2628 | set x $ac_cv_build |
| 2629 | shift |
| 2630 | build_cpu=$1 |
| 2631 | build_vendor=$2 |
| 2632 | shift; shift |
| 2633 | # Remember, the first character of IFS is used to create $*, |
| 2634 | # except with old shells: |
| 2635 | build_os=$* |
| 2636 | IFS=$ac_save_IFS |
| 2637 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2638 | |
| 2639 | |
| 2640 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
| 2641 | $as_echo_n "checking host system type... " >&6; } |
| 2642 | if test "${ac_cv_host+set}" = set; then |
| 2643 | $as_echo_n "(cached) " >&6 |
| 2644 | else |
| 2645 | if test "x$host_alias" = x; then |
| 2646 | ac_cv_host=$ac_cv_build |
| 2647 | else |
| 2648 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2649 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2650 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 2651 | { (exit 1); exit 1; }; } |
| 2652 | fi |
| 2653 | |
| 2654 | fi |
| 2655 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2656 | $as_echo "$ac_cv_host" >&6; } |
| 2657 | case $ac_cv_host in |
| 2658 | *-*-*) ;; |
| 2659 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2660 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2661 | { (exit 1); exit 1; }; };; |
| 2662 | esac |
| 2663 | host=$ac_cv_host |
| 2664 | ac_save_IFS=$IFS; IFS='-' |
| 2665 | set x $ac_cv_host |
| 2666 | shift |
| 2667 | host_cpu=$1 |
| 2668 | host_vendor=$2 |
| 2669 | shift; shift |
| 2670 | # Remember, the first character of IFS is used to create $*, |
| 2671 | # except with old shells: |
| 2672 | host_os=$* |
| 2673 | IFS=$ac_save_IFS |
| 2674 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2675 | |
| 2676 | |
| 2677 | { $as_echo "$as_me:$LINENO: checking target system type" >&5 |
| 2678 | $as_echo_n "checking target system type... " >&6; } |
| 2679 | if test "${ac_cv_target+set}" = set; then |
| 2680 | $as_echo_n "(cached) " >&6 |
| 2681 | else |
| 2682 | if test "x$target_alias" = x; then |
| 2683 | ac_cv_target=$ac_cv_host |
| 2684 | else |
| 2685 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 2686 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2687 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
| 2688 | { (exit 1); exit 1; }; } |
| 2689 | fi |
| 2690 | |
| 2691 | fi |
| 2692 | { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2693 | $as_echo "$ac_cv_target" >&6; } |
| 2694 | case $ac_cv_target in |
| 2695 | *-*-*) ;; |
| 2696 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2697 | $as_echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2698 | { (exit 1); exit 1; }; };; |
| 2699 | esac |
| 2700 | target=$ac_cv_target |
| 2701 | ac_save_IFS=$IFS; IFS='-' |
| 2702 | set x $ac_cv_target |
| 2703 | shift |
| 2704 | target_cpu=$1 |
| 2705 | target_vendor=$2 |
| 2706 | shift; shift |
| 2707 | # Remember, the first character of IFS is used to create $*, |
| 2708 | # except with old shells: |
| 2709 | target_os=$* |
| 2710 | IFS=$ac_save_IFS |
| 2711 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 2712 | |
| 2713 | |
| 2714 | # The aliases save the names the user supplied, while $host etc. |
| 2715 | # will get canonicalized. |
| 2716 | test -n "$target_alias" && |
| 2717 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2718 | NONENONEs,x,x, && |
| 2719 | program_prefix=${target_alias}- |
| 2720 | |
| 2721 | # Substitute library versioning |
| 2722 | |
| 2723 | |
| 2724 | # Ensure that make can run correctly |
| 2725 | { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 2726 | $as_echo_n "checking whether build environment is sane... " >&6; } |
| 2727 | # Just in case |
| 2728 | sleep 1 |
| 2729 | echo timestamp > conftest.file |
| 2730 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2731 | # name. Accept space and tab only in the latter. |
| 2732 | am_lf=' |
| 2733 | ' |
| 2734 | case `pwd` in |
| 2735 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 2736 | { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 |
| 2737 | $as_echo "$as_me: error: unsafe absolute working directory name" >&2;} |
| 2738 | { (exit 1); exit 1; }; };; |
| 2739 | esac |
| 2740 | case $srcdir in |
| 2741 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 2742 | { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 |
| 2743 | $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} |
| 2744 | { (exit 1); exit 1; }; };; |
| 2745 | esac |
| 2746 | |
| 2747 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2748 | # arguments. Must try -L first in case configure is actually a |
| 2749 | # symlink; some systems play weird games with the mod time of symlinks |
| 2750 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2751 | # directory). |
| 2752 | if ( |
| 2753 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 2754 | if test "$*" = "X"; then |
| 2755 | # -L didn't work. |
| 2756 | set X `ls -t "$srcdir/configure" conftest.file` |
| 2757 | fi |
| 2758 | rm -f conftest.file |
| 2759 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2760 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2761 | |
| 2762 | # If neither matched, then we have a broken ls. This can happen |
| 2763 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2764 | # broken ls alias from the environment. This has actually |
| 2765 | # happened. Such a system could not be considered "sane". |
| 2766 | { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 2767 | alias in your environment" >&5 |
| 2768 | $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 2769 | alias in your environment" >&2;} |
| 2770 | { (exit 1); exit 1; }; } |
| 2771 | fi |
| 2772 | |
| 2773 | test "$2" = conftest.file |
| 2774 | ) |
| 2775 | then |
| 2776 | # Ok. |
| 2777 | : |
| 2778 | else |
| 2779 | { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 2780 | Check your system clock" >&5 |
| 2781 | $as_echo "$as_me: error: newly created file is older than distributed files! |
| 2782 | Check your system clock" >&2;} |
| 2783 | { (exit 1); exit 1; }; } |
| 2784 | fi |
| 2785 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 2786 | $as_echo "yes" >&6; } |
| 2787 | |
| 2788 | am__api_version='1.11' |
| 2789 | |
| 2790 | # Find a good install program. We prefer a C program (faster), |
| 2791 | # so one script is as good as another. But avoid the broken or |
| 2792 | # incompatible versions: |
| 2793 | # SysV /etc/install, /usr/sbin/install |
| 2794 | # SunOS /usr/etc/install |
| 2795 | # IRIX /sbin/install |
| 2796 | # AIX /bin/install |
| 2797 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2798 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2799 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2800 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2801 | # OS/2's system install, which has a completely different semantic |
| 2802 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2803 | # Reject install programs that cannot install multiple files. |
| 2804 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 2805 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 2806 | if test -z "$INSTALL"; then |
| 2807 | if test "${ac_cv_path_install+set}" = set; then |
| 2808 | $as_echo_n "(cached) " >&6 |
| 2809 | else |
| 2810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2811 | for as_dir in $PATH |
| 2812 | do |
| 2813 | IFS=$as_save_IFS |
| 2814 | test -z "$as_dir" && as_dir=. |
| 2815 | # Account for people who put trailing slashes in PATH elements. |
| 2816 | case $as_dir/ in |
| 2817 | ./ | .// | /cC/* | \ |
| 2818 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2819 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 2820 | /usr/ucb/* ) ;; |
| 2821 | *) |
| 2822 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2823 | # Don't use installbsd from OSF since it installs stuff as root |
| 2824 | # by default. |
| 2825 | for ac_prog in ginstall scoinst install; do |
| 2826 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2827 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 2828 | if test $ac_prog = install && |
| 2829 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2830 | # AIX install. It has an incompatible calling convention. |
| 2831 | : |
| 2832 | elif test $ac_prog = install && |
| 2833 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2834 | # program-specific install script used by HP pwplus--don't use. |
| 2835 | : |
| 2836 | else |
| 2837 | rm -rf conftest.one conftest.two conftest.dir |
| 2838 | echo one > conftest.one |
| 2839 | echo two > conftest.two |
| 2840 | mkdir conftest.dir |
| 2841 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2842 | test -s conftest.one && test -s conftest.two && |
| 2843 | test -s conftest.dir/conftest.one && |
| 2844 | test -s conftest.dir/conftest.two |
| 2845 | then |
| 2846 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2847 | break 3 |
| 2848 | fi |
| 2849 | fi |
| 2850 | fi |
| 2851 | done |
| 2852 | done |
| 2853 | ;; |
| 2854 | esac |
| 2855 | |
| 2856 | done |
| 2857 | IFS=$as_save_IFS |
| 2858 | |
| 2859 | rm -rf conftest.one conftest.two conftest.dir |
| 2860 | |
| 2861 | fi |
| 2862 | if test "${ac_cv_path_install+set}" = set; then |
| 2863 | INSTALL=$ac_cv_path_install |
| 2864 | else |
| 2865 | # As a last resort, use the slow shell script. Don't cache a |
| 2866 | # value for INSTALL within a source directory, because that will |
| 2867 | # break other packages using the cache if that directory is |
| 2868 | # removed, or if the value is a relative name. |
| 2869 | INSTALL=$ac_install_sh |
| 2870 | fi |
| 2871 | fi |
| 2872 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 2873 | $as_echo "$INSTALL" >&6; } |
| 2874 | |
| 2875 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2876 | # It thinks the first close brace ends the variable substitution. |
| 2877 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2878 | |
| 2879 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2880 | |
| 2881 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2882 | |
| 2883 | test "$program_prefix" != NONE && |
| 2884 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 2885 | # Use a double $ so make ignores it. |
| 2886 | test "$program_suffix" != NONE && |
| 2887 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 2888 | # Double any \ or $. |
| 2889 | # By default was `s,x,x', remove it if useless. |
| 2890 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2891 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 2892 | |
| 2893 | # expand $ac_aux_dir to an absolute path |
| 2894 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2895 | |
| 2896 | if test x"${MISSING+set}" != xset; then |
| 2897 | case $am_aux_dir in |
| 2898 | *\ * | *\ *) |
| 2899 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2900 | *) |
| 2901 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2902 | esac |
| 2903 | fi |
| 2904 | # Use eval to expand $SHELL |
| 2905 | if eval "$MISSING --run true"; then |
| 2906 | am_missing_run="$MISSING --run " |
| 2907 | else |
| 2908 | am_missing_run= |
| 2909 | { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 2910 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 2911 | fi |
| 2912 | |
| 2913 | if test x"${install_sh}" != xset; then |
| 2914 | case $am_aux_dir in |
| 2915 | *\ * | *\ *) |
| 2916 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2917 | *) |
| 2918 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2919 | esac |
| 2920 | fi |
| 2921 | |
| 2922 | # Installed binaries are usually stripped using `strip' when the user |
| 2923 | # run `make install-strip'. However `strip' might not be the right |
| 2924 | # tool to use in cross-compilation environments, therefore Automake |
| 2925 | # will honor the `STRIP' environment variable to overrule this program. |
| 2926 | if test "$cross_compiling" != no; then |
| 2927 | if test -n "$ac_tool_prefix"; then |
| 2928 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2929 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2930 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2931 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2932 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 2933 | $as_echo_n "(cached) " >&6 |
| 2934 | else |
| 2935 | if test -n "$STRIP"; then |
| 2936 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2937 | else |
| 2938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2939 | for as_dir in $PATH |
| 2940 | do |
| 2941 | IFS=$as_save_IFS |
| 2942 | test -z "$as_dir" && as_dir=. |
| 2943 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2944 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2945 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2946 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2947 | break 2 |
| 2948 | fi |
| 2949 | done |
| 2950 | done |
| 2951 | IFS=$as_save_IFS |
| 2952 | |
| 2953 | fi |
| 2954 | fi |
| 2955 | STRIP=$ac_cv_prog_STRIP |
| 2956 | if test -n "$STRIP"; then |
| 2957 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 2958 | $as_echo "$STRIP" >&6; } |
| 2959 | else |
| 2960 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 2961 | $as_echo "no" >&6; } |
| 2962 | fi |
| 2963 | |
| 2964 | |
| 2965 | fi |
| 2966 | if test -z "$ac_cv_prog_STRIP"; then |
| 2967 | ac_ct_STRIP=$STRIP |
| 2968 | # Extract the first word of "strip", so it can be a program name with args. |
| 2969 | set dummy strip; ac_word=$2 |
| 2970 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2971 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2972 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 2973 | $as_echo_n "(cached) " >&6 |
| 2974 | else |
| 2975 | if test -n "$ac_ct_STRIP"; then |
| 2976 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2977 | else |
| 2978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2979 | for as_dir in $PATH |
| 2980 | do |
| 2981 | IFS=$as_save_IFS |
| 2982 | test -z "$as_dir" && as_dir=. |
| 2983 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2985 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2986 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2987 | break 2 |
| 2988 | fi |
| 2989 | done |
| 2990 | done |
| 2991 | IFS=$as_save_IFS |
| 2992 | |
| 2993 | fi |
| 2994 | fi |
| 2995 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2996 | if test -n "$ac_ct_STRIP"; then |
| 2997 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 2998 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2999 | else |
| 3000 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3001 | $as_echo "no" >&6; } |
| 3002 | fi |
| 3003 | |
| 3004 | if test "x$ac_ct_STRIP" = x; then |
| 3005 | STRIP=":" |
| 3006 | else |
| 3007 | case $cross_compiling:$ac_tool_warned in |
| 3008 | yes:) |
| 3009 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3010 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3011 | ac_tool_warned=yes ;; |
| 3012 | esac |
| 3013 | STRIP=$ac_ct_STRIP |
| 3014 | fi |
| 3015 | else |
| 3016 | STRIP="$ac_cv_prog_STRIP" |
| 3017 | fi |
| 3018 | |
| 3019 | fi |
| 3020 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 3021 | |
| 3022 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
| 3023 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 3024 | if test -z "$MKDIR_P"; then |
| 3025 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 3026 | $as_echo_n "(cached) " >&6 |
| 3027 | else |
| 3028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3029 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 3030 | do |
| 3031 | IFS=$as_save_IFS |
| 3032 | test -z "$as_dir" && as_dir=. |
| 3033 | for ac_prog in mkdir gmkdir; do |
| 3034 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3035 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 3036 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 3037 | 'mkdir (GNU coreutils) '* | \ |
| 3038 | 'mkdir (coreutils) '* | \ |
| 3039 | 'mkdir (fileutils) '4.1*) |
| 3040 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 3041 | break 3;; |
| 3042 | esac |
| 3043 | done |
| 3044 | done |
| 3045 | done |
| 3046 | IFS=$as_save_IFS |
| 3047 | |
| 3048 | fi |
| 3049 | |
| 3050 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 3051 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 3052 | else |
| 3053 | # As a last resort, use the slow shell script. Don't cache a |
| 3054 | # value for MKDIR_P within a source directory, because that will |
| 3055 | # break other packages using the cache if that directory is |
| 3056 | # removed, or if the value is a relative name. |
| 3057 | test -d ./--version && rmdir ./--version |
| 3058 | MKDIR_P="$ac_install_sh -d" |
| 3059 | fi |
| 3060 | fi |
| 3061 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
| 3062 | $as_echo "$MKDIR_P" >&6; } |
| 3063 | |
| 3064 | mkdir_p="$MKDIR_P" |
| 3065 | case $mkdir_p in |
| 3066 | [\\/$]* | ?:[\\/]*) ;; |
| 3067 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 3068 | esac |
| 3069 | |
| 3070 | for ac_prog in gawk mawk nawk awk |
| 3071 | do |
| 3072 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3073 | set dummy $ac_prog; ac_word=$2 |
| 3074 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3075 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3076 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 3077 | $as_echo_n "(cached) " >&6 |
| 3078 | else |
| 3079 | if test -n "$AWK"; then |
| 3080 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3081 | else |
| 3082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3083 | for as_dir in $PATH |
| 3084 | do |
| 3085 | IFS=$as_save_IFS |
| 3086 | test -z "$as_dir" && as_dir=. |
| 3087 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3088 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3089 | ac_cv_prog_AWK="$ac_prog" |
| 3090 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3091 | break 2 |
| 3092 | fi |
| 3093 | done |
| 3094 | done |
| 3095 | IFS=$as_save_IFS |
| 3096 | |
| 3097 | fi |
| 3098 | fi |
| 3099 | AWK=$ac_cv_prog_AWK |
| 3100 | if test -n "$AWK"; then |
| 3101 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
| 3102 | $as_echo "$AWK" >&6; } |
| 3103 | else |
| 3104 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3105 | $as_echo "no" >&6; } |
| 3106 | fi |
| 3107 | |
| 3108 | |
| 3109 | test -n "$AWK" && break |
| 3110 | done |
| 3111 | |
| 3112 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3113 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 3114 | set x ${MAKE-make} |
| 3115 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 3116 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
| 3117 | $as_echo_n "(cached) " >&6 |
| 3118 | else |
| 3119 | cat >conftest.make <<\_ACEOF |
| 3120 | SHELL = /bin/sh |
| 3121 | all: |
| 3122 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 3123 | _ACEOF |
| 3124 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 3125 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 3126 | *@@@%%%=?*=@@@%%%*) |
| 3127 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 3128 | *) |
| 3129 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 3130 | esac |
| 3131 | rm -f conftest.make |
| 3132 | fi |
| 3133 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 3134 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3135 | $as_echo "yes" >&6; } |
| 3136 | SET_MAKE= |
| 3137 | else |
| 3138 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3139 | $as_echo "no" >&6; } |
| 3140 | SET_MAKE="MAKE=${MAKE-make}" |
| 3141 | fi |
| 3142 | |
| 3143 | rm -rf .tst 2>/dev/null |
| 3144 | mkdir .tst 2>/dev/null |
| 3145 | if test -d .tst; then |
| 3146 | am__leading_dot=. |
| 3147 | else |
| 3148 | am__leading_dot=_ |
| 3149 | fi |
| 3150 | rmdir .tst 2>/dev/null |
| 3151 | |
| 3152 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 3153 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 3154 | # is not polluted with repeated "-I." |
| 3155 | am__isrc=' -I$(srcdir)' |
| 3156 | # test to see if srcdir already configured |
| 3157 | if test -f $srcdir/config.status; then |
| 3158 | { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 3159 | $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 3160 | { (exit 1); exit 1; }; } |
| 3161 | fi |
| 3162 | fi |
| 3163 | |
| 3164 | # test whether we have cygpath |
| 3165 | if test -z "$CYGPATH_W"; then |
| 3166 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 3167 | CYGPATH_W='cygpath -w' |
| 3168 | else |
| 3169 | CYGPATH_W=echo |
| 3170 | fi |
| 3171 | fi |
| 3172 | |
| 3173 | |
| 3174 | # Define the identity of the package. |
| 3175 | PACKAGE=$PACKAGE_NAME |
| 3176 | VERSION="${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}" |
| 3177 | |
| 3178 | |
| 3179 | # Some tools Automake needs. |
| 3180 | |
| 3181 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 3182 | |
| 3183 | |
| 3184 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 3185 | |
| 3186 | |
| 3187 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 3188 | |
| 3189 | |
| 3190 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 3191 | |
| 3192 | |
| 3193 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 3194 | |
| 3195 | # We need awk for the "check" target. The system "awk" is bad on |
| 3196 | # some platforms. |
| 3197 | # Always define AMTAR for backward compatibility. |
| 3198 | |
| 3199 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 3200 | |
| 3201 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 3202 | |
| 3203 | |
| 3204 | |
| 3205 | |
| 3206 | |
| 3207 | |
| 3208 | # Enable support for silent build rules |
| 3209 | # Check whether --enable-silent-rules was given. |
| 3210 | if test "${enable_silent_rules+set}" = set; then |
| 3211 | enableval=$enable_silent_rules; |
| 3212 | fi |
| 3213 | |
| 3214 | case $enable_silent_rules in |
| 3215 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 3216 | no) AM_DEFAULT_VERBOSITY=1;; |
| 3217 | *) AM_DEFAULT_VERBOSITY=0;; |
| 3218 | esac |
| 3219 | AM_BACKSLASH='\' |
| 3220 | |
| 3221 | |
| 3222 | MAGICK_LIB_VERSION="0x" |
| 3223 | if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then |
| 3224 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 |
| 3225 | fi |
| 3226 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT} |
| 3227 | if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then |
| 3228 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 |
| 3229 | fi |
| 3230 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE} |
| 3231 | if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then |
| 3232 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 |
| 3233 | fi |
| 3234 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION} |
| 3235 | |
| 3236 | |
| 3237 | # Definition used to define MagickLibVersionText in version.h |
| 3238 | MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}" |
| 3239 | |
| 3240 | |
| 3241 | # Definition used to define MagickLibVersionNumber in version.h |
| 3242 | MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}" |
| 3243 | |
| 3244 | |
| 3245 | # Regenerate config.status if ChangeLog or version.sh is updated. |
| 3246 | CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh' |
| 3247 | |
| 3248 | |
| 3249 | PERLMAINCC=$CC |
| 3250 | |
| 3251 | MAGICK_CFLAGS='' |
| 3252 | MAGICK_CPPFLAGS=$CPPFLAGS_USER |
| 3253 | MAGICK_PCFLAGS=$CPPFLAGS_USER |
| 3254 | MAGICK_LDFLAGS='' |
| 3255 | MAGICK_LIBS='' |
| 3256 | |
| 3257 | # |
| 3258 | # Evaluate shell variable equivalents to Makefile directory variables |
| 3259 | # |
| 3260 | if test "x$prefix" = xNONE; then |
| 3261 | prefix=$ac_default_prefix |
| 3262 | fi |
| 3263 | # Let make expand exec_prefix. |
| 3264 | if test "x$exec_prefix" = xNONE; then |
| 3265 | exec_prefix='${prefix}' |
| 3266 | fi |
| 3267 | |
| 3268 | # |
| 3269 | eval "eval PREFIX_DIR=${prefix}" |
| 3270 | |
| 3271 | eval "eval EXEC_PREFIX_DIR=${exec_prefix}" |
| 3272 | |
| 3273 | eval "eval BIN_DIR=$bindir" |
| 3274 | |
| 3275 | eval "eval SBIN_DIR=$sbindir" |
| 3276 | |
| 3277 | eval "eval LIBEXEC_DIR=$libexecdir" |
| 3278 | |
| 3279 | eval "eval DATA_DIR=$datadir" |
| 3280 | |
| 3281 | eval "eval SYSCONF_DIR=$sysconfdir" |
| 3282 | |
| 3283 | eval "eval SHAREDSTATE_DIR=$sharedstatedir" |
| 3284 | |
| 3285 | eval "eval LOCALSTATE_DIR=$localstatedir" |
| 3286 | |
| 3287 | eval "eval LIB_DIR=$libdir" |
| 3288 | |
| 3289 | eval "eval INCLUDE_DIR=$includedir" |
| 3290 | |
| 3291 | eval "eval PERSISTINCLUDE_DIR=$oldincludedir" |
| 3292 | |
| 3293 | eval "eval INFO_DIR=$infodir" |
| 3294 | |
| 3295 | eval "eval MAN_DIR=$mandir" |
| 3296 | |
| 3297 | |
| 3298 | # Get full paths to source and build directories |
| 3299 | srcdirfull="`cd $srcdir && pwd`" |
| 3300 | builddir="`pwd`" |
| 3301 | |
| 3302 | # |
| 3303 | # Compute variables useful for running uninstalled software. |
| 3304 | # |
| 3305 | MAGICK_CODER_MODULE_PATH="${builddir}/coders" |
| 3306 | MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config" |
| 3307 | MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config" |
| 3308 | MAGICK_FILTER_MODULE_PATH="${builddir}/filters" |
| 3309 | DIRSEP=':' |
| 3310 | case "${build_os}" in |
| 3311 | mingw* ) |
| 3312 | MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0` |
| 3313 | MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0` |
| 3314 | MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0` |
| 3315 | MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0` |
| 3316 | DIRSEP=';' |
| 3317 | ;; |
| 3318 | esac |
| 3319 | case "${host_os}" in |
| 3320 | mingw* ) |
| 3321 | DIRSEP=';' |
| 3322 | ;; |
| 3323 | esac |
| 3324 | |
| 3325 | |
| 3326 | |
| 3327 | |
| 3328 | |
| 3329 | |
| 3330 | # Check for programs |
| 3331 | ac_ext=c |
| 3332 | ac_cpp='$CPP $CPPFLAGS' |
| 3333 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3334 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3335 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3336 | if test -n "$ac_tool_prefix"; then |
| 3337 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3338 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3339 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3340 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3341 | if test "${ac_cv_prog_CC+set}" = set; then |
| 3342 | $as_echo_n "(cached) " >&6 |
| 3343 | else |
| 3344 | if test -n "$CC"; then |
| 3345 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3346 | else |
| 3347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3348 | for as_dir in $PATH |
| 3349 | do |
| 3350 | IFS=$as_save_IFS |
| 3351 | test -z "$as_dir" && as_dir=. |
| 3352 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3353 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3354 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3355 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3356 | break 2 |
| 3357 | fi |
| 3358 | done |
| 3359 | done |
| 3360 | IFS=$as_save_IFS |
| 3361 | |
| 3362 | fi |
| 3363 | fi |
| 3364 | CC=$ac_cv_prog_CC |
| 3365 | if test -n "$CC"; then |
| 3366 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 3367 | $as_echo "$CC" >&6; } |
| 3368 | else |
| 3369 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3370 | $as_echo "no" >&6; } |
| 3371 | fi |
| 3372 | |
| 3373 | |
| 3374 | fi |
| 3375 | if test -z "$ac_cv_prog_CC"; then |
| 3376 | ac_ct_CC=$CC |
| 3377 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3378 | set dummy gcc; ac_word=$2 |
| 3379 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3380 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3381 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 3382 | $as_echo_n "(cached) " >&6 |
| 3383 | else |
| 3384 | if test -n "$ac_ct_CC"; then |
| 3385 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3386 | else |
| 3387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3388 | for as_dir in $PATH |
| 3389 | do |
| 3390 | IFS=$as_save_IFS |
| 3391 | test -z "$as_dir" && as_dir=. |
| 3392 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3393 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3394 | ac_cv_prog_ac_ct_CC="gcc" |
| 3395 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3396 | break 2 |
| 3397 | fi |
| 3398 | done |
| 3399 | done |
| 3400 | IFS=$as_save_IFS |
| 3401 | |
| 3402 | fi |
| 3403 | fi |
| 3404 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3405 | if test -n "$ac_ct_CC"; then |
| 3406 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 3407 | $as_echo "$ac_ct_CC" >&6; } |
| 3408 | else |
| 3409 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3410 | $as_echo "no" >&6; } |
| 3411 | fi |
| 3412 | |
| 3413 | if test "x$ac_ct_CC" = x; then |
| 3414 | CC="" |
| 3415 | else |
| 3416 | case $cross_compiling:$ac_tool_warned in |
| 3417 | yes:) |
| 3418 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3419 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3420 | ac_tool_warned=yes ;; |
| 3421 | esac |
| 3422 | CC=$ac_ct_CC |
| 3423 | fi |
| 3424 | else |
| 3425 | CC="$ac_cv_prog_CC" |
| 3426 | fi |
| 3427 | |
| 3428 | if test -z "$CC"; then |
| 3429 | if test -n "$ac_tool_prefix"; then |
| 3430 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3431 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3432 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3433 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3434 | if test "${ac_cv_prog_CC+set}" = set; then |
| 3435 | $as_echo_n "(cached) " >&6 |
| 3436 | else |
| 3437 | if test -n "$CC"; then |
| 3438 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3439 | else |
| 3440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3441 | for as_dir in $PATH |
| 3442 | do |
| 3443 | IFS=$as_save_IFS |
| 3444 | test -z "$as_dir" && as_dir=. |
| 3445 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3446 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3447 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3448 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3449 | break 2 |
| 3450 | fi |
| 3451 | done |
| 3452 | done |
| 3453 | IFS=$as_save_IFS |
| 3454 | |
| 3455 | fi |
| 3456 | fi |
| 3457 | CC=$ac_cv_prog_CC |
| 3458 | if test -n "$CC"; then |
| 3459 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 3460 | $as_echo "$CC" >&6; } |
| 3461 | else |
| 3462 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3463 | $as_echo "no" >&6; } |
| 3464 | fi |
| 3465 | |
| 3466 | |
| 3467 | fi |
| 3468 | fi |
| 3469 | if test -z "$CC"; then |
| 3470 | # Extract the first word of "cc", so it can be a program name with args. |
| 3471 | set dummy cc; ac_word=$2 |
| 3472 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3473 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3474 | if test "${ac_cv_prog_CC+set}" = set; then |
| 3475 | $as_echo_n "(cached) " >&6 |
| 3476 | else |
| 3477 | if test -n "$CC"; then |
| 3478 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3479 | else |
| 3480 | ac_prog_rejected=no |
| 3481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3482 | for as_dir in $PATH |
| 3483 | do |
| 3484 | IFS=$as_save_IFS |
| 3485 | test -z "$as_dir" && as_dir=. |
| 3486 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3487 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3488 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3489 | ac_prog_rejected=yes |
| 3490 | continue |
| 3491 | fi |
| 3492 | ac_cv_prog_CC="cc" |
| 3493 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3494 | break 2 |
| 3495 | fi |
| 3496 | done |
| 3497 | done |
| 3498 | IFS=$as_save_IFS |
| 3499 | |
| 3500 | if test $ac_prog_rejected = yes; then |
| 3501 | # We found a bogon in the path, so make sure we never use it. |
| 3502 | set dummy $ac_cv_prog_CC |
| 3503 | shift |
| 3504 | if test $# != 0; then |
| 3505 | # We chose a different compiler from the bogus one. |
| 3506 | # However, it has the same basename, so the bogon will be chosen |
| 3507 | # first if we set CC to just the basename; use the full file name. |
| 3508 | shift |
| 3509 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3510 | fi |
| 3511 | fi |
| 3512 | fi |
| 3513 | fi |
| 3514 | CC=$ac_cv_prog_CC |
| 3515 | if test -n "$CC"; then |
| 3516 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 3517 | $as_echo "$CC" >&6; } |
| 3518 | else |
| 3519 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3520 | $as_echo "no" >&6; } |
| 3521 | fi |
| 3522 | |
| 3523 | |
| 3524 | fi |
| 3525 | if test -z "$CC"; then |
| 3526 | if test -n "$ac_tool_prefix"; then |
| 3527 | for ac_prog in cl.exe |
| 3528 | do |
| 3529 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3530 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3531 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3532 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3533 | if test "${ac_cv_prog_CC+set}" = set; then |
| 3534 | $as_echo_n "(cached) " >&6 |
| 3535 | else |
| 3536 | if test -n "$CC"; then |
| 3537 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3538 | else |
| 3539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3540 | for as_dir in $PATH |
| 3541 | do |
| 3542 | IFS=$as_save_IFS |
| 3543 | test -z "$as_dir" && as_dir=. |
| 3544 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3545 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3546 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3547 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3548 | break 2 |
| 3549 | fi |
| 3550 | done |
| 3551 | done |
| 3552 | IFS=$as_save_IFS |
| 3553 | |
| 3554 | fi |
| 3555 | fi |
| 3556 | CC=$ac_cv_prog_CC |
| 3557 | if test -n "$CC"; then |
| 3558 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
| 3559 | $as_echo "$CC" >&6; } |
| 3560 | else |
| 3561 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3562 | $as_echo "no" >&6; } |
| 3563 | fi |
| 3564 | |
| 3565 | |
| 3566 | test -n "$CC" && break |
| 3567 | done |
| 3568 | fi |
| 3569 | if test -z "$CC"; then |
| 3570 | ac_ct_CC=$CC |
| 3571 | for ac_prog in cl.exe |
| 3572 | do |
| 3573 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3574 | set dummy $ac_prog; ac_word=$2 |
| 3575 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3576 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3577 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 3578 | $as_echo_n "(cached) " >&6 |
| 3579 | else |
| 3580 | if test -n "$ac_ct_CC"; then |
| 3581 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3582 | else |
| 3583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3584 | for as_dir in $PATH |
| 3585 | do |
| 3586 | IFS=$as_save_IFS |
| 3587 | test -z "$as_dir" && as_dir=. |
| 3588 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3589 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3590 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3591 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3592 | break 2 |
| 3593 | fi |
| 3594 | done |
| 3595 | done |
| 3596 | IFS=$as_save_IFS |
| 3597 | |
| 3598 | fi |
| 3599 | fi |
| 3600 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3601 | if test -n "$ac_ct_CC"; then |
| 3602 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 3603 | $as_echo "$ac_ct_CC" >&6; } |
| 3604 | else |
| 3605 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 3606 | $as_echo "no" >&6; } |
| 3607 | fi |
| 3608 | |
| 3609 | |
| 3610 | test -n "$ac_ct_CC" && break |
| 3611 | done |
| 3612 | |
| 3613 | if test "x$ac_ct_CC" = x; then |
| 3614 | CC="" |
| 3615 | else |
| 3616 | case $cross_compiling:$ac_tool_warned in |
| 3617 | yes:) |
| 3618 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3619 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3620 | ac_tool_warned=yes ;; |
| 3621 | esac |
| 3622 | CC=$ac_ct_CC |
| 3623 | fi |
| 3624 | fi |
| 3625 | |
| 3626 | fi |
| 3627 | |
| 3628 | |
| 3629 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 3630 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3631 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 3632 | See \`config.log' for more details." >&5 |
| 3633 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 3634 | See \`config.log' for more details." >&2;} |
| 3635 | { (exit 1); exit 1; }; }; } |
| 3636 | |
| 3637 | # Provide some information about the compiler. |
| 3638 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 3639 | set X $ac_compile |
| 3640 | ac_compiler=$2 |
| 3641 | { (ac_try="$ac_compiler --version >&5" |
| 3642 | case "(($ac_try" in |
| 3643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3644 | *) ac_try_echo=$ac_try;; |
| 3645 | esac |
| 3646 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3647 | $as_echo "$ac_try_echo") >&5 |
| 3648 | (eval "$ac_compiler --version >&5") 2>&5 |
| 3649 | ac_status=$? |
| 3650 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3651 | (exit $ac_status); } |
| 3652 | { (ac_try="$ac_compiler -v >&5" |
| 3653 | case "(($ac_try" in |
| 3654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3655 | *) ac_try_echo=$ac_try;; |
| 3656 | esac |
| 3657 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3658 | $as_echo "$ac_try_echo") >&5 |
| 3659 | (eval "$ac_compiler -v >&5") 2>&5 |
| 3660 | ac_status=$? |
| 3661 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3662 | (exit $ac_status); } |
| 3663 | { (ac_try="$ac_compiler -V >&5" |
| 3664 | case "(($ac_try" in |
| 3665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3666 | *) ac_try_echo=$ac_try;; |
| 3667 | esac |
| 3668 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3669 | $as_echo "$ac_try_echo") >&5 |
| 3670 | (eval "$ac_compiler -V >&5") 2>&5 |
| 3671 | ac_status=$? |
| 3672 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3673 | (exit $ac_status); } |
| 3674 | |
| 3675 | cat >conftest.$ac_ext <<_ACEOF |
| 3676 | /* confdefs.h. */ |
| 3677 | _ACEOF |
| 3678 | cat confdefs.h >>conftest.$ac_ext |
| 3679 | cat >>conftest.$ac_ext <<_ACEOF |
| 3680 | /* end confdefs.h. */ |
| 3681 | |
| 3682 | int |
| 3683 | main () |
| 3684 | { |
| 3685 | |
| 3686 | ; |
| 3687 | return 0; |
| 3688 | } |
| 3689 | _ACEOF |
| 3690 | ac_clean_files_save=$ac_clean_files |
| 3691 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 3692 | # Try to create an executable without -o first, disregard a.out. |
| 3693 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3694 | # of exeext. |
| 3695 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 3696 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3697 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3698 | |
| 3699 | # The possible output files: |
| 3700 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3701 | |
| 3702 | ac_rmfiles= |
| 3703 | for ac_file in $ac_files |
| 3704 | do |
| 3705 | case $ac_file in |
| 3706 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3707 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3708 | esac |
| 3709 | done |
| 3710 | rm -f $ac_rmfiles |
| 3711 | |
| 3712 | if { (ac_try="$ac_link_default" |
| 3713 | case "(($ac_try" in |
| 3714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3715 | *) ac_try_echo=$ac_try;; |
| 3716 | esac |
| 3717 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3718 | $as_echo "$ac_try_echo") >&5 |
| 3719 | (eval "$ac_link_default") 2>&5 |
| 3720 | ac_status=$? |
| 3721 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3722 | (exit $ac_status); }; then |
| 3723 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3724 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3725 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3726 | # so that the user can short-circuit this test for compilers unknown to |
| 3727 | # Autoconf. |
| 3728 | for ac_file in $ac_files '' |
| 3729 | do |
| 3730 | test -f "$ac_file" || continue |
| 3731 | case $ac_file in |
| 3732 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 3733 | ;; |
| 3734 | [ab].out ) |
| 3735 | # We found the default executable, but exeext='' is most |
| 3736 | # certainly right. |
| 3737 | break;; |
| 3738 | *.* ) |
| 3739 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 3740 | then :; else |
| 3741 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3742 | fi |
| 3743 | # We set ac_cv_exeext here because the later test for it is not |
| 3744 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3745 | # argument, so we may need to know it at that point already. |
| 3746 | # Even if this section looks crufty: it has the advantage of |
| 3747 | # actually working. |
| 3748 | break;; |
| 3749 | * ) |
| 3750 | break;; |
| 3751 | esac |
| 3752 | done |
| 3753 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3754 | |
| 3755 | else |
| 3756 | ac_file='' |
| 3757 | fi |
| 3758 | |
| 3759 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 3760 | $as_echo "$ac_file" >&6; } |
| 3761 | if test -z "$ac_file"; then |
| 3762 | $as_echo "$as_me: failed program was:" >&5 |
| 3763 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3764 | |
| 3765 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 3766 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3767 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 3768 | See \`config.log' for more details." >&5 |
| 3769 | $as_echo "$as_me: error: C compiler cannot create executables |
| 3770 | See \`config.log' for more details." >&2;} |
| 3771 | { (exit 77); exit 77; }; }; } |
| 3772 | fi |
| 3773 | |
| 3774 | ac_exeext=$ac_cv_exeext |
| 3775 | |
| 3776 | # Check that the compiler produces executables we can run. If not, either |
| 3777 | # the compiler is broken, or we cross compile. |
| 3778 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 3779 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 3780 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 3781 | # If not cross compiling, check that we can run a simple program. |
| 3782 | if test "$cross_compiling" != yes; then |
| 3783 | if { ac_try='./$ac_file' |
| 3784 | { (case "(($ac_try" in |
| 3785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3786 | *) ac_try_echo=$ac_try;; |
| 3787 | esac |
| 3788 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3789 | $as_echo "$ac_try_echo") >&5 |
| 3790 | (eval "$ac_try") 2>&5 |
| 3791 | ac_status=$? |
| 3792 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3793 | (exit $ac_status); }; }; then |
| 3794 | cross_compiling=no |
| 3795 | else |
| 3796 | if test "$cross_compiling" = maybe; then |
| 3797 | cross_compiling=yes |
| 3798 | else |
| 3799 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 3800 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3801 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 3802 | If you meant to cross compile, use \`--host'. |
| 3803 | See \`config.log' for more details." >&5 |
| 3804 | $as_echo "$as_me: error: cannot run C compiled programs. |
| 3805 | If you meant to cross compile, use \`--host'. |
| 3806 | See \`config.log' for more details." >&2;} |
| 3807 | { (exit 1); exit 1; }; }; } |
| 3808 | fi |
| 3809 | fi |
| 3810 | fi |
| 3811 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 3812 | $as_echo "yes" >&6; } |
| 3813 | |
| 3814 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 3815 | ac_clean_files=$ac_clean_files_save |
| 3816 | # Check that the compiler produces executables we can run. If not, either |
| 3817 | # the compiler is broken, or we cross compile. |
| 3818 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 3819 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3820 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 3821 | $as_echo "$cross_compiling" >&6; } |
| 3822 | |
| 3823 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 3824 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3825 | if { (ac_try="$ac_link" |
| 3826 | case "(($ac_try" in |
| 3827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3828 | *) ac_try_echo=$ac_try;; |
| 3829 | esac |
| 3830 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3831 | $as_echo "$ac_try_echo") >&5 |
| 3832 | (eval "$ac_link") 2>&5 |
| 3833 | ac_status=$? |
| 3834 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3835 | (exit $ac_status); }; then |
| 3836 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3837 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3838 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3839 | # `rm'. |
| 3840 | for ac_file in conftest.exe conftest conftest.*; do |
| 3841 | test -f "$ac_file" || continue |
| 3842 | case $ac_file in |
| 3843 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3844 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3845 | break;; |
| 3846 | * ) break;; |
| 3847 | esac |
| 3848 | done |
| 3849 | else |
| 3850 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 3851 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3852 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 3853 | See \`config.log' for more details." >&5 |
| 3854 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 3855 | See \`config.log' for more details." >&2;} |
| 3856 | { (exit 1); exit 1; }; }; } |
| 3857 | fi |
| 3858 | |
| 3859 | rm -f conftest$ac_cv_exeext |
| 3860 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 3861 | $as_echo "$ac_cv_exeext" >&6; } |
| 3862 | |
| 3863 | rm -f conftest.$ac_ext |
| 3864 | EXEEXT=$ac_cv_exeext |
| 3865 | ac_exeext=$EXEEXT |
| 3866 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 3867 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 3868 | if test "${ac_cv_objext+set}" = set; then |
| 3869 | $as_echo_n "(cached) " >&6 |
| 3870 | else |
| 3871 | cat >conftest.$ac_ext <<_ACEOF |
| 3872 | /* confdefs.h. */ |
| 3873 | _ACEOF |
| 3874 | cat confdefs.h >>conftest.$ac_ext |
| 3875 | cat >>conftest.$ac_ext <<_ACEOF |
| 3876 | /* end confdefs.h. */ |
| 3877 | |
| 3878 | int |
| 3879 | main () |
| 3880 | { |
| 3881 | |
| 3882 | ; |
| 3883 | return 0; |
| 3884 | } |
| 3885 | _ACEOF |
| 3886 | rm -f conftest.o conftest.obj |
| 3887 | if { (ac_try="$ac_compile" |
| 3888 | case "(($ac_try" in |
| 3889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3890 | *) ac_try_echo=$ac_try;; |
| 3891 | esac |
| 3892 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3893 | $as_echo "$ac_try_echo") >&5 |
| 3894 | (eval "$ac_compile") 2>&5 |
| 3895 | ac_status=$? |
| 3896 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3897 | (exit $ac_status); }; then |
| 3898 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3899 | test -f "$ac_file" || continue; |
| 3900 | case $ac_file in |
| 3901 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 3902 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3903 | break;; |
| 3904 | esac |
| 3905 | done |
| 3906 | else |
| 3907 | $as_echo "$as_me: failed program was:" >&5 |
| 3908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3909 | |
| 3910 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 3911 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3912 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 3913 | See \`config.log' for more details." >&5 |
| 3914 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 3915 | See \`config.log' for more details." >&2;} |
| 3916 | { (exit 1); exit 1; }; }; } |
| 3917 | fi |
| 3918 | |
| 3919 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3920 | fi |
| 3921 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 3922 | $as_echo "$ac_cv_objext" >&6; } |
| 3923 | OBJEXT=$ac_cv_objext |
| 3924 | ac_objext=$OBJEXT |
| 3925 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3926 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3927 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 3928 | $as_echo_n "(cached) " >&6 |
| 3929 | else |
| 3930 | cat >conftest.$ac_ext <<_ACEOF |
| 3931 | /* confdefs.h. */ |
| 3932 | _ACEOF |
| 3933 | cat confdefs.h >>conftest.$ac_ext |
| 3934 | cat >>conftest.$ac_ext <<_ACEOF |
| 3935 | /* end confdefs.h. */ |
| 3936 | |
| 3937 | int |
| 3938 | main () |
| 3939 | { |
| 3940 | #ifndef __GNUC__ |
| 3941 | choke me |
| 3942 | #endif |
| 3943 | |
| 3944 | ; |
| 3945 | return 0; |
| 3946 | } |
| 3947 | _ACEOF |
| 3948 | rm -f conftest.$ac_objext |
| 3949 | if { (ac_try="$ac_compile" |
| 3950 | case "(($ac_try" in |
| 3951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3952 | *) ac_try_echo=$ac_try;; |
| 3953 | esac |
| 3954 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3955 | $as_echo "$ac_try_echo") >&5 |
| 3956 | (eval "$ac_compile") 2>conftest.er1 |
| 3957 | ac_status=$? |
| 3958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3959 | rm -f conftest.er1 |
| 3960 | cat conftest.err >&5 |
| 3961 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3962 | (exit $ac_status); } && { |
| 3963 | test -z "$ac_c_werror_flag" || |
| 3964 | test ! -s conftest.err |
| 3965 | } && test -s conftest.$ac_objext; then |
| 3966 | ac_compiler_gnu=yes |
| 3967 | else |
| 3968 | $as_echo "$as_me: failed program was:" >&5 |
| 3969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3970 | |
| 3971 | ac_compiler_gnu=no |
| 3972 | fi |
| 3973 | |
| 3974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3975 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3976 | |
| 3977 | fi |
| 3978 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3979 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3980 | if test $ac_compiler_gnu = yes; then |
| 3981 | GCC=yes |
| 3982 | else |
| 3983 | GCC= |
| 3984 | fi |
| 3985 | ac_test_CFLAGS=${CFLAGS+set} |
| 3986 | ac_save_CFLAGS=$CFLAGS |
| 3987 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3988 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3989 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3990 | $as_echo_n "(cached) " >&6 |
| 3991 | else |
| 3992 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3993 | ac_c_werror_flag=yes |
| 3994 | ac_cv_prog_cc_g=no |
| 3995 | CFLAGS="-g" |
| 3996 | cat >conftest.$ac_ext <<_ACEOF |
| 3997 | /* confdefs.h. */ |
| 3998 | _ACEOF |
| 3999 | cat confdefs.h >>conftest.$ac_ext |
| 4000 | cat >>conftest.$ac_ext <<_ACEOF |
| 4001 | /* end confdefs.h. */ |
| 4002 | |
| 4003 | int |
| 4004 | main () |
| 4005 | { |
| 4006 | |
| 4007 | ; |
| 4008 | return 0; |
| 4009 | } |
| 4010 | _ACEOF |
| 4011 | rm -f conftest.$ac_objext |
| 4012 | if { (ac_try="$ac_compile" |
| 4013 | case "(($ac_try" in |
| 4014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4015 | *) ac_try_echo=$ac_try;; |
| 4016 | esac |
| 4017 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4018 | $as_echo "$ac_try_echo") >&5 |
| 4019 | (eval "$ac_compile") 2>conftest.er1 |
| 4020 | ac_status=$? |
| 4021 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4022 | rm -f conftest.er1 |
| 4023 | cat conftest.err >&5 |
| 4024 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4025 | (exit $ac_status); } && { |
| 4026 | test -z "$ac_c_werror_flag" || |
| 4027 | test ! -s conftest.err |
| 4028 | } && test -s conftest.$ac_objext; then |
| 4029 | ac_cv_prog_cc_g=yes |
| 4030 | else |
| 4031 | $as_echo "$as_me: failed program was:" >&5 |
| 4032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4033 | |
| 4034 | CFLAGS="" |
| 4035 | cat >conftest.$ac_ext <<_ACEOF |
| 4036 | /* confdefs.h. */ |
| 4037 | _ACEOF |
| 4038 | cat confdefs.h >>conftest.$ac_ext |
| 4039 | cat >>conftest.$ac_ext <<_ACEOF |
| 4040 | /* end confdefs.h. */ |
| 4041 | |
| 4042 | int |
| 4043 | main () |
| 4044 | { |
| 4045 | |
| 4046 | ; |
| 4047 | return 0; |
| 4048 | } |
| 4049 | _ACEOF |
| 4050 | rm -f conftest.$ac_objext |
| 4051 | if { (ac_try="$ac_compile" |
| 4052 | case "(($ac_try" in |
| 4053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4054 | *) ac_try_echo=$ac_try;; |
| 4055 | esac |
| 4056 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4057 | $as_echo "$ac_try_echo") >&5 |
| 4058 | (eval "$ac_compile") 2>conftest.er1 |
| 4059 | ac_status=$? |
| 4060 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4061 | rm -f conftest.er1 |
| 4062 | cat conftest.err >&5 |
| 4063 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4064 | (exit $ac_status); } && { |
| 4065 | test -z "$ac_c_werror_flag" || |
| 4066 | test ! -s conftest.err |
| 4067 | } && test -s conftest.$ac_objext; then |
| 4068 | : |
| 4069 | else |
| 4070 | $as_echo "$as_me: failed program was:" >&5 |
| 4071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4072 | |
| 4073 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4074 | CFLAGS="-g" |
| 4075 | cat >conftest.$ac_ext <<_ACEOF |
| 4076 | /* confdefs.h. */ |
| 4077 | _ACEOF |
| 4078 | cat confdefs.h >>conftest.$ac_ext |
| 4079 | cat >>conftest.$ac_ext <<_ACEOF |
| 4080 | /* end confdefs.h. */ |
| 4081 | |
| 4082 | int |
| 4083 | main () |
| 4084 | { |
| 4085 | |
| 4086 | ; |
| 4087 | return 0; |
| 4088 | } |
| 4089 | _ACEOF |
| 4090 | rm -f conftest.$ac_objext |
| 4091 | if { (ac_try="$ac_compile" |
| 4092 | case "(($ac_try" in |
| 4093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4094 | *) ac_try_echo=$ac_try;; |
| 4095 | esac |
| 4096 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4097 | $as_echo "$ac_try_echo") >&5 |
| 4098 | (eval "$ac_compile") 2>conftest.er1 |
| 4099 | ac_status=$? |
| 4100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4101 | rm -f conftest.er1 |
| 4102 | cat conftest.err >&5 |
| 4103 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4104 | (exit $ac_status); } && { |
| 4105 | test -z "$ac_c_werror_flag" || |
| 4106 | test ! -s conftest.err |
| 4107 | } && test -s conftest.$ac_objext; then |
| 4108 | ac_cv_prog_cc_g=yes |
| 4109 | else |
| 4110 | $as_echo "$as_me: failed program was:" >&5 |
| 4111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4112 | |
| 4113 | |
| 4114 | fi |
| 4115 | |
| 4116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4117 | fi |
| 4118 | |
| 4119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4120 | fi |
| 4121 | |
| 4122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4123 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4124 | fi |
| 4125 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 4126 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4127 | if test "$ac_test_CFLAGS" = set; then |
| 4128 | CFLAGS=$ac_save_CFLAGS |
| 4129 | elif test $ac_cv_prog_cc_g = yes; then |
| 4130 | if test "$GCC" = yes; then |
| 4131 | CFLAGS="-g -O2" |
| 4132 | else |
| 4133 | CFLAGS="-g" |
| 4134 | fi |
| 4135 | else |
| 4136 | if test "$GCC" = yes; then |
| 4137 | CFLAGS="-O2" |
| 4138 | else |
| 4139 | CFLAGS= |
| 4140 | fi |
| 4141 | fi |
| 4142 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 4143 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 4144 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 4145 | $as_echo_n "(cached) " >&6 |
| 4146 | else |
| 4147 | ac_cv_prog_cc_c89=no |
| 4148 | ac_save_CC=$CC |
| 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 <stdarg.h> |
| 4156 | #include <stdio.h> |
| 4157 | #include <sys/types.h> |
| 4158 | #include <sys/stat.h> |
| 4159 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4160 | struct buf { int x; }; |
| 4161 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4162 | static char *e (p, i) |
| 4163 | char **p; |
| 4164 | int i; |
| 4165 | { |
| 4166 | return p[i]; |
| 4167 | } |
| 4168 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4169 | { |
| 4170 | char *s; |
| 4171 | va_list v; |
| 4172 | va_start (v,p); |
| 4173 | s = g (p, va_arg (v,int)); |
| 4174 | va_end (v); |
| 4175 | return s; |
| 4176 | } |
| 4177 | |
| 4178 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4179 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4180 | These don't provoke an error unfortunately, instead are silently treated |
| 4181 | as 'x'. The following induces an error, until -std is added to get |
| 4182 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4183 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4184 | that's true only with -std. */ |
| 4185 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4186 | |
| 4187 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4188 | inside strings and character constants. */ |
| 4189 | #define FOO(x) 'x' |
| 4190 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4191 | |
| 4192 | int test (int i, double x); |
| 4193 | struct s1 {int (*f) (int a);}; |
| 4194 | struct s2 {int (*f) (double a);}; |
| 4195 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4196 | int argc; |
| 4197 | char **argv; |
| 4198 | int |
| 4199 | main () |
| 4200 | { |
| 4201 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4202 | ; |
| 4203 | return 0; |
| 4204 | } |
| 4205 | _ACEOF |
| 4206 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4207 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4208 | do |
| 4209 | CC="$ac_save_CC $ac_arg" |
| 4210 | rm -f conftest.$ac_objext |
| 4211 | if { (ac_try="$ac_compile" |
| 4212 | case "(($ac_try" in |
| 4213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4214 | *) ac_try_echo=$ac_try;; |
| 4215 | esac |
| 4216 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4217 | $as_echo "$ac_try_echo") >&5 |
| 4218 | (eval "$ac_compile") 2>conftest.er1 |
| 4219 | ac_status=$? |
| 4220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4221 | rm -f conftest.er1 |
| 4222 | cat conftest.err >&5 |
| 4223 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4224 | (exit $ac_status); } && { |
| 4225 | test -z "$ac_c_werror_flag" || |
| 4226 | test ! -s conftest.err |
| 4227 | } && test -s conftest.$ac_objext; then |
| 4228 | ac_cv_prog_cc_c89=$ac_arg |
| 4229 | else |
| 4230 | $as_echo "$as_me: failed program was:" >&5 |
| 4231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4232 | |
| 4233 | |
| 4234 | fi |
| 4235 | |
| 4236 | rm -f core conftest.err conftest.$ac_objext |
| 4237 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4238 | done |
| 4239 | rm -f conftest.$ac_ext |
| 4240 | CC=$ac_save_CC |
| 4241 | |
| 4242 | fi |
| 4243 | # AC_CACHE_VAL |
| 4244 | case "x$ac_cv_prog_cc_c89" in |
| 4245 | x) |
| 4246 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
| 4247 | $as_echo "none needed" >&6; } ;; |
| 4248 | xno) |
| 4249 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
| 4250 | $as_echo "unsupported" >&6; } ;; |
| 4251 | *) |
| 4252 | CC="$CC $ac_cv_prog_cc_c89" |
| 4253 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 4254 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4255 | esac |
| 4256 | |
| 4257 | |
| 4258 | ac_ext=c |
| 4259 | ac_cpp='$CPP $CPPFLAGS' |
| 4260 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4261 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4262 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4263 | DEPDIR="${am__leading_dot}deps" |
| 4264 | |
| 4265 | ac_config_commands="$ac_config_commands depfiles" |
| 4266 | |
| 4267 | |
| 4268 | am_make=${MAKE-make} |
| 4269 | cat > confinc << 'END' |
| 4270 | am__doit: |
| 4271 | @echo this is the am__doit target |
| 4272 | .PHONY: am__doit |
| 4273 | END |
| 4274 | # If we don't find an include directive, just comment out the code. |
| 4275 | { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 4276 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 4277 | am__include="#" |
| 4278 | am__quote= |
| 4279 | _am_result=none |
| 4280 | # First try GNU make style include. |
| 4281 | echo "include confinc" > confmf |
| 4282 | # Ignore all kinds of additional output from `make'. |
| 4283 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 4284 | *the\ am__doit\ target*) |
| 4285 | am__include=include |
| 4286 | am__quote= |
| 4287 | _am_result=GNU |
| 4288 | ;; |
| 4289 | esac |
| 4290 | # Now try BSD make style include. |
| 4291 | if test "$am__include" = "#"; then |
| 4292 | echo '.include "confinc"' > confmf |
| 4293 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 4294 | *the\ am__doit\ target*) |
| 4295 | am__include=.include |
| 4296 | am__quote="\"" |
| 4297 | _am_result=BSD |
| 4298 | ;; |
| 4299 | esac |
| 4300 | fi |
| 4301 | |
| 4302 | |
| 4303 | { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 4304 | $as_echo "$_am_result" >&6; } |
| 4305 | rm -f confinc confmf |
| 4306 | |
| 4307 | # Check whether --enable-dependency-tracking was given. |
| 4308 | if test "${enable_dependency_tracking+set}" = set; then |
| 4309 | enableval=$enable_dependency_tracking; |
| 4310 | fi |
| 4311 | |
| 4312 | if test "x$enable_dependency_tracking" != xno; then |
| 4313 | am_depcomp="$ac_aux_dir/depcomp" |
| 4314 | AMDEPBACKSLASH='\' |
| 4315 | fi |
| 4316 | if test "x$enable_dependency_tracking" != xno; then |
| 4317 | AMDEP_TRUE= |
| 4318 | AMDEP_FALSE='#' |
| 4319 | else |
| 4320 | AMDEP_TRUE='#' |
| 4321 | AMDEP_FALSE= |
| 4322 | fi |
| 4323 | |
| 4324 | |
| 4325 | |
| 4326 | depcc="$CC" am_compiler_list= |
| 4327 | |
| 4328 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 4329 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4330 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 4331 | $as_echo_n "(cached) " >&6 |
| 4332 | else |
| 4333 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4334 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4335 | # making bogus files that we don't know about and never remove. For |
| 4336 | # instance it was reported that on HP-UX the gcc test will end up |
| 4337 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4338 | # in D'. |
| 4339 | mkdir conftest.dir |
| 4340 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4341 | # using a relative directory. |
| 4342 | cp "$am_depcomp" conftest.dir |
| 4343 | cd conftest.dir |
| 4344 | # We will build objects and dependencies in a subdirectory because |
| 4345 | # it helps to detect inapplicable dependency modes. For instance |
| 4346 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4347 | # side effect of compilation, but ICC will put the dependencies in |
| 4348 | # the current directory while Tru64 will put them in the object |
| 4349 | # directory. |
| 4350 | mkdir sub |
| 4351 | |
| 4352 | am_cv_CC_dependencies_compiler_type=none |
| 4353 | if test "$am_compiler_list" = ""; then |
| 4354 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4355 | fi |
| 4356 | am__universal=false |
| 4357 | case " $depcc " in #( |
| 4358 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4359 | esac |
| 4360 | |
| 4361 | for depmode in $am_compiler_list; do |
| 4362 | # Setup a source with many dependencies, because some compilers |
| 4363 | # like to wrap large dependency lists on column 80 (with \), and |
| 4364 | # we should not choose a depcomp mode which is confused by this. |
| 4365 | # |
| 4366 | # We need to recreate these files for each test, as the compiler may |
| 4367 | # overwrite some of them when testing with obscure command lines. |
| 4368 | # This happens at least with the AIX C compiler. |
| 4369 | : > sub/conftest.c |
| 4370 | for i in 1 2 3 4 5 6; do |
| 4371 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4372 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4373 | # Solaris 8's {/usr,}/bin/sh. |
| 4374 | touch sub/conftst$i.h |
| 4375 | done |
| 4376 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4377 | |
| 4378 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4379 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4380 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 4381 | # versions had trouble with output in subdirs |
| 4382 | am__obj=sub/conftest.${OBJEXT-o} |
| 4383 | am__minus_obj="-o $am__obj" |
| 4384 | case $depmode in |
| 4385 | gcc) |
| 4386 | # This depmode causes a compiler race in universal mode. |
| 4387 | test "$am__universal" = false || continue |
| 4388 | ;; |
| 4389 | nosideeffect) |
| 4390 | # after this tag, mechanisms are not by side-effect, so they'll |
| 4391 | # only be used when explicitly requested |
| 4392 | if test "x$enable_dependency_tracking" = xyes; then |
| 4393 | continue |
| 4394 | else |
| 4395 | break |
| 4396 | fi |
| 4397 | ;; |
| 4398 | msvisualcpp | msvcmsys) |
| 4399 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 4400 | # not run yet. These depmodes are late enough in the game, and |
| 4401 | # so weak that their functioning should not be impacted. |
| 4402 | am__obj=conftest.${OBJEXT-o} |
| 4403 | am__minus_obj= |
| 4404 | ;; |
| 4405 | none) break ;; |
| 4406 | esac |
| 4407 | if depmode=$depmode \ |
| 4408 | source=sub/conftest.c object=$am__obj \ |
| 4409 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4410 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 4411 | >/dev/null 2>conftest.err && |
| 4412 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4413 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4414 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 4415 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4416 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4417 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4418 | # that says an option was ignored or not supported. |
| 4419 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4420 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4421 | # The diagnosis changed in icc 8.0: |
| 4422 | # icc: Command line remark: option '-MP' not supported |
| 4423 | if (grep 'ignoring option' conftest.err || |
| 4424 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4425 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4426 | break |
| 4427 | fi |
| 4428 | fi |
| 4429 | done |
| 4430 | |
| 4431 | cd .. |
| 4432 | rm -rf conftest.dir |
| 4433 | else |
| 4434 | am_cv_CC_dependencies_compiler_type=none |
| 4435 | fi |
| 4436 | |
| 4437 | fi |
| 4438 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4439 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 4440 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4441 | |
| 4442 | if |
| 4443 | test "x$enable_dependency_tracking" != xno \ |
| 4444 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4445 | am__fastdepCC_TRUE= |
| 4446 | am__fastdepCC_FALSE='#' |
| 4447 | else |
| 4448 | am__fastdepCC_TRUE='#' |
| 4449 | am__fastdepCC_FALSE= |
| 4450 | fi |
| 4451 | |
| 4452 | |
| 4453 | case $ac_cv_prog_cc_stdc in |
| 4454 | no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; |
| 4455 | *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 |
| 4456 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
| 4457 | if test "${ac_cv_prog_cc_c99+set}" = set; then |
| 4458 | $as_echo_n "(cached) " >&6 |
| 4459 | else |
| 4460 | ac_cv_prog_cc_c99=no |
| 4461 | ac_save_CC=$CC |
| 4462 | cat >conftest.$ac_ext <<_ACEOF |
| 4463 | /* confdefs.h. */ |
| 4464 | _ACEOF |
| 4465 | cat confdefs.h >>conftest.$ac_ext |
| 4466 | cat >>conftest.$ac_ext <<_ACEOF |
| 4467 | /* end confdefs.h. */ |
| 4468 | #include <stdarg.h> |
| 4469 | #include <stdbool.h> |
| 4470 | #include <stdlib.h> |
| 4471 | #include <wchar.h> |
| 4472 | #include <stdio.h> |
| 4473 | |
| 4474 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 4475 | #define debug(...) fprintf (stderr, __VA_ARGS__) |
| 4476 | #define showlist(...) puts (#__VA_ARGS__) |
| 4477 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 4478 | static void |
| 4479 | test_varargs_macros (void) |
| 4480 | { |
| 4481 | int x = 1234; |
| 4482 | int y = 5678; |
| 4483 | debug ("Flag"); |
| 4484 | debug ("X = %d\n", x); |
| 4485 | showlist (The first, second, and third items.); |
| 4486 | report (x>y, "x is %d but y is %d", x, y); |
| 4487 | } |
| 4488 | |
| 4489 | // Check long long types. |
| 4490 | #define BIG64 18446744073709551615ull |
| 4491 | #define BIG32 4294967295ul |
| 4492 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 4493 | #if !BIG_OK |
| 4494 | your preprocessor is broken; |
| 4495 | #endif |
| 4496 | #if BIG_OK |
| 4497 | #else |
| 4498 | your preprocessor is broken; |
| 4499 | #endif |
| 4500 | static long long int bignum = -9223372036854775807LL; |
| 4501 | static unsigned long long int ubignum = BIG64; |
| 4502 | |
| 4503 | struct incomplete_array |
| 4504 | { |
| 4505 | int datasize; |
| 4506 | double data[]; |
| 4507 | }; |
| 4508 | |
| 4509 | struct named_init { |
| 4510 | int number; |
| 4511 | const wchar_t *name; |
| 4512 | double average; |
| 4513 | }; |
| 4514 | |
| 4515 | typedef const char *ccp; |
| 4516 | |
| 4517 | static inline int |
| 4518 | test_restrict (ccp restrict text) |
| 4519 | { |
| 4520 | // See if C++-style comments work. |
| 4521 | // Iterate through items via the restricted pointer. |
| 4522 | // Also check for declarations in for loops. |
| 4523 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
| 4524 | continue; |
| 4525 | return 0; |
| 4526 | } |
| 4527 | |
| 4528 | // Check varargs and va_copy. |
| 4529 | static void |
| 4530 | test_varargs (const char *format, ...) |
| 4531 | { |
| 4532 | va_list args; |
| 4533 | va_start (args, format); |
| 4534 | va_list args_copy; |
| 4535 | va_copy (args_copy, args); |
| 4536 | |
| 4537 | const char *str; |
| 4538 | int number; |
| 4539 | float fnumber; |
| 4540 | |
| 4541 | while (*format) |
| 4542 | { |
| 4543 | switch (*format++) |
| 4544 | { |
| 4545 | case 's': // string |
| 4546 | str = va_arg (args_copy, const char *); |
| 4547 | break; |
| 4548 | case 'd': // int |
| 4549 | number = va_arg (args_copy, int); |
| 4550 | break; |
| 4551 | case 'f': // float |
| 4552 | fnumber = va_arg (args_copy, double); |
| 4553 | break; |
| 4554 | default: |
| 4555 | break; |
| 4556 | } |
| 4557 | } |
| 4558 | va_end (args_copy); |
| 4559 | va_end (args); |
| 4560 | } |
| 4561 | |
| 4562 | int |
| 4563 | main () |
| 4564 | { |
| 4565 | |
| 4566 | // Check bool. |
| 4567 | _Bool success = false; |
| 4568 | |
| 4569 | // Check restrict. |
| 4570 | if (test_restrict ("String literal") == 0) |
| 4571 | success = true; |
| 4572 | char *restrict newvar = "Another string"; |
| 4573 | |
| 4574 | // Check varargs. |
| 4575 | test_varargs ("s, d' f .", "string", 65, 34.234); |
| 4576 | test_varargs_macros (); |
| 4577 | |
| 4578 | // Check flexible array members. |
| 4579 | struct incomplete_array *ia = |
| 4580 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 4581 | ia->datasize = 10; |
| 4582 | for (int i = 0; i < ia->datasize; ++i) |
| 4583 | ia->data[i] = i * 1.234; |
| 4584 | |
| 4585 | // Check named initializers. |
| 4586 | struct named_init ni = { |
| 4587 | .number = 34, |
| 4588 | .name = L"Test wide string", |
| 4589 | .average = 543.34343, |
| 4590 | }; |
| 4591 | |
| 4592 | ni.number = 58; |
| 4593 | |
| 4594 | int dynamic_array[ni.number]; |
| 4595 | dynamic_array[ni.number - 1] = 543; |
| 4596 | |
| 4597 | // work around unused variable warnings |
| 4598 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
| 4599 | || dynamic_array[ni.number - 1] != 543); |
| 4600 | |
| 4601 | ; |
| 4602 | return 0; |
| 4603 | } |
| 4604 | _ACEOF |
| 4605 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 |
| 4606 | do |
| 4607 | CC="$ac_save_CC $ac_arg" |
| 4608 | rm -f conftest.$ac_objext |
| 4609 | if { (ac_try="$ac_compile" |
| 4610 | case "(($ac_try" in |
| 4611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4612 | *) ac_try_echo=$ac_try;; |
| 4613 | esac |
| 4614 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4615 | $as_echo "$ac_try_echo") >&5 |
| 4616 | (eval "$ac_compile") 2>conftest.er1 |
| 4617 | ac_status=$? |
| 4618 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4619 | rm -f conftest.er1 |
| 4620 | cat conftest.err >&5 |
| 4621 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4622 | (exit $ac_status); } && { |
| 4623 | test -z "$ac_c_werror_flag" || |
| 4624 | test ! -s conftest.err |
| 4625 | } && test -s conftest.$ac_objext; then |
| 4626 | ac_cv_prog_cc_c99=$ac_arg |
| 4627 | else |
| 4628 | $as_echo "$as_me: failed program was:" >&5 |
| 4629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4630 | |
| 4631 | |
| 4632 | fi |
| 4633 | |
| 4634 | rm -f core conftest.err conftest.$ac_objext |
| 4635 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 4636 | done |
| 4637 | rm -f conftest.$ac_ext |
| 4638 | CC=$ac_save_CC |
| 4639 | |
| 4640 | fi |
| 4641 | # AC_CACHE_VAL |
| 4642 | case "x$ac_cv_prog_cc_c99" in |
| 4643 | x) |
| 4644 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
| 4645 | $as_echo "none needed" >&6; } ;; |
| 4646 | xno) |
| 4647 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
| 4648 | $as_echo "unsupported" >&6; } ;; |
| 4649 | *) |
| 4650 | CC="$CC $ac_cv_prog_cc_c99" |
| 4651 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 |
| 4652 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
| 4653 | esac |
| 4654 | if test "x$ac_cv_prog_cc_c99" != xno; then |
| 4655 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 4656 | else |
| 4657 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 4658 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 4659 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 4660 | $as_echo_n "(cached) " >&6 |
| 4661 | else |
| 4662 | ac_cv_prog_cc_c89=no |
| 4663 | ac_save_CC=$CC |
| 4664 | cat >conftest.$ac_ext <<_ACEOF |
| 4665 | /* confdefs.h. */ |
| 4666 | _ACEOF |
| 4667 | cat confdefs.h >>conftest.$ac_ext |
| 4668 | cat >>conftest.$ac_ext <<_ACEOF |
| 4669 | /* end confdefs.h. */ |
| 4670 | #include <stdarg.h> |
| 4671 | #include <stdio.h> |
| 4672 | #include <sys/types.h> |
| 4673 | #include <sys/stat.h> |
| 4674 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4675 | struct buf { int x; }; |
| 4676 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4677 | static char *e (p, i) |
| 4678 | char **p; |
| 4679 | int i; |
| 4680 | { |
| 4681 | return p[i]; |
| 4682 | } |
| 4683 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4684 | { |
| 4685 | char *s; |
| 4686 | va_list v; |
| 4687 | va_start (v,p); |
| 4688 | s = g (p, va_arg (v,int)); |
| 4689 | va_end (v); |
| 4690 | return s; |
| 4691 | } |
| 4692 | |
| 4693 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4694 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4695 | These don't provoke an error unfortunately, instead are silently treated |
| 4696 | as 'x'. The following induces an error, until -std is added to get |
| 4697 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4698 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4699 | that's true only with -std. */ |
| 4700 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4701 | |
| 4702 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4703 | inside strings and character constants. */ |
| 4704 | #define FOO(x) 'x' |
| 4705 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4706 | |
| 4707 | int test (int i, double x); |
| 4708 | struct s1 {int (*f) (int a);}; |
| 4709 | struct s2 {int (*f) (double a);}; |
| 4710 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4711 | int argc; |
| 4712 | char **argv; |
| 4713 | int |
| 4714 | main () |
| 4715 | { |
| 4716 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4717 | ; |
| 4718 | return 0; |
| 4719 | } |
| 4720 | _ACEOF |
| 4721 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4722 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4723 | do |
| 4724 | CC="$ac_save_CC $ac_arg" |
| 4725 | rm -f conftest.$ac_objext |
| 4726 | if { (ac_try="$ac_compile" |
| 4727 | case "(($ac_try" in |
| 4728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4729 | *) ac_try_echo=$ac_try;; |
| 4730 | esac |
| 4731 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4732 | $as_echo "$ac_try_echo") >&5 |
| 4733 | (eval "$ac_compile") 2>conftest.er1 |
| 4734 | ac_status=$? |
| 4735 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4736 | rm -f conftest.er1 |
| 4737 | cat conftest.err >&5 |
| 4738 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4739 | (exit $ac_status); } && { |
| 4740 | test -z "$ac_c_werror_flag" || |
| 4741 | test ! -s conftest.err |
| 4742 | } && test -s conftest.$ac_objext; then |
| 4743 | ac_cv_prog_cc_c89=$ac_arg |
| 4744 | else |
| 4745 | $as_echo "$as_me: failed program was:" >&5 |
| 4746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4747 | |
| 4748 | |
| 4749 | fi |
| 4750 | |
| 4751 | rm -f core conftest.err conftest.$ac_objext |
| 4752 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4753 | done |
| 4754 | rm -f conftest.$ac_ext |
| 4755 | CC=$ac_save_CC |
| 4756 | |
| 4757 | fi |
| 4758 | # AC_CACHE_VAL |
| 4759 | case "x$ac_cv_prog_cc_c89" in |
| 4760 | x) |
| 4761 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
| 4762 | $as_echo "none needed" >&6; } ;; |
| 4763 | xno) |
| 4764 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
| 4765 | $as_echo "unsupported" >&6; } ;; |
| 4766 | *) |
| 4767 | CC="$CC $ac_cv_prog_cc_c89" |
| 4768 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 4769 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4770 | esac |
| 4771 | if test "x$ac_cv_prog_cc_c89" != xno; then |
| 4772 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 4773 | else |
| 4774 | ac_cv_prog_cc_stdc=no |
| 4775 | fi |
| 4776 | |
| 4777 | |
| 4778 | fi |
| 4779 | |
| 4780 | ;; |
| 4781 | esac |
| 4782 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5 |
| 4783 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } |
| 4784 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 4785 | $as_echo_n "(cached) " >&6 |
| 4786 | fi |
| 4787 | |
| 4788 | case $ac_cv_prog_cc_stdc in |
| 4789 | no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
| 4790 | $as_echo "unsupported" >&6; } ;; |
| 4791 | '') { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
| 4792 | $as_echo "none needed" >&6; } ;; |
| 4793 | *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 4794 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; |
| 4795 | esac |
| 4796 | |
| 4797 | |
| 4798 | ac_ext=c |
| 4799 | ac_cpp='$CPP $CPPFLAGS' |
| 4800 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4801 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4802 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4803 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 4804 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 4805 | # On Suns, sometimes $CPP names a directory. |
| 4806 | if test -n "$CPP" && test -d "$CPP"; then |
| 4807 | CPP= |
| 4808 | fi |
| 4809 | if test -z "$CPP"; then |
| 4810 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 4811 | $as_echo_n "(cached) " >&6 |
| 4812 | else |
| 4813 | # Double quotes because CPP needs to be expanded |
| 4814 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4815 | do |
| 4816 | ac_preproc_ok=false |
| 4817 | for ac_c_preproc_warn_flag in '' yes |
| 4818 | do |
| 4819 | # Use a header file that comes with gcc, so configuring glibc |
| 4820 | # with a fresh cross-compiler works. |
| 4821 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4822 | # <limits.h> exists even on freestanding compilers. |
| 4823 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4824 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4825 | cat >conftest.$ac_ext <<_ACEOF |
| 4826 | /* confdefs.h. */ |
| 4827 | _ACEOF |
| 4828 | cat confdefs.h >>conftest.$ac_ext |
| 4829 | cat >>conftest.$ac_ext <<_ACEOF |
| 4830 | /* end confdefs.h. */ |
| 4831 | #ifdef __STDC__ |
| 4832 | # include <limits.h> |
| 4833 | #else |
| 4834 | # include <assert.h> |
| 4835 | #endif |
| 4836 | Syntax error |
| 4837 | _ACEOF |
| 4838 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4839 | case "(($ac_try" in |
| 4840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4841 | *) ac_try_echo=$ac_try;; |
| 4842 | esac |
| 4843 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4844 | $as_echo "$ac_try_echo") >&5 |
| 4845 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4846 | ac_status=$? |
| 4847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4848 | rm -f conftest.er1 |
| 4849 | cat conftest.err >&5 |
| 4850 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4851 | (exit $ac_status); } >/dev/null && { |
| 4852 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4853 | test ! -s conftest.err |
| 4854 | }; then |
| 4855 | : |
| 4856 | else |
| 4857 | $as_echo "$as_me: failed program was:" >&5 |
| 4858 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4859 | |
| 4860 | # Broken: fails on valid input. |
| 4861 | continue |
| 4862 | fi |
| 4863 | |
| 4864 | rm -f conftest.err conftest.$ac_ext |
| 4865 | |
| 4866 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4867 | # can be detected and how. |
| 4868 | cat >conftest.$ac_ext <<_ACEOF |
| 4869 | /* confdefs.h. */ |
| 4870 | _ACEOF |
| 4871 | cat confdefs.h >>conftest.$ac_ext |
| 4872 | cat >>conftest.$ac_ext <<_ACEOF |
| 4873 | /* end confdefs.h. */ |
| 4874 | #include <ac_nonexistent.h> |
| 4875 | _ACEOF |
| 4876 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4877 | case "(($ac_try" in |
| 4878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4879 | *) ac_try_echo=$ac_try;; |
| 4880 | esac |
| 4881 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4882 | $as_echo "$ac_try_echo") >&5 |
| 4883 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4884 | ac_status=$? |
| 4885 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4886 | rm -f conftest.er1 |
| 4887 | cat conftest.err >&5 |
| 4888 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4889 | (exit $ac_status); } >/dev/null && { |
| 4890 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4891 | test ! -s conftest.err |
| 4892 | }; then |
| 4893 | # Broken: success on invalid input. |
| 4894 | continue |
| 4895 | else |
| 4896 | $as_echo "$as_me: failed program was:" >&5 |
| 4897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4898 | |
| 4899 | # Passes both tests. |
| 4900 | ac_preproc_ok=: |
| 4901 | break |
| 4902 | fi |
| 4903 | |
| 4904 | rm -f conftest.err conftest.$ac_ext |
| 4905 | |
| 4906 | done |
| 4907 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4908 | rm -f conftest.err conftest.$ac_ext |
| 4909 | if $ac_preproc_ok; then |
| 4910 | break |
| 4911 | fi |
| 4912 | |
| 4913 | done |
| 4914 | ac_cv_prog_CPP=$CPP |
| 4915 | |
| 4916 | fi |
| 4917 | CPP=$ac_cv_prog_CPP |
| 4918 | else |
| 4919 | ac_cv_prog_CPP=$CPP |
| 4920 | fi |
| 4921 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4922 | $as_echo "$CPP" >&6; } |
| 4923 | ac_preproc_ok=false |
| 4924 | for ac_c_preproc_warn_flag in '' yes |
| 4925 | do |
| 4926 | # Use a header file that comes with gcc, so configuring glibc |
| 4927 | # with a fresh cross-compiler works. |
| 4928 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4929 | # <limits.h> exists even on freestanding compilers. |
| 4930 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4931 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4932 | cat >conftest.$ac_ext <<_ACEOF |
| 4933 | /* confdefs.h. */ |
| 4934 | _ACEOF |
| 4935 | cat confdefs.h >>conftest.$ac_ext |
| 4936 | cat >>conftest.$ac_ext <<_ACEOF |
| 4937 | /* end confdefs.h. */ |
| 4938 | #ifdef __STDC__ |
| 4939 | # include <limits.h> |
| 4940 | #else |
| 4941 | # include <assert.h> |
| 4942 | #endif |
| 4943 | Syntax error |
| 4944 | _ACEOF |
| 4945 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4946 | case "(($ac_try" in |
| 4947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4948 | *) ac_try_echo=$ac_try;; |
| 4949 | esac |
| 4950 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4951 | $as_echo "$ac_try_echo") >&5 |
| 4952 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4953 | ac_status=$? |
| 4954 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4955 | rm -f conftest.er1 |
| 4956 | cat conftest.err >&5 |
| 4957 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4958 | (exit $ac_status); } >/dev/null && { |
| 4959 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4960 | test ! -s conftest.err |
| 4961 | }; then |
| 4962 | : |
| 4963 | else |
| 4964 | $as_echo "$as_me: failed program was:" >&5 |
| 4965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4966 | |
| 4967 | # Broken: fails on valid input. |
| 4968 | continue |
| 4969 | fi |
| 4970 | |
| 4971 | rm -f conftest.err conftest.$ac_ext |
| 4972 | |
| 4973 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4974 | # can be detected and how. |
| 4975 | cat >conftest.$ac_ext <<_ACEOF |
| 4976 | /* confdefs.h. */ |
| 4977 | _ACEOF |
| 4978 | cat confdefs.h >>conftest.$ac_ext |
| 4979 | cat >>conftest.$ac_ext <<_ACEOF |
| 4980 | /* end confdefs.h. */ |
| 4981 | #include <ac_nonexistent.h> |
| 4982 | _ACEOF |
| 4983 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4984 | case "(($ac_try" in |
| 4985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4986 | *) ac_try_echo=$ac_try;; |
| 4987 | esac |
| 4988 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 4989 | $as_echo "$ac_try_echo") >&5 |
| 4990 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4991 | ac_status=$? |
| 4992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4993 | rm -f conftest.er1 |
| 4994 | cat conftest.err >&5 |
| 4995 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4996 | (exit $ac_status); } >/dev/null && { |
| 4997 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4998 | test ! -s conftest.err |
| 4999 | }; then |
| 5000 | # Broken: success on invalid input. |
| 5001 | continue |
| 5002 | else |
| 5003 | $as_echo "$as_me: failed program was:" >&5 |
| 5004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5005 | |
| 5006 | # Passes both tests. |
| 5007 | ac_preproc_ok=: |
| 5008 | break |
| 5009 | fi |
| 5010 | |
| 5011 | rm -f conftest.err conftest.$ac_ext |
| 5012 | |
| 5013 | done |
| 5014 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5015 | rm -f conftest.err conftest.$ac_ext |
| 5016 | if $ac_preproc_ok; then |
| 5017 | : |
| 5018 | else |
| 5019 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 5020 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5021 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5022 | See \`config.log' for more details." >&5 |
| 5023 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5024 | See \`config.log' for more details." >&2;} |
| 5025 | { (exit 1); exit 1; }; }; } |
| 5026 | fi |
| 5027 | |
| 5028 | ac_ext=c |
| 5029 | ac_cpp='$CPP $CPPFLAGS' |
| 5030 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5031 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5032 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5033 | |
| 5034 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 5035 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 5036 | if test "${ac_cv_path_SED+set}" = set; then |
| 5037 | $as_echo_n "(cached) " >&6 |
| 5038 | else |
| 5039 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 5040 | for ac_i in 1 2 3 4 5 6 7; do |
| 5041 | ac_script="$ac_script$as_nl$ac_script" |
| 5042 | done |
| 5043 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 5044 | $as_unset ac_script || ac_script= |
| 5045 | if test -z "$SED"; then |
| 5046 | ac_path_SED_found=false |
| 5047 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5049 | for as_dir in $PATH |
| 5050 | do |
| 5051 | IFS=$as_save_IFS |
| 5052 | test -z "$as_dir" && as_dir=. |
| 5053 | for ac_prog in sed gsed; do |
| 5054 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5055 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 5056 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
| 5057 | # Check for GNU ac_path_SED and select it if it is found. |
| 5058 | # Check for GNU $ac_path_SED |
| 5059 | case `"$ac_path_SED" --version 2>&1` in |
| 5060 | *GNU*) |
| 5061 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 5062 | *) |
| 5063 | ac_count=0 |
| 5064 | $as_echo_n 0123456789 >"conftest.in" |
| 5065 | while : |
| 5066 | do |
| 5067 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5068 | mv "conftest.tmp" "conftest.in" |
| 5069 | cp "conftest.in" "conftest.nl" |
| 5070 | $as_echo '' >> "conftest.nl" |
| 5071 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5072 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5073 | ac_count=`expr $ac_count + 1` |
| 5074 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 5075 | # Best one so far, save it but keep looking for a better one |
| 5076 | ac_cv_path_SED="$ac_path_SED" |
| 5077 | ac_path_SED_max=$ac_count |
| 5078 | fi |
| 5079 | # 10*(2^10) chars as input seems more than enough |
| 5080 | test $ac_count -gt 10 && break |
| 5081 | done |
| 5082 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5083 | esac |
| 5084 | |
| 5085 | $ac_path_SED_found && break 3 |
| 5086 | done |
| 5087 | done |
| 5088 | done |
| 5089 | IFS=$as_save_IFS |
| 5090 | if test -z "$ac_cv_path_SED"; then |
| 5091 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 |
| 5092 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} |
| 5093 | { (exit 1); exit 1; }; } |
| 5094 | fi |
| 5095 | else |
| 5096 | ac_cv_path_SED=$SED |
| 5097 | fi |
| 5098 | |
| 5099 | fi |
| 5100 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
| 5101 | $as_echo "$ac_cv_path_SED" >&6; } |
| 5102 | SED="$ac_cv_path_SED" |
| 5103 | rm -f conftest.sed |
| 5104 | |
| 5105 | test -z "$SED" && SED=sed |
| 5106 | Xsed="$SED -e 1s/^X//" |
| 5107 | |
| 5108 | |
| 5109 | |
| 5110 | |
| 5111 | |
| 5112 | |
| 5113 | |
| 5114 | |
| 5115 | |
| 5116 | |
| 5117 | |
| 5118 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 5119 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 5120 | if test "${ac_cv_path_GREP+set}" = set; then |
| 5121 | $as_echo_n "(cached) " >&6 |
| 5122 | else |
| 5123 | if test -z "$GREP"; then |
| 5124 | ac_path_GREP_found=false |
| 5125 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5127 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5128 | do |
| 5129 | IFS=$as_save_IFS |
| 5130 | test -z "$as_dir" && as_dir=. |
| 5131 | for ac_prog in grep ggrep; do |
| 5132 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5133 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5134 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 5135 | # Check for GNU ac_path_GREP and select it if it is found. |
| 5136 | # Check for GNU $ac_path_GREP |
| 5137 | case `"$ac_path_GREP" --version 2>&1` in |
| 5138 | *GNU*) |
| 5139 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 5140 | *) |
| 5141 | ac_count=0 |
| 5142 | $as_echo_n 0123456789 >"conftest.in" |
| 5143 | while : |
| 5144 | do |
| 5145 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5146 | mv "conftest.tmp" "conftest.in" |
| 5147 | cp "conftest.in" "conftest.nl" |
| 5148 | $as_echo 'GREP' >> "conftest.nl" |
| 5149 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5150 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5151 | ac_count=`expr $ac_count + 1` |
| 5152 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 5153 | # Best one so far, save it but keep looking for a better one |
| 5154 | ac_cv_path_GREP="$ac_path_GREP" |
| 5155 | ac_path_GREP_max=$ac_count |
| 5156 | fi |
| 5157 | # 10*(2^10) chars as input seems more than enough |
| 5158 | test $ac_count -gt 10 && break |
| 5159 | done |
| 5160 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5161 | esac |
| 5162 | |
| 5163 | $ac_path_GREP_found && break 3 |
| 5164 | done |
| 5165 | done |
| 5166 | done |
| 5167 | IFS=$as_save_IFS |
| 5168 | if test -z "$ac_cv_path_GREP"; then |
| 5169 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 5170 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 5171 | { (exit 1); exit 1; }; } |
| 5172 | fi |
| 5173 | else |
| 5174 | ac_cv_path_GREP=$GREP |
| 5175 | fi |
| 5176 | |
| 5177 | fi |
| 5178 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 5179 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 5180 | GREP="$ac_cv_path_GREP" |
| 5181 | |
| 5182 | |
| 5183 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
| 5184 | $as_echo_n "checking for egrep... " >&6; } |
| 5185 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 5186 | $as_echo_n "(cached) " >&6 |
| 5187 | else |
| 5188 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5189 | then ac_cv_path_EGREP="$GREP -E" |
| 5190 | else |
| 5191 | if test -z "$EGREP"; then |
| 5192 | ac_path_EGREP_found=false |
| 5193 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5195 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5196 | do |
| 5197 | IFS=$as_save_IFS |
| 5198 | test -z "$as_dir" && as_dir=. |
| 5199 | for ac_prog in egrep; do |
| 5200 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5201 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5202 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 5203 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 5204 | # Check for GNU $ac_path_EGREP |
| 5205 | case `"$ac_path_EGREP" --version 2>&1` in |
| 5206 | *GNU*) |
| 5207 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5208 | *) |
| 5209 | ac_count=0 |
| 5210 | $as_echo_n 0123456789 >"conftest.in" |
| 5211 | while : |
| 5212 | do |
| 5213 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5214 | mv "conftest.tmp" "conftest.in" |
| 5215 | cp "conftest.in" "conftest.nl" |
| 5216 | $as_echo 'EGREP' >> "conftest.nl" |
| 5217 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5218 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5219 | ac_count=`expr $ac_count + 1` |
| 5220 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 5221 | # Best one so far, save it but keep looking for a better one |
| 5222 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 5223 | ac_path_EGREP_max=$ac_count |
| 5224 | fi |
| 5225 | # 10*(2^10) chars as input seems more than enough |
| 5226 | test $ac_count -gt 10 && break |
| 5227 | done |
| 5228 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5229 | esac |
| 5230 | |
| 5231 | $ac_path_EGREP_found && break 3 |
| 5232 | done |
| 5233 | done |
| 5234 | done |
| 5235 | IFS=$as_save_IFS |
| 5236 | if test -z "$ac_cv_path_EGREP"; then |
| 5237 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 5238 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 5239 | { (exit 1); exit 1; }; } |
| 5240 | fi |
| 5241 | else |
| 5242 | ac_cv_path_EGREP=$EGREP |
| 5243 | fi |
| 5244 | |
| 5245 | fi |
| 5246 | fi |
| 5247 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 5248 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 5249 | EGREP="$ac_cv_path_EGREP" |
| 5250 | |
| 5251 | |
| 5252 | { $as_echo "$as_me:$LINENO: checking for fgrep" >&5 |
| 5253 | $as_echo_n "checking for fgrep... " >&6; } |
| 5254 | if test "${ac_cv_path_FGREP+set}" = set; then |
| 5255 | $as_echo_n "(cached) " >&6 |
| 5256 | else |
| 5257 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 5258 | then ac_cv_path_FGREP="$GREP -F" |
| 5259 | else |
| 5260 | if test -z "$FGREP"; then |
| 5261 | ac_path_FGREP_found=false |
| 5262 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5264 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5265 | do |
| 5266 | IFS=$as_save_IFS |
| 5267 | test -z "$as_dir" && as_dir=. |
| 5268 | for ac_prog in fgrep; do |
| 5269 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5270 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5271 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
| 5272 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 5273 | # Check for GNU $ac_path_FGREP |
| 5274 | case `"$ac_path_FGREP" --version 2>&1` in |
| 5275 | *GNU*) |
| 5276 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 5277 | *) |
| 5278 | ac_count=0 |
| 5279 | $as_echo_n 0123456789 >"conftest.in" |
| 5280 | while : |
| 5281 | do |
| 5282 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5283 | mv "conftest.tmp" "conftest.in" |
| 5284 | cp "conftest.in" "conftest.nl" |
| 5285 | $as_echo 'FGREP' >> "conftest.nl" |
| 5286 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5287 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5288 | ac_count=`expr $ac_count + 1` |
| 5289 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 5290 | # Best one so far, save it but keep looking for a better one |
| 5291 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 5292 | ac_path_FGREP_max=$ac_count |
| 5293 | fi |
| 5294 | # 10*(2^10) chars as input seems more than enough |
| 5295 | test $ac_count -gt 10 && break |
| 5296 | done |
| 5297 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5298 | esac |
| 5299 | |
| 5300 | $ac_path_FGREP_found && break 3 |
| 5301 | done |
| 5302 | done |
| 5303 | done |
| 5304 | IFS=$as_save_IFS |
| 5305 | if test -z "$ac_cv_path_FGREP"; then |
| 5306 | { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 5307 | $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 5308 | { (exit 1); exit 1; }; } |
| 5309 | fi |
| 5310 | else |
| 5311 | ac_cv_path_FGREP=$FGREP |
| 5312 | fi |
| 5313 | |
| 5314 | fi |
| 5315 | fi |
| 5316 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 |
| 5317 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 5318 | FGREP="$ac_cv_path_FGREP" |
| 5319 | |
| 5320 | |
| 5321 | test -z "$GREP" && GREP=grep |
| 5322 | |
| 5323 | |
| 5324 | |
| 5325 | |
| 5326 | |
| 5327 | |
| 5328 | |
| 5329 | |
| 5330 | |
| 5331 | |
| 5332 | |
| 5333 | |
| 5334 | |
| 5335 | |
| 5336 | |
| 5337 | |
| 5338 | |
| 5339 | |
| 5340 | |
| 5341 | # Check whether --with-gnu-ld was given. |
| 5342 | if test "${with_gnu_ld+set}" = set; then |
| 5343 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 5344 | else |
| 5345 | with_gnu_ld=no |
| 5346 | fi |
| 5347 | |
| 5348 | ac_prog=ld |
| 5349 | if test "$GCC" = yes; then |
| 5350 | # Check if gcc -print-prog-name=ld gives a path. |
| 5351 | { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 5352 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 5353 | case $host in |
| 5354 | *-*-mingw*) |
| 5355 | # gcc leaves a trailing carriage return which upsets mingw |
| 5356 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 5357 | *) |
| 5358 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 5359 | esac |
| 5360 | case $ac_prog in |
| 5361 | # Accept absolute paths. |
| 5362 | [\\/]* | ?:[\\/]*) |
| 5363 | re_direlt='/[^/][^/]*/\.\./' |
| 5364 | # Canonicalize the pathname of ld |
| 5365 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 5366 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 5367 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 5368 | done |
| 5369 | test -z "$LD" && LD="$ac_prog" |
| 5370 | ;; |
| 5371 | "") |
| 5372 | # If it fails, then pretend we aren't using GCC. |
| 5373 | ac_prog=ld |
| 5374 | ;; |
| 5375 | *) |
| 5376 | # If it is relative, then search for the first ld in PATH. |
| 5377 | with_gnu_ld=unknown |
| 5378 | ;; |
| 5379 | esac |
| 5380 | elif test "$with_gnu_ld" = yes; then |
| 5381 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 5382 | $as_echo_n "checking for GNU ld... " >&6; } |
| 5383 | else |
| 5384 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 5385 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 5386 | fi |
| 5387 | if test "${lt_cv_path_LD+set}" = set; then |
| 5388 | $as_echo_n "(cached) " >&6 |
| 5389 | else |
| 5390 | if test -z "$LD"; then |
| 5391 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5392 | for ac_dir in $PATH; do |
| 5393 | IFS="$lt_save_ifs" |
| 5394 | test -z "$ac_dir" && ac_dir=. |
| 5395 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 5396 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 5397 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 5398 | # but apparently some variants of GNU ld only accept -v. |
| 5399 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 5400 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 5401 | *GNU* | *'with BFD'*) |
| 5402 | test "$with_gnu_ld" != no && break |
| 5403 | ;; |
| 5404 | *) |
| 5405 | test "$with_gnu_ld" != yes && break |
| 5406 | ;; |
| 5407 | esac |
| 5408 | fi |
| 5409 | done |
| 5410 | IFS="$lt_save_ifs" |
| 5411 | else |
| 5412 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 5413 | fi |
| 5414 | fi |
| 5415 | |
| 5416 | LD="$lt_cv_path_LD" |
| 5417 | if test -n "$LD"; then |
| 5418 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
| 5419 | $as_echo "$LD" >&6; } |
| 5420 | else |
| 5421 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5422 | $as_echo "no" >&6; } |
| 5423 | fi |
| 5424 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 5425 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 5426 | { (exit 1); exit 1; }; } |
| 5427 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 5428 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 5429 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 5430 | $as_echo_n "(cached) " >&6 |
| 5431 | else |
| 5432 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 5433 | case `$LD -v 2>&1 </dev/null` in |
| 5434 | *GNU* | *'with BFD'*) |
| 5435 | lt_cv_prog_gnu_ld=yes |
| 5436 | ;; |
| 5437 | *) |
| 5438 | lt_cv_prog_gnu_ld=no |
| 5439 | ;; |
| 5440 | esac |
| 5441 | fi |
| 5442 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 5443 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 5444 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 5445 | |
| 5446 | |
| 5447 | |
| 5448 | |
| 5449 | |
| 5450 | |
| 5451 | |
| 5452 | |
| 5453 | |
| 5454 | if test -n "$ac_tool_prefix"; then |
| 5455 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5456 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5457 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5458 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5459 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 5460 | $as_echo_n "(cached) " >&6 |
| 5461 | else |
| 5462 | if test -n "$RANLIB"; then |
| 5463 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5464 | else |
| 5465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5466 | for as_dir in $PATH |
| 5467 | do |
| 5468 | IFS=$as_save_IFS |
| 5469 | test -z "$as_dir" && as_dir=. |
| 5470 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5471 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5472 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5473 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5474 | break 2 |
| 5475 | fi |
| 5476 | done |
| 5477 | done |
| 5478 | IFS=$as_save_IFS |
| 5479 | |
| 5480 | fi |
| 5481 | fi |
| 5482 | RANLIB=$ac_cv_prog_RANLIB |
| 5483 | if test -n "$RANLIB"; then |
| 5484 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 5485 | $as_echo "$RANLIB" >&6; } |
| 5486 | else |
| 5487 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5488 | $as_echo "no" >&6; } |
| 5489 | fi |
| 5490 | |
| 5491 | |
| 5492 | fi |
| 5493 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5494 | ac_ct_RANLIB=$RANLIB |
| 5495 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5496 | set dummy ranlib; ac_word=$2 |
| 5497 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5498 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5499 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 5500 | $as_echo_n "(cached) " >&6 |
| 5501 | else |
| 5502 | if test -n "$ac_ct_RANLIB"; then |
| 5503 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5504 | else |
| 5505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5506 | for as_dir in $PATH |
| 5507 | do |
| 5508 | IFS=$as_save_IFS |
| 5509 | test -z "$as_dir" && as_dir=. |
| 5510 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5511 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5512 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5513 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5514 | break 2 |
| 5515 | fi |
| 5516 | done |
| 5517 | done |
| 5518 | IFS=$as_save_IFS |
| 5519 | |
| 5520 | fi |
| 5521 | fi |
| 5522 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5523 | if test -n "$ac_ct_RANLIB"; then |
| 5524 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 5525 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 5526 | else |
| 5527 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5528 | $as_echo "no" >&6; } |
| 5529 | fi |
| 5530 | |
| 5531 | if test "x$ac_ct_RANLIB" = x; then |
| 5532 | RANLIB=":" |
| 5533 | else |
| 5534 | case $cross_compiling:$ac_tool_warned in |
| 5535 | yes:) |
| 5536 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5537 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5538 | ac_tool_warned=yes ;; |
| 5539 | esac |
| 5540 | RANLIB=$ac_ct_RANLIB |
| 5541 | fi |
| 5542 | else |
| 5543 | RANLIB="$ac_cv_prog_RANLIB" |
| 5544 | fi |
| 5545 | |
| 5546 | |
| 5547 | if test "x$CC" != xcc; then |
| 5548 | { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 |
| 5549 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } |
| 5550 | else |
| 5551 | { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 |
| 5552 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } |
| 5553 | fi |
| 5554 | set dummy $CC; ac_cc=`$as_echo "$2" | |
| 5555 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| 5556 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5557 | $as_echo_n "(cached) " >&6 |
| 5558 | else |
| 5559 | cat >conftest.$ac_ext <<_ACEOF |
| 5560 | /* confdefs.h. */ |
| 5561 | _ACEOF |
| 5562 | cat confdefs.h >>conftest.$ac_ext |
| 5563 | cat >>conftest.$ac_ext <<_ACEOF |
| 5564 | /* end confdefs.h. */ |
| 5565 | |
| 5566 | int |
| 5567 | main () |
| 5568 | { |
| 5569 | |
| 5570 | ; |
| 5571 | return 0; |
| 5572 | } |
| 5573 | _ACEOF |
| 5574 | # Make sure it works both with $CC and with simple cc. |
| 5575 | # We do the test twice because some compilers refuse to overwrite an |
| 5576 | # existing .o file with -o, though they will create one. |
| 5577 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 5578 | rm -f conftest2.* |
| 5579 | if { (case "(($ac_try" in |
| 5580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5581 | *) ac_try_echo=$ac_try;; |
| 5582 | esac |
| 5583 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5584 | $as_echo "$ac_try_echo") >&5 |
| 5585 | (eval "$ac_try") 2>&5 |
| 5586 | ac_status=$? |
| 5587 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5588 | (exit $ac_status); } && |
| 5589 | test -f conftest2.$ac_objext && { (case "(($ac_try" in |
| 5590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5591 | *) ac_try_echo=$ac_try;; |
| 5592 | esac |
| 5593 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5594 | $as_echo "$ac_try_echo") >&5 |
| 5595 | (eval "$ac_try") 2>&5 |
| 5596 | ac_status=$? |
| 5597 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5598 | (exit $ac_status); }; |
| 5599 | then |
| 5600 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
| 5601 | if test "x$CC" != xcc; then |
| 5602 | # Test first that cc exists at all. |
| 5603 | if { ac_try='cc -c conftest.$ac_ext >&5' |
| 5604 | { (case "(($ac_try" in |
| 5605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5606 | *) ac_try_echo=$ac_try;; |
| 5607 | esac |
| 5608 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5609 | $as_echo "$ac_try_echo") >&5 |
| 5610 | (eval "$ac_try") 2>&5 |
| 5611 | ac_status=$? |
| 5612 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5613 | (exit $ac_status); }; }; then |
| 5614 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 5615 | rm -f conftest2.* |
| 5616 | if { (case "(($ac_try" in |
| 5617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5618 | *) ac_try_echo=$ac_try;; |
| 5619 | esac |
| 5620 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5621 | $as_echo "$ac_try_echo") >&5 |
| 5622 | (eval "$ac_try") 2>&5 |
| 5623 | ac_status=$? |
| 5624 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5625 | (exit $ac_status); } && |
| 5626 | test -f conftest2.$ac_objext && { (case "(($ac_try" in |
| 5627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5628 | *) ac_try_echo=$ac_try;; |
| 5629 | esac |
| 5630 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5631 | $as_echo "$ac_try_echo") >&5 |
| 5632 | (eval "$ac_try") 2>&5 |
| 5633 | ac_status=$? |
| 5634 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5635 | (exit $ac_status); }; |
| 5636 | then |
| 5637 | # cc works too. |
| 5638 | : |
| 5639 | else |
| 5640 | # cc exists but doesn't like -o. |
| 5641 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 5642 | fi |
| 5643 | fi |
| 5644 | fi |
| 5645 | else |
| 5646 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 5647 | fi |
| 5648 | rm -f core conftest* |
| 5649 | |
| 5650 | fi |
| 5651 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
| 5652 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 5653 | $as_echo "yes" >&6; } |
| 5654 | else |
| 5655 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5656 | $as_echo "no" >&6; } |
| 5657 | |
| 5658 | cat >>confdefs.h <<\_ACEOF |
| 5659 | #define NO_MINUS_C_MINUS_O 1 |
| 5660 | _ACEOF |
| 5661 | |
| 5662 | fi |
| 5663 | |
| 5664 | # FIXME: we rely on the cache variable name because |
| 5665 | # there is no other way. |
| 5666 | set dummy $CC |
| 5667 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| 5668 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o |
| 5669 | if test "$am_t" != yes; then |
| 5670 | # Losing compiler, so override with the script. |
| 5671 | # FIXME: It is wrong to rewrite CC. |
| 5672 | # But if we don't then we get into trouble of one sort or another. |
| 5673 | # A longer-term fix would be to have automake use am__CC in this case, |
| 5674 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 5675 | CC="$am_aux_dir/compile $CC" |
| 5676 | fi |
| 5677 | |
| 5678 | |
| 5679 | # Find a good install program. We prefer a C program (faster), |
| 5680 | # so one script is as good as another. But avoid the broken or |
| 5681 | # incompatible versions: |
| 5682 | # SysV /etc/install, /usr/sbin/install |
| 5683 | # SunOS /usr/etc/install |
| 5684 | # IRIX /sbin/install |
| 5685 | # AIX /bin/install |
| 5686 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 5687 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5688 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5689 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5690 | # OS/2's system install, which has a completely different semantic |
| 5691 | # ./install, which can be erroneously created by make from ./install.sh. |
| 5692 | # Reject install programs that cannot install multiple files. |
| 5693 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 5694 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 5695 | if test -z "$INSTALL"; then |
| 5696 | if test "${ac_cv_path_install+set}" = set; then |
| 5697 | $as_echo_n "(cached) " >&6 |
| 5698 | else |
| 5699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5700 | for as_dir in $PATH |
| 5701 | do |
| 5702 | IFS=$as_save_IFS |
| 5703 | test -z "$as_dir" && as_dir=. |
| 5704 | # Account for people who put trailing slashes in PATH elements. |
| 5705 | case $as_dir/ in |
| 5706 | ./ | .// | /cC/* | \ |
| 5707 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 5708 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 5709 | /usr/ucb/* ) ;; |
| 5710 | *) |
| 5711 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5712 | # Don't use installbsd from OSF since it installs stuff as root |
| 5713 | # by default. |
| 5714 | for ac_prog in ginstall scoinst install; do |
| 5715 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5716 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 5717 | if test $ac_prog = install && |
| 5718 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5719 | # AIX install. It has an incompatible calling convention. |
| 5720 | : |
| 5721 | elif test $ac_prog = install && |
| 5722 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5723 | # program-specific install script used by HP pwplus--don't use. |
| 5724 | : |
| 5725 | else |
| 5726 | rm -rf conftest.one conftest.two conftest.dir |
| 5727 | echo one > conftest.one |
| 5728 | echo two > conftest.two |
| 5729 | mkdir conftest.dir |
| 5730 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 5731 | test -s conftest.one && test -s conftest.two && |
| 5732 | test -s conftest.dir/conftest.one && |
| 5733 | test -s conftest.dir/conftest.two |
| 5734 | then |
| 5735 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5736 | break 3 |
| 5737 | fi |
| 5738 | fi |
| 5739 | fi |
| 5740 | done |
| 5741 | done |
| 5742 | ;; |
| 5743 | esac |
| 5744 | |
| 5745 | done |
| 5746 | IFS=$as_save_IFS |
| 5747 | |
| 5748 | rm -rf conftest.one conftest.two conftest.dir |
| 5749 | |
| 5750 | fi |
| 5751 | if test "${ac_cv_path_install+set}" = set; then |
| 5752 | INSTALL=$ac_cv_path_install |
| 5753 | else |
| 5754 | # As a last resort, use the slow shell script. Don't cache a |
| 5755 | # value for INSTALL within a source directory, because that will |
| 5756 | # break other packages using the cache if that directory is |
| 5757 | # removed, or if the value is a relative name. |
| 5758 | INSTALL=$ac_install_sh |
| 5759 | fi |
| 5760 | fi |
| 5761 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 5762 | $as_echo "$INSTALL" >&6; } |
| 5763 | |
| 5764 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5765 | # It thinks the first close brace ends the variable substitution. |
| 5766 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5767 | |
| 5768 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5769 | |
| 5770 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5771 | |
| 5772 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 5773 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 5774 | set x ${MAKE-make} |
| 5775 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 5776 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5777 | $as_echo_n "(cached) " >&6 |
| 5778 | else |
| 5779 | cat >conftest.make <<\_ACEOF |
| 5780 | SHELL = /bin/sh |
| 5781 | all: |
| 5782 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 5783 | _ACEOF |
| 5784 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 5785 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 5786 | *@@@%%%=?*=@@@%%%*) |
| 5787 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 5788 | *) |
| 5789 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 5790 | esac |
| 5791 | rm -f conftest.make |
| 5792 | fi |
| 5793 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 5794 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 5795 | $as_echo "yes" >&6; } |
| 5796 | SET_MAKE= |
| 5797 | else |
| 5798 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5799 | $as_echo "no" >&6; } |
| 5800 | SET_MAKE="MAKE=${MAKE-make}" |
| 5801 | fi |
| 5802 | |
| 5803 | ac_ext=cpp |
| 5804 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5805 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5806 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5807 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5808 | if test -z "$CXX"; then |
| 5809 | if test -n "$CCC"; then |
| 5810 | CXX=$CCC |
| 5811 | else |
| 5812 | if test -n "$ac_tool_prefix"; then |
| 5813 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 5814 | do |
| 5815 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5816 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5817 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5818 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5819 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 5820 | $as_echo_n "(cached) " >&6 |
| 5821 | else |
| 5822 | if test -n "$CXX"; then |
| 5823 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5824 | else |
| 5825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5826 | for as_dir in $PATH |
| 5827 | do |
| 5828 | IFS=$as_save_IFS |
| 5829 | test -z "$as_dir" && as_dir=. |
| 5830 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5831 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5832 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 5833 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5834 | break 2 |
| 5835 | fi |
| 5836 | done |
| 5837 | done |
| 5838 | IFS=$as_save_IFS |
| 5839 | |
| 5840 | fi |
| 5841 | fi |
| 5842 | CXX=$ac_cv_prog_CXX |
| 5843 | if test -n "$CXX"; then |
| 5844 | { $as_echo "$as_me:$LINENO: result: $CXX" >&5 |
| 5845 | $as_echo "$CXX" >&6; } |
| 5846 | else |
| 5847 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5848 | $as_echo "no" >&6; } |
| 5849 | fi |
| 5850 | |
| 5851 | |
| 5852 | test -n "$CXX" && break |
| 5853 | done |
| 5854 | fi |
| 5855 | if test -z "$CXX"; then |
| 5856 | ac_ct_CXX=$CXX |
| 5857 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 5858 | do |
| 5859 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5860 | set dummy $ac_prog; ac_word=$2 |
| 5861 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5862 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5863 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 5864 | $as_echo_n "(cached) " >&6 |
| 5865 | else |
| 5866 | if test -n "$ac_ct_CXX"; then |
| 5867 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5868 | else |
| 5869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5870 | for as_dir in $PATH |
| 5871 | do |
| 5872 | IFS=$as_save_IFS |
| 5873 | test -z "$as_dir" && as_dir=. |
| 5874 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5875 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5876 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5877 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5878 | break 2 |
| 5879 | fi |
| 5880 | done |
| 5881 | done |
| 5882 | IFS=$as_save_IFS |
| 5883 | |
| 5884 | fi |
| 5885 | fi |
| 5886 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5887 | if test -n "$ac_ct_CXX"; then |
| 5888 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 5889 | $as_echo "$ac_ct_CXX" >&6; } |
| 5890 | else |
| 5891 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 5892 | $as_echo "no" >&6; } |
| 5893 | fi |
| 5894 | |
| 5895 | |
| 5896 | test -n "$ac_ct_CXX" && break |
| 5897 | done |
| 5898 | |
| 5899 | if test "x$ac_ct_CXX" = x; then |
| 5900 | CXX="g++" |
| 5901 | else |
| 5902 | case $cross_compiling:$ac_tool_warned in |
| 5903 | yes:) |
| 5904 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5905 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5906 | ac_tool_warned=yes ;; |
| 5907 | esac |
| 5908 | CXX=$ac_ct_CXX |
| 5909 | fi |
| 5910 | fi |
| 5911 | |
| 5912 | fi |
| 5913 | fi |
| 5914 | # Provide some information about the compiler. |
| 5915 | $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 5916 | set X $ac_compile |
| 5917 | ac_compiler=$2 |
| 5918 | { (ac_try="$ac_compiler --version >&5" |
| 5919 | case "(($ac_try" in |
| 5920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5921 | *) ac_try_echo=$ac_try;; |
| 5922 | esac |
| 5923 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5924 | $as_echo "$ac_try_echo") >&5 |
| 5925 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5926 | ac_status=$? |
| 5927 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5928 | (exit $ac_status); } |
| 5929 | { (ac_try="$ac_compiler -v >&5" |
| 5930 | case "(($ac_try" in |
| 5931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5932 | *) ac_try_echo=$ac_try;; |
| 5933 | esac |
| 5934 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5935 | $as_echo "$ac_try_echo") >&5 |
| 5936 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5937 | ac_status=$? |
| 5938 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5939 | (exit $ac_status); } |
| 5940 | { (ac_try="$ac_compiler -V >&5" |
| 5941 | case "(($ac_try" in |
| 5942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5943 | *) ac_try_echo=$ac_try;; |
| 5944 | esac |
| 5945 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5946 | $as_echo "$ac_try_echo") >&5 |
| 5947 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5948 | ac_status=$? |
| 5949 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5950 | (exit $ac_status); } |
| 5951 | |
| 5952 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 5953 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 5954 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 5955 | $as_echo_n "(cached) " >&6 |
| 5956 | else |
| 5957 | cat >conftest.$ac_ext <<_ACEOF |
| 5958 | /* confdefs.h. */ |
| 5959 | _ACEOF |
| 5960 | cat confdefs.h >>conftest.$ac_ext |
| 5961 | cat >>conftest.$ac_ext <<_ACEOF |
| 5962 | /* end confdefs.h. */ |
| 5963 | |
| 5964 | int |
| 5965 | main () |
| 5966 | { |
| 5967 | #ifndef __GNUC__ |
| 5968 | choke me |
| 5969 | #endif |
| 5970 | |
| 5971 | ; |
| 5972 | return 0; |
| 5973 | } |
| 5974 | _ACEOF |
| 5975 | rm -f conftest.$ac_objext |
| 5976 | if { (ac_try="$ac_compile" |
| 5977 | case "(($ac_try" in |
| 5978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5979 | *) ac_try_echo=$ac_try;; |
| 5980 | esac |
| 5981 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5982 | $as_echo "$ac_try_echo") >&5 |
| 5983 | (eval "$ac_compile") 2>conftest.er1 |
| 5984 | ac_status=$? |
| 5985 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5986 | rm -f conftest.er1 |
| 5987 | cat conftest.err >&5 |
| 5988 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5989 | (exit $ac_status); } && { |
| 5990 | test -z "$ac_cxx_werror_flag" || |
| 5991 | test ! -s conftest.err |
| 5992 | } && test -s conftest.$ac_objext; then |
| 5993 | ac_compiler_gnu=yes |
| 5994 | else |
| 5995 | $as_echo "$as_me: failed program was:" >&5 |
| 5996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5997 | |
| 5998 | ac_compiler_gnu=no |
| 5999 | fi |
| 6000 | |
| 6001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6002 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6003 | |
| 6004 | fi |
| 6005 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6006 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 6007 | if test $ac_compiler_gnu = yes; then |
| 6008 | GXX=yes |
| 6009 | else |
| 6010 | GXX= |
| 6011 | fi |
| 6012 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6013 | ac_save_CXXFLAGS=$CXXFLAGS |
| 6014 | { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 6015 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 6016 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 6017 | $as_echo_n "(cached) " >&6 |
| 6018 | else |
| 6019 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6020 | ac_cxx_werror_flag=yes |
| 6021 | ac_cv_prog_cxx_g=no |
| 6022 | CXXFLAGS="-g" |
| 6023 | cat >conftest.$ac_ext <<_ACEOF |
| 6024 | /* confdefs.h. */ |
| 6025 | _ACEOF |
| 6026 | cat confdefs.h >>conftest.$ac_ext |
| 6027 | cat >>conftest.$ac_ext <<_ACEOF |
| 6028 | /* end confdefs.h. */ |
| 6029 | |
| 6030 | int |
| 6031 | main () |
| 6032 | { |
| 6033 | |
| 6034 | ; |
| 6035 | return 0; |
| 6036 | } |
| 6037 | _ACEOF |
| 6038 | rm -f conftest.$ac_objext |
| 6039 | if { (ac_try="$ac_compile" |
| 6040 | case "(($ac_try" in |
| 6041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6042 | *) ac_try_echo=$ac_try;; |
| 6043 | esac |
| 6044 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6045 | $as_echo "$ac_try_echo") >&5 |
| 6046 | (eval "$ac_compile") 2>conftest.er1 |
| 6047 | ac_status=$? |
| 6048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6049 | rm -f conftest.er1 |
| 6050 | cat conftest.err >&5 |
| 6051 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6052 | (exit $ac_status); } && { |
| 6053 | test -z "$ac_cxx_werror_flag" || |
| 6054 | test ! -s conftest.err |
| 6055 | } && test -s conftest.$ac_objext; then |
| 6056 | ac_cv_prog_cxx_g=yes |
| 6057 | else |
| 6058 | $as_echo "$as_me: failed program was:" >&5 |
| 6059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6060 | |
| 6061 | CXXFLAGS="" |
| 6062 | cat >conftest.$ac_ext <<_ACEOF |
| 6063 | /* confdefs.h. */ |
| 6064 | _ACEOF |
| 6065 | cat confdefs.h >>conftest.$ac_ext |
| 6066 | cat >>conftest.$ac_ext <<_ACEOF |
| 6067 | /* end confdefs.h. */ |
| 6068 | |
| 6069 | int |
| 6070 | main () |
| 6071 | { |
| 6072 | |
| 6073 | ; |
| 6074 | return 0; |
| 6075 | } |
| 6076 | _ACEOF |
| 6077 | rm -f conftest.$ac_objext |
| 6078 | if { (ac_try="$ac_compile" |
| 6079 | case "(($ac_try" in |
| 6080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6081 | *) ac_try_echo=$ac_try;; |
| 6082 | esac |
| 6083 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6084 | $as_echo "$ac_try_echo") >&5 |
| 6085 | (eval "$ac_compile") 2>conftest.er1 |
| 6086 | ac_status=$? |
| 6087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6088 | rm -f conftest.er1 |
| 6089 | cat conftest.err >&5 |
| 6090 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6091 | (exit $ac_status); } && { |
| 6092 | test -z "$ac_cxx_werror_flag" || |
| 6093 | test ! -s conftest.err |
| 6094 | } && test -s conftest.$ac_objext; then |
| 6095 | : |
| 6096 | else |
| 6097 | $as_echo "$as_me: failed program was:" >&5 |
| 6098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6099 | |
| 6100 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6101 | CXXFLAGS="-g" |
| 6102 | cat >conftest.$ac_ext <<_ACEOF |
| 6103 | /* confdefs.h. */ |
| 6104 | _ACEOF |
| 6105 | cat confdefs.h >>conftest.$ac_ext |
| 6106 | cat >>conftest.$ac_ext <<_ACEOF |
| 6107 | /* end confdefs.h. */ |
| 6108 | |
| 6109 | int |
| 6110 | main () |
| 6111 | { |
| 6112 | |
| 6113 | ; |
| 6114 | return 0; |
| 6115 | } |
| 6116 | _ACEOF |
| 6117 | rm -f conftest.$ac_objext |
| 6118 | if { (ac_try="$ac_compile" |
| 6119 | case "(($ac_try" in |
| 6120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6121 | *) ac_try_echo=$ac_try;; |
| 6122 | esac |
| 6123 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6124 | $as_echo "$ac_try_echo") >&5 |
| 6125 | (eval "$ac_compile") 2>conftest.er1 |
| 6126 | ac_status=$? |
| 6127 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6128 | rm -f conftest.er1 |
| 6129 | cat conftest.err >&5 |
| 6130 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6131 | (exit $ac_status); } && { |
| 6132 | test -z "$ac_cxx_werror_flag" || |
| 6133 | test ! -s conftest.err |
| 6134 | } && test -s conftest.$ac_objext; then |
| 6135 | ac_cv_prog_cxx_g=yes |
| 6136 | else |
| 6137 | $as_echo "$as_me: failed program was:" >&5 |
| 6138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6139 | |
| 6140 | |
| 6141 | fi |
| 6142 | |
| 6143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6144 | fi |
| 6145 | |
| 6146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6147 | fi |
| 6148 | |
| 6149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6150 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6151 | fi |
| 6152 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6153 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 6154 | if test "$ac_test_CXXFLAGS" = set; then |
| 6155 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6156 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6157 | if test "$GXX" = yes; then |
| 6158 | CXXFLAGS="-g -O2" |
| 6159 | else |
| 6160 | CXXFLAGS="-g" |
| 6161 | fi |
| 6162 | else |
| 6163 | if test "$GXX" = yes; then |
| 6164 | CXXFLAGS="-O2" |
| 6165 | else |
| 6166 | CXXFLAGS= |
| 6167 | fi |
| 6168 | fi |
| 6169 | ac_ext=c |
| 6170 | ac_cpp='$CPP $CPPFLAGS' |
| 6171 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6172 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6173 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6174 | |
| 6175 | depcc="$CXX" am_compiler_list= |
| 6176 | |
| 6177 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 6178 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 6179 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 6180 | $as_echo_n "(cached) " >&6 |
| 6181 | else |
| 6182 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 6183 | # We make a subdir and do the tests there. Otherwise we can end up |
| 6184 | # making bogus files that we don't know about and never remove. For |
| 6185 | # instance it was reported that on HP-UX the gcc test will end up |
| 6186 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 6187 | # in D'. |
| 6188 | mkdir conftest.dir |
| 6189 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 6190 | # using a relative directory. |
| 6191 | cp "$am_depcomp" conftest.dir |
| 6192 | cd conftest.dir |
| 6193 | # We will build objects and dependencies in a subdirectory because |
| 6194 | # it helps to detect inapplicable dependency modes. For instance |
| 6195 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 6196 | # side effect of compilation, but ICC will put the dependencies in |
| 6197 | # the current directory while Tru64 will put them in the object |
| 6198 | # directory. |
| 6199 | mkdir sub |
| 6200 | |
| 6201 | am_cv_CXX_dependencies_compiler_type=none |
| 6202 | if test "$am_compiler_list" = ""; then |
| 6203 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 6204 | fi |
| 6205 | am__universal=false |
| 6206 | case " $depcc " in #( |
| 6207 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 6208 | esac |
| 6209 | |
| 6210 | for depmode in $am_compiler_list; do |
| 6211 | # Setup a source with many dependencies, because some compilers |
| 6212 | # like to wrap large dependency lists on column 80 (with \), and |
| 6213 | # we should not choose a depcomp mode which is confused by this. |
| 6214 | # |
| 6215 | # We need to recreate these files for each test, as the compiler may |
| 6216 | # overwrite some of them when testing with obscure command lines. |
| 6217 | # This happens at least with the AIX C compiler. |
| 6218 | : > sub/conftest.c |
| 6219 | for i in 1 2 3 4 5 6; do |
| 6220 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 6221 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 6222 | # Solaris 8's {/usr,}/bin/sh. |
| 6223 | touch sub/conftst$i.h |
| 6224 | done |
| 6225 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 6226 | |
| 6227 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 6228 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 6229 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 6230 | # versions had trouble with output in subdirs |
| 6231 | am__obj=sub/conftest.${OBJEXT-o} |
| 6232 | am__minus_obj="-o $am__obj" |
| 6233 | case $depmode in |
| 6234 | gcc) |
| 6235 | # This depmode causes a compiler race in universal mode. |
| 6236 | test "$am__universal" = false || continue |
| 6237 | ;; |
| 6238 | nosideeffect) |
| 6239 | # after this tag, mechanisms are not by side-effect, so they'll |
| 6240 | # only be used when explicitly requested |
| 6241 | if test "x$enable_dependency_tracking" = xyes; then |
| 6242 | continue |
| 6243 | else |
| 6244 | break |
| 6245 | fi |
| 6246 | ;; |
| 6247 | msvisualcpp | msvcmsys) |
| 6248 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 6249 | # not run yet. These depmodes are late enough in the game, and |
| 6250 | # so weak that their functioning should not be impacted. |
| 6251 | am__obj=conftest.${OBJEXT-o} |
| 6252 | am__minus_obj= |
| 6253 | ;; |
| 6254 | none) break ;; |
| 6255 | esac |
| 6256 | if depmode=$depmode \ |
| 6257 | source=sub/conftest.c object=$am__obj \ |
| 6258 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 6259 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 6260 | >/dev/null 2>conftest.err && |
| 6261 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 6262 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 6263 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 6264 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 6265 | # icc doesn't choke on unknown options, it will just issue warnings |
| 6266 | # or remarks (even with -Werror). So we grep stderr for any message |
| 6267 | # that says an option was ignored or not supported. |
| 6268 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 6269 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 6270 | # The diagnosis changed in icc 8.0: |
| 6271 | # icc: Command line remark: option '-MP' not supported |
| 6272 | if (grep 'ignoring option' conftest.err || |
| 6273 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 6274 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 6275 | break |
| 6276 | fi |
| 6277 | fi |
| 6278 | done |
| 6279 | |
| 6280 | cd .. |
| 6281 | rm -rf conftest.dir |
| 6282 | else |
| 6283 | am_cv_CXX_dependencies_compiler_type=none |
| 6284 | fi |
| 6285 | |
| 6286 | fi |
| 6287 | { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 6288 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 6289 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 6290 | |
| 6291 | if |
| 6292 | test "x$enable_dependency_tracking" != xno \ |
| 6293 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 6294 | am__fastdepCXX_TRUE= |
| 6295 | am__fastdepCXX_FALSE='#' |
| 6296 | else |
| 6297 | am__fastdepCXX_TRUE='#' |
| 6298 | am__fastdepCXX_FALSE= |
| 6299 | fi |
| 6300 | |
| 6301 | |
| 6302 | |
| 6303 | { $as_echo "$as_me:$LINENO: checking maximum warning verbosity option" >&5 |
| 6304 | $as_echo_n "checking maximum warning verbosity option... " >&6; } |
| 6305 | |
| 6306 | |
| 6307 | |
| 6308 | |
| 6309 | # Check whether --with-maximum-compile-warnings was given. |
| 6310 | if test "${with_maximum_compile_warnings+set}" = set; then |
| 6311 | withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval" |
| 6312 | else |
| 6313 | ac_compile_warnings_on="" |
| 6314 | fi |
| 6315 | |
| 6316 | |
| 6317 | if test x"$ac_compile_warnings_on" = xno |
| 6318 | then |
| 6319 | ac_compile_warnings_msg=no |
| 6320 | else |
| 6321 | if test -n "$CXX" |
| 6322 | then |
| 6323 | if test "$GXX" = "yes" |
| 6324 | then |
| 6325 | ac_compile_warnings_opt='-Wall -W' |
| 6326 | fi |
| 6327 | CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt" |
| 6328 | ac_compile_warnings_msg="$ac_compile_warnings_opt for C++" |
| 6329 | fi |
| 6330 | |
| 6331 | if test -n "$CC" |
| 6332 | then |
| 6333 | if test "$GCC" = "yes" |
| 6334 | then |
| 6335 | ac_compile_warnings_opt='-Wall -W' |
| 6336 | fi |
| 6337 | CFLAGS="$CFLAGS $ac_compile_warnings_opt" |
| 6338 | ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C" |
| 6339 | fi |
| 6340 | fi |
| 6341 | { $as_echo "$as_me:$LINENO: result: $ac_compile_warnings_msg" >&5 |
| 6342 | $as_echo "$ac_compile_warnings_msg" >&6; } |
| 6343 | unset ac_compile_warnings_msg |
| 6344 | unset ac_compile_warnings_opt |
| 6345 | |
| 6346 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6347 | $as_echo_n "checking whether ln -s works... " >&6; } |
| 6348 | LN_S=$as_ln_s |
| 6349 | if test "$LN_S" = "ln -s"; then |
| 6350 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 6351 | $as_echo "yes" >&6; } |
| 6352 | else |
| 6353 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6354 | $as_echo "no, using $LN_S" >&6; } |
| 6355 | fi |
| 6356 | |
| 6357 | { $as_echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5 |
| 6358 | $as_echo_n "checking if malloc debugging is wanted... " >&6; } |
| 6359 | |
| 6360 | # Check whether --with-dmalloc was given. |
| 6361 | if test "${with_dmalloc+set}" = set; then |
| 6362 | withval=$with_dmalloc; if test "$withval" = yes; then |
| 6363 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 6364 | $as_echo "yes" >&6; } |
| 6365 | |
| 6366 | cat >>confdefs.h <<\_ACEOF |
| 6367 | #define WITH_DMALLOC 1 |
| 6368 | _ACEOF |
| 6369 | |
| 6370 | LIBS="$LIBS -ldmalloc" |
| 6371 | LDFLAGS="$LDFLAGS -g" |
| 6372 | else |
| 6373 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6374 | $as_echo "no" >&6; } |
| 6375 | fi |
| 6376 | else |
| 6377 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6378 | $as_echo "no" >&6; } |
| 6379 | fi |
| 6380 | |
| 6381 | |
| 6382 | |
| 6383 | |
| 6384 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 6385 | if test -n "$ac_tool_prefix"; then |
| 6386 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 6387 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 6388 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6389 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6390 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 6391 | $as_echo_n "(cached) " >&6 |
| 6392 | else |
| 6393 | case $PKG_CONFIG in |
| 6394 | [\\/]* | ?:[\\/]*) |
| 6395 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 6396 | ;; |
| 6397 | *) |
| 6398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6399 | for as_dir in $PATH |
| 6400 | do |
| 6401 | IFS=$as_save_IFS |
| 6402 | test -z "$as_dir" && as_dir=. |
| 6403 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6404 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6405 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 6406 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6407 | break 2 |
| 6408 | fi |
| 6409 | done |
| 6410 | done |
| 6411 | IFS=$as_save_IFS |
| 6412 | |
| 6413 | ;; |
| 6414 | esac |
| 6415 | fi |
| 6416 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 6417 | if test -n "$PKG_CONFIG"; then |
| 6418 | { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 6419 | $as_echo "$PKG_CONFIG" >&6; } |
| 6420 | else |
| 6421 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6422 | $as_echo "no" >&6; } |
| 6423 | fi |
| 6424 | |
| 6425 | |
| 6426 | fi |
| 6427 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 6428 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 6429 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 6430 | set dummy pkg-config; ac_word=$2 |
| 6431 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6432 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6433 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
| 6434 | $as_echo_n "(cached) " >&6 |
| 6435 | else |
| 6436 | case $ac_pt_PKG_CONFIG in |
| 6437 | [\\/]* | ?:[\\/]*) |
| 6438 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 6439 | ;; |
| 6440 | *) |
| 6441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6442 | for as_dir in $PATH |
| 6443 | do |
| 6444 | IFS=$as_save_IFS |
| 6445 | test -z "$as_dir" && as_dir=. |
| 6446 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6447 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6448 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 6449 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6450 | break 2 |
| 6451 | fi |
| 6452 | done |
| 6453 | done |
| 6454 | IFS=$as_save_IFS |
| 6455 | |
| 6456 | ;; |
| 6457 | esac |
| 6458 | fi |
| 6459 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 6460 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 6461 | { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
| 6462 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 6463 | else |
| 6464 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6465 | $as_echo "no" >&6; } |
| 6466 | fi |
| 6467 | |
| 6468 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 6469 | PKG_CONFIG="" |
| 6470 | else |
| 6471 | case $cross_compiling:$ac_tool_warned in |
| 6472 | yes:) |
| 6473 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6474 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6475 | ac_tool_warned=yes ;; |
| 6476 | esac |
| 6477 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 6478 | fi |
| 6479 | else |
| 6480 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 6481 | fi |
| 6482 | |
| 6483 | fi |
| 6484 | if test -n "$PKG_CONFIG"; then |
| 6485 | _pkg_min_version=0.9.0 |
| 6486 | { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 6487 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 6488 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 6489 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 6490 | $as_echo "yes" >&6; } |
| 6491 | else |
| 6492 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 6493 | $as_echo "no" >&6; } |
| 6494 | PKG_CONFIG="" |
| 6495 | fi |
| 6496 | |
| 6497 | fi |
| 6498 | |
| 6499 | # |
| 6500 | # Enable OS features. |
| 6501 | # |
| 6502 | |
| 6503 | |
| 6504 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 6505 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 6506 | if test "${ac_cv_header_stdc+set}" = set; then |
| 6507 | $as_echo_n "(cached) " >&6 |
| 6508 | else |
| 6509 | cat >conftest.$ac_ext <<_ACEOF |
| 6510 | /* confdefs.h. */ |
| 6511 | _ACEOF |
| 6512 | cat confdefs.h >>conftest.$ac_ext |
| 6513 | cat >>conftest.$ac_ext <<_ACEOF |
| 6514 | /* end confdefs.h. */ |
| 6515 | #include <stdlib.h> |
| 6516 | #include <stdarg.h> |
| 6517 | #include <string.h> |
| 6518 | #include <float.h> |
| 6519 | |
| 6520 | int |
| 6521 | main () |
| 6522 | { |
| 6523 | |
| 6524 | ; |
| 6525 | return 0; |
| 6526 | } |
| 6527 | _ACEOF |
| 6528 | rm -f conftest.$ac_objext |
| 6529 | if { (ac_try="$ac_compile" |
| 6530 | case "(($ac_try" in |
| 6531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6532 | *) ac_try_echo=$ac_try;; |
| 6533 | esac |
| 6534 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6535 | $as_echo "$ac_try_echo") >&5 |
| 6536 | (eval "$ac_compile") 2>conftest.er1 |
| 6537 | ac_status=$? |
| 6538 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6539 | rm -f conftest.er1 |
| 6540 | cat conftest.err >&5 |
| 6541 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6542 | (exit $ac_status); } && { |
| 6543 | test -z "$ac_c_werror_flag" || |
| 6544 | test ! -s conftest.err |
| 6545 | } && test -s conftest.$ac_objext; then |
| 6546 | ac_cv_header_stdc=yes |
| 6547 | else |
| 6548 | $as_echo "$as_me: failed program was:" >&5 |
| 6549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6550 | |
| 6551 | ac_cv_header_stdc=no |
| 6552 | fi |
| 6553 | |
| 6554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6555 | |
| 6556 | if test $ac_cv_header_stdc = yes; then |
| 6557 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6558 | cat >conftest.$ac_ext <<_ACEOF |
| 6559 | /* confdefs.h. */ |
| 6560 | _ACEOF |
| 6561 | cat confdefs.h >>conftest.$ac_ext |
| 6562 | cat >>conftest.$ac_ext <<_ACEOF |
| 6563 | /* end confdefs.h. */ |
| 6564 | #include <string.h> |
| 6565 | |
| 6566 | _ACEOF |
| 6567 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6568 | $EGREP "memchr" >/dev/null 2>&1; then |
| 6569 | : |
| 6570 | else |
| 6571 | ac_cv_header_stdc=no |
| 6572 | fi |
| 6573 | rm -f conftest* |
| 6574 | |
| 6575 | fi |
| 6576 | |
| 6577 | if test $ac_cv_header_stdc = yes; then |
| 6578 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6579 | cat >conftest.$ac_ext <<_ACEOF |
| 6580 | /* confdefs.h. */ |
| 6581 | _ACEOF |
| 6582 | cat confdefs.h >>conftest.$ac_ext |
| 6583 | cat >>conftest.$ac_ext <<_ACEOF |
| 6584 | /* end confdefs.h. */ |
| 6585 | #include <stdlib.h> |
| 6586 | |
| 6587 | _ACEOF |
| 6588 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6589 | $EGREP "free" >/dev/null 2>&1; then |
| 6590 | : |
| 6591 | else |
| 6592 | ac_cv_header_stdc=no |
| 6593 | fi |
| 6594 | rm -f conftest* |
| 6595 | |
| 6596 | fi |
| 6597 | |
| 6598 | if test $ac_cv_header_stdc = yes; then |
| 6599 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6600 | if test "$cross_compiling" = yes; then |
| 6601 | : |
| 6602 | else |
| 6603 | cat >conftest.$ac_ext <<_ACEOF |
| 6604 | /* confdefs.h. */ |
| 6605 | _ACEOF |
| 6606 | cat confdefs.h >>conftest.$ac_ext |
| 6607 | cat >>conftest.$ac_ext <<_ACEOF |
| 6608 | /* end confdefs.h. */ |
| 6609 | #include <ctype.h> |
| 6610 | #include <stdlib.h> |
| 6611 | #if ((' ' & 0x0FF) == 0x020) |
| 6612 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6613 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6614 | #else |
| 6615 | # define ISLOWER(c) \ |
| 6616 | (('a' <= (c) && (c) <= 'i') \ |
| 6617 | || ('j' <= (c) && (c) <= 'r') \ |
| 6618 | || ('s' <= (c) && (c) <= 'z')) |
| 6619 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6620 | #endif |
| 6621 | |
| 6622 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6623 | int |
| 6624 | main () |
| 6625 | { |
| 6626 | int i; |
| 6627 | for (i = 0; i < 256; i++) |
| 6628 | if (XOR (islower (i), ISLOWER (i)) |
| 6629 | || toupper (i) != TOUPPER (i)) |
| 6630 | return 2; |
| 6631 | return 0; |
| 6632 | } |
| 6633 | _ACEOF |
| 6634 | rm -f conftest$ac_exeext |
| 6635 | if { (ac_try="$ac_link" |
| 6636 | case "(($ac_try" in |
| 6637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6638 | *) ac_try_echo=$ac_try;; |
| 6639 | esac |
| 6640 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6641 | $as_echo "$ac_try_echo") >&5 |
| 6642 | (eval "$ac_link") 2>&5 |
| 6643 | ac_status=$? |
| 6644 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6645 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6646 | { (case "(($ac_try" in |
| 6647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6648 | *) ac_try_echo=$ac_try;; |
| 6649 | esac |
| 6650 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6651 | $as_echo "$ac_try_echo") >&5 |
| 6652 | (eval "$ac_try") 2>&5 |
| 6653 | ac_status=$? |
| 6654 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6655 | (exit $ac_status); }; }; then |
| 6656 | : |
| 6657 | else |
| 6658 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 6659 | $as_echo "$as_me: failed program was:" >&5 |
| 6660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6661 | |
| 6662 | ( exit $ac_status ) |
| 6663 | ac_cv_header_stdc=no |
| 6664 | fi |
| 6665 | rm -rf conftest.dSYM |
| 6666 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6667 | fi |
| 6668 | |
| 6669 | |
| 6670 | fi |
| 6671 | fi |
| 6672 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 6673 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 6674 | if test $ac_cv_header_stdc = yes; then |
| 6675 | |
| 6676 | cat >>confdefs.h <<\_ACEOF |
| 6677 | #define STDC_HEADERS 1 |
| 6678 | _ACEOF |
| 6679 | |
| 6680 | fi |
| 6681 | |
| 6682 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6683 | |
| 6684 | |
| 6685 | |
| 6686 | |
| 6687 | |
| 6688 | |
| 6689 | |
| 6690 | |
| 6691 | |
| 6692 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6693 | inttypes.h stdint.h unistd.h |
| 6694 | do |
| 6695 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6696 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6697 | $as_echo_n "checking for $ac_header... " >&6; } |
| 6698 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 6699 | $as_echo_n "(cached) " >&6 |
| 6700 | else |
| 6701 | cat >conftest.$ac_ext <<_ACEOF |
| 6702 | /* confdefs.h. */ |
| 6703 | _ACEOF |
| 6704 | cat confdefs.h >>conftest.$ac_ext |
| 6705 | cat >>conftest.$ac_ext <<_ACEOF |
| 6706 | /* end confdefs.h. */ |
| 6707 | $ac_includes_default |
| 6708 | |
| 6709 | #include <$ac_header> |
| 6710 | _ACEOF |
| 6711 | rm -f conftest.$ac_objext |
| 6712 | if { (ac_try="$ac_compile" |
| 6713 | case "(($ac_try" in |
| 6714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6715 | *) ac_try_echo=$ac_try;; |
| 6716 | esac |
| 6717 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6718 | $as_echo "$ac_try_echo") >&5 |
| 6719 | (eval "$ac_compile") 2>conftest.er1 |
| 6720 | ac_status=$? |
| 6721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6722 | rm -f conftest.er1 |
| 6723 | cat conftest.err >&5 |
| 6724 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6725 | (exit $ac_status); } && { |
| 6726 | test -z "$ac_c_werror_flag" || |
| 6727 | test ! -s conftest.err |
| 6728 | } && test -s conftest.$ac_objext; then |
| 6729 | eval "$as_ac_Header=yes" |
| 6730 | else |
| 6731 | $as_echo "$as_me: failed program was:" >&5 |
| 6732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6733 | |
| 6734 | eval "$as_ac_Header=no" |
| 6735 | fi |
| 6736 | |
| 6737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6738 | fi |
| 6739 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 6740 | $as_echo "$as_val"'` |
| 6741 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6742 | $as_echo "$ac_res" >&6; } |
| 6743 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 6744 | $as_echo "$as_val"'` |
| 6745 | if test "x$as_val" = x""yes; then |
| 6746 | cat >>confdefs.h <<_ACEOF |
| 6747 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6748 | _ACEOF |
| 6749 | |
| 6750 | fi |
| 6751 | |
| 6752 | done |
| 6753 | |
| 6754 | |
| 6755 | |
| 6756 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 6757 | { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 6758 | $as_echo_n "checking for minix/config.h... " >&6; } |
| 6759 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 6760 | $as_echo_n "(cached) " >&6 |
| 6761 | fi |
| 6762 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 6763 | $as_echo "$ac_cv_header_minix_config_h" >&6; } |
| 6764 | else |
| 6765 | # Is the header compilable? |
| 6766 | { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 6767 | $as_echo_n "checking minix/config.h usability... " >&6; } |
| 6768 | cat >conftest.$ac_ext <<_ACEOF |
| 6769 | /* confdefs.h. */ |
| 6770 | _ACEOF |
| 6771 | cat confdefs.h >>conftest.$ac_ext |
| 6772 | cat >>conftest.$ac_ext <<_ACEOF |
| 6773 | /* end confdefs.h. */ |
| 6774 | $ac_includes_default |
| 6775 | #include <minix/config.h> |
| 6776 | _ACEOF |
| 6777 | rm -f conftest.$ac_objext |
| 6778 | if { (ac_try="$ac_compile" |
| 6779 | case "(($ac_try" in |
| 6780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6781 | *) ac_try_echo=$ac_try;; |
| 6782 | esac |
| 6783 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6784 | $as_echo "$ac_try_echo") >&5 |
| 6785 | (eval "$ac_compile") 2>conftest.er1 |
| 6786 | ac_status=$? |
| 6787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6788 | rm -f conftest.er1 |
| 6789 | cat conftest.err >&5 |
| 6790 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6791 | (exit $ac_status); } && { |
| 6792 | test -z "$ac_c_werror_flag" || |
| 6793 | test ! -s conftest.err |
| 6794 | } && test -s conftest.$ac_objext; then |
| 6795 | ac_header_compiler=yes |
| 6796 | else |
| 6797 | $as_echo "$as_me: failed program was:" >&5 |
| 6798 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6799 | |
| 6800 | ac_header_compiler=no |
| 6801 | fi |
| 6802 | |
| 6803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6804 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6805 | $as_echo "$ac_header_compiler" >&6; } |
| 6806 | |
| 6807 | # Is the header present? |
| 6808 | { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 6809 | $as_echo_n "checking minix/config.h presence... " >&6; } |
| 6810 | cat >conftest.$ac_ext <<_ACEOF |
| 6811 | /* confdefs.h. */ |
| 6812 | _ACEOF |
| 6813 | cat confdefs.h >>conftest.$ac_ext |
| 6814 | cat >>conftest.$ac_ext <<_ACEOF |
| 6815 | /* end confdefs.h. */ |
| 6816 | #include <minix/config.h> |
| 6817 | _ACEOF |
| 6818 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6819 | case "(($ac_try" in |
| 6820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6821 | *) ac_try_echo=$ac_try;; |
| 6822 | esac |
| 6823 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6824 | $as_echo "$ac_try_echo") >&5 |
| 6825 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 6826 | ac_status=$? |
| 6827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6828 | rm -f conftest.er1 |
| 6829 | cat conftest.err >&5 |
| 6830 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6831 | (exit $ac_status); } >/dev/null && { |
| 6832 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6833 | test ! -s conftest.err |
| 6834 | }; then |
| 6835 | ac_header_preproc=yes |
| 6836 | else |
| 6837 | $as_echo "$as_me: failed program was:" >&5 |
| 6838 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6839 | |
| 6840 | ac_header_preproc=no |
| 6841 | fi |
| 6842 | |
| 6843 | rm -f conftest.err conftest.$ac_ext |
| 6844 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6845 | $as_echo "$ac_header_preproc" >&6; } |
| 6846 | |
| 6847 | # So? What about this header? |
| 6848 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6849 | yes:no: ) |
| 6850 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6851 | $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6852 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 |
| 6853 | $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} |
| 6854 | ac_header_preproc=yes |
| 6855 | ;; |
| 6856 | no:yes:* ) |
| 6857 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 6858 | $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 6859 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 6860 | $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 6861 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 |
| 6862 | $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} |
| 6863 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 6864 | $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6865 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 6866 | $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} |
| 6867 | { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 |
| 6868 | $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} |
| 6869 | ( cat <<\_ASBOX |
| 6870 | ## ----------------------------------------- ## |
| 6871 | ## Report this to http://www.imagemagick.org ## |
| 6872 | ## ----------------------------------------- ## |
| 6873 | _ASBOX |
| 6874 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 6875 | ;; |
| 6876 | esac |
| 6877 | { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 6878 | $as_echo_n "checking for minix/config.h... " >&6; } |
| 6879 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 6880 | $as_echo_n "(cached) " >&6 |
| 6881 | else |
| 6882 | ac_cv_header_minix_config_h=$ac_header_preproc |
| 6883 | fi |
| 6884 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 6885 | $as_echo "$ac_cv_header_minix_config_h" >&6; } |
| 6886 | |
| 6887 | fi |
| 6888 | if test "x$ac_cv_header_minix_config_h" = x""yes; then |
| 6889 | MINIX=yes |
| 6890 | else |
| 6891 | MINIX= |
| 6892 | fi |
| 6893 | |
| 6894 | |
| 6895 | if test "$MINIX" = yes; then |
| 6896 | |
| 6897 | cat >>confdefs.h <<\_ACEOF |
| 6898 | #define _POSIX_SOURCE 1 |
| 6899 | _ACEOF |
| 6900 | |
| 6901 | |
| 6902 | cat >>confdefs.h <<\_ACEOF |
| 6903 | #define _POSIX_1_SOURCE 2 |
| 6904 | _ACEOF |
| 6905 | |
| 6906 | |
| 6907 | cat >>confdefs.h <<\_ACEOF |
| 6908 | #define _MINIX 1 |
| 6909 | _ACEOF |
| 6910 | |
| 6911 | fi |
| 6912 | |
| 6913 | |
| 6914 | |
| 6915 | { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 6916 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 6917 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then |
| 6918 | $as_echo_n "(cached) " >&6 |
| 6919 | else |
| 6920 | cat >conftest.$ac_ext <<_ACEOF |
| 6921 | /* confdefs.h. */ |
| 6922 | _ACEOF |
| 6923 | cat confdefs.h >>conftest.$ac_ext |
| 6924 | cat >>conftest.$ac_ext <<_ACEOF |
| 6925 | /* end confdefs.h. */ |
| 6926 | |
| 6927 | # define __EXTENSIONS__ 1 |
| 6928 | $ac_includes_default |
| 6929 | int |
| 6930 | main () |
| 6931 | { |
| 6932 | |
| 6933 | ; |
| 6934 | return 0; |
| 6935 | } |
| 6936 | _ACEOF |
| 6937 | rm -f conftest.$ac_objext |
| 6938 | if { (ac_try="$ac_compile" |
| 6939 | case "(($ac_try" in |
| 6940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6941 | *) ac_try_echo=$ac_try;; |
| 6942 | esac |
| 6943 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6944 | $as_echo "$ac_try_echo") >&5 |
| 6945 | (eval "$ac_compile") 2>conftest.er1 |
| 6946 | ac_status=$? |
| 6947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6948 | rm -f conftest.er1 |
| 6949 | cat conftest.err >&5 |
| 6950 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6951 | (exit $ac_status); } && { |
| 6952 | test -z "$ac_c_werror_flag" || |
| 6953 | test ! -s conftest.err |
| 6954 | } && test -s conftest.$ac_objext; then |
| 6955 | ac_cv_safe_to_define___extensions__=yes |
| 6956 | else |
| 6957 | $as_echo "$as_me: failed program was:" >&5 |
| 6958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6959 | |
| 6960 | ac_cv_safe_to_define___extensions__=no |
| 6961 | fi |
| 6962 | |
| 6963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6964 | fi |
| 6965 | { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 6966 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 6967 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 6968 | cat >>confdefs.h <<\_ACEOF |
| 6969 | #define __EXTENSIONS__ 1 |
| 6970 | _ACEOF |
| 6971 | |
| 6972 | cat >>confdefs.h <<\_ACEOF |
| 6973 | #define _ALL_SOURCE 1 |
| 6974 | _ACEOF |
| 6975 | |
| 6976 | cat >>confdefs.h <<\_ACEOF |
| 6977 | #define _GNU_SOURCE 1 |
| 6978 | _ACEOF |
| 6979 | |
| 6980 | cat >>confdefs.h <<\_ACEOF |
| 6981 | #define _POSIX_PTHREAD_SEMANTICS 1 |
| 6982 | _ACEOF |
| 6983 | |
| 6984 | cat >>confdefs.h <<\_ACEOF |
| 6985 | #define _TANDEM_SOURCE 1 |
| 6986 | _ACEOF |
| 6987 | |
| 6988 | |
| 6989 | |
| 6990 | # |
| 6991 | # Enable run-time checking. |
| 6992 | # |
| 6993 | # Check whether --enable-bounds-checking was given. |
| 6994 | if test "${enable_bounds_checking+set}" = set; then |
| 6995 | enableval=$enable_bounds_checking; enable_bounds_checking=$enableval |
| 6996 | else |
| 6997 | enable_bounds_checking='no' |
| 6998 | fi |
| 6999 | |
| 7000 | |
| 7001 | if test "$enable_bounds_checking" = yes; then |
| 7002 | |
| 7003 | cat >>confdefs.h <<\_ACEOF |
| 7004 | #define _FORTIFY_SOURCE 2 |
| 7005 | _ACEOF |
| 7006 | |
| 7007 | fi |
| 7008 | |
| 7009 | # |
| 7010 | # Tests for Windows |
| 7011 | # |
| 7012 | |
| 7013 | |
| 7014 | |
| 7015 | GDI32_LIBS='' |
| 7016 | StaticCplusPlusLibraries='no' |
| 7017 | native_win32_build='no' |
| 7018 | cygwin_build='no' |
| 7019 | case "${host_os}" in |
| 7020 | cygwin* ) |
| 7021 | StaticCplusPlusLibraries='yes' |
| 7022 | cygwin_build='yes' |
| 7023 | GDI32_LIBS='-lgdi32' |
| 7024 | ;; |
| 7025 | mingw* ) |
| 7026 | StaticCplusPlusLibraries='yes' |
| 7027 | native_win32_build='yes' |
| 7028 | GDI32_LIBS='-lgdi32' |
| 7029 | ;; |
| 7030 | esac |
| 7031 | if test "${GDI32_LIBS}x" != 'x'; then |
| 7032 | |
| 7033 | cat >>confdefs.h <<\_ACEOF |
| 7034 | #define WINGDI32_DELEGATE 1 |
| 7035 | _ACEOF |
| 7036 | |
| 7037 | fi |
| 7038 | |
| 7039 | if test "${GDI32_LIBS}x" != 'x' ; then |
| 7040 | WINGDI32_DELEGATE_TRUE= |
| 7041 | WINGDI32_DELEGATE_FALSE='#' |
| 7042 | else |
| 7043 | WINGDI32_DELEGATE_TRUE='#' |
| 7044 | WINGDI32_DELEGATE_FALSE= |
| 7045 | fi |
| 7046 | |
| 7047 | if test "${native_win32_build}" = 'yes' ; then |
| 7048 | WIN32_NATIVE_BUILD_TRUE= |
| 7049 | WIN32_NATIVE_BUILD_FALSE='#' |
| 7050 | else |
| 7051 | WIN32_NATIVE_BUILD_TRUE='#' |
| 7052 | WIN32_NATIVE_BUILD_FALSE= |
| 7053 | fi |
| 7054 | |
| 7055 | if test "${cygwin_build}" = 'yes' ; then |
| 7056 | CYGWIN_BUILD_TRUE= |
| 7057 | CYGWIN_BUILD_FALSE='#' |
| 7058 | else |
| 7059 | CYGWIN_BUILD_TRUE='#' |
| 7060 | CYGWIN_BUILD_FALSE= |
| 7061 | fi |
| 7062 | |
| 7063 | if test "x${CC}" = 'xcl.exe' ; then |
| 7064 | USING_CL_TRUE= |
| 7065 | USING_CL_FALSE='#' |
| 7066 | else |
| 7067 | USING_CL_TRUE='#' |
| 7068 | USING_CL_FALSE= |
| 7069 | fi |
| 7070 | |
| 7071 | |
| 7072 | WinPathScript="${srcdirfull}/winpath.sh" |
| 7073 | |
| 7074 | |
| 7075 | # |
| 7076 | # Compiler flags tweaks |
| 7077 | # |
| 7078 | if test "${GCC}" != "yes"; then |
| 7079 | case "${host}" in |
| 7080 | *-*-hpux* ) |
| 7081 | # aCC: HP ANSI C++ B3910B A.03.34 |
| 7082 | CFLAGS="${CFLAGS} -Wp,-H30000" |
| 7083 | if test -n "${CXXFLAGS}"; then |
| 7084 | CXXFLAGS='-AA' |
| 7085 | else |
| 7086 | CXXFLAGS="${CXXFLAGS} -AA" |
| 7087 | fi |
| 7088 | ;; |
| 7089 | *-dec-osf5.* ) |
| 7090 | # Compaq alphaev68-dec-osf5.1 compiler |
| 7091 | if test -n "${CXXFLAGS}"; then |
| 7092 | CXXFLAGS='-std strict_ansi -noimplicit_include' |
| 7093 | else |
| 7094 | CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include" |
| 7095 | fi |
| 7096 | esac |
| 7097 | fi |
| 7098 | |
| 7099 | # Check for lazy-loading. |
| 7100 | { $as_echo "$as_me:$LINENO: checking for linker lazyload option" >&5 |
| 7101 | $as_echo_n "checking for linker lazyload option... " >&6; } |
| 7102 | if test "${im_cv_ld_lazyload+set}" = set; then |
| 7103 | $as_echo_n "(cached) " >&6 |
| 7104 | else |
| 7105 | |
| 7106 | im_cv_ld_lazyload='none' |
| 7107 | case "${host}" in |
| 7108 | *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? ) |
| 7109 | if test "$lt_cv_prog_gnu_ld" != 'yes' ; then |
| 7110 | im_cv_ld_lazyload='-Wl,-zlazyload' |
| 7111 | fi |
| 7112 | ;; |
| 7113 | esac |
| 7114 | |
| 7115 | fi |
| 7116 | { $as_echo "$as_me:$LINENO: result: $im_cv_ld_lazyload" >&5 |
| 7117 | $as_echo "$im_cv_ld_lazyload" >&6; } |
| 7118 | if test "${im_cv_ld_lazyload}" != 'none' ; then |
| 7119 | if test -z "${LDFLAGS}" ; then |
| 7120 | LDFLAGS="${im_cv_ld_lazyload}" |
| 7121 | else |
| 7122 | LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}" |
| 7123 | fi |
| 7124 | fi |
| 7125 | |
| 7126 | case "$host" in |
| 7127 | *darwin* | *-macos10*) |
| 7128 | if test -d /opt/local ; then |
| 7129 | CPPFLAGS="$CPPFLAGS -I/opt/local/include" |
| 7130 | LDFLAGS="$LDFLAGS -L/opt/local/lib" |
| 7131 | elif test -d /sw ; then |
| 7132 | CPPFLAGS="$CPPFLAGS -I/sw/include" |
| 7133 | LDFLAGS="$LDFLAGS -L/sw/lib" |
| 7134 | fi |
| 7135 | # Check whether --enable-osx-universal-binary was given. |
| 7136 | if test "${enable_osx_universal_binary+set}" = set; then |
| 7137 | enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}" |
| 7138 | else |
| 7139 | build_osxuniversal=no |
| 7140 | fi |
| 7141 | |
| 7142 | |
| 7143 | if test "${build_osxuniversal}" != no ; then |
| 7144 | if test "$enable_dependency_tracking" != no ; then |
| 7145 | { { $as_echo "$as_me:$LINENO: error: --enable-osx-universal-binary requires --disable-dependency-tracking. |
| 7146 | Please re-run configure with these options: |
| 7147 | --disable-dependency-tracking --enable-osx-universal-binary |
| 7148 | " >&5 |
| 7149 | $as_echo "$as_me: error: --enable-osx-universal-binary requires --disable-dependency-tracking. |
| 7150 | Please re-run configure with these options: |
| 7151 | --disable-dependency-tracking --enable-osx-universal-binary |
| 7152 | " >&2;} |
| 7153 | { (exit 1); exit 1; }; } |
| 7154 | fi |
| 7155 | CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" |
| 7156 | CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" |
| 7157 | LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" |
| 7158 | fi |
| 7159 | ;; |
| 7160 | esac |
| 7161 | |
| 7162 | # Enable support for threads |
| 7163 | |
| 7164 | # Check whether --with-threads was given. |
| 7165 | if test "${with_threads+set}" = set; then |
| 7166 | withval=$with_threads; with_threads=$withval |
| 7167 | else |
| 7168 | with_threads='yes' |
| 7169 | fi |
| 7170 | |
| 7171 | |
| 7172 | have_threads=no |
| 7173 | if test "$with_threads" != 'no'; then |
| 7174 | |
| 7175 | |
| 7176 | |
| 7177 | ac_ext=c |
| 7178 | ac_cpp='$CPP $CPPFLAGS' |
| 7179 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7180 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7181 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7182 | |
| 7183 | acx_pthread_ok=no |
| 7184 | |
| 7185 | # We used to check for pthread.h first, but this fails if pthread.h |
| 7186 | # requires special compiler flags (e.g. on True64 or Sequent). |
| 7187 | # It gets checked for in the link test anyway. |
| 7188 | |
| 7189 | # First of all, check if the user has set any of the PTHREAD_LIBS, |
| 7190 | # etcetera environment variables, and if threads linking works using |
| 7191 | # them: |
| 7192 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
| 7193 | save_CFLAGS="$CFLAGS" |
| 7194 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 7195 | save_LIBS="$LIBS" |
| 7196 | LIBS="$PTHREAD_LIBS $LIBS" |
| 7197 | { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 |
| 7198 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } |
| 7199 | cat >conftest.$ac_ext <<_ACEOF |
| 7200 | /* confdefs.h. */ |
| 7201 | _ACEOF |
| 7202 | cat confdefs.h >>conftest.$ac_ext |
| 7203 | cat >>conftest.$ac_ext <<_ACEOF |
| 7204 | /* end confdefs.h. */ |
| 7205 | |
| 7206 | /* Override any GCC internal prototype to avoid an error. |
| 7207 | Use char because int might match the return type of a GCC |
| 7208 | builtin and then its argument prototype would still apply. */ |
| 7209 | #ifdef __cplusplus |
| 7210 | extern "C" |
| 7211 | #endif |
| 7212 | char pthread_join (); |
| 7213 | int |
| 7214 | main () |
| 7215 | { |
| 7216 | return pthread_join (); |
| 7217 | ; |
| 7218 | return 0; |
| 7219 | } |
| 7220 | _ACEOF |
| 7221 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7222 | if { (ac_try="$ac_link" |
| 7223 | case "(($ac_try" in |
| 7224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7225 | *) ac_try_echo=$ac_try;; |
| 7226 | esac |
| 7227 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7228 | $as_echo "$ac_try_echo") >&5 |
| 7229 | (eval "$ac_link") 2>conftest.er1 |
| 7230 | ac_status=$? |
| 7231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7232 | rm -f conftest.er1 |
| 7233 | cat conftest.err >&5 |
| 7234 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7235 | (exit $ac_status); } && { |
| 7236 | test -z "$ac_c_werror_flag" || |
| 7237 | test ! -s conftest.err |
| 7238 | } && test -s conftest$ac_exeext && { |
| 7239 | test "$cross_compiling" = yes || |
| 7240 | $as_test_x conftest$ac_exeext |
| 7241 | }; then |
| 7242 | acx_pthread_ok=yes |
| 7243 | else |
| 7244 | $as_echo "$as_me: failed program was:" >&5 |
| 7245 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7246 | |
| 7247 | |
| 7248 | fi |
| 7249 | |
| 7250 | rm -rf conftest.dSYM |
| 7251 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 7252 | conftest$ac_exeext conftest.$ac_ext |
| 7253 | { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 |
| 7254 | $as_echo "$acx_pthread_ok" >&6; } |
| 7255 | if test x"$acx_pthread_ok" = xno; then |
| 7256 | PTHREAD_LIBS="" |
| 7257 | PTHREAD_CFLAGS="" |
| 7258 | fi |
| 7259 | LIBS="$save_LIBS" |
| 7260 | CFLAGS="$save_CFLAGS" |
| 7261 | fi |
| 7262 | |
| 7263 | # We must check for the threads library under a number of different |
| 7264 | # names; the ordering is very important because some systems |
| 7265 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 7266 | # libraries is broken (non-POSIX). |
| 7267 | |
| 7268 | # Create a list of thread flags to try. Items starting with a "-" are |
| 7269 | # C compiler flags, and other items are library names, except for "none" |
| 7270 | # which indicates that we try without any flags at all, and "pthread-config" |
| 7271 | # which is a program returning the flags for the Pth emulation library. |
| 7272 | |
| 7273 | acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| 7274 | |
| 7275 | # The ordering *is* (sometimes) important. Some notes on the |
| 7276 | # individual items follow: |
| 7277 | |
| 7278 | # pthreads: AIX (must check this before -lpthread) |
| 7279 | # none: in case threads are in libc; should be tried before -Kthread and |
| 7280 | # other compiler flags to prevent continual compiler warnings |
| 7281 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 7282 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 7283 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 7284 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
| 7285 | # -pthreads: Solaris/gcc |
| 7286 | # -mthreads: Mingw32/gcc, Lynx/gcc |
| 7287 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 7288 | # doesn't hurt to check since this sometimes defines pthreads too; |
| 7289 | # also defines -D_REENTRANT) |
| 7290 | # ... -mt is also the pthreads flag for HP/aCC |
| 7291 | # pthread: Linux, etcetera |
| 7292 | # --thread-safe: KAI C++ |
| 7293 | # pthread-config: use pthread-config program (for GNU Pth library) |
| 7294 | |
| 7295 | case "${host_cpu}-${host_os}" in |
| 7296 | *solaris*) |
| 7297 | |
| 7298 | # On Solaris (at least, for some versions), libc contains stubbed |
| 7299 | # (non-functional) versions of the pthreads routines, so link-based |
| 7300 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ |
| 7301 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
| 7302 | # a function called by this macro, so we could check for that, but |
| 7303 | # who knows whether they'll stub that too in a future libc.) So, |
| 7304 | # we'll just look for -pthreads and -lpthread first: |
| 7305 | |
| 7306 | acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" |
| 7307 | ;; |
| 7308 | |
| 7309 | # The HP-UX compiler just warns about options it does not understand |
| 7310 | # but it needs -mt. |
| 7311 | *-hpux*) |
| 7312 | acx_pthread_flags="-mt $acx_pthread_flags" |
| 7313 | ;; |
| 7314 | esac |
| 7315 | |
| 7316 | if test x"$acx_pthread_ok" = xno; then |
| 7317 | for flag in $acx_pthread_flags; do |
| 7318 | |
| 7319 | case $flag in |
| 7320 | none) |
| 7321 | { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 |
| 7322 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } |
| 7323 | ;; |
| 7324 | |
| 7325 | -*) |
| 7326 | { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 |
| 7327 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } |
| 7328 | PTHREAD_CFLAGS="$flag" |
| 7329 | ;; |
| 7330 | |
| 7331 | pthread-config) |
| 7332 | # Extract the first word of "pthread-config", so it can be a program name with args. |
| 7333 | set dummy pthread-config; ac_word=$2 |
| 7334 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7335 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7336 | if test "${ac_cv_prog_acx_pthread_config+set}" = set; then |
| 7337 | $as_echo_n "(cached) " >&6 |
| 7338 | else |
| 7339 | if test -n "$acx_pthread_config"; then |
| 7340 | ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. |
| 7341 | else |
| 7342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7343 | for as_dir in $PATH |
| 7344 | do |
| 7345 | IFS=$as_save_IFS |
| 7346 | test -z "$as_dir" && as_dir=. |
| 7347 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7348 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7349 | ac_cv_prog_acx_pthread_config="yes" |
| 7350 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7351 | break 2 |
| 7352 | fi |
| 7353 | done |
| 7354 | done |
| 7355 | IFS=$as_save_IFS |
| 7356 | |
| 7357 | test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" |
| 7358 | fi |
| 7359 | fi |
| 7360 | acx_pthread_config=$ac_cv_prog_acx_pthread_config |
| 7361 | if test -n "$acx_pthread_config"; then |
| 7362 | { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5 |
| 7363 | $as_echo "$acx_pthread_config" >&6; } |
| 7364 | else |
| 7365 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 7366 | $as_echo "no" >&6; } |
| 7367 | fi |
| 7368 | |
| 7369 | |
| 7370 | if test x"$acx_pthread_config" = xno; then continue; fi |
| 7371 | PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 7372 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 7373 | ;; |
| 7374 | |
| 7375 | *) |
| 7376 | { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 |
| 7377 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } |
| 7378 | PTHREAD_LIBS="-l$flag" |
| 7379 | ;; |
| 7380 | esac |
| 7381 | |
| 7382 | save_LIBS="$LIBS" |
| 7383 | save_CFLAGS="$CFLAGS" |
| 7384 | LIBS="$PTHREAD_LIBS $LIBS" |
| 7385 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 7386 | |
| 7387 | # Check for various functions. We must include pthread.h, |
| 7388 | # since some functions may be macros. (On the Sequent, we |
| 7389 | # need a special flag -Kthread to make this header compile.) |
| 7390 | # We check for pthread_join because it is in -lpthread on IRIX |
| 7391 | # while pthread_create is in libc. We check for pthread_attr_init |
| 7392 | # due to DEC craziness with -lpthreads. We check for |
| 7393 | # pthread_cleanup_push because it is one of the few pthread |
| 7394 | # functions on Solaris that doesn't have a non-functional libc stub. |
| 7395 | # We try pthread_create on general principles. |
| 7396 | cat >conftest.$ac_ext <<_ACEOF |
| 7397 | /* confdefs.h. */ |
| 7398 | _ACEOF |
| 7399 | cat confdefs.h >>conftest.$ac_ext |
| 7400 | cat >>conftest.$ac_ext <<_ACEOF |
| 7401 | /* end confdefs.h. */ |
| 7402 | #include <pthread.h> |
| 7403 | int |
| 7404 | main () |
| 7405 | { |
| 7406 | pthread_t th; pthread_join(th, 0); |
| 7407 | pthread_attr_init(0); pthread_cleanup_push(0, 0); |
| 7408 | pthread_create(0,0,0,0); pthread_cleanup_pop(0); |
| 7409 | ; |
| 7410 | return 0; |
| 7411 | } |
| 7412 | _ACEOF |
| 7413 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7414 | if { (ac_try="$ac_link" |
| 7415 | case "(($ac_try" in |
| 7416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7417 | *) ac_try_echo=$ac_try;; |
| 7418 | esac |
| 7419 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7420 | $as_echo "$ac_try_echo") >&5 |
| 7421 | (eval "$ac_link") 2>conftest.er1 |
| 7422 | ac_status=$? |
| 7423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7424 | rm -f conftest.er1 |
| 7425 | cat conftest.err >&5 |
| 7426 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7427 | (exit $ac_status); } && { |
| 7428 | test -z "$ac_c_werror_flag" || |
| 7429 | test ! -s conftest.err |
| 7430 | } && test -s conftest$ac_exeext && { |
| 7431 | test "$cross_compiling" = yes || |
| 7432 | $as_test_x conftest$ac_exeext |
| 7433 | }; then |
| 7434 | acx_pthread_ok=yes |
| 7435 | else |
| 7436 | $as_echo "$as_me: failed program was:" >&5 |
| 7437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7438 | |
| 7439 | |
| 7440 | fi |
| 7441 | |
| 7442 | rm -rf conftest.dSYM |
| 7443 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 7444 | conftest$ac_exeext conftest.$ac_ext |
| 7445 | |
| 7446 | LIBS="$save_LIBS" |
| 7447 | CFLAGS="$save_CFLAGS" |
| 7448 | |
| 7449 | { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 |
| 7450 | $as_echo "$acx_pthread_ok" >&6; } |
| 7451 | if test "x$acx_pthread_ok" = xyes; then |
| 7452 | break; |
| 7453 | fi |
| 7454 | |
| 7455 | PTHREAD_LIBS="" |
| 7456 | PTHREAD_CFLAGS="" |
| 7457 | done |
| 7458 | fi |
| 7459 | |
| 7460 | # Various other checks: |
| 7461 | if test "x$acx_pthread_ok" = xyes; then |
| 7462 | save_LIBS="$LIBS" |
| 7463 | LIBS="$PTHREAD_LIBS $LIBS" |
| 7464 | save_CFLAGS="$CFLAGS" |
| 7465 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 7466 | |
| 7467 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
| 7468 | { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5 |
| 7469 | $as_echo_n "checking for joinable pthread attribute... " >&6; } |
| 7470 | attr_name=unknown |
| 7471 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
| 7472 | cat >conftest.$ac_ext <<_ACEOF |
| 7473 | /* confdefs.h. */ |
| 7474 | _ACEOF |
| 7475 | cat confdefs.h >>conftest.$ac_ext |
| 7476 | cat >>conftest.$ac_ext <<_ACEOF |
| 7477 | /* end confdefs.h. */ |
| 7478 | #include <pthread.h> |
| 7479 | int |
| 7480 | main () |
| 7481 | { |
| 7482 | int attr=$attr; return attr; |
| 7483 | ; |
| 7484 | return 0; |
| 7485 | } |
| 7486 | _ACEOF |
| 7487 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7488 | if { (ac_try="$ac_link" |
| 7489 | case "(($ac_try" in |
| 7490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7491 | *) ac_try_echo=$ac_try;; |
| 7492 | esac |
| 7493 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7494 | $as_echo "$ac_try_echo") >&5 |
| 7495 | (eval "$ac_link") 2>conftest.er1 |
| 7496 | ac_status=$? |
| 7497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7498 | rm -f conftest.er1 |
| 7499 | cat conftest.err >&5 |
| 7500 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7501 | (exit $ac_status); } && { |
| 7502 | test -z "$ac_c_werror_flag" || |
| 7503 | test ! -s conftest.err |
| 7504 | } && test -s conftest$ac_exeext && { |
| 7505 | test "$cross_compiling" = yes || |
| 7506 | $as_test_x conftest$ac_exeext |
| 7507 | }; then |
| 7508 | attr_name=$attr; break |
| 7509 | else |
| 7510 | $as_echo "$as_me: failed program was:" >&5 |
| 7511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7512 | |
| 7513 | |
| 7514 | fi |
| 7515 | |
| 7516 | rm -rf conftest.dSYM |
| 7517 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 7518 | conftest$ac_exeext conftest.$ac_ext |
| 7519 | done |
| 7520 | { $as_echo "$as_me:$LINENO: result: $attr_name" >&5 |
| 7521 | $as_echo "$attr_name" >&6; } |
| 7522 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
| 7523 | |
| 7524 | cat >>confdefs.h <<_ACEOF |
| 7525 | #define PTHREAD_CREATE_JOINABLE $attr_name |
| 7526 | _ACEOF |
| 7527 | |
| 7528 | fi |
| 7529 | |
| 7530 | { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 |
| 7531 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } |
| 7532 | flag=no |
| 7533 | case "${host_cpu}-${host_os}" in |
| 7534 | *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; |
| 7535 | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; |
| 7536 | esac |
| 7537 | { $as_echo "$as_me:$LINENO: result: ${flag}" >&5 |
| 7538 | $as_echo "${flag}" >&6; } |
| 7539 | if test "x$flag" != xno; then |
| 7540 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
| 7541 | fi |
| 7542 | |
| 7543 | LIBS="$save_LIBS" |
| 7544 | CFLAGS="$save_CFLAGS" |
| 7545 | |
| 7546 | # More AIX lossage: must compile with xlc_r or cc_r |
| 7547 | case "${host_os}" in |
| 7548 | aix* ) |
| 7549 | if test x"$GCC" != xyes; then |
| 7550 | case "$CC" in |
| 7551 | *xlc ) |
| 7552 | # Extract the first word of "xlc_r", so it can be a program name with args. |
| 7553 | set dummy xlc_r; ac_word=$2 |
| 7554 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7555 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7556 | if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then |
| 7557 | $as_echo_n "(cached) " >&6 |
| 7558 | else |
| 7559 | if test -n "$PTHREAD_CC"; then |
| 7560 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 7561 | else |
| 7562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7563 | for as_dir in $PATH |
| 7564 | do |
| 7565 | IFS=$as_save_IFS |
| 7566 | test -z "$as_dir" && as_dir=. |
| 7567 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7568 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7569 | ac_cv_prog_PTHREAD_CC="xlc_r" |
| 7570 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7571 | break 2 |
| 7572 | fi |
| 7573 | done |
| 7574 | done |
| 7575 | IFS=$as_save_IFS |
| 7576 | |
| 7577 | test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}" |
| 7578 | fi |
| 7579 | fi |
| 7580 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 7581 | if test -n "$PTHREAD_CC"; then |
| 7582 | { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5 |
| 7583 | $as_echo "$PTHREAD_CC" >&6; } |
| 7584 | else |
| 7585 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 7586 | $as_echo "no" >&6; } |
| 7587 | fi |
| 7588 | |
| 7589 | ;; |
| 7590 | *cc ) |
| 7591 | # Extract the first word of "cc_r", so it can be a program name with args. |
| 7592 | set dummy cc_r; ac_word=$2 |
| 7593 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7594 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7595 | if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then |
| 7596 | $as_echo_n "(cached) " >&6 |
| 7597 | else |
| 7598 | if test -n "$PTHREAD_CC"; then |
| 7599 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 7600 | else |
| 7601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7602 | for as_dir in $PATH |
| 7603 | do |
| 7604 | IFS=$as_save_IFS |
| 7605 | test -z "$as_dir" && as_dir=. |
| 7606 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7607 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7608 | ac_cv_prog_PTHREAD_CC="cc_r" |
| 7609 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7610 | break 2 |
| 7611 | fi |
| 7612 | done |
| 7613 | done |
| 7614 | IFS=$as_save_IFS |
| 7615 | |
| 7616 | test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}" |
| 7617 | fi |
| 7618 | fi |
| 7619 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 7620 | if test -n "$PTHREAD_CC"; then |
| 7621 | { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5 |
| 7622 | $as_echo "$PTHREAD_CC" >&6; } |
| 7623 | else |
| 7624 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 7625 | $as_echo "no" >&6; } |
| 7626 | fi |
| 7627 | |
| 7628 | ;; |
| 7629 | esac |
| 7630 | fi |
| 7631 | case "$CXX" in |
| 7632 | *xlC ) |
| 7633 | # Extract the first word of "xlC_r", so it can be a program name with args. |
| 7634 | set dummy xlC_r; ac_word=$2 |
| 7635 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7636 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7637 | if test "${ac_cv_prog_PTHREAD_CXX+set}" = set; then |
| 7638 | $as_echo_n "(cached) " >&6 |
| 7639 | else |
| 7640 | if test -n "$PTHREAD_CXX"; then |
| 7641 | ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test. |
| 7642 | else |
| 7643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7644 | for as_dir in $PATH |
| 7645 | do |
| 7646 | IFS=$as_save_IFS |
| 7647 | test -z "$as_dir" && as_dir=. |
| 7648 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7649 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7650 | ac_cv_prog_PTHREAD_CXX="xlC_r" |
| 7651 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7652 | break 2 |
| 7653 | fi |
| 7654 | done |
| 7655 | done |
| 7656 | IFS=$as_save_IFS |
| 7657 | |
| 7658 | test -z "$ac_cv_prog_PTHREAD_CXX" && ac_cv_prog_PTHREAD_CXX="${CXX}" |
| 7659 | fi |
| 7660 | fi |
| 7661 | PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX |
| 7662 | if test -n "$PTHREAD_CXX"; then |
| 7663 | { $as_echo "$as_me:$LINENO: result: $PTHREAD_CXX" >&5 |
| 7664 | $as_echo "$PTHREAD_CXX" >&6; } |
| 7665 | else |
| 7666 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 7667 | $as_echo "no" >&6; } |
| 7668 | fi |
| 7669 | |
| 7670 | ;; |
| 7671 | esac |
| 7672 | ;; |
| 7673 | esac |
| 7674 | fi |
| 7675 | |
| 7676 | if test "${PTHREAD_CC}x" = "x" |
| 7677 | then |
| 7678 | PTHREAD_CC="$CC" |
| 7679 | fi |
| 7680 | if test "${PTHREAD_CXX}x" = "x" |
| 7681 | then |
| 7682 | PTHREAD_CXX="$CXX" |
| 7683 | fi |
| 7684 | |
| 7685 | |
| 7686 | |
| 7687 | |
| 7688 | |
| 7689 | |
| 7690 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 7691 | if test x"$acx_pthread_ok" = xyes; then |
| 7692 | |
| 7693 | cat >>confdefs.h <<\_ACEOF |
| 7694 | #define HAVE_PTHREAD 1 |
| 7695 | _ACEOF |
| 7696 | |
| 7697 | : |
| 7698 | else |
| 7699 | acx_pthread_ok=no |
| 7700 | |
| 7701 | fi |
| 7702 | ac_ext=c |
| 7703 | ac_cpp='$CPP $CPPFLAGS' |
| 7704 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7705 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7706 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7707 | |
| 7708 | |
| 7709 | if test "$acx_pthread_ok" = yes; then |
| 7710 | have_threads=yes |
| 7711 | DEF_THREAD="$PTHREAD_CFLAGS" |
| 7712 | CFLAGS="$CFLAGS $DEF_THREAD" |
| 7713 | CXXFLAGS="$CXXFLAGS $DEF_THREAD" |
| 7714 | if test "$CC" != "$PTHREAD_CC"; then |
| 7715 | { $as_echo "$as_me:$LINENO: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5 |
| 7716 | $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;} |
| 7717 | CC="$PTHREAD_CC" |
| 7718 | fi |
| 7719 | fi |
| 7720 | fi |
| 7721 | |
| 7722 | # Enable support for OpenMP |
| 7723 | if test "$have_threads" != 'yes'; then |
| 7724 | ac_cv_prog_c_openmp=unsupported |
| 7725 | fi |
| 7726 | |
| 7727 | OPENMP_CFLAGS= |
| 7728 | # Check whether --enable-openmp was given. |
| 7729 | if test "${enable_openmp+set}" = set; then |
| 7730 | enableval=$enable_openmp; |
| 7731 | fi |
| 7732 | |
| 7733 | if test "$enable_openmp" != no; then |
| 7734 | { $as_echo "$as_me:$LINENO: checking for $CC option to support OpenMP" >&5 |
| 7735 | $as_echo_n "checking for $CC option to support OpenMP... " >&6; } |
| 7736 | if test "${ac_cv_prog_c_openmp+set}" = set; then |
| 7737 | $as_echo_n "(cached) " >&6 |
| 7738 | else |
| 7739 | cat >conftest.$ac_ext <<_ACEOF |
| 7740 | |
| 7741 | #ifndef _OPENMP |
| 7742 | choke me |
| 7743 | #endif |
| 7744 | #include <omp.h> |
| 7745 | int main () { return omp_get_num_threads (); } |
| 7746 | |
| 7747 | _ACEOF |
| 7748 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7749 | if { (ac_try="$ac_link" |
| 7750 | case "(($ac_try" in |
| 7751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7752 | *) ac_try_echo=$ac_try;; |
| 7753 | esac |
| 7754 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7755 | $as_echo "$ac_try_echo") >&5 |
| 7756 | (eval "$ac_link") 2>conftest.er1 |
| 7757 | ac_status=$? |
| 7758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7759 | rm -f conftest.er1 |
| 7760 | cat conftest.err >&5 |
| 7761 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7762 | (exit $ac_status); } && { |
| 7763 | test -z "$ac_c_werror_flag" || |
| 7764 | test ! -s conftest.err |
| 7765 | } && test -s conftest$ac_exeext && { |
| 7766 | test "$cross_compiling" = yes || |
| 7767 | $as_test_x conftest$ac_exeext |
| 7768 | }; then |
| 7769 | ac_cv_prog_c_openmp='none needed' |
| 7770 | else |
| 7771 | $as_echo "$as_me: failed program was:" >&5 |
| 7772 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7773 | |
| 7774 | ac_cv_prog_c_openmp='unsupported' |
| 7775 | for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do |
| 7776 | ac_save_CFLAGS=$CFLAGS |
| 7777 | CFLAGS="$CFLAGS $ac_option" |
| 7778 | cat >conftest.$ac_ext <<_ACEOF |
| 7779 | |
| 7780 | #ifndef _OPENMP |
| 7781 | choke me |
| 7782 | #endif |
| 7783 | #include <omp.h> |
| 7784 | int main () { return omp_get_num_threads (); } |
| 7785 | |
| 7786 | _ACEOF |
| 7787 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7788 | if { (ac_try="$ac_link" |
| 7789 | case "(($ac_try" in |
| 7790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7791 | *) ac_try_echo=$ac_try;; |
| 7792 | esac |
| 7793 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7794 | $as_echo "$ac_try_echo") >&5 |
| 7795 | (eval "$ac_link") 2>conftest.er1 |
| 7796 | ac_status=$? |
| 7797 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7798 | rm -f conftest.er1 |
| 7799 | cat conftest.err >&5 |
| 7800 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7801 | (exit $ac_status); } && { |
| 7802 | test -z "$ac_c_werror_flag" || |
| 7803 | test ! -s conftest.err |
| 7804 | } && test -s conftest$ac_exeext && { |
| 7805 | test "$cross_compiling" = yes || |
| 7806 | $as_test_x conftest$ac_exeext |
| 7807 | }; then |
| 7808 | ac_cv_prog_c_openmp=$ac_option |
| 7809 | else |
| 7810 | $as_echo "$as_me: failed program was:" >&5 |
| 7811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7812 | |
| 7813 | |
| 7814 | fi |
| 7815 | |
| 7816 | rm -rf conftest.dSYM |
| 7817 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 7818 | conftest$ac_exeext conftest.$ac_ext |
| 7819 | CFLAGS=$ac_save_CFLAGS |
| 7820 | if test "$ac_cv_prog_c_openmp" != unsupported; then |
| 7821 | break |
| 7822 | fi |
| 7823 | done |
| 7824 | fi |
| 7825 | |
| 7826 | rm -rf conftest.dSYM |
| 7827 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 7828 | conftest$ac_exeext conftest.$ac_ext |
| 7829 | fi |
| 7830 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_c_openmp" >&5 |
| 7831 | $as_echo "$ac_cv_prog_c_openmp" >&6; } |
| 7832 | case $ac_cv_prog_c_openmp in #( |
| 7833 | "none needed" | unsupported) |
| 7834 | ;; #( |
| 7835 | *) |
| 7836 | OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;; |
| 7837 | esac |
| 7838 | fi |
| 7839 | |
| 7840 | |
| 7841 | CFLAGS="$OPENMP_CFLAGS $CFLAGS" |
| 7842 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS" |
| 7843 | |
| 7844 | |
| 7845 | ######## |
| 7846 | # |
| 7847 | # Check for large file support |
| 7848 | # |
| 7849 | ######## |
| 7850 | # Check whether --enable-largefile was given. |
| 7851 | if test "${enable_largefile+set}" = set; then |
| 7852 | enableval=$enable_largefile; |
| 7853 | fi |
| 7854 | |
| 7855 | if test "$enable_largefile" != no; then |
| 7856 | |
| 7857 | { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
| 7858 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
| 7859 | if test "${ac_cv_sys_largefile_CC+set}" = set; then |
| 7860 | $as_echo_n "(cached) " >&6 |
| 7861 | else |
| 7862 | ac_cv_sys_largefile_CC=no |
| 7863 | if test "$GCC" != yes; then |
| 7864 | ac_save_CC=$CC |
| 7865 | while :; do |
| 7866 | # IRIX 6.2 and later do not support large files by default, |
| 7867 | # so use the C compiler's -n32 option if that helps. |
| 7868 | cat >conftest.$ac_ext <<_ACEOF |
| 7869 | /* confdefs.h. */ |
| 7870 | _ACEOF |
| 7871 | cat confdefs.h >>conftest.$ac_ext |
| 7872 | cat >>conftest.$ac_ext <<_ACEOF |
| 7873 | /* end confdefs.h. */ |
| 7874 | #include <sys/types.h> |
| 7875 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 7876 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 7877 | since some C++ compilers masquerading as C compilers |
| 7878 | incorrectly reject 9223372036854775807. */ |
| 7879 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 7880 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 7881 | && LARGE_OFF_T % 2147483647 == 1) |
| 7882 | ? 1 : -1]; |
| 7883 | int |
| 7884 | main () |
| 7885 | { |
| 7886 | |
| 7887 | ; |
| 7888 | return 0; |
| 7889 | } |
| 7890 | _ACEOF |
| 7891 | rm -f conftest.$ac_objext |
| 7892 | if { (ac_try="$ac_compile" |
| 7893 | case "(($ac_try" in |
| 7894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7895 | *) ac_try_echo=$ac_try;; |
| 7896 | esac |
| 7897 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7898 | $as_echo "$ac_try_echo") >&5 |
| 7899 | (eval "$ac_compile") 2>conftest.er1 |
| 7900 | ac_status=$? |
| 7901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7902 | rm -f conftest.er1 |
| 7903 | cat conftest.err >&5 |
| 7904 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7905 | (exit $ac_status); } && { |
| 7906 | test -z "$ac_c_werror_flag" || |
| 7907 | test ! -s conftest.err |
| 7908 | } && test -s conftest.$ac_objext; then |
| 7909 | break |
| 7910 | else |
| 7911 | $as_echo "$as_me: failed program was:" >&5 |
| 7912 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7913 | |
| 7914 | |
| 7915 | fi |
| 7916 | |
| 7917 | rm -f core conftest.err conftest.$ac_objext |
| 7918 | CC="$CC -n32" |
| 7919 | rm -f conftest.$ac_objext |
| 7920 | if { (ac_try="$ac_compile" |
| 7921 | case "(($ac_try" in |
| 7922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7923 | *) ac_try_echo=$ac_try;; |
| 7924 | esac |
| 7925 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7926 | $as_echo "$ac_try_echo") >&5 |
| 7927 | (eval "$ac_compile") 2>conftest.er1 |
| 7928 | ac_status=$? |
| 7929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7930 | rm -f conftest.er1 |
| 7931 | cat conftest.err >&5 |
| 7932 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7933 | (exit $ac_status); } && { |
| 7934 | test -z "$ac_c_werror_flag" || |
| 7935 | test ! -s conftest.err |
| 7936 | } && test -s conftest.$ac_objext; then |
| 7937 | ac_cv_sys_largefile_CC=' -n32'; break |
| 7938 | else |
| 7939 | $as_echo "$as_me: failed program was:" >&5 |
| 7940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7941 | |
| 7942 | |
| 7943 | fi |
| 7944 | |
| 7945 | rm -f core conftest.err conftest.$ac_objext |
| 7946 | break |
| 7947 | done |
| 7948 | CC=$ac_save_CC |
| 7949 | rm -f conftest.$ac_ext |
| 7950 | fi |
| 7951 | fi |
| 7952 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
| 7953 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 7954 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 7955 | CC=$CC$ac_cv_sys_largefile_CC |
| 7956 | fi |
| 7957 | |
| 7958 | { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 7959 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| 7960 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then |
| 7961 | $as_echo_n "(cached) " >&6 |
| 7962 | else |
| 7963 | while :; do |
| 7964 | cat >conftest.$ac_ext <<_ACEOF |
| 7965 | /* confdefs.h. */ |
| 7966 | _ACEOF |
| 7967 | cat confdefs.h >>conftest.$ac_ext |
| 7968 | cat >>conftest.$ac_ext <<_ACEOF |
| 7969 | /* end confdefs.h. */ |
| 7970 | #include <sys/types.h> |
| 7971 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 7972 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 7973 | since some C++ compilers masquerading as C compilers |
| 7974 | incorrectly reject 9223372036854775807. */ |
| 7975 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 7976 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 7977 | && LARGE_OFF_T % 2147483647 == 1) |
| 7978 | ? 1 : -1]; |
| 7979 | int |
| 7980 | main () |
| 7981 | { |
| 7982 | |
| 7983 | ; |
| 7984 | return 0; |
| 7985 | } |
| 7986 | _ACEOF |
| 7987 | rm -f conftest.$ac_objext |
| 7988 | if { (ac_try="$ac_compile" |
| 7989 | case "(($ac_try" in |
| 7990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7991 | *) ac_try_echo=$ac_try;; |
| 7992 | esac |
| 7993 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7994 | $as_echo "$ac_try_echo") >&5 |
| 7995 | (eval "$ac_compile") 2>conftest.er1 |
| 7996 | ac_status=$? |
| 7997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7998 | rm -f conftest.er1 |
| 7999 | cat conftest.err >&5 |
| 8000 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8001 | (exit $ac_status); } && { |
| 8002 | test -z "$ac_c_werror_flag" || |
| 8003 | test ! -s conftest.err |
| 8004 | } && test -s conftest.$ac_objext; then |
| 8005 | ac_cv_sys_file_offset_bits=no; break |
| 8006 | else |
| 8007 | $as_echo "$as_me: failed program was:" >&5 |
| 8008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8009 | |
| 8010 | |
| 8011 | fi |
| 8012 | |
| 8013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8014 | cat >conftest.$ac_ext <<_ACEOF |
| 8015 | /* confdefs.h. */ |
| 8016 | _ACEOF |
| 8017 | cat confdefs.h >>conftest.$ac_ext |
| 8018 | cat >>conftest.$ac_ext <<_ACEOF |
| 8019 | /* end confdefs.h. */ |
| 8020 | #define _FILE_OFFSET_BITS 64 |
| 8021 | #include <sys/types.h> |
| 8022 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 8023 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8024 | since some C++ compilers masquerading as C compilers |
| 8025 | incorrectly reject 9223372036854775807. */ |
| 8026 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 8027 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8028 | && LARGE_OFF_T % 2147483647 == 1) |
| 8029 | ? 1 : -1]; |
| 8030 | int |
| 8031 | main () |
| 8032 | { |
| 8033 | |
| 8034 | ; |
| 8035 | return 0; |
| 8036 | } |
| 8037 | _ACEOF |
| 8038 | rm -f conftest.$ac_objext |
| 8039 | if { (ac_try="$ac_compile" |
| 8040 | case "(($ac_try" in |
| 8041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8042 | *) ac_try_echo=$ac_try;; |
| 8043 | esac |
| 8044 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8045 | $as_echo "$ac_try_echo") >&5 |
| 8046 | (eval "$ac_compile") 2>conftest.er1 |
| 8047 | ac_status=$? |
| 8048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8049 | rm -f conftest.er1 |
| 8050 | cat conftest.err >&5 |
| 8051 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8052 | (exit $ac_status); } && { |
| 8053 | test -z "$ac_c_werror_flag" || |
| 8054 | test ! -s conftest.err |
| 8055 | } && test -s conftest.$ac_objext; then |
| 8056 | ac_cv_sys_file_offset_bits=64; break |
| 8057 | else |
| 8058 | $as_echo "$as_me: failed program was:" >&5 |
| 8059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8060 | |
| 8061 | |
| 8062 | fi |
| 8063 | |
| 8064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8065 | ac_cv_sys_file_offset_bits=unknown |
| 8066 | break |
| 8067 | done |
| 8068 | fi |
| 8069 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
| 8070 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 8071 | case $ac_cv_sys_file_offset_bits in #( |
| 8072 | no | unknown) ;; |
| 8073 | *) |
| 8074 | cat >>confdefs.h <<_ACEOF |
| 8075 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 8076 | _ACEOF |
| 8077 | ;; |
| 8078 | esac |
| 8079 | rm -rf conftest* |
| 8080 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| 8081 | { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
| 8082 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 8083 | if test "${ac_cv_sys_large_files+set}" = set; then |
| 8084 | $as_echo_n "(cached) " >&6 |
| 8085 | else |
| 8086 | while :; do |
| 8087 | cat >conftest.$ac_ext <<_ACEOF |
| 8088 | /* confdefs.h. */ |
| 8089 | _ACEOF |
| 8090 | cat confdefs.h >>conftest.$ac_ext |
| 8091 | cat >>conftest.$ac_ext <<_ACEOF |
| 8092 | /* end confdefs.h. */ |
| 8093 | #include <sys/types.h> |
| 8094 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 8095 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8096 | since some C++ compilers masquerading as C compilers |
| 8097 | incorrectly reject 9223372036854775807. */ |
| 8098 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 8099 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8100 | && LARGE_OFF_T % 2147483647 == 1) |
| 8101 | ? 1 : -1]; |
| 8102 | int |
| 8103 | main () |
| 8104 | { |
| 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8117 | $as_echo "$ac_try_echo") >&5 |
| 8118 | (eval "$ac_compile") 2>conftest.er1 |
| 8119 | ac_status=$? |
| 8120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8121 | rm -f conftest.er1 |
| 8122 | cat conftest.err >&5 |
| 8123 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8124 | (exit $ac_status); } && { |
| 8125 | test -z "$ac_c_werror_flag" || |
| 8126 | test ! -s conftest.err |
| 8127 | } && test -s conftest.$ac_objext; then |
| 8128 | ac_cv_sys_large_files=no; break |
| 8129 | else |
| 8130 | $as_echo "$as_me: failed program was:" >&5 |
| 8131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8132 | |
| 8133 | |
| 8134 | fi |
| 8135 | |
| 8136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8137 | cat >conftest.$ac_ext <<_ACEOF |
| 8138 | /* confdefs.h. */ |
| 8139 | _ACEOF |
| 8140 | cat confdefs.h >>conftest.$ac_ext |
| 8141 | cat >>conftest.$ac_ext <<_ACEOF |
| 8142 | /* end confdefs.h. */ |
| 8143 | #define _LARGE_FILES 1 |
| 8144 | #include <sys/types.h> |
| 8145 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 8146 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8147 | since some C++ compilers masquerading as C compilers |
| 8148 | incorrectly reject 9223372036854775807. */ |
| 8149 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 8150 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8151 | && LARGE_OFF_T % 2147483647 == 1) |
| 8152 | ? 1 : -1]; |
| 8153 | int |
| 8154 | main () |
| 8155 | { |
| 8156 | |
| 8157 | ; |
| 8158 | return 0; |
| 8159 | } |
| 8160 | _ACEOF |
| 8161 | rm -f conftest.$ac_objext |
| 8162 | if { (ac_try="$ac_compile" |
| 8163 | case "(($ac_try" in |
| 8164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8165 | *) ac_try_echo=$ac_try;; |
| 8166 | esac |
| 8167 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8168 | $as_echo "$ac_try_echo") >&5 |
| 8169 | (eval "$ac_compile") 2>conftest.er1 |
| 8170 | ac_status=$? |
| 8171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8172 | rm -f conftest.er1 |
| 8173 | cat conftest.err >&5 |
| 8174 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8175 | (exit $ac_status); } && { |
| 8176 | test -z "$ac_c_werror_flag" || |
| 8177 | test ! -s conftest.err |
| 8178 | } && test -s conftest.$ac_objext; then |
| 8179 | ac_cv_sys_large_files=1; break |
| 8180 | else |
| 8181 | $as_echo "$as_me: failed program was:" >&5 |
| 8182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8183 | |
| 8184 | |
| 8185 | fi |
| 8186 | |
| 8187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8188 | ac_cv_sys_large_files=unknown |
| 8189 | break |
| 8190 | done |
| 8191 | fi |
| 8192 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
| 8193 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 8194 | case $ac_cv_sys_large_files in #( |
| 8195 | no | unknown) ;; |
| 8196 | *) |
| 8197 | cat >>confdefs.h <<_ACEOF |
| 8198 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 8199 | _ACEOF |
| 8200 | ;; |
| 8201 | esac |
| 8202 | rm -rf conftest* |
| 8203 | fi |
| 8204 | fi |
| 8205 | |
| 8206 | { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
| 8207 | $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } |
| 8208 | if test "${ac_cv_sys_largefile_source+set}" = set; then |
| 8209 | $as_echo_n "(cached) " >&6 |
| 8210 | else |
| 8211 | while :; do |
| 8212 | cat >conftest.$ac_ext <<_ACEOF |
| 8213 | /* confdefs.h. */ |
| 8214 | _ACEOF |
| 8215 | cat confdefs.h >>conftest.$ac_ext |
| 8216 | cat >>conftest.$ac_ext <<_ACEOF |
| 8217 | /* end confdefs.h. */ |
| 8218 | #include <sys/types.h> /* for off_t */ |
| 8219 | #include <stdio.h> |
| 8220 | int |
| 8221 | main () |
| 8222 | { |
| 8223 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 8224 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 8225 | ; |
| 8226 | return 0; |
| 8227 | } |
| 8228 | _ACEOF |
| 8229 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8230 | if { (ac_try="$ac_link" |
| 8231 | case "(($ac_try" in |
| 8232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8233 | *) ac_try_echo=$ac_try;; |
| 8234 | esac |
| 8235 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8236 | $as_echo "$ac_try_echo") >&5 |
| 8237 | (eval "$ac_link") 2>conftest.er1 |
| 8238 | ac_status=$? |
| 8239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8240 | rm -f conftest.er1 |
| 8241 | cat conftest.err >&5 |
| 8242 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8243 | (exit $ac_status); } && { |
| 8244 | test -z "$ac_c_werror_flag" || |
| 8245 | test ! -s conftest.err |
| 8246 | } && test -s conftest$ac_exeext && { |
| 8247 | test "$cross_compiling" = yes || |
| 8248 | $as_test_x conftest$ac_exeext |
| 8249 | }; then |
| 8250 | ac_cv_sys_largefile_source=no; break |
| 8251 | else |
| 8252 | $as_echo "$as_me: failed program was:" >&5 |
| 8253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8254 | |
| 8255 | |
| 8256 | fi |
| 8257 | |
| 8258 | rm -rf conftest.dSYM |
| 8259 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 8260 | conftest$ac_exeext conftest.$ac_ext |
| 8261 | cat >conftest.$ac_ext <<_ACEOF |
| 8262 | /* confdefs.h. */ |
| 8263 | _ACEOF |
| 8264 | cat confdefs.h >>conftest.$ac_ext |
| 8265 | cat >>conftest.$ac_ext <<_ACEOF |
| 8266 | /* end confdefs.h. */ |
| 8267 | #define _LARGEFILE_SOURCE 1 |
| 8268 | #include <sys/types.h> /* for off_t */ |
| 8269 | #include <stdio.h> |
| 8270 | int |
| 8271 | main () |
| 8272 | { |
| 8273 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 8274 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 8275 | ; |
| 8276 | return 0; |
| 8277 | } |
| 8278 | _ACEOF |
| 8279 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8280 | if { (ac_try="$ac_link" |
| 8281 | case "(($ac_try" in |
| 8282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8283 | *) ac_try_echo=$ac_try;; |
| 8284 | esac |
| 8285 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8286 | $as_echo "$ac_try_echo") >&5 |
| 8287 | (eval "$ac_link") 2>conftest.er1 |
| 8288 | ac_status=$? |
| 8289 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8290 | rm -f conftest.er1 |
| 8291 | cat conftest.err >&5 |
| 8292 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8293 | (exit $ac_status); } && { |
| 8294 | test -z "$ac_c_werror_flag" || |
| 8295 | test ! -s conftest.err |
| 8296 | } && test -s conftest$ac_exeext && { |
| 8297 | test "$cross_compiling" = yes || |
| 8298 | $as_test_x conftest$ac_exeext |
| 8299 | }; then |
| 8300 | ac_cv_sys_largefile_source=1; break |
| 8301 | else |
| 8302 | $as_echo "$as_me: failed program was:" >&5 |
| 8303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8304 | |
| 8305 | |
| 8306 | fi |
| 8307 | |
| 8308 | rm -rf conftest.dSYM |
| 8309 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 8310 | conftest$ac_exeext conftest.$ac_ext |
| 8311 | ac_cv_sys_largefile_source=unknown |
| 8312 | break |
| 8313 | done |
| 8314 | fi |
| 8315 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 |
| 8316 | $as_echo "$ac_cv_sys_largefile_source" >&6; } |
| 8317 | case $ac_cv_sys_largefile_source in #( |
| 8318 | no | unknown) ;; |
| 8319 | *) |
| 8320 | cat >>confdefs.h <<_ACEOF |
| 8321 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
| 8322 | _ACEOF |
| 8323 | ;; |
| 8324 | esac |
| 8325 | rm -rf conftest* |
| 8326 | |
| 8327 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
| 8328 | # in glibc 2.1.3, but that breaks too many other things. |
| 8329 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. |
| 8330 | if test $ac_cv_sys_largefile_source != unknown; then |
| 8331 | |
| 8332 | cat >>confdefs.h <<\_ACEOF |
| 8333 | #define HAVE_FSEEKO 1 |
| 8334 | _ACEOF |
| 8335 | |
| 8336 | fi |
| 8337 | |
| 8338 | LFS_CPPFLAGS='' |
| 8339 | if test "$enable_largefile" != no; then |
| 8340 | if test "$ac_cv_sys_file_offset_bits" != 'no'; then |
| 8341 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" |
| 8342 | else |
| 8343 | { $as_echo "$as_me:$LINENO: checking for native large file support" >&5 |
| 8344 | $as_echo_n "checking for native large file support... " >&6; } |
| 8345 | if test "$cross_compiling" = yes; then |
| 8346 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 8347 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8348 | { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8349 | See \`config.log' for more details." >&5 |
| 8350 | $as_echo "$as_me: error: cannot run test program while cross compiling |
| 8351 | See \`config.log' for more details." >&2;} |
| 8352 | { (exit 1); exit 1; }; }; } |
| 8353 | else |
| 8354 | cat >conftest.$ac_ext <<_ACEOF |
| 8355 | #include <unistd.h> |
| 8356 | main () { |
| 8357 | exit(!(sizeof(off_t) == 8)); |
| 8358 | } |
| 8359 | _ACEOF |
| 8360 | rm -f conftest$ac_exeext |
| 8361 | if { (ac_try="$ac_link" |
| 8362 | case "(($ac_try" in |
| 8363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8364 | *) ac_try_echo=$ac_try;; |
| 8365 | esac |
| 8366 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8367 | $as_echo "$ac_try_echo") >&5 |
| 8368 | (eval "$ac_link") 2>&5 |
| 8369 | ac_status=$? |
| 8370 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8371 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8372 | { (case "(($ac_try" in |
| 8373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8374 | *) ac_try_echo=$ac_try;; |
| 8375 | esac |
| 8376 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8377 | $as_echo "$ac_try_echo") >&5 |
| 8378 | (eval "$ac_try") 2>&5 |
| 8379 | ac_status=$? |
| 8380 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8381 | (exit $ac_status); }; }; then |
| 8382 | ac_cv_sys_file_offset_bits=64; cat >>confdefs.h <<\_ACEOF |
| 8383 | #define _FILE_OFFSET_BITS 64 |
| 8384 | _ACEOF |
| 8385 | |
| 8386 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 8387 | $as_echo "yes" >&6; } |
| 8388 | else |
| 8389 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 8390 | $as_echo "$as_me: failed program was:" >&5 |
| 8391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8392 | |
| 8393 | ( exit $ac_status ) |
| 8394 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8395 | $as_echo "no" >&6; } |
| 8396 | fi |
| 8397 | rm -rf conftest.dSYM |
| 8398 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8399 | fi |
| 8400 | |
| 8401 | |
| 8402 | fi |
| 8403 | if test "$ac_cv_sys_large_files" != 'no'; then |
| 8404 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1" |
| 8405 | fi |
| 8406 | if test "$ac_cv_sys_largefile_source" != 'no'; then |
| 8407 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1" |
| 8408 | fi |
| 8409 | fi |
| 8410 | |
| 8411 | |
| 8412 | # |
| 8413 | # Configure libtool & libltdl |
| 8414 | # |
| 8415 | # Configure libtool |
| 8416 | enable_dlopen=yes |
| 8417 | |
| 8418 | |
| 8419 | |
| 8420 | case `pwd` in |
| 8421 | *\ * | *\ *) |
| 8422 | { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 8423 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 8424 | esac |
| 8425 | |
| 8426 | |
| 8427 | |
| 8428 | macro_version='2.2.6' |
| 8429 | macro_revision='1.3012' |
| 8430 | |
| 8431 | |
| 8432 | |
| 8433 | |
| 8434 | |
| 8435 | |
| 8436 | |
| 8437 | |
| 8438 | |
| 8439 | |
| 8440 | |
| 8441 | |
| 8442 | |
| 8443 | ltmain="$ac_aux_dir/ltmain.sh" |
| 8444 | |
| 8445 | { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 8446 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 8447 | if test "${lt_cv_path_NM+set}" = set; then |
| 8448 | $as_echo_n "(cached) " >&6 |
| 8449 | else |
| 8450 | if test -n "$NM"; then |
| 8451 | # Let the user override the test. |
| 8452 | lt_cv_path_NM="$NM" |
| 8453 | else |
| 8454 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 8455 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 8456 | lt_nm_to_check="$lt_nm_to_check nm" |
| 8457 | fi |
| 8458 | for lt_tmp_nm in $lt_nm_to_check; do |
| 8459 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8460 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 8461 | IFS="$lt_save_ifs" |
| 8462 | test -z "$ac_dir" && ac_dir=. |
| 8463 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 8464 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 8465 | # Check to see if the nm accepts a BSD-compat flag. |
| 8466 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 8467 | # nm: unknown option "B" ignored |
| 8468 | # Tru64's nm complains that /dev/null is an invalid object file |
| 8469 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 8470 | */dev/null* | *'Invalid file or object type'*) |
| 8471 | lt_cv_path_NM="$tmp_nm -B" |
| 8472 | break |
| 8473 | ;; |
| 8474 | *) |
| 8475 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 8476 | */dev/null*) |
| 8477 | lt_cv_path_NM="$tmp_nm -p" |
| 8478 | break |
| 8479 | ;; |
| 8480 | *) |
| 8481 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 8482 | continue # so that we can try to find one that supports BSD flags |
| 8483 | ;; |
| 8484 | esac |
| 8485 | ;; |
| 8486 | esac |
| 8487 | fi |
| 8488 | done |
| 8489 | IFS="$lt_save_ifs" |
| 8490 | done |
| 8491 | : ${lt_cv_path_NM=no} |
| 8492 | fi |
| 8493 | fi |
| 8494 | { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 8495 | $as_echo "$lt_cv_path_NM" >&6; } |
| 8496 | if test "$lt_cv_path_NM" != "no"; then |
| 8497 | NM="$lt_cv_path_NM" |
| 8498 | else |
| 8499 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 8500 | if test -n "$ac_tool_prefix"; then |
| 8501 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 8502 | do |
| 8503 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 8504 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 8505 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8506 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8507 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then |
| 8508 | $as_echo_n "(cached) " >&6 |
| 8509 | else |
| 8510 | if test -n "$DUMPBIN"; then |
| 8511 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 8512 | else |
| 8513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8514 | for as_dir in $PATH |
| 8515 | do |
| 8516 | IFS=$as_save_IFS |
| 8517 | test -z "$as_dir" && as_dir=. |
| 8518 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8519 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8520 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 8521 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8522 | break 2 |
| 8523 | fi |
| 8524 | done |
| 8525 | done |
| 8526 | IFS=$as_save_IFS |
| 8527 | |
| 8528 | fi |
| 8529 | fi |
| 8530 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 8531 | if test -n "$DUMPBIN"; then |
| 8532 | { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 |
| 8533 | $as_echo "$DUMPBIN" >&6; } |
| 8534 | else |
| 8535 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8536 | $as_echo "no" >&6; } |
| 8537 | fi |
| 8538 | |
| 8539 | |
| 8540 | test -n "$DUMPBIN" && break |
| 8541 | done |
| 8542 | fi |
| 8543 | if test -z "$DUMPBIN"; then |
| 8544 | ac_ct_DUMPBIN=$DUMPBIN |
| 8545 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 8546 | do |
| 8547 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8548 | set dummy $ac_prog; ac_word=$2 |
| 8549 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8550 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8551 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then |
| 8552 | $as_echo_n "(cached) " >&6 |
| 8553 | else |
| 8554 | if test -n "$ac_ct_DUMPBIN"; then |
| 8555 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 8556 | else |
| 8557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8558 | for as_dir in $PATH |
| 8559 | do |
| 8560 | IFS=$as_save_IFS |
| 8561 | test -z "$as_dir" && as_dir=. |
| 8562 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8563 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8564 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 8565 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8566 | break 2 |
| 8567 | fi |
| 8568 | done |
| 8569 | done |
| 8570 | IFS=$as_save_IFS |
| 8571 | |
| 8572 | fi |
| 8573 | fi |
| 8574 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 8575 | if test -n "$ac_ct_DUMPBIN"; then |
| 8576 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 |
| 8577 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 8578 | else |
| 8579 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8580 | $as_echo "no" >&6; } |
| 8581 | fi |
| 8582 | |
| 8583 | |
| 8584 | test -n "$ac_ct_DUMPBIN" && break |
| 8585 | done |
| 8586 | |
| 8587 | if test "x$ac_ct_DUMPBIN" = x; then |
| 8588 | DUMPBIN=":" |
| 8589 | else |
| 8590 | case $cross_compiling:$ac_tool_warned in |
| 8591 | yes:) |
| 8592 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8593 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8594 | ac_tool_warned=yes ;; |
| 8595 | esac |
| 8596 | DUMPBIN=$ac_ct_DUMPBIN |
| 8597 | fi |
| 8598 | fi |
| 8599 | |
| 8600 | |
| 8601 | if test "$DUMPBIN" != ":"; then |
| 8602 | NM="$DUMPBIN" |
| 8603 | fi |
| 8604 | fi |
| 8605 | test -z "$NM" && NM=nm |
| 8606 | |
| 8607 | |
| 8608 | |
| 8609 | |
| 8610 | |
| 8611 | |
| 8612 | { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
| 8613 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 8614 | if test "${lt_cv_nm_interface+set}" = set; then |
| 8615 | $as_echo_n "(cached) " >&6 |
| 8616 | else |
| 8617 | lt_cv_nm_interface="BSD nm" |
| 8618 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 8619 | (eval echo "\"\$as_me:8619: $ac_compile\"" >&5) |
| 8620 | (eval "$ac_compile" 2>conftest.err) |
| 8621 | cat conftest.err >&5 |
| 8622 | (eval echo "\"\$as_me:8622: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 8623 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 8624 | cat conftest.err >&5 |
| 8625 | (eval echo "\"\$as_me:8625: output\"" >&5) |
| 8626 | cat conftest.out >&5 |
| 8627 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 8628 | lt_cv_nm_interface="MS dumpbin" |
| 8629 | fi |
| 8630 | rm -f conftest* |
| 8631 | fi |
| 8632 | { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 |
| 8633 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 8634 | |
| 8635 | # find the maximum length of command line arguments |
| 8636 | { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 8637 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 8638 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 8639 | $as_echo_n "(cached) " >&6 |
| 8640 | else |
| 8641 | i=0 |
| 8642 | teststring="ABCD" |
| 8643 | |
| 8644 | case $build_os in |
| 8645 | msdosdjgpp*) |
| 8646 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 8647 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 8648 | # during glob expansion). Even if it were fixed, the result of this |
| 8649 | # check would be larger than it should be. |
| 8650 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 8651 | ;; |
| 8652 | |
| 8653 | gnu*) |
| 8654 | # Under GNU Hurd, this test is not required because there is |
| 8655 | # no limit to the length of command line arguments. |
| 8656 | # Libtool will interpret -1 as no limit whatsoever |
| 8657 | lt_cv_sys_max_cmd_len=-1; |
| 8658 | ;; |
| 8659 | |
| 8660 | cygwin* | mingw* | cegcc*) |
| 8661 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 8662 | # about 5 minutes as the teststring grows exponentially. |
| 8663 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 8664 | # you end up with a "frozen" computer, even though with patience |
| 8665 | # the test eventually succeeds (with a max line length of 256k). |
| 8666 | # Instead, let's just punt: use the minimum linelength reported by |
| 8667 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 8668 | lt_cv_sys_max_cmd_len=8192; |
| 8669 | ;; |
| 8670 | |
| 8671 | amigaos*) |
| 8672 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 8673 | # So we just punt and use a minimum line length of 8192. |
| 8674 | lt_cv_sys_max_cmd_len=8192; |
| 8675 | ;; |
| 8676 | |
| 8677 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 8678 | # This has been around since 386BSD, at least. Likely further. |
| 8679 | if test -x /sbin/sysctl; then |
| 8680 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 8681 | elif test -x /usr/sbin/sysctl; then |
| 8682 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 8683 | else |
| 8684 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 8685 | fi |
| 8686 | # And add a safety zone |
| 8687 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 8688 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 8689 | ;; |
| 8690 | |
| 8691 | interix*) |
| 8692 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 8693 | lt_cv_sys_max_cmd_len=196608 |
| 8694 | ;; |
| 8695 | |
| 8696 | osf*) |
| 8697 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 8698 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 8699 | # nice to cause kernel panics so lets avoid the loop below. |
| 8700 | # First set a reasonable default. |
| 8701 | lt_cv_sys_max_cmd_len=16384 |
| 8702 | # |
| 8703 | if test -x /sbin/sysconfig; then |
| 8704 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 8705 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 8706 | esac |
| 8707 | fi |
| 8708 | ;; |
| 8709 | sco3.2v5*) |
| 8710 | lt_cv_sys_max_cmd_len=102400 |
| 8711 | ;; |
| 8712 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 8713 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 8714 | if test -n "$kargmax"; then |
| 8715 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 8716 | else |
| 8717 | lt_cv_sys_max_cmd_len=32768 |
| 8718 | fi |
| 8719 | ;; |
| 8720 | *) |
| 8721 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 8722 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 8723 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 8724 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 8725 | else |
| 8726 | # Make teststring a little bigger before we do anything with it. |
| 8727 | # a 1K string should be a reasonable start. |
| 8728 | for i in 1 2 3 4 5 6 7 8 ; do |
| 8729 | teststring=$teststring$teststring |
| 8730 | done |
| 8731 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 8732 | # If test is not a shell built-in, we'll probably end up computing a |
| 8733 | # maximum length that is only half of the actual maximum length, but |
| 8734 | # we can't tell. |
| 8735 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
| 8736 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
| 8737 | test $i != 17 # 1/2 MB should be enough |
| 8738 | do |
| 8739 | i=`expr $i + 1` |
| 8740 | teststring=$teststring$teststring |
| 8741 | done |
| 8742 | # Only check the string length outside the loop. |
| 8743 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 8744 | teststring= |
| 8745 | # Add a significant safety factor because C++ compilers can tack on |
| 8746 | # massive amounts of additional arguments before passing them to the |
| 8747 | # linker. It appears as though 1/2 is a usable value. |
| 8748 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 8749 | fi |
| 8750 | ;; |
| 8751 | esac |
| 8752 | |
| 8753 | fi |
| 8754 | |
| 8755 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 8756 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 8757 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 8758 | else |
| 8759 | { $as_echo "$as_me:$LINENO: result: none" >&5 |
| 8760 | $as_echo "none" >&6; } |
| 8761 | fi |
| 8762 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 8763 | |
| 8764 | |
| 8765 | |
| 8766 | |
| 8767 | |
| 8768 | |
| 8769 | : ${CP="cp -f"} |
| 8770 | : ${MV="mv -f"} |
| 8771 | : ${RM="rm -f"} |
| 8772 | |
| 8773 | { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
| 8774 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 8775 | # Try some XSI features |
| 8776 | xsi_shell=no |
| 8777 | ( _lt_dummy="a/b/c" |
| 8778 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
| 8779 | = c,a/b,, \ |
| 8780 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 8781 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 8782 | && xsi_shell=yes |
| 8783 | { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 |
| 8784 | $as_echo "$xsi_shell" >&6; } |
| 8785 | |
| 8786 | |
| 8787 | { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
| 8788 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 8789 | lt_shell_append=no |
| 8790 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 8791 | >/dev/null 2>&1 \ |
| 8792 | && lt_shell_append=yes |
| 8793 | { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 |
| 8794 | $as_echo "$lt_shell_append" >&6; } |
| 8795 | |
| 8796 | |
| 8797 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 8798 | lt_unset=unset |
| 8799 | else |
| 8800 | lt_unset=false |
| 8801 | fi |
| 8802 | |
| 8803 | |
| 8804 | |
| 8805 | |
| 8806 | |
| 8807 | # test EBCDIC or ASCII |
| 8808 | case `echo X|tr X '\101'` in |
| 8809 | A) # ASCII based system |
| 8810 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 8811 | lt_SP2NL='tr \040 \012' |
| 8812 | lt_NL2SP='tr \015\012 \040\040' |
| 8813 | ;; |
| 8814 | *) # EBCDIC based system |
| 8815 | lt_SP2NL='tr \100 \n' |
| 8816 | lt_NL2SP='tr \r\n \100\100' |
| 8817 | ;; |
| 8818 | esac |
| 8819 | |
| 8820 | |
| 8821 | |
| 8822 | |
| 8823 | |
| 8824 | |
| 8825 | |
| 8826 | |
| 8827 | |
| 8828 | { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 8829 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 8830 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 8831 | $as_echo_n "(cached) " >&6 |
| 8832 | else |
| 8833 | lt_cv_ld_reload_flag='-r' |
| 8834 | fi |
| 8835 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 8836 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 8837 | reload_flag=$lt_cv_ld_reload_flag |
| 8838 | case $reload_flag in |
| 8839 | "" | " "*) ;; |
| 8840 | *) reload_flag=" $reload_flag" ;; |
| 8841 | esac |
| 8842 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 8843 | case $host_os in |
| 8844 | darwin*) |
| 8845 | if test "$GCC" = yes; then |
| 8846 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 8847 | else |
| 8848 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 8849 | fi |
| 8850 | ;; |
| 8851 | esac |
| 8852 | |
| 8853 | |
| 8854 | |
| 8855 | |
| 8856 | |
| 8857 | |
| 8858 | |
| 8859 | |
| 8860 | |
| 8861 | if test -n "$ac_tool_prefix"; then |
| 8862 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 8863 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 8864 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8865 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8866 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
| 8867 | $as_echo_n "(cached) " >&6 |
| 8868 | else |
| 8869 | if test -n "$OBJDUMP"; then |
| 8870 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 8871 | else |
| 8872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8873 | for as_dir in $PATH |
| 8874 | do |
| 8875 | IFS=$as_save_IFS |
| 8876 | test -z "$as_dir" && as_dir=. |
| 8877 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8878 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8879 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 8880 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8881 | break 2 |
| 8882 | fi |
| 8883 | done |
| 8884 | done |
| 8885 | IFS=$as_save_IFS |
| 8886 | |
| 8887 | fi |
| 8888 | fi |
| 8889 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 8890 | if test -n "$OBJDUMP"; then |
| 8891 | { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
| 8892 | $as_echo "$OBJDUMP" >&6; } |
| 8893 | else |
| 8894 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8895 | $as_echo "no" >&6; } |
| 8896 | fi |
| 8897 | |
| 8898 | |
| 8899 | fi |
| 8900 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 8901 | ac_ct_OBJDUMP=$OBJDUMP |
| 8902 | # Extract the first word of "objdump", so it can be a program name with args. |
| 8903 | set dummy objdump; ac_word=$2 |
| 8904 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8905 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8906 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then |
| 8907 | $as_echo_n "(cached) " >&6 |
| 8908 | else |
| 8909 | if test -n "$ac_ct_OBJDUMP"; then |
| 8910 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 8911 | else |
| 8912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8913 | for as_dir in $PATH |
| 8914 | do |
| 8915 | IFS=$as_save_IFS |
| 8916 | test -z "$as_dir" && as_dir=. |
| 8917 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8918 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8919 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 8920 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8921 | break 2 |
| 8922 | fi |
| 8923 | done |
| 8924 | done |
| 8925 | IFS=$as_save_IFS |
| 8926 | |
| 8927 | fi |
| 8928 | fi |
| 8929 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 8930 | if test -n "$ac_ct_OBJDUMP"; then |
| 8931 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 |
| 8932 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 8933 | else |
| 8934 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 8935 | $as_echo "no" >&6; } |
| 8936 | fi |
| 8937 | |
| 8938 | if test "x$ac_ct_OBJDUMP" = x; then |
| 8939 | OBJDUMP="false" |
| 8940 | else |
| 8941 | case $cross_compiling:$ac_tool_warned in |
| 8942 | yes:) |
| 8943 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8944 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8945 | ac_tool_warned=yes ;; |
| 8946 | esac |
| 8947 | OBJDUMP=$ac_ct_OBJDUMP |
| 8948 | fi |
| 8949 | else |
| 8950 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 8951 | fi |
| 8952 | |
| 8953 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 8954 | |
| 8955 | |
| 8956 | |
| 8957 | |
| 8958 | |
| 8959 | |
| 8960 | { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
| 8961 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| 8962 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 8963 | $as_echo_n "(cached) " >&6 |
| 8964 | else |
| 8965 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 8966 | lt_cv_file_magic_test_file= |
| 8967 | lt_cv_deplibs_check_method='unknown' |
| 8968 | # Need to set the preceding variable on all platforms that support |
| 8969 | # interlibrary dependencies. |
| 8970 | # 'none' -- dependencies not supported. |
| 8971 | # `unknown' -- same as none, but documents that we really don't know. |
| 8972 | # 'pass_all' -- all dependencies passed with no checks. |
| 8973 | # 'test_compile' -- check by making test program. |
| 8974 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 8975 | # which responds to the $file_magic_cmd with a given extended regex. |
| 8976 | # If you have `file' or equivalent on your system and you're not sure |
| 8977 | # whether `pass_all' will *always* work, you probably want this one. |
| 8978 | |
| 8979 | case $host_os in |
| 8980 | aix[4-9]*) |
| 8981 | lt_cv_deplibs_check_method=pass_all |
| 8982 | ;; |
| 8983 | |
| 8984 | beos*) |
| 8985 | lt_cv_deplibs_check_method=pass_all |
| 8986 | ;; |
| 8987 | |
| 8988 | bsdi[45]*) |
| 8989 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 8990 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 8991 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 8992 | ;; |
| 8993 | |
| 8994 | cygwin*) |
| 8995 | # func_win32_libid is a shell function defined in ltmain.sh |
| 8996 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 8997 | lt_cv_file_magic_cmd='func_win32_libid' |
| 8998 | ;; |
| 8999 | |
| 9000 | mingw* | pw32*) |
| 9001 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 9002 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 9003 | # unless we find 'file', for example because we are cross-compiling. |
| 9004 | if ( file / ) >/dev/null 2>&1; then |
| 9005 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 9006 | lt_cv_file_magic_cmd='func_win32_libid' |
| 9007 | else |
| 9008 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 9009 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 9010 | fi |
| 9011 | ;; |
| 9012 | |
| 9013 | cegcc) |
| 9014 | # use the weaker test based on 'objdump'. See mingw*. |
| 9015 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 9016 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 9017 | ;; |
| 9018 | |
| 9019 | darwin* | rhapsody*) |
| 9020 | lt_cv_deplibs_check_method=pass_all |
| 9021 | ;; |
| 9022 | |
| 9023 | freebsd* | dragonfly*) |
| 9024 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 9025 | case $host_cpu in |
| 9026 | i*86 ) |
| 9027 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 9028 | # Let's accept both of them until this is cleared up. |
| 9029 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 9030 | lt_cv_file_magic_cmd=/usr/bin/file |
| 9031 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 9032 | ;; |
| 9033 | esac |
| 9034 | else |
| 9035 | lt_cv_deplibs_check_method=pass_all |
| 9036 | fi |
| 9037 | ;; |
| 9038 | |
| 9039 | gnu*) |
| 9040 | lt_cv_deplibs_check_method=pass_all |
| 9041 | ;; |
| 9042 | |
| 9043 | hpux10.20* | hpux11*) |
| 9044 | lt_cv_file_magic_cmd=/usr/bin/file |
| 9045 | case $host_cpu in |
| 9046 | ia64*) |
| 9047 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 9048 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 9049 | ;; |
| 9050 | hppa*64*) |
| 9051 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
| 9052 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 9053 | ;; |
| 9054 | *) |
| 9055 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 9056 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 9057 | ;; |
| 9058 | esac |
| 9059 | ;; |
| 9060 | |
| 9061 | interix[3-9]*) |
| 9062 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 9063 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 9064 | ;; |
| 9065 | |
| 9066 | irix5* | irix6* | nonstopux*) |
| 9067 | case $LD in |
| 9068 | *-32|*"-32 ") libmagic=32-bit;; |
| 9069 | *-n32|*"-n32 ") libmagic=N32;; |
| 9070 | *-64|*"-64 ") libmagic=64-bit;; |
| 9071 | *) libmagic=never-match;; |
| 9072 | esac |
| 9073 | lt_cv_deplibs_check_method=pass_all |
| 9074 | ;; |
| 9075 | |
| 9076 | # This must be Linux ELF. |
| 9077 | linux* | k*bsd*-gnu) |
| 9078 | lt_cv_deplibs_check_method=pass_all |
| 9079 | ;; |
| 9080 | |
| 9081 | netbsd*) |
| 9082 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 9083 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 9084 | else |
| 9085 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 9086 | fi |
| 9087 | ;; |
| 9088 | |
| 9089 | newos6*) |
| 9090 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 9091 | lt_cv_file_magic_cmd=/usr/bin/file |
| 9092 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 9093 | ;; |
| 9094 | |
| 9095 | *nto* | *qnx*) |
| 9096 | lt_cv_deplibs_check_method=pass_all |
| 9097 | ;; |
| 9098 | |
| 9099 | openbsd*) |
| 9100 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9101 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 9102 | else |
| 9103 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 9104 | fi |
| 9105 | ;; |
| 9106 | |
| 9107 | osf3* | osf4* | osf5*) |
| 9108 | lt_cv_deplibs_check_method=pass_all |
| 9109 | ;; |
| 9110 | |
| 9111 | rdos*) |
| 9112 | lt_cv_deplibs_check_method=pass_all |
| 9113 | ;; |
| 9114 | |
| 9115 | solaris*) |
| 9116 | lt_cv_deplibs_check_method=pass_all |
| 9117 | ;; |
| 9118 | |
| 9119 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9120 | lt_cv_deplibs_check_method=pass_all |
| 9121 | ;; |
| 9122 | |
| 9123 | sysv4 | sysv4.3*) |
| 9124 | case $host_vendor in |
| 9125 | motorola) |
| 9126 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
| 9127 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 9128 | ;; |
| 9129 | ncr) |
| 9130 | lt_cv_deplibs_check_method=pass_all |
| 9131 | ;; |
| 9132 | sequent) |
| 9133 | lt_cv_file_magic_cmd='/bin/file' |
| 9134 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 9135 | ;; |
| 9136 | sni) |
| 9137 | lt_cv_file_magic_cmd='/bin/file' |
| 9138 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 9139 | lt_cv_file_magic_test_file=/lib/libc.so |
| 9140 | ;; |
| 9141 | siemens) |
| 9142 | lt_cv_deplibs_check_method=pass_all |
| 9143 | ;; |
| 9144 | pc) |
| 9145 | lt_cv_deplibs_check_method=pass_all |
| 9146 | ;; |
| 9147 | esac |
| 9148 | ;; |
| 9149 | |
| 9150 | tpf*) |
| 9151 | lt_cv_deplibs_check_method=pass_all |
| 9152 | ;; |
| 9153 | esac |
| 9154 | |
| 9155 | fi |
| 9156 | { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 9157 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
| 9158 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 9159 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 9160 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 9161 | |
| 9162 | |
| 9163 | |
| 9164 | |
| 9165 | |
| 9166 | |
| 9167 | |
| 9168 | |
| 9169 | |
| 9170 | |
| 9171 | |
| 9172 | |
| 9173 | if test -n "$ac_tool_prefix"; then |
| 9174 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 9175 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 9176 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9177 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9178 | if test "${ac_cv_prog_AR+set}" = set; then |
| 9179 | $as_echo_n "(cached) " >&6 |
| 9180 | else |
| 9181 | if test -n "$AR"; then |
| 9182 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 9183 | else |
| 9184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9185 | for as_dir in $PATH |
| 9186 | do |
| 9187 | IFS=$as_save_IFS |
| 9188 | test -z "$as_dir" && as_dir=. |
| 9189 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9190 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9191 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 9192 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9193 | break 2 |
| 9194 | fi |
| 9195 | done |
| 9196 | done |
| 9197 | IFS=$as_save_IFS |
| 9198 | |
| 9199 | fi |
| 9200 | fi |
| 9201 | AR=$ac_cv_prog_AR |
| 9202 | if test -n "$AR"; then |
| 9203 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 |
| 9204 | $as_echo "$AR" >&6; } |
| 9205 | else |
| 9206 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9207 | $as_echo "no" >&6; } |
| 9208 | fi |
| 9209 | |
| 9210 | |
| 9211 | fi |
| 9212 | if test -z "$ac_cv_prog_AR"; then |
| 9213 | ac_ct_AR=$AR |
| 9214 | # Extract the first word of "ar", so it can be a program name with args. |
| 9215 | set dummy ar; ac_word=$2 |
| 9216 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9217 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9218 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 9219 | $as_echo_n "(cached) " >&6 |
| 9220 | else |
| 9221 | if test -n "$ac_ct_AR"; then |
| 9222 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 9223 | else |
| 9224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9225 | for as_dir in $PATH |
| 9226 | do |
| 9227 | IFS=$as_save_IFS |
| 9228 | test -z "$as_dir" && as_dir=. |
| 9229 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9230 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9231 | ac_cv_prog_ac_ct_AR="ar" |
| 9232 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9233 | break 2 |
| 9234 | fi |
| 9235 | done |
| 9236 | done |
| 9237 | IFS=$as_save_IFS |
| 9238 | |
| 9239 | fi |
| 9240 | fi |
| 9241 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 9242 | if test -n "$ac_ct_AR"; then |
| 9243 | { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 9244 | $as_echo "$ac_ct_AR" >&6; } |
| 9245 | else |
| 9246 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9247 | $as_echo "no" >&6; } |
| 9248 | fi |
| 9249 | |
| 9250 | if test "x$ac_ct_AR" = x; then |
| 9251 | AR="false" |
| 9252 | else |
| 9253 | case $cross_compiling:$ac_tool_warned in |
| 9254 | yes:) |
| 9255 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9256 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9257 | ac_tool_warned=yes ;; |
| 9258 | esac |
| 9259 | AR=$ac_ct_AR |
| 9260 | fi |
| 9261 | else |
| 9262 | AR="$ac_cv_prog_AR" |
| 9263 | fi |
| 9264 | |
| 9265 | test -z "$AR" && AR=ar |
| 9266 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 9267 | |
| 9268 | |
| 9269 | |
| 9270 | |
| 9271 | |
| 9272 | |
| 9273 | |
| 9274 | |
| 9275 | |
| 9276 | |
| 9277 | |
| 9278 | if test -n "$ac_tool_prefix"; then |
| 9279 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 9280 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 9281 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9282 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9283 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 9284 | $as_echo_n "(cached) " >&6 |
| 9285 | else |
| 9286 | if test -n "$STRIP"; then |
| 9287 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 9288 | else |
| 9289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9290 | for as_dir in $PATH |
| 9291 | do |
| 9292 | IFS=$as_save_IFS |
| 9293 | test -z "$as_dir" && as_dir=. |
| 9294 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9295 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9296 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 9297 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9298 | break 2 |
| 9299 | fi |
| 9300 | done |
| 9301 | done |
| 9302 | IFS=$as_save_IFS |
| 9303 | |
| 9304 | fi |
| 9305 | fi |
| 9306 | STRIP=$ac_cv_prog_STRIP |
| 9307 | if test -n "$STRIP"; then |
| 9308 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 9309 | $as_echo "$STRIP" >&6; } |
| 9310 | else |
| 9311 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9312 | $as_echo "no" >&6; } |
| 9313 | fi |
| 9314 | |
| 9315 | |
| 9316 | fi |
| 9317 | if test -z "$ac_cv_prog_STRIP"; then |
| 9318 | ac_ct_STRIP=$STRIP |
| 9319 | # Extract the first word of "strip", so it can be a program name with args. |
| 9320 | set dummy strip; ac_word=$2 |
| 9321 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9322 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9323 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 9324 | $as_echo_n "(cached) " >&6 |
| 9325 | else |
| 9326 | if test -n "$ac_ct_STRIP"; then |
| 9327 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 9328 | else |
| 9329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9330 | for as_dir in $PATH |
| 9331 | do |
| 9332 | IFS=$as_save_IFS |
| 9333 | test -z "$as_dir" && as_dir=. |
| 9334 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9335 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9336 | ac_cv_prog_ac_ct_STRIP="strip" |
| 9337 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9338 | break 2 |
| 9339 | fi |
| 9340 | done |
| 9341 | done |
| 9342 | IFS=$as_save_IFS |
| 9343 | |
| 9344 | fi |
| 9345 | fi |
| 9346 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 9347 | if test -n "$ac_ct_STRIP"; then |
| 9348 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 9349 | $as_echo "$ac_ct_STRIP" >&6; } |
| 9350 | else |
| 9351 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9352 | $as_echo "no" >&6; } |
| 9353 | fi |
| 9354 | |
| 9355 | if test "x$ac_ct_STRIP" = x; then |
| 9356 | STRIP=":" |
| 9357 | else |
| 9358 | case $cross_compiling:$ac_tool_warned in |
| 9359 | yes:) |
| 9360 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9361 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9362 | ac_tool_warned=yes ;; |
| 9363 | esac |
| 9364 | STRIP=$ac_ct_STRIP |
| 9365 | fi |
| 9366 | else |
| 9367 | STRIP="$ac_cv_prog_STRIP" |
| 9368 | fi |
| 9369 | |
| 9370 | test -z "$STRIP" && STRIP=: |
| 9371 | |
| 9372 | |
| 9373 | |
| 9374 | |
| 9375 | |
| 9376 | |
| 9377 | if test -n "$ac_tool_prefix"; then |
| 9378 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 9379 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 9380 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9381 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9382 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 9383 | $as_echo_n "(cached) " >&6 |
| 9384 | else |
| 9385 | if test -n "$RANLIB"; then |
| 9386 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 9387 | else |
| 9388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9389 | for as_dir in $PATH |
| 9390 | do |
| 9391 | IFS=$as_save_IFS |
| 9392 | test -z "$as_dir" && as_dir=. |
| 9393 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9394 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9395 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 9396 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9397 | break 2 |
| 9398 | fi |
| 9399 | done |
| 9400 | done |
| 9401 | IFS=$as_save_IFS |
| 9402 | |
| 9403 | fi |
| 9404 | fi |
| 9405 | RANLIB=$ac_cv_prog_RANLIB |
| 9406 | if test -n "$RANLIB"; then |
| 9407 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 9408 | $as_echo "$RANLIB" >&6; } |
| 9409 | else |
| 9410 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9411 | $as_echo "no" >&6; } |
| 9412 | fi |
| 9413 | |
| 9414 | |
| 9415 | fi |
| 9416 | if test -z "$ac_cv_prog_RANLIB"; then |
| 9417 | ac_ct_RANLIB=$RANLIB |
| 9418 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 9419 | set dummy ranlib; ac_word=$2 |
| 9420 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9421 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9422 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 9423 | $as_echo_n "(cached) " >&6 |
| 9424 | else |
| 9425 | if test -n "$ac_ct_RANLIB"; then |
| 9426 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 9427 | else |
| 9428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9429 | for as_dir in $PATH |
| 9430 | do |
| 9431 | IFS=$as_save_IFS |
| 9432 | test -z "$as_dir" && as_dir=. |
| 9433 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9434 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9435 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 9436 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9437 | break 2 |
| 9438 | fi |
| 9439 | done |
| 9440 | done |
| 9441 | IFS=$as_save_IFS |
| 9442 | |
| 9443 | fi |
| 9444 | fi |
| 9445 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 9446 | if test -n "$ac_ct_RANLIB"; then |
| 9447 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 9448 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 9449 | else |
| 9450 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 9451 | $as_echo "no" >&6; } |
| 9452 | fi |
| 9453 | |
| 9454 | if test "x$ac_ct_RANLIB" = x; then |
| 9455 | RANLIB=":" |
| 9456 | else |
| 9457 | case $cross_compiling:$ac_tool_warned in |
| 9458 | yes:) |
| 9459 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9460 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9461 | ac_tool_warned=yes ;; |
| 9462 | esac |
| 9463 | RANLIB=$ac_ct_RANLIB |
| 9464 | fi |
| 9465 | else |
| 9466 | RANLIB="$ac_cv_prog_RANLIB" |
| 9467 | fi |
| 9468 | |
| 9469 | test -z "$RANLIB" && RANLIB=: |
| 9470 | |
| 9471 | |
| 9472 | |
| 9473 | |
| 9474 | |
| 9475 | |
| 9476 | # Determine commands to create old-style static archives. |
| 9477 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 9478 | old_postinstall_cmds='chmod 644 $oldlib' |
| 9479 | old_postuninstall_cmds= |
| 9480 | |
| 9481 | if test -n "$RANLIB"; then |
| 9482 | case $host_os in |
| 9483 | openbsd*) |
| 9484 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 9485 | ;; |
| 9486 | *) |
| 9487 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 9488 | ;; |
| 9489 | esac |
| 9490 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 9491 | fi |
| 9492 | |
| 9493 | |
| 9494 | |
| 9495 | |
| 9496 | |
| 9497 | |
| 9498 | |
| 9499 | |
| 9500 | |
| 9501 | |
| 9502 | |
| 9503 | |
| 9504 | |
| 9505 | |
| 9506 | |
| 9507 | |
| 9508 | |
| 9509 | |
| 9510 | |
| 9511 | |
| 9512 | |
| 9513 | |
| 9514 | |
| 9515 | |
| 9516 | |
| 9517 | |
| 9518 | |
| 9519 | |
| 9520 | |
| 9521 | |
| 9522 | |
| 9523 | |
| 9524 | |
| 9525 | |
| 9526 | # If no C compiler was specified, use CC. |
| 9527 | LTCC=${LTCC-"$CC"} |
| 9528 | |
| 9529 | # If no C compiler flags were specified, use CFLAGS. |
| 9530 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 9531 | |
| 9532 | # Allow CC to be a program name with arguments. |
| 9533 | compiler=$CC |
| 9534 | |
| 9535 | |
| 9536 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 9537 | { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9538 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| 9539 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9540 | $as_echo_n "(cached) " >&6 |
| 9541 | else |
| 9542 | |
| 9543 | # These are sane defaults that work on at least a few old systems. |
| 9544 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9545 | |
| 9546 | # Character class describing NM global symbol codes. |
| 9547 | symcode='[BCDEGRST]' |
| 9548 | |
| 9549 | # Regexp to match symbols that can be accessed directly from C. |
| 9550 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9551 | |
| 9552 | # Define system-specific variables. |
| 9553 | case $host_os in |
| 9554 | aix*) |
| 9555 | symcode='[BCDT]' |
| 9556 | ;; |
| 9557 | cygwin* | mingw* | pw32* | cegcc*) |
| 9558 | symcode='[ABCDGISTW]' |
| 9559 | ;; |
| 9560 | hpux*) |
| 9561 | if test "$host_cpu" = ia64; then |
| 9562 | symcode='[ABCDEGRST]' |
| 9563 | fi |
| 9564 | ;; |
| 9565 | irix* | nonstopux*) |
| 9566 | symcode='[BCDEGRST]' |
| 9567 | ;; |
| 9568 | osf*) |
| 9569 | symcode='[BCDEGQRST]' |
| 9570 | ;; |
| 9571 | solaris*) |
| 9572 | symcode='[BDRT]' |
| 9573 | ;; |
| 9574 | sco3.2v5*) |
| 9575 | symcode='[DT]' |
| 9576 | ;; |
| 9577 | sysv4.2uw2*) |
| 9578 | symcode='[DT]' |
| 9579 | ;; |
| 9580 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9581 | symcode='[ABDT]' |
| 9582 | ;; |
| 9583 | sysv4) |
| 9584 | symcode='[DFNSTU]' |
| 9585 | ;; |
| 9586 | esac |
| 9587 | |
| 9588 | # If we're using GNU nm, then use its standard symbol codes. |
| 9589 | case `$NM -V 2>&1` in |
| 9590 | *GNU* | *'with BFD'*) |
| 9591 | symcode='[ABCDGIRSTW]' ;; |
| 9592 | esac |
| 9593 | |
| 9594 | # Transform an extracted symbol line into a proper C declaration. |
| 9595 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 9596 | # so use this general approach. |
| 9597 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9598 | |
| 9599 | # Transform an extracted symbol line into symbol name and symbol address |
| 9600 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 9601 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
| 9602 | |
| 9603 | # Handle CRLF in mingw tool chain |
| 9604 | opt_cr= |
| 9605 | case $build_os in |
| 9606 | mingw*) |
| 9607 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9608 | ;; |
| 9609 | esac |
| 9610 | |
| 9611 | # Try without a prefix underscore, then with it. |
| 9612 | for ac_symprfx in "" "_"; do |
| 9613 | |
| 9614 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9615 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9616 | |
| 9617 | # Write the raw and C identifiers. |
| 9618 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 9619 | # Fake it for dumpbin and say T for any non-static function |
| 9620 | # and D for any global variable. |
| 9621 | # Also find C++ and __fastcall symbols from MSVC++, |
| 9622 | # which start with @ or ?. |
| 9623 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 9624 | " {last_section=section; section=\$ 3};"\ |
| 9625 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 9626 | " \$ 0!~/External *\|/{next};"\ |
| 9627 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 9628 | " {if(hide[section]) next};"\ |
| 9629 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 9630 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 9631 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 9632 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 9633 | " ' prfx=^$ac_symprfx" |
| 9634 | else |
| 9635 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 9636 | fi |
| 9637 | |
| 9638 | # Check to see that the pipe works correctly. |
| 9639 | pipe_works=no |
| 9640 | |
| 9641 | rm -f conftest* |
| 9642 | cat > conftest.$ac_ext <<_LT_EOF |
| 9643 | #ifdef __cplusplus |
| 9644 | extern "C" { |
| 9645 | #endif |
| 9646 | char nm_test_var; |
| 9647 | void nm_test_func(void); |
| 9648 | void nm_test_func(void){} |
| 9649 | #ifdef __cplusplus |
| 9650 | } |
| 9651 | #endif |
| 9652 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9653 | _LT_EOF |
| 9654 | |
| 9655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9656 | (eval $ac_compile) 2>&5 |
| 9657 | ac_status=$? |
| 9658 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9659 | (exit $ac_status); }; then |
| 9660 | # Now try to grab the symbols. |
| 9661 | nlist=conftest.nm |
| 9662 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 9663 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9664 | ac_status=$? |
| 9665 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9666 | (exit $ac_status); } && test -s "$nlist"; then |
| 9667 | # Try sorting and uniquifying the output. |
| 9668 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9669 | mv -f "$nlist"T "$nlist" |
| 9670 | else |
| 9671 | rm -f "$nlist"T |
| 9672 | fi |
| 9673 | |
| 9674 | # Make sure that we snagged all the symbols we need. |
| 9675 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 9676 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 9677 | cat <<_LT_EOF > conftest.$ac_ext |
| 9678 | #ifdef __cplusplus |
| 9679 | extern "C" { |
| 9680 | #endif |
| 9681 | |
| 9682 | _LT_EOF |
| 9683 | # Now generate the symbol file. |
| 9684 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 9685 | |
| 9686 | cat <<_LT_EOF >> conftest.$ac_ext |
| 9687 | |
| 9688 | /* The mapping between symbol names and symbols. */ |
| 9689 | const struct { |
| 9690 | const char *name; |
| 9691 | void *address; |
| 9692 | } |
| 9693 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 9694 | { |
| 9695 | { "@PROGRAM@", (void *) 0 }, |
| 9696 | _LT_EOF |
| 9697 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 9698 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 9699 | {0, (void *) 0} |
| 9700 | }; |
| 9701 | |
| 9702 | /* This works around a problem in FreeBSD linker */ |
| 9703 | #ifdef FREEBSD_WORKAROUND |
| 9704 | static const void *lt_preloaded_setup() { |
| 9705 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 9706 | } |
| 9707 | #endif |
| 9708 | |
| 9709 | #ifdef __cplusplus |
| 9710 | } |
| 9711 | #endif |
| 9712 | _LT_EOF |
| 9713 | # Now try linking the two files. |
| 9714 | mv conftest.$ac_objext conftstm.$ac_objext |
| 9715 | lt_save_LIBS="$LIBS" |
| 9716 | lt_save_CFLAGS="$CFLAGS" |
| 9717 | LIBS="conftstm.$ac_objext" |
| 9718 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 9719 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9720 | (eval $ac_link) 2>&5 |
| 9721 | ac_status=$? |
| 9722 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9723 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 9724 | pipe_works=yes |
| 9725 | fi |
| 9726 | LIBS="$lt_save_LIBS" |
| 9727 | CFLAGS="$lt_save_CFLAGS" |
| 9728 | else |
| 9729 | echo "cannot find nm_test_func in $nlist" >&5 |
| 9730 | fi |
| 9731 | else |
| 9732 | echo "cannot find nm_test_var in $nlist" >&5 |
| 9733 | fi |
| 9734 | else |
| 9735 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9736 | fi |
| 9737 | else |
| 9738 | echo "$progname: failed program was:" >&5 |
| 9739 | cat conftest.$ac_ext >&5 |
| 9740 | fi |
| 9741 | rm -rf conftest* conftst* |
| 9742 | |
| 9743 | # Do not use the global_symbol_pipe unless it works. |
| 9744 | if test "$pipe_works" = yes; then |
| 9745 | break |
| 9746 | else |
| 9747 | lt_cv_sys_global_symbol_pipe= |
| 9748 | fi |
| 9749 | done |
| 9750 | |
| 9751 | fi |
| 9752 | |
| 9753 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9754 | lt_cv_sys_global_symbol_to_cdecl= |
| 9755 | fi |
| 9756 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 9757 | { $as_echo "$as_me:$LINENO: result: failed" >&5 |
| 9758 | $as_echo "failed" >&6; } |
| 9759 | else |
| 9760 | { $as_echo "$as_me:$LINENO: result: ok" >&5 |
| 9761 | $as_echo "ok" >&6; } |
| 9762 | fi |
| 9763 | |
| 9764 | |
| 9765 | |
| 9766 | |
| 9767 | |
| 9768 | |
| 9769 | |
| 9770 | |
| 9771 | |
| 9772 | |
| 9773 | |
| 9774 | |
| 9775 | |
| 9776 | |
| 9777 | |
| 9778 | |
| 9779 | |
| 9780 | |
| 9781 | |
| 9782 | |
| 9783 | |
| 9784 | |
| 9785 | # Check whether --enable-libtool-lock was given. |
| 9786 | if test "${enable_libtool_lock+set}" = set; then |
| 9787 | enableval=$enable_libtool_lock; |
| 9788 | fi |
| 9789 | |
| 9790 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 9791 | |
| 9792 | # Some flags need to be propagated to the compiler or linker for good |
| 9793 | # libtool support. |
| 9794 | case $host in |
| 9795 | ia64-*-hpux*) |
| 9796 | # Find out which ABI we are using. |
| 9797 | echo 'int i;' > conftest.$ac_ext |
| 9798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9799 | (eval $ac_compile) 2>&5 |
| 9800 | ac_status=$? |
| 9801 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9802 | (exit $ac_status); }; then |
| 9803 | case `/usr/bin/file conftest.$ac_objext` in |
| 9804 | *ELF-32*) |
| 9805 | HPUX_IA64_MODE="32" |
| 9806 | ;; |
| 9807 | *ELF-64*) |
| 9808 | HPUX_IA64_MODE="64" |
| 9809 | ;; |
| 9810 | esac |
| 9811 | fi |
| 9812 | rm -rf conftest* |
| 9813 | ;; |
| 9814 | *-*-irix6*) |
| 9815 | # Find out which ABI we are using. |
| 9816 | echo '#line 9816 "configure"' > conftest.$ac_ext |
| 9817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9818 | (eval $ac_compile) 2>&5 |
| 9819 | ac_status=$? |
| 9820 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9821 | (exit $ac_status); }; then |
| 9822 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9823 | case `/usr/bin/file conftest.$ac_objext` in |
| 9824 | *32-bit*) |
| 9825 | LD="${LD-ld} -melf32bsmip" |
| 9826 | ;; |
| 9827 | *N32*) |
| 9828 | LD="${LD-ld} -melf32bmipn32" |
| 9829 | ;; |
| 9830 | *64-bit*) |
| 9831 | LD="${LD-ld} -melf64bmip" |
| 9832 | ;; |
| 9833 | esac |
| 9834 | else |
| 9835 | case `/usr/bin/file conftest.$ac_objext` in |
| 9836 | *32-bit*) |
| 9837 | LD="${LD-ld} -32" |
| 9838 | ;; |
| 9839 | *N32*) |
| 9840 | LD="${LD-ld} -n32" |
| 9841 | ;; |
| 9842 | *64-bit*) |
| 9843 | LD="${LD-ld} -64" |
| 9844 | ;; |
| 9845 | esac |
| 9846 | fi |
| 9847 | fi |
| 9848 | rm -rf conftest* |
| 9849 | ;; |
| 9850 | |
| 9851 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 9852 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 9853 | # Find out which ABI we are using. |
| 9854 | echo 'int i;' > conftest.$ac_ext |
| 9855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9856 | (eval $ac_compile) 2>&5 |
| 9857 | ac_status=$? |
| 9858 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9859 | (exit $ac_status); }; then |
| 9860 | case `/usr/bin/file conftest.o` in |
| 9861 | *32-bit*) |
| 9862 | case $host in |
| 9863 | x86_64-*kfreebsd*-gnu) |
| 9864 | LD="${LD-ld} -m elf_i386_fbsd" |
| 9865 | ;; |
| 9866 | x86_64-*linux*) |
| 9867 | LD="${LD-ld} -m elf_i386" |
| 9868 | ;; |
| 9869 | ppc64-*linux*|powerpc64-*linux*) |
| 9870 | LD="${LD-ld} -m elf32ppclinux" |
| 9871 | ;; |
| 9872 | s390x-*linux*) |
| 9873 | LD="${LD-ld} -m elf_s390" |
| 9874 | ;; |
| 9875 | sparc64-*linux*) |
| 9876 | LD="${LD-ld} -m elf32_sparc" |
| 9877 | ;; |
| 9878 | esac |
| 9879 | ;; |
| 9880 | *64-bit*) |
| 9881 | case $host in |
| 9882 | x86_64-*kfreebsd*-gnu) |
| 9883 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 9884 | ;; |
| 9885 | x86_64-*linux*) |
| 9886 | LD="${LD-ld} -m elf_x86_64" |
| 9887 | ;; |
| 9888 | ppc*-*linux*|powerpc*-*linux*) |
| 9889 | LD="${LD-ld} -m elf64ppc" |
| 9890 | ;; |
| 9891 | s390*-*linux*|s390*-*tpf*) |
| 9892 | LD="${LD-ld} -m elf64_s390" |
| 9893 | ;; |
| 9894 | sparc*-*linux*) |
| 9895 | LD="${LD-ld} -m elf64_sparc" |
| 9896 | ;; |
| 9897 | esac |
| 9898 | ;; |
| 9899 | esac |
| 9900 | fi |
| 9901 | rm -rf conftest* |
| 9902 | ;; |
| 9903 | |
| 9904 | *-*-sco3.2v5*) |
| 9905 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 9906 | SAVE_CFLAGS="$CFLAGS" |
| 9907 | CFLAGS="$CFLAGS -belf" |
| 9908 | { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 9909 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 9910 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 9911 | $as_echo_n "(cached) " >&6 |
| 9912 | else |
| 9913 | ac_ext=c |
| 9914 | ac_cpp='$CPP $CPPFLAGS' |
| 9915 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9916 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9917 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9918 | |
| 9919 | cat >conftest.$ac_ext <<_ACEOF |
| 9920 | /* confdefs.h. */ |
| 9921 | _ACEOF |
| 9922 | cat confdefs.h >>conftest.$ac_ext |
| 9923 | cat >>conftest.$ac_ext <<_ACEOF |
| 9924 | /* end confdefs.h. */ |
| 9925 | |
| 9926 | int |
| 9927 | main () |
| 9928 | { |
| 9929 | |
| 9930 | ; |
| 9931 | return 0; |
| 9932 | } |
| 9933 | _ACEOF |
| 9934 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9935 | if { (ac_try="$ac_link" |
| 9936 | case "(($ac_try" in |
| 9937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9938 | *) ac_try_echo=$ac_try;; |
| 9939 | esac |
| 9940 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9941 | $as_echo "$ac_try_echo") >&5 |
| 9942 | (eval "$ac_link") 2>conftest.er1 |
| 9943 | ac_status=$? |
| 9944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9945 | rm -f conftest.er1 |
| 9946 | cat conftest.err >&5 |
| 9947 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9948 | (exit $ac_status); } && { |
| 9949 | test -z "$ac_c_werror_flag" || |
| 9950 | test ! -s conftest.err |
| 9951 | } && test -s conftest$ac_exeext && { |
| 9952 | test "$cross_compiling" = yes || |
| 9953 | $as_test_x conftest$ac_exeext |
| 9954 | }; then |
| 9955 | lt_cv_cc_needs_belf=yes |
| 9956 | else |
| 9957 | $as_echo "$as_me: failed program was:" >&5 |
| 9958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9959 | |
| 9960 | lt_cv_cc_needs_belf=no |
| 9961 | fi |
| 9962 | |
| 9963 | rm -rf conftest.dSYM |
| 9964 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 9965 | conftest$ac_exeext conftest.$ac_ext |
| 9966 | ac_ext=c |
| 9967 | ac_cpp='$CPP $CPPFLAGS' |
| 9968 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9969 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9970 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9971 | |
| 9972 | fi |
| 9973 | { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 9974 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 9975 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 9976 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 9977 | CFLAGS="$SAVE_CFLAGS" |
| 9978 | fi |
| 9979 | ;; |
| 9980 | sparc*-*solaris*) |
| 9981 | # Find out which ABI we are using. |
| 9982 | echo 'int i;' > conftest.$ac_ext |
| 9983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9984 | (eval $ac_compile) 2>&5 |
| 9985 | ac_status=$? |
| 9986 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9987 | (exit $ac_status); }; then |
| 9988 | case `/usr/bin/file conftest.o` in |
| 9989 | *64-bit*) |
| 9990 | case $lt_cv_prog_gnu_ld in |
| 9991 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 9992 | *) |
| 9993 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 9994 | LD="${LD-ld} -64" |
| 9995 | fi |
| 9996 | ;; |
| 9997 | esac |
| 9998 | ;; |
| 9999 | esac |
| 10000 | fi |
| 10001 | rm -rf conftest* |
| 10002 | ;; |
| 10003 | esac |
| 10004 | |
| 10005 | need_locks="$enable_libtool_lock" |
| 10006 | |
| 10007 | |
| 10008 | case $host_os in |
| 10009 | rhapsody* | darwin*) |
| 10010 | if test -n "$ac_tool_prefix"; then |
| 10011 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 10012 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 10013 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10014 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10015 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then |
| 10016 | $as_echo_n "(cached) " >&6 |
| 10017 | else |
| 10018 | if test -n "$DSYMUTIL"; then |
| 10019 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 10020 | else |
| 10021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10022 | for as_dir in $PATH |
| 10023 | do |
| 10024 | IFS=$as_save_IFS |
| 10025 | test -z "$as_dir" && as_dir=. |
| 10026 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10027 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10028 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 10029 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10030 | break 2 |
| 10031 | fi |
| 10032 | done |
| 10033 | done |
| 10034 | IFS=$as_save_IFS |
| 10035 | |
| 10036 | fi |
| 10037 | fi |
| 10038 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 10039 | if test -n "$DSYMUTIL"; then |
| 10040 | { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 |
| 10041 | $as_echo "$DSYMUTIL" >&6; } |
| 10042 | else |
| 10043 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10044 | $as_echo "no" >&6; } |
| 10045 | fi |
| 10046 | |
| 10047 | |
| 10048 | fi |
| 10049 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 10050 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 10051 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 10052 | set dummy dsymutil; ac_word=$2 |
| 10053 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10054 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10055 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then |
| 10056 | $as_echo_n "(cached) " >&6 |
| 10057 | else |
| 10058 | if test -n "$ac_ct_DSYMUTIL"; then |
| 10059 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 10060 | else |
| 10061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10062 | for as_dir in $PATH |
| 10063 | do |
| 10064 | IFS=$as_save_IFS |
| 10065 | test -z "$as_dir" && as_dir=. |
| 10066 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10067 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10068 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 10069 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10070 | break 2 |
| 10071 | fi |
| 10072 | done |
| 10073 | done |
| 10074 | IFS=$as_save_IFS |
| 10075 | |
| 10076 | fi |
| 10077 | fi |
| 10078 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 10079 | if test -n "$ac_ct_DSYMUTIL"; then |
| 10080 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 |
| 10081 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 10082 | else |
| 10083 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10084 | $as_echo "no" >&6; } |
| 10085 | fi |
| 10086 | |
| 10087 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 10088 | DSYMUTIL=":" |
| 10089 | else |
| 10090 | case $cross_compiling:$ac_tool_warned in |
| 10091 | yes:) |
| 10092 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10093 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10094 | ac_tool_warned=yes ;; |
| 10095 | esac |
| 10096 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 10097 | fi |
| 10098 | else |
| 10099 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 10100 | fi |
| 10101 | |
| 10102 | if test -n "$ac_tool_prefix"; then |
| 10103 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 10104 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 10105 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10106 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10107 | if test "${ac_cv_prog_NMEDIT+set}" = set; then |
| 10108 | $as_echo_n "(cached) " >&6 |
| 10109 | else |
| 10110 | if test -n "$NMEDIT"; then |
| 10111 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 10112 | else |
| 10113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10114 | for as_dir in $PATH |
| 10115 | do |
| 10116 | IFS=$as_save_IFS |
| 10117 | test -z "$as_dir" && as_dir=. |
| 10118 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10119 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10120 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 10121 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10122 | break 2 |
| 10123 | fi |
| 10124 | done |
| 10125 | done |
| 10126 | IFS=$as_save_IFS |
| 10127 | |
| 10128 | fi |
| 10129 | fi |
| 10130 | NMEDIT=$ac_cv_prog_NMEDIT |
| 10131 | if test -n "$NMEDIT"; then |
| 10132 | { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 |
| 10133 | $as_echo "$NMEDIT" >&6; } |
| 10134 | else |
| 10135 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10136 | $as_echo "no" >&6; } |
| 10137 | fi |
| 10138 | |
| 10139 | |
| 10140 | fi |
| 10141 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 10142 | ac_ct_NMEDIT=$NMEDIT |
| 10143 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 10144 | set dummy nmedit; ac_word=$2 |
| 10145 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10146 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10147 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then |
| 10148 | $as_echo_n "(cached) " >&6 |
| 10149 | else |
| 10150 | if test -n "$ac_ct_NMEDIT"; then |
| 10151 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 10152 | else |
| 10153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10154 | for as_dir in $PATH |
| 10155 | do |
| 10156 | IFS=$as_save_IFS |
| 10157 | test -z "$as_dir" && as_dir=. |
| 10158 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10159 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10160 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 10161 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10162 | break 2 |
| 10163 | fi |
| 10164 | done |
| 10165 | done |
| 10166 | IFS=$as_save_IFS |
| 10167 | |
| 10168 | fi |
| 10169 | fi |
| 10170 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 10171 | if test -n "$ac_ct_NMEDIT"; then |
| 10172 | { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 |
| 10173 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 10174 | else |
| 10175 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10176 | $as_echo "no" >&6; } |
| 10177 | fi |
| 10178 | |
| 10179 | if test "x$ac_ct_NMEDIT" = x; then |
| 10180 | NMEDIT=":" |
| 10181 | else |
| 10182 | case $cross_compiling:$ac_tool_warned in |
| 10183 | yes:) |
| 10184 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10185 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10186 | ac_tool_warned=yes ;; |
| 10187 | esac |
| 10188 | NMEDIT=$ac_ct_NMEDIT |
| 10189 | fi |
| 10190 | else |
| 10191 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 10192 | fi |
| 10193 | |
| 10194 | if test -n "$ac_tool_prefix"; then |
| 10195 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 10196 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 10197 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10198 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10199 | if test "${ac_cv_prog_LIPO+set}" = set; then |
| 10200 | $as_echo_n "(cached) " >&6 |
| 10201 | else |
| 10202 | if test -n "$LIPO"; then |
| 10203 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 10204 | else |
| 10205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10206 | for as_dir in $PATH |
| 10207 | do |
| 10208 | IFS=$as_save_IFS |
| 10209 | test -z "$as_dir" && as_dir=. |
| 10210 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10211 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10212 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 10213 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10214 | break 2 |
| 10215 | fi |
| 10216 | done |
| 10217 | done |
| 10218 | IFS=$as_save_IFS |
| 10219 | |
| 10220 | fi |
| 10221 | fi |
| 10222 | LIPO=$ac_cv_prog_LIPO |
| 10223 | if test -n "$LIPO"; then |
| 10224 | { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 |
| 10225 | $as_echo "$LIPO" >&6; } |
| 10226 | else |
| 10227 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10228 | $as_echo "no" >&6; } |
| 10229 | fi |
| 10230 | |
| 10231 | |
| 10232 | fi |
| 10233 | if test -z "$ac_cv_prog_LIPO"; then |
| 10234 | ac_ct_LIPO=$LIPO |
| 10235 | # Extract the first word of "lipo", so it can be a program name with args. |
| 10236 | set dummy lipo; ac_word=$2 |
| 10237 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10238 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10239 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then |
| 10240 | $as_echo_n "(cached) " >&6 |
| 10241 | else |
| 10242 | if test -n "$ac_ct_LIPO"; then |
| 10243 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 10244 | else |
| 10245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10246 | for as_dir in $PATH |
| 10247 | do |
| 10248 | IFS=$as_save_IFS |
| 10249 | test -z "$as_dir" && as_dir=. |
| 10250 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10251 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10252 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 10253 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10254 | break 2 |
| 10255 | fi |
| 10256 | done |
| 10257 | done |
| 10258 | IFS=$as_save_IFS |
| 10259 | |
| 10260 | fi |
| 10261 | fi |
| 10262 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 10263 | if test -n "$ac_ct_LIPO"; then |
| 10264 | { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 |
| 10265 | $as_echo "$ac_ct_LIPO" >&6; } |
| 10266 | else |
| 10267 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10268 | $as_echo "no" >&6; } |
| 10269 | fi |
| 10270 | |
| 10271 | if test "x$ac_ct_LIPO" = x; then |
| 10272 | LIPO=":" |
| 10273 | else |
| 10274 | case $cross_compiling:$ac_tool_warned in |
| 10275 | yes:) |
| 10276 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10277 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10278 | ac_tool_warned=yes ;; |
| 10279 | esac |
| 10280 | LIPO=$ac_ct_LIPO |
| 10281 | fi |
| 10282 | else |
| 10283 | LIPO="$ac_cv_prog_LIPO" |
| 10284 | fi |
| 10285 | |
| 10286 | if test -n "$ac_tool_prefix"; then |
| 10287 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 10288 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 10289 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10290 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10291 | if test "${ac_cv_prog_OTOOL+set}" = set; then |
| 10292 | $as_echo_n "(cached) " >&6 |
| 10293 | else |
| 10294 | if test -n "$OTOOL"; then |
| 10295 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 10296 | else |
| 10297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10298 | for as_dir in $PATH |
| 10299 | do |
| 10300 | IFS=$as_save_IFS |
| 10301 | test -z "$as_dir" && as_dir=. |
| 10302 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10303 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10304 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 10305 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10306 | break 2 |
| 10307 | fi |
| 10308 | done |
| 10309 | done |
| 10310 | IFS=$as_save_IFS |
| 10311 | |
| 10312 | fi |
| 10313 | fi |
| 10314 | OTOOL=$ac_cv_prog_OTOOL |
| 10315 | if test -n "$OTOOL"; then |
| 10316 | { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 |
| 10317 | $as_echo "$OTOOL" >&6; } |
| 10318 | else |
| 10319 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10320 | $as_echo "no" >&6; } |
| 10321 | fi |
| 10322 | |
| 10323 | |
| 10324 | fi |
| 10325 | if test -z "$ac_cv_prog_OTOOL"; then |
| 10326 | ac_ct_OTOOL=$OTOOL |
| 10327 | # Extract the first word of "otool", so it can be a program name with args. |
| 10328 | set dummy otool; ac_word=$2 |
| 10329 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10330 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10331 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then |
| 10332 | $as_echo_n "(cached) " >&6 |
| 10333 | else |
| 10334 | if test -n "$ac_ct_OTOOL"; then |
| 10335 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 10336 | else |
| 10337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10338 | for as_dir in $PATH |
| 10339 | do |
| 10340 | IFS=$as_save_IFS |
| 10341 | test -z "$as_dir" && as_dir=. |
| 10342 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10343 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10344 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 10345 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10346 | break 2 |
| 10347 | fi |
| 10348 | done |
| 10349 | done |
| 10350 | IFS=$as_save_IFS |
| 10351 | |
| 10352 | fi |
| 10353 | fi |
| 10354 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 10355 | if test -n "$ac_ct_OTOOL"; then |
| 10356 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 |
| 10357 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 10358 | else |
| 10359 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10360 | $as_echo "no" >&6; } |
| 10361 | fi |
| 10362 | |
| 10363 | if test "x$ac_ct_OTOOL" = x; then |
| 10364 | OTOOL=":" |
| 10365 | else |
| 10366 | case $cross_compiling:$ac_tool_warned in |
| 10367 | yes:) |
| 10368 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10369 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10370 | ac_tool_warned=yes ;; |
| 10371 | esac |
| 10372 | OTOOL=$ac_ct_OTOOL |
| 10373 | fi |
| 10374 | else |
| 10375 | OTOOL="$ac_cv_prog_OTOOL" |
| 10376 | fi |
| 10377 | |
| 10378 | if test -n "$ac_tool_prefix"; then |
| 10379 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 10380 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 10381 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10382 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10383 | if test "${ac_cv_prog_OTOOL64+set}" = set; then |
| 10384 | $as_echo_n "(cached) " >&6 |
| 10385 | else |
| 10386 | if test -n "$OTOOL64"; then |
| 10387 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 10388 | else |
| 10389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10390 | for as_dir in $PATH |
| 10391 | do |
| 10392 | IFS=$as_save_IFS |
| 10393 | test -z "$as_dir" && as_dir=. |
| 10394 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10395 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10396 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 10397 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10398 | break 2 |
| 10399 | fi |
| 10400 | done |
| 10401 | done |
| 10402 | IFS=$as_save_IFS |
| 10403 | |
| 10404 | fi |
| 10405 | fi |
| 10406 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 10407 | if test -n "$OTOOL64"; then |
| 10408 | { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 |
| 10409 | $as_echo "$OTOOL64" >&6; } |
| 10410 | else |
| 10411 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10412 | $as_echo "no" >&6; } |
| 10413 | fi |
| 10414 | |
| 10415 | |
| 10416 | fi |
| 10417 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 10418 | ac_ct_OTOOL64=$OTOOL64 |
| 10419 | # Extract the first word of "otool64", so it can be a program name with args. |
| 10420 | set dummy otool64; ac_word=$2 |
| 10421 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10422 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10423 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then |
| 10424 | $as_echo_n "(cached) " >&6 |
| 10425 | else |
| 10426 | if test -n "$ac_ct_OTOOL64"; then |
| 10427 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 10428 | else |
| 10429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10430 | for as_dir in $PATH |
| 10431 | do |
| 10432 | IFS=$as_save_IFS |
| 10433 | test -z "$as_dir" && as_dir=. |
| 10434 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10435 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10436 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 10437 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10438 | break 2 |
| 10439 | fi |
| 10440 | done |
| 10441 | done |
| 10442 | IFS=$as_save_IFS |
| 10443 | |
| 10444 | fi |
| 10445 | fi |
| 10446 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 10447 | if test -n "$ac_ct_OTOOL64"; then |
| 10448 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 |
| 10449 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 10450 | else |
| 10451 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10452 | $as_echo "no" >&6; } |
| 10453 | fi |
| 10454 | |
| 10455 | if test "x$ac_ct_OTOOL64" = x; then |
| 10456 | OTOOL64=":" |
| 10457 | else |
| 10458 | case $cross_compiling:$ac_tool_warned in |
| 10459 | yes:) |
| 10460 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10461 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10462 | ac_tool_warned=yes ;; |
| 10463 | esac |
| 10464 | OTOOL64=$ac_ct_OTOOL64 |
| 10465 | fi |
| 10466 | else |
| 10467 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 10468 | fi |
| 10469 | |
| 10470 | |
| 10471 | |
| 10472 | |
| 10473 | |
| 10474 | |
| 10475 | |
| 10476 | |
| 10477 | |
| 10478 | |
| 10479 | |
| 10480 | |
| 10481 | |
| 10482 | |
| 10483 | |
| 10484 | |
| 10485 | |
| 10486 | |
| 10487 | |
| 10488 | |
| 10489 | |
| 10490 | |
| 10491 | |
| 10492 | |
| 10493 | |
| 10494 | |
| 10495 | |
| 10496 | { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 |
| 10497 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| 10498 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then |
| 10499 | $as_echo_n "(cached) " >&6 |
| 10500 | else |
| 10501 | lt_cv_apple_cc_single_mod=no |
| 10502 | if test -z "${LT_MULTI_MODULE}"; then |
| 10503 | # By default we will add the -single_module flag. You can override |
| 10504 | # by either setting the environment variable LT_MULTI_MODULE |
| 10505 | # non-empty at configure time, or by adding -multi_module to the |
| 10506 | # link flags. |
| 10507 | rm -rf libconftest.dylib* |
| 10508 | echo "int foo(void){return 1;}" > conftest.c |
| 10509 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 10510 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 10511 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 10512 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 10513 | _lt_result=$? |
| 10514 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 10515 | lt_cv_apple_cc_single_mod=yes |
| 10516 | else |
| 10517 | cat conftest.err >&5 |
| 10518 | fi |
| 10519 | rm -rf libconftest.dylib* |
| 10520 | rm -f conftest.* |
| 10521 | fi |
| 10522 | fi |
| 10523 | { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 |
| 10524 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 10525 | { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 |
| 10526 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| 10527 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then |
| 10528 | $as_echo_n "(cached) " >&6 |
| 10529 | else |
| 10530 | lt_cv_ld_exported_symbols_list=no |
| 10531 | save_LDFLAGS=$LDFLAGS |
| 10532 | echo "_main" > conftest.sym |
| 10533 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 10534 | cat >conftest.$ac_ext <<_ACEOF |
| 10535 | /* confdefs.h. */ |
| 10536 | _ACEOF |
| 10537 | cat confdefs.h >>conftest.$ac_ext |
| 10538 | cat >>conftest.$ac_ext <<_ACEOF |
| 10539 | /* end confdefs.h. */ |
| 10540 | |
| 10541 | int |
| 10542 | main () |
| 10543 | { |
| 10544 | |
| 10545 | ; |
| 10546 | return 0; |
| 10547 | } |
| 10548 | _ACEOF |
| 10549 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10550 | if { (ac_try="$ac_link" |
| 10551 | case "(($ac_try" in |
| 10552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10553 | *) ac_try_echo=$ac_try;; |
| 10554 | esac |
| 10555 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10556 | $as_echo "$ac_try_echo") >&5 |
| 10557 | (eval "$ac_link") 2>conftest.er1 |
| 10558 | ac_status=$? |
| 10559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10560 | rm -f conftest.er1 |
| 10561 | cat conftest.err >&5 |
| 10562 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10563 | (exit $ac_status); } && { |
| 10564 | test -z "$ac_c_werror_flag" || |
| 10565 | test ! -s conftest.err |
| 10566 | } && test -s conftest$ac_exeext && { |
| 10567 | test "$cross_compiling" = yes || |
| 10568 | $as_test_x conftest$ac_exeext |
| 10569 | }; then |
| 10570 | lt_cv_ld_exported_symbols_list=yes |
| 10571 | else |
| 10572 | $as_echo "$as_me: failed program was:" >&5 |
| 10573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10574 | |
| 10575 | lt_cv_ld_exported_symbols_list=no |
| 10576 | fi |
| 10577 | |
| 10578 | rm -rf conftest.dSYM |
| 10579 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10580 | conftest$ac_exeext conftest.$ac_ext |
| 10581 | LDFLAGS="$save_LDFLAGS" |
| 10582 | |
| 10583 | fi |
| 10584 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 10585 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 10586 | case $host_os in |
| 10587 | rhapsody* | darwin1.[012]) |
| 10588 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 10589 | darwin1.*) |
| 10590 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 10591 | darwin*) # darwin 5.x on |
| 10592 | # if running on 10.5 or later, the deployment target defaults |
| 10593 | # to the OS version, if on x86, and 10.4, the deployment |
| 10594 | # target defaults to 10.4. Don't you love it? |
| 10595 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 10596 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 10597 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 10598 | 10.[012]*) |
| 10599 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 10600 | 10.*) |
| 10601 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 10602 | esac |
| 10603 | ;; |
| 10604 | esac |
| 10605 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 10606 | _lt_dar_single_mod='$single_module' |
| 10607 | fi |
| 10608 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 10609 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 10610 | else |
| 10611 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 10612 | fi |
| 10613 | if test "$DSYMUTIL" != ":"; then |
| 10614 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 10615 | else |
| 10616 | _lt_dsymutil= |
| 10617 | fi |
| 10618 | ;; |
| 10619 | esac |
| 10620 | |
| 10621 | |
| 10622 | for ac_header in dlfcn.h |
| 10623 | do |
| 10624 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10625 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10626 | $as_echo_n "checking for $ac_header... " >&6; } |
| 10627 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10628 | $as_echo_n "(cached) " >&6 |
| 10629 | else |
| 10630 | cat >conftest.$ac_ext <<_ACEOF |
| 10631 | /* confdefs.h. */ |
| 10632 | _ACEOF |
| 10633 | cat confdefs.h >>conftest.$ac_ext |
| 10634 | cat >>conftest.$ac_ext <<_ACEOF |
| 10635 | /* end confdefs.h. */ |
| 10636 | $ac_includes_default |
| 10637 | |
| 10638 | #include <$ac_header> |
| 10639 | _ACEOF |
| 10640 | rm -f conftest.$ac_objext |
| 10641 | if { (ac_try="$ac_compile" |
| 10642 | case "(($ac_try" in |
| 10643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10644 | *) ac_try_echo=$ac_try;; |
| 10645 | esac |
| 10646 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10647 | $as_echo "$ac_try_echo") >&5 |
| 10648 | (eval "$ac_compile") 2>conftest.er1 |
| 10649 | ac_status=$? |
| 10650 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10651 | rm -f conftest.er1 |
| 10652 | cat conftest.err >&5 |
| 10653 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10654 | (exit $ac_status); } && { |
| 10655 | test -z "$ac_c_werror_flag" || |
| 10656 | test ! -s conftest.err |
| 10657 | } && test -s conftest.$ac_objext; then |
| 10658 | eval "$as_ac_Header=yes" |
| 10659 | else |
| 10660 | $as_echo "$as_me: failed program was:" >&5 |
| 10661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10662 | |
| 10663 | eval "$as_ac_Header=no" |
| 10664 | fi |
| 10665 | |
| 10666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10667 | fi |
| 10668 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 10669 | $as_echo "$as_val"'` |
| 10670 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10671 | $as_echo "$ac_res" >&6; } |
| 10672 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 10673 | $as_echo "$as_val"'` |
| 10674 | if test "x$as_val" = x""yes; then |
| 10675 | cat >>confdefs.h <<_ACEOF |
| 10676 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10677 | _ACEOF |
| 10678 | |
| 10679 | fi |
| 10680 | |
| 10681 | done |
| 10682 | |
| 10683 | |
| 10684 | |
| 10685 | ac_ext=cpp |
| 10686 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 10687 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10688 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10689 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 10690 | if test -z "$CXX"; then |
| 10691 | if test -n "$CCC"; then |
| 10692 | CXX=$CCC |
| 10693 | else |
| 10694 | if test -n "$ac_tool_prefix"; then |
| 10695 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 10696 | do |
| 10697 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 10698 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 10699 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10700 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10701 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 10702 | $as_echo_n "(cached) " >&6 |
| 10703 | else |
| 10704 | if test -n "$CXX"; then |
| 10705 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 10706 | else |
| 10707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10708 | for as_dir in $PATH |
| 10709 | do |
| 10710 | IFS=$as_save_IFS |
| 10711 | test -z "$as_dir" && as_dir=. |
| 10712 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10713 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10714 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 10715 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10716 | break 2 |
| 10717 | fi |
| 10718 | done |
| 10719 | done |
| 10720 | IFS=$as_save_IFS |
| 10721 | |
| 10722 | fi |
| 10723 | fi |
| 10724 | CXX=$ac_cv_prog_CXX |
| 10725 | if test -n "$CXX"; then |
| 10726 | { $as_echo "$as_me:$LINENO: result: $CXX" >&5 |
| 10727 | $as_echo "$CXX" >&6; } |
| 10728 | else |
| 10729 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10730 | $as_echo "no" >&6; } |
| 10731 | fi |
| 10732 | |
| 10733 | |
| 10734 | test -n "$CXX" && break |
| 10735 | done |
| 10736 | fi |
| 10737 | if test -z "$CXX"; then |
| 10738 | ac_ct_CXX=$CXX |
| 10739 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 10740 | do |
| 10741 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10742 | set dummy $ac_prog; ac_word=$2 |
| 10743 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10744 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10745 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 10746 | $as_echo_n "(cached) " >&6 |
| 10747 | else |
| 10748 | if test -n "$ac_ct_CXX"; then |
| 10749 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 10750 | else |
| 10751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10752 | for as_dir in $PATH |
| 10753 | do |
| 10754 | IFS=$as_save_IFS |
| 10755 | test -z "$as_dir" && as_dir=. |
| 10756 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10757 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10758 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 10759 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10760 | break 2 |
| 10761 | fi |
| 10762 | done |
| 10763 | done |
| 10764 | IFS=$as_save_IFS |
| 10765 | |
| 10766 | fi |
| 10767 | fi |
| 10768 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 10769 | if test -n "$ac_ct_CXX"; then |
| 10770 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 10771 | $as_echo "$ac_ct_CXX" >&6; } |
| 10772 | else |
| 10773 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 10774 | $as_echo "no" >&6; } |
| 10775 | fi |
| 10776 | |
| 10777 | |
| 10778 | test -n "$ac_ct_CXX" && break |
| 10779 | done |
| 10780 | |
| 10781 | if test "x$ac_ct_CXX" = x; then |
| 10782 | CXX="g++" |
| 10783 | else |
| 10784 | case $cross_compiling:$ac_tool_warned in |
| 10785 | yes:) |
| 10786 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10787 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10788 | ac_tool_warned=yes ;; |
| 10789 | esac |
| 10790 | CXX=$ac_ct_CXX |
| 10791 | fi |
| 10792 | fi |
| 10793 | |
| 10794 | fi |
| 10795 | fi |
| 10796 | # Provide some information about the compiler. |
| 10797 | $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 10798 | set X $ac_compile |
| 10799 | ac_compiler=$2 |
| 10800 | { (ac_try="$ac_compiler --version >&5" |
| 10801 | case "(($ac_try" in |
| 10802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10803 | *) ac_try_echo=$ac_try;; |
| 10804 | esac |
| 10805 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10806 | $as_echo "$ac_try_echo") >&5 |
| 10807 | (eval "$ac_compiler --version >&5") 2>&5 |
| 10808 | ac_status=$? |
| 10809 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10810 | (exit $ac_status); } |
| 10811 | { (ac_try="$ac_compiler -v >&5" |
| 10812 | case "(($ac_try" in |
| 10813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10814 | *) ac_try_echo=$ac_try;; |
| 10815 | esac |
| 10816 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10817 | $as_echo "$ac_try_echo") >&5 |
| 10818 | (eval "$ac_compiler -v >&5") 2>&5 |
| 10819 | ac_status=$? |
| 10820 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10821 | (exit $ac_status); } |
| 10822 | { (ac_try="$ac_compiler -V >&5" |
| 10823 | case "(($ac_try" in |
| 10824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10825 | *) ac_try_echo=$ac_try;; |
| 10826 | esac |
| 10827 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10828 | $as_echo "$ac_try_echo") >&5 |
| 10829 | (eval "$ac_compiler -V >&5") 2>&5 |
| 10830 | ac_status=$? |
| 10831 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10832 | (exit $ac_status); } |
| 10833 | |
| 10834 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 10835 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 10836 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 10837 | $as_echo_n "(cached) " >&6 |
| 10838 | else |
| 10839 | cat >conftest.$ac_ext <<_ACEOF |
| 10840 | /* confdefs.h. */ |
| 10841 | _ACEOF |
| 10842 | cat confdefs.h >>conftest.$ac_ext |
| 10843 | cat >>conftest.$ac_ext <<_ACEOF |
| 10844 | /* end confdefs.h. */ |
| 10845 | |
| 10846 | int |
| 10847 | main () |
| 10848 | { |
| 10849 | #ifndef __GNUC__ |
| 10850 | choke me |
| 10851 | #endif |
| 10852 | |
| 10853 | ; |
| 10854 | return 0; |
| 10855 | } |
| 10856 | _ACEOF |
| 10857 | rm -f conftest.$ac_objext |
| 10858 | if { (ac_try="$ac_compile" |
| 10859 | case "(($ac_try" in |
| 10860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10861 | *) ac_try_echo=$ac_try;; |
| 10862 | esac |
| 10863 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10864 | $as_echo "$ac_try_echo") >&5 |
| 10865 | (eval "$ac_compile") 2>conftest.er1 |
| 10866 | ac_status=$? |
| 10867 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10868 | rm -f conftest.er1 |
| 10869 | cat conftest.err >&5 |
| 10870 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10871 | (exit $ac_status); } && { |
| 10872 | test -z "$ac_cxx_werror_flag" || |
| 10873 | test ! -s conftest.err |
| 10874 | } && test -s conftest.$ac_objext; then |
| 10875 | ac_compiler_gnu=yes |
| 10876 | else |
| 10877 | $as_echo "$as_me: failed program was:" >&5 |
| 10878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10879 | |
| 10880 | ac_compiler_gnu=no |
| 10881 | fi |
| 10882 | |
| 10883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10884 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 10885 | |
| 10886 | fi |
| 10887 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 10888 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 10889 | if test $ac_compiler_gnu = yes; then |
| 10890 | GXX=yes |
| 10891 | else |
| 10892 | GXX= |
| 10893 | fi |
| 10894 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 10895 | ac_save_CXXFLAGS=$CXXFLAGS |
| 10896 | { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 10897 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 10898 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 10899 | $as_echo_n "(cached) " >&6 |
| 10900 | else |
| 10901 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 10902 | ac_cxx_werror_flag=yes |
| 10903 | ac_cv_prog_cxx_g=no |
| 10904 | CXXFLAGS="-g" |
| 10905 | cat >conftest.$ac_ext <<_ACEOF |
| 10906 | /* confdefs.h. */ |
| 10907 | _ACEOF |
| 10908 | cat confdefs.h >>conftest.$ac_ext |
| 10909 | cat >>conftest.$ac_ext <<_ACEOF |
| 10910 | /* end confdefs.h. */ |
| 10911 | |
| 10912 | int |
| 10913 | main () |
| 10914 | { |
| 10915 | |
| 10916 | ; |
| 10917 | return 0; |
| 10918 | } |
| 10919 | _ACEOF |
| 10920 | rm -f conftest.$ac_objext |
| 10921 | if { (ac_try="$ac_compile" |
| 10922 | case "(($ac_try" in |
| 10923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10924 | *) ac_try_echo=$ac_try;; |
| 10925 | esac |
| 10926 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10927 | $as_echo "$ac_try_echo") >&5 |
| 10928 | (eval "$ac_compile") 2>conftest.er1 |
| 10929 | ac_status=$? |
| 10930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10931 | rm -f conftest.er1 |
| 10932 | cat conftest.err >&5 |
| 10933 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10934 | (exit $ac_status); } && { |
| 10935 | test -z "$ac_cxx_werror_flag" || |
| 10936 | test ! -s conftest.err |
| 10937 | } && test -s conftest.$ac_objext; then |
| 10938 | ac_cv_prog_cxx_g=yes |
| 10939 | else |
| 10940 | $as_echo "$as_me: failed program was:" >&5 |
| 10941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10942 | |
| 10943 | CXXFLAGS="" |
| 10944 | cat >conftest.$ac_ext <<_ACEOF |
| 10945 | /* confdefs.h. */ |
| 10946 | _ACEOF |
| 10947 | cat confdefs.h >>conftest.$ac_ext |
| 10948 | cat >>conftest.$ac_ext <<_ACEOF |
| 10949 | /* end confdefs.h. */ |
| 10950 | |
| 10951 | int |
| 10952 | main () |
| 10953 | { |
| 10954 | |
| 10955 | ; |
| 10956 | return 0; |
| 10957 | } |
| 10958 | _ACEOF |
| 10959 | rm -f conftest.$ac_objext |
| 10960 | if { (ac_try="$ac_compile" |
| 10961 | case "(($ac_try" in |
| 10962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10963 | *) ac_try_echo=$ac_try;; |
| 10964 | esac |
| 10965 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10966 | $as_echo "$ac_try_echo") >&5 |
| 10967 | (eval "$ac_compile") 2>conftest.er1 |
| 10968 | ac_status=$? |
| 10969 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10970 | rm -f conftest.er1 |
| 10971 | cat conftest.err >&5 |
| 10972 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10973 | (exit $ac_status); } && { |
| 10974 | test -z "$ac_cxx_werror_flag" || |
| 10975 | test ! -s conftest.err |
| 10976 | } && test -s conftest.$ac_objext; then |
| 10977 | : |
| 10978 | else |
| 10979 | $as_echo "$as_me: failed program was:" >&5 |
| 10980 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10981 | |
| 10982 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 10983 | CXXFLAGS="-g" |
| 10984 | cat >conftest.$ac_ext <<_ACEOF |
| 10985 | /* confdefs.h. */ |
| 10986 | _ACEOF |
| 10987 | cat confdefs.h >>conftest.$ac_ext |
| 10988 | cat >>conftest.$ac_ext <<_ACEOF |
| 10989 | /* end confdefs.h. */ |
| 10990 | |
| 10991 | int |
| 10992 | main () |
| 10993 | { |
| 10994 | |
| 10995 | ; |
| 10996 | return 0; |
| 10997 | } |
| 10998 | _ACEOF |
| 10999 | rm -f conftest.$ac_objext |
| 11000 | if { (ac_try="$ac_compile" |
| 11001 | case "(($ac_try" in |
| 11002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11003 | *) ac_try_echo=$ac_try;; |
| 11004 | esac |
| 11005 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11006 | $as_echo "$ac_try_echo") >&5 |
| 11007 | (eval "$ac_compile") 2>conftest.er1 |
| 11008 | ac_status=$? |
| 11009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11010 | rm -f conftest.er1 |
| 11011 | cat conftest.err >&5 |
| 11012 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11013 | (exit $ac_status); } && { |
| 11014 | test -z "$ac_cxx_werror_flag" || |
| 11015 | test ! -s conftest.err |
| 11016 | } && test -s conftest.$ac_objext; then |
| 11017 | ac_cv_prog_cxx_g=yes |
| 11018 | else |
| 11019 | $as_echo "$as_me: failed program was:" >&5 |
| 11020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11021 | |
| 11022 | |
| 11023 | fi |
| 11024 | |
| 11025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11026 | fi |
| 11027 | |
| 11028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11029 | fi |
| 11030 | |
| 11031 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11032 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 11033 | fi |
| 11034 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 11035 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 11036 | if test "$ac_test_CXXFLAGS" = set; then |
| 11037 | CXXFLAGS=$ac_save_CXXFLAGS |
| 11038 | elif test $ac_cv_prog_cxx_g = yes; then |
| 11039 | if test "$GXX" = yes; then |
| 11040 | CXXFLAGS="-g -O2" |
| 11041 | else |
| 11042 | CXXFLAGS="-g" |
| 11043 | fi |
| 11044 | else |
| 11045 | if test "$GXX" = yes; then |
| 11046 | CXXFLAGS="-O2" |
| 11047 | else |
| 11048 | CXXFLAGS= |
| 11049 | fi |
| 11050 | fi |
| 11051 | ac_ext=c |
| 11052 | ac_cpp='$CPP $CPPFLAGS' |
| 11053 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11054 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11055 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11056 | |
| 11057 | depcc="$CXX" am_compiler_list= |
| 11058 | |
| 11059 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 11060 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 11061 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 11062 | $as_echo_n "(cached) " >&6 |
| 11063 | else |
| 11064 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 11065 | # We make a subdir and do the tests there. Otherwise we can end up |
| 11066 | # making bogus files that we don't know about and never remove. For |
| 11067 | # instance it was reported that on HP-UX the gcc test will end up |
| 11068 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 11069 | # in D'. |
| 11070 | mkdir conftest.dir |
| 11071 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 11072 | # using a relative directory. |
| 11073 | cp "$am_depcomp" conftest.dir |
| 11074 | cd conftest.dir |
| 11075 | # We will build objects and dependencies in a subdirectory because |
| 11076 | # it helps to detect inapplicable dependency modes. For instance |
| 11077 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 11078 | # side effect of compilation, but ICC will put the dependencies in |
| 11079 | # the current directory while Tru64 will put them in the object |
| 11080 | # directory. |
| 11081 | mkdir sub |
| 11082 | |
| 11083 | am_cv_CXX_dependencies_compiler_type=none |
| 11084 | if test "$am_compiler_list" = ""; then |
| 11085 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 11086 | fi |
| 11087 | am__universal=false |
| 11088 | case " $depcc " in #( |
| 11089 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 11090 | esac |
| 11091 | |
| 11092 | for depmode in $am_compiler_list; do |
| 11093 | # Setup a source with many dependencies, because some compilers |
| 11094 | # like to wrap large dependency lists on column 80 (with \), and |
| 11095 | # we should not choose a depcomp mode which is confused by this. |
| 11096 | # |
| 11097 | # We need to recreate these files for each test, as the compiler may |
| 11098 | # overwrite some of them when testing with obscure command lines. |
| 11099 | # This happens at least with the AIX C compiler. |
| 11100 | : > sub/conftest.c |
| 11101 | for i in 1 2 3 4 5 6; do |
| 11102 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 11103 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 11104 | # Solaris 8's {/usr,}/bin/sh. |
| 11105 | touch sub/conftst$i.h |
| 11106 | done |
| 11107 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 11108 | |
| 11109 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 11110 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 11111 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 11112 | # versions had trouble with output in subdirs |
| 11113 | am__obj=sub/conftest.${OBJEXT-o} |
| 11114 | am__minus_obj="-o $am__obj" |
| 11115 | case $depmode in |
| 11116 | gcc) |
| 11117 | # This depmode causes a compiler race in universal mode. |
| 11118 | test "$am__universal" = false || continue |
| 11119 | ;; |
| 11120 | nosideeffect) |
| 11121 | # after this tag, mechanisms are not by side-effect, so they'll |
| 11122 | # only be used when explicitly requested |
| 11123 | if test "x$enable_dependency_tracking" = xyes; then |
| 11124 | continue |
| 11125 | else |
| 11126 | break |
| 11127 | fi |
| 11128 | ;; |
| 11129 | msvisualcpp | msvcmsys) |
| 11130 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 11131 | # not run yet. These depmodes are late enough in the game, and |
| 11132 | # so weak that their functioning should not be impacted. |
| 11133 | am__obj=conftest.${OBJEXT-o} |
| 11134 | am__minus_obj= |
| 11135 | ;; |
| 11136 | none) break ;; |
| 11137 | esac |
| 11138 | if depmode=$depmode \ |
| 11139 | source=sub/conftest.c object=$am__obj \ |
| 11140 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 11141 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 11142 | >/dev/null 2>conftest.err && |
| 11143 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 11144 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 11145 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 11146 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 11147 | # icc doesn't choke on unknown options, it will just issue warnings |
| 11148 | # or remarks (even with -Werror). So we grep stderr for any message |
| 11149 | # that says an option was ignored or not supported. |
| 11150 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 11151 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 11152 | # The diagnosis changed in icc 8.0: |
| 11153 | # icc: Command line remark: option '-MP' not supported |
| 11154 | if (grep 'ignoring option' conftest.err || |
| 11155 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 11156 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 11157 | break |
| 11158 | fi |
| 11159 | fi |
| 11160 | done |
| 11161 | |
| 11162 | cd .. |
| 11163 | rm -rf conftest.dir |
| 11164 | else |
| 11165 | am_cv_CXX_dependencies_compiler_type=none |
| 11166 | fi |
| 11167 | |
| 11168 | fi |
| 11169 | { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 11170 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 11171 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 11172 | |
| 11173 | if |
| 11174 | test "x$enable_dependency_tracking" != xno \ |
| 11175 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 11176 | am__fastdepCXX_TRUE= |
| 11177 | am__fastdepCXX_FALSE='#' |
| 11178 | else |
| 11179 | am__fastdepCXX_TRUE='#' |
| 11180 | am__fastdepCXX_FALSE= |
| 11181 | fi |
| 11182 | |
| 11183 | |
| 11184 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 11185 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 11186 | (test "X$CXX" != "Xg++"))) ; then |
| 11187 | ac_ext=cpp |
| 11188 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 11189 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11190 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11191 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 11192 | { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 11193 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 11194 | if test -z "$CXXCPP"; then |
| 11195 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 11196 | $as_echo_n "(cached) " >&6 |
| 11197 | else |
| 11198 | # Double quotes because CXXCPP needs to be expanded |
| 11199 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 11200 | do |
| 11201 | ac_preproc_ok=false |
| 11202 | for ac_cxx_preproc_warn_flag in '' yes |
| 11203 | do |
| 11204 | # Use a header file that comes with gcc, so configuring glibc |
| 11205 | # with a fresh cross-compiler works. |
| 11206 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11207 | # <limits.h> exists even on freestanding compilers. |
| 11208 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 11209 | # not just through cpp. "Syntax error" is here to catch this case. |
| 11210 | cat >conftest.$ac_ext <<_ACEOF |
| 11211 | /* confdefs.h. */ |
| 11212 | _ACEOF |
| 11213 | cat confdefs.h >>conftest.$ac_ext |
| 11214 | cat >>conftest.$ac_ext <<_ACEOF |
| 11215 | /* end confdefs.h. */ |
| 11216 | #ifdef __STDC__ |
| 11217 | # include <limits.h> |
| 11218 | #else |
| 11219 | # include <assert.h> |
| 11220 | #endif |
| 11221 | Syntax error |
| 11222 | _ACEOF |
| 11223 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11224 | case "(($ac_try" in |
| 11225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11226 | *) ac_try_echo=$ac_try;; |
| 11227 | esac |
| 11228 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11229 | $as_echo "$ac_try_echo") >&5 |
| 11230 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11231 | ac_status=$? |
| 11232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11233 | rm -f conftest.er1 |
| 11234 | cat conftest.err >&5 |
| 11235 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11236 | (exit $ac_status); } >/dev/null && { |
| 11237 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 11238 | test ! -s conftest.err |
| 11239 | }; then |
| 11240 | : |
| 11241 | else |
| 11242 | $as_echo "$as_me: failed program was:" >&5 |
| 11243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11244 | |
| 11245 | # Broken: fails on valid input. |
| 11246 | continue |
| 11247 | fi |
| 11248 | |
| 11249 | rm -f conftest.err conftest.$ac_ext |
| 11250 | |
| 11251 | # OK, works on sane cases. Now check whether nonexistent headers |
| 11252 | # can be detected and how. |
| 11253 | cat >conftest.$ac_ext <<_ACEOF |
| 11254 | /* confdefs.h. */ |
| 11255 | _ACEOF |
| 11256 | cat confdefs.h >>conftest.$ac_ext |
| 11257 | cat >>conftest.$ac_ext <<_ACEOF |
| 11258 | /* end confdefs.h. */ |
| 11259 | #include <ac_nonexistent.h> |
| 11260 | _ACEOF |
| 11261 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11262 | case "(($ac_try" in |
| 11263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11264 | *) ac_try_echo=$ac_try;; |
| 11265 | esac |
| 11266 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11267 | $as_echo "$ac_try_echo") >&5 |
| 11268 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11269 | ac_status=$? |
| 11270 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11271 | rm -f conftest.er1 |
| 11272 | cat conftest.err >&5 |
| 11273 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11274 | (exit $ac_status); } >/dev/null && { |
| 11275 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 11276 | test ! -s conftest.err |
| 11277 | }; then |
| 11278 | # Broken: success on invalid input. |
| 11279 | continue |
| 11280 | else |
| 11281 | $as_echo "$as_me: failed program was:" >&5 |
| 11282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11283 | |
| 11284 | # Passes both tests. |
| 11285 | ac_preproc_ok=: |
| 11286 | break |
| 11287 | fi |
| 11288 | |
| 11289 | rm -f conftest.err conftest.$ac_ext |
| 11290 | |
| 11291 | done |
| 11292 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 11293 | rm -f conftest.err conftest.$ac_ext |
| 11294 | if $ac_preproc_ok; then |
| 11295 | break |
| 11296 | fi |
| 11297 | |
| 11298 | done |
| 11299 | ac_cv_prog_CXXCPP=$CXXCPP |
| 11300 | |
| 11301 | fi |
| 11302 | CXXCPP=$ac_cv_prog_CXXCPP |
| 11303 | else |
| 11304 | ac_cv_prog_CXXCPP=$CXXCPP |
| 11305 | fi |
| 11306 | { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 11307 | $as_echo "$CXXCPP" >&6; } |
| 11308 | ac_preproc_ok=false |
| 11309 | for ac_cxx_preproc_warn_flag in '' yes |
| 11310 | do |
| 11311 | # Use a header file that comes with gcc, so configuring glibc |
| 11312 | # with a fresh cross-compiler works. |
| 11313 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11314 | # <limits.h> exists even on freestanding compilers. |
| 11315 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 11316 | # not just through cpp. "Syntax error" is here to catch this case. |
| 11317 | cat >conftest.$ac_ext <<_ACEOF |
| 11318 | /* confdefs.h. */ |
| 11319 | _ACEOF |
| 11320 | cat confdefs.h >>conftest.$ac_ext |
| 11321 | cat >>conftest.$ac_ext <<_ACEOF |
| 11322 | /* end confdefs.h. */ |
| 11323 | #ifdef __STDC__ |
| 11324 | # include <limits.h> |
| 11325 | #else |
| 11326 | # include <assert.h> |
| 11327 | #endif |
| 11328 | Syntax error |
| 11329 | _ACEOF |
| 11330 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11331 | case "(($ac_try" in |
| 11332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11333 | *) ac_try_echo=$ac_try;; |
| 11334 | esac |
| 11335 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11336 | $as_echo "$ac_try_echo") >&5 |
| 11337 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11338 | ac_status=$? |
| 11339 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11340 | rm -f conftest.er1 |
| 11341 | cat conftest.err >&5 |
| 11342 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11343 | (exit $ac_status); } >/dev/null && { |
| 11344 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 11345 | test ! -s conftest.err |
| 11346 | }; then |
| 11347 | : |
| 11348 | else |
| 11349 | $as_echo "$as_me: failed program was:" >&5 |
| 11350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11351 | |
| 11352 | # Broken: fails on valid input. |
| 11353 | continue |
| 11354 | fi |
| 11355 | |
| 11356 | rm -f conftest.err conftest.$ac_ext |
| 11357 | |
| 11358 | # OK, works on sane cases. Now check whether nonexistent headers |
| 11359 | # can be detected and how. |
| 11360 | cat >conftest.$ac_ext <<_ACEOF |
| 11361 | /* confdefs.h. */ |
| 11362 | _ACEOF |
| 11363 | cat confdefs.h >>conftest.$ac_ext |
| 11364 | cat >>conftest.$ac_ext <<_ACEOF |
| 11365 | /* end confdefs.h. */ |
| 11366 | #include <ac_nonexistent.h> |
| 11367 | _ACEOF |
| 11368 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11369 | case "(($ac_try" in |
| 11370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11371 | *) ac_try_echo=$ac_try;; |
| 11372 | esac |
| 11373 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11374 | $as_echo "$ac_try_echo") >&5 |
| 11375 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 11376 | ac_status=$? |
| 11377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11378 | rm -f conftest.er1 |
| 11379 | cat conftest.err >&5 |
| 11380 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11381 | (exit $ac_status); } >/dev/null && { |
| 11382 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 11383 | test ! -s conftest.err |
| 11384 | }; then |
| 11385 | # Broken: success on invalid input. |
| 11386 | continue |
| 11387 | else |
| 11388 | $as_echo "$as_me: failed program was:" >&5 |
| 11389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11390 | |
| 11391 | # Passes both tests. |
| 11392 | ac_preproc_ok=: |
| 11393 | break |
| 11394 | fi |
| 11395 | |
| 11396 | rm -f conftest.err conftest.$ac_ext |
| 11397 | |
| 11398 | done |
| 11399 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 11400 | rm -f conftest.err conftest.$ac_ext |
| 11401 | if $ac_preproc_ok; then |
| 11402 | : |
| 11403 | else |
| 11404 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 11405 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11406 | _lt_caught_CXX_error=yes; } |
| 11407 | fi |
| 11408 | |
| 11409 | ac_ext=c |
| 11410 | ac_cpp='$CPP $CPPFLAGS' |
| 11411 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11412 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11413 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11414 | |
| 11415 | else |
| 11416 | _lt_caught_CXX_error=yes |
| 11417 | fi |
| 11418 | |
| 11419 | |
| 11420 | |
| 11421 | |
| 11422 | |
| 11423 | # Set options |
| 11424 | enable_win32_dll=yes |
| 11425 | |
| 11426 | case $host in |
| 11427 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) |
| 11428 | if test -n "$ac_tool_prefix"; then |
| 11429 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
| 11430 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
| 11431 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11432 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11433 | if test "${ac_cv_prog_AS+set}" = set; then |
| 11434 | $as_echo_n "(cached) " >&6 |
| 11435 | else |
| 11436 | if test -n "$AS"; then |
| 11437 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 11438 | else |
| 11439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11440 | for as_dir in $PATH |
| 11441 | do |
| 11442 | IFS=$as_save_IFS |
| 11443 | test -z "$as_dir" && as_dir=. |
| 11444 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11445 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11446 | ac_cv_prog_AS="${ac_tool_prefix}as" |
| 11447 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11448 | break 2 |
| 11449 | fi |
| 11450 | done |
| 11451 | done |
| 11452 | IFS=$as_save_IFS |
| 11453 | |
| 11454 | fi |
| 11455 | fi |
| 11456 | AS=$ac_cv_prog_AS |
| 11457 | if test -n "$AS"; then |
| 11458 | { $as_echo "$as_me:$LINENO: result: $AS" >&5 |
| 11459 | $as_echo "$AS" >&6; } |
| 11460 | else |
| 11461 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11462 | $as_echo "no" >&6; } |
| 11463 | fi |
| 11464 | |
| 11465 | |
| 11466 | fi |
| 11467 | if test -z "$ac_cv_prog_AS"; then |
| 11468 | ac_ct_AS=$AS |
| 11469 | # Extract the first word of "as", so it can be a program name with args. |
| 11470 | set dummy as; ac_word=$2 |
| 11471 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11472 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11473 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then |
| 11474 | $as_echo_n "(cached) " >&6 |
| 11475 | else |
| 11476 | if test -n "$ac_ct_AS"; then |
| 11477 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 11478 | else |
| 11479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11480 | for as_dir in $PATH |
| 11481 | do |
| 11482 | IFS=$as_save_IFS |
| 11483 | test -z "$as_dir" && as_dir=. |
| 11484 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11485 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11486 | ac_cv_prog_ac_ct_AS="as" |
| 11487 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11488 | break 2 |
| 11489 | fi |
| 11490 | done |
| 11491 | done |
| 11492 | IFS=$as_save_IFS |
| 11493 | |
| 11494 | fi |
| 11495 | fi |
| 11496 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 11497 | if test -n "$ac_ct_AS"; then |
| 11498 | { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 |
| 11499 | $as_echo "$ac_ct_AS" >&6; } |
| 11500 | else |
| 11501 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11502 | $as_echo "no" >&6; } |
| 11503 | fi |
| 11504 | |
| 11505 | if test "x$ac_ct_AS" = x; then |
| 11506 | AS="false" |
| 11507 | else |
| 11508 | case $cross_compiling:$ac_tool_warned in |
| 11509 | yes:) |
| 11510 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11511 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11512 | ac_tool_warned=yes ;; |
| 11513 | esac |
| 11514 | AS=$ac_ct_AS |
| 11515 | fi |
| 11516 | else |
| 11517 | AS="$ac_cv_prog_AS" |
| 11518 | fi |
| 11519 | |
| 11520 | if test -n "$ac_tool_prefix"; then |
| 11521 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 11522 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 11523 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11524 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11525 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 11526 | $as_echo_n "(cached) " >&6 |
| 11527 | else |
| 11528 | if test -n "$DLLTOOL"; then |
| 11529 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 11530 | else |
| 11531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11532 | for as_dir in $PATH |
| 11533 | do |
| 11534 | IFS=$as_save_IFS |
| 11535 | test -z "$as_dir" && as_dir=. |
| 11536 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11537 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11538 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 11539 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11540 | break 2 |
| 11541 | fi |
| 11542 | done |
| 11543 | done |
| 11544 | IFS=$as_save_IFS |
| 11545 | |
| 11546 | fi |
| 11547 | fi |
| 11548 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 11549 | if test -n "$DLLTOOL"; then |
| 11550 | { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 11551 | $as_echo "$DLLTOOL" >&6; } |
| 11552 | else |
| 11553 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11554 | $as_echo "no" >&6; } |
| 11555 | fi |
| 11556 | |
| 11557 | |
| 11558 | fi |
| 11559 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 11560 | ac_ct_DLLTOOL=$DLLTOOL |
| 11561 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 11562 | set dummy dlltool; ac_word=$2 |
| 11563 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11564 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11565 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
| 11566 | $as_echo_n "(cached) " >&6 |
| 11567 | else |
| 11568 | if test -n "$ac_ct_DLLTOOL"; then |
| 11569 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 11570 | else |
| 11571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11572 | for as_dir in $PATH |
| 11573 | do |
| 11574 | IFS=$as_save_IFS |
| 11575 | test -z "$as_dir" && as_dir=. |
| 11576 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11577 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11578 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 11579 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11580 | break 2 |
| 11581 | fi |
| 11582 | done |
| 11583 | done |
| 11584 | IFS=$as_save_IFS |
| 11585 | |
| 11586 | fi |
| 11587 | fi |
| 11588 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 11589 | if test -n "$ac_ct_DLLTOOL"; then |
| 11590 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
| 11591 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 11592 | else |
| 11593 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11594 | $as_echo "no" >&6; } |
| 11595 | fi |
| 11596 | |
| 11597 | if test "x$ac_ct_DLLTOOL" = x; then |
| 11598 | DLLTOOL="false" |
| 11599 | else |
| 11600 | case $cross_compiling:$ac_tool_warned in |
| 11601 | yes:) |
| 11602 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11603 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11604 | ac_tool_warned=yes ;; |
| 11605 | esac |
| 11606 | DLLTOOL=$ac_ct_DLLTOOL |
| 11607 | fi |
| 11608 | else |
| 11609 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 11610 | fi |
| 11611 | |
| 11612 | if test -n "$ac_tool_prefix"; then |
| 11613 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 11614 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 11615 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11616 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11617 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
| 11618 | $as_echo_n "(cached) " >&6 |
| 11619 | else |
| 11620 | if test -n "$OBJDUMP"; then |
| 11621 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 11622 | else |
| 11623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11624 | for as_dir in $PATH |
| 11625 | do |
| 11626 | IFS=$as_save_IFS |
| 11627 | test -z "$as_dir" && as_dir=. |
| 11628 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11629 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11630 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 11631 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11632 | break 2 |
| 11633 | fi |
| 11634 | done |
| 11635 | done |
| 11636 | IFS=$as_save_IFS |
| 11637 | |
| 11638 | fi |
| 11639 | fi |
| 11640 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 11641 | if test -n "$OBJDUMP"; then |
| 11642 | { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
| 11643 | $as_echo "$OBJDUMP" >&6; } |
| 11644 | else |
| 11645 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11646 | $as_echo "no" >&6; } |
| 11647 | fi |
| 11648 | |
| 11649 | |
| 11650 | fi |
| 11651 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 11652 | ac_ct_OBJDUMP=$OBJDUMP |
| 11653 | # Extract the first word of "objdump", so it can be a program name with args. |
| 11654 | set dummy objdump; ac_word=$2 |
| 11655 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11656 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11657 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then |
| 11658 | $as_echo_n "(cached) " >&6 |
| 11659 | else |
| 11660 | if test -n "$ac_ct_OBJDUMP"; then |
| 11661 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 11662 | else |
| 11663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11664 | for as_dir in $PATH |
| 11665 | do |
| 11666 | IFS=$as_save_IFS |
| 11667 | test -z "$as_dir" && as_dir=. |
| 11668 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11669 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11670 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 11671 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11672 | break 2 |
| 11673 | fi |
| 11674 | done |
| 11675 | done |
| 11676 | IFS=$as_save_IFS |
| 11677 | |
| 11678 | fi |
| 11679 | fi |
| 11680 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 11681 | if test -n "$ac_ct_OBJDUMP"; then |
| 11682 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 |
| 11683 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 11684 | else |
| 11685 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 11686 | $as_echo "no" >&6; } |
| 11687 | fi |
| 11688 | |
| 11689 | if test "x$ac_ct_OBJDUMP" = x; then |
| 11690 | OBJDUMP="false" |
| 11691 | else |
| 11692 | case $cross_compiling:$ac_tool_warned in |
| 11693 | yes:) |
| 11694 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11695 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11696 | ac_tool_warned=yes ;; |
| 11697 | esac |
| 11698 | OBJDUMP=$ac_ct_OBJDUMP |
| 11699 | fi |
| 11700 | else |
| 11701 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 11702 | fi |
| 11703 | |
| 11704 | ;; |
| 11705 | esac |
| 11706 | |
| 11707 | test -z "$AS" && AS=as |
| 11708 | |
| 11709 | |
| 11710 | |
| 11711 | |
| 11712 | |
| 11713 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 11714 | |
| 11715 | |
| 11716 | |
| 11717 | |
| 11718 | |
| 11719 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 11720 | |
| 11721 | |
| 11722 | |
| 11723 | |
| 11724 | |
| 11725 | |
| 11726 | |
| 11727 | |
| 11728 | |
| 11729 | # Check whether --enable-shared was given. |
| 11730 | if test "${enable_shared+set}" = set; then |
| 11731 | enableval=$enable_shared; p=${PACKAGE-default} |
| 11732 | case $enableval in |
| 11733 | yes) enable_shared=yes ;; |
| 11734 | no) enable_shared=no ;; |
| 11735 | *) |
| 11736 | enable_shared=no |
| 11737 | # Look at the argument we got. We use all the common list separators. |
| 11738 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 11739 | for pkg in $enableval; do |
| 11740 | IFS="$lt_save_ifs" |
| 11741 | if test "X$pkg" = "X$p"; then |
| 11742 | enable_shared=yes |
| 11743 | fi |
| 11744 | done |
| 11745 | IFS="$lt_save_ifs" |
| 11746 | ;; |
| 11747 | esac |
| 11748 | else |
| 11749 | enable_shared=yes |
| 11750 | fi |
| 11751 | |
| 11752 | |
| 11753 | |
| 11754 | |
| 11755 | |
| 11756 | |
| 11757 | |
| 11758 | |
| 11759 | |
| 11760 | # Check whether --enable-static was given. |
| 11761 | if test "${enable_static+set}" = set; then |
| 11762 | enableval=$enable_static; p=${PACKAGE-default} |
| 11763 | case $enableval in |
| 11764 | yes) enable_static=yes ;; |
| 11765 | no) enable_static=no ;; |
| 11766 | *) |
| 11767 | enable_static=no |
| 11768 | # Look at the argument we got. We use all the common list separators. |
| 11769 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 11770 | for pkg in $enableval; do |
| 11771 | IFS="$lt_save_ifs" |
| 11772 | if test "X$pkg" = "X$p"; then |
| 11773 | enable_static=yes |
| 11774 | fi |
| 11775 | done |
| 11776 | IFS="$lt_save_ifs" |
| 11777 | ;; |
| 11778 | esac |
| 11779 | else |
| 11780 | enable_static=yes |
| 11781 | fi |
| 11782 | |
| 11783 | |
| 11784 | |
| 11785 | |
| 11786 | |
| 11787 | |
| 11788 | |
| 11789 | |
| 11790 | |
| 11791 | |
| 11792 | # Check whether --with-pic was given. |
| 11793 | if test "${with_pic+set}" = set; then |
| 11794 | withval=$with_pic; pic_mode="$withval" |
| 11795 | else |
| 11796 | pic_mode=default |
| 11797 | fi |
| 11798 | |
| 11799 | |
| 11800 | test -z "$pic_mode" && pic_mode=default |
| 11801 | |
| 11802 | |
| 11803 | |
| 11804 | |
| 11805 | |
| 11806 | |
| 11807 | |
| 11808 | # Check whether --enable-fast-install was given. |
| 11809 | if test "${enable_fast_install+set}" = set; then |
| 11810 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 11811 | case $enableval in |
| 11812 | yes) enable_fast_install=yes ;; |
| 11813 | no) enable_fast_install=no ;; |
| 11814 | *) |
| 11815 | enable_fast_install=no |
| 11816 | # Look at the argument we got. We use all the common list separators. |
| 11817 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 11818 | for pkg in $enableval; do |
| 11819 | IFS="$lt_save_ifs" |
| 11820 | if test "X$pkg" = "X$p"; then |
| 11821 | enable_fast_install=yes |
| 11822 | fi |
| 11823 | done |
| 11824 | IFS="$lt_save_ifs" |
| 11825 | ;; |
| 11826 | esac |
| 11827 | else |
| 11828 | enable_fast_install=yes |
| 11829 | fi |
| 11830 | |
| 11831 | |
| 11832 | |
| 11833 | |
| 11834 | |
| 11835 | |
| 11836 | |
| 11837 | |
| 11838 | |
| 11839 | |
| 11840 | |
| 11841 | # This can be used to rebuild libtool when needed |
| 11842 | LIBTOOL_DEPS="$ltmain" |
| 11843 | |
| 11844 | # Always use our own libtool. |
| 11845 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 11846 | |
| 11847 | |
| 11848 | |
| 11849 | |
| 11850 | |
| 11851 | |
| 11852 | |
| 11853 | |
| 11854 | |
| 11855 | |
| 11856 | |
| 11857 | |
| 11858 | |
| 11859 | |
| 11860 | |
| 11861 | |
| 11862 | |
| 11863 | |
| 11864 | |
| 11865 | |
| 11866 | |
| 11867 | |
| 11868 | |
| 11869 | |
| 11870 | |
| 11871 | test -z "$LN_S" && LN_S="ln -s" |
| 11872 | |
| 11873 | |
| 11874 | |
| 11875 | |
| 11876 | |
| 11877 | |
| 11878 | |
| 11879 | |
| 11880 | |
| 11881 | |
| 11882 | |
| 11883 | |
| 11884 | |
| 11885 | |
| 11886 | if test -n "${ZSH_VERSION+set}" ; then |
| 11887 | setopt NO_GLOB_SUBST |
| 11888 | fi |
| 11889 | |
| 11890 | { $as_echo "$as_me:$LINENO: checking for objdir" >&5 |
| 11891 | $as_echo_n "checking for objdir... " >&6; } |
| 11892 | if test "${lt_cv_objdir+set}" = set; then |
| 11893 | $as_echo_n "(cached) " >&6 |
| 11894 | else |
| 11895 | rm -f .libs 2>/dev/null |
| 11896 | mkdir .libs 2>/dev/null |
| 11897 | if test -d .libs; then |
| 11898 | lt_cv_objdir=.libs |
| 11899 | else |
| 11900 | # MS-DOS does not allow filenames that begin with a dot. |
| 11901 | lt_cv_objdir=_libs |
| 11902 | fi |
| 11903 | rmdir .libs 2>/dev/null |
| 11904 | fi |
| 11905 | { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 11906 | $as_echo "$lt_cv_objdir" >&6; } |
| 11907 | objdir=$lt_cv_objdir |
| 11908 | |
| 11909 | |
| 11910 | |
| 11911 | |
| 11912 | |
| 11913 | cat >>confdefs.h <<_ACEOF |
| 11914 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 11915 | _ACEOF |
| 11916 | |
| 11917 | |
| 11918 | |
| 11919 | |
| 11920 | |
| 11921 | |
| 11922 | |
| 11923 | |
| 11924 | |
| 11925 | |
| 11926 | |
| 11927 | |
| 11928 | |
| 11929 | |
| 11930 | |
| 11931 | |
| 11932 | |
| 11933 | case $host_os in |
| 11934 | aix3*) |
| 11935 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 11936 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 11937 | # vanish in a puff of smoke. |
| 11938 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 11939 | COLLECT_NAMES= |
| 11940 | export COLLECT_NAMES |
| 11941 | fi |
| 11942 | ;; |
| 11943 | esac |
| 11944 | |
| 11945 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 11946 | # metacharacters that are still active within double-quoted strings. |
| 11947 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 11948 | |
| 11949 | # Same as above, but do not quote variable references. |
| 11950 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 11951 | |
| 11952 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 11953 | # double_quote_subst'ed string. |
| 11954 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 11955 | |
| 11956 | # Sed substitution to delay expansion of an escaped single quote. |
| 11957 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 11958 | |
| 11959 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 11960 | no_glob_subst='s/\*/\\\*/g' |
| 11961 | |
| 11962 | # Global variables: |
| 11963 | ofile=libtool |
| 11964 | can_build_shared=yes |
| 11965 | |
| 11966 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 11967 | # which needs '.lib'). |
| 11968 | libext=a |
| 11969 | |
| 11970 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 11971 | |
| 11972 | old_CC="$CC" |
| 11973 | old_CFLAGS="$CFLAGS" |
| 11974 | |
| 11975 | # Set sane defaults for various variables |
| 11976 | test -z "$CC" && CC=cc |
| 11977 | test -z "$LTCC" && LTCC=$CC |
| 11978 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 11979 | test -z "$LD" && LD=ld |
| 11980 | test -z "$ac_objext" && ac_objext=o |
| 11981 | |
| 11982 | for cc_temp in $compiler""; do |
| 11983 | case $cc_temp in |
| 11984 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 11985 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 11986 | \-*) ;; |
| 11987 | *) break;; |
| 11988 | esac |
| 11989 | done |
| 11990 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 11991 | |
| 11992 | |
| 11993 | # Only perform the check for file, if the check method requires it |
| 11994 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 11995 | case $deplibs_check_method in |
| 11996 | file_magic*) |
| 11997 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 11998 | { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 11999 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| 12000 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 12001 | $as_echo_n "(cached) " >&6 |
| 12002 | else |
| 12003 | case $MAGIC_CMD in |
| 12004 | [\\/*] | ?:[\\/]*) |
| 12005 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 12006 | ;; |
| 12007 | *) |
| 12008 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 12009 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12010 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 12011 | for ac_dir in $ac_dummy; do |
| 12012 | IFS="$lt_save_ifs" |
| 12013 | test -z "$ac_dir" && ac_dir=. |
| 12014 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 12015 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 12016 | if test -n "$file_magic_test_file"; then |
| 12017 | case $deplibs_check_method in |
| 12018 | "file_magic "*) |
| 12019 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 12020 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 12021 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 12022 | $EGREP "$file_magic_regex" > /dev/null; then |
| 12023 | : |
| 12024 | else |
| 12025 | cat <<_LT_EOF 1>&2 |
| 12026 | |
| 12027 | *** Warning: the command libtool uses to detect shared libraries, |
| 12028 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 12029 | *** The result is that libtool may fail to recognize shared libraries |
| 12030 | *** as such. This will affect the creation of libtool libraries that |
| 12031 | *** depend on shared libraries, but programs linked with such libtool |
| 12032 | *** libraries will work regardless of this problem. Nevertheless, you |
| 12033 | *** may want to report the problem to your system manager and/or to |
| 12034 | *** bug-libtool@gnu.org |
| 12035 | |
| 12036 | _LT_EOF |
| 12037 | fi ;; |
| 12038 | esac |
| 12039 | fi |
| 12040 | break |
| 12041 | fi |
| 12042 | done |
| 12043 | IFS="$lt_save_ifs" |
| 12044 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 12045 | ;; |
| 12046 | esac |
| 12047 | fi |
| 12048 | |
| 12049 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 12050 | if test -n "$MAGIC_CMD"; then |
| 12051 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 12052 | $as_echo "$MAGIC_CMD" >&6; } |
| 12053 | else |
| 12054 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12055 | $as_echo "no" >&6; } |
| 12056 | fi |
| 12057 | |
| 12058 | |
| 12059 | |
| 12060 | |
| 12061 | |
| 12062 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 12063 | if test -n "$ac_tool_prefix"; then |
| 12064 | { $as_echo "$as_me:$LINENO: checking for file" >&5 |
| 12065 | $as_echo_n "checking for file... " >&6; } |
| 12066 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 12067 | $as_echo_n "(cached) " >&6 |
| 12068 | else |
| 12069 | case $MAGIC_CMD in |
| 12070 | [\\/*] | ?:[\\/]*) |
| 12071 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 12072 | ;; |
| 12073 | *) |
| 12074 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 12075 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12076 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 12077 | for ac_dir in $ac_dummy; do |
| 12078 | IFS="$lt_save_ifs" |
| 12079 | test -z "$ac_dir" && ac_dir=. |
| 12080 | if test -f $ac_dir/file; then |
| 12081 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 12082 | if test -n "$file_magic_test_file"; then |
| 12083 | case $deplibs_check_method in |
| 12084 | "file_magic "*) |
| 12085 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 12086 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 12087 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 12088 | $EGREP "$file_magic_regex" > /dev/null; then |
| 12089 | : |
| 12090 | else |
| 12091 | cat <<_LT_EOF 1>&2 |
| 12092 | |
| 12093 | *** Warning: the command libtool uses to detect shared libraries, |
| 12094 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 12095 | *** The result is that libtool may fail to recognize shared libraries |
| 12096 | *** as such. This will affect the creation of libtool libraries that |
| 12097 | *** depend on shared libraries, but programs linked with such libtool |
| 12098 | *** libraries will work regardless of this problem. Nevertheless, you |
| 12099 | *** may want to report the problem to your system manager and/or to |
| 12100 | *** bug-libtool@gnu.org |
| 12101 | |
| 12102 | _LT_EOF |
| 12103 | fi ;; |
| 12104 | esac |
| 12105 | fi |
| 12106 | break |
| 12107 | fi |
| 12108 | done |
| 12109 | IFS="$lt_save_ifs" |
| 12110 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 12111 | ;; |
| 12112 | esac |
| 12113 | fi |
| 12114 | |
| 12115 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 12116 | if test -n "$MAGIC_CMD"; then |
| 12117 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 12118 | $as_echo "$MAGIC_CMD" >&6; } |
| 12119 | else |
| 12120 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 12121 | $as_echo "no" >&6; } |
| 12122 | fi |
| 12123 | |
| 12124 | |
| 12125 | else |
| 12126 | MAGIC_CMD=: |
| 12127 | fi |
| 12128 | fi |
| 12129 | |
| 12130 | fi |
| 12131 | ;; |
| 12132 | esac |
| 12133 | |
| 12134 | # Use C for the default configuration in the libtool script |
| 12135 | |
| 12136 | lt_save_CC="$CC" |
| 12137 | ac_ext=c |
| 12138 | ac_cpp='$CPP $CPPFLAGS' |
| 12139 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12140 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12141 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12142 | |
| 12143 | |
| 12144 | # Source file extension for C test sources. |
| 12145 | ac_ext=c |
| 12146 | |
| 12147 | # Object file extension for compiled C test sources. |
| 12148 | objext=o |
| 12149 | objext=$objext |
| 12150 | |
| 12151 | # Code to be used in simple compile tests |
| 12152 | lt_simple_compile_test_code="int some_variable = 0;" |
| 12153 | |
| 12154 | # Code to be used in simple link tests |
| 12155 | lt_simple_link_test_code='int main(){return(0);}' |
| 12156 | |
| 12157 | |
| 12158 | |
| 12159 | |
| 12160 | |
| 12161 | |
| 12162 | |
| 12163 | # If no C compiler was specified, use CC. |
| 12164 | LTCC=${LTCC-"$CC"} |
| 12165 | |
| 12166 | # If no C compiler flags were specified, use CFLAGS. |
| 12167 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 12168 | |
| 12169 | # Allow CC to be a program name with arguments. |
| 12170 | compiler=$CC |
| 12171 | |
| 12172 | # Save the default compiler, since it gets overwritten when the other |
| 12173 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 12174 | compiler_DEFAULT=$CC |
| 12175 | |
| 12176 | # save warnings/boilerplate of simple test code |
| 12177 | ac_outfile=conftest.$ac_objext |
| 12178 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 12179 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 12180 | _lt_compiler_boilerplate=`cat conftest.err` |
| 12181 | $RM conftest* |
| 12182 | |
| 12183 | ac_outfile=conftest.$ac_objext |
| 12184 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 12185 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 12186 | _lt_linker_boilerplate=`cat conftest.err` |
| 12187 | $RM -r conftest* |
| 12188 | |
| 12189 | |
| 12190 | ## CAVEAT EMPTOR: |
| 12191 | ## There is no encapsulation within the following macros, do not change |
| 12192 | ## the running order or otherwise move them around unless you know exactly |
| 12193 | ## what you are doing... |
| 12194 | if test -n "$compiler"; then |
| 12195 | |
| 12196 | lt_prog_compiler_no_builtin_flag= |
| 12197 | |
| 12198 | if test "$GCC" = yes; then |
| 12199 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 12200 | |
| 12201 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 12202 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 12203 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 12204 | $as_echo_n "(cached) " >&6 |
| 12205 | else |
| 12206 | lt_cv_prog_compiler_rtti_exceptions=no |
| 12207 | ac_outfile=conftest.$ac_objext |
| 12208 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12209 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 12210 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12211 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12212 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12213 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12214 | # The option is referenced via a variable to avoid confusing sed. |
| 12215 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12216 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 12217 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12218 | -e 's:$: $lt_compiler_flag:'` |
| 12219 | (eval echo "\"\$as_me:12219: $lt_compile\"" >&5) |
| 12220 | (eval "$lt_compile" 2>conftest.err) |
| 12221 | ac_status=$? |
| 12222 | cat conftest.err >&5 |
| 12223 | echo "$as_me:12223: \$? = $ac_status" >&5 |
| 12224 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 12225 | # The compiler can only warn and ignore the option if not recognized |
| 12226 | # So say no if there are warnings other than the usual output. |
| 12227 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 12228 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12229 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 12230 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 12231 | fi |
| 12232 | fi |
| 12233 | $RM conftest* |
| 12234 | |
| 12235 | fi |
| 12236 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 12237 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 12238 | |
| 12239 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 12240 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 12241 | else |
| 12242 | : |
| 12243 | fi |
| 12244 | |
| 12245 | fi |
| 12246 | |
| 12247 | |
| 12248 | |
| 12249 | |
| 12250 | |
| 12251 | |
| 12252 | lt_prog_compiler_wl= |
| 12253 | lt_prog_compiler_pic= |
| 12254 | lt_prog_compiler_static= |
| 12255 | |
| 12256 | { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 12257 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 12258 | |
| 12259 | if test "$GCC" = yes; then |
| 12260 | lt_prog_compiler_wl='-Wl,' |
| 12261 | lt_prog_compiler_static='-static' |
| 12262 | |
| 12263 | case $host_os in |
| 12264 | aix*) |
| 12265 | # All AIX code is PIC. |
| 12266 | if test "$host_cpu" = ia64; then |
| 12267 | # AIX 5 now supports IA64 processor |
| 12268 | lt_prog_compiler_static='-Bstatic' |
| 12269 | fi |
| 12270 | ;; |
| 12271 | |
| 12272 | amigaos*) |
| 12273 | case $host_cpu in |
| 12274 | powerpc) |
| 12275 | # see comment about AmigaOS4 .so support |
| 12276 | lt_prog_compiler_pic='-fPIC' |
| 12277 | ;; |
| 12278 | m68k) |
| 12279 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 12280 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 12281 | # like `-m68040'. |
| 12282 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 12283 | ;; |
| 12284 | esac |
| 12285 | ;; |
| 12286 | |
| 12287 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 12288 | # PIC is the default for these OSes. |
| 12289 | ;; |
| 12290 | |
| 12291 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 12292 | # This hack is so that the source file can tell whether it is being |
| 12293 | # built for inclusion in a dll (and should export symbols for example). |
| 12294 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 12295 | # (--disable-auto-import) libraries |
| 12296 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 12297 | ;; |
| 12298 | |
| 12299 | darwin* | rhapsody*) |
| 12300 | # PIC is the default on this platform |
| 12301 | # Common symbols not allowed in MH_DYLIB files |
| 12302 | lt_prog_compiler_pic='-fno-common' |
| 12303 | ;; |
| 12304 | |
| 12305 | hpux*) |
| 12306 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 12307 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 12308 | # sets the default TLS model and affects inlining. |
| 12309 | case $host_cpu in |
| 12310 | hppa*64*) |
| 12311 | # +Z the default |
| 12312 | ;; |
| 12313 | *) |
| 12314 | lt_prog_compiler_pic='-fPIC' |
| 12315 | ;; |
| 12316 | esac |
| 12317 | ;; |
| 12318 | |
| 12319 | interix[3-9]*) |
| 12320 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 12321 | # Instead, we relocate shared libraries at runtime. |
| 12322 | ;; |
| 12323 | |
| 12324 | msdosdjgpp*) |
| 12325 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 12326 | # on systems that don't support them. |
| 12327 | lt_prog_compiler_can_build_shared=no |
| 12328 | enable_shared=no |
| 12329 | ;; |
| 12330 | |
| 12331 | *nto* | *qnx*) |
| 12332 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 12333 | # it will coredump. |
| 12334 | lt_prog_compiler_pic='-fPIC -shared' |
| 12335 | ;; |
| 12336 | |
| 12337 | sysv4*MP*) |
| 12338 | if test -d /usr/nec; then |
| 12339 | lt_prog_compiler_pic=-Kconform_pic |
| 12340 | fi |
| 12341 | ;; |
| 12342 | |
| 12343 | *) |
| 12344 | lt_prog_compiler_pic='-fPIC' |
| 12345 | ;; |
| 12346 | esac |
| 12347 | else |
| 12348 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 12349 | case $host_os in |
| 12350 | aix*) |
| 12351 | lt_prog_compiler_wl='-Wl,' |
| 12352 | if test "$host_cpu" = ia64; then |
| 12353 | # AIX 5 now supports IA64 processor |
| 12354 | lt_prog_compiler_static='-Bstatic' |
| 12355 | else |
| 12356 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 12357 | fi |
| 12358 | ;; |
| 12359 | |
| 12360 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 12361 | # This hack is so that the source file can tell whether it is being |
| 12362 | # built for inclusion in a dll (and should export symbols for example). |
| 12363 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 12364 | ;; |
| 12365 | |
| 12366 | hpux9* | hpux10* | hpux11*) |
| 12367 | lt_prog_compiler_wl='-Wl,' |
| 12368 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 12369 | # not for PA HP-UX. |
| 12370 | case $host_cpu in |
| 12371 | hppa*64*|ia64*) |
| 12372 | # +Z the default |
| 12373 | ;; |
| 12374 | *) |
| 12375 | lt_prog_compiler_pic='+Z' |
| 12376 | ;; |
| 12377 | esac |
| 12378 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 12379 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 12380 | ;; |
| 12381 | |
| 12382 | irix5* | irix6* | nonstopux*) |
| 12383 | lt_prog_compiler_wl='-Wl,' |
| 12384 | # PIC (with -KPIC) is the default. |
| 12385 | lt_prog_compiler_static='-non_shared' |
| 12386 | ;; |
| 12387 | |
| 12388 | linux* | k*bsd*-gnu) |
| 12389 | case $cc_basename in |
| 12390 | # old Intel for x86_64 which still supported -KPIC. |
| 12391 | ecc*) |
| 12392 | lt_prog_compiler_wl='-Wl,' |
| 12393 | lt_prog_compiler_pic='-KPIC' |
| 12394 | lt_prog_compiler_static='-static' |
| 12395 | ;; |
| 12396 | # icc used to be incompatible with GCC. |
| 12397 | # ICC 10 doesn't accept -KPIC any more. |
| 12398 | icc* | ifort*) |
| 12399 | lt_prog_compiler_wl='-Wl,' |
| 12400 | lt_prog_compiler_pic='-fPIC' |
| 12401 | lt_prog_compiler_static='-static' |
| 12402 | ;; |
| 12403 | # Lahey Fortran 8.1. |
| 12404 | lf95*) |
| 12405 | lt_prog_compiler_wl='-Wl,' |
| 12406 | lt_prog_compiler_pic='--shared' |
| 12407 | lt_prog_compiler_static='--static' |
| 12408 | ;; |
| 12409 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 12410 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 12411 | # which looks to be a dead project) |
| 12412 | lt_prog_compiler_wl='-Wl,' |
| 12413 | lt_prog_compiler_pic='-fpic' |
| 12414 | lt_prog_compiler_static='-Bstatic' |
| 12415 | ;; |
| 12416 | ccc*) |
| 12417 | lt_prog_compiler_wl='-Wl,' |
| 12418 | # All Alpha code is PIC. |
| 12419 | lt_prog_compiler_static='-non_shared' |
| 12420 | ;; |
| 12421 | xl*) |
| 12422 | # IBM XL C 8.0/Fortran 10.1 on PPC |
| 12423 | lt_prog_compiler_wl='-Wl,' |
| 12424 | lt_prog_compiler_pic='-qpic' |
| 12425 | lt_prog_compiler_static='-qstaticlink' |
| 12426 | ;; |
| 12427 | *) |
| 12428 | case `$CC -V 2>&1 | sed 5q` in |
| 12429 | *Sun\ C*) |
| 12430 | # Sun C 5.9 |
| 12431 | lt_prog_compiler_pic='-KPIC' |
| 12432 | lt_prog_compiler_static='-Bstatic' |
| 12433 | lt_prog_compiler_wl='-Wl,' |
| 12434 | ;; |
| 12435 | *Sun\ F*) |
| 12436 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 12437 | lt_prog_compiler_pic='-KPIC' |
| 12438 | lt_prog_compiler_static='-Bstatic' |
| 12439 | lt_prog_compiler_wl='' |
| 12440 | ;; |
| 12441 | esac |
| 12442 | ;; |
| 12443 | esac |
| 12444 | ;; |
| 12445 | |
| 12446 | newsos6) |
| 12447 | lt_prog_compiler_pic='-KPIC' |
| 12448 | lt_prog_compiler_static='-Bstatic' |
| 12449 | ;; |
| 12450 | |
| 12451 | *nto* | *qnx*) |
| 12452 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 12453 | # it will coredump. |
| 12454 | lt_prog_compiler_pic='-fPIC -shared' |
| 12455 | ;; |
| 12456 | |
| 12457 | osf3* | osf4* | osf5*) |
| 12458 | lt_prog_compiler_wl='-Wl,' |
| 12459 | # All OSF/1 code is PIC. |
| 12460 | lt_prog_compiler_static='-non_shared' |
| 12461 | ;; |
| 12462 | |
| 12463 | rdos*) |
| 12464 | lt_prog_compiler_static='-non_shared' |
| 12465 | ;; |
| 12466 | |
| 12467 | solaris*) |
| 12468 | lt_prog_compiler_pic='-KPIC' |
| 12469 | lt_prog_compiler_static='-Bstatic' |
| 12470 | case $cc_basename in |
| 12471 | f77* | f90* | f95*) |
| 12472 | lt_prog_compiler_wl='-Qoption ld ';; |
| 12473 | *) |
| 12474 | lt_prog_compiler_wl='-Wl,';; |
| 12475 | esac |
| 12476 | ;; |
| 12477 | |
| 12478 | sunos4*) |
| 12479 | lt_prog_compiler_wl='-Qoption ld ' |
| 12480 | lt_prog_compiler_pic='-PIC' |
| 12481 | lt_prog_compiler_static='-Bstatic' |
| 12482 | ;; |
| 12483 | |
| 12484 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 12485 | lt_prog_compiler_wl='-Wl,' |
| 12486 | lt_prog_compiler_pic='-KPIC' |
| 12487 | lt_prog_compiler_static='-Bstatic' |
| 12488 | ;; |
| 12489 | |
| 12490 | sysv4*MP*) |
| 12491 | if test -d /usr/nec ;then |
| 12492 | lt_prog_compiler_pic='-Kconform_pic' |
| 12493 | lt_prog_compiler_static='-Bstatic' |
| 12494 | fi |
| 12495 | ;; |
| 12496 | |
| 12497 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 12498 | lt_prog_compiler_wl='-Wl,' |
| 12499 | lt_prog_compiler_pic='-KPIC' |
| 12500 | lt_prog_compiler_static='-Bstatic' |
| 12501 | ;; |
| 12502 | |
| 12503 | unicos*) |
| 12504 | lt_prog_compiler_wl='-Wl,' |
| 12505 | lt_prog_compiler_can_build_shared=no |
| 12506 | ;; |
| 12507 | |
| 12508 | uts4*) |
| 12509 | lt_prog_compiler_pic='-pic' |
| 12510 | lt_prog_compiler_static='-Bstatic' |
| 12511 | ;; |
| 12512 | |
| 12513 | *) |
| 12514 | lt_prog_compiler_can_build_shared=no |
| 12515 | ;; |
| 12516 | esac |
| 12517 | fi |
| 12518 | |
| 12519 | case $host_os in |
| 12520 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 12521 | *djgpp*) |
| 12522 | lt_prog_compiler_pic= |
| 12523 | ;; |
| 12524 | *) |
| 12525 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 12526 | ;; |
| 12527 | esac |
| 12528 | { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 12529 | $as_echo "$lt_prog_compiler_pic" >&6; } |
| 12530 | |
| 12531 | |
| 12532 | |
| 12533 | |
| 12534 | |
| 12535 | |
| 12536 | # |
| 12537 | # Check to make sure the PIC flag actually works. |
| 12538 | # |
| 12539 | if test -n "$lt_prog_compiler_pic"; then |
| 12540 | { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 12541 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 12542 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then |
| 12543 | $as_echo_n "(cached) " >&6 |
| 12544 | else |
| 12545 | lt_cv_prog_compiler_pic_works=no |
| 12546 | ac_outfile=conftest.$ac_objext |
| 12547 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12548 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 12549 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12550 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12551 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12552 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12553 | # The option is referenced via a variable to avoid confusing sed. |
| 12554 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12555 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 12556 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12557 | -e 's:$: $lt_compiler_flag:'` |
| 12558 | (eval echo "\"\$as_me:12558: $lt_compile\"" >&5) |
| 12559 | (eval "$lt_compile" 2>conftest.err) |
| 12560 | ac_status=$? |
| 12561 | cat conftest.err >&5 |
| 12562 | echo "$as_me:12562: \$? = $ac_status" >&5 |
| 12563 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 12564 | # The compiler can only warn and ignore the option if not recognized |
| 12565 | # So say no if there are warnings other than the usual output. |
| 12566 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 12567 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12568 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 12569 | lt_cv_prog_compiler_pic_works=yes |
| 12570 | fi |
| 12571 | fi |
| 12572 | $RM conftest* |
| 12573 | |
| 12574 | fi |
| 12575 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 12576 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 12577 | |
| 12578 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 12579 | case $lt_prog_compiler_pic in |
| 12580 | "" | " "*) ;; |
| 12581 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 12582 | esac |
| 12583 | else |
| 12584 | lt_prog_compiler_pic= |
| 12585 | lt_prog_compiler_can_build_shared=no |
| 12586 | fi |
| 12587 | |
| 12588 | fi |
| 12589 | |
| 12590 | |
| 12591 | |
| 12592 | |
| 12593 | |
| 12594 | |
| 12595 | # |
| 12596 | # Check to make sure the static flag actually works. |
| 12597 | # |
| 12598 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 12599 | { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 12600 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 12601 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then |
| 12602 | $as_echo_n "(cached) " >&6 |
| 12603 | else |
| 12604 | lt_cv_prog_compiler_static_works=no |
| 12605 | save_LDFLAGS="$LDFLAGS" |
| 12606 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 12607 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 12608 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 12609 | # The linker can only warn and ignore the option if not recognized |
| 12610 | # So say no if there are warnings |
| 12611 | if test -s conftest.err; then |
| 12612 | # Append any errors to the config.log. |
| 12613 | cat conftest.err 1>&5 |
| 12614 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 12615 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12616 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 12617 | lt_cv_prog_compiler_static_works=yes |
| 12618 | fi |
| 12619 | else |
| 12620 | lt_cv_prog_compiler_static_works=yes |
| 12621 | fi |
| 12622 | fi |
| 12623 | $RM -r conftest* |
| 12624 | LDFLAGS="$save_LDFLAGS" |
| 12625 | |
| 12626 | fi |
| 12627 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
| 12628 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 12629 | |
| 12630 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
| 12631 | : |
| 12632 | else |
| 12633 | lt_prog_compiler_static= |
| 12634 | fi |
| 12635 | |
| 12636 | |
| 12637 | |
| 12638 | |
| 12639 | |
| 12640 | |
| 12641 | |
| 12642 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 12643 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 12644 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 12645 | $as_echo_n "(cached) " >&6 |
| 12646 | else |
| 12647 | lt_cv_prog_compiler_c_o=no |
| 12648 | $RM -r conftest 2>/dev/null |
| 12649 | mkdir conftest |
| 12650 | cd conftest |
| 12651 | mkdir out |
| 12652 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12653 | |
| 12654 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 12655 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12656 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12657 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12658 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12659 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12660 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 12661 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12662 | -e 's:$: $lt_compiler_flag:'` |
| 12663 | (eval echo "\"\$as_me:12663: $lt_compile\"" >&5) |
| 12664 | (eval "$lt_compile" 2>out/conftest.err) |
| 12665 | ac_status=$? |
| 12666 | cat out/conftest.err >&5 |
| 12667 | echo "$as_me:12667: \$? = $ac_status" >&5 |
| 12668 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 12669 | then |
| 12670 | # The compiler can only warn and ignore the option if not recognized |
| 12671 | # So say no if there are warnings |
| 12672 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 12673 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 12674 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 12675 | lt_cv_prog_compiler_c_o=yes |
| 12676 | fi |
| 12677 | fi |
| 12678 | chmod u+w . 2>&5 |
| 12679 | $RM conftest* |
| 12680 | # SGI C++ compiler will create directory out/ii_files/ for |
| 12681 | # template instantiation |
| 12682 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 12683 | $RM out/* && rmdir out |
| 12684 | cd .. |
| 12685 | $RM -r conftest |
| 12686 | $RM conftest* |
| 12687 | |
| 12688 | fi |
| 12689 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 12690 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 12691 | |
| 12692 | |
| 12693 | |
| 12694 | |
| 12695 | |
| 12696 | |
| 12697 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 12698 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 12699 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 12700 | $as_echo_n "(cached) " >&6 |
| 12701 | else |
| 12702 | lt_cv_prog_compiler_c_o=no |
| 12703 | $RM -r conftest 2>/dev/null |
| 12704 | mkdir conftest |
| 12705 | cd conftest |
| 12706 | mkdir out |
| 12707 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12708 | |
| 12709 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 12710 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12711 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12712 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12713 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12714 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12715 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 12716 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12717 | -e 's:$: $lt_compiler_flag:'` |
| 12718 | (eval echo "\"\$as_me:12718: $lt_compile\"" >&5) |
| 12719 | (eval "$lt_compile" 2>out/conftest.err) |
| 12720 | ac_status=$? |
| 12721 | cat out/conftest.err >&5 |
| 12722 | echo "$as_me:12722: \$? = $ac_status" >&5 |
| 12723 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 12724 | then |
| 12725 | # The compiler can only warn and ignore the option if not recognized |
| 12726 | # So say no if there are warnings |
| 12727 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 12728 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 12729 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 12730 | lt_cv_prog_compiler_c_o=yes |
| 12731 | fi |
| 12732 | fi |
| 12733 | chmod u+w . 2>&5 |
| 12734 | $RM conftest* |
| 12735 | # SGI C++ compiler will create directory out/ii_files/ for |
| 12736 | # template instantiation |
| 12737 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 12738 | $RM out/* && rmdir out |
| 12739 | cd .. |
| 12740 | $RM -r conftest |
| 12741 | $RM conftest* |
| 12742 | |
| 12743 | fi |
| 12744 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 12745 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 12746 | |
| 12747 | |
| 12748 | |
| 12749 | |
| 12750 | hard_links="nottested" |
| 12751 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 12752 | # do not overwrite the value of need_locks provided by the user |
| 12753 | { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 12754 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 12755 | hard_links=yes |
| 12756 | $RM conftest* |
| 12757 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12758 | touch conftest.a |
| 12759 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 12760 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12761 | { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 12762 | $as_echo "$hard_links" >&6; } |
| 12763 | if test "$hard_links" = no; then |
| 12764 | { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 12765 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 12766 | need_locks=warn |
| 12767 | fi |
| 12768 | else |
| 12769 | need_locks=no |
| 12770 | fi |
| 12771 | |
| 12772 | |
| 12773 | |
| 12774 | |
| 12775 | |
| 12776 | |
| 12777 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 12778 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 12779 | |
| 12780 | runpath_var= |
| 12781 | allow_undefined_flag= |
| 12782 | always_export_symbols=no |
| 12783 | archive_cmds= |
| 12784 | archive_expsym_cmds= |
| 12785 | compiler_needs_object=no |
| 12786 | enable_shared_with_static_runtimes=no |
| 12787 | export_dynamic_flag_spec= |
| 12788 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12789 | hardcode_automatic=no |
| 12790 | hardcode_direct=no |
| 12791 | hardcode_direct_absolute=no |
| 12792 | hardcode_libdir_flag_spec= |
| 12793 | hardcode_libdir_flag_spec_ld= |
| 12794 | hardcode_libdir_separator= |
| 12795 | hardcode_minus_L=no |
| 12796 | hardcode_shlibpath_var=unsupported |
| 12797 | inherit_rpath=no |
| 12798 | link_all_deplibs=unknown |
| 12799 | module_cmds= |
| 12800 | module_expsym_cmds= |
| 12801 | old_archive_from_new_cmds= |
| 12802 | old_archive_from_expsyms_cmds= |
| 12803 | thread_safe_flag_spec= |
| 12804 | whole_archive_flag_spec= |
| 12805 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 12806 | # included in the symbol list |
| 12807 | include_expsyms= |
| 12808 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 12809 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 12810 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 12811 | # as well as any symbol that contains `d'. |
| 12812 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 12813 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 12814 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 12815 | # the symbol is explicitly referenced. Since portable code cannot |
| 12816 | # rely on this symbol name, it's probably fine to never include it in |
| 12817 | # preloaded symbol tables. |
| 12818 | # Exclude shared library initialization/finalization symbols. |
| 12819 | extract_expsyms_cmds= |
| 12820 | |
| 12821 | case $host_os in |
| 12822 | cygwin* | mingw* | pw32* | cegcc*) |
| 12823 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 12824 | # When not using gcc, we currently assume that we are using |
| 12825 | # Microsoft Visual C++. |
| 12826 | if test "$GCC" != yes; then |
| 12827 | with_gnu_ld=no |
| 12828 | fi |
| 12829 | ;; |
| 12830 | interix*) |
| 12831 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 12832 | with_gnu_ld=yes |
| 12833 | ;; |
| 12834 | openbsd*) |
| 12835 | with_gnu_ld=no |
| 12836 | ;; |
| 12837 | esac |
| 12838 | |
| 12839 | ld_shlibs=yes |
| 12840 | if test "$with_gnu_ld" = yes; then |
| 12841 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 12842 | wlarc='${wl}' |
| 12843 | |
| 12844 | # Set some defaults for GNU ld with shared library support. These |
| 12845 | # are reset later if shared libraries are not supported. Putting them |
| 12846 | # here allows them to be overridden if necessary. |
| 12847 | runpath_var=LD_RUN_PATH |
| 12848 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12849 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 12850 | # ancient GNU ld didn't support --whole-archive et. al. |
| 12851 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 12852 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 12853 | else |
| 12854 | whole_archive_flag_spec= |
| 12855 | fi |
| 12856 | supports_anon_versioning=no |
| 12857 | case `$LD -v 2>&1` in |
| 12858 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 12859 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 12860 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 12861 | *\ 2.11.*) ;; # other 2.11 versions |
| 12862 | *) supports_anon_versioning=yes ;; |
| 12863 | esac |
| 12864 | |
| 12865 | # See if GNU ld supports shared libraries. |
| 12866 | case $host_os in |
| 12867 | aix[3-9]*) |
| 12868 | # On AIX/PPC, the GNU linker is very broken |
| 12869 | if test "$host_cpu" != ia64; then |
| 12870 | ld_shlibs=no |
| 12871 | cat <<_LT_EOF 1>&2 |
| 12872 | |
| 12873 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 12874 | *** to be unable to reliably create shared libraries on AIX. |
| 12875 | *** Therefore, libtool is disabling shared libraries support. If you |
| 12876 | *** really care for shared libraries, you may want to modify your PATH |
| 12877 | *** so that a non-GNU linker is found, and then restart. |
| 12878 | |
| 12879 | _LT_EOF |
| 12880 | fi |
| 12881 | ;; |
| 12882 | |
| 12883 | amigaos*) |
| 12884 | case $host_cpu in |
| 12885 | powerpc) |
| 12886 | # see comment about AmigaOS4 .so support |
| 12887 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12888 | archive_expsym_cmds='' |
| 12889 | ;; |
| 12890 | m68k) |
| 12891 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 12892 | hardcode_libdir_flag_spec='-L$libdir' |
| 12893 | hardcode_minus_L=yes |
| 12894 | ;; |
| 12895 | esac |
| 12896 | ;; |
| 12897 | |
| 12898 | beos*) |
| 12899 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 12900 | allow_undefined_flag=unsupported |
| 12901 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 12902 | # support --undefined. This deserves some investigation. FIXME |
| 12903 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12904 | else |
| 12905 | ld_shlibs=no |
| 12906 | fi |
| 12907 | ;; |
| 12908 | |
| 12909 | cygwin* | mingw* | pw32* | cegcc*) |
| 12910 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 12911 | # as there is no search path for DLLs. |
| 12912 | hardcode_libdir_flag_spec='-L$libdir' |
| 12913 | allow_undefined_flag=unsupported |
| 12914 | always_export_symbols=no |
| 12915 | enable_shared_with_static_runtimes=yes |
| 12916 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 12917 | |
| 12918 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 12919 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 12920 | # If the export-symbols file already is a .def file (1st line |
| 12921 | # is EXPORTS), use it as is; otherwise, prepend... |
| 12922 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 12923 | cp $export_symbols $output_objdir/$soname.def; |
| 12924 | else |
| 12925 | echo EXPORTS > $output_objdir/$soname.def; |
| 12926 | cat $export_symbols >> $output_objdir/$soname.def; |
| 12927 | fi~ |
| 12928 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 12929 | else |
| 12930 | ld_shlibs=no |
| 12931 | fi |
| 12932 | ;; |
| 12933 | |
| 12934 | interix[3-9]*) |
| 12935 | hardcode_direct=no |
| 12936 | hardcode_shlibpath_var=no |
| 12937 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 12938 | export_dynamic_flag_spec='${wl}-E' |
| 12939 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 12940 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 12941 | # default) and relocated if they conflict, which is a slow very memory |
| 12942 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 12943 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 12944 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 12945 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 12946 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 12947 | ;; |
| 12948 | |
| 12949 | gnu* | linux* | tpf* | k*bsd*-gnu) |
| 12950 | tmp_diet=no |
| 12951 | if test "$host_os" = linux-dietlibc; then |
| 12952 | case $cc_basename in |
| 12953 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 12954 | esac |
| 12955 | fi |
| 12956 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 12957 | && test "$tmp_diet" = no |
| 12958 | then |
| 12959 | tmp_addflag= |
| 12960 | tmp_sharedflag='-shared' |
| 12961 | case $cc_basename,$host_cpu in |
| 12962 | pgcc*) # Portland Group C compiler |
| 12963 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| 12964 | tmp_addflag=' $pic_flag' |
| 12965 | ;; |
| 12966 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 12967 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| 12968 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 12969 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 12970 | tmp_addflag=' -i_dynamic' ;; |
| 12971 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 12972 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 12973 | ifc* | ifort*) # Intel Fortran compiler |
| 12974 | tmp_addflag=' -nofor_main' ;; |
| 12975 | lf95*) # Lahey Fortran 8.1 |
| 12976 | whole_archive_flag_spec= |
| 12977 | tmp_sharedflag='--shared' ;; |
| 12978 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 12979 | tmp_sharedflag='-qmkshrobj' |
| 12980 | tmp_addflag= ;; |
| 12981 | esac |
| 12982 | case `$CC -V 2>&1 | sed 5q` in |
| 12983 | *Sun\ C*) # Sun C 5.9 |
| 12984 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| 12985 | compiler_needs_object=yes |
| 12986 | tmp_sharedflag='-G' ;; |
| 12987 | *Sun\ F*) # Sun Fortran 8.3 |
| 12988 | tmp_sharedflag='-G' ;; |
| 12989 | esac |
| 12990 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12991 | |
| 12992 | if test "x$supports_anon_versioning" = xyes; then |
| 12993 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 12994 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 12995 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 12996 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 12997 | fi |
| 12998 | |
| 12999 | case $cc_basename in |
| 13000 | xlf*) |
| 13001 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 13002 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 13003 | hardcode_libdir_flag_spec= |
| 13004 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 13005 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
| 13006 | if test "x$supports_anon_versioning" = xyes; then |
| 13007 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 13008 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 13009 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 13010 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 13011 | fi |
| 13012 | ;; |
| 13013 | esac |
| 13014 | else |
| 13015 | ld_shlibs=no |
| 13016 | fi |
| 13017 | ;; |
| 13018 | |
| 13019 | netbsd*) |
| 13020 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 13021 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 13022 | wlarc= |
| 13023 | else |
| 13024 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13025 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13026 | fi |
| 13027 | ;; |
| 13028 | |
| 13029 | solaris*) |
| 13030 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 13031 | ld_shlibs=no |
| 13032 | cat <<_LT_EOF 1>&2 |
| 13033 | |
| 13034 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 13035 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 13036 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 13037 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 13038 | *** your PATH or compiler configuration so that the native linker is |
| 13039 | *** used, and then restart. |
| 13040 | |
| 13041 | _LT_EOF |
| 13042 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 13043 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13044 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13045 | else |
| 13046 | ld_shlibs=no |
| 13047 | fi |
| 13048 | ;; |
| 13049 | |
| 13050 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 13051 | case `$LD -v 2>&1` in |
| 13052 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 13053 | ld_shlibs=no |
| 13054 | cat <<_LT_EOF 1>&2 |
| 13055 | |
| 13056 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 13057 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 13058 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 13059 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 13060 | *** your PATH or compiler configuration so that the native linker is |
| 13061 | *** used, and then restart. |
| 13062 | |
| 13063 | _LT_EOF |
| 13064 | ;; |
| 13065 | *) |
| 13066 | # For security reasons, it is highly recommended that you always |
| 13067 | # use absolute paths for naming shared libraries, and exclude the |
| 13068 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 13069 | # requires that you compile everything twice, which is a pain. |
| 13070 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 13071 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 13072 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13073 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13074 | else |
| 13075 | ld_shlibs=no |
| 13076 | fi |
| 13077 | ;; |
| 13078 | esac |
| 13079 | ;; |
| 13080 | |
| 13081 | sunos4*) |
| 13082 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13083 | wlarc= |
| 13084 | hardcode_direct=yes |
| 13085 | hardcode_shlibpath_var=no |
| 13086 | ;; |
| 13087 | |
| 13088 | *) |
| 13089 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 13090 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13091 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13092 | else |
| 13093 | ld_shlibs=no |
| 13094 | fi |
| 13095 | ;; |
| 13096 | esac |
| 13097 | |
| 13098 | if test "$ld_shlibs" = no; then |
| 13099 | runpath_var= |
| 13100 | hardcode_libdir_flag_spec= |
| 13101 | export_dynamic_flag_spec= |
| 13102 | whole_archive_flag_spec= |
| 13103 | fi |
| 13104 | else |
| 13105 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 13106 | case $host_os in |
| 13107 | aix3*) |
| 13108 | allow_undefined_flag=unsupported |
| 13109 | always_export_symbols=yes |
| 13110 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 13111 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 13112 | # are no directories specified by -L. |
| 13113 | hardcode_minus_L=yes |
| 13114 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 13115 | # Neither direct hardcoding nor static linking is supported with a |
| 13116 | # broken collect2. |
| 13117 | hardcode_direct=unsupported |
| 13118 | fi |
| 13119 | ;; |
| 13120 | |
| 13121 | aix[4-9]*) |
| 13122 | if test "$host_cpu" = ia64; then |
| 13123 | # On IA64, the linker does run time linking by default, so we don't |
| 13124 | # have to do anything special. |
| 13125 | aix_use_runtimelinking=no |
| 13126 | exp_sym_flag='-Bexport' |
| 13127 | no_entry_flag="" |
| 13128 | else |
| 13129 | # If we're using GNU nm, then we don't want the "-C" option. |
| 13130 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 13131 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 13132 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 13133 | else |
| 13134 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 13135 | fi |
| 13136 | aix_use_runtimelinking=no |
| 13137 | |
| 13138 | # Test if we are trying to use run time linking or normal |
| 13139 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 13140 | # need to do runtime linking. |
| 13141 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 13142 | for ld_flag in $LDFLAGS; do |
| 13143 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 13144 | aix_use_runtimelinking=yes |
| 13145 | break |
| 13146 | fi |
| 13147 | done |
| 13148 | ;; |
| 13149 | esac |
| 13150 | |
| 13151 | exp_sym_flag='-bexport' |
| 13152 | no_entry_flag='-bnoentry' |
| 13153 | fi |
| 13154 | |
| 13155 | # When large executables or shared objects are built, AIX ld can |
| 13156 | # have problems creating the table of contents. If linking a library |
| 13157 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 13158 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 13159 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 13160 | |
| 13161 | archive_cmds='' |
| 13162 | hardcode_direct=yes |
| 13163 | hardcode_direct_absolute=yes |
| 13164 | hardcode_libdir_separator=':' |
| 13165 | link_all_deplibs=yes |
| 13166 | file_list_spec='${wl}-f,' |
| 13167 | |
| 13168 | if test "$GCC" = yes; then |
| 13169 | case $host_os in aix4.[012]|aix4.[012].*) |
| 13170 | # We only want to do this on AIX 4.2 and lower, the check |
| 13171 | # below for broken collect2 doesn't work under 4.3+ |
| 13172 | collect2name=`${CC} -print-prog-name=collect2` |
| 13173 | if test -f "$collect2name" && |
| 13174 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 13175 | then |
| 13176 | # We have reworked collect2 |
| 13177 | : |
| 13178 | else |
| 13179 | # We have old collect2 |
| 13180 | hardcode_direct=unsupported |
| 13181 | # It fails to find uninstalled libraries when the uninstalled |
| 13182 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 13183 | # to unsupported forces relinking |
| 13184 | hardcode_minus_L=yes |
| 13185 | hardcode_libdir_flag_spec='-L$libdir' |
| 13186 | hardcode_libdir_separator= |
| 13187 | fi |
| 13188 | ;; |
| 13189 | esac |
| 13190 | shared_flag='-shared' |
| 13191 | if test "$aix_use_runtimelinking" = yes; then |
| 13192 | shared_flag="$shared_flag "'${wl}-G' |
| 13193 | fi |
| 13194 | else |
| 13195 | # not using gcc |
| 13196 | if test "$host_cpu" = ia64; then |
| 13197 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 13198 | # chokes on -Wl,-G. The following line is correct: |
| 13199 | shared_flag='-G' |
| 13200 | else |
| 13201 | if test "$aix_use_runtimelinking" = yes; then |
| 13202 | shared_flag='${wl}-G' |
| 13203 | else |
| 13204 | shared_flag='${wl}-bM:SRE' |
| 13205 | fi |
| 13206 | fi |
| 13207 | fi |
| 13208 | |
| 13209 | export_dynamic_flag_spec='${wl}-bexpall' |
| 13210 | # It seems that -bexpall does not export symbols beginning with |
| 13211 | # underscore (_), so it is better to generate a list of symbols to export. |
| 13212 | always_export_symbols=yes |
| 13213 | if test "$aix_use_runtimelinking" = yes; then |
| 13214 | # Warning - without using the other runtime loading flags (-brtl), |
| 13215 | # -berok will link without error, but may produce a broken library. |
| 13216 | allow_undefined_flag='-berok' |
| 13217 | # Determine the default libpath from the value encoded in an |
| 13218 | # empty executable. |
| 13219 | cat >conftest.$ac_ext <<_ACEOF |
| 13220 | /* confdefs.h. */ |
| 13221 | _ACEOF |
| 13222 | cat confdefs.h >>conftest.$ac_ext |
| 13223 | cat >>conftest.$ac_ext <<_ACEOF |
| 13224 | /* end confdefs.h. */ |
| 13225 | |
| 13226 | int |
| 13227 | main () |
| 13228 | { |
| 13229 | |
| 13230 | ; |
| 13231 | return 0; |
| 13232 | } |
| 13233 | _ACEOF |
| 13234 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13235 | if { (ac_try="$ac_link" |
| 13236 | case "(($ac_try" in |
| 13237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13238 | *) ac_try_echo=$ac_try;; |
| 13239 | esac |
| 13240 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13241 | $as_echo "$ac_try_echo") >&5 |
| 13242 | (eval "$ac_link") 2>conftest.er1 |
| 13243 | ac_status=$? |
| 13244 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13245 | rm -f conftest.er1 |
| 13246 | cat conftest.err >&5 |
| 13247 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13248 | (exit $ac_status); } && { |
| 13249 | test -z "$ac_c_werror_flag" || |
| 13250 | test ! -s conftest.err |
| 13251 | } && test -s conftest$ac_exeext && { |
| 13252 | test "$cross_compiling" = yes || |
| 13253 | $as_test_x conftest$ac_exeext |
| 13254 | }; then |
| 13255 | |
| 13256 | lt_aix_libpath_sed=' |
| 13257 | /Import File Strings/,/^$/ { |
| 13258 | /^0/ { |
| 13259 | s/^0 *\(.*\)$/\1/ |
| 13260 | p |
| 13261 | } |
| 13262 | }' |
| 13263 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13264 | # Check for a 64-bit object if we didn't find anything. |
| 13265 | if test -z "$aix_libpath"; then |
| 13266 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13267 | fi |
| 13268 | else |
| 13269 | $as_echo "$as_me: failed program was:" >&5 |
| 13270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13271 | |
| 13272 | |
| 13273 | fi |
| 13274 | |
| 13275 | rm -rf conftest.dSYM |
| 13276 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 13277 | conftest$ac_exeext conftest.$ac_ext |
| 13278 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 13279 | |
| 13280 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13281 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 13282 | else |
| 13283 | if test "$host_cpu" = ia64; then |
| 13284 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 13285 | allow_undefined_flag="-z nodefs" |
| 13286 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
| 13287 | else |
| 13288 | # Determine the default libpath from the value encoded in an |
| 13289 | # empty executable. |
| 13290 | cat >conftest.$ac_ext <<_ACEOF |
| 13291 | /* confdefs.h. */ |
| 13292 | _ACEOF |
| 13293 | cat confdefs.h >>conftest.$ac_ext |
| 13294 | cat >>conftest.$ac_ext <<_ACEOF |
| 13295 | /* end confdefs.h. */ |
| 13296 | |
| 13297 | int |
| 13298 | main () |
| 13299 | { |
| 13300 | |
| 13301 | ; |
| 13302 | return 0; |
| 13303 | } |
| 13304 | _ACEOF |
| 13305 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13306 | if { (ac_try="$ac_link" |
| 13307 | case "(($ac_try" in |
| 13308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13309 | *) ac_try_echo=$ac_try;; |
| 13310 | esac |
| 13311 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13312 | $as_echo "$ac_try_echo") >&5 |
| 13313 | (eval "$ac_link") 2>conftest.er1 |
| 13314 | ac_status=$? |
| 13315 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13316 | rm -f conftest.er1 |
| 13317 | cat conftest.err >&5 |
| 13318 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13319 | (exit $ac_status); } && { |
| 13320 | test -z "$ac_c_werror_flag" || |
| 13321 | test ! -s conftest.err |
| 13322 | } && test -s conftest$ac_exeext && { |
| 13323 | test "$cross_compiling" = yes || |
| 13324 | $as_test_x conftest$ac_exeext |
| 13325 | }; then |
| 13326 | |
| 13327 | lt_aix_libpath_sed=' |
| 13328 | /Import File Strings/,/^$/ { |
| 13329 | /^0/ { |
| 13330 | s/^0 *\(.*\)$/\1/ |
| 13331 | p |
| 13332 | } |
| 13333 | }' |
| 13334 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13335 | # Check for a 64-bit object if we didn't find anything. |
| 13336 | if test -z "$aix_libpath"; then |
| 13337 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13338 | fi |
| 13339 | else |
| 13340 | $as_echo "$as_me: failed program was:" >&5 |
| 13341 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13342 | |
| 13343 | |
| 13344 | fi |
| 13345 | |
| 13346 | rm -rf conftest.dSYM |
| 13347 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 13348 | conftest$ac_exeext conftest.$ac_ext |
| 13349 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 13350 | |
| 13351 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13352 | # Warning - without using the other run time loading flags, |
| 13353 | # -berok will link without error, but may produce a broken library. |
| 13354 | no_undefined_flag=' ${wl}-bernotok' |
| 13355 | allow_undefined_flag=' ${wl}-berok' |
| 13356 | # Exported symbols can be pulled into shared objects from archives |
| 13357 | whole_archive_flag_spec='$convenience' |
| 13358 | archive_cmds_need_lc=yes |
| 13359 | # This is similar to how AIX traditionally builds its shared libraries. |
| 13360 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 13361 | fi |
| 13362 | fi |
| 13363 | ;; |
| 13364 | |
| 13365 | amigaos*) |
| 13366 | case $host_cpu in |
| 13367 | powerpc) |
| 13368 | # see comment about AmigaOS4 .so support |
| 13369 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13370 | archive_expsym_cmds='' |
| 13371 | ;; |
| 13372 | m68k) |
| 13373 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 13374 | hardcode_libdir_flag_spec='-L$libdir' |
| 13375 | hardcode_minus_L=yes |
| 13376 | ;; |
| 13377 | esac |
| 13378 | ;; |
| 13379 | |
| 13380 | bsdi[45]*) |
| 13381 | export_dynamic_flag_spec=-rdynamic |
| 13382 | ;; |
| 13383 | |
| 13384 | cygwin* | mingw* | pw32* | cegcc*) |
| 13385 | # When not using gcc, we currently assume that we are using |
| 13386 | # Microsoft Visual C++. |
| 13387 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 13388 | # no search path for DLLs. |
| 13389 | hardcode_libdir_flag_spec=' ' |
| 13390 | allow_undefined_flag=unsupported |
| 13391 | # Tell ltmain to make .lib files, not .a files. |
| 13392 | libext=lib |
| 13393 | # Tell ltmain to make .dll files, not .so files. |
| 13394 | shrext_cmds=".dll" |
| 13395 | # FIXME: Setting linknames here is a bad hack. |
| 13396 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 13397 | # The linker will automatically build a .lib file if we build a DLL. |
| 13398 | old_archive_from_new_cmds='true' |
| 13399 | # FIXME: Should let the user specify the lib program. |
| 13400 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 13401 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 13402 | enable_shared_with_static_runtimes=yes |
| 13403 | ;; |
| 13404 | |
| 13405 | darwin* | rhapsody*) |
| 13406 | |
| 13407 | |
| 13408 | archive_cmds_need_lc=no |
| 13409 | hardcode_direct=no |
| 13410 | hardcode_automatic=yes |
| 13411 | hardcode_shlibpath_var=unsupported |
| 13412 | whole_archive_flag_spec='' |
| 13413 | link_all_deplibs=yes |
| 13414 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 13415 | case $cc_basename in |
| 13416 | ifort*) _lt_dar_can_shared=yes ;; |
| 13417 | *) _lt_dar_can_shared=$GCC ;; |
| 13418 | esac |
| 13419 | if test "$_lt_dar_can_shared" = "yes"; then |
| 13420 | output_verbose_link_cmd=echo |
| 13421 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 13422 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 13423 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
| 13424 | module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
| 13425 | |
| 13426 | else |
| 13427 | ld_shlibs=no |
| 13428 | fi |
| 13429 | |
| 13430 | ;; |
| 13431 | |
| 13432 | dgux*) |
| 13433 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13434 | hardcode_libdir_flag_spec='-L$libdir' |
| 13435 | hardcode_shlibpath_var=no |
| 13436 | ;; |
| 13437 | |
| 13438 | freebsd1*) |
| 13439 | ld_shlibs=no |
| 13440 | ;; |
| 13441 | |
| 13442 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 13443 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 13444 | # does not break anything, and helps significantly (at the cost of a little |
| 13445 | # extra space). |
| 13446 | freebsd2.2*) |
| 13447 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 13448 | hardcode_libdir_flag_spec='-R$libdir' |
| 13449 | hardcode_direct=yes |
| 13450 | hardcode_shlibpath_var=no |
| 13451 | ;; |
| 13452 | |
| 13453 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 13454 | freebsd2*) |
| 13455 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13456 | hardcode_direct=yes |
| 13457 | hardcode_minus_L=yes |
| 13458 | hardcode_shlibpath_var=no |
| 13459 | ;; |
| 13460 | |
| 13461 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 13462 | freebsd* | dragonfly*) |
| 13463 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 13464 | hardcode_libdir_flag_spec='-R$libdir' |
| 13465 | hardcode_direct=yes |
| 13466 | hardcode_shlibpath_var=no |
| 13467 | ;; |
| 13468 | |
| 13469 | hpux9*) |
| 13470 | if test "$GCC" = yes; then |
| 13471 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 13472 | else |
| 13473 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 13474 | fi |
| 13475 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 13476 | hardcode_libdir_separator=: |
| 13477 | hardcode_direct=yes |
| 13478 | |
| 13479 | # hardcode_minus_L: Not really in the search PATH, |
| 13480 | # but as the default location of the library. |
| 13481 | hardcode_minus_L=yes |
| 13482 | export_dynamic_flag_spec='${wl}-E' |
| 13483 | ;; |
| 13484 | |
| 13485 | hpux10*) |
| 13486 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 13487 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 13488 | else |
| 13489 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 13490 | fi |
| 13491 | if test "$with_gnu_ld" = no; then |
| 13492 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 13493 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 13494 | hardcode_libdir_separator=: |
| 13495 | hardcode_direct=yes |
| 13496 | hardcode_direct_absolute=yes |
| 13497 | export_dynamic_flag_spec='${wl}-E' |
| 13498 | # hardcode_minus_L: Not really in the search PATH, |
| 13499 | # but as the default location of the library. |
| 13500 | hardcode_minus_L=yes |
| 13501 | fi |
| 13502 | ;; |
| 13503 | |
| 13504 | hpux11*) |
| 13505 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 13506 | case $host_cpu in |
| 13507 | hppa*64*) |
| 13508 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13509 | ;; |
| 13510 | ia64*) |
| 13511 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 13512 | ;; |
| 13513 | *) |
| 13514 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 13515 | ;; |
| 13516 | esac |
| 13517 | else |
| 13518 | case $host_cpu in |
| 13519 | hppa*64*) |
| 13520 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13521 | ;; |
| 13522 | ia64*) |
| 13523 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 13524 | ;; |
| 13525 | *) |
| 13526 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 13527 | ;; |
| 13528 | esac |
| 13529 | fi |
| 13530 | if test "$with_gnu_ld" = no; then |
| 13531 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 13532 | hardcode_libdir_separator=: |
| 13533 | |
| 13534 | case $host_cpu in |
| 13535 | hppa*64*|ia64*) |
| 13536 | hardcode_direct=no |
| 13537 | hardcode_shlibpath_var=no |
| 13538 | ;; |
| 13539 | *) |
| 13540 | hardcode_direct=yes |
| 13541 | hardcode_direct_absolute=yes |
| 13542 | export_dynamic_flag_spec='${wl}-E' |
| 13543 | |
| 13544 | # hardcode_minus_L: Not really in the search PATH, |
| 13545 | # but as the default location of the library. |
| 13546 | hardcode_minus_L=yes |
| 13547 | ;; |
| 13548 | esac |
| 13549 | fi |
| 13550 | ;; |
| 13551 | |
| 13552 | irix5* | irix6* | nonstopux*) |
| 13553 | if test "$GCC" = yes; then |
| 13554 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 13555 | # Try to use the -exported_symbol ld option, if it does not |
| 13556 | # work, assume that -exports_file does not work either and |
| 13557 | # implicitly export all symbols. |
| 13558 | save_LDFLAGS="$LDFLAGS" |
| 13559 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 13560 | cat >conftest.$ac_ext <<_ACEOF |
| 13561 | int foo(void) {} |
| 13562 | _ACEOF |
| 13563 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13564 | if { (ac_try="$ac_link" |
| 13565 | case "(($ac_try" in |
| 13566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13567 | *) ac_try_echo=$ac_try;; |
| 13568 | esac |
| 13569 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13570 | $as_echo "$ac_try_echo") >&5 |
| 13571 | (eval "$ac_link") 2>conftest.er1 |
| 13572 | ac_status=$? |
| 13573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13574 | rm -f conftest.er1 |
| 13575 | cat conftest.err >&5 |
| 13576 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13577 | (exit $ac_status); } && { |
| 13578 | test -z "$ac_c_werror_flag" || |
| 13579 | test ! -s conftest.err |
| 13580 | } && test -s conftest$ac_exeext && { |
| 13581 | test "$cross_compiling" = yes || |
| 13582 | $as_test_x conftest$ac_exeext |
| 13583 | }; then |
| 13584 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
| 13585 | |
| 13586 | else |
| 13587 | $as_echo "$as_me: failed program was:" >&5 |
| 13588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13589 | |
| 13590 | |
| 13591 | fi |
| 13592 | |
| 13593 | rm -rf conftest.dSYM |
| 13594 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 13595 | conftest$ac_exeext conftest.$ac_ext |
| 13596 | LDFLAGS="$save_LDFLAGS" |
| 13597 | else |
| 13598 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 13599 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
| 13600 | fi |
| 13601 | archive_cmds_need_lc='no' |
| 13602 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 13603 | hardcode_libdir_separator=: |
| 13604 | inherit_rpath=yes |
| 13605 | link_all_deplibs=yes |
| 13606 | ;; |
| 13607 | |
| 13608 | netbsd*) |
| 13609 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 13610 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 13611 | else |
| 13612 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 13613 | fi |
| 13614 | hardcode_libdir_flag_spec='-R$libdir' |
| 13615 | hardcode_direct=yes |
| 13616 | hardcode_shlibpath_var=no |
| 13617 | ;; |
| 13618 | |
| 13619 | newsos6) |
| 13620 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13621 | hardcode_direct=yes |
| 13622 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 13623 | hardcode_libdir_separator=: |
| 13624 | hardcode_shlibpath_var=no |
| 13625 | ;; |
| 13626 | |
| 13627 | *nto* | *qnx*) |
| 13628 | ;; |
| 13629 | |
| 13630 | openbsd*) |
| 13631 | if test -f /usr/libexec/ld.so; then |
| 13632 | hardcode_direct=yes |
| 13633 | hardcode_shlibpath_var=no |
| 13634 | hardcode_direct_absolute=yes |
| 13635 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13636 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 13637 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 13638 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 13639 | export_dynamic_flag_spec='${wl}-E' |
| 13640 | else |
| 13641 | case $host_os in |
| 13642 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 13643 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13644 | hardcode_libdir_flag_spec='-R$libdir' |
| 13645 | ;; |
| 13646 | *) |
| 13647 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 13648 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 13649 | ;; |
| 13650 | esac |
| 13651 | fi |
| 13652 | else |
| 13653 | ld_shlibs=no |
| 13654 | fi |
| 13655 | ;; |
| 13656 | |
| 13657 | os2*) |
| 13658 | hardcode_libdir_flag_spec='-L$libdir' |
| 13659 | hardcode_minus_L=yes |
| 13660 | allow_undefined_flag=unsupported |
| 13661 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
| 13662 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 13663 | ;; |
| 13664 | |
| 13665 | osf3*) |
| 13666 | if test "$GCC" = yes; then |
| 13667 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 13668 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 13669 | else |
| 13670 | allow_undefined_flag=' -expect_unresolved \*' |
| 13671 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 13672 | fi |
| 13673 | archive_cmds_need_lc='no' |
| 13674 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 13675 | hardcode_libdir_separator=: |
| 13676 | ;; |
| 13677 | |
| 13678 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 13679 | if test "$GCC" = yes; then |
| 13680 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 13681 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 13682 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 13683 | else |
| 13684 | allow_undefined_flag=' -expect_unresolved \*' |
| 13685 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 13686 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
| 13687 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
| 13688 | |
| 13689 | # Both c and cxx compiler support -rpath directly |
| 13690 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 13691 | fi |
| 13692 | archive_cmds_need_lc='no' |
| 13693 | hardcode_libdir_separator=: |
| 13694 | ;; |
| 13695 | |
| 13696 | solaris*) |
| 13697 | no_undefined_flag=' -z defs' |
| 13698 | if test "$GCC" = yes; then |
| 13699 | wlarc='${wl}' |
| 13700 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13701 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 13702 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 13703 | else |
| 13704 | case `$CC -V 2>&1` in |
| 13705 | *"Compilers 5.0"*) |
| 13706 | wlarc='' |
| 13707 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13708 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 13709 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 13710 | ;; |
| 13711 | *) |
| 13712 | wlarc='${wl}' |
| 13713 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13714 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 13715 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 13716 | ;; |
| 13717 | esac |
| 13718 | fi |
| 13719 | hardcode_libdir_flag_spec='-R$libdir' |
| 13720 | hardcode_shlibpath_var=no |
| 13721 | case $host_os in |
| 13722 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 13723 | *) |
| 13724 | # The compiler driver will combine and reorder linker options, |
| 13725 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 13726 | # but is careful enough not to reorder. |
| 13727 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 13728 | if test "$GCC" = yes; then |
| 13729 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 13730 | else |
| 13731 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 13732 | fi |
| 13733 | ;; |
| 13734 | esac |
| 13735 | link_all_deplibs=yes |
| 13736 | ;; |
| 13737 | |
| 13738 | sunos4*) |
| 13739 | if test "x$host_vendor" = xsequent; then |
| 13740 | # Use $CC to link under sequent, because it throws in some extra .o |
| 13741 | # files that make .init and .fini sections work. |
| 13742 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13743 | else |
| 13744 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 13745 | fi |
| 13746 | hardcode_libdir_flag_spec='-L$libdir' |
| 13747 | hardcode_direct=yes |
| 13748 | hardcode_minus_L=yes |
| 13749 | hardcode_shlibpath_var=no |
| 13750 | ;; |
| 13751 | |
| 13752 | sysv4) |
| 13753 | case $host_vendor in |
| 13754 | sni) |
| 13755 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13756 | hardcode_direct=yes # is this really true??? |
| 13757 | ;; |
| 13758 | siemens) |
| 13759 | ## LD is ld it makes a PLAMLIB |
| 13760 | ## CC just makes a GrossModule. |
| 13761 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 13762 | reload_cmds='$CC -r -o $output$reload_objs' |
| 13763 | hardcode_direct=no |
| 13764 | ;; |
| 13765 | motorola) |
| 13766 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13767 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 13768 | ;; |
| 13769 | esac |
| 13770 | runpath_var='LD_RUN_PATH' |
| 13771 | hardcode_shlibpath_var=no |
| 13772 | ;; |
| 13773 | |
| 13774 | sysv4.3*) |
| 13775 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13776 | hardcode_shlibpath_var=no |
| 13777 | export_dynamic_flag_spec='-Bexport' |
| 13778 | ;; |
| 13779 | |
| 13780 | sysv4*MP*) |
| 13781 | if test -d /usr/nec; then |
| 13782 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13783 | hardcode_shlibpath_var=no |
| 13784 | runpath_var=LD_RUN_PATH |
| 13785 | hardcode_runpath_var=yes |
| 13786 | ld_shlibs=yes |
| 13787 | fi |
| 13788 | ;; |
| 13789 | |
| 13790 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 13791 | no_undefined_flag='${wl}-z,text' |
| 13792 | archive_cmds_need_lc=no |
| 13793 | hardcode_shlibpath_var=no |
| 13794 | runpath_var='LD_RUN_PATH' |
| 13795 | |
| 13796 | if test "$GCC" = yes; then |
| 13797 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13798 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13799 | else |
| 13800 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13801 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13802 | fi |
| 13803 | ;; |
| 13804 | |
| 13805 | sysv5* | sco3.2v5* | sco5v6*) |
| 13806 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 13807 | # link with -lc, and that would cause any symbols used from libc to |
| 13808 | # always be unresolved, which means just about no library would |
| 13809 | # ever link correctly. If we're not using GNU ld we use -z text |
| 13810 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 13811 | # as -z defs. |
| 13812 | no_undefined_flag='${wl}-z,text' |
| 13813 | allow_undefined_flag='${wl}-z,nodefs' |
| 13814 | archive_cmds_need_lc=no |
| 13815 | hardcode_shlibpath_var=no |
| 13816 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
| 13817 | hardcode_libdir_separator=':' |
| 13818 | link_all_deplibs=yes |
| 13819 | export_dynamic_flag_spec='${wl}-Bexport' |
| 13820 | runpath_var='LD_RUN_PATH' |
| 13821 | |
| 13822 | if test "$GCC" = yes; then |
| 13823 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13824 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13825 | else |
| 13826 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13827 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13828 | fi |
| 13829 | ;; |
| 13830 | |
| 13831 | uts4*) |
| 13832 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13833 | hardcode_libdir_flag_spec='-L$libdir' |
| 13834 | hardcode_shlibpath_var=no |
| 13835 | ;; |
| 13836 | |
| 13837 | *) |
| 13838 | ld_shlibs=no |
| 13839 | ;; |
| 13840 | esac |
| 13841 | |
| 13842 | if test x$host_vendor = xsni; then |
| 13843 | case $host in |
| 13844 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 13845 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 13846 | ;; |
| 13847 | esac |
| 13848 | fi |
| 13849 | fi |
| 13850 | |
| 13851 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 13852 | $as_echo "$ld_shlibs" >&6; } |
| 13853 | test "$ld_shlibs" = no && can_build_shared=no |
| 13854 | |
| 13855 | with_gnu_ld=$with_gnu_ld |
| 13856 | |
| 13857 | |
| 13858 | |
| 13859 | |
| 13860 | |
| 13861 | |
| 13862 | |
| 13863 | |
| 13864 | |
| 13865 | |
| 13866 | |
| 13867 | |
| 13868 | |
| 13869 | |
| 13870 | |
| 13871 | # |
| 13872 | # Do we need to explicitly link libc? |
| 13873 | # |
| 13874 | case "x$archive_cmds_need_lc" in |
| 13875 | x|xyes) |
| 13876 | # Assume -lc should be added |
| 13877 | archive_cmds_need_lc=yes |
| 13878 | |
| 13879 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 13880 | case $archive_cmds in |
| 13881 | *'~'*) |
| 13882 | # FIXME: we may have to deal with multi-command sequences. |
| 13883 | ;; |
| 13884 | '$CC '*) |
| 13885 | # Test whether the compiler implicitly links with -lc since on some |
| 13886 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 13887 | # to ld, don't add -lc before -lgcc. |
| 13888 | { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 13889 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 13890 | $RM conftest* |
| 13891 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13892 | |
| 13893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13894 | (eval $ac_compile) 2>&5 |
| 13895 | ac_status=$? |
| 13896 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13897 | (exit $ac_status); } 2>conftest.err; then |
| 13898 | soname=conftest |
| 13899 | lib=conftest |
| 13900 | libobjs=conftest.$ac_objext |
| 13901 | deplibs= |
| 13902 | wl=$lt_prog_compiler_wl |
| 13903 | pic_flag=$lt_prog_compiler_pic |
| 13904 | compiler_flags=-v |
| 13905 | linker_flags=-v |
| 13906 | verstring= |
| 13907 | output_objdir=. |
| 13908 | libname=conftest |
| 13909 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 13910 | allow_undefined_flag= |
| 13911 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 13912 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 13913 | ac_status=$? |
| 13914 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13915 | (exit $ac_status); } |
| 13916 | then |
| 13917 | archive_cmds_need_lc=no |
| 13918 | else |
| 13919 | archive_cmds_need_lc=yes |
| 13920 | fi |
| 13921 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 13922 | else |
| 13923 | cat conftest.err 1>&5 |
| 13924 | fi |
| 13925 | $RM conftest* |
| 13926 | { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 13927 | $as_echo "$archive_cmds_need_lc" >&6; } |
| 13928 | ;; |
| 13929 | esac |
| 13930 | fi |
| 13931 | ;; |
| 13932 | esac |
| 13933 | |
| 13934 | |
| 13935 | |
| 13936 | |
| 13937 | |
| 13938 | |
| 13939 | |
| 13940 | |
| 13941 | |
| 13942 | |
| 13943 | |
| 13944 | |
| 13945 | |
| 13946 | |
| 13947 | |
| 13948 | |
| 13949 | |
| 13950 | |
| 13951 | |
| 13952 | |
| 13953 | |
| 13954 | |
| 13955 | |
| 13956 | |
| 13957 | |
| 13958 | |
| 13959 | |
| 13960 | |
| 13961 | |
| 13962 | |
| 13963 | |
| 13964 | |
| 13965 | |
| 13966 | |
| 13967 | |
| 13968 | |
| 13969 | |
| 13970 | |
| 13971 | |
| 13972 | |
| 13973 | |
| 13974 | |
| 13975 | |
| 13976 | |
| 13977 | |
| 13978 | |
| 13979 | |
| 13980 | |
| 13981 | |
| 13982 | |
| 13983 | |
| 13984 | |
| 13985 | |
| 13986 | |
| 13987 | |
| 13988 | |
| 13989 | |
| 13990 | |
| 13991 | |
| 13992 | |
| 13993 | |
| 13994 | |
| 13995 | |
| 13996 | |
| 13997 | |
| 13998 | |
| 13999 | |
| 14000 | |
| 14001 | |
| 14002 | |
| 14003 | |
| 14004 | |
| 14005 | |
| 14006 | |
| 14007 | |
| 14008 | |
| 14009 | |
| 14010 | |
| 14011 | |
| 14012 | |
| 14013 | |
| 14014 | |
| 14015 | |
| 14016 | |
| 14017 | |
| 14018 | |
| 14019 | |
| 14020 | |
| 14021 | |
| 14022 | |
| 14023 | |
| 14024 | |
| 14025 | |
| 14026 | |
| 14027 | |
| 14028 | |
| 14029 | |
| 14030 | |
| 14031 | |
| 14032 | |
| 14033 | |
| 14034 | |
| 14035 | |
| 14036 | |
| 14037 | |
| 14038 | |
| 14039 | |
| 14040 | |
| 14041 | |
| 14042 | |
| 14043 | |
| 14044 | |
| 14045 | |
| 14046 | |
| 14047 | |
| 14048 | |
| 14049 | |
| 14050 | |
| 14051 | |
| 14052 | |
| 14053 | |
| 14054 | |
| 14055 | |
| 14056 | |
| 14057 | |
| 14058 | |
| 14059 | |
| 14060 | |
| 14061 | |
| 14062 | |
| 14063 | |
| 14064 | |
| 14065 | |
| 14066 | |
| 14067 | |
| 14068 | |
| 14069 | |
| 14070 | |
| 14071 | |
| 14072 | |
| 14073 | |
| 14074 | |
| 14075 | |
| 14076 | |
| 14077 | |
| 14078 | |
| 14079 | |
| 14080 | |
| 14081 | |
| 14082 | |
| 14083 | |
| 14084 | |
| 14085 | |
| 14086 | |
| 14087 | |
| 14088 | |
| 14089 | |
| 14090 | { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 14091 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 14092 | |
| 14093 | if test "$GCC" = yes; then |
| 14094 | case $host_os in |
| 14095 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 14096 | *) lt_awk_arg="/^libraries:/" ;; |
| 14097 | esac |
| 14098 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 14099 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
| 14100 | # if the path contains ";" then we assume it to be the separator |
| 14101 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 14102 | # assumed that no part of a normal pathname contains ";" but that should |
| 14103 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 14104 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
| 14105 | else |
| 14106 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 14107 | fi |
| 14108 | # Ok, now we have the path, separated by spaces, we can step through it |
| 14109 | # and add multilib dir if necessary. |
| 14110 | lt_tmp_lt_search_path_spec= |
| 14111 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 14112 | for lt_sys_path in $lt_search_path_spec; do |
| 14113 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 14114 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 14115 | else |
| 14116 | test -d "$lt_sys_path" && \ |
| 14117 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 14118 | fi |
| 14119 | done |
| 14120 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
| 14121 | BEGIN {RS=" "; FS="/|\n";} { |
| 14122 | lt_foo=""; |
| 14123 | lt_count=0; |
| 14124 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 14125 | if ($lt_i != "" && $lt_i != ".") { |
| 14126 | if ($lt_i == "..") { |
| 14127 | lt_count++; |
| 14128 | } else { |
| 14129 | if (lt_count == 0) { |
| 14130 | lt_foo="/" $lt_i lt_foo; |
| 14131 | } else { |
| 14132 | lt_count--; |
| 14133 | } |
| 14134 | } |
| 14135 | } |
| 14136 | } |
| 14137 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 14138 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 14139 | }'` |
| 14140 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
| 14141 | else |
| 14142 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 14143 | fi |
| 14144 | library_names_spec= |
| 14145 | libname_spec='lib$name' |
| 14146 | soname_spec= |
| 14147 | shrext_cmds=".so" |
| 14148 | postinstall_cmds= |
| 14149 | postuninstall_cmds= |
| 14150 | finish_cmds= |
| 14151 | finish_eval= |
| 14152 | shlibpath_var= |
| 14153 | shlibpath_overrides_runpath=unknown |
| 14154 | version_type=none |
| 14155 | dynamic_linker="$host_os ld.so" |
| 14156 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 14157 | need_lib_prefix=unknown |
| 14158 | hardcode_into_libs=no |
| 14159 | |
| 14160 | # when you set need_version to no, make sure it does not cause -set_version |
| 14161 | # flags to be left without arguments |
| 14162 | need_version=unknown |
| 14163 | |
| 14164 | case $host_os in |
| 14165 | aix3*) |
| 14166 | version_type=linux |
| 14167 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 14168 | shlibpath_var=LIBPATH |
| 14169 | |
| 14170 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 14171 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14172 | ;; |
| 14173 | |
| 14174 | aix[4-9]*) |
| 14175 | version_type=linux |
| 14176 | need_lib_prefix=no |
| 14177 | need_version=no |
| 14178 | hardcode_into_libs=yes |
| 14179 | if test "$host_cpu" = ia64; then |
| 14180 | # AIX 5 supports IA64 |
| 14181 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 14182 | shlibpath_var=LD_LIBRARY_PATH |
| 14183 | else |
| 14184 | # With GCC up to 2.95.x, collect2 would create an import file |
| 14185 | # for dependence libraries. The import file would start with |
| 14186 | # the line `#! .'. This would cause the generated library to |
| 14187 | # depend on `.', always an invalid library. This was fixed in |
| 14188 | # development snapshots of GCC prior to 3.0. |
| 14189 | case $host_os in |
| 14190 | aix4 | aix4.[01] | aix4.[01].*) |
| 14191 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 14192 | echo ' yes ' |
| 14193 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 14194 | : |
| 14195 | else |
| 14196 | can_build_shared=no |
| 14197 | fi |
| 14198 | ;; |
| 14199 | esac |
| 14200 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 14201 | # soname into executable. Probably we can add versioning support to |
| 14202 | # collect2, so additional links can be useful in future. |
| 14203 | if test "$aix_use_runtimelinking" = yes; then |
| 14204 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 14205 | # instead of lib<name>.a to let people know that these are not |
| 14206 | # typical AIX shared libraries. |
| 14207 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14208 | else |
| 14209 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 14210 | # and later when we are not doing run time linking. |
| 14211 | library_names_spec='${libname}${release}.a $libname.a' |
| 14212 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14213 | fi |
| 14214 | shlibpath_var=LIBPATH |
| 14215 | fi |
| 14216 | ;; |
| 14217 | |
| 14218 | amigaos*) |
| 14219 | case $host_cpu in |
| 14220 | powerpc) |
| 14221 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 14222 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 14223 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14224 | ;; |
| 14225 | m68k) |
| 14226 | library_names_spec='$libname.ixlibrary $libname.a' |
| 14227 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 14228 | 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' |
| 14229 | ;; |
| 14230 | esac |
| 14231 | ;; |
| 14232 | |
| 14233 | beos*) |
| 14234 | library_names_spec='${libname}${shared_ext}' |
| 14235 | dynamic_linker="$host_os ld.so" |
| 14236 | shlibpath_var=LIBRARY_PATH |
| 14237 | ;; |
| 14238 | |
| 14239 | bsdi[45]*) |
| 14240 | version_type=linux |
| 14241 | need_version=no |
| 14242 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14243 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14244 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 14245 | shlibpath_var=LD_LIBRARY_PATH |
| 14246 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 14247 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 14248 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 14249 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 14250 | # libtool to hard-code these into programs |
| 14251 | ;; |
| 14252 | |
| 14253 | cygwin* | mingw* | pw32* | cegcc*) |
| 14254 | version_type=windows |
| 14255 | shrext_cmds=".dll" |
| 14256 | need_version=no |
| 14257 | need_lib_prefix=no |
| 14258 | |
| 14259 | case $GCC,$host_os in |
| 14260 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
| 14261 | library_names_spec='$libname.dll.a' |
| 14262 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 14263 | postinstall_cmds='base_file=`basename \${file}`~ |
| 14264 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 14265 | dldir=$destdir/`dirname \$dlpath`~ |
| 14266 | test -d \$dldir || mkdir -p \$dldir~ |
| 14267 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 14268 | chmod a+x \$dldir/$dlname~ |
| 14269 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 14270 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 14271 | fi' |
| 14272 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 14273 | dlpath=$dir/\$dldll~ |
| 14274 | $RM \$dlpath' |
| 14275 | shlibpath_overrides_runpath=yes |
| 14276 | |
| 14277 | case $host_os in |
| 14278 | cygwin*) |
| 14279 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 14280 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 14281 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 14282 | ;; |
| 14283 | mingw* | cegcc*) |
| 14284 | # MinGW DLLs use traditional 'lib' prefix |
| 14285 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 14286 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 14287 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 14288 | # It is most probably a Windows format PATH printed by |
| 14289 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 14290 | # path with ; separators, and with drive letters. We can handle the |
| 14291 | # drive letters (cygwin fileutils understands them), so leave them, |
| 14292 | # especially as we might pass files found there to a mingw objdump, |
| 14293 | # which wouldn't understand a cygwinified path. Ahh. |
| 14294 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 14295 | else |
| 14296 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 14297 | fi |
| 14298 | ;; |
| 14299 | pw32*) |
| 14300 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 14301 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 14302 | ;; |
| 14303 | esac |
| 14304 | ;; |
| 14305 | |
| 14306 | *) |
| 14307 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 14308 | ;; |
| 14309 | esac |
| 14310 | dynamic_linker='Win32 ld.exe' |
| 14311 | # FIXME: first we should search . and the directory the executable is in |
| 14312 | shlibpath_var=PATH |
| 14313 | ;; |
| 14314 | |
| 14315 | darwin* | rhapsody*) |
| 14316 | dynamic_linker="$host_os dyld" |
| 14317 | version_type=darwin |
| 14318 | need_lib_prefix=no |
| 14319 | need_version=no |
| 14320 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 14321 | soname_spec='${libname}${release}${major}$shared_ext' |
| 14322 | shlibpath_overrides_runpath=yes |
| 14323 | shlibpath_var=DYLD_LIBRARY_PATH |
| 14324 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 14325 | |
| 14326 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 14327 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 14328 | ;; |
| 14329 | |
| 14330 | dgux*) |
| 14331 | version_type=linux |
| 14332 | need_lib_prefix=no |
| 14333 | need_version=no |
| 14334 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 14335 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14336 | shlibpath_var=LD_LIBRARY_PATH |
| 14337 | ;; |
| 14338 | |
| 14339 | freebsd1*) |
| 14340 | dynamic_linker=no |
| 14341 | ;; |
| 14342 | |
| 14343 | freebsd* | dragonfly*) |
| 14344 | # DragonFly does not have aout. When/if they implement a new |
| 14345 | # versioning mechanism, adjust this. |
| 14346 | if test -x /usr/bin/objformat; then |
| 14347 | objformat=`/usr/bin/objformat` |
| 14348 | else |
| 14349 | case $host_os in |
| 14350 | freebsd[123]*) objformat=aout ;; |
| 14351 | *) objformat=elf ;; |
| 14352 | esac |
| 14353 | fi |
| 14354 | version_type=freebsd-$objformat |
| 14355 | case $version_type in |
| 14356 | freebsd-elf*) |
| 14357 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14358 | need_version=no |
| 14359 | need_lib_prefix=no |
| 14360 | ;; |
| 14361 | freebsd-*) |
| 14362 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 14363 | need_version=yes |
| 14364 | ;; |
| 14365 | esac |
| 14366 | shlibpath_var=LD_LIBRARY_PATH |
| 14367 | case $host_os in |
| 14368 | freebsd2*) |
| 14369 | shlibpath_overrides_runpath=yes |
| 14370 | ;; |
| 14371 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 14372 | shlibpath_overrides_runpath=yes |
| 14373 | hardcode_into_libs=yes |
| 14374 | ;; |
| 14375 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 14376 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 14377 | shlibpath_overrides_runpath=no |
| 14378 | hardcode_into_libs=yes |
| 14379 | ;; |
| 14380 | *) # from 4.6 on, and DragonFly |
| 14381 | shlibpath_overrides_runpath=yes |
| 14382 | hardcode_into_libs=yes |
| 14383 | ;; |
| 14384 | esac |
| 14385 | ;; |
| 14386 | |
| 14387 | gnu*) |
| 14388 | version_type=linux |
| 14389 | need_lib_prefix=no |
| 14390 | need_version=no |
| 14391 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 14392 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14393 | shlibpath_var=LD_LIBRARY_PATH |
| 14394 | hardcode_into_libs=yes |
| 14395 | ;; |
| 14396 | |
| 14397 | hpux9* | hpux10* | hpux11*) |
| 14398 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 14399 | # link against other versions. |
| 14400 | version_type=sunos |
| 14401 | need_lib_prefix=no |
| 14402 | need_version=no |
| 14403 | case $host_cpu in |
| 14404 | ia64*) |
| 14405 | shrext_cmds='.so' |
| 14406 | hardcode_into_libs=yes |
| 14407 | dynamic_linker="$host_os dld.so" |
| 14408 | shlibpath_var=LD_LIBRARY_PATH |
| 14409 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 14410 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14411 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14412 | if test "X$HPUX_IA64_MODE" = X32; then |
| 14413 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 14414 | else |
| 14415 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 14416 | fi |
| 14417 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 14418 | ;; |
| 14419 | hppa*64*) |
| 14420 | shrext_cmds='.sl' |
| 14421 | hardcode_into_libs=yes |
| 14422 | dynamic_linker="$host_os dld.sl" |
| 14423 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 14424 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 14425 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14426 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14427 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 14428 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 14429 | ;; |
| 14430 | *) |
| 14431 | shrext_cmds='.sl' |
| 14432 | dynamic_linker="$host_os dld.sl" |
| 14433 | shlibpath_var=SHLIB_PATH |
| 14434 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 14435 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14436 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14437 | ;; |
| 14438 | esac |
| 14439 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 14440 | postinstall_cmds='chmod 555 $lib' |
| 14441 | ;; |
| 14442 | |
| 14443 | interix[3-9]*) |
| 14444 | version_type=linux |
| 14445 | need_lib_prefix=no |
| 14446 | need_version=no |
| 14447 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14448 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14449 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 14450 | shlibpath_var=LD_LIBRARY_PATH |
| 14451 | shlibpath_overrides_runpath=no |
| 14452 | hardcode_into_libs=yes |
| 14453 | ;; |
| 14454 | |
| 14455 | irix5* | irix6* | nonstopux*) |
| 14456 | case $host_os in |
| 14457 | nonstopux*) version_type=nonstopux ;; |
| 14458 | *) |
| 14459 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 14460 | version_type=linux |
| 14461 | else |
| 14462 | version_type=irix |
| 14463 | fi ;; |
| 14464 | esac |
| 14465 | need_lib_prefix=no |
| 14466 | need_version=no |
| 14467 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14468 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14469 | case $host_os in |
| 14470 | irix5* | nonstopux*) |
| 14471 | libsuff= shlibsuff= |
| 14472 | ;; |
| 14473 | *) |
| 14474 | case $LD in # libtool.m4 will add one of these switches to LD |
| 14475 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 14476 | libsuff= shlibsuff= libmagic=32-bit;; |
| 14477 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 14478 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 14479 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 14480 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 14481 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 14482 | esac |
| 14483 | ;; |
| 14484 | esac |
| 14485 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 14486 | shlibpath_overrides_runpath=no |
| 14487 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 14488 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 14489 | hardcode_into_libs=yes |
| 14490 | ;; |
| 14491 | |
| 14492 | # No shared lib support for Linux oldld, aout, or coff. |
| 14493 | linux*oldld* | linux*aout* | linux*coff*) |
| 14494 | dynamic_linker=no |
| 14495 | ;; |
| 14496 | |
| 14497 | # This must be Linux ELF. |
| 14498 | linux* | k*bsd*-gnu) |
| 14499 | version_type=linux |
| 14500 | need_lib_prefix=no |
| 14501 | need_version=no |
| 14502 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14503 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14504 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 14505 | shlibpath_var=LD_LIBRARY_PATH |
| 14506 | shlibpath_overrides_runpath=no |
| 14507 | # Some binutils ld are patched to set DT_RUNPATH |
| 14508 | save_LDFLAGS=$LDFLAGS |
| 14509 | save_libdir=$libdir |
| 14510 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 14511 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 14512 | cat >conftest.$ac_ext <<_ACEOF |
| 14513 | /* confdefs.h. */ |
| 14514 | _ACEOF |
| 14515 | cat confdefs.h >>conftest.$ac_ext |
| 14516 | cat >>conftest.$ac_ext <<_ACEOF |
| 14517 | /* end confdefs.h. */ |
| 14518 | |
| 14519 | int |
| 14520 | main () |
| 14521 | { |
| 14522 | |
| 14523 | ; |
| 14524 | return 0; |
| 14525 | } |
| 14526 | _ACEOF |
| 14527 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14528 | if { (ac_try="$ac_link" |
| 14529 | case "(($ac_try" in |
| 14530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14531 | *) ac_try_echo=$ac_try;; |
| 14532 | esac |
| 14533 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14534 | $as_echo "$ac_try_echo") >&5 |
| 14535 | (eval "$ac_link") 2>conftest.er1 |
| 14536 | ac_status=$? |
| 14537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14538 | rm -f conftest.er1 |
| 14539 | cat conftest.err >&5 |
| 14540 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14541 | (exit $ac_status); } && { |
| 14542 | test -z "$ac_c_werror_flag" || |
| 14543 | test ! -s conftest.err |
| 14544 | } && test -s conftest$ac_exeext && { |
| 14545 | test "$cross_compiling" = yes || |
| 14546 | $as_test_x conftest$ac_exeext |
| 14547 | }; then |
| 14548 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then |
| 14549 | shlibpath_overrides_runpath=yes |
| 14550 | fi |
| 14551 | |
| 14552 | else |
| 14553 | $as_echo "$as_me: failed program was:" >&5 |
| 14554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14555 | |
| 14556 | |
| 14557 | fi |
| 14558 | |
| 14559 | rm -rf conftest.dSYM |
| 14560 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 14561 | conftest$ac_exeext conftest.$ac_ext |
| 14562 | LDFLAGS=$save_LDFLAGS |
| 14563 | libdir=$save_libdir |
| 14564 | |
| 14565 | # This implies no fast_install, which is unacceptable. |
| 14566 | # Some rework will be needed to allow for fast_install |
| 14567 | # before this can be enabled. |
| 14568 | hardcode_into_libs=yes |
| 14569 | |
| 14570 | # Add ABI-specific directories to the system library path. |
| 14571 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" |
| 14572 | |
| 14573 | # Append ld.so.conf contents to the search path |
| 14574 | if test -f /etc/ld.so.conf; then |
| 14575 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
| 14576 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
| 14577 | fi |
| 14578 | |
| 14579 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 14580 | # powerpc, because MkLinux only supported shared libraries with the |
| 14581 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 14582 | # most powerpc-linux boxes support dynamic linking these days and |
| 14583 | # people can always --disable-shared, the test was removed, and we |
| 14584 | # assume the GNU/Linux dynamic linker is in use. |
| 14585 | dynamic_linker='GNU/Linux ld.so' |
| 14586 | ;; |
| 14587 | |
| 14588 | netbsd*) |
| 14589 | version_type=sunos |
| 14590 | need_lib_prefix=no |
| 14591 | need_version=no |
| 14592 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 14593 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14594 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14595 | dynamic_linker='NetBSD (a.out) ld.so' |
| 14596 | else |
| 14597 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14598 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14599 | dynamic_linker='NetBSD ld.elf_so' |
| 14600 | fi |
| 14601 | shlibpath_var=LD_LIBRARY_PATH |
| 14602 | shlibpath_overrides_runpath=yes |
| 14603 | hardcode_into_libs=yes |
| 14604 | ;; |
| 14605 | |
| 14606 | newsos6) |
| 14607 | version_type=linux |
| 14608 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14609 | shlibpath_var=LD_LIBRARY_PATH |
| 14610 | shlibpath_overrides_runpath=yes |
| 14611 | ;; |
| 14612 | |
| 14613 | *nto* | *qnx*) |
| 14614 | version_type=qnx |
| 14615 | need_lib_prefix=no |
| 14616 | need_version=no |
| 14617 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14618 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14619 | shlibpath_var=LD_LIBRARY_PATH |
| 14620 | shlibpath_overrides_runpath=no |
| 14621 | hardcode_into_libs=yes |
| 14622 | dynamic_linker='ldqnx.so' |
| 14623 | ;; |
| 14624 | |
| 14625 | openbsd*) |
| 14626 | version_type=sunos |
| 14627 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 14628 | need_lib_prefix=no |
| 14629 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 14630 | case $host_os in |
| 14631 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 14632 | *) need_version=no ;; |
| 14633 | esac |
| 14634 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14635 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14636 | shlibpath_var=LD_LIBRARY_PATH |
| 14637 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 14638 | case $host_os in |
| 14639 | openbsd2.[89] | openbsd2.[89].*) |
| 14640 | shlibpath_overrides_runpath=no |
| 14641 | ;; |
| 14642 | *) |
| 14643 | shlibpath_overrides_runpath=yes |
| 14644 | ;; |
| 14645 | esac |
| 14646 | else |
| 14647 | shlibpath_overrides_runpath=yes |
| 14648 | fi |
| 14649 | ;; |
| 14650 | |
| 14651 | os2*) |
| 14652 | libname_spec='$name' |
| 14653 | shrext_cmds=".dll" |
| 14654 | need_lib_prefix=no |
| 14655 | library_names_spec='$libname${shared_ext} $libname.a' |
| 14656 | dynamic_linker='OS/2 ld.exe' |
| 14657 | shlibpath_var=LIBPATH |
| 14658 | ;; |
| 14659 | |
| 14660 | osf3* | osf4* | osf5*) |
| 14661 | version_type=osf |
| 14662 | need_lib_prefix=no |
| 14663 | need_version=no |
| 14664 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14665 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14666 | shlibpath_var=LD_LIBRARY_PATH |
| 14667 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 14668 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 14669 | ;; |
| 14670 | |
| 14671 | rdos*) |
| 14672 | dynamic_linker=no |
| 14673 | ;; |
| 14674 | |
| 14675 | solaris*) |
| 14676 | version_type=linux |
| 14677 | need_lib_prefix=no |
| 14678 | need_version=no |
| 14679 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14680 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14681 | shlibpath_var=LD_LIBRARY_PATH |
| 14682 | shlibpath_overrides_runpath=yes |
| 14683 | hardcode_into_libs=yes |
| 14684 | # ldd complains unless libraries are executable |
| 14685 | postinstall_cmds='chmod +x $lib' |
| 14686 | ;; |
| 14687 | |
| 14688 | sunos4*) |
| 14689 | version_type=sunos |
| 14690 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14691 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 14692 | shlibpath_var=LD_LIBRARY_PATH |
| 14693 | shlibpath_overrides_runpath=yes |
| 14694 | if test "$with_gnu_ld" = yes; then |
| 14695 | need_lib_prefix=no |
| 14696 | fi |
| 14697 | need_version=yes |
| 14698 | ;; |
| 14699 | |
| 14700 | sysv4 | sysv4.3*) |
| 14701 | version_type=linux |
| 14702 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14703 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14704 | shlibpath_var=LD_LIBRARY_PATH |
| 14705 | case $host_vendor in |
| 14706 | sni) |
| 14707 | shlibpath_overrides_runpath=no |
| 14708 | need_lib_prefix=no |
| 14709 | runpath_var=LD_RUN_PATH |
| 14710 | ;; |
| 14711 | siemens) |
| 14712 | need_lib_prefix=no |
| 14713 | ;; |
| 14714 | motorola) |
| 14715 | need_lib_prefix=no |
| 14716 | need_version=no |
| 14717 | shlibpath_overrides_runpath=no |
| 14718 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 14719 | ;; |
| 14720 | esac |
| 14721 | ;; |
| 14722 | |
| 14723 | sysv4*MP*) |
| 14724 | if test -d /usr/nec ;then |
| 14725 | version_type=linux |
| 14726 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 14727 | soname_spec='$libname${shared_ext}.$major' |
| 14728 | shlibpath_var=LD_LIBRARY_PATH |
| 14729 | fi |
| 14730 | ;; |
| 14731 | |
| 14732 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 14733 | version_type=freebsd-elf |
| 14734 | need_lib_prefix=no |
| 14735 | need_version=no |
| 14736 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14737 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14738 | shlibpath_var=LD_LIBRARY_PATH |
| 14739 | shlibpath_overrides_runpath=yes |
| 14740 | hardcode_into_libs=yes |
| 14741 | if test "$with_gnu_ld" = yes; then |
| 14742 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 14743 | else |
| 14744 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 14745 | case $host_os in |
| 14746 | sco3.2v5*) |
| 14747 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 14748 | ;; |
| 14749 | esac |
| 14750 | fi |
| 14751 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 14752 | ;; |
| 14753 | |
| 14754 | tpf*) |
| 14755 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 14756 | version_type=linux |
| 14757 | need_lib_prefix=no |
| 14758 | need_version=no |
| 14759 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14760 | shlibpath_var=LD_LIBRARY_PATH |
| 14761 | shlibpath_overrides_runpath=no |
| 14762 | hardcode_into_libs=yes |
| 14763 | ;; |
| 14764 | |
| 14765 | uts4*) |
| 14766 | version_type=linux |
| 14767 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14768 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14769 | shlibpath_var=LD_LIBRARY_PATH |
| 14770 | ;; |
| 14771 | |
| 14772 | *) |
| 14773 | dynamic_linker=no |
| 14774 | ;; |
| 14775 | esac |
| 14776 | { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 14777 | $as_echo "$dynamic_linker" >&6; } |
| 14778 | test "$dynamic_linker" = no && can_build_shared=no |
| 14779 | |
| 14780 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 14781 | if test "$GCC" = yes; then |
| 14782 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 14783 | fi |
| 14784 | |
| 14785 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 14786 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 14787 | fi |
| 14788 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 14789 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 14790 | fi |
| 14791 | |
| 14792 | |
| 14793 | |
| 14794 | |
| 14795 | |
| 14796 | |
| 14797 | |
| 14798 | |
| 14799 | |
| 14800 | |
| 14801 | |
| 14802 | |
| 14803 | |
| 14804 | |
| 14805 | |
| 14806 | |
| 14807 | |
| 14808 | |
| 14809 | |
| 14810 | |
| 14811 | |
| 14812 | |
| 14813 | |
| 14814 | |
| 14815 | |
| 14816 | |
| 14817 | |
| 14818 | |
| 14819 | |
| 14820 | |
| 14821 | |
| 14822 | |
| 14823 | |
| 14824 | |
| 14825 | |
| 14826 | |
| 14827 | |
| 14828 | |
| 14829 | |
| 14830 | |
| 14831 | |
| 14832 | |
| 14833 | |
| 14834 | |
| 14835 | |
| 14836 | |
| 14837 | |
| 14838 | |
| 14839 | |
| 14840 | |
| 14841 | |
| 14842 | |
| 14843 | |
| 14844 | |
| 14845 | |
| 14846 | |
| 14847 | |
| 14848 | |
| 14849 | |
| 14850 | |
| 14851 | |
| 14852 | |
| 14853 | |
| 14854 | |
| 14855 | |
| 14856 | |
| 14857 | |
| 14858 | |
| 14859 | |
| 14860 | |
| 14861 | |
| 14862 | |
| 14863 | |
| 14864 | |
| 14865 | |
| 14866 | |
| 14867 | |
| 14868 | |
| 14869 | |
| 14870 | |
| 14871 | |
| 14872 | |
| 14873 | |
| 14874 | |
| 14875 | |
| 14876 | |
| 14877 | |
| 14878 | { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 14879 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 14880 | hardcode_action= |
| 14881 | if test -n "$hardcode_libdir_flag_spec" || |
| 14882 | test -n "$runpath_var" || |
| 14883 | test "X$hardcode_automatic" = "Xyes" ; then |
| 14884 | |
| 14885 | # We can hardcode non-existent directories. |
| 14886 | if test "$hardcode_direct" != no && |
| 14887 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 14888 | # have to relink, otherwise we might link with an installed library |
| 14889 | # when we should be linking with a yet-to-be-installed one |
| 14890 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 14891 | test "$hardcode_minus_L" != no; then |
| 14892 | # Linking always hardcodes the temporary library directory. |
| 14893 | hardcode_action=relink |
| 14894 | else |
| 14895 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 14896 | hardcode_action=immediate |
| 14897 | fi |
| 14898 | else |
| 14899 | # We cannot hardcode anything, or else we can only hardcode existing |
| 14900 | # directories. |
| 14901 | hardcode_action=unsupported |
| 14902 | fi |
| 14903 | { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 14904 | $as_echo "$hardcode_action" >&6; } |
| 14905 | |
| 14906 | if test "$hardcode_action" = relink || |
| 14907 | test "$inherit_rpath" = yes; then |
| 14908 | # Fast installation is not supported |
| 14909 | enable_fast_install=no |
| 14910 | elif test "$shlibpath_overrides_runpath" = yes || |
| 14911 | test "$enable_shared" = no; then |
| 14912 | # Fast installation is not necessary |
| 14913 | enable_fast_install=needless |
| 14914 | fi |
| 14915 | |
| 14916 | |
| 14917 | |
| 14918 | |
| 14919 | |
| 14920 | |
| 14921 | if test "x$enable_dlopen" != xyes; then |
| 14922 | enable_dlopen=unknown |
| 14923 | enable_dlopen_self=unknown |
| 14924 | enable_dlopen_self_static=unknown |
| 14925 | else |
| 14926 | lt_cv_dlopen=no |
| 14927 | lt_cv_dlopen_libs= |
| 14928 | |
| 14929 | case $host_os in |
| 14930 | beos*) |
| 14931 | lt_cv_dlopen="load_add_on" |
| 14932 | lt_cv_dlopen_libs= |
| 14933 | lt_cv_dlopen_self=yes |
| 14934 | ;; |
| 14935 | |
| 14936 | mingw* | pw32* | cegcc*) |
| 14937 | lt_cv_dlopen="LoadLibrary" |
| 14938 | lt_cv_dlopen_libs= |
| 14939 | ;; |
| 14940 | |
| 14941 | cygwin*) |
| 14942 | lt_cv_dlopen="dlopen" |
| 14943 | lt_cv_dlopen_libs= |
| 14944 | ;; |
| 14945 | |
| 14946 | darwin*) |
| 14947 | # if libdl is installed we need to link against it |
| 14948 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 14949 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 14950 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 14951 | $as_echo_n "(cached) " >&6 |
| 14952 | else |
| 14953 | ac_check_lib_save_LIBS=$LIBS |
| 14954 | LIBS="-ldl $LIBS" |
| 14955 | cat >conftest.$ac_ext <<_ACEOF |
| 14956 | /* confdefs.h. */ |
| 14957 | _ACEOF |
| 14958 | cat confdefs.h >>conftest.$ac_ext |
| 14959 | cat >>conftest.$ac_ext <<_ACEOF |
| 14960 | /* end confdefs.h. */ |
| 14961 | |
| 14962 | /* Override any GCC internal prototype to avoid an error. |
| 14963 | Use char because int might match the return type of a GCC |
| 14964 | builtin and then its argument prototype would still apply. */ |
| 14965 | #ifdef __cplusplus |
| 14966 | extern "C" |
| 14967 | #endif |
| 14968 | char dlopen (); |
| 14969 | int |
| 14970 | main () |
| 14971 | { |
| 14972 | return dlopen (); |
| 14973 | ; |
| 14974 | return 0; |
| 14975 | } |
| 14976 | _ACEOF |
| 14977 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14978 | if { (ac_try="$ac_link" |
| 14979 | case "(($ac_try" in |
| 14980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14981 | *) ac_try_echo=$ac_try;; |
| 14982 | esac |
| 14983 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 14984 | $as_echo "$ac_try_echo") >&5 |
| 14985 | (eval "$ac_link") 2>conftest.er1 |
| 14986 | ac_status=$? |
| 14987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14988 | rm -f conftest.er1 |
| 14989 | cat conftest.err >&5 |
| 14990 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14991 | (exit $ac_status); } && { |
| 14992 | test -z "$ac_c_werror_flag" || |
| 14993 | test ! -s conftest.err |
| 14994 | } && test -s conftest$ac_exeext && { |
| 14995 | test "$cross_compiling" = yes || |
| 14996 | $as_test_x conftest$ac_exeext |
| 14997 | }; then |
| 14998 | ac_cv_lib_dl_dlopen=yes |
| 14999 | else |
| 15000 | $as_echo "$as_me: failed program was:" >&5 |
| 15001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15002 | |
| 15003 | ac_cv_lib_dl_dlopen=no |
| 15004 | fi |
| 15005 | |
| 15006 | rm -rf conftest.dSYM |
| 15007 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15008 | conftest$ac_exeext conftest.$ac_ext |
| 15009 | LIBS=$ac_check_lib_save_LIBS |
| 15010 | fi |
| 15011 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 15012 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 15013 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then |
| 15014 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 15015 | else |
| 15016 | |
| 15017 | lt_cv_dlopen="dyld" |
| 15018 | lt_cv_dlopen_libs= |
| 15019 | lt_cv_dlopen_self=yes |
| 15020 | |
| 15021 | fi |
| 15022 | |
| 15023 | ;; |
| 15024 | |
| 15025 | *) |
| 15026 | { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 15027 | $as_echo_n "checking for shl_load... " >&6; } |
| 15028 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 15029 | $as_echo_n "(cached) " >&6 |
| 15030 | else |
| 15031 | cat >conftest.$ac_ext <<_ACEOF |
| 15032 | /* confdefs.h. */ |
| 15033 | _ACEOF |
| 15034 | cat confdefs.h >>conftest.$ac_ext |
| 15035 | cat >>conftest.$ac_ext <<_ACEOF |
| 15036 | /* end confdefs.h. */ |
| 15037 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 15038 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15039 | #define shl_load innocuous_shl_load |
| 15040 | |
| 15041 | /* System header to define __stub macros and hopefully few prototypes, |
| 15042 | which can conflict with char shl_load (); below. |
| 15043 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15044 | <limits.h> exists even on freestanding compilers. */ |
| 15045 | |
| 15046 | #ifdef __STDC__ |
| 15047 | # include <limits.h> |
| 15048 | #else |
| 15049 | # include <assert.h> |
| 15050 | #endif |
| 15051 | |
| 15052 | #undef shl_load |
| 15053 | |
| 15054 | /* Override any GCC internal prototype to avoid an error. |
| 15055 | Use char because int might match the return type of a GCC |
| 15056 | builtin and then its argument prototype would still apply. */ |
| 15057 | #ifdef __cplusplus |
| 15058 | extern "C" |
| 15059 | #endif |
| 15060 | char shl_load (); |
| 15061 | /* The GNU C library defines this for functions which it implements |
| 15062 | to always fail with ENOSYS. Some functions are actually named |
| 15063 | something starting with __ and the normal name is an alias. */ |
| 15064 | #if defined __stub_shl_load || defined __stub___shl_load |
| 15065 | choke me |
| 15066 | #endif |
| 15067 | |
| 15068 | int |
| 15069 | main () |
| 15070 | { |
| 15071 | return shl_load (); |
| 15072 | ; |
| 15073 | return 0; |
| 15074 | } |
| 15075 | _ACEOF |
| 15076 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15077 | if { (ac_try="$ac_link" |
| 15078 | case "(($ac_try" in |
| 15079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15080 | *) ac_try_echo=$ac_try;; |
| 15081 | esac |
| 15082 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15083 | $as_echo "$ac_try_echo") >&5 |
| 15084 | (eval "$ac_link") 2>conftest.er1 |
| 15085 | ac_status=$? |
| 15086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15087 | rm -f conftest.er1 |
| 15088 | cat conftest.err >&5 |
| 15089 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15090 | (exit $ac_status); } && { |
| 15091 | test -z "$ac_c_werror_flag" || |
| 15092 | test ! -s conftest.err |
| 15093 | } && test -s conftest$ac_exeext && { |
| 15094 | test "$cross_compiling" = yes || |
| 15095 | $as_test_x conftest$ac_exeext |
| 15096 | }; then |
| 15097 | ac_cv_func_shl_load=yes |
| 15098 | else |
| 15099 | $as_echo "$as_me: failed program was:" >&5 |
| 15100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15101 | |
| 15102 | ac_cv_func_shl_load=no |
| 15103 | fi |
| 15104 | |
| 15105 | rm -rf conftest.dSYM |
| 15106 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15107 | conftest$ac_exeext conftest.$ac_ext |
| 15108 | fi |
| 15109 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 15110 | $as_echo "$ac_cv_func_shl_load" >&6; } |
| 15111 | if test "x$ac_cv_func_shl_load" = x""yes; then |
| 15112 | lt_cv_dlopen="shl_load" |
| 15113 | else |
| 15114 | { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 15115 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 15116 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 15117 | $as_echo_n "(cached) " >&6 |
| 15118 | else |
| 15119 | ac_check_lib_save_LIBS=$LIBS |
| 15120 | LIBS="-ldld $LIBS" |
| 15121 | cat >conftest.$ac_ext <<_ACEOF |
| 15122 | /* confdefs.h. */ |
| 15123 | _ACEOF |
| 15124 | cat confdefs.h >>conftest.$ac_ext |
| 15125 | cat >>conftest.$ac_ext <<_ACEOF |
| 15126 | /* end confdefs.h. */ |
| 15127 | |
| 15128 | /* Override any GCC internal prototype to avoid an error. |
| 15129 | Use char because int might match the return type of a GCC |
| 15130 | builtin and then its argument prototype would still apply. */ |
| 15131 | #ifdef __cplusplus |
| 15132 | extern "C" |
| 15133 | #endif |
| 15134 | char shl_load (); |
| 15135 | int |
| 15136 | main () |
| 15137 | { |
| 15138 | return shl_load (); |
| 15139 | ; |
| 15140 | return 0; |
| 15141 | } |
| 15142 | _ACEOF |
| 15143 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15144 | if { (ac_try="$ac_link" |
| 15145 | case "(($ac_try" in |
| 15146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15147 | *) ac_try_echo=$ac_try;; |
| 15148 | esac |
| 15149 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15150 | $as_echo "$ac_try_echo") >&5 |
| 15151 | (eval "$ac_link") 2>conftest.er1 |
| 15152 | ac_status=$? |
| 15153 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15154 | rm -f conftest.er1 |
| 15155 | cat conftest.err >&5 |
| 15156 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15157 | (exit $ac_status); } && { |
| 15158 | test -z "$ac_c_werror_flag" || |
| 15159 | test ! -s conftest.err |
| 15160 | } && test -s conftest$ac_exeext && { |
| 15161 | test "$cross_compiling" = yes || |
| 15162 | $as_test_x conftest$ac_exeext |
| 15163 | }; then |
| 15164 | ac_cv_lib_dld_shl_load=yes |
| 15165 | else |
| 15166 | $as_echo "$as_me: failed program was:" >&5 |
| 15167 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15168 | |
| 15169 | ac_cv_lib_dld_shl_load=no |
| 15170 | fi |
| 15171 | |
| 15172 | rm -rf conftest.dSYM |
| 15173 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15174 | conftest$ac_exeext conftest.$ac_ext |
| 15175 | LIBS=$ac_check_lib_save_LIBS |
| 15176 | fi |
| 15177 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 15178 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 15179 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then |
| 15180 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
| 15181 | else |
| 15182 | { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 15183 | $as_echo_n "checking for dlopen... " >&6; } |
| 15184 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 15185 | $as_echo_n "(cached) " >&6 |
| 15186 | else |
| 15187 | cat >conftest.$ac_ext <<_ACEOF |
| 15188 | /* confdefs.h. */ |
| 15189 | _ACEOF |
| 15190 | cat confdefs.h >>conftest.$ac_ext |
| 15191 | cat >>conftest.$ac_ext <<_ACEOF |
| 15192 | /* end confdefs.h. */ |
| 15193 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 15194 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15195 | #define dlopen innocuous_dlopen |
| 15196 | |
| 15197 | /* System header to define __stub macros and hopefully few prototypes, |
| 15198 | which can conflict with char dlopen (); below. |
| 15199 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15200 | <limits.h> exists even on freestanding compilers. */ |
| 15201 | |
| 15202 | #ifdef __STDC__ |
| 15203 | # include <limits.h> |
| 15204 | #else |
| 15205 | # include <assert.h> |
| 15206 | #endif |
| 15207 | |
| 15208 | #undef dlopen |
| 15209 | |
| 15210 | /* Override any GCC internal prototype to avoid an error. |
| 15211 | Use char because int might match the return type of a GCC |
| 15212 | builtin and then its argument prototype would still apply. */ |
| 15213 | #ifdef __cplusplus |
| 15214 | extern "C" |
| 15215 | #endif |
| 15216 | char dlopen (); |
| 15217 | /* The GNU C library defines this for functions which it implements |
| 15218 | to always fail with ENOSYS. Some functions are actually named |
| 15219 | something starting with __ and the normal name is an alias. */ |
| 15220 | #if defined __stub_dlopen || defined __stub___dlopen |
| 15221 | choke me |
| 15222 | #endif |
| 15223 | |
| 15224 | int |
| 15225 | main () |
| 15226 | { |
| 15227 | return dlopen (); |
| 15228 | ; |
| 15229 | return 0; |
| 15230 | } |
| 15231 | _ACEOF |
| 15232 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15233 | if { (ac_try="$ac_link" |
| 15234 | case "(($ac_try" in |
| 15235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15236 | *) ac_try_echo=$ac_try;; |
| 15237 | esac |
| 15238 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15239 | $as_echo "$ac_try_echo") >&5 |
| 15240 | (eval "$ac_link") 2>conftest.er1 |
| 15241 | ac_status=$? |
| 15242 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15243 | rm -f conftest.er1 |
| 15244 | cat conftest.err >&5 |
| 15245 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15246 | (exit $ac_status); } && { |
| 15247 | test -z "$ac_c_werror_flag" || |
| 15248 | test ! -s conftest.err |
| 15249 | } && test -s conftest$ac_exeext && { |
| 15250 | test "$cross_compiling" = yes || |
| 15251 | $as_test_x conftest$ac_exeext |
| 15252 | }; then |
| 15253 | ac_cv_func_dlopen=yes |
| 15254 | else |
| 15255 | $as_echo "$as_me: failed program was:" >&5 |
| 15256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15257 | |
| 15258 | ac_cv_func_dlopen=no |
| 15259 | fi |
| 15260 | |
| 15261 | rm -rf conftest.dSYM |
| 15262 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15263 | conftest$ac_exeext conftest.$ac_ext |
| 15264 | fi |
| 15265 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 15266 | $as_echo "$ac_cv_func_dlopen" >&6; } |
| 15267 | if test "x$ac_cv_func_dlopen" = x""yes; then |
| 15268 | lt_cv_dlopen="dlopen" |
| 15269 | else |
| 15270 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 15271 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 15272 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 15273 | $as_echo_n "(cached) " >&6 |
| 15274 | else |
| 15275 | ac_check_lib_save_LIBS=$LIBS |
| 15276 | LIBS="-ldl $LIBS" |
| 15277 | cat >conftest.$ac_ext <<_ACEOF |
| 15278 | /* confdefs.h. */ |
| 15279 | _ACEOF |
| 15280 | cat confdefs.h >>conftest.$ac_ext |
| 15281 | cat >>conftest.$ac_ext <<_ACEOF |
| 15282 | /* end confdefs.h. */ |
| 15283 | |
| 15284 | /* Override any GCC internal prototype to avoid an error. |
| 15285 | Use char because int might match the return type of a GCC |
| 15286 | builtin and then its argument prototype would still apply. */ |
| 15287 | #ifdef __cplusplus |
| 15288 | extern "C" |
| 15289 | #endif |
| 15290 | char dlopen (); |
| 15291 | int |
| 15292 | main () |
| 15293 | { |
| 15294 | return dlopen (); |
| 15295 | ; |
| 15296 | return 0; |
| 15297 | } |
| 15298 | _ACEOF |
| 15299 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15300 | if { (ac_try="$ac_link" |
| 15301 | case "(($ac_try" in |
| 15302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15303 | *) ac_try_echo=$ac_try;; |
| 15304 | esac |
| 15305 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15306 | $as_echo "$ac_try_echo") >&5 |
| 15307 | (eval "$ac_link") 2>conftest.er1 |
| 15308 | ac_status=$? |
| 15309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15310 | rm -f conftest.er1 |
| 15311 | cat conftest.err >&5 |
| 15312 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15313 | (exit $ac_status); } && { |
| 15314 | test -z "$ac_c_werror_flag" || |
| 15315 | test ! -s conftest.err |
| 15316 | } && test -s conftest$ac_exeext && { |
| 15317 | test "$cross_compiling" = yes || |
| 15318 | $as_test_x conftest$ac_exeext |
| 15319 | }; then |
| 15320 | ac_cv_lib_dl_dlopen=yes |
| 15321 | else |
| 15322 | $as_echo "$as_me: failed program was:" >&5 |
| 15323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15324 | |
| 15325 | ac_cv_lib_dl_dlopen=no |
| 15326 | fi |
| 15327 | |
| 15328 | rm -rf conftest.dSYM |
| 15329 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15330 | conftest$ac_exeext conftest.$ac_ext |
| 15331 | LIBS=$ac_check_lib_save_LIBS |
| 15332 | fi |
| 15333 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 15334 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 15335 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then |
| 15336 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 15337 | else |
| 15338 | { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 15339 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 15340 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 15341 | $as_echo_n "(cached) " >&6 |
| 15342 | else |
| 15343 | ac_check_lib_save_LIBS=$LIBS |
| 15344 | LIBS="-lsvld $LIBS" |
| 15345 | cat >conftest.$ac_ext <<_ACEOF |
| 15346 | /* confdefs.h. */ |
| 15347 | _ACEOF |
| 15348 | cat confdefs.h >>conftest.$ac_ext |
| 15349 | cat >>conftest.$ac_ext <<_ACEOF |
| 15350 | /* end confdefs.h. */ |
| 15351 | |
| 15352 | /* Override any GCC internal prototype to avoid an error. |
| 15353 | Use char because int might match the return type of a GCC |
| 15354 | builtin and then its argument prototype would still apply. */ |
| 15355 | #ifdef __cplusplus |
| 15356 | extern "C" |
| 15357 | #endif |
| 15358 | char dlopen (); |
| 15359 | int |
| 15360 | main () |
| 15361 | { |
| 15362 | return dlopen (); |
| 15363 | ; |
| 15364 | return 0; |
| 15365 | } |
| 15366 | _ACEOF |
| 15367 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15368 | if { (ac_try="$ac_link" |
| 15369 | case "(($ac_try" in |
| 15370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15371 | *) ac_try_echo=$ac_try;; |
| 15372 | esac |
| 15373 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15374 | $as_echo "$ac_try_echo") >&5 |
| 15375 | (eval "$ac_link") 2>conftest.er1 |
| 15376 | ac_status=$? |
| 15377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15378 | rm -f conftest.er1 |
| 15379 | cat conftest.err >&5 |
| 15380 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15381 | (exit $ac_status); } && { |
| 15382 | test -z "$ac_c_werror_flag" || |
| 15383 | test ! -s conftest.err |
| 15384 | } && test -s conftest$ac_exeext && { |
| 15385 | test "$cross_compiling" = yes || |
| 15386 | $as_test_x conftest$ac_exeext |
| 15387 | }; then |
| 15388 | ac_cv_lib_svld_dlopen=yes |
| 15389 | else |
| 15390 | $as_echo "$as_me: failed program was:" >&5 |
| 15391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15392 | |
| 15393 | ac_cv_lib_svld_dlopen=no |
| 15394 | fi |
| 15395 | |
| 15396 | rm -rf conftest.dSYM |
| 15397 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15398 | conftest$ac_exeext conftest.$ac_ext |
| 15399 | LIBS=$ac_check_lib_save_LIBS |
| 15400 | fi |
| 15401 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 15402 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 15403 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then |
| 15404 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 15405 | else |
| 15406 | { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 15407 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 15408 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 15409 | $as_echo_n "(cached) " >&6 |
| 15410 | else |
| 15411 | ac_check_lib_save_LIBS=$LIBS |
| 15412 | LIBS="-ldld $LIBS" |
| 15413 | cat >conftest.$ac_ext <<_ACEOF |
| 15414 | /* confdefs.h. */ |
| 15415 | _ACEOF |
| 15416 | cat confdefs.h >>conftest.$ac_ext |
| 15417 | cat >>conftest.$ac_ext <<_ACEOF |
| 15418 | /* end confdefs.h. */ |
| 15419 | |
| 15420 | /* Override any GCC internal prototype to avoid an error. |
| 15421 | Use char because int might match the return type of a GCC |
| 15422 | builtin and then its argument prototype would still apply. */ |
| 15423 | #ifdef __cplusplus |
| 15424 | extern "C" |
| 15425 | #endif |
| 15426 | char dld_link (); |
| 15427 | int |
| 15428 | main () |
| 15429 | { |
| 15430 | return dld_link (); |
| 15431 | ; |
| 15432 | return 0; |
| 15433 | } |
| 15434 | _ACEOF |
| 15435 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15436 | if { (ac_try="$ac_link" |
| 15437 | case "(($ac_try" in |
| 15438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15439 | *) ac_try_echo=$ac_try;; |
| 15440 | esac |
| 15441 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 15442 | $as_echo "$ac_try_echo") >&5 |
| 15443 | (eval "$ac_link") 2>conftest.er1 |
| 15444 | ac_status=$? |
| 15445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15446 | rm -f conftest.er1 |
| 15447 | cat conftest.err >&5 |
| 15448 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15449 | (exit $ac_status); } && { |
| 15450 | test -z "$ac_c_werror_flag" || |
| 15451 | test ! -s conftest.err |
| 15452 | } && test -s conftest$ac_exeext && { |
| 15453 | test "$cross_compiling" = yes || |
| 15454 | $as_test_x conftest$ac_exeext |
| 15455 | }; then |
| 15456 | ac_cv_lib_dld_dld_link=yes |
| 15457 | else |
| 15458 | $as_echo "$as_me: failed program was:" >&5 |
| 15459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15460 | |
| 15461 | ac_cv_lib_dld_dld_link=no |
| 15462 | fi |
| 15463 | |
| 15464 | rm -rf conftest.dSYM |
| 15465 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15466 | conftest$ac_exeext conftest.$ac_ext |
| 15467 | LIBS=$ac_check_lib_save_LIBS |
| 15468 | fi |
| 15469 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 15470 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 15471 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then |
| 15472 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
| 15473 | fi |
| 15474 | |
| 15475 | |
| 15476 | fi |
| 15477 | |
| 15478 | |
| 15479 | fi |
| 15480 | |
| 15481 | |
| 15482 | fi |
| 15483 | |
| 15484 | |
| 15485 | fi |
| 15486 | |
| 15487 | |
| 15488 | fi |
| 15489 | |
| 15490 | ;; |
| 15491 | esac |
| 15492 | |
| 15493 | if test "x$lt_cv_dlopen" != xno; then |
| 15494 | enable_dlopen=yes |
| 15495 | else |
| 15496 | enable_dlopen=no |
| 15497 | fi |
| 15498 | |
| 15499 | case $lt_cv_dlopen in |
| 15500 | dlopen) |
| 15501 | save_CPPFLAGS="$CPPFLAGS" |
| 15502 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 15503 | |
| 15504 | save_LDFLAGS="$LDFLAGS" |
| 15505 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 15506 | |
| 15507 | save_LIBS="$LIBS" |
| 15508 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 15509 | |
| 15510 | { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 15511 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| 15512 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 15513 | $as_echo_n "(cached) " >&6 |
| 15514 | else |
| 15515 | if test "$cross_compiling" = yes; then : |
| 15516 | lt_cv_dlopen_self=cross |
| 15517 | else |
| 15518 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 15519 | lt_status=$lt_dlunknown |
| 15520 | cat > conftest.$ac_ext <<_LT_EOF |
| 15521 | #line 15521 "configure" |
| 15522 | #include "confdefs.h" |
| 15523 | |
| 15524 | #if HAVE_DLFCN_H |
| 15525 | #include <dlfcn.h> |
| 15526 | #endif |
| 15527 | |
| 15528 | #include <stdio.h> |
| 15529 | |
| 15530 | #ifdef RTLD_GLOBAL |
| 15531 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 15532 | #else |
| 15533 | # ifdef DL_GLOBAL |
| 15534 | # define LT_DLGLOBAL DL_GLOBAL |
| 15535 | # else |
| 15536 | # define LT_DLGLOBAL 0 |
| 15537 | # endif |
| 15538 | #endif |
| 15539 | |
| 15540 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 15541 | find out it does not work in some platform. */ |
| 15542 | #ifndef LT_DLLAZY_OR_NOW |
| 15543 | # ifdef RTLD_LAZY |
| 15544 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 15545 | # else |
| 15546 | # ifdef DL_LAZY |
| 15547 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 15548 | # else |
| 15549 | # ifdef RTLD_NOW |
| 15550 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 15551 | # else |
| 15552 | # ifdef DL_NOW |
| 15553 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 15554 | # else |
| 15555 | # define LT_DLLAZY_OR_NOW 0 |
| 15556 | # endif |
| 15557 | # endif |
| 15558 | # endif |
| 15559 | # endif |
| 15560 | #endif |
| 15561 | |
| 15562 | void fnord() { int i=42;} |
| 15563 | int main () |
| 15564 | { |
| 15565 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 15566 | int status = $lt_dlunknown; |
| 15567 | |
| 15568 | if (self) |
| 15569 | { |
| 15570 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 15571 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 15572 | /* dlclose (self); */ |
| 15573 | } |
| 15574 | else |
| 15575 | puts (dlerror ()); |
| 15576 | |
| 15577 | return status; |
| 15578 | } |
| 15579 | _LT_EOF |
| 15580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15581 | (eval $ac_link) 2>&5 |
| 15582 | ac_status=$? |
| 15583 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15584 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 15585 | (./conftest; exit; ) >&5 2>/dev/null |
| 15586 | lt_status=$? |
| 15587 | case x$lt_status in |
| 15588 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 15589 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 15590 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 15591 | esac |
| 15592 | else : |
| 15593 | # compilation failed |
| 15594 | lt_cv_dlopen_self=no |
| 15595 | fi |
| 15596 | fi |
| 15597 | rm -fr conftest* |
| 15598 | |
| 15599 | |
| 15600 | fi |
| 15601 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 15602 | $as_echo "$lt_cv_dlopen_self" >&6; } |
| 15603 | |
| 15604 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 15605 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 15606 | { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 15607 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| 15608 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 15609 | $as_echo_n "(cached) " >&6 |
| 15610 | else |
| 15611 | if test "$cross_compiling" = yes; then : |
| 15612 | lt_cv_dlopen_self_static=cross |
| 15613 | else |
| 15614 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 15615 | lt_status=$lt_dlunknown |
| 15616 | cat > conftest.$ac_ext <<_LT_EOF |
| 15617 | #line 15617 "configure" |
| 15618 | #include "confdefs.h" |
| 15619 | |
| 15620 | #if HAVE_DLFCN_H |
| 15621 | #include <dlfcn.h> |
| 15622 | #endif |
| 15623 | |
| 15624 | #include <stdio.h> |
| 15625 | |
| 15626 | #ifdef RTLD_GLOBAL |
| 15627 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 15628 | #else |
| 15629 | # ifdef DL_GLOBAL |
| 15630 | # define LT_DLGLOBAL DL_GLOBAL |
| 15631 | # else |
| 15632 | # define LT_DLGLOBAL 0 |
| 15633 | # endif |
| 15634 | #endif |
| 15635 | |
| 15636 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 15637 | find out it does not work in some platform. */ |
| 15638 | #ifndef LT_DLLAZY_OR_NOW |
| 15639 | # ifdef RTLD_LAZY |
| 15640 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 15641 | # else |
| 15642 | # ifdef DL_LAZY |
| 15643 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 15644 | # else |
| 15645 | # ifdef RTLD_NOW |
| 15646 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 15647 | # else |
| 15648 | # ifdef DL_NOW |
| 15649 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 15650 | # else |
| 15651 | # define LT_DLLAZY_OR_NOW 0 |
| 15652 | # endif |
| 15653 | # endif |
| 15654 | # endif |
| 15655 | # endif |
| 15656 | #endif |
| 15657 | |
| 15658 | void fnord() { int i=42;} |
| 15659 | int main () |
| 15660 | { |
| 15661 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 15662 | int status = $lt_dlunknown; |
| 15663 | |
| 15664 | if (self) |
| 15665 | { |
| 15666 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 15667 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 15668 | /* dlclose (self); */ |
| 15669 | } |
| 15670 | else |
| 15671 | puts (dlerror ()); |
| 15672 | |
| 15673 | return status; |
| 15674 | } |
| 15675 | _LT_EOF |
| 15676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15677 | (eval $ac_link) 2>&5 |
| 15678 | ac_status=$? |
| 15679 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15680 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 15681 | (./conftest; exit; ) >&5 2>/dev/null |
| 15682 | lt_status=$? |
| 15683 | case x$lt_status in |
| 15684 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 15685 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 15686 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 15687 | esac |
| 15688 | else : |
| 15689 | # compilation failed |
| 15690 | lt_cv_dlopen_self_static=no |
| 15691 | fi |
| 15692 | fi |
| 15693 | rm -fr conftest* |
| 15694 | |
| 15695 | |
| 15696 | fi |
| 15697 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 15698 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
| 15699 | fi |
| 15700 | |
| 15701 | CPPFLAGS="$save_CPPFLAGS" |
| 15702 | LDFLAGS="$save_LDFLAGS" |
| 15703 | LIBS="$save_LIBS" |
| 15704 | ;; |
| 15705 | esac |
| 15706 | |
| 15707 | case $lt_cv_dlopen_self in |
| 15708 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 15709 | *) enable_dlopen_self=unknown ;; |
| 15710 | esac |
| 15711 | |
| 15712 | case $lt_cv_dlopen_self_static in |
| 15713 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 15714 | *) enable_dlopen_self_static=unknown ;; |
| 15715 | esac |
| 15716 | fi |
| 15717 | |
| 15718 | |
| 15719 | |
| 15720 | |
| 15721 | |
| 15722 | |
| 15723 | |
| 15724 | |
| 15725 | |
| 15726 | |
| 15727 | |
| 15728 | |
| 15729 | |
| 15730 | |
| 15731 | |
| 15732 | |
| 15733 | |
| 15734 | striplib= |
| 15735 | old_striplib= |
| 15736 | { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 15737 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 15738 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 15739 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 15740 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 15741 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15742 | $as_echo "yes" >&6; } |
| 15743 | else |
| 15744 | # FIXME - insert some real tests, host_os isn't really good enough |
| 15745 | case $host_os in |
| 15746 | darwin*) |
| 15747 | if test -n "$STRIP" ; then |
| 15748 | striplib="$STRIP -x" |
| 15749 | old_striplib="$STRIP -S" |
| 15750 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 15751 | $as_echo "yes" >&6; } |
| 15752 | else |
| 15753 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15754 | $as_echo "no" >&6; } |
| 15755 | fi |
| 15756 | ;; |
| 15757 | *) |
| 15758 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 15759 | $as_echo "no" >&6; } |
| 15760 | ;; |
| 15761 | esac |
| 15762 | fi |
| 15763 | |
| 15764 | |
| 15765 | |
| 15766 | |
| 15767 | |
| 15768 | |
| 15769 | |
| 15770 | |
| 15771 | |
| 15772 | |
| 15773 | |
| 15774 | |
| 15775 | # Report which library types will actually be built |
| 15776 | { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 15777 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 15778 | { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 15779 | $as_echo "$can_build_shared" >&6; } |
| 15780 | |
| 15781 | { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 15782 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
| 15783 | test "$can_build_shared" = "no" && enable_shared=no |
| 15784 | |
| 15785 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 15786 | # are all built from PIC. |
| 15787 | case $host_os in |
| 15788 | aix3*) |
| 15789 | test "$enable_shared" = yes && enable_static=no |
| 15790 | if test -n "$RANLIB"; then |
| 15791 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 15792 | postinstall_cmds='$RANLIB $lib' |
| 15793 | fi |
| 15794 | ;; |
| 15795 | |
| 15796 | aix[4-9]*) |
| 15797 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 15798 | test "$enable_shared" = yes && enable_static=no |
| 15799 | fi |
| 15800 | ;; |
| 15801 | esac |
| 15802 | { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 15803 | $as_echo "$enable_shared" >&6; } |
| 15804 | |
| 15805 | { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 15806 | $as_echo_n "checking whether to build static libraries... " >&6; } |
| 15807 | # Make sure either enable_shared or enable_static is yes. |
| 15808 | test "$enable_shared" = yes || enable_static=yes |
| 15809 | { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 15810 | $as_echo "$enable_static" >&6; } |
| 15811 | |
| 15812 | |
| 15813 | |
| 15814 | |
| 15815 | fi |
| 15816 | ac_ext=c |
| 15817 | ac_cpp='$CPP $CPPFLAGS' |
| 15818 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15819 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15820 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15821 | |
| 15822 | CC="$lt_save_CC" |
| 15823 | |
| 15824 | |
| 15825 | ac_ext=cpp |
| 15826 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 15827 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15828 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15829 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 15830 | |
| 15831 | archive_cmds_need_lc_CXX=no |
| 15832 | allow_undefined_flag_CXX= |
| 15833 | always_export_symbols_CXX=no |
| 15834 | archive_expsym_cmds_CXX= |
| 15835 | compiler_needs_object_CXX=no |
| 15836 | export_dynamic_flag_spec_CXX= |
| 15837 | hardcode_direct_CXX=no |
| 15838 | hardcode_direct_absolute_CXX=no |
| 15839 | hardcode_libdir_flag_spec_CXX= |
| 15840 | hardcode_libdir_flag_spec_ld_CXX= |
| 15841 | hardcode_libdir_separator_CXX= |
| 15842 | hardcode_minus_L_CXX=no |
| 15843 | hardcode_shlibpath_var_CXX=unsupported |
| 15844 | hardcode_automatic_CXX=no |
| 15845 | inherit_rpath_CXX=no |
| 15846 | module_cmds_CXX= |
| 15847 | module_expsym_cmds_CXX= |
| 15848 | link_all_deplibs_CXX=unknown |
| 15849 | old_archive_cmds_CXX=$old_archive_cmds |
| 15850 | no_undefined_flag_CXX= |
| 15851 | whole_archive_flag_spec_CXX= |
| 15852 | enable_shared_with_static_runtimes_CXX=no |
| 15853 | |
| 15854 | # Source file extension for C++ test sources. |
| 15855 | ac_ext=cpp |
| 15856 | |
| 15857 | # Object file extension for compiled C++ test sources. |
| 15858 | objext=o |
| 15859 | objext_CXX=$objext |
| 15860 | |
| 15861 | # No sense in running all these tests if we already determined that |
| 15862 | # the CXX compiler isn't working. Some variables (like enable_shared) |
| 15863 | # are currently assumed to apply to all compilers on this platform, |
| 15864 | # and will be corrupted by setting them based on a non-working compiler. |
| 15865 | if test "$_lt_caught_CXX_error" != yes; then |
| 15866 | # Code to be used in simple compile tests |
| 15867 | lt_simple_compile_test_code="int some_variable = 0;" |
| 15868 | |
| 15869 | # Code to be used in simple link tests |
| 15870 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
| 15871 | |
| 15872 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 15873 | |
| 15874 | |
| 15875 | |
| 15876 | |
| 15877 | |
| 15878 | |
| 15879 | # If no C compiler was specified, use CC. |
| 15880 | LTCC=${LTCC-"$CC"} |
| 15881 | |
| 15882 | # If no C compiler flags were specified, use CFLAGS. |
| 15883 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 15884 | |
| 15885 | # Allow CC to be a program name with arguments. |
| 15886 | compiler=$CC |
| 15887 | |
| 15888 | |
| 15889 | # save warnings/boilerplate of simple test code |
| 15890 | ac_outfile=conftest.$ac_objext |
| 15891 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 15892 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 15893 | _lt_compiler_boilerplate=`cat conftest.err` |
| 15894 | $RM conftest* |
| 15895 | |
| 15896 | ac_outfile=conftest.$ac_objext |
| 15897 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 15898 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 15899 | _lt_linker_boilerplate=`cat conftest.err` |
| 15900 | $RM -r conftest* |
| 15901 | |
| 15902 | |
| 15903 | # Allow CC to be a program name with arguments. |
| 15904 | lt_save_CC=$CC |
| 15905 | lt_save_LD=$LD |
| 15906 | lt_save_GCC=$GCC |
| 15907 | GCC=$GXX |
| 15908 | lt_save_with_gnu_ld=$with_gnu_ld |
| 15909 | lt_save_path_LD=$lt_cv_path_LD |
| 15910 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 15911 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 15912 | else |
| 15913 | $as_unset lt_cv_prog_gnu_ld |
| 15914 | fi |
| 15915 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 15916 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 15917 | else |
| 15918 | $as_unset lt_cv_path_LD |
| 15919 | fi |
| 15920 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 15921 | CC=${CXX-"c++"} |
| 15922 | compiler=$CC |
| 15923 | compiler_CXX=$CC |
| 15924 | for cc_temp in $compiler""; do |
| 15925 | case $cc_temp in |
| 15926 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 15927 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 15928 | \-*) ;; |
| 15929 | *) break;; |
| 15930 | esac |
| 15931 | done |
| 15932 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 15933 | |
| 15934 | |
| 15935 | if test -n "$compiler"; then |
| 15936 | # We don't want -fno-exception when compiling C++ code, so set the |
| 15937 | # no_builtin_flag separately |
| 15938 | if test "$GXX" = yes; then |
| 15939 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 15940 | else |
| 15941 | lt_prog_compiler_no_builtin_flag_CXX= |
| 15942 | fi |
| 15943 | |
| 15944 | if test "$GXX" = yes; then |
| 15945 | # Set up default GNU C++ configuration |
| 15946 | |
| 15947 | |
| 15948 | |
| 15949 | # Check whether --with-gnu-ld was given. |
| 15950 | if test "${with_gnu_ld+set}" = set; then |
| 15951 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 15952 | else |
| 15953 | with_gnu_ld=no |
| 15954 | fi |
| 15955 | |
| 15956 | ac_prog=ld |
| 15957 | if test "$GCC" = yes; then |
| 15958 | # Check if gcc -print-prog-name=ld gives a path. |
| 15959 | { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 15960 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 15961 | case $host in |
| 15962 | *-*-mingw*) |
| 15963 | # gcc leaves a trailing carriage return which upsets mingw |
| 15964 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 15965 | *) |
| 15966 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 15967 | esac |
| 15968 | case $ac_prog in |
| 15969 | # Accept absolute paths. |
| 15970 | [\\/]* | ?:[\\/]*) |
| 15971 | re_direlt='/[^/][^/]*/\.\./' |
| 15972 | # Canonicalize the pathname of ld |
| 15973 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 15974 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 15975 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 15976 | done |
| 15977 | test -z "$LD" && LD="$ac_prog" |
| 15978 | ;; |
| 15979 | "") |
| 15980 | # If it fails, then pretend we aren't using GCC. |
| 15981 | ac_prog=ld |
| 15982 | ;; |
| 15983 | *) |
| 15984 | # If it is relative, then search for the first ld in PATH. |
| 15985 | with_gnu_ld=unknown |
| 15986 | ;; |
| 15987 | esac |
| 15988 | elif test "$with_gnu_ld" = yes; then |
| 15989 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 15990 | $as_echo_n "checking for GNU ld... " >&6; } |
| 15991 | else |
| 15992 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 15993 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 15994 | fi |
| 15995 | if test "${lt_cv_path_LD+set}" = set; then |
| 15996 | $as_echo_n "(cached) " >&6 |
| 15997 | else |
| 15998 | if test -z "$LD"; then |
| 15999 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 16000 | for ac_dir in $PATH; do |
| 16001 | IFS="$lt_save_ifs" |
| 16002 | test -z "$ac_dir" && ac_dir=. |
| 16003 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 16004 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 16005 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 16006 | # but apparently some variants of GNU ld only accept -v. |
| 16007 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 16008 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 16009 | *GNU* | *'with BFD'*) |
| 16010 | test "$with_gnu_ld" != no && break |
| 16011 | ;; |
| 16012 | *) |
| 16013 | test "$with_gnu_ld" != yes && break |
| 16014 | ;; |
| 16015 | esac |
| 16016 | fi |
| 16017 | done |
| 16018 | IFS="$lt_save_ifs" |
| 16019 | else |
| 16020 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 16021 | fi |
| 16022 | fi |
| 16023 | |
| 16024 | LD="$lt_cv_path_LD" |
| 16025 | if test -n "$LD"; then |
| 16026 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
| 16027 | $as_echo "$LD" >&6; } |
| 16028 | else |
| 16029 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 16030 | $as_echo "no" >&6; } |
| 16031 | fi |
| 16032 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 16033 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 16034 | { (exit 1); exit 1; }; } |
| 16035 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 16036 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 16037 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 16038 | $as_echo_n "(cached) " >&6 |
| 16039 | else |
| 16040 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 16041 | case `$LD -v 2>&1 </dev/null` in |
| 16042 | *GNU* | *'with BFD'*) |
| 16043 | lt_cv_prog_gnu_ld=yes |
| 16044 | ;; |
| 16045 | *) |
| 16046 | lt_cv_prog_gnu_ld=no |
| 16047 | ;; |
| 16048 | esac |
| 16049 | fi |
| 16050 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 16051 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 16052 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 16053 | |
| 16054 | |
| 16055 | |
| 16056 | |
| 16057 | |
| 16058 | |
| 16059 | |
| 16060 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 16061 | # archiving commands below assume that GNU ld is being used. |
| 16062 | if test "$with_gnu_ld" = yes; then |
| 16063 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16064 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 16065 | |
| 16066 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 16067 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 16068 | |
| 16069 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 16070 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 16071 | # investigate it a little bit more. (MM) |
| 16072 | wlarc='${wl}' |
| 16073 | |
| 16074 | # ancient GNU ld didn't support --whole-archive et. al. |
| 16075 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 16076 | $GREP 'no-whole-archive' > /dev/null; then |
| 16077 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 16078 | else |
| 16079 | whole_archive_flag_spec_CXX= |
| 16080 | fi |
| 16081 | else |
| 16082 | with_gnu_ld=no |
| 16083 | wlarc= |
| 16084 | |
| 16085 | # A generic and very simple default shared library creation |
| 16086 | # command for GNU C++ for the case where it uses the native |
| 16087 | # linker, instead of GNU ld. If possible, this setting should |
| 16088 | # overridden to take advantage of the native linker features on |
| 16089 | # the platform it is being used on. |
| 16090 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 16091 | fi |
| 16092 | |
| 16093 | # Commands to make compiler produce verbose output that lists |
| 16094 | # what "hidden" libraries, object files and flags are used when |
| 16095 | # linking a shared library. |
| 16096 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 16097 | |
| 16098 | else |
| 16099 | GXX=no |
| 16100 | with_gnu_ld=no |
| 16101 | wlarc= |
| 16102 | fi |
| 16103 | |
| 16104 | # PORTME: fill in a description of your system's C++ link characteristics |
| 16105 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 16106 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 16107 | ld_shlibs_CXX=yes |
| 16108 | case $host_os in |
| 16109 | aix3*) |
| 16110 | # FIXME: insert proper C++ library support |
| 16111 | ld_shlibs_CXX=no |
| 16112 | ;; |
| 16113 | aix[4-9]*) |
| 16114 | if test "$host_cpu" = ia64; then |
| 16115 | # On IA64, the linker does run time linking by default, so we don't |
| 16116 | # have to do anything special. |
| 16117 | aix_use_runtimelinking=no |
| 16118 | exp_sym_flag='-Bexport' |
| 16119 | no_entry_flag="" |
| 16120 | else |
| 16121 | aix_use_runtimelinking=no |
| 16122 | |
| 16123 | # Test if we are trying to use run time linking or normal |
| 16124 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 16125 | # need to do runtime linking. |
| 16126 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 16127 | for ld_flag in $LDFLAGS; do |
| 16128 | case $ld_flag in |
| 16129 | *-brtl*) |
| 16130 | aix_use_runtimelinking=yes |
| 16131 | break |
| 16132 | ;; |
| 16133 | esac |
| 16134 | done |
| 16135 | ;; |
| 16136 | esac |
| 16137 | |
| 16138 | exp_sym_flag='-bexport' |
| 16139 | no_entry_flag='-bnoentry' |
| 16140 | fi |
| 16141 | |
| 16142 | # When large executables or shared objects are built, AIX ld can |
| 16143 | # have problems creating the table of contents. If linking a library |
| 16144 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 16145 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 16146 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 16147 | |
| 16148 | archive_cmds_CXX='' |
| 16149 | hardcode_direct_CXX=yes |
| 16150 | hardcode_direct_absolute_CXX=yes |
| 16151 | hardcode_libdir_separator_CXX=':' |
| 16152 | link_all_deplibs_CXX=yes |
| 16153 | file_list_spec_CXX='${wl}-f,' |
| 16154 | |
| 16155 | if test "$GXX" = yes; then |
| 16156 | case $host_os in aix4.[012]|aix4.[012].*) |
| 16157 | # We only want to do this on AIX 4.2 and lower, the check |
| 16158 | # below for broken collect2 doesn't work under 4.3+ |
| 16159 | collect2name=`${CC} -print-prog-name=collect2` |
| 16160 | if test -f "$collect2name" && |
| 16161 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 16162 | then |
| 16163 | # We have reworked collect2 |
| 16164 | : |
| 16165 | else |
| 16166 | # We have old collect2 |
| 16167 | hardcode_direct_CXX=unsupported |
| 16168 | # It fails to find uninstalled libraries when the uninstalled |
| 16169 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 16170 | # to unsupported forces relinking |
| 16171 | hardcode_minus_L_CXX=yes |
| 16172 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 16173 | hardcode_libdir_separator_CXX= |
| 16174 | fi |
| 16175 | esac |
| 16176 | shared_flag='-shared' |
| 16177 | if test "$aix_use_runtimelinking" = yes; then |
| 16178 | shared_flag="$shared_flag "'${wl}-G' |
| 16179 | fi |
| 16180 | else |
| 16181 | # not using gcc |
| 16182 | if test "$host_cpu" = ia64; then |
| 16183 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 16184 | # chokes on -Wl,-G. The following line is correct: |
| 16185 | shared_flag='-G' |
| 16186 | else |
| 16187 | if test "$aix_use_runtimelinking" = yes; then |
| 16188 | shared_flag='${wl}-G' |
| 16189 | else |
| 16190 | shared_flag='${wl}-bM:SRE' |
| 16191 | fi |
| 16192 | fi |
| 16193 | fi |
| 16194 | |
| 16195 | export_dynamic_flag_spec_CXX='${wl}-bexpall' |
| 16196 | # It seems that -bexpall does not export symbols beginning with |
| 16197 | # underscore (_), so it is better to generate a list of symbols to |
| 16198 | # export. |
| 16199 | always_export_symbols_CXX=yes |
| 16200 | if test "$aix_use_runtimelinking" = yes; then |
| 16201 | # Warning - without using the other runtime loading flags (-brtl), |
| 16202 | # -berok will link without error, but may produce a broken library. |
| 16203 | allow_undefined_flag_CXX='-berok' |
| 16204 | # Determine the default libpath from the value encoded in an empty |
| 16205 | # executable. |
| 16206 | cat >conftest.$ac_ext <<_ACEOF |
| 16207 | /* confdefs.h. */ |
| 16208 | _ACEOF |
| 16209 | cat confdefs.h >>conftest.$ac_ext |
| 16210 | cat >>conftest.$ac_ext <<_ACEOF |
| 16211 | /* end confdefs.h. */ |
| 16212 | |
| 16213 | int |
| 16214 | main () |
| 16215 | { |
| 16216 | |
| 16217 | ; |
| 16218 | return 0; |
| 16219 | } |
| 16220 | _ACEOF |
| 16221 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16222 | if { (ac_try="$ac_link" |
| 16223 | case "(($ac_try" in |
| 16224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16225 | *) ac_try_echo=$ac_try;; |
| 16226 | esac |
| 16227 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16228 | $as_echo "$ac_try_echo") >&5 |
| 16229 | (eval "$ac_link") 2>conftest.er1 |
| 16230 | ac_status=$? |
| 16231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16232 | rm -f conftest.er1 |
| 16233 | cat conftest.err >&5 |
| 16234 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16235 | (exit $ac_status); } && { |
| 16236 | test -z "$ac_cxx_werror_flag" || |
| 16237 | test ! -s conftest.err |
| 16238 | } && test -s conftest$ac_exeext && { |
| 16239 | test "$cross_compiling" = yes || |
| 16240 | $as_test_x conftest$ac_exeext |
| 16241 | }; then |
| 16242 | |
| 16243 | lt_aix_libpath_sed=' |
| 16244 | /Import File Strings/,/^$/ { |
| 16245 | /^0/ { |
| 16246 | s/^0 *\(.*\)$/\1/ |
| 16247 | p |
| 16248 | } |
| 16249 | }' |
| 16250 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 16251 | # Check for a 64-bit object if we didn't find anything. |
| 16252 | if test -z "$aix_libpath"; then |
| 16253 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 16254 | fi |
| 16255 | else |
| 16256 | $as_echo "$as_me: failed program was:" >&5 |
| 16257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16258 | |
| 16259 | |
| 16260 | fi |
| 16261 | |
| 16262 | rm -rf conftest.dSYM |
| 16263 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 16264 | conftest$ac_exeext conftest.$ac_ext |
| 16265 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 16266 | |
| 16267 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 16268 | |
| 16269 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 16270 | else |
| 16271 | if test "$host_cpu" = ia64; then |
| 16272 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 16273 | allow_undefined_flag_CXX="-z nodefs" |
| 16274 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
| 16275 | else |
| 16276 | # Determine the default libpath from the value encoded in an |
| 16277 | # empty executable. |
| 16278 | cat >conftest.$ac_ext <<_ACEOF |
| 16279 | /* confdefs.h. */ |
| 16280 | _ACEOF |
| 16281 | cat confdefs.h >>conftest.$ac_ext |
| 16282 | cat >>conftest.$ac_ext <<_ACEOF |
| 16283 | /* end confdefs.h. */ |
| 16284 | |
| 16285 | int |
| 16286 | main () |
| 16287 | { |
| 16288 | |
| 16289 | ; |
| 16290 | return 0; |
| 16291 | } |
| 16292 | _ACEOF |
| 16293 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16294 | if { (ac_try="$ac_link" |
| 16295 | case "(($ac_try" in |
| 16296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16297 | *) ac_try_echo=$ac_try;; |
| 16298 | esac |
| 16299 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 16300 | $as_echo "$ac_try_echo") >&5 |
| 16301 | (eval "$ac_link") 2>conftest.er1 |
| 16302 | ac_status=$? |
| 16303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16304 | rm -f conftest.er1 |
| 16305 | cat conftest.err >&5 |
| 16306 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16307 | (exit $ac_status); } && { |
| 16308 | test -z "$ac_cxx_werror_flag" || |
| 16309 | test ! -s conftest.err |
| 16310 | } && test -s conftest$ac_exeext && { |
| 16311 | test "$cross_compiling" = yes || |
| 16312 | $as_test_x conftest$ac_exeext |
| 16313 | }; then |
| 16314 | |
| 16315 | lt_aix_libpath_sed=' |
| 16316 | /Import File Strings/,/^$/ { |
| 16317 | /^0/ { |
| 16318 | s/^0 *\(.*\)$/\1/ |
| 16319 | p |
| 16320 | } |
| 16321 | }' |
| 16322 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 16323 | # Check for a 64-bit object if we didn't find anything. |
| 16324 | if test -z "$aix_libpath"; then |
| 16325 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 16326 | fi |
| 16327 | else |
| 16328 | $as_echo "$as_me: failed program was:" >&5 |
| 16329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16330 | |
| 16331 | |
| 16332 | fi |
| 16333 | |
| 16334 | rm -rf conftest.dSYM |
| 16335 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 16336 | conftest$ac_exeext conftest.$ac_ext |
| 16337 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 16338 | |
| 16339 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 16340 | # Warning - without using the other run time loading flags, |
| 16341 | # -berok will link without error, but may produce a broken library. |
| 16342 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 16343 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 16344 | # Exported symbols can be pulled into shared objects from archives |
| 16345 | whole_archive_flag_spec_CXX='$convenience' |
| 16346 | archive_cmds_need_lc_CXX=yes |
| 16347 | # This is similar to how AIX traditionally builds its shared |
| 16348 | # libraries. |
| 16349 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 16350 | fi |
| 16351 | fi |
| 16352 | ;; |
| 16353 | |
| 16354 | beos*) |
| 16355 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 16356 | allow_undefined_flag_CXX=unsupported |
| 16357 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 16358 | # support --undefined. This deserves some investigation. FIXME |
| 16359 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16360 | else |
| 16361 | ld_shlibs_CXX=no |
| 16362 | fi |
| 16363 | ;; |
| 16364 | |
| 16365 | chorus*) |
| 16366 | case $cc_basename in |
| 16367 | *) |
| 16368 | # FIXME: insert proper C++ library support |
| 16369 | ld_shlibs_CXX=no |
| 16370 | ;; |
| 16371 | esac |
| 16372 | ;; |
| 16373 | |
| 16374 | cygwin* | mingw* | pw32* | cegcc*) |
| 16375 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 16376 | # as there is no search path for DLLs. |
| 16377 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 16378 | allow_undefined_flag_CXX=unsupported |
| 16379 | always_export_symbols_CXX=no |
| 16380 | enable_shared_with_static_runtimes_CXX=yes |
| 16381 | |
| 16382 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 16383 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 16384 | # If the export-symbols file already is a .def file (1st line |
| 16385 | # is EXPORTS), use it as is; otherwise, prepend... |
| 16386 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 16387 | cp $export_symbols $output_objdir/$soname.def; |
| 16388 | else |
| 16389 | echo EXPORTS > $output_objdir/$soname.def; |
| 16390 | cat $export_symbols >> $output_objdir/$soname.def; |
| 16391 | fi~ |
| 16392 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 16393 | else |
| 16394 | ld_shlibs_CXX=no |
| 16395 | fi |
| 16396 | ;; |
| 16397 | darwin* | rhapsody*) |
| 16398 | |
| 16399 | |
| 16400 | archive_cmds_need_lc_CXX=no |
| 16401 | hardcode_direct_CXX=no |
| 16402 | hardcode_automatic_CXX=yes |
| 16403 | hardcode_shlibpath_var_CXX=unsupported |
| 16404 | whole_archive_flag_spec_CXX='' |
| 16405 | link_all_deplibs_CXX=yes |
| 16406 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
| 16407 | case $cc_basename in |
| 16408 | ifort*) _lt_dar_can_shared=yes ;; |
| 16409 | *) _lt_dar_can_shared=$GCC ;; |
| 16410 | esac |
| 16411 | if test "$_lt_dar_can_shared" = "yes"; then |
| 16412 | output_verbose_link_cmd=echo |
| 16413 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 16414 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 16415 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
| 16416 | module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
| 16417 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 16418 | archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" |
| 16419 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" |
| 16420 | fi |
| 16421 | |
| 16422 | else |
| 16423 | ld_shlibs_CXX=no |
| 16424 | fi |
| 16425 | |
| 16426 | ;; |
| 16427 | |
| 16428 | dgux*) |
| 16429 | case $cc_basename in |
| 16430 | ec++*) |
| 16431 | # FIXME: insert proper C++ library support |
| 16432 | ld_shlibs_CXX=no |
| 16433 | ;; |
| 16434 | ghcx*) |
| 16435 | # Green Hills C++ Compiler |
| 16436 | # FIXME: insert proper C++ library support |
| 16437 | ld_shlibs_CXX=no |
| 16438 | ;; |
| 16439 | *) |
| 16440 | # FIXME: insert proper C++ library support |
| 16441 | ld_shlibs_CXX=no |
| 16442 | ;; |
| 16443 | esac |
| 16444 | ;; |
| 16445 | |
| 16446 | freebsd[12]*) |
| 16447 | # C++ shared libraries reported to be fairly broken before |
| 16448 | # switch to ELF |
| 16449 | ld_shlibs_CXX=no |
| 16450 | ;; |
| 16451 | |
| 16452 | freebsd-elf*) |
| 16453 | archive_cmds_need_lc_CXX=no |
| 16454 | ;; |
| 16455 | |
| 16456 | freebsd* | dragonfly*) |
| 16457 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 16458 | # conventions |
| 16459 | ld_shlibs_CXX=yes |
| 16460 | ;; |
| 16461 | |
| 16462 | gnu*) |
| 16463 | ;; |
| 16464 | |
| 16465 | hpux9*) |
| 16466 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 16467 | hardcode_libdir_separator_CXX=: |
| 16468 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 16469 | hardcode_direct_CXX=yes |
| 16470 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 16471 | # but as the default |
| 16472 | # location of the library. |
| 16473 | |
| 16474 | case $cc_basename in |
| 16475 | CC*) |
| 16476 | # FIXME: insert proper C++ library support |
| 16477 | ld_shlibs_CXX=no |
| 16478 | ;; |
| 16479 | aCC*) |
| 16480 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 16481 | # Commands to make compiler produce verbose output that lists |
| 16482 | # what "hidden" libraries, object files and flags are used when |
| 16483 | # linking a shared library. |
| 16484 | # |
| 16485 | # There doesn't appear to be a way to prevent this compiler from |
| 16486 | # explicitly linking system object files so we need to strip them |
| 16487 | # from the output so that they don't get included in the library |
| 16488 | # dependencies. |
| 16489 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
| 16490 | ;; |
| 16491 | *) |
| 16492 | if test "$GXX" = yes; then |
| 16493 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 16494 | else |
| 16495 | # FIXME: insert proper C++ library support |
| 16496 | ld_shlibs_CXX=no |
| 16497 | fi |
| 16498 | ;; |
| 16499 | esac |
| 16500 | ;; |
| 16501 | |
| 16502 | hpux10*|hpux11*) |
| 16503 | if test $with_gnu_ld = no; then |
| 16504 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 16505 | hardcode_libdir_separator_CXX=: |
| 16506 | |
| 16507 | case $host_cpu in |
| 16508 | hppa*64*|ia64*) |
| 16509 | ;; |
| 16510 | *) |
| 16511 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 16512 | ;; |
| 16513 | esac |
| 16514 | fi |
| 16515 | case $host_cpu in |
| 16516 | hppa*64*|ia64*) |
| 16517 | hardcode_direct_CXX=no |
| 16518 | hardcode_shlibpath_var_CXX=no |
| 16519 | ;; |
| 16520 | *) |
| 16521 | hardcode_direct_CXX=yes |
| 16522 | hardcode_direct_absolute_CXX=yes |
| 16523 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 16524 | # but as the default |
| 16525 | # location of the library. |
| 16526 | ;; |
| 16527 | esac |
| 16528 | |
| 16529 | case $cc_basename in |
| 16530 | CC*) |
| 16531 | # FIXME: insert proper C++ library support |
| 16532 | ld_shlibs_CXX=no |
| 16533 | ;; |
| 16534 | aCC*) |
| 16535 | case $host_cpu in |
| 16536 | hppa*64*) |
| 16537 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 16538 | ;; |
| 16539 | ia64*) |
| 16540 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 16541 | ;; |
| 16542 | *) |
| 16543 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 16544 | ;; |
| 16545 | esac |
| 16546 | # Commands to make compiler produce verbose output that lists |
| 16547 | # what "hidden" libraries, object files and flags are used when |
| 16548 | # linking a shared library. |
| 16549 | # |
| 16550 | # There doesn't appear to be a way to prevent this compiler from |
| 16551 | # explicitly linking system object files so we need to strip them |
| 16552 | # from the output so that they don't get included in the library |
| 16553 | # dependencies. |
| 16554 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
| 16555 | ;; |
| 16556 | *) |
| 16557 | if test "$GXX" = yes; then |
| 16558 | if test $with_gnu_ld = no; then |
| 16559 | case $host_cpu in |
| 16560 | hppa*64*) |
| 16561 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 16562 | ;; |
| 16563 | ia64*) |
| 16564 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 16565 | ;; |
| 16566 | *) |
| 16567 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 16568 | ;; |
| 16569 | esac |
| 16570 | fi |
| 16571 | else |
| 16572 | # FIXME: insert proper C++ library support |
| 16573 | ld_shlibs_CXX=no |
| 16574 | fi |
| 16575 | ;; |
| 16576 | esac |
| 16577 | ;; |
| 16578 | |
| 16579 | interix[3-9]*) |
| 16580 | hardcode_direct_CXX=no |
| 16581 | hardcode_shlibpath_var_CXX=no |
| 16582 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 16583 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 16584 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 16585 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 16586 | # default) and relocated if they conflict, which is a slow very memory |
| 16587 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 16588 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 16589 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 16590 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 16591 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 16592 | ;; |
| 16593 | irix5* | irix6*) |
| 16594 | case $cc_basename in |
| 16595 | CC*) |
| 16596 | # SGI C++ |
| 16597 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 16598 | |
| 16599 | # Archives containing C++ object files must be created using |
| 16600 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 16601 | # necessary to make sure instantiated templates are included |
| 16602 | # in the archive. |
| 16603 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 16604 | ;; |
| 16605 | *) |
| 16606 | if test "$GXX" = yes; then |
| 16607 | if test "$with_gnu_ld" = no; then |
| 16608 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 16609 | else |
| 16610 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' |
| 16611 | fi |
| 16612 | fi |
| 16613 | link_all_deplibs_CXX=yes |
| 16614 | ;; |
| 16615 | esac |
| 16616 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 16617 | hardcode_libdir_separator_CXX=: |
| 16618 | inherit_rpath_CXX=yes |
| 16619 | ;; |
| 16620 | |
| 16621 | linux* | k*bsd*-gnu) |
| 16622 | case $cc_basename in |
| 16623 | KCC*) |
| 16624 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 16625 | |
| 16626 | # KCC will only create a shared library if the output file |
| 16627 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 16628 | # to its proper name (with version) after linking. |
| 16629 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 16630 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
| 16631 | # Commands to make compiler produce verbose output that lists |
| 16632 | # what "hidden" libraries, object files and flags are used when |
| 16633 | # linking a shared library. |
| 16634 | # |
| 16635 | # There doesn't appear to be a way to prevent this compiler from |
| 16636 | # explicitly linking system object files so we need to strip them |
| 16637 | # from the output so that they don't get included in the library |
| 16638 | # dependencies. |
| 16639 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
| 16640 | |
| 16641 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 16642 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 16643 | |
| 16644 | # Archives containing C++ object files must be created using |
| 16645 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 16646 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 16647 | ;; |
| 16648 | icpc* | ecpc* ) |
| 16649 | # Intel C++ |
| 16650 | with_gnu_ld=yes |
| 16651 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 16652 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 16653 | # earlier do not add the objects themselves. |
| 16654 | case `$CC -V 2>&1` in |
| 16655 | *"Version 7."*) |
| 16656 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16657 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 16658 | ;; |
| 16659 | *) # Version 8.0 or newer |
| 16660 | tmp_idyn= |
| 16661 | case $host_cpu in |
| 16662 | ia64*) tmp_idyn=' -i_dynamic';; |
| 16663 | esac |
| 16664 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16665 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 16666 | ;; |
| 16667 | esac |
| 16668 | archive_cmds_need_lc_CXX=no |
| 16669 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 16670 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 16671 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 16672 | ;; |
| 16673 | pgCC* | pgcpp*) |
| 16674 | # Portland Group C++ compiler |
| 16675 | case `$CC -V` in |
| 16676 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) |
| 16677 | prelink_cmds_CXX='tpldir=Template.dir~ |
| 16678 | rm -rf $tpldir~ |
| 16679 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| 16680 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' |
| 16681 | old_archive_cmds_CXX='tpldir=Template.dir~ |
| 16682 | rm -rf $tpldir~ |
| 16683 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| 16684 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ |
| 16685 | $RANLIB $oldlib' |
| 16686 | archive_cmds_CXX='tpldir=Template.dir~ |
| 16687 | rm -rf $tpldir~ |
| 16688 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 16689 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 16690 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 16691 | rm -rf $tpldir~ |
| 16692 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 16693 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
| 16694 | ;; |
| 16695 | *) # Version 6 will use weak symbols |
| 16696 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 16697 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
| 16698 | ;; |
| 16699 | esac |
| 16700 | |
| 16701 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 16702 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 16703 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| 16704 | ;; |
| 16705 | cxx*) |
| 16706 | # Compaq C++ |
| 16707 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16708 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
| 16709 | |
| 16710 | runpath_var=LD_RUN_PATH |
| 16711 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 16712 | hardcode_libdir_separator_CXX=: |
| 16713 | |
| 16714 | # Commands to make compiler produce verbose output that lists |
| 16715 | # what "hidden" libraries, object files and flags are used when |
| 16716 | # linking a shared library. |
| 16717 | # |
| 16718 | # There doesn't appear to be a way to prevent this compiler from |
| 16719 | # explicitly linking system object files so we need to strip them |
| 16720 | # from the output so that they don't get included in the library |
| 16721 | # dependencies. |
| 16722 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
| 16723 | ;; |
| 16724 | xl*) |
| 16725 | # IBM XL 8.0 on PPC, with GNU ld |
| 16726 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 16727 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 16728 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16729 | if test "x$supports_anon_versioning" = xyes; then |
| 16730 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
| 16731 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 16732 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 16733 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 16734 | fi |
| 16735 | ;; |
| 16736 | *) |
| 16737 | case `$CC -V 2>&1 | sed 5q` in |
| 16738 | *Sun\ C*) |
| 16739 | # Sun C++ 5.9 |
| 16740 | no_undefined_flag_CXX=' -zdefs' |
| 16741 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 16742 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' |
| 16743 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 16744 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| 16745 | compiler_needs_object_CXX=yes |
| 16746 | |
| 16747 | # Not sure whether something based on |
| 16748 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 16749 | # would be better. |
| 16750 | output_verbose_link_cmd='echo' |
| 16751 | |
| 16752 | # Archives containing C++ object files must be created using |
| 16753 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 16754 | # necessary to make sure instantiated templates are included |
| 16755 | # in the archive. |
| 16756 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 16757 | ;; |
| 16758 | esac |
| 16759 | ;; |
| 16760 | esac |
| 16761 | ;; |
| 16762 | |
| 16763 | lynxos*) |
| 16764 | # FIXME: insert proper C++ library support |
| 16765 | ld_shlibs_CXX=no |
| 16766 | ;; |
| 16767 | |
| 16768 | m88k*) |
| 16769 | # FIXME: insert proper C++ library support |
| 16770 | ld_shlibs_CXX=no |
| 16771 | ;; |
| 16772 | |
| 16773 | mvs*) |
| 16774 | case $cc_basename in |
| 16775 | cxx*) |
| 16776 | # FIXME: insert proper C++ library support |
| 16777 | ld_shlibs_CXX=no |
| 16778 | ;; |
| 16779 | *) |
| 16780 | # FIXME: insert proper C++ library support |
| 16781 | ld_shlibs_CXX=no |
| 16782 | ;; |
| 16783 | esac |
| 16784 | ;; |
| 16785 | |
| 16786 | netbsd*) |
| 16787 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 16788 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 16789 | wlarc= |
| 16790 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 16791 | hardcode_direct_CXX=yes |
| 16792 | hardcode_shlibpath_var_CXX=no |
| 16793 | fi |
| 16794 | # Workaround some broken pre-1.5 toolchains |
| 16795 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 16796 | ;; |
| 16797 | |
| 16798 | *nto* | *qnx*) |
| 16799 | ld_shlibs_CXX=yes |
| 16800 | ;; |
| 16801 | |
| 16802 | openbsd2*) |
| 16803 | # C++ shared libraries are fairly broken |
| 16804 | ld_shlibs_CXX=no |
| 16805 | ;; |
| 16806 | |
| 16807 | openbsd*) |
| 16808 | if test -f /usr/libexec/ld.so; then |
| 16809 | hardcode_direct_CXX=yes |
| 16810 | hardcode_shlibpath_var_CXX=no |
| 16811 | hardcode_direct_absolute_CXX=yes |
| 16812 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 16813 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 16814 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16815 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 16816 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 16817 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 16818 | fi |
| 16819 | output_verbose_link_cmd=echo |
| 16820 | else |
| 16821 | ld_shlibs_CXX=no |
| 16822 | fi |
| 16823 | ;; |
| 16824 | |
| 16825 | osf3* | osf4* | osf5*) |
| 16826 | case $cc_basename in |
| 16827 | KCC*) |
| 16828 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 16829 | |
| 16830 | # KCC will only create a shared library if the output file |
| 16831 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 16832 | # to its proper name (with version) after linking. |
| 16833 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 16834 | |
| 16835 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 16836 | hardcode_libdir_separator_CXX=: |
| 16837 | |
| 16838 | # Archives containing C++ object files must be created using |
| 16839 | # the KAI C++ compiler. |
| 16840 | case $host in |
| 16841 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 16842 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 16843 | esac |
| 16844 | ;; |
| 16845 | RCC*) |
| 16846 | # Rational C++ 2.4.1 |
| 16847 | # FIXME: insert proper C++ library support |
| 16848 | ld_shlibs_CXX=no |
| 16849 | ;; |
| 16850 | cxx*) |
| 16851 | case $host in |
| 16852 | osf3*) |
| 16853 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 16854 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 16855 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 16856 | ;; |
| 16857 | *) |
| 16858 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 16859 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 16860 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 16861 | echo "-hidden">> $lib.exp~ |
| 16862 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ |
| 16863 | $RM $lib.exp' |
| 16864 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 16865 | ;; |
| 16866 | esac |
| 16867 | |
| 16868 | hardcode_libdir_separator_CXX=: |
| 16869 | |
| 16870 | # Commands to make compiler produce verbose output that lists |
| 16871 | # what "hidden" libraries, object files and flags are used when |
| 16872 | # linking a shared library. |
| 16873 | # |
| 16874 | # There doesn't appear to be a way to prevent this compiler from |
| 16875 | # explicitly linking system object files so we need to strip them |
| 16876 | # from the output so that they don't get included in the library |
| 16877 | # dependencies. |
| 16878 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
| 16879 | ;; |
| 16880 | *) |
| 16881 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 16882 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 16883 | case $host in |
| 16884 | osf3*) |
| 16885 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 16886 | ;; |
| 16887 | *) |
| 16888 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 16889 | ;; |
| 16890 | esac |
| 16891 | |
| 16892 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 16893 | hardcode_libdir_separator_CXX=: |
| 16894 | |
| 16895 | # Commands to make compiler produce verbose output that lists |
| 16896 | # what "hidden" libraries, object files and flags are used when |
| 16897 | # linking a shared library. |
| 16898 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 16899 | |
| 16900 | else |
| 16901 | # FIXME: insert proper C++ library support |
| 16902 | ld_shlibs_CXX=no |
| 16903 | fi |
| 16904 | ;; |
| 16905 | esac |
| 16906 | ;; |
| 16907 | |
| 16908 | psos*) |
| 16909 | # FIXME: insert proper C++ library support |
| 16910 | ld_shlibs_CXX=no |
| 16911 | ;; |
| 16912 | |
| 16913 | sunos4*) |
| 16914 | case $cc_basename in |
| 16915 | CC*) |
| 16916 | # Sun C++ 4.x |
| 16917 | # FIXME: insert proper C++ library support |
| 16918 | ld_shlibs_CXX=no |
| 16919 | ;; |
| 16920 | lcc*) |
| 16921 | # Lucid |
| 16922 | # FIXME: insert proper C++ library support |
| 16923 | ld_shlibs_CXX=no |
| 16924 | ;; |
| 16925 | *) |
| 16926 | # FIXME: insert proper C++ library support |
| 16927 | ld_shlibs_CXX=no |
| 16928 | ;; |
| 16929 | esac |
| 16930 | ;; |
| 16931 | |
| 16932 | solaris*) |
| 16933 | case $cc_basename in |
| 16934 | CC*) |
| 16935 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 16936 | archive_cmds_need_lc_CXX=yes |
| 16937 | no_undefined_flag_CXX=' -zdefs' |
| 16938 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 16939 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 16940 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 16941 | |
| 16942 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 16943 | hardcode_shlibpath_var_CXX=no |
| 16944 | case $host_os in |
| 16945 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 16946 | *) |
| 16947 | # The compiler driver will combine and reorder linker options, |
| 16948 | # but understands `-z linker_flag'. |
| 16949 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 16950 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
| 16951 | ;; |
| 16952 | esac |
| 16953 | link_all_deplibs_CXX=yes |
| 16954 | |
| 16955 | output_verbose_link_cmd='echo' |
| 16956 | |
| 16957 | # Archives containing C++ object files must be created using |
| 16958 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 16959 | # necessary to make sure instantiated templates are included |
| 16960 | # in the archive. |
| 16961 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 16962 | ;; |
| 16963 | gcx*) |
| 16964 | # Green Hills C++ Compiler |
| 16965 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 16966 | |
| 16967 | # The C++ compiler must be used to create the archive. |
| 16968 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 16969 | ;; |
| 16970 | *) |
| 16971 | # GNU C++ compiler with Solaris linker |
| 16972 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 16973 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 16974 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 16975 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 16976 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 16977 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 16978 | |
| 16979 | # Commands to make compiler produce verbose output that lists |
| 16980 | # what "hidden" libraries, object files and flags are used when |
| 16981 | # linking a shared library. |
| 16982 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 16983 | else |
| 16984 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 16985 | # platform. |
| 16986 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 16987 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 16988 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 16989 | |
| 16990 | # Commands to make compiler produce verbose output that lists |
| 16991 | # what "hidden" libraries, object files and flags are used when |
| 16992 | # linking a shared library. |
| 16993 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 16994 | fi |
| 16995 | |
| 16996 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 16997 | case $host_os in |
| 16998 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 16999 | *) |
| 17000 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 17001 | ;; |
| 17002 | esac |
| 17003 | fi |
| 17004 | ;; |
| 17005 | esac |
| 17006 | ;; |
| 17007 | |
| 17008 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 17009 | no_undefined_flag_CXX='${wl}-z,text' |
| 17010 | archive_cmds_need_lc_CXX=no |
| 17011 | hardcode_shlibpath_var_CXX=no |
| 17012 | runpath_var='LD_RUN_PATH' |
| 17013 | |
| 17014 | case $cc_basename in |
| 17015 | CC*) |
| 17016 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17017 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17018 | ;; |
| 17019 | *) |
| 17020 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17021 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17022 | ;; |
| 17023 | esac |
| 17024 | ;; |
| 17025 | |
| 17026 | sysv5* | sco3.2v5* | sco5v6*) |
| 17027 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 17028 | # link with -lc, and that would cause any symbols used from libc to |
| 17029 | # always be unresolved, which means just about no library would |
| 17030 | # ever link correctly. If we're not using GNU ld we use -z text |
| 17031 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 17032 | # as -z defs. |
| 17033 | no_undefined_flag_CXX='${wl}-z,text' |
| 17034 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 17035 | archive_cmds_need_lc_CXX=no |
| 17036 | hardcode_shlibpath_var_CXX=no |
| 17037 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' |
| 17038 | hardcode_libdir_separator_CXX=':' |
| 17039 | link_all_deplibs_CXX=yes |
| 17040 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 17041 | runpath_var='LD_RUN_PATH' |
| 17042 | |
| 17043 | case $cc_basename in |
| 17044 | CC*) |
| 17045 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17046 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17047 | ;; |
| 17048 | *) |
| 17049 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17050 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17051 | ;; |
| 17052 | esac |
| 17053 | ;; |
| 17054 | |
| 17055 | tandem*) |
| 17056 | case $cc_basename in |
| 17057 | NCC*) |
| 17058 | # NonStop-UX NCC 3.20 |
| 17059 | # FIXME: insert proper C++ library support |
| 17060 | ld_shlibs_CXX=no |
| 17061 | ;; |
| 17062 | *) |
| 17063 | # FIXME: insert proper C++ library support |
| 17064 | ld_shlibs_CXX=no |
| 17065 | ;; |
| 17066 | esac |
| 17067 | ;; |
| 17068 | |
| 17069 | vxworks*) |
| 17070 | # FIXME: insert proper C++ library support |
| 17071 | ld_shlibs_CXX=no |
| 17072 | ;; |
| 17073 | |
| 17074 | *) |
| 17075 | # FIXME: insert proper C++ library support |
| 17076 | ld_shlibs_CXX=no |
| 17077 | ;; |
| 17078 | esac |
| 17079 | |
| 17080 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 17081 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 17082 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 17083 | |
| 17084 | GCC_CXX="$GXX" |
| 17085 | LD_CXX="$LD" |
| 17086 | |
| 17087 | ## CAVEAT EMPTOR: |
| 17088 | ## There is no encapsulation within the following macros, do not change |
| 17089 | ## the running order or otherwise move them around unless you know exactly |
| 17090 | ## what you are doing... |
| 17091 | # Dependencies to place before and after the object being linked: |
| 17092 | predep_objects_CXX= |
| 17093 | postdep_objects_CXX= |
| 17094 | predeps_CXX= |
| 17095 | postdeps_CXX= |
| 17096 | compiler_lib_search_path_CXX= |
| 17097 | |
| 17098 | cat > conftest.$ac_ext <<_LT_EOF |
| 17099 | class Foo |
| 17100 | { |
| 17101 | public: |
| 17102 | Foo (void) { a = 0; } |
| 17103 | private: |
| 17104 | int a; |
| 17105 | }; |
| 17106 | _LT_EOF |
| 17107 | |
| 17108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17109 | (eval $ac_compile) 2>&5 |
| 17110 | ac_status=$? |
| 17111 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17112 | (exit $ac_status); }; then |
| 17113 | # Parse the compiler output and extract the necessary |
| 17114 | # objects, libraries and library flags. |
| 17115 | |
| 17116 | # Sentinel used to keep track of whether or not we are before |
| 17117 | # the conftest object file. |
| 17118 | pre_test_object_deps_done=no |
| 17119 | |
| 17120 | for p in `eval "$output_verbose_link_cmd"`; do |
| 17121 | case $p in |
| 17122 | |
| 17123 | -L* | -R* | -l*) |
| 17124 | # Some compilers place space between "-{L,R}" and the path. |
| 17125 | # Remove the space. |
| 17126 | if test $p = "-L" || |
| 17127 | test $p = "-R"; then |
| 17128 | prev=$p |
| 17129 | continue |
| 17130 | else |
| 17131 | prev= |
| 17132 | fi |
| 17133 | |
| 17134 | if test "$pre_test_object_deps_done" = no; then |
| 17135 | case $p in |
| 17136 | -L* | -R*) |
| 17137 | # Internal compiler library paths should come after those |
| 17138 | # provided the user. The postdeps already come after the |
| 17139 | # user supplied libs so there is no need to process them. |
| 17140 | if test -z "$compiler_lib_search_path_CXX"; then |
| 17141 | compiler_lib_search_path_CXX="${prev}${p}" |
| 17142 | else |
| 17143 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 17144 | fi |
| 17145 | ;; |
| 17146 | # The "-l" case would never come before the object being |
| 17147 | # linked, so don't bother handling this case. |
| 17148 | esac |
| 17149 | else |
| 17150 | if test -z "$postdeps_CXX"; then |
| 17151 | postdeps_CXX="${prev}${p}" |
| 17152 | else |
| 17153 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 17154 | fi |
| 17155 | fi |
| 17156 | ;; |
| 17157 | |
| 17158 | *.$objext) |
| 17159 | # This assumes that the test object file only shows up |
| 17160 | # once in the compiler output. |
| 17161 | if test "$p" = "conftest.$objext"; then |
| 17162 | pre_test_object_deps_done=yes |
| 17163 | continue |
| 17164 | fi |
| 17165 | |
| 17166 | if test "$pre_test_object_deps_done" = no; then |
| 17167 | if test -z "$predep_objects_CXX"; then |
| 17168 | predep_objects_CXX="$p" |
| 17169 | else |
| 17170 | predep_objects_CXX="$predep_objects_CXX $p" |
| 17171 | fi |
| 17172 | else |
| 17173 | if test -z "$postdep_objects_CXX"; then |
| 17174 | postdep_objects_CXX="$p" |
| 17175 | else |
| 17176 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 17177 | fi |
| 17178 | fi |
| 17179 | ;; |
| 17180 | |
| 17181 | *) ;; # Ignore the rest. |
| 17182 | |
| 17183 | esac |
| 17184 | done |
| 17185 | |
| 17186 | # Clean up. |
| 17187 | rm -f a.out a.exe |
| 17188 | else |
| 17189 | echo "libtool.m4: error: problem compiling CXX test program" |
| 17190 | fi |
| 17191 | |
| 17192 | $RM -f confest.$objext |
| 17193 | |
| 17194 | # PORTME: override above test on systems where it is broken |
| 17195 | case $host_os in |
| 17196 | interix[3-9]*) |
| 17197 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 17198 | # hack all around it, let's just trust "g++" to DTRT. |
| 17199 | predep_objects_CXX= |
| 17200 | postdep_objects_CXX= |
| 17201 | postdeps_CXX= |
| 17202 | ;; |
| 17203 | |
| 17204 | linux*) |
| 17205 | case `$CC -V 2>&1 | sed 5q` in |
| 17206 | *Sun\ C*) |
| 17207 | # Sun C++ 5.9 |
| 17208 | |
| 17209 | # The more standards-conforming stlport4 library is |
| 17210 | # incompatible with the Cstd library. Avoid specifying |
| 17211 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 17212 | # -library=stlport4 depends on it. |
| 17213 | case " $CXX $CXXFLAGS " in |
| 17214 | *" -library=stlport4 "*) |
| 17215 | solaris_use_stlport4=yes |
| 17216 | ;; |
| 17217 | esac |
| 17218 | |
| 17219 | if test "$solaris_use_stlport4" != yes; then |
| 17220 | postdeps_CXX='-library=Cstd -library=Crun' |
| 17221 | fi |
| 17222 | ;; |
| 17223 | esac |
| 17224 | ;; |
| 17225 | |
| 17226 | solaris*) |
| 17227 | case $cc_basename in |
| 17228 | CC*) |
| 17229 | # The more standards-conforming stlport4 library is |
| 17230 | # incompatible with the Cstd library. Avoid specifying |
| 17231 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 17232 | # -library=stlport4 depends on it. |
| 17233 | case " $CXX $CXXFLAGS " in |
| 17234 | *" -library=stlport4 "*) |
| 17235 | solaris_use_stlport4=yes |
| 17236 | ;; |
| 17237 | esac |
| 17238 | |
| 17239 | # Adding this requires a known-good setup of shared libraries for |
| 17240 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 17241 | # archive will be linked into the output, leading to subtle bugs. |
| 17242 | if test "$solaris_use_stlport4" != yes; then |
| 17243 | postdeps_CXX='-library=Cstd -library=Crun' |
| 17244 | fi |
| 17245 | ;; |
| 17246 | esac |
| 17247 | ;; |
| 17248 | esac |
| 17249 | |
| 17250 | |
| 17251 | case " $postdeps_CXX " in |
| 17252 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 17253 | esac |
| 17254 | compiler_lib_search_dirs_CXX= |
| 17255 | if test -n "${compiler_lib_search_path_CXX}"; then |
| 17256 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
| 17257 | fi |
| 17258 | |
| 17259 | |
| 17260 | |
| 17261 | |
| 17262 | |
| 17263 | |
| 17264 | |
| 17265 | |
| 17266 | |
| 17267 | |
| 17268 | |
| 17269 | |
| 17270 | |
| 17271 | |
| 17272 | |
| 17273 | |
| 17274 | |
| 17275 | |
| 17276 | |
| 17277 | |
| 17278 | |
| 17279 | |
| 17280 | |
| 17281 | |
| 17282 | |
| 17283 | |
| 17284 | |
| 17285 | |
| 17286 | |
| 17287 | |
| 17288 | |
| 17289 | lt_prog_compiler_wl_CXX= |
| 17290 | lt_prog_compiler_pic_CXX= |
| 17291 | lt_prog_compiler_static_CXX= |
| 17292 | |
| 17293 | { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 17294 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 17295 | |
| 17296 | # C++ specific cases for pic, static, wl, etc. |
| 17297 | if test "$GXX" = yes; then |
| 17298 | lt_prog_compiler_wl_CXX='-Wl,' |
| 17299 | lt_prog_compiler_static_CXX='-static' |
| 17300 | |
| 17301 | case $host_os in |
| 17302 | aix*) |
| 17303 | # All AIX code is PIC. |
| 17304 | if test "$host_cpu" = ia64; then |
| 17305 | # AIX 5 now supports IA64 processor |
| 17306 | lt_prog_compiler_static_CXX='-Bstatic' |
| 17307 | fi |
| 17308 | ;; |
| 17309 | |
| 17310 | amigaos*) |
| 17311 | case $host_cpu in |
| 17312 | powerpc) |
| 17313 | # see comment about AmigaOS4 .so support |
| 17314 | lt_prog_compiler_pic_CXX='-fPIC' |
| 17315 | ;; |
| 17316 | m68k) |
| 17317 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 17318 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 17319 | # like `-m68040'. |
| 17320 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 17321 | ;; |
| 17322 | esac |
| 17323 | ;; |
| 17324 | |
| 17325 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 17326 | # PIC is the default for these OSes. |
| 17327 | ;; |
| 17328 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 17329 | # This hack is so that the source file can tell whether it is being |
| 17330 | # built for inclusion in a dll (and should export symbols for example). |
| 17331 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 17332 | # (--disable-auto-import) libraries |
| 17333 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 17334 | ;; |
| 17335 | darwin* | rhapsody*) |
| 17336 | # PIC is the default on this platform |
| 17337 | # Common symbols not allowed in MH_DYLIB files |
| 17338 | lt_prog_compiler_pic_CXX='-fno-common' |
| 17339 | ;; |
| 17340 | *djgpp*) |
| 17341 | # DJGPP does not support shared libraries at all |
| 17342 | lt_prog_compiler_pic_CXX= |
| 17343 | ;; |
| 17344 | interix[3-9]*) |
| 17345 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 17346 | # Instead, we relocate shared libraries at runtime. |
| 17347 | ;; |
| 17348 | sysv4*MP*) |
| 17349 | if test -d /usr/nec; then |
| 17350 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 17351 | fi |
| 17352 | ;; |
| 17353 | hpux*) |
| 17354 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 17355 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 17356 | # sets the default TLS model and affects inlining. |
| 17357 | case $host_cpu in |
| 17358 | hppa*64*) |
| 17359 | ;; |
| 17360 | *) |
| 17361 | lt_prog_compiler_pic_CXX='-fPIC' |
| 17362 | ;; |
| 17363 | esac |
| 17364 | ;; |
| 17365 | *qnx* | *nto*) |
| 17366 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 17367 | # it will coredump. |
| 17368 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 17369 | ;; |
| 17370 | *) |
| 17371 | lt_prog_compiler_pic_CXX='-fPIC' |
| 17372 | ;; |
| 17373 | esac |
| 17374 | else |
| 17375 | case $host_os in |
| 17376 | aix[4-9]*) |
| 17377 | # All AIX code is PIC. |
| 17378 | if test "$host_cpu" = ia64; then |
| 17379 | # AIX 5 now supports IA64 processor |
| 17380 | lt_prog_compiler_static_CXX='-Bstatic' |
| 17381 | else |
| 17382 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 17383 | fi |
| 17384 | ;; |
| 17385 | chorus*) |
| 17386 | case $cc_basename in |
| 17387 | cxch68*) |
| 17388 | # Green Hills C++ Compiler |
| 17389 | # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
| 17390 | ;; |
| 17391 | esac |
| 17392 | ;; |
| 17393 | dgux*) |
| 17394 | case $cc_basename in |
| 17395 | ec++*) |
| 17396 | lt_prog_compiler_pic_CXX='-KPIC' |
| 17397 | ;; |
| 17398 | ghcx*) |
| 17399 | # Green Hills C++ Compiler |
| 17400 | lt_prog_compiler_pic_CXX='-pic' |
| 17401 | ;; |
| 17402 | *) |
| 17403 | ;; |
| 17404 | esac |
| 17405 | ;; |
| 17406 | freebsd* | dragonfly*) |
| 17407 | # FreeBSD uses GNU C++ |
| 17408 | ;; |
| 17409 | hpux9* | hpux10* | hpux11*) |
| 17410 | case $cc_basename in |
| 17411 | CC*) |
| 17412 | lt_prog_compiler_wl_CXX='-Wl,' |
| 17413 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 17414 | if test "$host_cpu" != ia64; then |
| 17415 | lt_prog_compiler_pic_CXX='+Z' |
| 17416 | fi |
| 17417 | ;; |
| 17418 | aCC*) |
| 17419 | lt_prog_compiler_wl_CXX='-Wl,' |
| 17420 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 17421 | case $host_cpu in |
| 17422 | hppa*64*|ia64*) |
| 17423 | # +Z the default |
| 17424 | ;; |
| 17425 | *) |
| 17426 | lt_prog_compiler_pic_CXX='+Z' |
| 17427 | ;; |
| 17428 | esac |
| 17429 | ;; |
| 17430 | *) |
| 17431 | ;; |
| 17432 | esac |
| 17433 | ;; |
| 17434 | interix*) |
| 17435 | # This is c89, which is MS Visual C++ (no shared libs) |
| 17436 | # Anyone wants to do a port? |
| 17437 | ;; |
| 17438 | irix5* | irix6* | nonstopux*) |
| 17439 | case $cc_basename in |
| 17440 | CC*) |
| 17441 | lt_prog_compiler_wl_CXX='-Wl,' |
| 17442 | lt_prog_compiler_static_CXX='-non_shared' |
| 17443 | # CC pic flag -KPIC is the default. |
| 17444 | ;; |
| 17445 | *) |
| 17446 | ;; |
| 17447 | esac |
| 17448 | ;; |
| 17449 | linux* | k*bsd*-gnu) |
| 17450 | case $cc_basename in |
| 17451 | KCC*) |
| 17452 | # KAI C++ Compiler |
| 17453 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 17454 | lt_prog_compiler_pic_CXX='-fPIC' |
| 17455 | ;; |
| 17456 | ecpc* ) |
| 17457 | # old Intel C++ for x86_64 which still supported -KPIC. |
| 17458 | lt_prog_compiler_wl_CXX='-Wl,' |
| 17459 | lt_prog_compiler_pic_CXX='-KPIC' |
| 17460 | lt_prog_compiler_static_CXX='-static' |
| 17461 | ;; |
| 17462 | icpc* ) |
| 17463 | # Intel C++, used to be incompatible with GCC. |
| 17464 | # ICC 10 doesn't accept -KPIC any more. |
| 17465 | lt_prog_compiler_wl_CXX='-Wl,' |
| 17466 | lt_prog_compiler_pic_CXX='-fPIC' |
| 17467 | lt_prog_compiler_static_CXX='-static' |
| 17468 | ;; |
| 17469 | pgCC* | pgcpp*) |
| 17470 | # Portland Group C++ compiler |
| 17471 | lt_prog_compiler_wl_CXX='-Wl,' |
| 17472 | lt_prog_compiler_pic_CXX='-fpic' |
| 17473 | lt_prog_compiler_static_CXX='-Bstatic' |
| 17474 | ;; |
| 17475 | cxx*) |
| 17476 | # Compaq C++ |
| 17477 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 17478 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 17479 | lt_prog_compiler_pic_CXX= |
| 17480 | lt_prog_compiler_static_CXX='-non_shared' |
| 17481 | ;; |
| 17482 | xlc* | xlC*) |
| 17483 | # IBM XL 8.0 on PPC |
| 17484 | lt_prog_compiler_wl_CXX='-Wl,' |
| 17485 | lt_prog_compiler_pic_CXX='-qpic' |
| 17486 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 17487 | ;; |
| 17488 | *) |
| 17489 | case `$CC -V 2>&1 | sed 5q` in |
| 17490 | *Sun\ C*) |
| 17491 | # Sun C++ 5.9 |
| 17492 | lt_prog_compiler_pic_CXX='-KPIC' |
| 17493 | lt_prog_compiler_static_CXX='-Bstatic' |
| 17494 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 17495 | ;; |
| 17496 | esac |
| 17497 | ;; |
| 17498 | esac |
| 17499 | ;; |
| 17500 | lynxos*) |
| 17501 | ;; |
| 17502 | m88k*) |
| 17503 | ;; |
| 17504 | mvs*) |
| 17505 | case $cc_basename in |
| 17506 | cxx*) |
| 17507 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 17508 | ;; |
| 17509 | *) |
| 17510 | ;; |
| 17511 | esac |
| 17512 | ;; |
| 17513 | netbsd*) |
| 17514 | ;; |
| 17515 | *qnx* | *nto*) |
| 17516 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 17517 | # it will coredump. |
| 17518 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 17519 | ;; |
| 17520 | osf3* | osf4* | osf5*) |
| 17521 | case $cc_basename in |
| 17522 | KCC*) |
| 17523 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 17524 | ;; |
| 17525 | RCC*) |
| 17526 | # Rational C++ 2.4.1 |
| 17527 | lt_prog_compiler_pic_CXX='-pic' |
| 17528 | ;; |
| 17529 | cxx*) |
| 17530 | # Digital/Compaq C++ |
| 17531 | lt_prog_compiler_wl_CXX='-Wl,' |
| 17532 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 17533 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 17534 | lt_prog_compiler_pic_CXX= |
| 17535 | lt_prog_compiler_static_CXX='-non_shared' |
| 17536 | ;; |
| 17537 | *) |
| 17538 | ;; |
| 17539 | esac |
| 17540 | ;; |
| 17541 | psos*) |
| 17542 | ;; |
| 17543 | solaris*) |
| 17544 | case $cc_basename in |
| 17545 | CC*) |
| 17546 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 17547 | lt_prog_compiler_pic_CXX='-KPIC' |
| 17548 | lt_prog_compiler_static_CXX='-Bstatic' |
| 17549 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 17550 | ;; |
| 17551 | gcx*) |
| 17552 | # Green Hills C++ Compiler |
| 17553 | lt_prog_compiler_pic_CXX='-PIC' |
| 17554 | ;; |
| 17555 | *) |
| 17556 | ;; |
| 17557 | esac |
| 17558 | ;; |
| 17559 | sunos4*) |
| 17560 | case $cc_basename in |
| 17561 | CC*) |
| 17562 | # Sun C++ 4.x |
| 17563 | lt_prog_compiler_pic_CXX='-pic' |
| 17564 | lt_prog_compiler_static_CXX='-Bstatic' |
| 17565 | ;; |
| 17566 | lcc*) |
| 17567 | # Lucid |
| 17568 | lt_prog_compiler_pic_CXX='-pic' |
| 17569 | ;; |
| 17570 | *) |
| 17571 | ;; |
| 17572 | esac |
| 17573 | ;; |
| 17574 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 17575 | case $cc_basename in |
| 17576 | CC*) |
| 17577 | lt_prog_compiler_wl_CXX='-Wl,' |
| 17578 | lt_prog_compiler_pic_CXX='-KPIC' |
| 17579 | lt_prog_compiler_static_CXX='-Bstatic' |
| 17580 | ;; |
| 17581 | esac |
| 17582 | ;; |
| 17583 | tandem*) |
| 17584 | case $cc_basename in |
| 17585 | NCC*) |
| 17586 | # NonStop-UX NCC 3.20 |
| 17587 | lt_prog_compiler_pic_CXX='-KPIC' |
| 17588 | ;; |
| 17589 | *) |
| 17590 | ;; |
| 17591 | esac |
| 17592 | ;; |
| 17593 | vxworks*) |
| 17594 | ;; |
| 17595 | *) |
| 17596 | lt_prog_compiler_can_build_shared_CXX=no |
| 17597 | ;; |
| 17598 | esac |
| 17599 | fi |
| 17600 | |
| 17601 | case $host_os in |
| 17602 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 17603 | *djgpp*) |
| 17604 | lt_prog_compiler_pic_CXX= |
| 17605 | ;; |
| 17606 | *) |
| 17607 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 17608 | ;; |
| 17609 | esac |
| 17610 | { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 17611 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } |
| 17612 | |
| 17613 | |
| 17614 | |
| 17615 | # |
| 17616 | # Check to make sure the PIC flag actually works. |
| 17617 | # |
| 17618 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 17619 | { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 17620 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
| 17621 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then |
| 17622 | $as_echo_n "(cached) " >&6 |
| 17623 | else |
| 17624 | lt_cv_prog_compiler_pic_works_CXX=no |
| 17625 | ac_outfile=conftest.$ac_objext |
| 17626 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 17627 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 17628 | # Insert the option either (1) after the last *FLAGS variable, or |
| 17629 | # (2) before a word containing "conftest.", or (3) at the end. |
| 17630 | # Note that $ac_compile itself does not contain backslashes and begins |
| 17631 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 17632 | # The option is referenced via a variable to avoid confusing sed. |
| 17633 | lt_compile=`echo "$ac_compile" | $SED \ |
| 17634 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 17635 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 17636 | -e 's:$: $lt_compiler_flag:'` |
| 17637 | (eval echo "\"\$as_me:17637: $lt_compile\"" >&5) |
| 17638 | (eval "$lt_compile" 2>conftest.err) |
| 17639 | ac_status=$? |
| 17640 | cat conftest.err >&5 |
| 17641 | echo "$as_me:17641: \$? = $ac_status" >&5 |
| 17642 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 17643 | # The compiler can only warn and ignore the option if not recognized |
| 17644 | # So say no if there are warnings other than the usual output. |
| 17645 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 17646 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 17647 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 17648 | lt_cv_prog_compiler_pic_works_CXX=yes |
| 17649 | fi |
| 17650 | fi |
| 17651 | $RM conftest* |
| 17652 | |
| 17653 | fi |
| 17654 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| 17655 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
| 17656 | |
| 17657 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
| 17658 | case $lt_prog_compiler_pic_CXX in |
| 17659 | "" | " "*) ;; |
| 17660 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 17661 | esac |
| 17662 | else |
| 17663 | lt_prog_compiler_pic_CXX= |
| 17664 | lt_prog_compiler_can_build_shared_CXX=no |
| 17665 | fi |
| 17666 | |
| 17667 | fi |
| 17668 | |
| 17669 | |
| 17670 | |
| 17671 | # |
| 17672 | # Check to make sure the static flag actually works. |
| 17673 | # |
| 17674 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 17675 | { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 17676 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 17677 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then |
| 17678 | $as_echo_n "(cached) " >&6 |
| 17679 | else |
| 17680 | lt_cv_prog_compiler_static_works_CXX=no |
| 17681 | save_LDFLAGS="$LDFLAGS" |
| 17682 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 17683 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 17684 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 17685 | # The linker can only warn and ignore the option if not recognized |
| 17686 | # So say no if there are warnings |
| 17687 | if test -s conftest.err; then |
| 17688 | # Append any errors to the config.log. |
| 17689 | cat conftest.err 1>&5 |
| 17690 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 17691 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 17692 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 17693 | lt_cv_prog_compiler_static_works_CXX=yes |
| 17694 | fi |
| 17695 | else |
| 17696 | lt_cv_prog_compiler_static_works_CXX=yes |
| 17697 | fi |
| 17698 | fi |
| 17699 | $RM -r conftest* |
| 17700 | LDFLAGS="$save_LDFLAGS" |
| 17701 | |
| 17702 | fi |
| 17703 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| 17704 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
| 17705 | |
| 17706 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
| 17707 | : |
| 17708 | else |
| 17709 | lt_prog_compiler_static_CXX= |
| 17710 | fi |
| 17711 | |
| 17712 | |
| 17713 | |
| 17714 | |
| 17715 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 17716 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 17717 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 17718 | $as_echo_n "(cached) " >&6 |
| 17719 | else |
| 17720 | lt_cv_prog_compiler_c_o_CXX=no |
| 17721 | $RM -r conftest 2>/dev/null |
| 17722 | mkdir conftest |
| 17723 | cd conftest |
| 17724 | mkdir out |
| 17725 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 17726 | |
| 17727 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 17728 | # Insert the option either (1) after the last *FLAGS variable, or |
| 17729 | # (2) before a word containing "conftest.", or (3) at the end. |
| 17730 | # Note that $ac_compile itself does not contain backslashes and begins |
| 17731 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 17732 | lt_compile=`echo "$ac_compile" | $SED \ |
| 17733 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 17734 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 17735 | -e 's:$: $lt_compiler_flag:'` |
| 17736 | (eval echo "\"\$as_me:17736: $lt_compile\"" >&5) |
| 17737 | (eval "$lt_compile" 2>out/conftest.err) |
| 17738 | ac_status=$? |
| 17739 | cat out/conftest.err >&5 |
| 17740 | echo "$as_me:17740: \$? = $ac_status" >&5 |
| 17741 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 17742 | then |
| 17743 | # The compiler can only warn and ignore the option if not recognized |
| 17744 | # So say no if there are warnings |
| 17745 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 17746 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 17747 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 17748 | lt_cv_prog_compiler_c_o_CXX=yes |
| 17749 | fi |
| 17750 | fi |
| 17751 | chmod u+w . 2>&5 |
| 17752 | $RM conftest* |
| 17753 | # SGI C++ compiler will create directory out/ii_files/ for |
| 17754 | # template instantiation |
| 17755 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 17756 | $RM out/* && rmdir out |
| 17757 | cd .. |
| 17758 | $RM -r conftest |
| 17759 | $RM conftest* |
| 17760 | |
| 17761 | fi |
| 17762 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 17763 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 17764 | |
| 17765 | |
| 17766 | |
| 17767 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 17768 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 17769 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 17770 | $as_echo_n "(cached) " >&6 |
| 17771 | else |
| 17772 | lt_cv_prog_compiler_c_o_CXX=no |
| 17773 | $RM -r conftest 2>/dev/null |
| 17774 | mkdir conftest |
| 17775 | cd conftest |
| 17776 | mkdir out |
| 17777 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 17778 | |
| 17779 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 17780 | # Insert the option either (1) after the last *FLAGS variable, or |
| 17781 | # (2) before a word containing "conftest.", or (3) at the end. |
| 17782 | # Note that $ac_compile itself does not contain backslashes and begins |
| 17783 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 17784 | lt_compile=`echo "$ac_compile" | $SED \ |
| 17785 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 17786 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 17787 | -e 's:$: $lt_compiler_flag:'` |
| 17788 | (eval echo "\"\$as_me:17788: $lt_compile\"" >&5) |
| 17789 | (eval "$lt_compile" 2>out/conftest.err) |
| 17790 | ac_status=$? |
| 17791 | cat out/conftest.err >&5 |
| 17792 | echo "$as_me:17792: \$? = $ac_status" >&5 |
| 17793 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 17794 | then |
| 17795 | # The compiler can only warn and ignore the option if not recognized |
| 17796 | # So say no if there are warnings |
| 17797 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 17798 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 17799 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 17800 | lt_cv_prog_compiler_c_o_CXX=yes |
| 17801 | fi |
| 17802 | fi |
| 17803 | chmod u+w . 2>&5 |
| 17804 | $RM conftest* |
| 17805 | # SGI C++ compiler will create directory out/ii_files/ for |
| 17806 | # template instantiation |
| 17807 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 17808 | $RM out/* && rmdir out |
| 17809 | cd .. |
| 17810 | $RM -r conftest |
| 17811 | $RM conftest* |
| 17812 | |
| 17813 | fi |
| 17814 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 17815 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 17816 | |
| 17817 | |
| 17818 | |
| 17819 | |
| 17820 | hard_links="nottested" |
| 17821 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 17822 | # do not overwrite the value of need_locks provided by the user |
| 17823 | { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 17824 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 17825 | hard_links=yes |
| 17826 | $RM conftest* |
| 17827 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 17828 | touch conftest.a |
| 17829 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 17830 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 17831 | { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 17832 | $as_echo "$hard_links" >&6; } |
| 17833 | if test "$hard_links" = no; then |
| 17834 | { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 17835 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 17836 | need_locks=warn |
| 17837 | fi |
| 17838 | else |
| 17839 | need_locks=no |
| 17840 | fi |
| 17841 | |
| 17842 | |
| 17843 | |
| 17844 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 17845 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 17846 | |
| 17847 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 17848 | case $host_os in |
| 17849 | aix[4-9]*) |
| 17850 | # If we're using GNU nm, then we don't want the "-C" option. |
| 17851 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 17852 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 17853 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 17854 | else |
| 17855 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 17856 | fi |
| 17857 | ;; |
| 17858 | pw32*) |
| 17859 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 17860 | ;; |
| 17861 | cygwin* | mingw* | cegcc*) |
| 17862 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
| 17863 | ;; |
| 17864 | *) |
| 17865 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 17866 | ;; |
| 17867 | esac |
| 17868 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 17869 | |
| 17870 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 17871 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 17872 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 17873 | |
| 17874 | with_gnu_ld_CXX=$with_gnu_ld |
| 17875 | |
| 17876 | |
| 17877 | |
| 17878 | |
| 17879 | |
| 17880 | |
| 17881 | # |
| 17882 | # Do we need to explicitly link libc? |
| 17883 | # |
| 17884 | case "x$archive_cmds_need_lc_CXX" in |
| 17885 | x|xyes) |
| 17886 | # Assume -lc should be added |
| 17887 | archive_cmds_need_lc_CXX=yes |
| 17888 | |
| 17889 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 17890 | case $archive_cmds_CXX in |
| 17891 | *'~'*) |
| 17892 | # FIXME: we may have to deal with multi-command sequences. |
| 17893 | ;; |
| 17894 | '$CC '*) |
| 17895 | # Test whether the compiler implicitly links with -lc since on some |
| 17896 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 17897 | # to ld, don't add -lc before -lgcc. |
| 17898 | { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 17899 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 17900 | $RM conftest* |
| 17901 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 17902 | |
| 17903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17904 | (eval $ac_compile) 2>&5 |
| 17905 | ac_status=$? |
| 17906 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17907 | (exit $ac_status); } 2>conftest.err; then |
| 17908 | soname=conftest |
| 17909 | lib=conftest |
| 17910 | libobjs=conftest.$ac_objext |
| 17911 | deplibs= |
| 17912 | wl=$lt_prog_compiler_wl_CXX |
| 17913 | pic_flag=$lt_prog_compiler_pic_CXX |
| 17914 | compiler_flags=-v |
| 17915 | linker_flags=-v |
| 17916 | verstring= |
| 17917 | output_objdir=. |
| 17918 | libname=conftest |
| 17919 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 17920 | allow_undefined_flag_CXX= |
| 17921 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 17922 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 17923 | ac_status=$? |
| 17924 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17925 | (exit $ac_status); } |
| 17926 | then |
| 17927 | archive_cmds_need_lc_CXX=no |
| 17928 | else |
| 17929 | archive_cmds_need_lc_CXX=yes |
| 17930 | fi |
| 17931 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 17932 | else |
| 17933 | cat conftest.err 1>&5 |
| 17934 | fi |
| 17935 | $RM conftest* |
| 17936 | { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 17937 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } |
| 17938 | ;; |
| 17939 | esac |
| 17940 | fi |
| 17941 | ;; |
| 17942 | esac |
| 17943 | |
| 17944 | |
| 17945 | |
| 17946 | |
| 17947 | |
| 17948 | |
| 17949 | |
| 17950 | |
| 17951 | |
| 17952 | |
| 17953 | |
| 17954 | |
| 17955 | |
| 17956 | |
| 17957 | |
| 17958 | |
| 17959 | |
| 17960 | |
| 17961 | |
| 17962 | |
| 17963 | |
| 17964 | |
| 17965 | |
| 17966 | |
| 17967 | |
| 17968 | |
| 17969 | |
| 17970 | |
| 17971 | |
| 17972 | |
| 17973 | |
| 17974 | |
| 17975 | |
| 17976 | |
| 17977 | |
| 17978 | |
| 17979 | |
| 17980 | |
| 17981 | |
| 17982 | |
| 17983 | |
| 17984 | |
| 17985 | |
| 17986 | |
| 17987 | |
| 17988 | |
| 17989 | |
| 17990 | |
| 17991 | |
| 17992 | |
| 17993 | |
| 17994 | |
| 17995 | |
| 17996 | |
| 17997 | |
| 17998 | |
| 17999 | |
| 18000 | |
| 18001 | |
| 18002 | |
| 18003 | |
| 18004 | |
| 18005 | |
| 18006 | |
| 18007 | { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 18008 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 18009 | |
| 18010 | library_names_spec= |
| 18011 | libname_spec='lib$name' |
| 18012 | soname_spec= |
| 18013 | shrext_cmds=".so" |
| 18014 | postinstall_cmds= |
| 18015 | postuninstall_cmds= |
| 18016 | finish_cmds= |
| 18017 | finish_eval= |
| 18018 | shlibpath_var= |
| 18019 | shlibpath_overrides_runpath=unknown |
| 18020 | version_type=none |
| 18021 | dynamic_linker="$host_os ld.so" |
| 18022 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 18023 | need_lib_prefix=unknown |
| 18024 | hardcode_into_libs=no |
| 18025 | |
| 18026 | # when you set need_version to no, make sure it does not cause -set_version |
| 18027 | # flags to be left without arguments |
| 18028 | need_version=unknown |
| 18029 | |
| 18030 | case $host_os in |
| 18031 | aix3*) |
| 18032 | version_type=linux |
| 18033 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 18034 | shlibpath_var=LIBPATH |
| 18035 | |
| 18036 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 18037 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18038 | ;; |
| 18039 | |
| 18040 | aix[4-9]*) |
| 18041 | version_type=linux |
| 18042 | need_lib_prefix=no |
| 18043 | need_version=no |
| 18044 | hardcode_into_libs=yes |
| 18045 | if test "$host_cpu" = ia64; then |
| 18046 | # AIX 5 supports IA64 |
| 18047 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 18048 | shlibpath_var=LD_LIBRARY_PATH |
| 18049 | else |
| 18050 | # With GCC up to 2.95.x, collect2 would create an import file |
| 18051 | # for dependence libraries. The import file would start with |
| 18052 | # the line `#! .'. This would cause the generated library to |
| 18053 | # depend on `.', always an invalid library. This was fixed in |
| 18054 | # development snapshots of GCC prior to 3.0. |
| 18055 | case $host_os in |
| 18056 | aix4 | aix4.[01] | aix4.[01].*) |
| 18057 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 18058 | echo ' yes ' |
| 18059 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 18060 | : |
| 18061 | else |
| 18062 | can_build_shared=no |
| 18063 | fi |
| 18064 | ;; |
| 18065 | esac |
| 18066 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 18067 | # soname into executable. Probably we can add versioning support to |
| 18068 | # collect2, so additional links can be useful in future. |
| 18069 | if test "$aix_use_runtimelinking" = yes; then |
| 18070 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 18071 | # instead of lib<name>.a to let people know that these are not |
| 18072 | # typical AIX shared libraries. |
| 18073 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18074 | else |
| 18075 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 18076 | # and later when we are not doing run time linking. |
| 18077 | library_names_spec='${libname}${release}.a $libname.a' |
| 18078 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18079 | fi |
| 18080 | shlibpath_var=LIBPATH |
| 18081 | fi |
| 18082 | ;; |
| 18083 | |
| 18084 | amigaos*) |
| 18085 | case $host_cpu in |
| 18086 | powerpc) |
| 18087 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 18088 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 18089 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18090 | ;; |
| 18091 | m68k) |
| 18092 | library_names_spec='$libname.ixlibrary $libname.a' |
| 18093 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 18094 | 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' |
| 18095 | ;; |
| 18096 | esac |
| 18097 | ;; |
| 18098 | |
| 18099 | beos*) |
| 18100 | library_names_spec='${libname}${shared_ext}' |
| 18101 | dynamic_linker="$host_os ld.so" |
| 18102 | shlibpath_var=LIBRARY_PATH |
| 18103 | ;; |
| 18104 | |
| 18105 | bsdi[45]*) |
| 18106 | version_type=linux |
| 18107 | need_version=no |
| 18108 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18109 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18110 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 18111 | shlibpath_var=LD_LIBRARY_PATH |
| 18112 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 18113 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 18114 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 18115 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 18116 | # libtool to hard-code these into programs |
| 18117 | ;; |
| 18118 | |
| 18119 | cygwin* | mingw* | pw32* | cegcc*) |
| 18120 | version_type=windows |
| 18121 | shrext_cmds=".dll" |
| 18122 | need_version=no |
| 18123 | need_lib_prefix=no |
| 18124 | |
| 18125 | case $GCC,$host_os in |
| 18126 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
| 18127 | library_names_spec='$libname.dll.a' |
| 18128 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 18129 | postinstall_cmds='base_file=`basename \${file}`~ |
| 18130 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 18131 | dldir=$destdir/`dirname \$dlpath`~ |
| 18132 | test -d \$dldir || mkdir -p \$dldir~ |
| 18133 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 18134 | chmod a+x \$dldir/$dlname~ |
| 18135 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 18136 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 18137 | fi' |
| 18138 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 18139 | dlpath=$dir/\$dldll~ |
| 18140 | $RM \$dlpath' |
| 18141 | shlibpath_overrides_runpath=yes |
| 18142 | |
| 18143 | case $host_os in |
| 18144 | cygwin*) |
| 18145 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 18146 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 18147 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 18148 | ;; |
| 18149 | mingw* | cegcc*) |
| 18150 | # MinGW DLLs use traditional 'lib' prefix |
| 18151 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 18152 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 18153 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 18154 | # It is most probably a Windows format PATH printed by |
| 18155 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 18156 | # path with ; separators, and with drive letters. We can handle the |
| 18157 | # drive letters (cygwin fileutils understands them), so leave them, |
| 18158 | # especially as we might pass files found there to a mingw objdump, |
| 18159 | # which wouldn't understand a cygwinified path. Ahh. |
| 18160 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 18161 | else |
| 18162 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 18163 | fi |
| 18164 | ;; |
| 18165 | pw32*) |
| 18166 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 18167 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 18168 | ;; |
| 18169 | esac |
| 18170 | ;; |
| 18171 | |
| 18172 | *) |
| 18173 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 18174 | ;; |
| 18175 | esac |
| 18176 | dynamic_linker='Win32 ld.exe' |
| 18177 | # FIXME: first we should search . and the directory the executable is in |
| 18178 | shlibpath_var=PATH |
| 18179 | ;; |
| 18180 | |
| 18181 | darwin* | rhapsody*) |
| 18182 | dynamic_linker="$host_os dyld" |
| 18183 | version_type=darwin |
| 18184 | need_lib_prefix=no |
| 18185 | need_version=no |
| 18186 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 18187 | soname_spec='${libname}${release}${major}$shared_ext' |
| 18188 | shlibpath_overrides_runpath=yes |
| 18189 | shlibpath_var=DYLD_LIBRARY_PATH |
| 18190 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 18191 | |
| 18192 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 18193 | ;; |
| 18194 | |
| 18195 | dgux*) |
| 18196 | version_type=linux |
| 18197 | need_lib_prefix=no |
| 18198 | need_version=no |
| 18199 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 18200 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18201 | shlibpath_var=LD_LIBRARY_PATH |
| 18202 | ;; |
| 18203 | |
| 18204 | freebsd1*) |
| 18205 | dynamic_linker=no |
| 18206 | ;; |
| 18207 | |
| 18208 | freebsd* | dragonfly*) |
| 18209 | # DragonFly does not have aout. When/if they implement a new |
| 18210 | # versioning mechanism, adjust this. |
| 18211 | if test -x /usr/bin/objformat; then |
| 18212 | objformat=`/usr/bin/objformat` |
| 18213 | else |
| 18214 | case $host_os in |
| 18215 | freebsd[123]*) objformat=aout ;; |
| 18216 | *) objformat=elf ;; |
| 18217 | esac |
| 18218 | fi |
| 18219 | version_type=freebsd-$objformat |
| 18220 | case $version_type in |
| 18221 | freebsd-elf*) |
| 18222 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18223 | need_version=no |
| 18224 | need_lib_prefix=no |
| 18225 | ;; |
| 18226 | freebsd-*) |
| 18227 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 18228 | need_version=yes |
| 18229 | ;; |
| 18230 | esac |
| 18231 | shlibpath_var=LD_LIBRARY_PATH |
| 18232 | case $host_os in |
| 18233 | freebsd2*) |
| 18234 | shlibpath_overrides_runpath=yes |
| 18235 | ;; |
| 18236 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 18237 | shlibpath_overrides_runpath=yes |
| 18238 | hardcode_into_libs=yes |
| 18239 | ;; |
| 18240 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 18241 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 18242 | shlibpath_overrides_runpath=no |
| 18243 | hardcode_into_libs=yes |
| 18244 | ;; |
| 18245 | *) # from 4.6 on, and DragonFly |
| 18246 | shlibpath_overrides_runpath=yes |
| 18247 | hardcode_into_libs=yes |
| 18248 | ;; |
| 18249 | esac |
| 18250 | ;; |
| 18251 | |
| 18252 | gnu*) |
| 18253 | version_type=linux |
| 18254 | need_lib_prefix=no |
| 18255 | need_version=no |
| 18256 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 18257 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18258 | shlibpath_var=LD_LIBRARY_PATH |
| 18259 | hardcode_into_libs=yes |
| 18260 | ;; |
| 18261 | |
| 18262 | hpux9* | hpux10* | hpux11*) |
| 18263 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 18264 | # link against other versions. |
| 18265 | version_type=sunos |
| 18266 | need_lib_prefix=no |
| 18267 | need_version=no |
| 18268 | case $host_cpu in |
| 18269 | ia64*) |
| 18270 | shrext_cmds='.so' |
| 18271 | hardcode_into_libs=yes |
| 18272 | dynamic_linker="$host_os dld.so" |
| 18273 | shlibpath_var=LD_LIBRARY_PATH |
| 18274 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 18275 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18276 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18277 | if test "X$HPUX_IA64_MODE" = X32; then |
| 18278 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 18279 | else |
| 18280 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 18281 | fi |
| 18282 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 18283 | ;; |
| 18284 | hppa*64*) |
| 18285 | shrext_cmds='.sl' |
| 18286 | hardcode_into_libs=yes |
| 18287 | dynamic_linker="$host_os dld.sl" |
| 18288 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 18289 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 18290 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18291 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18292 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 18293 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 18294 | ;; |
| 18295 | *) |
| 18296 | shrext_cmds='.sl' |
| 18297 | dynamic_linker="$host_os dld.sl" |
| 18298 | shlibpath_var=SHLIB_PATH |
| 18299 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 18300 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18301 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18302 | ;; |
| 18303 | esac |
| 18304 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 18305 | postinstall_cmds='chmod 555 $lib' |
| 18306 | ;; |
| 18307 | |
| 18308 | interix[3-9]*) |
| 18309 | version_type=linux |
| 18310 | need_lib_prefix=no |
| 18311 | need_version=no |
| 18312 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18313 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18314 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 18315 | shlibpath_var=LD_LIBRARY_PATH |
| 18316 | shlibpath_overrides_runpath=no |
| 18317 | hardcode_into_libs=yes |
| 18318 | ;; |
| 18319 | |
| 18320 | irix5* | irix6* | nonstopux*) |
| 18321 | case $host_os in |
| 18322 | nonstopux*) version_type=nonstopux ;; |
| 18323 | *) |
| 18324 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 18325 | version_type=linux |
| 18326 | else |
| 18327 | version_type=irix |
| 18328 | fi ;; |
| 18329 | esac |
| 18330 | need_lib_prefix=no |
| 18331 | need_version=no |
| 18332 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18334 | case $host_os in |
| 18335 | irix5* | nonstopux*) |
| 18336 | libsuff= shlibsuff= |
| 18337 | ;; |
| 18338 | *) |
| 18339 | case $LD in # libtool.m4 will add one of these switches to LD |
| 18340 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 18341 | libsuff= shlibsuff= libmagic=32-bit;; |
| 18342 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 18343 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 18344 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 18345 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 18346 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 18347 | esac |
| 18348 | ;; |
| 18349 | esac |
| 18350 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 18351 | shlibpath_overrides_runpath=no |
| 18352 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 18353 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 18354 | hardcode_into_libs=yes |
| 18355 | ;; |
| 18356 | |
| 18357 | # No shared lib support for Linux oldld, aout, or coff. |
| 18358 | linux*oldld* | linux*aout* | linux*coff*) |
| 18359 | dynamic_linker=no |
| 18360 | ;; |
| 18361 | |
| 18362 | # This must be Linux ELF. |
| 18363 | linux* | k*bsd*-gnu) |
| 18364 | version_type=linux |
| 18365 | need_lib_prefix=no |
| 18366 | need_version=no |
| 18367 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18368 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18369 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 18370 | shlibpath_var=LD_LIBRARY_PATH |
| 18371 | shlibpath_overrides_runpath=no |
| 18372 | # Some binutils ld are patched to set DT_RUNPATH |
| 18373 | save_LDFLAGS=$LDFLAGS |
| 18374 | save_libdir=$libdir |
| 18375 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 18376 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
| 18377 | cat >conftest.$ac_ext <<_ACEOF |
| 18378 | /* confdefs.h. */ |
| 18379 | _ACEOF |
| 18380 | cat confdefs.h >>conftest.$ac_ext |
| 18381 | cat >>conftest.$ac_ext <<_ACEOF |
| 18382 | /* end confdefs.h. */ |
| 18383 | |
| 18384 | int |
| 18385 | main () |
| 18386 | { |
| 18387 | |
| 18388 | ; |
| 18389 | return 0; |
| 18390 | } |
| 18391 | _ACEOF |
| 18392 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18393 | if { (ac_try="$ac_link" |
| 18394 | case "(($ac_try" in |
| 18395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18396 | *) ac_try_echo=$ac_try;; |
| 18397 | esac |
| 18398 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18399 | $as_echo "$ac_try_echo") >&5 |
| 18400 | (eval "$ac_link") 2>conftest.er1 |
| 18401 | ac_status=$? |
| 18402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18403 | rm -f conftest.er1 |
| 18404 | cat conftest.err >&5 |
| 18405 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18406 | (exit $ac_status); } && { |
| 18407 | test -z "$ac_cxx_werror_flag" || |
| 18408 | test ! -s conftest.err |
| 18409 | } && test -s conftest$ac_exeext && { |
| 18410 | test "$cross_compiling" = yes || |
| 18411 | $as_test_x conftest$ac_exeext |
| 18412 | }; then |
| 18413 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then |
| 18414 | shlibpath_overrides_runpath=yes |
| 18415 | fi |
| 18416 | |
| 18417 | else |
| 18418 | $as_echo "$as_me: failed program was:" >&5 |
| 18419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18420 | |
| 18421 | |
| 18422 | fi |
| 18423 | |
| 18424 | rm -rf conftest.dSYM |
| 18425 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 18426 | conftest$ac_exeext conftest.$ac_ext |
| 18427 | LDFLAGS=$save_LDFLAGS |
| 18428 | libdir=$save_libdir |
| 18429 | |
| 18430 | # This implies no fast_install, which is unacceptable. |
| 18431 | # Some rework will be needed to allow for fast_install |
| 18432 | # before this can be enabled. |
| 18433 | hardcode_into_libs=yes |
| 18434 | |
| 18435 | # Add ABI-specific directories to the system library path. |
| 18436 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" |
| 18437 | |
| 18438 | # Append ld.so.conf contents to the search path |
| 18439 | if test -f /etc/ld.so.conf; then |
| 18440 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
| 18441 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
| 18442 | fi |
| 18443 | |
| 18444 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 18445 | # powerpc, because MkLinux only supported shared libraries with the |
| 18446 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 18447 | # most powerpc-linux boxes support dynamic linking these days and |
| 18448 | # people can always --disable-shared, the test was removed, and we |
| 18449 | # assume the GNU/Linux dynamic linker is in use. |
| 18450 | dynamic_linker='GNU/Linux ld.so' |
| 18451 | ;; |
| 18452 | |
| 18453 | netbsd*) |
| 18454 | version_type=sunos |
| 18455 | need_lib_prefix=no |
| 18456 | need_version=no |
| 18457 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 18458 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18459 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 18460 | dynamic_linker='NetBSD (a.out) ld.so' |
| 18461 | else |
| 18462 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18463 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18464 | dynamic_linker='NetBSD ld.elf_so' |
| 18465 | fi |
| 18466 | shlibpath_var=LD_LIBRARY_PATH |
| 18467 | shlibpath_overrides_runpath=yes |
| 18468 | hardcode_into_libs=yes |
| 18469 | ;; |
| 18470 | |
| 18471 | newsos6) |
| 18472 | version_type=linux |
| 18473 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18474 | shlibpath_var=LD_LIBRARY_PATH |
| 18475 | shlibpath_overrides_runpath=yes |
| 18476 | ;; |
| 18477 | |
| 18478 | *nto* | *qnx*) |
| 18479 | version_type=qnx |
| 18480 | need_lib_prefix=no |
| 18481 | need_version=no |
| 18482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18483 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18484 | shlibpath_var=LD_LIBRARY_PATH |
| 18485 | shlibpath_overrides_runpath=no |
| 18486 | hardcode_into_libs=yes |
| 18487 | dynamic_linker='ldqnx.so' |
| 18488 | ;; |
| 18489 | |
| 18490 | openbsd*) |
| 18491 | version_type=sunos |
| 18492 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 18493 | need_lib_prefix=no |
| 18494 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 18495 | case $host_os in |
| 18496 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 18497 | *) need_version=no ;; |
| 18498 | esac |
| 18499 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18500 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 18501 | shlibpath_var=LD_LIBRARY_PATH |
| 18502 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 18503 | case $host_os in |
| 18504 | openbsd2.[89] | openbsd2.[89].*) |
| 18505 | shlibpath_overrides_runpath=no |
| 18506 | ;; |
| 18507 | *) |
| 18508 | shlibpath_overrides_runpath=yes |
| 18509 | ;; |
| 18510 | esac |
| 18511 | else |
| 18512 | shlibpath_overrides_runpath=yes |
| 18513 | fi |
| 18514 | ;; |
| 18515 | |
| 18516 | os2*) |
| 18517 | libname_spec='$name' |
| 18518 | shrext_cmds=".dll" |
| 18519 | need_lib_prefix=no |
| 18520 | library_names_spec='$libname${shared_ext} $libname.a' |
| 18521 | dynamic_linker='OS/2 ld.exe' |
| 18522 | shlibpath_var=LIBPATH |
| 18523 | ;; |
| 18524 | |
| 18525 | osf3* | osf4* | osf5*) |
| 18526 | version_type=osf |
| 18527 | need_lib_prefix=no |
| 18528 | need_version=no |
| 18529 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18530 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18531 | shlibpath_var=LD_LIBRARY_PATH |
| 18532 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 18533 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 18534 | ;; |
| 18535 | |
| 18536 | rdos*) |
| 18537 | dynamic_linker=no |
| 18538 | ;; |
| 18539 | |
| 18540 | solaris*) |
| 18541 | version_type=linux |
| 18542 | need_lib_prefix=no |
| 18543 | need_version=no |
| 18544 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18545 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18546 | shlibpath_var=LD_LIBRARY_PATH |
| 18547 | shlibpath_overrides_runpath=yes |
| 18548 | hardcode_into_libs=yes |
| 18549 | # ldd complains unless libraries are executable |
| 18550 | postinstall_cmds='chmod +x $lib' |
| 18551 | ;; |
| 18552 | |
| 18553 | sunos4*) |
| 18554 | version_type=sunos |
| 18555 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18556 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 18557 | shlibpath_var=LD_LIBRARY_PATH |
| 18558 | shlibpath_overrides_runpath=yes |
| 18559 | if test "$with_gnu_ld" = yes; then |
| 18560 | need_lib_prefix=no |
| 18561 | fi |
| 18562 | need_version=yes |
| 18563 | ;; |
| 18564 | |
| 18565 | sysv4 | sysv4.3*) |
| 18566 | version_type=linux |
| 18567 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18568 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18569 | shlibpath_var=LD_LIBRARY_PATH |
| 18570 | case $host_vendor in |
| 18571 | sni) |
| 18572 | shlibpath_overrides_runpath=no |
| 18573 | need_lib_prefix=no |
| 18574 | runpath_var=LD_RUN_PATH |
| 18575 | ;; |
| 18576 | siemens) |
| 18577 | need_lib_prefix=no |
| 18578 | ;; |
| 18579 | motorola) |
| 18580 | need_lib_prefix=no |
| 18581 | need_version=no |
| 18582 | shlibpath_overrides_runpath=no |
| 18583 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 18584 | ;; |
| 18585 | esac |
| 18586 | ;; |
| 18587 | |
| 18588 | sysv4*MP*) |
| 18589 | if test -d /usr/nec ;then |
| 18590 | version_type=linux |
| 18591 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 18592 | soname_spec='$libname${shared_ext}.$major' |
| 18593 | shlibpath_var=LD_LIBRARY_PATH |
| 18594 | fi |
| 18595 | ;; |
| 18596 | |
| 18597 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 18598 | version_type=freebsd-elf |
| 18599 | need_lib_prefix=no |
| 18600 | need_version=no |
| 18601 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18602 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18603 | shlibpath_var=LD_LIBRARY_PATH |
| 18604 | shlibpath_overrides_runpath=yes |
| 18605 | hardcode_into_libs=yes |
| 18606 | if test "$with_gnu_ld" = yes; then |
| 18607 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 18608 | else |
| 18609 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 18610 | case $host_os in |
| 18611 | sco3.2v5*) |
| 18612 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 18613 | ;; |
| 18614 | esac |
| 18615 | fi |
| 18616 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 18617 | ;; |
| 18618 | |
| 18619 | tpf*) |
| 18620 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 18621 | version_type=linux |
| 18622 | need_lib_prefix=no |
| 18623 | need_version=no |
| 18624 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18625 | shlibpath_var=LD_LIBRARY_PATH |
| 18626 | shlibpath_overrides_runpath=no |
| 18627 | hardcode_into_libs=yes |
| 18628 | ;; |
| 18629 | |
| 18630 | uts4*) |
| 18631 | version_type=linux |
| 18632 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18633 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18634 | shlibpath_var=LD_LIBRARY_PATH |
| 18635 | ;; |
| 18636 | |
| 18637 | *) |
| 18638 | dynamic_linker=no |
| 18639 | ;; |
| 18640 | esac |
| 18641 | { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 18642 | $as_echo "$dynamic_linker" >&6; } |
| 18643 | test "$dynamic_linker" = no && can_build_shared=no |
| 18644 | |
| 18645 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 18646 | if test "$GCC" = yes; then |
| 18647 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 18648 | fi |
| 18649 | |
| 18650 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 18651 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 18652 | fi |
| 18653 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 18654 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 18655 | fi |
| 18656 | |
| 18657 | |
| 18658 | |
| 18659 | |
| 18660 | |
| 18661 | |
| 18662 | |
| 18663 | |
| 18664 | |
| 18665 | |
| 18666 | |
| 18667 | |
| 18668 | |
| 18669 | |
| 18670 | |
| 18671 | |
| 18672 | |
| 18673 | |
| 18674 | |
| 18675 | |
| 18676 | |
| 18677 | |
| 18678 | |
| 18679 | |
| 18680 | |
| 18681 | |
| 18682 | |
| 18683 | |
| 18684 | |
| 18685 | |
| 18686 | |
| 18687 | |
| 18688 | |
| 18689 | |
| 18690 | |
| 18691 | |
| 18692 | { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 18693 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 18694 | hardcode_action_CXX= |
| 18695 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 18696 | test -n "$runpath_var_CXX" || |
| 18697 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 18698 | |
| 18699 | # We can hardcode non-existent directories. |
| 18700 | if test "$hardcode_direct_CXX" != no && |
| 18701 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 18702 | # have to relink, otherwise we might link with an installed library |
| 18703 | # when we should be linking with a yet-to-be-installed one |
| 18704 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 18705 | test "$hardcode_minus_L_CXX" != no; then |
| 18706 | # Linking always hardcodes the temporary library directory. |
| 18707 | hardcode_action_CXX=relink |
| 18708 | else |
| 18709 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 18710 | hardcode_action_CXX=immediate |
| 18711 | fi |
| 18712 | else |
| 18713 | # We cannot hardcode anything, or else we can only hardcode existing |
| 18714 | # directories. |
| 18715 | hardcode_action_CXX=unsupported |
| 18716 | fi |
| 18717 | { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 18718 | $as_echo "$hardcode_action_CXX" >&6; } |
| 18719 | |
| 18720 | if test "$hardcode_action_CXX" = relink || |
| 18721 | test "$inherit_rpath_CXX" = yes; then |
| 18722 | # Fast installation is not supported |
| 18723 | enable_fast_install=no |
| 18724 | elif test "$shlibpath_overrides_runpath" = yes || |
| 18725 | test "$enable_shared" = no; then |
| 18726 | # Fast installation is not necessary |
| 18727 | enable_fast_install=needless |
| 18728 | fi |
| 18729 | |
| 18730 | |
| 18731 | |
| 18732 | |
| 18733 | |
| 18734 | |
| 18735 | |
| 18736 | fi # test -n "$compiler" |
| 18737 | |
| 18738 | CC=$lt_save_CC |
| 18739 | LDCXX=$LD |
| 18740 | LD=$lt_save_LD |
| 18741 | GCC=$lt_save_GCC |
| 18742 | with_gnu_ld=$lt_save_with_gnu_ld |
| 18743 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 18744 | lt_cv_path_LD=$lt_save_path_LD |
| 18745 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 18746 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 18747 | fi # test "$_lt_caught_CXX_error" != yes |
| 18748 | |
| 18749 | ac_ext=c |
| 18750 | ac_cpp='$CPP $CPPFLAGS' |
| 18751 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18752 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18753 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18754 | |
| 18755 | |
| 18756 | |
| 18757 | |
| 18758 | |
| 18759 | |
| 18760 | |
| 18761 | |
| 18762 | |
| 18763 | |
| 18764 | |
| 18765 | |
| 18766 | |
| 18767 | ac_config_commands="$ac_config_commands libtool" |
| 18768 | |
| 18769 | |
| 18770 | |
| 18771 | |
| 18772 | # Only expand once: |
| 18773 | |
| 18774 | |
| 18775 | |
| 18776 | |
| 18777 | |
| 18778 | # Configure libltdl |
| 18779 | |
| 18780 | |
| 18781 | |
| 18782 | |
| 18783 | |
| 18784 | |
| 18785 | |
| 18786 | |
| 18787 | { $as_echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5 |
| 18788 | $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } |
| 18789 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 18790 | $as_echo_n "(cached) " >&6 |
| 18791 | else |
| 18792 | |
| 18793 | module=yes |
| 18794 | eval libltdl_cv_shlibext=$shrext_cmds |
| 18795 | |
| 18796 | fi |
| 18797 | { $as_echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 18798 | $as_echo "$libltdl_cv_shlibext" >&6; } |
| 18799 | if test -n "$libltdl_cv_shlibext"; then |
| 18800 | |
| 18801 | cat >>confdefs.h <<_ACEOF |
| 18802 | #define LT_MODULE_EXT "$libltdl_cv_shlibext" |
| 18803 | _ACEOF |
| 18804 | |
| 18805 | fi |
| 18806 | |
| 18807 | { $as_echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5 |
| 18808 | $as_echo_n "checking which variable specifies run-time module search path... " >&6; } |
| 18809 | if test "${lt_cv_module_path_var+set}" = set; then |
| 18810 | $as_echo_n "(cached) " >&6 |
| 18811 | else |
| 18812 | lt_cv_module_path_var="$shlibpath_var" |
| 18813 | fi |
| 18814 | { $as_echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5 |
| 18815 | $as_echo "$lt_cv_module_path_var" >&6; } |
| 18816 | if test -n "$lt_cv_module_path_var"; then |
| 18817 | |
| 18818 | cat >>confdefs.h <<_ACEOF |
| 18819 | #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" |
| 18820 | _ACEOF |
| 18821 | |
| 18822 | fi |
| 18823 | |
| 18824 | { $as_echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 18825 | $as_echo_n "checking for the default library search path... " >&6; } |
| 18826 | if test "${lt_cv_sys_dlsearch_path+set}" = set; then |
| 18827 | $as_echo_n "(cached) " >&6 |
| 18828 | else |
| 18829 | lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" |
| 18830 | fi |
| 18831 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5 |
| 18832 | $as_echo "$lt_cv_sys_dlsearch_path" >&6; } |
| 18833 | if test -n "$lt_cv_sys_dlsearch_path"; then |
| 18834 | sys_dlsearch_path= |
| 18835 | for dir in $lt_cv_sys_dlsearch_path; do |
| 18836 | if test -z "$sys_dlsearch_path"; then |
| 18837 | sys_dlsearch_path="$dir" |
| 18838 | else |
| 18839 | sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" |
| 18840 | fi |
| 18841 | done |
| 18842 | |
| 18843 | cat >>confdefs.h <<_ACEOF |
| 18844 | #define LT_DLSEARCH_PATH "$sys_dlsearch_path" |
| 18845 | _ACEOF |
| 18846 | |
| 18847 | fi |
| 18848 | |
| 18849 | |
| 18850 | LT_DLLOADERS= |
| 18851 | |
| 18852 | |
| 18853 | ac_ext=c |
| 18854 | ac_cpp='$CPP $CPPFLAGS' |
| 18855 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18856 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18857 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18858 | |
| 18859 | |
| 18860 | LIBADD_DLOPEN= |
| 18861 | { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 18862 | $as_echo_n "checking for library containing dlopen... " >&6; } |
| 18863 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 18864 | $as_echo_n "(cached) " >&6 |
| 18865 | else |
| 18866 | ac_func_search_save_LIBS=$LIBS |
| 18867 | cat >conftest.$ac_ext <<_ACEOF |
| 18868 | /* confdefs.h. */ |
| 18869 | _ACEOF |
| 18870 | cat confdefs.h >>conftest.$ac_ext |
| 18871 | cat >>conftest.$ac_ext <<_ACEOF |
| 18872 | /* end confdefs.h. */ |
| 18873 | |
| 18874 | /* Override any GCC internal prototype to avoid an error. |
| 18875 | Use char because int might match the return type of a GCC |
| 18876 | builtin and then its argument prototype would still apply. */ |
| 18877 | #ifdef __cplusplus |
| 18878 | extern "C" |
| 18879 | #endif |
| 18880 | char dlopen (); |
| 18881 | int |
| 18882 | main () |
| 18883 | { |
| 18884 | return dlopen (); |
| 18885 | ; |
| 18886 | return 0; |
| 18887 | } |
| 18888 | _ACEOF |
| 18889 | for ac_lib in '' dl; do |
| 18890 | if test -z "$ac_lib"; then |
| 18891 | ac_res="none required" |
| 18892 | else |
| 18893 | ac_res=-l$ac_lib |
| 18894 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 18895 | fi |
| 18896 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18897 | if { (ac_try="$ac_link" |
| 18898 | case "(($ac_try" in |
| 18899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18900 | *) ac_try_echo=$ac_try;; |
| 18901 | esac |
| 18902 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18903 | $as_echo "$ac_try_echo") >&5 |
| 18904 | (eval "$ac_link") 2>conftest.er1 |
| 18905 | ac_status=$? |
| 18906 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18907 | rm -f conftest.er1 |
| 18908 | cat conftest.err >&5 |
| 18909 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18910 | (exit $ac_status); } && { |
| 18911 | test -z "$ac_c_werror_flag" || |
| 18912 | test ! -s conftest.err |
| 18913 | } && test -s conftest$ac_exeext && { |
| 18914 | test "$cross_compiling" = yes || |
| 18915 | $as_test_x conftest$ac_exeext |
| 18916 | }; then |
| 18917 | ac_cv_search_dlopen=$ac_res |
| 18918 | else |
| 18919 | $as_echo "$as_me: failed program was:" >&5 |
| 18920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18921 | |
| 18922 | |
| 18923 | fi |
| 18924 | |
| 18925 | rm -rf conftest.dSYM |
| 18926 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 18927 | conftest$ac_exeext |
| 18928 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 18929 | break |
| 18930 | fi |
| 18931 | done |
| 18932 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 18933 | : |
| 18934 | else |
| 18935 | ac_cv_search_dlopen=no |
| 18936 | fi |
| 18937 | rm conftest.$ac_ext |
| 18938 | LIBS=$ac_func_search_save_LIBS |
| 18939 | fi |
| 18940 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 18941 | $as_echo "$ac_cv_search_dlopen" >&6; } |
| 18942 | ac_res=$ac_cv_search_dlopen |
| 18943 | if test "$ac_res" != no; then |
| 18944 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 18945 | |
| 18946 | cat >>confdefs.h <<\_ACEOF |
| 18947 | #define HAVE_LIBDL 1 |
| 18948 | _ACEOF |
| 18949 | |
| 18950 | if test "$ac_cv_search_dlopen" != "none required" ; then |
| 18951 | LIBADD_DLOPEN="-ldl" |
| 18952 | fi |
| 18953 | libltdl_cv_lib_dl_dlopen="yes" |
| 18954 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 18955 | else |
| 18956 | cat >conftest.$ac_ext <<_ACEOF |
| 18957 | /* confdefs.h. */ |
| 18958 | _ACEOF |
| 18959 | cat confdefs.h >>conftest.$ac_ext |
| 18960 | cat >>conftest.$ac_ext <<_ACEOF |
| 18961 | /* end confdefs.h. */ |
| 18962 | #if HAVE_DLFCN_H |
| 18963 | # include <dlfcn.h> |
| 18964 | #endif |
| 18965 | |
| 18966 | int |
| 18967 | main () |
| 18968 | { |
| 18969 | dlopen(0, 0); |
| 18970 | ; |
| 18971 | return 0; |
| 18972 | } |
| 18973 | _ACEOF |
| 18974 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18975 | if { (ac_try="$ac_link" |
| 18976 | case "(($ac_try" in |
| 18977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18978 | *) ac_try_echo=$ac_try;; |
| 18979 | esac |
| 18980 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 18981 | $as_echo "$ac_try_echo") >&5 |
| 18982 | (eval "$ac_link") 2>conftest.er1 |
| 18983 | ac_status=$? |
| 18984 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18985 | rm -f conftest.er1 |
| 18986 | cat conftest.err >&5 |
| 18987 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18988 | (exit $ac_status); } && { |
| 18989 | test -z "$ac_c_werror_flag" || |
| 18990 | test ! -s conftest.err |
| 18991 | } && test -s conftest$ac_exeext && { |
| 18992 | test "$cross_compiling" = yes || |
| 18993 | $as_test_x conftest$ac_exeext |
| 18994 | }; then |
| 18995 | |
| 18996 | cat >>confdefs.h <<\_ACEOF |
| 18997 | #define HAVE_LIBDL 1 |
| 18998 | _ACEOF |
| 18999 | |
| 19000 | libltdl_cv_func_dlopen="yes" |
| 19001 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 19002 | else |
| 19003 | $as_echo "$as_me: failed program was:" >&5 |
| 19004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19005 | |
| 19006 | { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 19007 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 19008 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 19009 | $as_echo_n "(cached) " >&6 |
| 19010 | else |
| 19011 | ac_check_lib_save_LIBS=$LIBS |
| 19012 | LIBS="-lsvld $LIBS" |
| 19013 | cat >conftest.$ac_ext <<_ACEOF |
| 19014 | /* confdefs.h. */ |
| 19015 | _ACEOF |
| 19016 | cat confdefs.h >>conftest.$ac_ext |
| 19017 | cat >>conftest.$ac_ext <<_ACEOF |
| 19018 | /* end confdefs.h. */ |
| 19019 | |
| 19020 | /* Override any GCC internal prototype to avoid an error. |
| 19021 | Use char because int might match the return type of a GCC |
| 19022 | builtin and then its argument prototype would still apply. */ |
| 19023 | #ifdef __cplusplus |
| 19024 | extern "C" |
| 19025 | #endif |
| 19026 | char dlopen (); |
| 19027 | int |
| 19028 | main () |
| 19029 | { |
| 19030 | return dlopen (); |
| 19031 | ; |
| 19032 | return 0; |
| 19033 | } |
| 19034 | _ACEOF |
| 19035 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19036 | if { (ac_try="$ac_link" |
| 19037 | case "(($ac_try" in |
| 19038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19039 | *) ac_try_echo=$ac_try;; |
| 19040 | esac |
| 19041 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19042 | $as_echo "$ac_try_echo") >&5 |
| 19043 | (eval "$ac_link") 2>conftest.er1 |
| 19044 | ac_status=$? |
| 19045 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19046 | rm -f conftest.er1 |
| 19047 | cat conftest.err >&5 |
| 19048 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19049 | (exit $ac_status); } && { |
| 19050 | test -z "$ac_c_werror_flag" || |
| 19051 | test ! -s conftest.err |
| 19052 | } && test -s conftest$ac_exeext && { |
| 19053 | test "$cross_compiling" = yes || |
| 19054 | $as_test_x conftest$ac_exeext |
| 19055 | }; then |
| 19056 | ac_cv_lib_svld_dlopen=yes |
| 19057 | else |
| 19058 | $as_echo "$as_me: failed program was:" >&5 |
| 19059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19060 | |
| 19061 | ac_cv_lib_svld_dlopen=no |
| 19062 | fi |
| 19063 | |
| 19064 | rm -rf conftest.dSYM |
| 19065 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19066 | conftest$ac_exeext conftest.$ac_ext |
| 19067 | LIBS=$ac_check_lib_save_LIBS |
| 19068 | fi |
| 19069 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 19070 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 19071 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then |
| 19072 | |
| 19073 | cat >>confdefs.h <<\_ACEOF |
| 19074 | #define HAVE_LIBDL 1 |
| 19075 | _ACEOF |
| 19076 | |
| 19077 | LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" |
| 19078 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 19079 | fi |
| 19080 | |
| 19081 | fi |
| 19082 | |
| 19083 | rm -rf conftest.dSYM |
| 19084 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19085 | conftest$ac_exeext conftest.$ac_ext |
| 19086 | fi |
| 19087 | |
| 19088 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 19089 | then |
| 19090 | lt_save_LIBS="$LIBS" |
| 19091 | LIBS="$LIBS $LIBADD_DLOPEN" |
| 19092 | |
| 19093 | for ac_func in dlerror |
| 19094 | do |
| 19095 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19096 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19097 | $as_echo_n "checking for $ac_func... " >&6; } |
| 19098 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19099 | $as_echo_n "(cached) " >&6 |
| 19100 | else |
| 19101 | cat >conftest.$ac_ext <<_ACEOF |
| 19102 | /* confdefs.h. */ |
| 19103 | _ACEOF |
| 19104 | cat confdefs.h >>conftest.$ac_ext |
| 19105 | cat >>conftest.$ac_ext <<_ACEOF |
| 19106 | /* end confdefs.h. */ |
| 19107 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19108 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19109 | #define $ac_func innocuous_$ac_func |
| 19110 | |
| 19111 | /* System header to define __stub macros and hopefully few prototypes, |
| 19112 | which can conflict with char $ac_func (); below. |
| 19113 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19114 | <limits.h> exists even on freestanding compilers. */ |
| 19115 | |
| 19116 | #ifdef __STDC__ |
| 19117 | # include <limits.h> |
| 19118 | #else |
| 19119 | # include <assert.h> |
| 19120 | #endif |
| 19121 | |
| 19122 | #undef $ac_func |
| 19123 | |
| 19124 | /* Override any GCC internal prototype to avoid an error. |
| 19125 | Use char because int might match the return type of a GCC |
| 19126 | builtin and then its argument prototype would still apply. */ |
| 19127 | #ifdef __cplusplus |
| 19128 | extern "C" |
| 19129 | #endif |
| 19130 | char $ac_func (); |
| 19131 | /* The GNU C library defines this for functions which it implements |
| 19132 | to always fail with ENOSYS. Some functions are actually named |
| 19133 | something starting with __ and the normal name is an alias. */ |
| 19134 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 19135 | choke me |
| 19136 | #endif |
| 19137 | |
| 19138 | int |
| 19139 | main () |
| 19140 | { |
| 19141 | return $ac_func (); |
| 19142 | ; |
| 19143 | return 0; |
| 19144 | } |
| 19145 | _ACEOF |
| 19146 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19147 | if { (ac_try="$ac_link" |
| 19148 | case "(($ac_try" in |
| 19149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19150 | *) ac_try_echo=$ac_try;; |
| 19151 | esac |
| 19152 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19153 | $as_echo "$ac_try_echo") >&5 |
| 19154 | (eval "$ac_link") 2>conftest.er1 |
| 19155 | ac_status=$? |
| 19156 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19157 | rm -f conftest.er1 |
| 19158 | cat conftest.err >&5 |
| 19159 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19160 | (exit $ac_status); } && { |
| 19161 | test -z "$ac_c_werror_flag" || |
| 19162 | test ! -s conftest.err |
| 19163 | } && test -s conftest$ac_exeext && { |
| 19164 | test "$cross_compiling" = yes || |
| 19165 | $as_test_x conftest$ac_exeext |
| 19166 | }; then |
| 19167 | eval "$as_ac_var=yes" |
| 19168 | else |
| 19169 | $as_echo "$as_me: failed program was:" >&5 |
| 19170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19171 | |
| 19172 | eval "$as_ac_var=no" |
| 19173 | fi |
| 19174 | |
| 19175 | rm -rf conftest.dSYM |
| 19176 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19177 | conftest$ac_exeext conftest.$ac_ext |
| 19178 | fi |
| 19179 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 19180 | $as_echo "$as_val"'` |
| 19181 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19182 | $as_echo "$ac_res" >&6; } |
| 19183 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 19184 | $as_echo "$as_val"'` |
| 19185 | if test "x$as_val" = x""yes; then |
| 19186 | cat >>confdefs.h <<_ACEOF |
| 19187 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 19188 | _ACEOF |
| 19189 | |
| 19190 | fi |
| 19191 | done |
| 19192 | |
| 19193 | LIBS="$lt_save_LIBS" |
| 19194 | fi |
| 19195 | |
| 19196 | |
| 19197 | LIBADD_SHL_LOAD= |
| 19198 | { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 19199 | $as_echo_n "checking for shl_load... " >&6; } |
| 19200 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 19201 | $as_echo_n "(cached) " >&6 |
| 19202 | else |
| 19203 | cat >conftest.$ac_ext <<_ACEOF |
| 19204 | /* confdefs.h. */ |
| 19205 | _ACEOF |
| 19206 | cat confdefs.h >>conftest.$ac_ext |
| 19207 | cat >>conftest.$ac_ext <<_ACEOF |
| 19208 | /* end confdefs.h. */ |
| 19209 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 19210 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19211 | #define shl_load innocuous_shl_load |
| 19212 | |
| 19213 | /* System header to define __stub macros and hopefully few prototypes, |
| 19214 | which can conflict with char shl_load (); below. |
| 19215 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19216 | <limits.h> exists even on freestanding compilers. */ |
| 19217 | |
| 19218 | #ifdef __STDC__ |
| 19219 | # include <limits.h> |
| 19220 | #else |
| 19221 | # include <assert.h> |
| 19222 | #endif |
| 19223 | |
| 19224 | #undef shl_load |
| 19225 | |
| 19226 | /* Override any GCC internal prototype to avoid an error. |
| 19227 | Use char because int might match the return type of a GCC |
| 19228 | builtin and then its argument prototype would still apply. */ |
| 19229 | #ifdef __cplusplus |
| 19230 | extern "C" |
| 19231 | #endif |
| 19232 | char shl_load (); |
| 19233 | /* The GNU C library defines this for functions which it implements |
| 19234 | to always fail with ENOSYS. Some functions are actually named |
| 19235 | something starting with __ and the normal name is an alias. */ |
| 19236 | #if defined __stub_shl_load || defined __stub___shl_load |
| 19237 | choke me |
| 19238 | #endif |
| 19239 | |
| 19240 | int |
| 19241 | main () |
| 19242 | { |
| 19243 | return shl_load (); |
| 19244 | ; |
| 19245 | return 0; |
| 19246 | } |
| 19247 | _ACEOF |
| 19248 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19249 | if { (ac_try="$ac_link" |
| 19250 | case "(($ac_try" in |
| 19251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19252 | *) ac_try_echo=$ac_try;; |
| 19253 | esac |
| 19254 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19255 | $as_echo "$ac_try_echo") >&5 |
| 19256 | (eval "$ac_link") 2>conftest.er1 |
| 19257 | ac_status=$? |
| 19258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19259 | rm -f conftest.er1 |
| 19260 | cat conftest.err >&5 |
| 19261 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19262 | (exit $ac_status); } && { |
| 19263 | test -z "$ac_c_werror_flag" || |
| 19264 | test ! -s conftest.err |
| 19265 | } && test -s conftest$ac_exeext && { |
| 19266 | test "$cross_compiling" = yes || |
| 19267 | $as_test_x conftest$ac_exeext |
| 19268 | }; then |
| 19269 | ac_cv_func_shl_load=yes |
| 19270 | else |
| 19271 | $as_echo "$as_me: failed program was:" >&5 |
| 19272 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19273 | |
| 19274 | ac_cv_func_shl_load=no |
| 19275 | fi |
| 19276 | |
| 19277 | rm -rf conftest.dSYM |
| 19278 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19279 | conftest$ac_exeext conftest.$ac_ext |
| 19280 | fi |
| 19281 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 19282 | $as_echo "$ac_cv_func_shl_load" >&6; } |
| 19283 | if test "x$ac_cv_func_shl_load" = x""yes; then |
| 19284 | |
| 19285 | cat >>confdefs.h <<\_ACEOF |
| 19286 | #define HAVE_SHL_LOAD 1 |
| 19287 | _ACEOF |
| 19288 | |
| 19289 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
| 19290 | else |
| 19291 | { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 19292 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 19293 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 19294 | $as_echo_n "(cached) " >&6 |
| 19295 | else |
| 19296 | ac_check_lib_save_LIBS=$LIBS |
| 19297 | LIBS="-ldld $LIBS" |
| 19298 | cat >conftest.$ac_ext <<_ACEOF |
| 19299 | /* confdefs.h. */ |
| 19300 | _ACEOF |
| 19301 | cat confdefs.h >>conftest.$ac_ext |
| 19302 | cat >>conftest.$ac_ext <<_ACEOF |
| 19303 | /* end confdefs.h. */ |
| 19304 | |
| 19305 | /* Override any GCC internal prototype to avoid an error. |
| 19306 | Use char because int might match the return type of a GCC |
| 19307 | builtin and then its argument prototype would still apply. */ |
| 19308 | #ifdef __cplusplus |
| 19309 | extern "C" |
| 19310 | #endif |
| 19311 | char shl_load (); |
| 19312 | int |
| 19313 | main () |
| 19314 | { |
| 19315 | return shl_load (); |
| 19316 | ; |
| 19317 | return 0; |
| 19318 | } |
| 19319 | _ACEOF |
| 19320 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19321 | if { (ac_try="$ac_link" |
| 19322 | case "(($ac_try" in |
| 19323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19324 | *) ac_try_echo=$ac_try;; |
| 19325 | esac |
| 19326 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19327 | $as_echo "$ac_try_echo") >&5 |
| 19328 | (eval "$ac_link") 2>conftest.er1 |
| 19329 | ac_status=$? |
| 19330 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19331 | rm -f conftest.er1 |
| 19332 | cat conftest.err >&5 |
| 19333 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19334 | (exit $ac_status); } && { |
| 19335 | test -z "$ac_c_werror_flag" || |
| 19336 | test ! -s conftest.err |
| 19337 | } && test -s conftest$ac_exeext && { |
| 19338 | test "$cross_compiling" = yes || |
| 19339 | $as_test_x conftest$ac_exeext |
| 19340 | }; then |
| 19341 | ac_cv_lib_dld_shl_load=yes |
| 19342 | else |
| 19343 | $as_echo "$as_me: failed program was:" >&5 |
| 19344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19345 | |
| 19346 | ac_cv_lib_dld_shl_load=no |
| 19347 | fi |
| 19348 | |
| 19349 | rm -rf conftest.dSYM |
| 19350 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19351 | conftest$ac_exeext conftest.$ac_ext |
| 19352 | LIBS=$ac_check_lib_save_LIBS |
| 19353 | fi |
| 19354 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 19355 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 19356 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then |
| 19357 | |
| 19358 | cat >>confdefs.h <<\_ACEOF |
| 19359 | #define HAVE_SHL_LOAD 1 |
| 19360 | _ACEOF |
| 19361 | |
| 19362 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
| 19363 | LIBADD_SHL_LOAD="-ldld" |
| 19364 | fi |
| 19365 | |
| 19366 | fi |
| 19367 | |
| 19368 | |
| 19369 | |
| 19370 | case $host_os in |
| 19371 | darwin[1567].*) |
| 19372 | # We only want this for pre-Mac OS X 10.4. |
| 19373 | { $as_echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 19374 | $as_echo_n "checking for _dyld_func_lookup... " >&6; } |
| 19375 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 19376 | $as_echo_n "(cached) " >&6 |
| 19377 | else |
| 19378 | cat >conftest.$ac_ext <<_ACEOF |
| 19379 | /* confdefs.h. */ |
| 19380 | _ACEOF |
| 19381 | cat confdefs.h >>conftest.$ac_ext |
| 19382 | cat >>conftest.$ac_ext <<_ACEOF |
| 19383 | /* end confdefs.h. */ |
| 19384 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 19385 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19386 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
| 19387 | |
| 19388 | /* System header to define __stub macros and hopefully few prototypes, |
| 19389 | which can conflict with char _dyld_func_lookup (); below. |
| 19390 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 19391 | <limits.h> exists even on freestanding compilers. */ |
| 19392 | |
| 19393 | #ifdef __STDC__ |
| 19394 | # include <limits.h> |
| 19395 | #else |
| 19396 | # include <assert.h> |
| 19397 | #endif |
| 19398 | |
| 19399 | #undef _dyld_func_lookup |
| 19400 | |
| 19401 | /* Override any GCC internal prototype to avoid an error. |
| 19402 | Use char because int might match the return type of a GCC |
| 19403 | builtin and then its argument prototype would still apply. */ |
| 19404 | #ifdef __cplusplus |
| 19405 | extern "C" |
| 19406 | #endif |
| 19407 | char _dyld_func_lookup (); |
| 19408 | /* The GNU C library defines this for functions which it implements |
| 19409 | to always fail with ENOSYS. Some functions are actually named |
| 19410 | something starting with __ and the normal name is an alias. */ |
| 19411 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
| 19412 | choke me |
| 19413 | #endif |
| 19414 | |
| 19415 | int |
| 19416 | main () |
| 19417 | { |
| 19418 | return _dyld_func_lookup (); |
| 19419 | ; |
| 19420 | return 0; |
| 19421 | } |
| 19422 | _ACEOF |
| 19423 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19424 | if { (ac_try="$ac_link" |
| 19425 | case "(($ac_try" in |
| 19426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19427 | *) ac_try_echo=$ac_try;; |
| 19428 | esac |
| 19429 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19430 | $as_echo "$ac_try_echo") >&5 |
| 19431 | (eval "$ac_link") 2>conftest.er1 |
| 19432 | ac_status=$? |
| 19433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19434 | rm -f conftest.er1 |
| 19435 | cat conftest.err >&5 |
| 19436 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19437 | (exit $ac_status); } && { |
| 19438 | test -z "$ac_c_werror_flag" || |
| 19439 | test ! -s conftest.err |
| 19440 | } && test -s conftest$ac_exeext && { |
| 19441 | test "$cross_compiling" = yes || |
| 19442 | $as_test_x conftest$ac_exeext |
| 19443 | }; then |
| 19444 | ac_cv_func__dyld_func_lookup=yes |
| 19445 | else |
| 19446 | $as_echo "$as_me: failed program was:" >&5 |
| 19447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19448 | |
| 19449 | ac_cv_func__dyld_func_lookup=no |
| 19450 | fi |
| 19451 | |
| 19452 | rm -rf conftest.dSYM |
| 19453 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19454 | conftest$ac_exeext conftest.$ac_ext |
| 19455 | fi |
| 19456 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 19457 | $as_echo "$ac_cv_func__dyld_func_lookup" >&6; } |
| 19458 | if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then |
| 19459 | |
| 19460 | cat >>confdefs.h <<\_ACEOF |
| 19461 | #define HAVE_DYLD 1 |
| 19462 | _ACEOF |
| 19463 | |
| 19464 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" |
| 19465 | fi |
| 19466 | |
| 19467 | ;; |
| 19468 | beos*) |
| 19469 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" |
| 19470 | ;; |
| 19471 | cygwin* | mingw* | os2* | pw32*) |
| 19472 | { $as_echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5 |
| 19473 | $as_echo_n "checking whether cygwin_conv_path is declared... " >&6; } |
| 19474 | if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then |
| 19475 | $as_echo_n "(cached) " >&6 |
| 19476 | else |
| 19477 | cat >conftest.$ac_ext <<_ACEOF |
| 19478 | /* confdefs.h. */ |
| 19479 | _ACEOF |
| 19480 | cat confdefs.h >>conftest.$ac_ext |
| 19481 | cat >>conftest.$ac_ext <<_ACEOF |
| 19482 | /* end confdefs.h. */ |
| 19483 | #include <sys/cygwin.h> |
| 19484 | |
| 19485 | int |
| 19486 | main () |
| 19487 | { |
| 19488 | #ifndef cygwin_conv_path |
| 19489 | (void) cygwin_conv_path; |
| 19490 | #endif |
| 19491 | |
| 19492 | ; |
| 19493 | return 0; |
| 19494 | } |
| 19495 | _ACEOF |
| 19496 | rm -f conftest.$ac_objext |
| 19497 | if { (ac_try="$ac_compile" |
| 19498 | case "(($ac_try" in |
| 19499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19500 | *) ac_try_echo=$ac_try;; |
| 19501 | esac |
| 19502 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19503 | $as_echo "$ac_try_echo") >&5 |
| 19504 | (eval "$ac_compile") 2>conftest.er1 |
| 19505 | ac_status=$? |
| 19506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19507 | rm -f conftest.er1 |
| 19508 | cat conftest.err >&5 |
| 19509 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19510 | (exit $ac_status); } && { |
| 19511 | test -z "$ac_c_werror_flag" || |
| 19512 | test ! -s conftest.err |
| 19513 | } && test -s conftest.$ac_objext; then |
| 19514 | ac_cv_have_decl_cygwin_conv_path=yes |
| 19515 | else |
| 19516 | $as_echo "$as_me: failed program was:" >&5 |
| 19517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19518 | |
| 19519 | ac_cv_have_decl_cygwin_conv_path=no |
| 19520 | fi |
| 19521 | |
| 19522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19523 | fi |
| 19524 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5 |
| 19525 | $as_echo "$ac_cv_have_decl_cygwin_conv_path" >&6; } |
| 19526 | if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then |
| 19527 | |
| 19528 | cat >>confdefs.h <<_ACEOF |
| 19529 | #define HAVE_DECL_CYGWIN_CONV_PATH 1 |
| 19530 | _ACEOF |
| 19531 | |
| 19532 | |
| 19533 | else |
| 19534 | cat >>confdefs.h <<_ACEOF |
| 19535 | #define HAVE_DECL_CYGWIN_CONV_PATH 0 |
| 19536 | _ACEOF |
| 19537 | |
| 19538 | |
| 19539 | fi |
| 19540 | |
| 19541 | |
| 19542 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" |
| 19543 | ;; |
| 19544 | esac |
| 19545 | |
| 19546 | { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 19547 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 19548 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 19549 | $as_echo_n "(cached) " >&6 |
| 19550 | else |
| 19551 | ac_check_lib_save_LIBS=$LIBS |
| 19552 | LIBS="-ldld $LIBS" |
| 19553 | cat >conftest.$ac_ext <<_ACEOF |
| 19554 | /* confdefs.h. */ |
| 19555 | _ACEOF |
| 19556 | cat confdefs.h >>conftest.$ac_ext |
| 19557 | cat >>conftest.$ac_ext <<_ACEOF |
| 19558 | /* end confdefs.h. */ |
| 19559 | |
| 19560 | /* Override any GCC internal prototype to avoid an error. |
| 19561 | Use char because int might match the return type of a GCC |
| 19562 | builtin and then its argument prototype would still apply. */ |
| 19563 | #ifdef __cplusplus |
| 19564 | extern "C" |
| 19565 | #endif |
| 19566 | char dld_link (); |
| 19567 | int |
| 19568 | main () |
| 19569 | { |
| 19570 | return dld_link (); |
| 19571 | ; |
| 19572 | return 0; |
| 19573 | } |
| 19574 | _ACEOF |
| 19575 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19576 | if { (ac_try="$ac_link" |
| 19577 | case "(($ac_try" in |
| 19578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19579 | *) ac_try_echo=$ac_try;; |
| 19580 | esac |
| 19581 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19582 | $as_echo "$ac_try_echo") >&5 |
| 19583 | (eval "$ac_link") 2>conftest.er1 |
| 19584 | ac_status=$? |
| 19585 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19586 | rm -f conftest.er1 |
| 19587 | cat conftest.err >&5 |
| 19588 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19589 | (exit $ac_status); } && { |
| 19590 | test -z "$ac_c_werror_flag" || |
| 19591 | test ! -s conftest.err |
| 19592 | } && test -s conftest$ac_exeext && { |
| 19593 | test "$cross_compiling" = yes || |
| 19594 | $as_test_x conftest$ac_exeext |
| 19595 | }; then |
| 19596 | ac_cv_lib_dld_dld_link=yes |
| 19597 | else |
| 19598 | $as_echo "$as_me: failed program was:" >&5 |
| 19599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19600 | |
| 19601 | ac_cv_lib_dld_dld_link=no |
| 19602 | fi |
| 19603 | |
| 19604 | rm -rf conftest.dSYM |
| 19605 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 19606 | conftest$ac_exeext conftest.$ac_ext |
| 19607 | LIBS=$ac_check_lib_save_LIBS |
| 19608 | fi |
| 19609 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 19610 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 19611 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then |
| 19612 | |
| 19613 | cat >>confdefs.h <<\_ACEOF |
| 19614 | #define HAVE_DLD 1 |
| 19615 | _ACEOF |
| 19616 | |
| 19617 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" |
| 19618 | fi |
| 19619 | |
| 19620 | |
| 19621 | |
| 19622 | |
| 19623 | LT_DLPREOPEN= |
| 19624 | if test -n "$LT_DLLOADERS" |
| 19625 | then |
| 19626 | for lt_loader in $LT_DLLOADERS; do |
| 19627 | LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " |
| 19628 | done |
| 19629 | |
| 19630 | cat >>confdefs.h <<\_ACEOF |
| 19631 | #define HAVE_LIBDLLOADER 1 |
| 19632 | _ACEOF |
| 19633 | |
| 19634 | fi |
| 19635 | |
| 19636 | |
| 19637 | LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" |
| 19638 | |
| 19639 | |
| 19640 | ac_ext=c |
| 19641 | ac_cpp='$CPP $CPPFLAGS' |
| 19642 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19643 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19644 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19645 | |
| 19646 | |
| 19647 | { $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 19648 | $as_echo_n "checking for _ prefix in compiled symbols... " >&6; } |
| 19649 | if test "${lt_cv_sys_symbol_underscore+set}" = set; then |
| 19650 | $as_echo_n "(cached) " >&6 |
| 19651 | else |
| 19652 | lt_cv_sys_symbol_underscore=no |
| 19653 | cat > conftest.$ac_ext <<_LT_EOF |
| 19654 | void nm_test_func(){} |
| 19655 | int main(){nm_test_func;return 0;} |
| 19656 | _LT_EOF |
| 19657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19658 | (eval $ac_compile) 2>&5 |
| 19659 | ac_status=$? |
| 19660 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19661 | (exit $ac_status); }; then |
| 19662 | # Now try to grab the symbols. |
| 19663 | ac_nlist=conftest.nm |
| 19664 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
| 19665 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 19666 | ac_status=$? |
| 19667 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19668 | (exit $ac_status); } && test -s "$ac_nlist"; then |
| 19669 | # See whether the symbols have a leading underscore. |
| 19670 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 19671 | lt_cv_sys_symbol_underscore=yes |
| 19672 | else |
| 19673 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 19674 | : |
| 19675 | else |
| 19676 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 19677 | fi |
| 19678 | fi |
| 19679 | else |
| 19680 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 19681 | fi |
| 19682 | else |
| 19683 | echo "configure: failed program was:" >&5 |
| 19684 | cat conftest.c >&5 |
| 19685 | fi |
| 19686 | rm -rf conftest* |
| 19687 | |
| 19688 | fi |
| 19689 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5 |
| 19690 | $as_echo "$lt_cv_sys_symbol_underscore" >&6; } |
| 19691 | sys_symbol_underscore=$lt_cv_sys_symbol_underscore |
| 19692 | |
| 19693 | |
| 19694 | if test x"$lt_cv_sys_symbol_underscore" = xyes; then |
| 19695 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 19696 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
| 19697 | { $as_echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 19698 | $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } |
| 19699 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 19700 | $as_echo_n "(cached) " >&6 |
| 19701 | else |
| 19702 | libltdl_cv_need_uscore=unknown |
| 19703 | save_LIBS="$LIBS" |
| 19704 | LIBS="$LIBS $LIBADD_DLOPEN" |
| 19705 | if test "$cross_compiling" = yes; then : |
| 19706 | libltdl_cv_need_uscore=cross |
| 19707 | else |
| 19708 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 19709 | lt_status=$lt_dlunknown |
| 19710 | cat > conftest.$ac_ext <<_LT_EOF |
| 19711 | #line 19711 "configure" |
| 19712 | #include "confdefs.h" |
| 19713 | |
| 19714 | #if HAVE_DLFCN_H |
| 19715 | #include <dlfcn.h> |
| 19716 | #endif |
| 19717 | |
| 19718 | #include <stdio.h> |
| 19719 | |
| 19720 | #ifdef RTLD_GLOBAL |
| 19721 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 19722 | #else |
| 19723 | # ifdef DL_GLOBAL |
| 19724 | # define LT_DLGLOBAL DL_GLOBAL |
| 19725 | # else |
| 19726 | # define LT_DLGLOBAL 0 |
| 19727 | # endif |
| 19728 | #endif |
| 19729 | |
| 19730 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 19731 | find out it does not work in some platform. */ |
| 19732 | #ifndef LT_DLLAZY_OR_NOW |
| 19733 | # ifdef RTLD_LAZY |
| 19734 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 19735 | # else |
| 19736 | # ifdef DL_LAZY |
| 19737 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 19738 | # else |
| 19739 | # ifdef RTLD_NOW |
| 19740 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 19741 | # else |
| 19742 | # ifdef DL_NOW |
| 19743 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 19744 | # else |
| 19745 | # define LT_DLLAZY_OR_NOW 0 |
| 19746 | # endif |
| 19747 | # endif |
| 19748 | # endif |
| 19749 | # endif |
| 19750 | #endif |
| 19751 | |
| 19752 | void fnord() { int i=42;} |
| 19753 | int main () |
| 19754 | { |
| 19755 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 19756 | int status = $lt_dlunknown; |
| 19757 | |
| 19758 | if (self) |
| 19759 | { |
| 19760 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 19761 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 19762 | /* dlclose (self); */ |
| 19763 | } |
| 19764 | else |
| 19765 | puts (dlerror ()); |
| 19766 | |
| 19767 | return status; |
| 19768 | } |
| 19769 | _LT_EOF |
| 19770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19771 | (eval $ac_link) 2>&5 |
| 19772 | ac_status=$? |
| 19773 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19774 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 19775 | (./conftest; exit; ) >&5 2>/dev/null |
| 19776 | lt_status=$? |
| 19777 | case x$lt_status in |
| 19778 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 19779 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
| 19780 | x$lt_dlunknown|x*) ;; |
| 19781 | esac |
| 19782 | else : |
| 19783 | # compilation failed |
| 19784 | |
| 19785 | fi |
| 19786 | fi |
| 19787 | rm -fr conftest* |
| 19788 | |
| 19789 | LIBS="$save_LIBS" |
| 19790 | |
| 19791 | fi |
| 19792 | { $as_echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 19793 | $as_echo "$libltdl_cv_need_uscore" >&6; } |
| 19794 | fi |
| 19795 | fi |
| 19796 | |
| 19797 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 19798 | |
| 19799 | cat >>confdefs.h <<\_ACEOF |
| 19800 | #define NEED_USCORE 1 |
| 19801 | _ACEOF |
| 19802 | |
| 19803 | fi |
| 19804 | |
| 19805 | { $as_echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 19806 | $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } |
| 19807 | if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then |
| 19808 | $as_echo_n "(cached) " >&6 |
| 19809 | else |
| 19810 | # PORTME does your system automatically load deplibs for dlopen? |
| 19811 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 19812 | # For now, we just catch OSes we know something about -- in the |
| 19813 | # future, we'll try test this programmatically. |
| 19814 | lt_cv_sys_dlopen_deplibs=unknown |
| 19815 | case $host_os in |
| 19816 | aix3*|aix4.1.*|aix4.2.*) |
| 19817 | # Unknown whether this is true for these versions of AIX, but |
| 19818 | # we want this `case' here to explicitly catch those versions. |
| 19819 | lt_cv_sys_dlopen_deplibs=unknown |
| 19820 | ;; |
| 19821 | aix[4-9]*) |
| 19822 | lt_cv_sys_dlopen_deplibs=yes |
| 19823 | ;; |
| 19824 | amigaos*) |
| 19825 | case $host_cpu in |
| 19826 | powerpc) |
| 19827 | lt_cv_sys_dlopen_deplibs=no |
| 19828 | ;; |
| 19829 | esac |
| 19830 | ;; |
| 19831 | darwin*) |
| 19832 | # Assuming the user has installed a libdl from somewhere, this is true |
| 19833 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 19834 | lt_cv_sys_dlopen_deplibs=yes |
| 19835 | ;; |
| 19836 | freebsd* | dragonfly*) |
| 19837 | lt_cv_sys_dlopen_deplibs=yes |
| 19838 | ;; |
| 19839 | gnu* | linux* | k*bsd*-gnu) |
| 19840 | # GNU and its variants, using gnu ld.so (Glibc) |
| 19841 | lt_cv_sys_dlopen_deplibs=yes |
| 19842 | ;; |
| 19843 | hpux10*|hpux11*) |
| 19844 | lt_cv_sys_dlopen_deplibs=yes |
| 19845 | ;; |
| 19846 | interix*) |
| 19847 | lt_cv_sys_dlopen_deplibs=yes |
| 19848 | ;; |
| 19849 | irix[12345]*|irix6.[01]*) |
| 19850 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 19851 | # know how it worked for any of those versions. |
| 19852 | lt_cv_sys_dlopen_deplibs=unknown |
| 19853 | ;; |
| 19854 | irix*) |
| 19855 | # The case above catches anything before 6.2, and it's known that |
| 19856 | # at 6.2 and later dlopen does load deplibs. |
| 19857 | lt_cv_sys_dlopen_deplibs=yes |
| 19858 | ;; |
| 19859 | netbsd*) |
| 19860 | lt_cv_sys_dlopen_deplibs=yes |
| 19861 | ;; |
| 19862 | openbsd*) |
| 19863 | lt_cv_sys_dlopen_deplibs=yes |
| 19864 | ;; |
| 19865 | osf[1234]*) |
| 19866 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 19867 | # it did *not* use an RPATH in a shared library to find objects the |
| 19868 | # library depends on, so we explicitly say `no'. |
| 19869 | lt_cv_sys_dlopen_deplibs=no |
| 19870 | ;; |
| 19871 | osf5.0|osf5.0a|osf5.1) |
| 19872 | # dlopen *does* load deplibs and with the right loader patch applied |
| 19873 | # it even uses RPATH in a shared library to search for shared objects |
| 19874 | # that the library depends on, but there's no easy way to know if that |
| 19875 | # patch is installed. Since this is the case, all we can really |
| 19876 | # say is unknown -- it depends on the patch being installed. If |
| 19877 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 19878 | lt_cv_sys_dlopen_deplibs=unknown |
| 19879 | ;; |
| 19880 | osf*) |
| 19881 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 19882 | # the comments above for what we know about them. |
| 19883 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 19884 | # is used to find them so we can finally say `yes'. |
| 19885 | lt_cv_sys_dlopen_deplibs=yes |
| 19886 | ;; |
| 19887 | qnx*) |
| 19888 | lt_cv_sys_dlopen_deplibs=yes |
| 19889 | ;; |
| 19890 | solaris*) |
| 19891 | lt_cv_sys_dlopen_deplibs=yes |
| 19892 | ;; |
| 19893 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 19894 | libltdl_cv_sys_dlopen_deplibs=yes |
| 19895 | ;; |
| 19896 | esac |
| 19897 | |
| 19898 | fi |
| 19899 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5 |
| 19900 | $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } |
| 19901 | if test "$lt_cv_sys_dlopen_deplibs" != yes; then |
| 19902 | |
| 19903 | cat >>confdefs.h <<\_ACEOF |
| 19904 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 19905 | _ACEOF |
| 19906 | |
| 19907 | fi |
| 19908 | |
| 19909 | : |
| 19910 | |
| 19911 | |
| 19912 | for ac_header in argz.h |
| 19913 | do |
| 19914 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19915 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 19916 | $as_echo_n "checking for $ac_header... " >&6; } |
| 19917 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 19918 | $as_echo_n "(cached) " >&6 |
| 19919 | else |
| 19920 | cat >conftest.$ac_ext <<_ACEOF |
| 19921 | /* confdefs.h. */ |
| 19922 | _ACEOF |
| 19923 | cat confdefs.h >>conftest.$ac_ext |
| 19924 | cat >>conftest.$ac_ext <<_ACEOF |
| 19925 | /* end confdefs.h. */ |
| 19926 | $ac_includes_default |
| 19927 | |
| 19928 | #include <$ac_header> |
| 19929 | _ACEOF |
| 19930 | rm -f conftest.$ac_objext |
| 19931 | if { (ac_try="$ac_compile" |
| 19932 | case "(($ac_try" in |
| 19933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19934 | *) ac_try_echo=$ac_try;; |
| 19935 | esac |
| 19936 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 19937 | $as_echo "$ac_try_echo") >&5 |
| 19938 | (eval "$ac_compile") 2>conftest.er1 |
| 19939 | ac_status=$? |
| 19940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19941 | rm -f conftest.er1 |
| 19942 | cat conftest.err >&5 |
| 19943 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19944 | (exit $ac_status); } && { |
| 19945 | test -z "$ac_c_werror_flag" || |
| 19946 | test ! -s conftest.err |
| 19947 | } && test -s conftest.$ac_objext; then |
| 19948 | eval "$as_ac_Header=yes" |
| 19949 | else |
| 19950 | $as_echo "$as_me: failed program was:" >&5 |
| 19951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19952 | |
| 19953 | eval "$as_ac_Header=no" |
| 19954 | fi |
| 19955 | |
| 19956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19957 | fi |
| 19958 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 19959 | $as_echo "$as_val"'` |
| 19960 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 19961 | $as_echo "$ac_res" >&6; } |
| 19962 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 19963 | $as_echo "$as_val"'` |
| 19964 | if test "x$as_val" = x""yes; then |
| 19965 | cat >>confdefs.h <<_ACEOF |
| 19966 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 19967 | _ACEOF |
| 19968 | |
| 19969 | fi |
| 19970 | |
| 19971 | done |
| 19972 | |
| 19973 | |
| 19974 | { $as_echo "$as_me:$LINENO: checking for error_t" >&5 |
| 19975 | $as_echo_n "checking for error_t... " >&6; } |
| 19976 | if test "${ac_cv_type_error_t+set}" = set; then |
| 19977 | $as_echo_n "(cached) " >&6 |
| 19978 | else |
| 19979 | ac_cv_type_error_t=no |
| 19980 | cat >conftest.$ac_ext <<_ACEOF |
| 19981 | /* confdefs.h. */ |
| 19982 | _ACEOF |
| 19983 | cat confdefs.h >>conftest.$ac_ext |
| 19984 | cat >>conftest.$ac_ext <<_ACEOF |
| 19985 | /* end confdefs.h. */ |
| 19986 | #if defined(HAVE_ARGZ_H) |
| 19987 | # include <argz.h> |
| 19988 | #endif |
| 19989 | |
| 19990 | int |
| 19991 | main () |
| 19992 | { |
| 19993 | if (sizeof (error_t)) |
| 19994 | return 0; |
| 19995 | ; |
| 19996 | return 0; |
| 19997 | } |
| 19998 | _ACEOF |
| 19999 | rm -f conftest.$ac_objext |
| 20000 | if { (ac_try="$ac_compile" |
| 20001 | case "(($ac_try" in |
| 20002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20003 | *) ac_try_echo=$ac_try;; |
| 20004 | esac |
| 20005 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20006 | $as_echo "$ac_try_echo") >&5 |
| 20007 | (eval "$ac_compile") 2>conftest.er1 |
| 20008 | ac_status=$? |
| 20009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20010 | rm -f conftest.er1 |
| 20011 | cat conftest.err >&5 |
| 20012 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20013 | (exit $ac_status); } && { |
| 20014 | test -z "$ac_c_werror_flag" || |
| 20015 | test ! -s conftest.err |
| 20016 | } && test -s conftest.$ac_objext; then |
| 20017 | cat >conftest.$ac_ext <<_ACEOF |
| 20018 | /* confdefs.h. */ |
| 20019 | _ACEOF |
| 20020 | cat confdefs.h >>conftest.$ac_ext |
| 20021 | cat >>conftest.$ac_ext <<_ACEOF |
| 20022 | /* end confdefs.h. */ |
| 20023 | #if defined(HAVE_ARGZ_H) |
| 20024 | # include <argz.h> |
| 20025 | #endif |
| 20026 | |
| 20027 | int |
| 20028 | main () |
| 20029 | { |
| 20030 | if (sizeof ((error_t))) |
| 20031 | return 0; |
| 20032 | ; |
| 20033 | return 0; |
| 20034 | } |
| 20035 | _ACEOF |
| 20036 | rm -f conftest.$ac_objext |
| 20037 | if { (ac_try="$ac_compile" |
| 20038 | case "(($ac_try" in |
| 20039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20040 | *) ac_try_echo=$ac_try;; |
| 20041 | esac |
| 20042 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20043 | $as_echo "$ac_try_echo") >&5 |
| 20044 | (eval "$ac_compile") 2>conftest.er1 |
| 20045 | ac_status=$? |
| 20046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20047 | rm -f conftest.er1 |
| 20048 | cat conftest.err >&5 |
| 20049 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20050 | (exit $ac_status); } && { |
| 20051 | test -z "$ac_c_werror_flag" || |
| 20052 | test ! -s conftest.err |
| 20053 | } && test -s conftest.$ac_objext; then |
| 20054 | : |
| 20055 | else |
| 20056 | $as_echo "$as_me: failed program was:" >&5 |
| 20057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20058 | |
| 20059 | ac_cv_type_error_t=yes |
| 20060 | fi |
| 20061 | |
| 20062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20063 | else |
| 20064 | $as_echo "$as_me: failed program was:" >&5 |
| 20065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20066 | |
| 20067 | |
| 20068 | fi |
| 20069 | |
| 20070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20071 | fi |
| 20072 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 20073 | $as_echo "$ac_cv_type_error_t" >&6; } |
| 20074 | if test "x$ac_cv_type_error_t" = x""yes; then |
| 20075 | |
| 20076 | cat >>confdefs.h <<_ACEOF |
| 20077 | #define HAVE_ERROR_T 1 |
| 20078 | _ACEOF |
| 20079 | |
| 20080 | |
| 20081 | else |
| 20082 | |
| 20083 | cat >>confdefs.h <<\_ACEOF |
| 20084 | #define error_t int |
| 20085 | _ACEOF |
| 20086 | |
| 20087 | |
| 20088 | cat >>confdefs.h <<\_ACEOF |
| 20089 | #define __error_t_defined 1 |
| 20090 | _ACEOF |
| 20091 | |
| 20092 | fi |
| 20093 | |
| 20094 | |
| 20095 | ARGZ_H= |
| 20096 | |
| 20097 | |
| 20098 | |
| 20099 | |
| 20100 | |
| 20101 | |
| 20102 | |
| 20103 | for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ |
| 20104 | argz_next argz_stringify |
| 20105 | do |
| 20106 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20107 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20108 | $as_echo_n "checking for $ac_func... " >&6; } |
| 20109 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20110 | $as_echo_n "(cached) " >&6 |
| 20111 | else |
| 20112 | cat >conftest.$ac_ext <<_ACEOF |
| 20113 | /* confdefs.h. */ |
| 20114 | _ACEOF |
| 20115 | cat confdefs.h >>conftest.$ac_ext |
| 20116 | cat >>conftest.$ac_ext <<_ACEOF |
| 20117 | /* end confdefs.h. */ |
| 20118 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20119 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20120 | #define $ac_func innocuous_$ac_func |
| 20121 | |
| 20122 | /* System header to define __stub macros and hopefully few prototypes, |
| 20123 | which can conflict with char $ac_func (); below. |
| 20124 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20125 | <limits.h> exists even on freestanding compilers. */ |
| 20126 | |
| 20127 | #ifdef __STDC__ |
| 20128 | # include <limits.h> |
| 20129 | #else |
| 20130 | # include <assert.h> |
| 20131 | #endif |
| 20132 | |
| 20133 | #undef $ac_func |
| 20134 | |
| 20135 | /* Override any GCC internal prototype to avoid an error. |
| 20136 | Use char because int might match the return type of a GCC |
| 20137 | builtin and then its argument prototype would still apply. */ |
| 20138 | #ifdef __cplusplus |
| 20139 | extern "C" |
| 20140 | #endif |
| 20141 | char $ac_func (); |
| 20142 | /* The GNU C library defines this for functions which it implements |
| 20143 | to always fail with ENOSYS. Some functions are actually named |
| 20144 | something starting with __ and the normal name is an alias. */ |
| 20145 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20146 | choke me |
| 20147 | #endif |
| 20148 | |
| 20149 | int |
| 20150 | main () |
| 20151 | { |
| 20152 | return $ac_func (); |
| 20153 | ; |
| 20154 | return 0; |
| 20155 | } |
| 20156 | _ACEOF |
| 20157 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20158 | if { (ac_try="$ac_link" |
| 20159 | case "(($ac_try" in |
| 20160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20161 | *) ac_try_echo=$ac_try;; |
| 20162 | esac |
| 20163 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20164 | $as_echo "$ac_try_echo") >&5 |
| 20165 | (eval "$ac_link") 2>conftest.er1 |
| 20166 | ac_status=$? |
| 20167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20168 | rm -f conftest.er1 |
| 20169 | cat conftest.err >&5 |
| 20170 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20171 | (exit $ac_status); } && { |
| 20172 | test -z "$ac_c_werror_flag" || |
| 20173 | test ! -s conftest.err |
| 20174 | } && test -s conftest$ac_exeext && { |
| 20175 | test "$cross_compiling" = yes || |
| 20176 | $as_test_x conftest$ac_exeext |
| 20177 | }; then |
| 20178 | eval "$as_ac_var=yes" |
| 20179 | else |
| 20180 | $as_echo "$as_me: failed program was:" >&5 |
| 20181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20182 | |
| 20183 | eval "$as_ac_var=no" |
| 20184 | fi |
| 20185 | |
| 20186 | rm -rf conftest.dSYM |
| 20187 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20188 | conftest$ac_exeext conftest.$ac_ext |
| 20189 | fi |
| 20190 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 20191 | $as_echo "$as_val"'` |
| 20192 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20193 | $as_echo "$ac_res" >&6; } |
| 20194 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 20195 | $as_echo "$as_val"'` |
| 20196 | if test "x$as_val" = x""yes; then |
| 20197 | cat >>confdefs.h <<_ACEOF |
| 20198 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 20199 | _ACEOF |
| 20200 | |
| 20201 | else |
| 20202 | ARGZ_H=argz.h; |
| 20203 | |
| 20204 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
| 20205 | |
| 20206 | fi |
| 20207 | done |
| 20208 | |
| 20209 | |
| 20210 | if test -z "$ARGZ_H"; then |
| 20211 | { $as_echo "$as_me:$LINENO: checking if argz actually works" >&5 |
| 20212 | $as_echo_n "checking if argz actually works... " >&6; } |
| 20213 | if test "${lt_cv_sys_argz_works+set}" = set; then |
| 20214 | $as_echo_n "(cached) " >&6 |
| 20215 | else |
| 20216 | case $host_os in #( |
| 20217 | *cygwin*) |
| 20218 | lt_cv_sys_argz_works=no |
| 20219 | if test "$cross_compiling" != no; then |
| 20220 | lt_cv_sys_argz_works="guessing no" |
| 20221 | else |
| 20222 | lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' |
| 20223 | save_IFS=$IFS |
| 20224 | IFS=-. |
| 20225 | set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` |
| 20226 | IFS=$save_IFS |
| 20227 | lt_os_major=${2-0} |
| 20228 | lt_os_minor=${3-0} |
| 20229 | lt_os_micro=${4-0} |
| 20230 | if test "$lt_os_major" -gt 1 \ |
| 20231 | || { test "$lt_os_major" -eq 1 \ |
| 20232 | && { test "$lt_os_minor" -gt 5 \ |
| 20233 | || { test "$lt_os_minor" -eq 5 \ |
| 20234 | && test "$lt_os_micro" -gt 24; }; }; }; then |
| 20235 | lt_cv_sys_argz_works=yes |
| 20236 | fi |
| 20237 | fi |
| 20238 | ;; #( |
| 20239 | *) lt_cv_sys_argz_works=yes ;; |
| 20240 | esac |
| 20241 | fi |
| 20242 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5 |
| 20243 | $as_echo "$lt_cv_sys_argz_works" >&6; } |
| 20244 | if test $lt_cv_sys_argz_works = yes; then |
| 20245 | |
| 20246 | cat >>confdefs.h <<\_ACEOF |
| 20247 | #define HAVE_WORKING_ARGZ 1 |
| 20248 | _ACEOF |
| 20249 | |
| 20250 | else |
| 20251 | ARGZ_H=argz.h |
| 20252 | |
| 20253 | |
| 20254 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
| 20255 | |
| 20256 | fi |
| 20257 | |
| 20258 | fi |
| 20259 | |
| 20260 | |
| 20261 | |
| 20262 | |
| 20263 | { $as_echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 20264 | $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } |
| 20265 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 20266 | $as_echo_n "(cached) " >&6 |
| 20267 | else |
| 20268 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 20269 | libltdl_cv_preloaded_symbols=yes |
| 20270 | else |
| 20271 | libltdl_cv_preloaded_symbols=no |
| 20272 | fi |
| 20273 | |
| 20274 | fi |
| 20275 | { $as_echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 20276 | $as_echo "$libltdl_cv_preloaded_symbols" >&6; } |
| 20277 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 20278 | |
| 20279 | cat >>confdefs.h <<\_ACEOF |
| 20280 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 20281 | _ACEOF |
| 20282 | |
| 20283 | fi |
| 20284 | |
| 20285 | # Set options |
| 20286 | |
| 20287 | |
| 20288 | |
| 20289 | |
| 20290 | |
| 20291 | |
| 20292 | |
| 20293 | |
| 20294 | |
| 20295 | |
| 20296 | |
| 20297 | # Check whether --with-included_ltdl was given. |
| 20298 | if test "${with_included_ltdl+set}" = set; then |
| 20299 | withval=$with_included_ltdl; |
| 20300 | fi |
| 20301 | |
| 20302 | |
| 20303 | if test "x$with_included_ltdl" != xyes; then |
| 20304 | # We are not being forced to use the included libltdl sources, so |
| 20305 | # decide whether there is a useful installed version we can use. |
| 20306 | { $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5 |
| 20307 | $as_echo_n "checking for ltdl.h... " >&6; } |
| 20308 | if test "${ac_cv_header_ltdl_h+set}" = set; then |
| 20309 | $as_echo_n "(cached) " >&6 |
| 20310 | else |
| 20311 | cat >conftest.$ac_ext <<_ACEOF |
| 20312 | /* confdefs.h. */ |
| 20313 | _ACEOF |
| 20314 | cat confdefs.h >>conftest.$ac_ext |
| 20315 | cat >>conftest.$ac_ext <<_ACEOF |
| 20316 | /* end confdefs.h. */ |
| 20317 | $ac_includes_default |
| 20318 | |
| 20319 | |
| 20320 | #include <ltdl.h> |
| 20321 | _ACEOF |
| 20322 | rm -f conftest.$ac_objext |
| 20323 | if { (ac_try="$ac_compile" |
| 20324 | case "(($ac_try" in |
| 20325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20326 | *) ac_try_echo=$ac_try;; |
| 20327 | esac |
| 20328 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20329 | $as_echo "$ac_try_echo") >&5 |
| 20330 | (eval "$ac_compile") 2>conftest.er1 |
| 20331 | ac_status=$? |
| 20332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20333 | rm -f conftest.er1 |
| 20334 | cat conftest.err >&5 |
| 20335 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20336 | (exit $ac_status); } && { |
| 20337 | test -z "$ac_c_werror_flag" || |
| 20338 | test ! -s conftest.err |
| 20339 | } && test -s conftest.$ac_objext; then |
| 20340 | ac_cv_header_ltdl_h=yes |
| 20341 | else |
| 20342 | $as_echo "$as_me: failed program was:" >&5 |
| 20343 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20344 | |
| 20345 | ac_cv_header_ltdl_h=no |
| 20346 | fi |
| 20347 | |
| 20348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20349 | fi |
| 20350 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5 |
| 20351 | $as_echo "$ac_cv_header_ltdl_h" >&6; } |
| 20352 | if test "x$ac_cv_header_ltdl_h" = x""yes; then |
| 20353 | { $as_echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5 |
| 20354 | $as_echo_n "checking whether lt_dlinterface_register is declared... " >&6; } |
| 20355 | if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then |
| 20356 | $as_echo_n "(cached) " >&6 |
| 20357 | else |
| 20358 | cat >conftest.$ac_ext <<_ACEOF |
| 20359 | /* confdefs.h. */ |
| 20360 | _ACEOF |
| 20361 | cat confdefs.h >>conftest.$ac_ext |
| 20362 | cat >>conftest.$ac_ext <<_ACEOF |
| 20363 | /* end confdefs.h. */ |
| 20364 | $ac_includes_default |
| 20365 | #include <ltdl.h> |
| 20366 | |
| 20367 | int |
| 20368 | main () |
| 20369 | { |
| 20370 | #ifndef lt_dlinterface_register |
| 20371 | (void) lt_dlinterface_register; |
| 20372 | #endif |
| 20373 | |
| 20374 | ; |
| 20375 | return 0; |
| 20376 | } |
| 20377 | _ACEOF |
| 20378 | rm -f conftest.$ac_objext |
| 20379 | if { (ac_try="$ac_compile" |
| 20380 | case "(($ac_try" in |
| 20381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20382 | *) ac_try_echo=$ac_try;; |
| 20383 | esac |
| 20384 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20385 | $as_echo "$ac_try_echo") >&5 |
| 20386 | (eval "$ac_compile") 2>conftest.er1 |
| 20387 | ac_status=$? |
| 20388 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20389 | rm -f conftest.er1 |
| 20390 | cat conftest.err >&5 |
| 20391 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20392 | (exit $ac_status); } && { |
| 20393 | test -z "$ac_c_werror_flag" || |
| 20394 | test ! -s conftest.err |
| 20395 | } && test -s conftest.$ac_objext; then |
| 20396 | ac_cv_have_decl_lt_dlinterface_register=yes |
| 20397 | else |
| 20398 | $as_echo "$as_me: failed program was:" >&5 |
| 20399 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20400 | |
| 20401 | ac_cv_have_decl_lt_dlinterface_register=no |
| 20402 | fi |
| 20403 | |
| 20404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20405 | fi |
| 20406 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5 |
| 20407 | $as_echo "$ac_cv_have_decl_lt_dlinterface_register" >&6; } |
| 20408 | if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then |
| 20409 | { $as_echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5 |
| 20410 | $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } |
| 20411 | if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then |
| 20412 | $as_echo_n "(cached) " >&6 |
| 20413 | else |
| 20414 | ac_check_lib_save_LIBS=$LIBS |
| 20415 | LIBS="-lltdl $LIBS" |
| 20416 | cat >conftest.$ac_ext <<_ACEOF |
| 20417 | /* confdefs.h. */ |
| 20418 | _ACEOF |
| 20419 | cat confdefs.h >>conftest.$ac_ext |
| 20420 | cat >>conftest.$ac_ext <<_ACEOF |
| 20421 | /* end confdefs.h. */ |
| 20422 | |
| 20423 | /* Override any GCC internal prototype to avoid an error. |
| 20424 | Use char because int might match the return type of a GCC |
| 20425 | builtin and then its argument prototype would still apply. */ |
| 20426 | #ifdef __cplusplus |
| 20427 | extern "C" |
| 20428 | #endif |
| 20429 | char lt_dladvise_preload (); |
| 20430 | int |
| 20431 | main () |
| 20432 | { |
| 20433 | return lt_dladvise_preload (); |
| 20434 | ; |
| 20435 | return 0; |
| 20436 | } |
| 20437 | _ACEOF |
| 20438 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20439 | if { (ac_try="$ac_link" |
| 20440 | case "(($ac_try" in |
| 20441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20442 | *) ac_try_echo=$ac_try;; |
| 20443 | esac |
| 20444 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20445 | $as_echo "$ac_try_echo") >&5 |
| 20446 | (eval "$ac_link") 2>conftest.er1 |
| 20447 | ac_status=$? |
| 20448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20449 | rm -f conftest.er1 |
| 20450 | cat conftest.err >&5 |
| 20451 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20452 | (exit $ac_status); } && { |
| 20453 | test -z "$ac_c_werror_flag" || |
| 20454 | test ! -s conftest.err |
| 20455 | } && test -s conftest$ac_exeext && { |
| 20456 | test "$cross_compiling" = yes || |
| 20457 | $as_test_x conftest$ac_exeext |
| 20458 | }; then |
| 20459 | ac_cv_lib_ltdl_lt_dladvise_preload=yes |
| 20460 | else |
| 20461 | $as_echo "$as_me: failed program was:" >&5 |
| 20462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20463 | |
| 20464 | ac_cv_lib_ltdl_lt_dladvise_preload=no |
| 20465 | fi |
| 20466 | |
| 20467 | rm -rf conftest.dSYM |
| 20468 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20469 | conftest$ac_exeext conftest.$ac_ext |
| 20470 | LIBS=$ac_check_lib_save_LIBS |
| 20471 | fi |
| 20472 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 |
| 20473 | $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } |
| 20474 | if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then |
| 20475 | with_included_ltdl=no |
| 20476 | else |
| 20477 | with_included_ltdl=yes |
| 20478 | fi |
| 20479 | |
| 20480 | else |
| 20481 | with_included_ltdl=yes |
| 20482 | fi |
| 20483 | |
| 20484 | else |
| 20485 | with_included_ltdl=yes |
| 20486 | fi |
| 20487 | |
| 20488 | |
| 20489 | fi |
| 20490 | |
| 20491 | |
| 20492 | |
| 20493 | |
| 20494 | # Check whether --with-ltdl_include was given. |
| 20495 | if test "${with_ltdl_include+set}" = set; then |
| 20496 | withval=$with_ltdl_include; |
| 20497 | fi |
| 20498 | |
| 20499 | |
| 20500 | if test -n "$with_ltdl_include"; then |
| 20501 | if test -f "$with_ltdl_include/ltdl.h"; then : |
| 20502 | else |
| 20503 | { { $as_echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5 |
| 20504 | $as_echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;} |
| 20505 | { (exit 1); exit 1; }; } |
| 20506 | fi |
| 20507 | else |
| 20508 | with_ltdl_include=no |
| 20509 | fi |
| 20510 | |
| 20511 | |
| 20512 | # Check whether --with-ltdl_lib was given. |
| 20513 | if test "${with_ltdl_lib+set}" = set; then |
| 20514 | withval=$with_ltdl_lib; |
| 20515 | fi |
| 20516 | |
| 20517 | |
| 20518 | if test -n "$with_ltdl_lib"; then |
| 20519 | if test -f "$with_ltdl_lib/libltdl.la"; then : |
| 20520 | else |
| 20521 | { { $as_echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5 |
| 20522 | $as_echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;} |
| 20523 | { (exit 1); exit 1; }; } |
| 20524 | fi |
| 20525 | else |
| 20526 | with_ltdl_lib=no |
| 20527 | fi |
| 20528 | |
| 20529 | case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in |
| 20530 | ,yes,no,no,) |
| 20531 | case $enable_ltdl_convenience in |
| 20532 | no) { { $as_echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5 |
| 20533 | $as_echo "$as_me: error: this package needs a convenience libltdl" >&2;} |
| 20534 | { (exit 1); exit 1; }; } ;; |
| 20535 | "") enable_ltdl_convenience=yes |
| 20536 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
| 20537 | esac |
| 20538 | LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" |
| 20539 | LTDLDEPS=$LIBLTDL |
| 20540 | LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" |
| 20541 | |
| 20542 | |
| 20543 | |
| 20544 | |
| 20545 | |
| 20546 | # For backwards non-gettext consistent compatibility... |
| 20547 | INCLTDL="$LTDLINCL" |
| 20548 | |
| 20549 | |
| 20550 | ;; |
| 20551 | ,no,no,no,) |
| 20552 | # If the included ltdl is not to be used, then use the |
| 20553 | # preinstalled libltdl we found. |
| 20554 | |
| 20555 | cat >>confdefs.h <<\_ACEOF |
| 20556 | #define HAVE_LTDL 1 |
| 20557 | _ACEOF |
| 20558 | |
| 20559 | LIBLTDL=-lltdl |
| 20560 | LTDLDEPS= |
| 20561 | LTDLINCL= |
| 20562 | ;; |
| 20563 | ,no*,no,*) |
| 20564 | { { $as_echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5 |
| 20565 | $as_echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;} |
| 20566 | { (exit 1); exit 1; }; } |
| 20567 | ;; |
| 20568 | *) with_included_ltdl=no |
| 20569 | LIBLTDL="-L$with_ltdl_lib -lltdl" |
| 20570 | LTDLDEPS= |
| 20571 | LTDLINCL="-I$with_ltdl_include" |
| 20572 | ;; |
| 20573 | esac |
| 20574 | INCLTDL="$LTDLINCL" |
| 20575 | |
| 20576 | # Report our decision... |
| 20577 | { $as_echo "$as_me:$LINENO: checking where to find libltdl headers" >&5 |
| 20578 | $as_echo_n "checking where to find libltdl headers... " >&6; } |
| 20579 | { $as_echo "$as_me:$LINENO: result: $LTDLINCL" >&5 |
| 20580 | $as_echo "$LTDLINCL" >&6; } |
| 20581 | { $as_echo "$as_me:$LINENO: checking where to find libltdl library" >&5 |
| 20582 | $as_echo_n "checking where to find libltdl library... " >&6; } |
| 20583 | { $as_echo "$as_me:$LINENO: result: $LIBLTDL" >&5 |
| 20584 | $as_echo "$LIBLTDL" >&6; } |
| 20585 | |
| 20586 | |
| 20587 | |
| 20588 | # Check whether --enable-ltdl-install was given. |
| 20589 | if test "${enable_ltdl_install+set}" = set; then |
| 20590 | enableval=$enable_ltdl_install; |
| 20591 | fi |
| 20592 | |
| 20593 | |
| 20594 | case ,${enable_ltdl_install},${enable_ltdl_convenience} in |
| 20595 | *yes*) ;; |
| 20596 | *) enable_ltdl_convenience=yes ;; |
| 20597 | esac |
| 20598 | |
| 20599 | if test x"${enable_ltdl_install-no}" != xno; then |
| 20600 | INSTALL_LTDL_TRUE= |
| 20601 | INSTALL_LTDL_FALSE='#' |
| 20602 | else |
| 20603 | INSTALL_LTDL_TRUE='#' |
| 20604 | INSTALL_LTDL_FALSE= |
| 20605 | fi |
| 20606 | |
| 20607 | if test x"${enable_ltdl_convenience-no}" != xno; then |
| 20608 | CONVENIENCE_LTDL_TRUE= |
| 20609 | CONVENIENCE_LTDL_FALSE='#' |
| 20610 | else |
| 20611 | CONVENIENCE_LTDL_TRUE='#' |
| 20612 | CONVENIENCE_LTDL_FALSE= |
| 20613 | fi |
| 20614 | |
| 20615 | |
| 20616 | |
| 20617 | |
| 20618 | |
| 20619 | |
| 20620 | |
| 20621 | # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS |
| 20622 | # the user used. This is so that ltdl.h can pick up the parent projects |
| 20623 | # config.h file, The first file in AC_CONFIG_HEADERS must contain the |
| 20624 | # definitions required by ltdl.c. |
| 20625 | # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). |
| 20626 | |
| 20627 | |
| 20628 | |
| 20629 | |
| 20630 | |
| 20631 | |
| 20632 | |
| 20633 | |
| 20634 | |
| 20635 | for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h |
| 20636 | do |
| 20637 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 20638 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 20639 | $as_echo_n "checking for $ac_header... " >&6; } |
| 20640 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20641 | $as_echo_n "(cached) " >&6 |
| 20642 | else |
| 20643 | cat >conftest.$ac_ext <<_ACEOF |
| 20644 | /* confdefs.h. */ |
| 20645 | _ACEOF |
| 20646 | cat confdefs.h >>conftest.$ac_ext |
| 20647 | cat >>conftest.$ac_ext <<_ACEOF |
| 20648 | /* end confdefs.h. */ |
| 20649 | $ac_includes_default |
| 20650 | |
| 20651 | #include <$ac_header> |
| 20652 | _ACEOF |
| 20653 | rm -f conftest.$ac_objext |
| 20654 | if { (ac_try="$ac_compile" |
| 20655 | case "(($ac_try" in |
| 20656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20657 | *) ac_try_echo=$ac_try;; |
| 20658 | esac |
| 20659 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20660 | $as_echo "$ac_try_echo") >&5 |
| 20661 | (eval "$ac_compile") 2>conftest.er1 |
| 20662 | ac_status=$? |
| 20663 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20664 | rm -f conftest.er1 |
| 20665 | cat conftest.err >&5 |
| 20666 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20667 | (exit $ac_status); } && { |
| 20668 | test -z "$ac_c_werror_flag" || |
| 20669 | test ! -s conftest.err |
| 20670 | } && test -s conftest.$ac_objext; then |
| 20671 | eval "$as_ac_Header=yes" |
| 20672 | else |
| 20673 | $as_echo "$as_me: failed program was:" >&5 |
| 20674 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20675 | |
| 20676 | eval "$as_ac_Header=no" |
| 20677 | fi |
| 20678 | |
| 20679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20680 | fi |
| 20681 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 20682 | $as_echo "$as_val"'` |
| 20683 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20684 | $as_echo "$ac_res" >&6; } |
| 20685 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 20686 | $as_echo "$as_val"'` |
| 20687 | if test "x$as_val" = x""yes; then |
| 20688 | cat >>confdefs.h <<_ACEOF |
| 20689 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 20690 | _ACEOF |
| 20691 | |
| 20692 | fi |
| 20693 | |
| 20694 | done |
| 20695 | |
| 20696 | |
| 20697 | |
| 20698 | |
| 20699 | |
| 20700 | for ac_func in closedir opendir readdir |
| 20701 | do |
| 20702 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20703 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20704 | $as_echo_n "checking for $ac_func... " >&6; } |
| 20705 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20706 | $as_echo_n "(cached) " >&6 |
| 20707 | else |
| 20708 | cat >conftest.$ac_ext <<_ACEOF |
| 20709 | /* confdefs.h. */ |
| 20710 | _ACEOF |
| 20711 | cat confdefs.h >>conftest.$ac_ext |
| 20712 | cat >>conftest.$ac_ext <<_ACEOF |
| 20713 | /* end confdefs.h. */ |
| 20714 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20715 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20716 | #define $ac_func innocuous_$ac_func |
| 20717 | |
| 20718 | /* System header to define __stub macros and hopefully few prototypes, |
| 20719 | which can conflict with char $ac_func (); below. |
| 20720 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20721 | <limits.h> exists even on freestanding compilers. */ |
| 20722 | |
| 20723 | #ifdef __STDC__ |
| 20724 | # include <limits.h> |
| 20725 | #else |
| 20726 | # include <assert.h> |
| 20727 | #endif |
| 20728 | |
| 20729 | #undef $ac_func |
| 20730 | |
| 20731 | /* Override any GCC internal prototype to avoid an error. |
| 20732 | Use char because int might match the return type of a GCC |
| 20733 | builtin and then its argument prototype would still apply. */ |
| 20734 | #ifdef __cplusplus |
| 20735 | extern "C" |
| 20736 | #endif |
| 20737 | char $ac_func (); |
| 20738 | /* The GNU C library defines this for functions which it implements |
| 20739 | to always fail with ENOSYS. Some functions are actually named |
| 20740 | something starting with __ and the normal name is an alias. */ |
| 20741 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20742 | choke me |
| 20743 | #endif |
| 20744 | |
| 20745 | int |
| 20746 | main () |
| 20747 | { |
| 20748 | return $ac_func (); |
| 20749 | ; |
| 20750 | return 0; |
| 20751 | } |
| 20752 | _ACEOF |
| 20753 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20754 | if { (ac_try="$ac_link" |
| 20755 | case "(($ac_try" in |
| 20756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20757 | *) ac_try_echo=$ac_try;; |
| 20758 | esac |
| 20759 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20760 | $as_echo "$ac_try_echo") >&5 |
| 20761 | (eval "$ac_link") 2>conftest.er1 |
| 20762 | ac_status=$? |
| 20763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20764 | rm -f conftest.er1 |
| 20765 | cat conftest.err >&5 |
| 20766 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20767 | (exit $ac_status); } && { |
| 20768 | test -z "$ac_c_werror_flag" || |
| 20769 | test ! -s conftest.err |
| 20770 | } && test -s conftest$ac_exeext && { |
| 20771 | test "$cross_compiling" = yes || |
| 20772 | $as_test_x conftest$ac_exeext |
| 20773 | }; then |
| 20774 | eval "$as_ac_var=yes" |
| 20775 | else |
| 20776 | $as_echo "$as_me: failed program was:" >&5 |
| 20777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20778 | |
| 20779 | eval "$as_ac_var=no" |
| 20780 | fi |
| 20781 | |
| 20782 | rm -rf conftest.dSYM |
| 20783 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20784 | conftest$ac_exeext conftest.$ac_ext |
| 20785 | fi |
| 20786 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 20787 | $as_echo "$as_val"'` |
| 20788 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20789 | $as_echo "$ac_res" >&6; } |
| 20790 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 20791 | $as_echo "$as_val"'` |
| 20792 | if test "x$as_val" = x""yes; then |
| 20793 | cat >>confdefs.h <<_ACEOF |
| 20794 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 20795 | _ACEOF |
| 20796 | |
| 20797 | else |
| 20798 | |
| 20799 | |
| 20800 | _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" |
| 20801 | |
| 20802 | fi |
| 20803 | done |
| 20804 | |
| 20805 | |
| 20806 | |
| 20807 | for ac_func in strlcat strlcpy |
| 20808 | do |
| 20809 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20810 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 20811 | $as_echo_n "checking for $ac_func... " >&6; } |
| 20812 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 20813 | $as_echo_n "(cached) " >&6 |
| 20814 | else |
| 20815 | cat >conftest.$ac_ext <<_ACEOF |
| 20816 | /* confdefs.h. */ |
| 20817 | _ACEOF |
| 20818 | cat confdefs.h >>conftest.$ac_ext |
| 20819 | cat >>conftest.$ac_ext <<_ACEOF |
| 20820 | /* end confdefs.h. */ |
| 20821 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 20822 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 20823 | #define $ac_func innocuous_$ac_func |
| 20824 | |
| 20825 | /* System header to define __stub macros and hopefully few prototypes, |
| 20826 | which can conflict with char $ac_func (); below. |
| 20827 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 20828 | <limits.h> exists even on freestanding compilers. */ |
| 20829 | |
| 20830 | #ifdef __STDC__ |
| 20831 | # include <limits.h> |
| 20832 | #else |
| 20833 | # include <assert.h> |
| 20834 | #endif |
| 20835 | |
| 20836 | #undef $ac_func |
| 20837 | |
| 20838 | /* Override any GCC internal prototype to avoid an error. |
| 20839 | Use char because int might match the return type of a GCC |
| 20840 | builtin and then its argument prototype would still apply. */ |
| 20841 | #ifdef __cplusplus |
| 20842 | extern "C" |
| 20843 | #endif |
| 20844 | char $ac_func (); |
| 20845 | /* The GNU C library defines this for functions which it implements |
| 20846 | to always fail with ENOSYS. Some functions are actually named |
| 20847 | something starting with __ and the normal name is an alias. */ |
| 20848 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 20849 | choke me |
| 20850 | #endif |
| 20851 | |
| 20852 | int |
| 20853 | main () |
| 20854 | { |
| 20855 | return $ac_func (); |
| 20856 | ; |
| 20857 | return 0; |
| 20858 | } |
| 20859 | _ACEOF |
| 20860 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20861 | if { (ac_try="$ac_link" |
| 20862 | case "(($ac_try" in |
| 20863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20864 | *) ac_try_echo=$ac_try;; |
| 20865 | esac |
| 20866 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 20867 | $as_echo "$ac_try_echo") >&5 |
| 20868 | (eval "$ac_link") 2>conftest.er1 |
| 20869 | ac_status=$? |
| 20870 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20871 | rm -f conftest.er1 |
| 20872 | cat conftest.err >&5 |
| 20873 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20874 | (exit $ac_status); } && { |
| 20875 | test -z "$ac_c_werror_flag" || |
| 20876 | test ! -s conftest.err |
| 20877 | } && test -s conftest$ac_exeext && { |
| 20878 | test "$cross_compiling" = yes || |
| 20879 | $as_test_x conftest$ac_exeext |
| 20880 | }; then |
| 20881 | eval "$as_ac_var=yes" |
| 20882 | else |
| 20883 | $as_echo "$as_me: failed program was:" >&5 |
| 20884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20885 | |
| 20886 | eval "$as_ac_var=no" |
| 20887 | fi |
| 20888 | |
| 20889 | rm -rf conftest.dSYM |
| 20890 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 20891 | conftest$ac_exeext conftest.$ac_ext |
| 20892 | fi |
| 20893 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 20894 | $as_echo "$as_val"'` |
| 20895 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 20896 | $as_echo "$ac_res" >&6; } |
| 20897 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 20898 | $as_echo "$as_val"'` |
| 20899 | if test "x$as_val" = x""yes; then |
| 20900 | cat >>confdefs.h <<_ACEOF |
| 20901 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 20902 | _ACEOF |
| 20903 | |
| 20904 | else |
| 20905 | |
| 20906 | |
| 20907 | _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" |
| 20908 | |
| 20909 | fi |
| 20910 | done |
| 20911 | |
| 20912 | |
| 20913 | |
| 20914 | cat >>confdefs.h <<_ACEOF |
| 20915 | #define LT_LIBEXT "$libext" |
| 20916 | _ACEOF |
| 20917 | |
| 20918 | |
| 20919 | name=ltdl |
| 20920 | LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""` |
| 20921 | |
| 20922 | |
| 20923 | |
| 20924 | |
| 20925 | |
| 20926 | |
| 20927 | |
| 20928 | |
| 20929 | # Only expand once: |
| 20930 | |
| 20931 | |
| 20932 | |
| 20933 | # Check to see if building shared libraries |
| 20934 | libtool_build_shared_libs='no' |
| 20935 | if test "$enable_shared" = 'yes'; then |
| 20936 | libtool_build_shared_libs='yes' |
| 20937 | fi |
| 20938 | |
| 20939 | # Check to see if building static libraries |
| 20940 | libtool_build_static_libs='no' |
| 20941 | if test "$enable_static" = 'yes'; then |
| 20942 | libtool_build_static_libs='yes' |
| 20943 | fi |
| 20944 | |
| 20945 | # MinGW and Cygwin can't build C++ DLLs which support exceptions. |
| 20946 | if test "${StaticCplusPlusLibraries}" = 'yes'; then |
| 20947 | LTCXXLIBOPTS='--static' |
| 20948 | |
| 20949 | fi |
| 20950 | |
| 20951 | # |
| 20952 | # Enable support for building loadable modules |
| 20953 | # |
| 20954 | |
| 20955 | # Check whether --with-modules was given. |
| 20956 | if test "${with_modules+set}" = set; then |
| 20957 | withval=$with_modules; with_modules=$withval |
| 20958 | else |
| 20959 | with_modules=$libtool_build_shared_libs |
| 20960 | fi |
| 20961 | |
| 20962 | |
| 20963 | # Only allow building loadable modules if we are building shared libraries |
| 20964 | if test "$with_modules" != 'no' ; then |
| 20965 | if test "$libtool_build_shared_libs" = 'no'; then |
| 20966 | { $as_echo "$as_me:$LINENO: WARNING: Modules may only be built if building shared libraries is enabled." >&5 |
| 20967 | $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;} |
| 20968 | with_modules='no' |
| 20969 | fi |
| 20970 | fi |
| 20971 | if test "$with_modules" != 'no'; then |
| 20972 | |
| 20973 | cat >>confdefs.h <<\_ACEOF |
| 20974 | #define BUILD_MODULES 1 |
| 20975 | _ACEOF |
| 20976 | |
| 20977 | fi |
| 20978 | if test "$with_modules" != 'no'; then |
| 20979 | WITH_MODULES_TRUE= |
| 20980 | WITH_MODULES_FALSE='#' |
| 20981 | else |
| 20982 | WITH_MODULES_TRUE='#' |
| 20983 | WITH_MODULES_FALSE= |
| 20984 | fi |
| 20985 | |
| 20986 | |
| 20987 | # Enable building/use of libltdl if we are building shared libraries regardless |
| 20988 | # of whether modules are built or not. |
| 20989 | with_ltdl='no' |
| 20990 | if test "$libtool_build_shared_libs" != 'no'; then |
| 20991 | with_ltdl='yes' |
| 20992 | fi |
| 20993 | |
| 20994 | if test "$with_ltdl" != 'no'; then |
| 20995 | WITH_LTDL_TRUE= |
| 20996 | WITH_LTDL_FALSE='#' |
| 20997 | else |
| 20998 | WITH_LTDL_TRUE='#' |
| 20999 | WITH_LTDL_FALSE= |
| 21000 | fi |
| 21001 | |
| 21002 | if test "$with_ltdl" != 'no'; then |
| 21003 | |
| 21004 | cat >>confdefs.h <<\_ACEOF |
| 21005 | #define LTDL_DELEGATE 1 |
| 21006 | _ACEOF |
| 21007 | |
| 21008 | |
| 21009 | # Set DLLDFLAGS |
| 21010 | if test X"$enable_shared" = Xyes; then |
| 21011 | DLLDFLAGS=-export-dynamic |
| 21012 | |
| 21013 | fi |
| 21014 | fi |
| 21015 | |
| 21016 | # Enable build using delegate libraries built in subdirectories rather than installed |
| 21017 | # delegate libraries (bzlib fftw fpx jp2 jbig jpeg lcms png tiff ttf wmf xml zlib) |
| 21018 | # Check whether --enable-delegate-build was given. |
| 21019 | if test "${enable_delegate_build+set}" = set; then |
| 21020 | enableval=$enable_delegate_build; enable_delegate_build=$enableval |
| 21021 | else |
| 21022 | enable_delegate_build='no' |
| 21023 | fi |
| 21024 | |
| 21025 | |
| 21026 | # Check whether --enable-deprecated was given. |
| 21027 | if test "${enable_deprecated+set}" = set; then |
| 21028 | enableval=$enable_deprecated; enable_deprecated=$enableval |
| 21029 | else |
| 21030 | enable_deprecated='no' |
| 21031 | fi |
| 21032 | |
| 21033 | |
| 21034 | if test "$enable_deprecated" = 'yes'; then |
| 21035 | |
| 21036 | cat >>confdefs.h <<\_ACEOF |
| 21037 | #define EXCLUDE_DEPRECATED 1 |
| 21038 | _ACEOF |
| 21039 | |
| 21040 | else |
| 21041 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated " |
| 21042 | fi |
| 21043 | |
| 21044 | # Build a version of ImageMagick which operates uninstalled. |
| 21045 | # Used to build distributions located via MAGICK_HOME / executable path |
| 21046 | # Check whether --enable-installed was given. |
| 21047 | if test "${enable_installed+set}" = set; then |
| 21048 | enableval=$enable_installed; enable_installed=$enableval |
| 21049 | else |
| 21050 | enable_installed='yes' |
| 21051 | fi |
| 21052 | |
| 21053 | |
| 21054 | if test "$enable_installed" = 'yes'; then |
| 21055 | |
| 21056 | cat >>confdefs.h <<\_ACEOF |
| 21057 | #define INSTALLED_SUPPORT 1 |
| 21058 | _ACEOF |
| 21059 | |
| 21060 | else |
| 21061 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed " |
| 21062 | fi |
| 21063 | |
| 21064 | # Permit enciphering and deciphering image pixels. |
| 21065 | # Check whether --enable-cipher was given. |
| 21066 | if test "${enable_cipher+set}" = set; then |
| 21067 | enableval=$enable_cipher; enable_cipher=$enableval |
| 21068 | else |
| 21069 | enable_cipher='yes' |
| 21070 | fi |
| 21071 | |
| 21072 | |
| 21073 | if test "$enable_cipher" = 'yes'; then |
| 21074 | |
| 21075 | cat >>confdefs.h <<\_ACEOF |
| 21076 | #define CIPHER_SUPPORT 1 |
| 21077 | _ACEOF |
| 21078 | |
| 21079 | fi |
| 21080 | |
| 21081 | # Build an embeddable version of ImageMagick. |
| 21082 | # Check whether --enable-embeddable was given. |
| 21083 | if test "${enable_embeddable+set}" = set; then |
| 21084 | enableval=$enable_embeddable; enable_embeddable=$enableval |
| 21085 | else |
| 21086 | enable_embeddable='no' |
| 21087 | fi |
| 21088 | |
| 21089 | |
| 21090 | if test "$enable_embeddable" = 'yes'; then |
| 21091 | |
| 21092 | cat >>confdefs.h <<\_ACEOF |
| 21093 | #define EMBEDDABLE_SUPPORT 1 |
| 21094 | _ACEOF |
| 21095 | |
| 21096 | fi |
| 21097 | |
| 21098 | # Build a high dynamic range version of ImageMagick. |
| 21099 | # Check whether --enable-hdri was given. |
| 21100 | if test "${enable_hdri+set}" = set; then |
| 21101 | enableval=$enable_hdri; enable_hdri=$enableval |
| 21102 | else |
| 21103 | enable_hdri='no' |
| 21104 | fi |
| 21105 | |
| 21106 | |
| 21107 | MAGICK_HDRI="" |
| 21108 | if test "$enable_hdri" = 'yes'; then |
| 21109 | MAGICK_HDRI="HDRI" |
| 21110 | |
| 21111 | cat >>confdefs.h <<\_ACEOF |
| 21112 | #define HDRI_SUPPORT 1 |
| 21113 | _ACEOF |
| 21114 | |
| 21115 | fi |
| 21116 | |
| 21117 | # Enable verbose output from libtool (enable libtool's default) |
| 21118 | # Check whether --enable-libtool-verbose was given. |
| 21119 | if test "${enable_libtool_verbose+set}" = set; then |
| 21120 | enableval=$enable_libtool_verbose; enable_libtool_verbose=$enableval |
| 21121 | else |
| 21122 | enable_libtool_verbose='no' |
| 21123 | fi |
| 21124 | |
| 21125 | |
| 21126 | if test "$enable_libtool_verbose" = 'no'; then |
| 21127 | LIBTOOL="$LIBTOOL --silent" |
| 21128 | fi |
| 21129 | |
| 21130 | # Build a version of ImageMagick with assert statements. |
| 21131 | # Check whether --enable-assert was given. |
| 21132 | if test "${enable_assert+set}" = set; then |
| 21133 | enableval=$enable_assert; enable_assert=$enableval |
| 21134 | else |
| 21135 | enable_assert='yes' |
| 21136 | fi |
| 21137 | |
| 21138 | |
| 21139 | if test "$enable_assert" = 'no'; then |
| 21140 | |
| 21141 | cat >>confdefs.h <<\_ACEOF |
| 21142 | #define NDEBUG 1 |
| 21143 | _ACEOF |
| 21144 | |
| 21145 | fi |
| 21146 | |
| 21147 | # Add configure option --enable-maintainer-mode which enables dependency |
| 21148 | # checking and generation useful to package maintainers. This is made an |
| 21149 | # option to avoid confusing end users. |
| 21150 | |
| 21151 | { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 21152 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 21153 | # Check whether --enable-maintainer-mode was given. |
| 21154 | if test "${enable_maintainer_mode+set}" = set; then |
| 21155 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 21156 | else |
| 21157 | USE_MAINTAINER_MODE=no |
| 21158 | fi |
| 21159 | |
| 21160 | { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
| 21161 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 21162 | if test $USE_MAINTAINER_MODE = yes; then |
| 21163 | MAINTAINER_MODE_TRUE= |
| 21164 | MAINTAINER_MODE_FALSE='#' |
| 21165 | else |
| 21166 | MAINTAINER_MODE_TRUE='#' |
| 21167 | MAINTAINER_MODE_FALSE= |
| 21168 | fi |
| 21169 | |
| 21170 | MAINT=$MAINTAINER_MODE_TRUE |
| 21171 | |
| 21172 | |
| 21173 | |
| 21174 | |
| 21175 | # Enable ccmalloc memory debugging support |
| 21176 | # Check whether --enable-ccmalloc was given. |
| 21177 | if test "${enable_ccmalloc+set}" = set; then |
| 21178 | enableval=$enable_ccmalloc; enable_ccmalloc=$enableval |
| 21179 | else |
| 21180 | enable_ccmalloc='no' |
| 21181 | fi |
| 21182 | |
| 21183 | |
| 21184 | # Enable Electric Fence memory debugging support |
| 21185 | # Check whether --enable-efence was given. |
| 21186 | if test "${enable_efence+set}" = set; then |
| 21187 | enableval=$enable_efence; enable_efence=$enableval |
| 21188 | else |
| 21189 | enable_efence='no' |
| 21190 | fi |
| 21191 | |
| 21192 | |
| 21193 | # Enable prof-based profiling support |
| 21194 | # Check whether --enable-prof was given. |
| 21195 | if test "${enable_prof+set}" = set; then |
| 21196 | enableval=$enable_prof; enable_prof=$enableval |
| 21197 | else |
| 21198 | enable_prof='no' |
| 21199 | fi |
| 21200 | |
| 21201 | |
| 21202 | # Enable gprof-based profiling support |
| 21203 | # Check whether --enable-gprof was given. |
| 21204 | if test "${enable_gprof+set}" = set; then |
| 21205 | enableval=$enable_gprof; enable_gprof=$enableval |
| 21206 | else |
| 21207 | enable_gprof='no' |
| 21208 | fi |
| 21209 | |
| 21210 | |
| 21211 | # Enable gcov-based profiling support |
| 21212 | # Check whether --enable-gcov was given. |
| 21213 | if test "${enable_gcov+set}" = set; then |
| 21214 | enableval=$enable_gcov; enable_gcov=$enableval |
| 21215 | else |
| 21216 | enable_gcov='no' |
| 21217 | fi |
| 21218 | |
| 21219 | |
| 21220 | enable_profiling='no' |
| 21221 | if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then |
| 21222 | enable_profiling='yes' |
| 21223 | if test "$libtool_build_shared_libs" = 'yes'; then |
| 21224 | echo "Warning: Can not profile code using shared libraries" |
| 21225 | fi |
| 21226 | fi |
| 21227 | |
| 21228 | # Magick API method prefix |
| 21229 | |
| 21230 | # Check whether --with-method-prefix was given. |
| 21231 | if test "${with_method_prefix+set}" = set; then |
| 21232 | withval=$with_method_prefix; with_method_prefix=$enableval |
| 21233 | else |
| 21234 | with_method_prefix='' |
| 21235 | fi |
| 21236 | |
| 21237 | |
| 21238 | if test "$with_method_prefix" != ''; then |
| 21239 | |
| 21240 | cat >>confdefs.h <<_ACEOF |
| 21241 | #define NAMESPACE_PREFIX $with_method_prefix |
| 21242 | _ACEOF |
| 21243 | |
| 21244 | fi |
| 21245 | |
| 21246 | # Number of bits in a Quantum |
| 21247 | |
| 21248 | # Check whether --with-quantum-depth was given. |
| 21249 | if test "${with_quantum_depth+set}" = set; then |
| 21250 | withval=$with_quantum_depth; with_quantum_depth=$withval |
| 21251 | else |
| 21252 | with_quantum_depth=16 |
| 21253 | fi |
| 21254 | |
| 21255 | |
| 21256 | if test "$with_quantum_depth" != '8'; then |
| 21257 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth " |
| 21258 | fi |
| 21259 | |
| 21260 | case "${with_quantum_depth}" in |
| 21261 | 8 ) ;; |
| 21262 | 16 ) ;; |
| 21263 | 32 ) ;; |
| 21264 | 64 ) ;; |
| 21265 | * ) { { $as_echo "$as_me:$LINENO: error: \"Pixel quantum depth must have value of 8" >&5 |
| 21266 | $as_echo "$as_me: error: \"Pixel quantum depth must have value of 8" >&2;} |
| 21267 | { (exit 16); exit 16; }; } ;; |
| 21268 | esac |
| 21269 | QUANTUM_DEPTH="$with_quantum_depth" |
| 21270 | |
| 21271 | cat >>confdefs.h <<_ACEOF |
| 21272 | #define QUANTUM_DEPTH $QUANTUM_DEPTH |
| 21273 | _ACEOF |
| 21274 | |
| 21275 | |
| 21276 | # Set pixel cache threshold |
| 21277 | |
| 21278 | # Check whether --with-cache was given. |
| 21279 | if test "${with_cache+set}" = set; then |
| 21280 | withval=$with_cache; with_cache=$withval |
| 21281 | else |
| 21282 | with_cache='' |
| 21283 | fi |
| 21284 | |
| 21285 | |
| 21286 | if test "$with_cache" != ''; then |
| 21287 | |
| 21288 | cat >>confdefs.h <<_ACEOF |
| 21289 | #define PixelCacheThreshold $with_cache |
| 21290 | _ACEOF |
| 21291 | |
| 21292 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache " |
| 21293 | fi |
| 21294 | |
| 21295 | # Disable/Enable support for full delegate paths |
| 21296 | |
| 21297 | # Check whether --with-frozenpaths was given. |
| 21298 | if test "${with_frozenpaths+set}" = set; then |
| 21299 | withval=$with_frozenpaths; with_frozenpaths=$withval |
| 21300 | else |
| 21301 | with_frozenpaths='no' |
| 21302 | fi |
| 21303 | |
| 21304 | |
| 21305 | # Enable build/install of Magick++ |
| 21306 | |
| 21307 | # Check whether --with-magick-plus-plus was given. |
| 21308 | if test "${with_magick_plus_plus+set}" = set; then |
| 21309 | withval=$with_magick_plus_plus; with_magick_plus_plus=$withval |
| 21310 | else |
| 21311 | with_magick_plus_plus='yes' |
| 21312 | fi |
| 21313 | |
| 21314 | |
| 21315 | # Disable build/install of PerlMagick. |
| 21316 | |
| 21317 | # Check whether --with-perl was given. |
| 21318 | if test "${with_perl+set}" = set; then |
| 21319 | withval=$with_perl; with_perl=$withval |
| 21320 | else |
| 21321 | with_perl=$libtool_build_shared_libs |
| 21322 | fi |
| 21323 | |
| 21324 | |
| 21325 | # Options to pass when configuring PerlMagick |
| 21326 | |
| 21327 | # Check whether --with-perl-options was given. |
| 21328 | if test "${with_perl_options+set}" = set; then |
| 21329 | withval=$with_perl_options; |
| 21330 | fi |
| 21331 | |
| 21332 | |
| 21333 | PERL_MAKE_OPTIONS=$with_perl_options |
| 21334 | |
| 21335 | |
| 21336 | |
| 21337 | # Enable umem, object-caching memory allocation library. |
| 21338 | |
| 21339 | # Check whether --with-umem was given. |
| 21340 | if test "${with_umem+set}" = set; then |
| 21341 | withval=$with_umem; with_umem=$withval |
| 21342 | else |
| 21343 | with_umem='no' |
| 21344 | fi |
| 21345 | |
| 21346 | if test "$with_umem" != 'yes' ; then |
| 21347 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem " |
| 21348 | fi |
| 21349 | |
| 21350 | # |
| 21351 | # Specify path to shared libstdc++ if not in normal location |
| 21352 | # |
| 21353 | |
| 21354 | # Check whether --with-libstdc was given. |
| 21355 | if test "${with_libstdc+set}" = set; then |
| 21356 | withval=$with_libstdc; with_libstdc=$withval |
| 21357 | else |
| 21358 | with_libstdc='' |
| 21359 | fi |
| 21360 | |
| 21361 | |
| 21362 | if test "$with_libstdc" != ''; then |
| 21363 | if test -d "$with_libstdc"; then |
| 21364 | LIBSTDCLDFLAGS="-L$with_libstdc" |
| 21365 | fi |
| 21366 | fi |
| 21367 | |
| 21368 | |
| 21369 | # Does gcc required -traditional? |
| 21370 | if test $ac_cv_c_compiler_gnu = yes; then |
| 21371 | { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
| 21372 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
| 21373 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
| 21374 | $as_echo_n "(cached) " >&6 |
| 21375 | else |
| 21376 | ac_pattern="Autoconf.*'x'" |
| 21377 | cat >conftest.$ac_ext <<_ACEOF |
| 21378 | /* confdefs.h. */ |
| 21379 | _ACEOF |
| 21380 | cat confdefs.h >>conftest.$ac_ext |
| 21381 | cat >>conftest.$ac_ext <<_ACEOF |
| 21382 | /* end confdefs.h. */ |
| 21383 | #include <sgtty.h> |
| 21384 | Autoconf TIOCGETP |
| 21385 | _ACEOF |
| 21386 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 21387 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
| 21388 | ac_cv_prog_gcc_traditional=yes |
| 21389 | else |
| 21390 | ac_cv_prog_gcc_traditional=no |
| 21391 | fi |
| 21392 | rm -f conftest* |
| 21393 | |
| 21394 | |
| 21395 | if test $ac_cv_prog_gcc_traditional = no; then |
| 21396 | cat >conftest.$ac_ext <<_ACEOF |
| 21397 | /* confdefs.h. */ |
| 21398 | _ACEOF |
| 21399 | cat confdefs.h >>conftest.$ac_ext |
| 21400 | cat >>conftest.$ac_ext <<_ACEOF |
| 21401 | /* end confdefs.h. */ |
| 21402 | #include <termio.h> |
| 21403 | Autoconf TCGETA |
| 21404 | _ACEOF |
| 21405 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 21406 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
| 21407 | ac_cv_prog_gcc_traditional=yes |
| 21408 | fi |
| 21409 | rm -f conftest* |
| 21410 | |
| 21411 | fi |
| 21412 | fi |
| 21413 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
| 21414 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
| 21415 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 21416 | CC="$CC -traditional" |
| 21417 | fi |
| 21418 | fi |
| 21419 | |
| 21420 | |
| 21421 | ######## |
| 21422 | # |
| 21423 | # Set defines required to build DLLs and modules using MinGW |
| 21424 | # |
| 21425 | ######## |
| 21426 | # These options are set for multi-thread DLL module build |
| 21427 | # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_ |
| 21428 | # module: _DLL |
| 21429 | # executable/Magick++: _DLL _MAGICKMOD_ |
| 21430 | MODULE_EXTRA_CPPFLAGS='' |
| 21431 | LIBRARY_EXTRA_CPPFLAGS='' |
| 21432 | if test "${native_win32_build}" = 'yes'; then |
| 21433 | if test "${libtool_build_shared_libs}" = 'yes'; then |
| 21434 | CPPFLAGS="$CPPFLAGS -D_DLL" |
| 21435 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL" |
| 21436 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL" |
| 21437 | LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_" |
| 21438 | if test "$with_modules" = 'yes'; then |
| 21439 | LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_" |
| 21440 | else |
| 21441 | MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_" |
| 21442 | fi |
| 21443 | else |
| 21444 | CPPFLAGS="$CPPFLAGS -D_LIB" |
| 21445 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB" |
| 21446 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB" |
| 21447 | fi |
| 21448 | if test "$with_threads" = 'yes'; then |
| 21449 | CPPFLAGS="$CPPFLAGS -D_MT" |
| 21450 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT" |
| 21451 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT" |
| 21452 | fi |
| 21453 | fi |
| 21454 | |
| 21455 | |
| 21456 | |
| 21457 | # Check standard headers |
| 21458 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 21459 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 21460 | if test "${ac_cv_header_stdc+set}" = set; then |
| 21461 | $as_echo_n "(cached) " >&6 |
| 21462 | else |
| 21463 | cat >conftest.$ac_ext <<_ACEOF |
| 21464 | /* confdefs.h. */ |
| 21465 | _ACEOF |
| 21466 | cat confdefs.h >>conftest.$ac_ext |
| 21467 | cat >>conftest.$ac_ext <<_ACEOF |
| 21468 | /* end confdefs.h. */ |
| 21469 | #include <stdlib.h> |
| 21470 | #include <stdarg.h> |
| 21471 | #include <string.h> |
| 21472 | #include <float.h> |
| 21473 | |
| 21474 | int |
| 21475 | main () |
| 21476 | { |
| 21477 | |
| 21478 | ; |
| 21479 | return 0; |
| 21480 | } |
| 21481 | _ACEOF |
| 21482 | rm -f conftest.$ac_objext |
| 21483 | if { (ac_try="$ac_compile" |
| 21484 | case "(($ac_try" in |
| 21485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21486 | *) ac_try_echo=$ac_try;; |
| 21487 | esac |
| 21488 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21489 | $as_echo "$ac_try_echo") >&5 |
| 21490 | (eval "$ac_compile") 2>conftest.er1 |
| 21491 | ac_status=$? |
| 21492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21493 | rm -f conftest.er1 |
| 21494 | cat conftest.err >&5 |
| 21495 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21496 | (exit $ac_status); } && { |
| 21497 | test -z "$ac_c_werror_flag" || |
| 21498 | test ! -s conftest.err |
| 21499 | } && test -s conftest.$ac_objext; then |
| 21500 | ac_cv_header_stdc=yes |
| 21501 | else |
| 21502 | $as_echo "$as_me: failed program was:" >&5 |
| 21503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21504 | |
| 21505 | ac_cv_header_stdc=no |
| 21506 | fi |
| 21507 | |
| 21508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21509 | |
| 21510 | if test $ac_cv_header_stdc = yes; then |
| 21511 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 21512 | cat >conftest.$ac_ext <<_ACEOF |
| 21513 | /* confdefs.h. */ |
| 21514 | _ACEOF |
| 21515 | cat confdefs.h >>conftest.$ac_ext |
| 21516 | cat >>conftest.$ac_ext <<_ACEOF |
| 21517 | /* end confdefs.h. */ |
| 21518 | #include <string.h> |
| 21519 | |
| 21520 | _ACEOF |
| 21521 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 21522 | $EGREP "memchr" >/dev/null 2>&1; then |
| 21523 | : |
| 21524 | else |
| 21525 | ac_cv_header_stdc=no |
| 21526 | fi |
| 21527 | rm -f conftest* |
| 21528 | |
| 21529 | fi |
| 21530 | |
| 21531 | if test $ac_cv_header_stdc = yes; then |
| 21532 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 21533 | cat >conftest.$ac_ext <<_ACEOF |
| 21534 | /* confdefs.h. */ |
| 21535 | _ACEOF |
| 21536 | cat confdefs.h >>conftest.$ac_ext |
| 21537 | cat >>conftest.$ac_ext <<_ACEOF |
| 21538 | /* end confdefs.h. */ |
| 21539 | #include <stdlib.h> |
| 21540 | |
| 21541 | _ACEOF |
| 21542 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 21543 | $EGREP "free" >/dev/null 2>&1; then |
| 21544 | : |
| 21545 | else |
| 21546 | ac_cv_header_stdc=no |
| 21547 | fi |
| 21548 | rm -f conftest* |
| 21549 | |
| 21550 | fi |
| 21551 | |
| 21552 | if test $ac_cv_header_stdc = yes; then |
| 21553 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 21554 | if test "$cross_compiling" = yes; then |
| 21555 | : |
| 21556 | else |
| 21557 | cat >conftest.$ac_ext <<_ACEOF |
| 21558 | /* confdefs.h. */ |
| 21559 | _ACEOF |
| 21560 | cat confdefs.h >>conftest.$ac_ext |
| 21561 | cat >>conftest.$ac_ext <<_ACEOF |
| 21562 | /* end confdefs.h. */ |
| 21563 | #include <ctype.h> |
| 21564 | #include <stdlib.h> |
| 21565 | #if ((' ' & 0x0FF) == 0x020) |
| 21566 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 21567 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 21568 | #else |
| 21569 | # define ISLOWER(c) \ |
| 21570 | (('a' <= (c) && (c) <= 'i') \ |
| 21571 | || ('j' <= (c) && (c) <= 'r') \ |
| 21572 | || ('s' <= (c) && (c) <= 'z')) |
| 21573 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 21574 | #endif |
| 21575 | |
| 21576 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 21577 | int |
| 21578 | main () |
| 21579 | { |
| 21580 | int i; |
| 21581 | for (i = 0; i < 256; i++) |
| 21582 | if (XOR (islower (i), ISLOWER (i)) |
| 21583 | || toupper (i) != TOUPPER (i)) |
| 21584 | return 2; |
| 21585 | return 0; |
| 21586 | } |
| 21587 | _ACEOF |
| 21588 | rm -f conftest$ac_exeext |
| 21589 | if { (ac_try="$ac_link" |
| 21590 | case "(($ac_try" in |
| 21591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21592 | *) ac_try_echo=$ac_try;; |
| 21593 | esac |
| 21594 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21595 | $as_echo "$ac_try_echo") >&5 |
| 21596 | (eval "$ac_link") 2>&5 |
| 21597 | ac_status=$? |
| 21598 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21599 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21600 | { (case "(($ac_try" in |
| 21601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21602 | *) ac_try_echo=$ac_try;; |
| 21603 | esac |
| 21604 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21605 | $as_echo "$ac_try_echo") >&5 |
| 21606 | (eval "$ac_try") 2>&5 |
| 21607 | ac_status=$? |
| 21608 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21609 | (exit $ac_status); }; }; then |
| 21610 | : |
| 21611 | else |
| 21612 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 21613 | $as_echo "$as_me: failed program was:" >&5 |
| 21614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21615 | |
| 21616 | ( exit $ac_status ) |
| 21617 | ac_cv_header_stdc=no |
| 21618 | fi |
| 21619 | rm -rf conftest.dSYM |
| 21620 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 21621 | fi |
| 21622 | |
| 21623 | |
| 21624 | fi |
| 21625 | fi |
| 21626 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 21627 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 21628 | if test $ac_cv_header_stdc = yes; then |
| 21629 | |
| 21630 | cat >>confdefs.h <<\_ACEOF |
| 21631 | #define STDC_HEADERS 1 |
| 21632 | _ACEOF |
| 21633 | |
| 21634 | fi |
| 21635 | |
| 21636 | if ! test x"$ac_cv_header_stdc" = x"yes"; then |
| 21637 | { $as_echo "$as_me:$LINENO: WARNING: configure has detected that you do not have the ANSI standard C |
| 21638 | header files. Compilation cannot proceed. Please install the ANSI C |
| 21639 | headers and rerun this script." >&5 |
| 21640 | $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C |
| 21641 | header files. Compilation cannot proceed. Please install the ANSI C |
| 21642 | headers and rerun this script." >&2;}; |
| 21643 | fi |
| 21644 | |
| 21645 | |
| 21646 | |
| 21647 | |
| 21648 | |
| 21649 | ac_header_dirent=no |
| 21650 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 21651 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 21652 | { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 21653 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
| 21654 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21655 | $as_echo_n "(cached) " >&6 |
| 21656 | else |
| 21657 | cat >conftest.$ac_ext <<_ACEOF |
| 21658 | /* confdefs.h. */ |
| 21659 | _ACEOF |
| 21660 | cat confdefs.h >>conftest.$ac_ext |
| 21661 | cat >>conftest.$ac_ext <<_ACEOF |
| 21662 | /* end confdefs.h. */ |
| 21663 | #include <sys/types.h> |
| 21664 | #include <$ac_hdr> |
| 21665 | |
| 21666 | int |
| 21667 | main () |
| 21668 | { |
| 21669 | if ((DIR *) 0) |
| 21670 | return 0; |
| 21671 | ; |
| 21672 | return 0; |
| 21673 | } |
| 21674 | _ACEOF |
| 21675 | rm -f conftest.$ac_objext |
| 21676 | if { (ac_try="$ac_compile" |
| 21677 | case "(($ac_try" in |
| 21678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21679 | *) ac_try_echo=$ac_try;; |
| 21680 | esac |
| 21681 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21682 | $as_echo "$ac_try_echo") >&5 |
| 21683 | (eval "$ac_compile") 2>conftest.er1 |
| 21684 | ac_status=$? |
| 21685 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21686 | rm -f conftest.er1 |
| 21687 | cat conftest.err >&5 |
| 21688 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21689 | (exit $ac_status); } && { |
| 21690 | test -z "$ac_c_werror_flag" || |
| 21691 | test ! -s conftest.err |
| 21692 | } && test -s conftest.$ac_objext; then |
| 21693 | eval "$as_ac_Header=yes" |
| 21694 | else |
| 21695 | $as_echo "$as_me: failed program was:" >&5 |
| 21696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21697 | |
| 21698 | eval "$as_ac_Header=no" |
| 21699 | fi |
| 21700 | |
| 21701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21702 | fi |
| 21703 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 21704 | $as_echo "$as_val"'` |
| 21705 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21706 | $as_echo "$ac_res" >&6; } |
| 21707 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 21708 | $as_echo "$as_val"'` |
| 21709 | if test "x$as_val" = x""yes; then |
| 21710 | cat >>confdefs.h <<_ACEOF |
| 21711 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 21712 | _ACEOF |
| 21713 | |
| 21714 | ac_header_dirent=$ac_hdr; break |
| 21715 | fi |
| 21716 | |
| 21717 | done |
| 21718 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 21719 | if test $ac_header_dirent = dirent.h; then |
| 21720 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 21721 | $as_echo_n "checking for library containing opendir... " >&6; } |
| 21722 | if test "${ac_cv_search_opendir+set}" = set; then |
| 21723 | $as_echo_n "(cached) " >&6 |
| 21724 | else |
| 21725 | ac_func_search_save_LIBS=$LIBS |
| 21726 | cat >conftest.$ac_ext <<_ACEOF |
| 21727 | /* confdefs.h. */ |
| 21728 | _ACEOF |
| 21729 | cat confdefs.h >>conftest.$ac_ext |
| 21730 | cat >>conftest.$ac_ext <<_ACEOF |
| 21731 | /* end confdefs.h. */ |
| 21732 | |
| 21733 | /* Override any GCC internal prototype to avoid an error. |
| 21734 | Use char because int might match the return type of a GCC |
| 21735 | builtin and then its argument prototype would still apply. */ |
| 21736 | #ifdef __cplusplus |
| 21737 | extern "C" |
| 21738 | #endif |
| 21739 | char opendir (); |
| 21740 | int |
| 21741 | main () |
| 21742 | { |
| 21743 | return opendir (); |
| 21744 | ; |
| 21745 | return 0; |
| 21746 | } |
| 21747 | _ACEOF |
| 21748 | for ac_lib in '' dir; do |
| 21749 | if test -z "$ac_lib"; then |
| 21750 | ac_res="none required" |
| 21751 | else |
| 21752 | ac_res=-l$ac_lib |
| 21753 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 21754 | fi |
| 21755 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21756 | if { (ac_try="$ac_link" |
| 21757 | case "(($ac_try" in |
| 21758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21759 | *) ac_try_echo=$ac_try;; |
| 21760 | esac |
| 21761 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21762 | $as_echo "$ac_try_echo") >&5 |
| 21763 | (eval "$ac_link") 2>conftest.er1 |
| 21764 | ac_status=$? |
| 21765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21766 | rm -f conftest.er1 |
| 21767 | cat conftest.err >&5 |
| 21768 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21769 | (exit $ac_status); } && { |
| 21770 | test -z "$ac_c_werror_flag" || |
| 21771 | test ! -s conftest.err |
| 21772 | } && test -s conftest$ac_exeext && { |
| 21773 | test "$cross_compiling" = yes || |
| 21774 | $as_test_x conftest$ac_exeext |
| 21775 | }; then |
| 21776 | ac_cv_search_opendir=$ac_res |
| 21777 | else |
| 21778 | $as_echo "$as_me: failed program was:" >&5 |
| 21779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21780 | |
| 21781 | |
| 21782 | fi |
| 21783 | |
| 21784 | rm -rf conftest.dSYM |
| 21785 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 21786 | conftest$ac_exeext |
| 21787 | if test "${ac_cv_search_opendir+set}" = set; then |
| 21788 | break |
| 21789 | fi |
| 21790 | done |
| 21791 | if test "${ac_cv_search_opendir+set}" = set; then |
| 21792 | : |
| 21793 | else |
| 21794 | ac_cv_search_opendir=no |
| 21795 | fi |
| 21796 | rm conftest.$ac_ext |
| 21797 | LIBS=$ac_func_search_save_LIBS |
| 21798 | fi |
| 21799 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 21800 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 21801 | ac_res=$ac_cv_search_opendir |
| 21802 | if test "$ac_res" != no; then |
| 21803 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 21804 | |
| 21805 | fi |
| 21806 | |
| 21807 | else |
| 21808 | { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 21809 | $as_echo_n "checking for library containing opendir... " >&6; } |
| 21810 | if test "${ac_cv_search_opendir+set}" = set; then |
| 21811 | $as_echo_n "(cached) " >&6 |
| 21812 | else |
| 21813 | ac_func_search_save_LIBS=$LIBS |
| 21814 | cat >conftest.$ac_ext <<_ACEOF |
| 21815 | /* confdefs.h. */ |
| 21816 | _ACEOF |
| 21817 | cat confdefs.h >>conftest.$ac_ext |
| 21818 | cat >>conftest.$ac_ext <<_ACEOF |
| 21819 | /* end confdefs.h. */ |
| 21820 | |
| 21821 | /* Override any GCC internal prototype to avoid an error. |
| 21822 | Use char because int might match the return type of a GCC |
| 21823 | builtin and then its argument prototype would still apply. */ |
| 21824 | #ifdef __cplusplus |
| 21825 | extern "C" |
| 21826 | #endif |
| 21827 | char opendir (); |
| 21828 | int |
| 21829 | main () |
| 21830 | { |
| 21831 | return opendir (); |
| 21832 | ; |
| 21833 | return 0; |
| 21834 | } |
| 21835 | _ACEOF |
| 21836 | for ac_lib in '' x; do |
| 21837 | if test -z "$ac_lib"; then |
| 21838 | ac_res="none required" |
| 21839 | else |
| 21840 | ac_res=-l$ac_lib |
| 21841 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 21842 | fi |
| 21843 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21844 | if { (ac_try="$ac_link" |
| 21845 | case "(($ac_try" in |
| 21846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21847 | *) ac_try_echo=$ac_try;; |
| 21848 | esac |
| 21849 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21850 | $as_echo "$ac_try_echo") >&5 |
| 21851 | (eval "$ac_link") 2>conftest.er1 |
| 21852 | ac_status=$? |
| 21853 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21854 | rm -f conftest.er1 |
| 21855 | cat conftest.err >&5 |
| 21856 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21857 | (exit $ac_status); } && { |
| 21858 | test -z "$ac_c_werror_flag" || |
| 21859 | test ! -s conftest.err |
| 21860 | } && test -s conftest$ac_exeext && { |
| 21861 | test "$cross_compiling" = yes || |
| 21862 | $as_test_x conftest$ac_exeext |
| 21863 | }; then |
| 21864 | ac_cv_search_opendir=$ac_res |
| 21865 | else |
| 21866 | $as_echo "$as_me: failed program was:" >&5 |
| 21867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21868 | |
| 21869 | |
| 21870 | fi |
| 21871 | |
| 21872 | rm -rf conftest.dSYM |
| 21873 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 21874 | conftest$ac_exeext |
| 21875 | if test "${ac_cv_search_opendir+set}" = set; then |
| 21876 | break |
| 21877 | fi |
| 21878 | done |
| 21879 | if test "${ac_cv_search_opendir+set}" = set; then |
| 21880 | : |
| 21881 | else |
| 21882 | ac_cv_search_opendir=no |
| 21883 | fi |
| 21884 | rm conftest.$ac_ext |
| 21885 | LIBS=$ac_func_search_save_LIBS |
| 21886 | fi |
| 21887 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 21888 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 21889 | ac_res=$ac_cv_search_opendir |
| 21890 | if test "$ac_res" != no; then |
| 21891 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 21892 | |
| 21893 | fi |
| 21894 | |
| 21895 | fi |
| 21896 | |
| 21897 | |
| 21898 | # Check additional headers |
| 21899 | |
| 21900 | |
| 21901 | |
| 21902 | |
| 21903 | |
| 21904 | |
| 21905 | |
| 21906 | |
| 21907 | |
| 21908 | |
| 21909 | |
| 21910 | |
| 21911 | |
| 21912 | |
| 21913 | |
| 21914 | |
| 21915 | |
| 21916 | |
| 21917 | |
| 21918 | |
| 21919 | |
| 21920 | |
| 21921 | |
| 21922 | |
| 21923 | |
| 21924 | for ac_header in arm/limits.h complex.h errno.h fcntl.h inttypes.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h stdarg.h stddef.h string.h strings.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/wait.h unistd.h wchar.h |
| 21925 | do |
| 21926 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21927 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21928 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 21929 | $as_echo_n "checking for $ac_header... " >&6; } |
| 21930 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 21931 | $as_echo_n "(cached) " >&6 |
| 21932 | fi |
| 21933 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 21934 | $as_echo "$as_val"'` |
| 21935 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 21936 | $as_echo "$ac_res" >&6; } |
| 21937 | else |
| 21938 | # Is the header compilable? |
| 21939 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 21940 | $as_echo_n "checking $ac_header usability... " >&6; } |
| 21941 | cat >conftest.$ac_ext <<_ACEOF |
| 21942 | /* confdefs.h. */ |
| 21943 | _ACEOF |
| 21944 | cat confdefs.h >>conftest.$ac_ext |
| 21945 | cat >>conftest.$ac_ext <<_ACEOF |
| 21946 | /* end confdefs.h. */ |
| 21947 | $ac_includes_default |
| 21948 | #include <$ac_header> |
| 21949 | _ACEOF |
| 21950 | rm -f conftest.$ac_objext |
| 21951 | if { (ac_try="$ac_compile" |
| 21952 | case "(($ac_try" in |
| 21953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21954 | *) ac_try_echo=$ac_try;; |
| 21955 | esac |
| 21956 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21957 | $as_echo "$ac_try_echo") >&5 |
| 21958 | (eval "$ac_compile") 2>conftest.er1 |
| 21959 | ac_status=$? |
| 21960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21961 | rm -f conftest.er1 |
| 21962 | cat conftest.err >&5 |
| 21963 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21964 | (exit $ac_status); } && { |
| 21965 | test -z "$ac_c_werror_flag" || |
| 21966 | test ! -s conftest.err |
| 21967 | } && test -s conftest.$ac_objext; then |
| 21968 | ac_header_compiler=yes |
| 21969 | else |
| 21970 | $as_echo "$as_me: failed program was:" >&5 |
| 21971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21972 | |
| 21973 | ac_header_compiler=no |
| 21974 | fi |
| 21975 | |
| 21976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21977 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 21978 | $as_echo "$ac_header_compiler" >&6; } |
| 21979 | |
| 21980 | # Is the header present? |
| 21981 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 21982 | $as_echo_n "checking $ac_header presence... " >&6; } |
| 21983 | cat >conftest.$ac_ext <<_ACEOF |
| 21984 | /* confdefs.h. */ |
| 21985 | _ACEOF |
| 21986 | cat confdefs.h >>conftest.$ac_ext |
| 21987 | cat >>conftest.$ac_ext <<_ACEOF |
| 21988 | /* end confdefs.h. */ |
| 21989 | #include <$ac_header> |
| 21990 | _ACEOF |
| 21991 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 21992 | case "(($ac_try" in |
| 21993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21994 | *) ac_try_echo=$ac_try;; |
| 21995 | esac |
| 21996 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 21997 | $as_echo "$ac_try_echo") >&5 |
| 21998 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 21999 | ac_status=$? |
| 22000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22001 | rm -f conftest.er1 |
| 22002 | cat conftest.err >&5 |
| 22003 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22004 | (exit $ac_status); } >/dev/null && { |
| 22005 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 22006 | test ! -s conftest.err |
| 22007 | }; then |
| 22008 | ac_header_preproc=yes |
| 22009 | else |
| 22010 | $as_echo "$as_me: failed program was:" >&5 |
| 22011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22012 | |
| 22013 | ac_header_preproc=no |
| 22014 | fi |
| 22015 | |
| 22016 | rm -f conftest.err conftest.$ac_ext |
| 22017 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 22018 | $as_echo "$ac_header_preproc" >&6; } |
| 22019 | |
| 22020 | # So? What about this header? |
| 22021 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 22022 | yes:no: ) |
| 22023 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 22024 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 22025 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 22026 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 22027 | ac_header_preproc=yes |
| 22028 | ;; |
| 22029 | no:yes:* ) |
| 22030 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 22031 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 22032 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 22033 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 22034 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 22035 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 22036 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 22037 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 22038 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 22039 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 22040 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 22041 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 22042 | ( cat <<\_ASBOX |
| 22043 | ## ----------------------------------------- ## |
| 22044 | ## Report this to http://www.imagemagick.org ## |
| 22045 | ## ----------------------------------------- ## |
| 22046 | _ASBOX |
| 22047 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 22048 | ;; |
| 22049 | esac |
| 22050 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 22051 | $as_echo_n "checking for $ac_header... " >&6; } |
| 22052 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 22053 | $as_echo_n "(cached) " >&6 |
| 22054 | else |
| 22055 | eval "$as_ac_Header=\$ac_header_preproc" |
| 22056 | fi |
| 22057 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 22058 | $as_echo "$as_val"'` |
| 22059 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 22060 | $as_echo "$ac_res" >&6; } |
| 22061 | |
| 22062 | fi |
| 22063 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 22064 | $as_echo "$as_val"'` |
| 22065 | if test "x$as_val" = x""yes; then |
| 22066 | cat >>confdefs.h <<_ACEOF |
| 22067 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 22068 | _ACEOF |
| 22069 | |
| 22070 | fi |
| 22071 | |
| 22072 | done |
| 22073 | |
| 22074 | |
| 22075 | ######## |
| 22076 | # |
| 22077 | # Checks for typedefs, structures, and compiler characteristics. |
| 22078 | # |
| 22079 | ######## |
| 22080 | |
| 22081 | { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
| 22082 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
| 22083 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
| 22084 | $as_echo_n "(cached) " >&6 |
| 22085 | else |
| 22086 | cat >conftest.$ac_ext <<_ACEOF |
| 22087 | /* confdefs.h. */ |
| 22088 | _ACEOF |
| 22089 | cat confdefs.h >>conftest.$ac_ext |
| 22090 | cat >>conftest.$ac_ext <<_ACEOF |
| 22091 | /* end confdefs.h. */ |
| 22092 | |
| 22093 | #include <stdbool.h> |
| 22094 | #ifndef bool |
| 22095 | "error: bool is not defined" |
| 22096 | #endif |
| 22097 | #ifndef false |
| 22098 | "error: false is not defined" |
| 22099 | #endif |
| 22100 | #if false |
| 22101 | "error: false is not 0" |
| 22102 | #endif |
| 22103 | #ifndef true |
| 22104 | "error: true is not defined" |
| 22105 | #endif |
| 22106 | #if true != 1 |
| 22107 | "error: true is not 1" |
| 22108 | #endif |
| 22109 | #ifndef __bool_true_false_are_defined |
| 22110 | "error: __bool_true_false_are_defined is not defined" |
| 22111 | #endif |
| 22112 | |
| 22113 | struct s { _Bool s: 1; _Bool t; } s; |
| 22114 | |
| 22115 | char a[true == 1 ? 1 : -1]; |
| 22116 | char b[false == 0 ? 1 : -1]; |
| 22117 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
| 22118 | char d[(bool) 0.5 == true ? 1 : -1]; |
| 22119 | bool e = &s; |
| 22120 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
| 22121 | char g[true]; |
| 22122 | char h[sizeof (_Bool)]; |
| 22123 | char i[sizeof s.t]; |
| 22124 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
| 22125 | /* The following fails for |
| 22126 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
| 22127 | _Bool n[m]; |
| 22128 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
| 22129 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
| 22130 | # if defined __xlc__ || defined __GNUC__ |
| 22131 | /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 |
| 22132 | reported by James Lemley on 2005-10-05; see |
| 22133 | http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html |
| 22134 | This test is not quite right, since xlc is allowed to |
| 22135 | reject this program, as the initializer for xlcbug is |
| 22136 | not one of the forms that C requires support for. |
| 22137 | However, doing the test right would require a runtime |
| 22138 | test, and that would make cross-compilation harder. |
| 22139 | Let us hope that IBM fixes the xlc bug, and also adds |
| 22140 | support for this kind of constant expression. In the |
| 22141 | meantime, this test will reject xlc, which is OK, since |
| 22142 | our stdbool.h substitute should suffice. We also test |
| 22143 | this with GCC, where it should work, to detect more |
| 22144 | quickly whether someone messes up the test in the |
| 22145 | future. */ |
| 22146 | char digs[] = "0123456789"; |
| 22147 | int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); |
| 22148 | # endif |
| 22149 | /* Catch a bug in an HP-UX C compiler. See |
| 22150 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
| 22151 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
| 22152 | */ |
| 22153 | _Bool q = true; |
| 22154 | _Bool *pq = &q; |
| 22155 | |
| 22156 | int |
| 22157 | main () |
| 22158 | { |
| 22159 | |
| 22160 | *pq |= q; |
| 22161 | *pq |= ! q; |
| 22162 | /* Refer to every declared value, to avoid compiler optimizations. */ |
| 22163 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
| 22164 | + !m + !n + !o + !p + !q + !pq); |
| 22165 | |
| 22166 | ; |
| 22167 | return 0; |
| 22168 | } |
| 22169 | _ACEOF |
| 22170 | rm -f conftest.$ac_objext |
| 22171 | if { (ac_try="$ac_compile" |
| 22172 | case "(($ac_try" in |
| 22173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22174 | *) ac_try_echo=$ac_try;; |
| 22175 | esac |
| 22176 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22177 | $as_echo "$ac_try_echo") >&5 |
| 22178 | (eval "$ac_compile") 2>conftest.er1 |
| 22179 | ac_status=$? |
| 22180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22181 | rm -f conftest.er1 |
| 22182 | cat conftest.err >&5 |
| 22183 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22184 | (exit $ac_status); } && { |
| 22185 | test -z "$ac_c_werror_flag" || |
| 22186 | test ! -s conftest.err |
| 22187 | } && test -s conftest.$ac_objext; then |
| 22188 | ac_cv_header_stdbool_h=yes |
| 22189 | else |
| 22190 | $as_echo "$as_me: failed program was:" >&5 |
| 22191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22192 | |
| 22193 | ac_cv_header_stdbool_h=no |
| 22194 | fi |
| 22195 | |
| 22196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22197 | fi |
| 22198 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
| 22199 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
| 22200 | { $as_echo "$as_me:$LINENO: checking for _Bool" >&5 |
| 22201 | $as_echo_n "checking for _Bool... " >&6; } |
| 22202 | if test "${ac_cv_type__Bool+set}" = set; then |
| 22203 | $as_echo_n "(cached) " >&6 |
| 22204 | else |
| 22205 | ac_cv_type__Bool=no |
| 22206 | cat >conftest.$ac_ext <<_ACEOF |
| 22207 | /* confdefs.h. */ |
| 22208 | _ACEOF |
| 22209 | cat confdefs.h >>conftest.$ac_ext |
| 22210 | cat >>conftest.$ac_ext <<_ACEOF |
| 22211 | /* end confdefs.h. */ |
| 22212 | $ac_includes_default |
| 22213 | int |
| 22214 | main () |
| 22215 | { |
| 22216 | if (sizeof (_Bool)) |
| 22217 | return 0; |
| 22218 | ; |
| 22219 | return 0; |
| 22220 | } |
| 22221 | _ACEOF |
| 22222 | rm -f conftest.$ac_objext |
| 22223 | if { (ac_try="$ac_compile" |
| 22224 | case "(($ac_try" in |
| 22225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22226 | *) ac_try_echo=$ac_try;; |
| 22227 | esac |
| 22228 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22229 | $as_echo "$ac_try_echo") >&5 |
| 22230 | (eval "$ac_compile") 2>conftest.er1 |
| 22231 | ac_status=$? |
| 22232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22233 | rm -f conftest.er1 |
| 22234 | cat conftest.err >&5 |
| 22235 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22236 | (exit $ac_status); } && { |
| 22237 | test -z "$ac_c_werror_flag" || |
| 22238 | test ! -s conftest.err |
| 22239 | } && test -s conftest.$ac_objext; then |
| 22240 | cat >conftest.$ac_ext <<_ACEOF |
| 22241 | /* confdefs.h. */ |
| 22242 | _ACEOF |
| 22243 | cat confdefs.h >>conftest.$ac_ext |
| 22244 | cat >>conftest.$ac_ext <<_ACEOF |
| 22245 | /* end confdefs.h. */ |
| 22246 | $ac_includes_default |
| 22247 | int |
| 22248 | main () |
| 22249 | { |
| 22250 | if (sizeof ((_Bool))) |
| 22251 | return 0; |
| 22252 | ; |
| 22253 | return 0; |
| 22254 | } |
| 22255 | _ACEOF |
| 22256 | rm -f conftest.$ac_objext |
| 22257 | if { (ac_try="$ac_compile" |
| 22258 | case "(($ac_try" in |
| 22259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22260 | *) ac_try_echo=$ac_try;; |
| 22261 | esac |
| 22262 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22263 | $as_echo "$ac_try_echo") >&5 |
| 22264 | (eval "$ac_compile") 2>conftest.er1 |
| 22265 | ac_status=$? |
| 22266 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22267 | rm -f conftest.er1 |
| 22268 | cat conftest.err >&5 |
| 22269 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22270 | (exit $ac_status); } && { |
| 22271 | test -z "$ac_c_werror_flag" || |
| 22272 | test ! -s conftest.err |
| 22273 | } && test -s conftest.$ac_objext; then |
| 22274 | : |
| 22275 | else |
| 22276 | $as_echo "$as_me: failed program was:" >&5 |
| 22277 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22278 | |
| 22279 | ac_cv_type__Bool=yes |
| 22280 | fi |
| 22281 | |
| 22282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22283 | else |
| 22284 | $as_echo "$as_me: failed program was:" >&5 |
| 22285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22286 | |
| 22287 | |
| 22288 | fi |
| 22289 | |
| 22290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22291 | fi |
| 22292 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
| 22293 | $as_echo "$ac_cv_type__Bool" >&6; } |
| 22294 | if test "x$ac_cv_type__Bool" = x""yes; then |
| 22295 | |
| 22296 | cat >>confdefs.h <<_ACEOF |
| 22297 | #define HAVE__BOOL 1 |
| 22298 | _ACEOF |
| 22299 | |
| 22300 | |
| 22301 | fi |
| 22302 | |
| 22303 | if test $ac_cv_header_stdbool_h = yes; then |
| 22304 | |
| 22305 | cat >>confdefs.h <<\_ACEOF |
| 22306 | #define HAVE_STDBOOL_H 1 |
| 22307 | _ACEOF |
| 22308 | |
| 22309 | fi |
| 22310 | |
| 22311 | { $as_echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 22312 | $as_echo_n "checking for working volatile... " >&6; } |
| 22313 | if test "${ac_cv_c_volatile+set}" = set; then |
| 22314 | $as_echo_n "(cached) " >&6 |
| 22315 | else |
| 22316 | cat >conftest.$ac_ext <<_ACEOF |
| 22317 | /* confdefs.h. */ |
| 22318 | _ACEOF |
| 22319 | cat confdefs.h >>conftest.$ac_ext |
| 22320 | cat >>conftest.$ac_ext <<_ACEOF |
| 22321 | /* end confdefs.h. */ |
| 22322 | |
| 22323 | int |
| 22324 | main () |
| 22325 | { |
| 22326 | |
| 22327 | volatile int x; |
| 22328 | int * volatile y = (int *) 0; |
| 22329 | return !x && !y; |
| 22330 | ; |
| 22331 | return 0; |
| 22332 | } |
| 22333 | _ACEOF |
| 22334 | rm -f conftest.$ac_objext |
| 22335 | if { (ac_try="$ac_compile" |
| 22336 | case "(($ac_try" in |
| 22337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22338 | *) ac_try_echo=$ac_try;; |
| 22339 | esac |
| 22340 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22341 | $as_echo "$ac_try_echo") >&5 |
| 22342 | (eval "$ac_compile") 2>conftest.er1 |
| 22343 | ac_status=$? |
| 22344 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22345 | rm -f conftest.er1 |
| 22346 | cat conftest.err >&5 |
| 22347 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22348 | (exit $ac_status); } && { |
| 22349 | test -z "$ac_c_werror_flag" || |
| 22350 | test ! -s conftest.err |
| 22351 | } && test -s conftest.$ac_objext; then |
| 22352 | ac_cv_c_volatile=yes |
| 22353 | else |
| 22354 | $as_echo "$as_me: failed program was:" >&5 |
| 22355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22356 | |
| 22357 | ac_cv_c_volatile=no |
| 22358 | fi |
| 22359 | |
| 22360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22361 | fi |
| 22362 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 |
| 22363 | $as_echo "$ac_cv_c_volatile" >&6; } |
| 22364 | if test $ac_cv_c_volatile = no; then |
| 22365 | |
| 22366 | cat >>confdefs.h <<\_ACEOF |
| 22367 | #define volatile /**/ |
| 22368 | _ACEOF |
| 22369 | |
| 22370 | fi |
| 22371 | |
| 22372 | { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5 |
| 22373 | $as_echo_n "checking for preprocessor stringizing operator... " >&6; } |
| 22374 | if test "${ac_cv_c_stringize+set}" = set; then |
| 22375 | $as_echo_n "(cached) " >&6 |
| 22376 | else |
| 22377 | cat >conftest.$ac_ext <<_ACEOF |
| 22378 | /* confdefs.h. */ |
| 22379 | _ACEOF |
| 22380 | cat confdefs.h >>conftest.$ac_ext |
| 22381 | cat >>conftest.$ac_ext <<_ACEOF |
| 22382 | /* end confdefs.h. */ |
| 22383 | #define x(y) #y |
| 22384 | |
| 22385 | char *s = x(teststring); |
| 22386 | _ACEOF |
| 22387 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 22388 | $EGREP "#teststring" >/dev/null 2>&1; then |
| 22389 | ac_cv_c_stringize=no |
| 22390 | else |
| 22391 | ac_cv_c_stringize=yes |
| 22392 | fi |
| 22393 | rm -f conftest* |
| 22394 | |
| 22395 | fi |
| 22396 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5 |
| 22397 | $as_echo "$ac_cv_c_stringize" >&6; } |
| 22398 | if test $ac_cv_c_stringize = yes; then |
| 22399 | |
| 22400 | cat >>confdefs.h <<\_ACEOF |
| 22401 | #define HAVE_STRINGIZE 1 |
| 22402 | _ACEOF |
| 22403 | |
| 22404 | fi |
| 22405 | |
| 22406 | { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 22407 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } |
| 22408 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 22409 | $as_echo_n "(cached) " >&6 |
| 22410 | else |
| 22411 | cat >conftest.$ac_ext <<_ACEOF |
| 22412 | /* confdefs.h. */ |
| 22413 | _ACEOF |
| 22414 | cat confdefs.h >>conftest.$ac_ext |
| 22415 | cat >>conftest.$ac_ext <<_ACEOF |
| 22416 | /* end confdefs.h. */ |
| 22417 | #include <sys/types.h> |
| 22418 | #include <sys/stat.h> |
| 22419 | |
| 22420 | #if defined S_ISBLK && defined S_IFDIR |
| 22421 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; |
| 22422 | #endif |
| 22423 | |
| 22424 | #if defined S_ISBLK && defined S_IFCHR |
| 22425 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; |
| 22426 | #endif |
| 22427 | |
| 22428 | #if defined S_ISLNK && defined S_IFREG |
| 22429 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; |
| 22430 | #endif |
| 22431 | |
| 22432 | #if defined S_ISSOCK && defined S_IFREG |
| 22433 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; |
| 22434 | #endif |
| 22435 | |
| 22436 | _ACEOF |
| 22437 | rm -f conftest.$ac_objext |
| 22438 | if { (ac_try="$ac_compile" |
| 22439 | case "(($ac_try" in |
| 22440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22441 | *) ac_try_echo=$ac_try;; |
| 22442 | esac |
| 22443 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22444 | $as_echo "$ac_try_echo") >&5 |
| 22445 | (eval "$ac_compile") 2>conftest.er1 |
| 22446 | ac_status=$? |
| 22447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22448 | rm -f conftest.er1 |
| 22449 | cat conftest.err >&5 |
| 22450 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22451 | (exit $ac_status); } && { |
| 22452 | test -z "$ac_c_werror_flag" || |
| 22453 | test ! -s conftest.err |
| 22454 | } && test -s conftest.$ac_objext; then |
| 22455 | ac_cv_header_stat_broken=no |
| 22456 | else |
| 22457 | $as_echo "$as_me: failed program was:" >&5 |
| 22458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22459 | |
| 22460 | ac_cv_header_stat_broken=yes |
| 22461 | fi |
| 22462 | |
| 22463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22464 | fi |
| 22465 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 22466 | $as_echo "$ac_cv_header_stat_broken" >&6; } |
| 22467 | if test $ac_cv_header_stat_broken = yes; then |
| 22468 | |
| 22469 | cat >>confdefs.h <<\_ACEOF |
| 22470 | #define STAT_MACROS_BROKEN 1 |
| 22471 | _ACEOF |
| 22472 | |
| 22473 | fi |
| 22474 | |
| 22475 | { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 22476 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
| 22477 | if test "${ac_cv_header_time+set}" = set; then |
| 22478 | $as_echo_n "(cached) " >&6 |
| 22479 | else |
| 22480 | cat >conftest.$ac_ext <<_ACEOF |
| 22481 | /* confdefs.h. */ |
| 22482 | _ACEOF |
| 22483 | cat confdefs.h >>conftest.$ac_ext |
| 22484 | cat >>conftest.$ac_ext <<_ACEOF |
| 22485 | /* end confdefs.h. */ |
| 22486 | #include <sys/types.h> |
| 22487 | #include <sys/time.h> |
| 22488 | #include <time.h> |
| 22489 | |
| 22490 | int |
| 22491 | main () |
| 22492 | { |
| 22493 | if ((struct tm *) 0) |
| 22494 | return 0; |
| 22495 | ; |
| 22496 | return 0; |
| 22497 | } |
| 22498 | _ACEOF |
| 22499 | rm -f conftest.$ac_objext |
| 22500 | if { (ac_try="$ac_compile" |
| 22501 | case "(($ac_try" in |
| 22502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22503 | *) ac_try_echo=$ac_try;; |
| 22504 | esac |
| 22505 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22506 | $as_echo "$ac_try_echo") >&5 |
| 22507 | (eval "$ac_compile") 2>conftest.er1 |
| 22508 | ac_status=$? |
| 22509 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22510 | rm -f conftest.er1 |
| 22511 | cat conftest.err >&5 |
| 22512 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22513 | (exit $ac_status); } && { |
| 22514 | test -z "$ac_c_werror_flag" || |
| 22515 | test ! -s conftest.err |
| 22516 | } && test -s conftest.$ac_objext; then |
| 22517 | ac_cv_header_time=yes |
| 22518 | else |
| 22519 | $as_echo "$as_me: failed program was:" >&5 |
| 22520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22521 | |
| 22522 | ac_cv_header_time=no |
| 22523 | fi |
| 22524 | |
| 22525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22526 | fi |
| 22527 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 22528 | $as_echo "$ac_cv_header_time" >&6; } |
| 22529 | if test $ac_cv_header_time = yes; then |
| 22530 | |
| 22531 | cat >>confdefs.h <<\_ACEOF |
| 22532 | #define TIME_WITH_SYS_TIME 1 |
| 22533 | _ACEOF |
| 22534 | |
| 22535 | fi |
| 22536 | |
| 22537 | { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 22538 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
| 22539 | if test "${ac_cv_struct_tm+set}" = set; then |
| 22540 | $as_echo_n "(cached) " >&6 |
| 22541 | else |
| 22542 | cat >conftest.$ac_ext <<_ACEOF |
| 22543 | /* confdefs.h. */ |
| 22544 | _ACEOF |
| 22545 | cat confdefs.h >>conftest.$ac_ext |
| 22546 | cat >>conftest.$ac_ext <<_ACEOF |
| 22547 | /* end confdefs.h. */ |
| 22548 | #include <sys/types.h> |
| 22549 | #include <time.h> |
| 22550 | |
| 22551 | int |
| 22552 | main () |
| 22553 | { |
| 22554 | struct tm tm; |
| 22555 | int *p = &tm.tm_sec; |
| 22556 | return !p; |
| 22557 | ; |
| 22558 | return 0; |
| 22559 | } |
| 22560 | _ACEOF |
| 22561 | rm -f conftest.$ac_objext |
| 22562 | if { (ac_try="$ac_compile" |
| 22563 | case "(($ac_try" in |
| 22564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22565 | *) ac_try_echo=$ac_try;; |
| 22566 | esac |
| 22567 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22568 | $as_echo "$ac_try_echo") >&5 |
| 22569 | (eval "$ac_compile") 2>conftest.er1 |
| 22570 | ac_status=$? |
| 22571 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22572 | rm -f conftest.er1 |
| 22573 | cat conftest.err >&5 |
| 22574 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22575 | (exit $ac_status); } && { |
| 22576 | test -z "$ac_c_werror_flag" || |
| 22577 | test ! -s conftest.err |
| 22578 | } && test -s conftest.$ac_objext; then |
| 22579 | ac_cv_struct_tm=time.h |
| 22580 | else |
| 22581 | $as_echo "$as_me: failed program was:" >&5 |
| 22582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22583 | |
| 22584 | ac_cv_struct_tm=sys/time.h |
| 22585 | fi |
| 22586 | |
| 22587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22588 | fi |
| 22589 | { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 22590 | $as_echo "$ac_cv_struct_tm" >&6; } |
| 22591 | if test $ac_cv_struct_tm = sys/time.h; then |
| 22592 | |
| 22593 | cat >>confdefs.h <<\_ACEOF |
| 22594 | #define TM_IN_SYS_TIME 1 |
| 22595 | _ACEOF |
| 22596 | |
| 22597 | fi |
| 22598 | |
| 22599 | { $as_echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5 |
| 22600 | $as_echo_n "checking whether #! works in shell scripts... " >&6; } |
| 22601 | if test "${ac_cv_sys_interpreter+set}" = set; then |
| 22602 | $as_echo_n "(cached) " >&6 |
| 22603 | else |
| 22604 | echo '#! /bin/cat |
| 22605 | exit 69 |
| 22606 | ' >conftest |
| 22607 | chmod u+x conftest |
| 22608 | (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) |
| 22609 | if test $? -ne 69; then |
| 22610 | ac_cv_sys_interpreter=yes |
| 22611 | else |
| 22612 | ac_cv_sys_interpreter=no |
| 22613 | fi |
| 22614 | rm -f conftest |
| 22615 | fi |
| 22616 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5 |
| 22617 | $as_echo "$ac_cv_sys_interpreter" >&6; } |
| 22618 | interpval=$ac_cv_sys_interpreter |
| 22619 | |
| 22620 | |
| 22621 | # If the C compiler does not fully support the ANSI C qualifier const, |
| 22622 | # define const to be empty. |
| 22623 | { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 22624 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
| 22625 | if test "${ac_cv_c_const+set}" = set; then |
| 22626 | $as_echo_n "(cached) " >&6 |
| 22627 | else |
| 22628 | cat >conftest.$ac_ext <<_ACEOF |
| 22629 | /* confdefs.h. */ |
| 22630 | _ACEOF |
| 22631 | cat confdefs.h >>conftest.$ac_ext |
| 22632 | cat >>conftest.$ac_ext <<_ACEOF |
| 22633 | /* end confdefs.h. */ |
| 22634 | |
| 22635 | int |
| 22636 | main () |
| 22637 | { |
| 22638 | /* FIXME: Include the comments suggested by Paul. */ |
| 22639 | #ifndef __cplusplus |
| 22640 | /* Ultrix mips cc rejects this. */ |
| 22641 | typedef int charset[2]; |
| 22642 | const charset cs; |
| 22643 | /* SunOS 4.1.1 cc rejects this. */ |
| 22644 | char const *const *pcpcc; |
| 22645 | char **ppc; |
| 22646 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 22647 | struct point {int x, y;}; |
| 22648 | static struct point const zero = {0,0}; |
| 22649 | /* AIX XL C 1.02.0.0 rejects this. |
| 22650 | It does not let you subtract one const X* pointer from another in |
| 22651 | an arm of an if-expression whose if-part is not a constant |
| 22652 | expression */ |
| 22653 | const char *g = "string"; |
| 22654 | pcpcc = &g + (g ? g-g : 0); |
| 22655 | /* HPUX 7.0 cc rejects these. */ |
| 22656 | ++pcpcc; |
| 22657 | ppc = (char**) pcpcc; |
| 22658 | pcpcc = (char const *const *) ppc; |
| 22659 | { /* SCO 3.2v4 cc rejects this. */ |
| 22660 | char *t; |
| 22661 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 22662 | |
| 22663 | *t++ = 0; |
| 22664 | if (s) return 0; |
| 22665 | } |
| 22666 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 22667 | int x[] = {25, 17}; |
| 22668 | const int *foo = &x[0]; |
| 22669 | ++foo; |
| 22670 | } |
| 22671 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 22672 | typedef const int *iptr; |
| 22673 | iptr p = 0; |
| 22674 | ++p; |
| 22675 | } |
| 22676 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 22677 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 22678 | struct s { int j; const int *ap[3]; }; |
| 22679 | struct s *b; b->j = 5; |
| 22680 | } |
| 22681 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 22682 | const int foo = 10; |
| 22683 | if (!foo) return 0; |
| 22684 | } |
| 22685 | return !cs[0] && !zero.x; |
| 22686 | #endif |
| 22687 | |
| 22688 | ; |
| 22689 | return 0; |
| 22690 | } |
| 22691 | _ACEOF |
| 22692 | rm -f conftest.$ac_objext |
| 22693 | if { (ac_try="$ac_compile" |
| 22694 | case "(($ac_try" in |
| 22695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22696 | *) ac_try_echo=$ac_try;; |
| 22697 | esac |
| 22698 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22699 | $as_echo "$ac_try_echo") >&5 |
| 22700 | (eval "$ac_compile") 2>conftest.er1 |
| 22701 | ac_status=$? |
| 22702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22703 | rm -f conftest.er1 |
| 22704 | cat conftest.err >&5 |
| 22705 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22706 | (exit $ac_status); } && { |
| 22707 | test -z "$ac_c_werror_flag" || |
| 22708 | test ! -s conftest.err |
| 22709 | } && test -s conftest.$ac_objext; then |
| 22710 | ac_cv_c_const=yes |
| 22711 | else |
| 22712 | $as_echo "$as_me: failed program was:" >&5 |
| 22713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22714 | |
| 22715 | ac_cv_c_const=no |
| 22716 | fi |
| 22717 | |
| 22718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22719 | fi |
| 22720 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 22721 | $as_echo "$ac_cv_c_const" >&6; } |
| 22722 | if test $ac_cv_c_const = no; then |
| 22723 | |
| 22724 | cat >>confdefs.h <<\_ACEOF |
| 22725 | #define const /**/ |
| 22726 | _ACEOF |
| 22727 | |
| 22728 | fi |
| 22729 | |
| 22730 | |
| 22731 | # If the C compiler supports the keyword inline, do nothing. Otherwise |
| 22732 | # define inline to __inline__ or __inline if it accepts one of those, |
| 22733 | # otherwise define inline to be empty. |
| 22734 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 |
| 22735 | $as_echo_n "checking for inline... " >&6; } |
| 22736 | if test "${ac_cv_c_inline+set}" = set; then |
| 22737 | $as_echo_n "(cached) " >&6 |
| 22738 | else |
| 22739 | ac_cv_c_inline=no |
| 22740 | for ac_kw in inline __inline__ __inline; do |
| 22741 | cat >conftest.$ac_ext <<_ACEOF |
| 22742 | /* confdefs.h. */ |
| 22743 | _ACEOF |
| 22744 | cat confdefs.h >>conftest.$ac_ext |
| 22745 | cat >>conftest.$ac_ext <<_ACEOF |
| 22746 | /* end confdefs.h. */ |
| 22747 | #ifndef __cplusplus |
| 22748 | typedef int foo_t; |
| 22749 | static $ac_kw foo_t static_foo () {return 0; } |
| 22750 | $ac_kw foo_t foo () {return 0; } |
| 22751 | #endif |
| 22752 | |
| 22753 | _ACEOF |
| 22754 | rm -f conftest.$ac_objext |
| 22755 | if { (ac_try="$ac_compile" |
| 22756 | case "(($ac_try" in |
| 22757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22758 | *) ac_try_echo=$ac_try;; |
| 22759 | esac |
| 22760 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22761 | $as_echo "$ac_try_echo") >&5 |
| 22762 | (eval "$ac_compile") 2>conftest.er1 |
| 22763 | ac_status=$? |
| 22764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22765 | rm -f conftest.er1 |
| 22766 | cat conftest.err >&5 |
| 22767 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22768 | (exit $ac_status); } && { |
| 22769 | test -z "$ac_c_werror_flag" || |
| 22770 | test ! -s conftest.err |
| 22771 | } && test -s conftest.$ac_objext; then |
| 22772 | ac_cv_c_inline=$ac_kw |
| 22773 | else |
| 22774 | $as_echo "$as_me: failed program was:" >&5 |
| 22775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22776 | |
| 22777 | |
| 22778 | fi |
| 22779 | |
| 22780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22781 | test "$ac_cv_c_inline" != no && break |
| 22782 | done |
| 22783 | |
| 22784 | fi |
| 22785 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 22786 | $as_echo "$ac_cv_c_inline" >&6; } |
| 22787 | |
| 22788 | |
| 22789 | case $ac_cv_c_inline in |
| 22790 | inline | yes) ;; |
| 22791 | *) |
| 22792 | case $ac_cv_c_inline in |
| 22793 | no) ac_val=;; |
| 22794 | *) ac_val=$ac_cv_c_inline;; |
| 22795 | esac |
| 22796 | cat >>confdefs.h <<_ACEOF |
| 22797 | #ifndef __cplusplus |
| 22798 | #define inline $ac_val |
| 22799 | #endif |
| 22800 | _ACEOF |
| 22801 | ;; |
| 22802 | esac |
| 22803 | |
| 22804 | |
| 22805 | # If the C compiler supports the keyword restrict, do nothing. Otherwise |
| 22806 | # define restrict to __restrict__ or __restrict if it accepts one of those, |
| 22807 | # otherwise define restrict to be empty. |
| 22808 | { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 |
| 22809 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
| 22810 | if test "${ac_cv_c_restrict+set}" = set; then |
| 22811 | $as_echo_n "(cached) " >&6 |
| 22812 | else |
| 22813 | ac_cv_c_restrict=no |
| 22814 | # The order here caters to the fact that C++ does not require restrict. |
| 22815 | for ac_kw in __restrict __restrict__ _Restrict restrict; do |
| 22816 | cat >conftest.$ac_ext <<_ACEOF |
| 22817 | /* confdefs.h. */ |
| 22818 | _ACEOF |
| 22819 | cat confdefs.h >>conftest.$ac_ext |
| 22820 | cat >>conftest.$ac_ext <<_ACEOF |
| 22821 | /* end confdefs.h. */ |
| 22822 | typedef int * int_ptr; |
| 22823 | int foo (int_ptr $ac_kw ip) { |
| 22824 | return ip[0]; |
| 22825 | } |
| 22826 | int |
| 22827 | main () |
| 22828 | { |
| 22829 | int s[1]; |
| 22830 | int * $ac_kw t = s; |
| 22831 | t[0] = 0; |
| 22832 | return foo(t) |
| 22833 | ; |
| 22834 | return 0; |
| 22835 | } |
| 22836 | _ACEOF |
| 22837 | rm -f conftest.$ac_objext |
| 22838 | if { (ac_try="$ac_compile" |
| 22839 | case "(($ac_try" in |
| 22840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22841 | *) ac_try_echo=$ac_try;; |
| 22842 | esac |
| 22843 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22844 | $as_echo "$ac_try_echo") >&5 |
| 22845 | (eval "$ac_compile") 2>conftest.er1 |
| 22846 | ac_status=$? |
| 22847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22848 | rm -f conftest.er1 |
| 22849 | cat conftest.err >&5 |
| 22850 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22851 | (exit $ac_status); } && { |
| 22852 | test -z "$ac_c_werror_flag" || |
| 22853 | test ! -s conftest.err |
| 22854 | } && test -s conftest.$ac_objext; then |
| 22855 | ac_cv_c_restrict=$ac_kw |
| 22856 | else |
| 22857 | $as_echo "$as_me: failed program was:" >&5 |
| 22858 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22859 | |
| 22860 | |
| 22861 | fi |
| 22862 | |
| 22863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22864 | test "$ac_cv_c_restrict" != no && break |
| 22865 | done |
| 22866 | |
| 22867 | fi |
| 22868 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 |
| 22869 | $as_echo "$ac_cv_c_restrict" >&6; } |
| 22870 | |
| 22871 | |
| 22872 | case $ac_cv_c_restrict in |
| 22873 | restrict) ;; |
| 22874 | no) cat >>confdefs.h <<\_ACEOF |
| 22875 | #define restrict /**/ |
| 22876 | _ACEOF |
| 22877 | ;; |
| 22878 | *) cat >>confdefs.h <<_ACEOF |
| 22879 | #define restrict $ac_cv_c_restrict |
| 22880 | _ACEOF |
| 22881 | ;; |
| 22882 | esac |
| 22883 | |
| 22884 | |
| 22885 | # If words are stored with the most significant byte first (like |
| 22886 | # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'. |
| 22887 | |
| 22888 | { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 22889 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| 22890 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 22891 | $as_echo_n "(cached) " >&6 |
| 22892 | else |
| 22893 | ac_cv_c_bigendian=unknown |
| 22894 | # See if we're dealing with a universal compiler. |
| 22895 | cat >conftest.$ac_ext <<_ACEOF |
| 22896 | /* confdefs.h. */ |
| 22897 | _ACEOF |
| 22898 | cat confdefs.h >>conftest.$ac_ext |
| 22899 | cat >>conftest.$ac_ext <<_ACEOF |
| 22900 | /* end confdefs.h. */ |
| 22901 | #ifndef __APPLE_CC__ |
| 22902 | not a universal capable compiler |
| 22903 | #endif |
| 22904 | typedef int dummy; |
| 22905 | |
| 22906 | _ACEOF |
| 22907 | rm -f conftest.$ac_objext |
| 22908 | if { (ac_try="$ac_compile" |
| 22909 | case "(($ac_try" in |
| 22910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22911 | *) ac_try_echo=$ac_try;; |
| 22912 | esac |
| 22913 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22914 | $as_echo "$ac_try_echo") >&5 |
| 22915 | (eval "$ac_compile") 2>conftest.er1 |
| 22916 | ac_status=$? |
| 22917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22918 | rm -f conftest.er1 |
| 22919 | cat conftest.err >&5 |
| 22920 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22921 | (exit $ac_status); } && { |
| 22922 | test -z "$ac_c_werror_flag" || |
| 22923 | test ! -s conftest.err |
| 22924 | } && test -s conftest.$ac_objext; then |
| 22925 | |
| 22926 | # Check for potential -arch flags. It is not universal unless |
| 22927 | # there are some -arch flags. Note that *ppc* also matches |
| 22928 | # ppc64. This check is also rather less than ideal. |
| 22929 | case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #( |
| 22930 | *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;; |
| 22931 | esac |
| 22932 | else |
| 22933 | $as_echo "$as_me: failed program was:" >&5 |
| 22934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 22935 | |
| 22936 | |
| 22937 | fi |
| 22938 | |
| 22939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22940 | if test $ac_cv_c_bigendian = unknown; then |
| 22941 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 22942 | cat >conftest.$ac_ext <<_ACEOF |
| 22943 | /* confdefs.h. */ |
| 22944 | _ACEOF |
| 22945 | cat confdefs.h >>conftest.$ac_ext |
| 22946 | cat >>conftest.$ac_ext <<_ACEOF |
| 22947 | /* end confdefs.h. */ |
| 22948 | #include <sys/types.h> |
| 22949 | #include <sys/param.h> |
| 22950 | |
| 22951 | int |
| 22952 | main () |
| 22953 | { |
| 22954 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 22955 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 22956 | && LITTLE_ENDIAN) |
| 22957 | bogus endian macros |
| 22958 | #endif |
| 22959 | |
| 22960 | ; |
| 22961 | return 0; |
| 22962 | } |
| 22963 | _ACEOF |
| 22964 | rm -f conftest.$ac_objext |
| 22965 | if { (ac_try="$ac_compile" |
| 22966 | case "(($ac_try" in |
| 22967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22968 | *) ac_try_echo=$ac_try;; |
| 22969 | esac |
| 22970 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 22971 | $as_echo "$ac_try_echo") >&5 |
| 22972 | (eval "$ac_compile") 2>conftest.er1 |
| 22973 | ac_status=$? |
| 22974 | grep -v '^ *+' conftest.er1 >conftest.err |
| 22975 | rm -f conftest.er1 |
| 22976 | cat conftest.err >&5 |
| 22977 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22978 | (exit $ac_status); } && { |
| 22979 | test -z "$ac_c_werror_flag" || |
| 22980 | test ! -s conftest.err |
| 22981 | } && test -s conftest.$ac_objext; then |
| 22982 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 22983 | cat >conftest.$ac_ext <<_ACEOF |
| 22984 | /* confdefs.h. */ |
| 22985 | _ACEOF |
| 22986 | cat confdefs.h >>conftest.$ac_ext |
| 22987 | cat >>conftest.$ac_ext <<_ACEOF |
| 22988 | /* end confdefs.h. */ |
| 22989 | #include <sys/types.h> |
| 22990 | #include <sys/param.h> |
| 22991 | |
| 22992 | int |
| 22993 | main () |
| 22994 | { |
| 22995 | #if BYTE_ORDER != BIG_ENDIAN |
| 22996 | not big endian |
| 22997 | #endif |
| 22998 | |
| 22999 | ; |
| 23000 | return 0; |
| 23001 | } |
| 23002 | _ACEOF |
| 23003 | rm -f conftest.$ac_objext |
| 23004 | if { (ac_try="$ac_compile" |
| 23005 | case "(($ac_try" in |
| 23006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23007 | *) ac_try_echo=$ac_try;; |
| 23008 | esac |
| 23009 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23010 | $as_echo "$ac_try_echo") >&5 |
| 23011 | (eval "$ac_compile") 2>conftest.er1 |
| 23012 | ac_status=$? |
| 23013 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23014 | rm -f conftest.er1 |
| 23015 | cat conftest.err >&5 |
| 23016 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23017 | (exit $ac_status); } && { |
| 23018 | test -z "$ac_c_werror_flag" || |
| 23019 | test ! -s conftest.err |
| 23020 | } && test -s conftest.$ac_objext; then |
| 23021 | ac_cv_c_bigendian=yes |
| 23022 | else |
| 23023 | $as_echo "$as_me: failed program was:" >&5 |
| 23024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23025 | |
| 23026 | ac_cv_c_bigendian=no |
| 23027 | fi |
| 23028 | |
| 23029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23030 | else |
| 23031 | $as_echo "$as_me: failed program was:" >&5 |
| 23032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23033 | |
| 23034 | |
| 23035 | fi |
| 23036 | |
| 23037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23038 | fi |
| 23039 | if test $ac_cv_c_bigendian = unknown; then |
| 23040 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 23041 | cat >conftest.$ac_ext <<_ACEOF |
| 23042 | /* confdefs.h. */ |
| 23043 | _ACEOF |
| 23044 | cat confdefs.h >>conftest.$ac_ext |
| 23045 | cat >>conftest.$ac_ext <<_ACEOF |
| 23046 | /* end confdefs.h. */ |
| 23047 | #include <limits.h> |
| 23048 | |
| 23049 | int |
| 23050 | main () |
| 23051 | { |
| 23052 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 23053 | bogus endian macros |
| 23054 | #endif |
| 23055 | |
| 23056 | ; |
| 23057 | return 0; |
| 23058 | } |
| 23059 | _ACEOF |
| 23060 | rm -f conftest.$ac_objext |
| 23061 | if { (ac_try="$ac_compile" |
| 23062 | case "(($ac_try" in |
| 23063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23064 | *) ac_try_echo=$ac_try;; |
| 23065 | esac |
| 23066 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23067 | $as_echo "$ac_try_echo") >&5 |
| 23068 | (eval "$ac_compile") 2>conftest.er1 |
| 23069 | ac_status=$? |
| 23070 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23071 | rm -f conftest.er1 |
| 23072 | cat conftest.err >&5 |
| 23073 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23074 | (exit $ac_status); } && { |
| 23075 | test -z "$ac_c_werror_flag" || |
| 23076 | test ! -s conftest.err |
| 23077 | } && test -s conftest.$ac_objext; then |
| 23078 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 23079 | cat >conftest.$ac_ext <<_ACEOF |
| 23080 | /* confdefs.h. */ |
| 23081 | _ACEOF |
| 23082 | cat confdefs.h >>conftest.$ac_ext |
| 23083 | cat >>conftest.$ac_ext <<_ACEOF |
| 23084 | /* end confdefs.h. */ |
| 23085 | #include <limits.h> |
| 23086 | |
| 23087 | int |
| 23088 | main () |
| 23089 | { |
| 23090 | #ifndef _BIG_ENDIAN |
| 23091 | not big endian |
| 23092 | #endif |
| 23093 | |
| 23094 | ; |
| 23095 | return 0; |
| 23096 | } |
| 23097 | _ACEOF |
| 23098 | rm -f conftest.$ac_objext |
| 23099 | if { (ac_try="$ac_compile" |
| 23100 | case "(($ac_try" in |
| 23101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23102 | *) ac_try_echo=$ac_try;; |
| 23103 | esac |
| 23104 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23105 | $as_echo "$ac_try_echo") >&5 |
| 23106 | (eval "$ac_compile") 2>conftest.er1 |
| 23107 | ac_status=$? |
| 23108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23109 | rm -f conftest.er1 |
| 23110 | cat conftest.err >&5 |
| 23111 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23112 | (exit $ac_status); } && { |
| 23113 | test -z "$ac_c_werror_flag" || |
| 23114 | test ! -s conftest.err |
| 23115 | } && test -s conftest.$ac_objext; then |
| 23116 | ac_cv_c_bigendian=yes |
| 23117 | else |
| 23118 | $as_echo "$as_me: failed program was:" >&5 |
| 23119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23120 | |
| 23121 | ac_cv_c_bigendian=no |
| 23122 | fi |
| 23123 | |
| 23124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23125 | else |
| 23126 | $as_echo "$as_me: failed program was:" >&5 |
| 23127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23128 | |
| 23129 | |
| 23130 | fi |
| 23131 | |
| 23132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23133 | fi |
| 23134 | if test $ac_cv_c_bigendian = unknown; then |
| 23135 | # Compile a test program. |
| 23136 | if test "$cross_compiling" = yes; then |
| 23137 | # Try to guess by grepping values from an object file. |
| 23138 | cat >conftest.$ac_ext <<_ACEOF |
| 23139 | /* confdefs.h. */ |
| 23140 | _ACEOF |
| 23141 | cat confdefs.h >>conftest.$ac_ext |
| 23142 | cat >>conftest.$ac_ext <<_ACEOF |
| 23143 | /* end confdefs.h. */ |
| 23144 | short int ascii_mm[] = |
| 23145 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 23146 | short int ascii_ii[] = |
| 23147 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 23148 | int use_ascii (int i) { |
| 23149 | return ascii_mm[i] + ascii_ii[i]; |
| 23150 | } |
| 23151 | short int ebcdic_ii[] = |
| 23152 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 23153 | short int ebcdic_mm[] = |
| 23154 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 23155 | int use_ebcdic (int i) { |
| 23156 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 23157 | } |
| 23158 | extern int foo; |
| 23159 | |
| 23160 | int |
| 23161 | main () |
| 23162 | { |
| 23163 | return use_ascii (foo) == use_ebcdic (foo); |
| 23164 | ; |
| 23165 | return 0; |
| 23166 | } |
| 23167 | _ACEOF |
| 23168 | rm -f conftest.$ac_objext |
| 23169 | if { (ac_try="$ac_compile" |
| 23170 | case "(($ac_try" in |
| 23171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23172 | *) ac_try_echo=$ac_try;; |
| 23173 | esac |
| 23174 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23175 | $as_echo "$ac_try_echo") >&5 |
| 23176 | (eval "$ac_compile") 2>conftest.er1 |
| 23177 | ac_status=$? |
| 23178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23179 | rm -f conftest.er1 |
| 23180 | cat conftest.err >&5 |
| 23181 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23182 | (exit $ac_status); } && { |
| 23183 | test -z "$ac_c_werror_flag" || |
| 23184 | test ! -s conftest.err |
| 23185 | } && test -s conftest.$ac_objext; then |
| 23186 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 23187 | ac_cv_c_bigendian=yes |
| 23188 | fi |
| 23189 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 23190 | if test "$ac_cv_c_bigendian" = unknown; then |
| 23191 | ac_cv_c_bigendian=no |
| 23192 | else |
| 23193 | # finding both strings is unlikely to happen, but who knows? |
| 23194 | ac_cv_c_bigendian=unknown |
| 23195 | fi |
| 23196 | fi |
| 23197 | else |
| 23198 | $as_echo "$as_me: failed program was:" >&5 |
| 23199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23200 | |
| 23201 | |
| 23202 | fi |
| 23203 | |
| 23204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23205 | else |
| 23206 | cat >conftest.$ac_ext <<_ACEOF |
| 23207 | /* confdefs.h. */ |
| 23208 | _ACEOF |
| 23209 | cat confdefs.h >>conftest.$ac_ext |
| 23210 | cat >>conftest.$ac_ext <<_ACEOF |
| 23211 | /* end confdefs.h. */ |
| 23212 | $ac_includes_default |
| 23213 | int |
| 23214 | main () |
| 23215 | { |
| 23216 | |
| 23217 | /* Are we little or big endian? From Harbison&Steele. */ |
| 23218 | union |
| 23219 | { |
| 23220 | long int l; |
| 23221 | char c[sizeof (long int)]; |
| 23222 | } u; |
| 23223 | u.l = 1; |
| 23224 | return u.c[sizeof (long int) - 1] == 1; |
| 23225 | |
| 23226 | ; |
| 23227 | return 0; |
| 23228 | } |
| 23229 | _ACEOF |
| 23230 | rm -f conftest$ac_exeext |
| 23231 | if { (ac_try="$ac_link" |
| 23232 | case "(($ac_try" in |
| 23233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23234 | *) ac_try_echo=$ac_try;; |
| 23235 | esac |
| 23236 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23237 | $as_echo "$ac_try_echo") >&5 |
| 23238 | (eval "$ac_link") 2>&5 |
| 23239 | ac_status=$? |
| 23240 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23241 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 23242 | { (case "(($ac_try" in |
| 23243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23244 | *) ac_try_echo=$ac_try;; |
| 23245 | esac |
| 23246 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23247 | $as_echo "$ac_try_echo") >&5 |
| 23248 | (eval "$ac_try") 2>&5 |
| 23249 | ac_status=$? |
| 23250 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23251 | (exit $ac_status); }; }; then |
| 23252 | ac_cv_c_bigendian=no |
| 23253 | else |
| 23254 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 23255 | $as_echo "$as_me: failed program was:" >&5 |
| 23256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23257 | |
| 23258 | ( exit $ac_status ) |
| 23259 | ac_cv_c_bigendian=yes |
| 23260 | fi |
| 23261 | rm -rf conftest.dSYM |
| 23262 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 23263 | fi |
| 23264 | |
| 23265 | |
| 23266 | fi |
| 23267 | fi |
| 23268 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 23269 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 23270 | case $ac_cv_c_bigendian in #( |
| 23271 | yes) |
| 23272 | cat >>confdefs.h <<\_ACEOF |
| 23273 | #define WORDS_BIGENDIAN 1 |
| 23274 | _ACEOF |
| 23275 | ;; #( |
| 23276 | no) |
| 23277 | ;; #( |
| 23278 | universal) |
| 23279 | |
| 23280 | cat >>confdefs.h <<\_ACEOF |
| 23281 | #define AC_APPLE_UNIVERSAL_BUILD 1 |
| 23282 | _ACEOF |
| 23283 | |
| 23284 | ;; #( |
| 23285 | *) |
| 23286 | { { $as_echo "$as_me:$LINENO: error: unknown endianness |
| 23287 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 23288 | $as_echo "$as_me: error: unknown endianness |
| 23289 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 23290 | { (exit 1); exit 1; }; } ;; |
| 23291 | esac |
| 23292 | |
| 23293 | |
| 23294 | # Define mode_t to a suitable type, if standard headers do not define it. |
| 23295 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 23296 | $as_echo_n "checking for mode_t... " >&6; } |
| 23297 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 23298 | $as_echo_n "(cached) " >&6 |
| 23299 | else |
| 23300 | ac_cv_type_mode_t=no |
| 23301 | cat >conftest.$ac_ext <<_ACEOF |
| 23302 | /* confdefs.h. */ |
| 23303 | _ACEOF |
| 23304 | cat confdefs.h >>conftest.$ac_ext |
| 23305 | cat >>conftest.$ac_ext <<_ACEOF |
| 23306 | /* end confdefs.h. */ |
| 23307 | $ac_includes_default |
| 23308 | int |
| 23309 | main () |
| 23310 | { |
| 23311 | if (sizeof (mode_t)) |
| 23312 | return 0; |
| 23313 | ; |
| 23314 | return 0; |
| 23315 | } |
| 23316 | _ACEOF |
| 23317 | rm -f conftest.$ac_objext |
| 23318 | if { (ac_try="$ac_compile" |
| 23319 | case "(($ac_try" in |
| 23320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23321 | *) ac_try_echo=$ac_try;; |
| 23322 | esac |
| 23323 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23324 | $as_echo "$ac_try_echo") >&5 |
| 23325 | (eval "$ac_compile") 2>conftest.er1 |
| 23326 | ac_status=$? |
| 23327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23328 | rm -f conftest.er1 |
| 23329 | cat conftest.err >&5 |
| 23330 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23331 | (exit $ac_status); } && { |
| 23332 | test -z "$ac_c_werror_flag" || |
| 23333 | test ! -s conftest.err |
| 23334 | } && test -s conftest.$ac_objext; then |
| 23335 | cat >conftest.$ac_ext <<_ACEOF |
| 23336 | /* confdefs.h. */ |
| 23337 | _ACEOF |
| 23338 | cat confdefs.h >>conftest.$ac_ext |
| 23339 | cat >>conftest.$ac_ext <<_ACEOF |
| 23340 | /* end confdefs.h. */ |
| 23341 | $ac_includes_default |
| 23342 | int |
| 23343 | main () |
| 23344 | { |
| 23345 | if (sizeof ((mode_t))) |
| 23346 | return 0; |
| 23347 | ; |
| 23348 | return 0; |
| 23349 | } |
| 23350 | _ACEOF |
| 23351 | rm -f conftest.$ac_objext |
| 23352 | if { (ac_try="$ac_compile" |
| 23353 | case "(($ac_try" in |
| 23354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23355 | *) ac_try_echo=$ac_try;; |
| 23356 | esac |
| 23357 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23358 | $as_echo "$ac_try_echo") >&5 |
| 23359 | (eval "$ac_compile") 2>conftest.er1 |
| 23360 | ac_status=$? |
| 23361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23362 | rm -f conftest.er1 |
| 23363 | cat conftest.err >&5 |
| 23364 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23365 | (exit $ac_status); } && { |
| 23366 | test -z "$ac_c_werror_flag" || |
| 23367 | test ! -s conftest.err |
| 23368 | } && test -s conftest.$ac_objext; then |
| 23369 | : |
| 23370 | else |
| 23371 | $as_echo "$as_me: failed program was:" >&5 |
| 23372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23373 | |
| 23374 | ac_cv_type_mode_t=yes |
| 23375 | fi |
| 23376 | |
| 23377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23378 | else |
| 23379 | $as_echo "$as_me: failed program was:" >&5 |
| 23380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23381 | |
| 23382 | |
| 23383 | fi |
| 23384 | |
| 23385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23386 | fi |
| 23387 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 23388 | $as_echo "$ac_cv_type_mode_t" >&6; } |
| 23389 | if test "x$ac_cv_type_mode_t" = x""yes; then |
| 23390 | : |
| 23391 | else |
| 23392 | |
| 23393 | cat >>confdefs.h <<_ACEOF |
| 23394 | #define mode_t int |
| 23395 | _ACEOF |
| 23396 | |
| 23397 | fi |
| 23398 | |
| 23399 | |
| 23400 | # Define off_t to a suitable type, if standard headers do not define it. |
| 23401 | { $as_echo "$as_me:$LINENO: checking for off_t" >&5 |
| 23402 | $as_echo_n "checking for off_t... " >&6; } |
| 23403 | if test "${ac_cv_type_off_t+set}" = set; then |
| 23404 | $as_echo_n "(cached) " >&6 |
| 23405 | else |
| 23406 | ac_cv_type_off_t=no |
| 23407 | cat >conftest.$ac_ext <<_ACEOF |
| 23408 | /* confdefs.h. */ |
| 23409 | _ACEOF |
| 23410 | cat confdefs.h >>conftest.$ac_ext |
| 23411 | cat >>conftest.$ac_ext <<_ACEOF |
| 23412 | /* end confdefs.h. */ |
| 23413 | $ac_includes_default |
| 23414 | int |
| 23415 | main () |
| 23416 | { |
| 23417 | if (sizeof (off_t)) |
| 23418 | return 0; |
| 23419 | ; |
| 23420 | return 0; |
| 23421 | } |
| 23422 | _ACEOF |
| 23423 | rm -f conftest.$ac_objext |
| 23424 | if { (ac_try="$ac_compile" |
| 23425 | case "(($ac_try" in |
| 23426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23427 | *) ac_try_echo=$ac_try;; |
| 23428 | esac |
| 23429 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23430 | $as_echo "$ac_try_echo") >&5 |
| 23431 | (eval "$ac_compile") 2>conftest.er1 |
| 23432 | ac_status=$? |
| 23433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23434 | rm -f conftest.er1 |
| 23435 | cat conftest.err >&5 |
| 23436 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23437 | (exit $ac_status); } && { |
| 23438 | test -z "$ac_c_werror_flag" || |
| 23439 | test ! -s conftest.err |
| 23440 | } && test -s conftest.$ac_objext; then |
| 23441 | cat >conftest.$ac_ext <<_ACEOF |
| 23442 | /* confdefs.h. */ |
| 23443 | _ACEOF |
| 23444 | cat confdefs.h >>conftest.$ac_ext |
| 23445 | cat >>conftest.$ac_ext <<_ACEOF |
| 23446 | /* end confdefs.h. */ |
| 23447 | $ac_includes_default |
| 23448 | int |
| 23449 | main () |
| 23450 | { |
| 23451 | if (sizeof ((off_t))) |
| 23452 | return 0; |
| 23453 | ; |
| 23454 | return 0; |
| 23455 | } |
| 23456 | _ACEOF |
| 23457 | rm -f conftest.$ac_objext |
| 23458 | if { (ac_try="$ac_compile" |
| 23459 | case "(($ac_try" in |
| 23460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23461 | *) ac_try_echo=$ac_try;; |
| 23462 | esac |
| 23463 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23464 | $as_echo "$ac_try_echo") >&5 |
| 23465 | (eval "$ac_compile") 2>conftest.er1 |
| 23466 | ac_status=$? |
| 23467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23468 | rm -f conftest.er1 |
| 23469 | cat conftest.err >&5 |
| 23470 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23471 | (exit $ac_status); } && { |
| 23472 | test -z "$ac_c_werror_flag" || |
| 23473 | test ! -s conftest.err |
| 23474 | } && test -s conftest.$ac_objext; then |
| 23475 | : |
| 23476 | else |
| 23477 | $as_echo "$as_me: failed program was:" >&5 |
| 23478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23479 | |
| 23480 | ac_cv_type_off_t=yes |
| 23481 | fi |
| 23482 | |
| 23483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23484 | else |
| 23485 | $as_echo "$as_me: failed program was:" >&5 |
| 23486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23487 | |
| 23488 | |
| 23489 | fi |
| 23490 | |
| 23491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23492 | fi |
| 23493 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 23494 | $as_echo "$ac_cv_type_off_t" >&6; } |
| 23495 | if test "x$ac_cv_type_off_t" = x""yes; then |
| 23496 | : |
| 23497 | else |
| 23498 | |
| 23499 | cat >>confdefs.h <<_ACEOF |
| 23500 | #define off_t long int |
| 23501 | _ACEOF |
| 23502 | |
| 23503 | fi |
| 23504 | |
| 23505 | |
| 23506 | # Define pid_t to a suitable type, if standard headers do not define it. |
| 23507 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 23508 | $as_echo_n "checking for pid_t... " >&6; } |
| 23509 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 23510 | $as_echo_n "(cached) " >&6 |
| 23511 | else |
| 23512 | ac_cv_type_pid_t=no |
| 23513 | cat >conftest.$ac_ext <<_ACEOF |
| 23514 | /* confdefs.h. */ |
| 23515 | _ACEOF |
| 23516 | cat confdefs.h >>conftest.$ac_ext |
| 23517 | cat >>conftest.$ac_ext <<_ACEOF |
| 23518 | /* end confdefs.h. */ |
| 23519 | $ac_includes_default |
| 23520 | int |
| 23521 | main () |
| 23522 | { |
| 23523 | if (sizeof (pid_t)) |
| 23524 | return 0; |
| 23525 | ; |
| 23526 | return 0; |
| 23527 | } |
| 23528 | _ACEOF |
| 23529 | rm -f conftest.$ac_objext |
| 23530 | if { (ac_try="$ac_compile" |
| 23531 | case "(($ac_try" in |
| 23532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23533 | *) ac_try_echo=$ac_try;; |
| 23534 | esac |
| 23535 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23536 | $as_echo "$ac_try_echo") >&5 |
| 23537 | (eval "$ac_compile") 2>conftest.er1 |
| 23538 | ac_status=$? |
| 23539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23540 | rm -f conftest.er1 |
| 23541 | cat conftest.err >&5 |
| 23542 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23543 | (exit $ac_status); } && { |
| 23544 | test -z "$ac_c_werror_flag" || |
| 23545 | test ! -s conftest.err |
| 23546 | } && test -s conftest.$ac_objext; then |
| 23547 | cat >conftest.$ac_ext <<_ACEOF |
| 23548 | /* confdefs.h. */ |
| 23549 | _ACEOF |
| 23550 | cat confdefs.h >>conftest.$ac_ext |
| 23551 | cat >>conftest.$ac_ext <<_ACEOF |
| 23552 | /* end confdefs.h. */ |
| 23553 | $ac_includes_default |
| 23554 | int |
| 23555 | main () |
| 23556 | { |
| 23557 | if (sizeof ((pid_t))) |
| 23558 | return 0; |
| 23559 | ; |
| 23560 | return 0; |
| 23561 | } |
| 23562 | _ACEOF |
| 23563 | rm -f conftest.$ac_objext |
| 23564 | if { (ac_try="$ac_compile" |
| 23565 | case "(($ac_try" in |
| 23566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23567 | *) ac_try_echo=$ac_try;; |
| 23568 | esac |
| 23569 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23570 | $as_echo "$ac_try_echo") >&5 |
| 23571 | (eval "$ac_compile") 2>conftest.er1 |
| 23572 | ac_status=$? |
| 23573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23574 | rm -f conftest.er1 |
| 23575 | cat conftest.err >&5 |
| 23576 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23577 | (exit $ac_status); } && { |
| 23578 | test -z "$ac_c_werror_flag" || |
| 23579 | test ! -s conftest.err |
| 23580 | } && test -s conftest.$ac_objext; then |
| 23581 | : |
| 23582 | else |
| 23583 | $as_echo "$as_me: failed program was:" >&5 |
| 23584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23585 | |
| 23586 | ac_cv_type_pid_t=yes |
| 23587 | fi |
| 23588 | |
| 23589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23590 | else |
| 23591 | $as_echo "$as_me: failed program was:" >&5 |
| 23592 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23593 | |
| 23594 | |
| 23595 | fi |
| 23596 | |
| 23597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23598 | fi |
| 23599 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 23600 | $as_echo "$ac_cv_type_pid_t" >&6; } |
| 23601 | if test "x$ac_cv_type_pid_t" = x""yes; then |
| 23602 | : |
| 23603 | else |
| 23604 | |
| 23605 | cat >>confdefs.h <<_ACEOF |
| 23606 | #define pid_t int |
| 23607 | _ACEOF |
| 23608 | |
| 23609 | fi |
| 23610 | |
| 23611 | |
| 23612 | # Define size_t to a suitable type, if standard headers do not define it. |
| 23613 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 |
| 23614 | $as_echo_n "checking for size_t... " >&6; } |
| 23615 | if test "${ac_cv_type_size_t+set}" = set; then |
| 23616 | $as_echo_n "(cached) " >&6 |
| 23617 | else |
| 23618 | ac_cv_type_size_t=no |
| 23619 | cat >conftest.$ac_ext <<_ACEOF |
| 23620 | /* confdefs.h. */ |
| 23621 | _ACEOF |
| 23622 | cat confdefs.h >>conftest.$ac_ext |
| 23623 | cat >>conftest.$ac_ext <<_ACEOF |
| 23624 | /* end confdefs.h. */ |
| 23625 | $ac_includes_default |
| 23626 | int |
| 23627 | main () |
| 23628 | { |
| 23629 | if (sizeof (size_t)) |
| 23630 | return 0; |
| 23631 | ; |
| 23632 | return 0; |
| 23633 | } |
| 23634 | _ACEOF |
| 23635 | rm -f conftest.$ac_objext |
| 23636 | if { (ac_try="$ac_compile" |
| 23637 | case "(($ac_try" in |
| 23638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23639 | *) ac_try_echo=$ac_try;; |
| 23640 | esac |
| 23641 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23642 | $as_echo "$ac_try_echo") >&5 |
| 23643 | (eval "$ac_compile") 2>conftest.er1 |
| 23644 | ac_status=$? |
| 23645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23646 | rm -f conftest.er1 |
| 23647 | cat conftest.err >&5 |
| 23648 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23649 | (exit $ac_status); } && { |
| 23650 | test -z "$ac_c_werror_flag" || |
| 23651 | test ! -s conftest.err |
| 23652 | } && test -s conftest.$ac_objext; then |
| 23653 | cat >conftest.$ac_ext <<_ACEOF |
| 23654 | /* confdefs.h. */ |
| 23655 | _ACEOF |
| 23656 | cat confdefs.h >>conftest.$ac_ext |
| 23657 | cat >>conftest.$ac_ext <<_ACEOF |
| 23658 | /* end confdefs.h. */ |
| 23659 | $ac_includes_default |
| 23660 | int |
| 23661 | main () |
| 23662 | { |
| 23663 | if (sizeof ((size_t))) |
| 23664 | return 0; |
| 23665 | ; |
| 23666 | return 0; |
| 23667 | } |
| 23668 | _ACEOF |
| 23669 | rm -f conftest.$ac_objext |
| 23670 | if { (ac_try="$ac_compile" |
| 23671 | case "(($ac_try" in |
| 23672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23673 | *) ac_try_echo=$ac_try;; |
| 23674 | esac |
| 23675 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23676 | $as_echo "$ac_try_echo") >&5 |
| 23677 | (eval "$ac_compile") 2>conftest.er1 |
| 23678 | ac_status=$? |
| 23679 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23680 | rm -f conftest.er1 |
| 23681 | cat conftest.err >&5 |
| 23682 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23683 | (exit $ac_status); } && { |
| 23684 | test -z "$ac_c_werror_flag" || |
| 23685 | test ! -s conftest.err |
| 23686 | } && test -s conftest.$ac_objext; then |
| 23687 | : |
| 23688 | else |
| 23689 | $as_echo "$as_me: failed program was:" >&5 |
| 23690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23691 | |
| 23692 | ac_cv_type_size_t=yes |
| 23693 | fi |
| 23694 | |
| 23695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23696 | else |
| 23697 | $as_echo "$as_me: failed program was:" >&5 |
| 23698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23699 | |
| 23700 | |
| 23701 | fi |
| 23702 | |
| 23703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23704 | fi |
| 23705 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 23706 | $as_echo "$ac_cv_type_size_t" >&6; } |
| 23707 | if test "x$ac_cv_type_size_t" = x""yes; then |
| 23708 | : |
| 23709 | else |
| 23710 | |
| 23711 | cat >>confdefs.h <<_ACEOF |
| 23712 | #define size_t unsigned int |
| 23713 | _ACEOF |
| 23714 | |
| 23715 | fi |
| 23716 | |
| 23717 | |
| 23718 | # Define ssize_t to a suitable type, if standard headers do not define it. |
| 23719 | { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 23720 | $as_echo_n "checking for ssize_t... " >&6; } |
| 23721 | if test "${ac_cv_type_ssize_t+set}" = set; then |
| 23722 | $as_echo_n "(cached) " >&6 |
| 23723 | else |
| 23724 | ac_cv_type_ssize_t=no |
| 23725 | cat >conftest.$ac_ext <<_ACEOF |
| 23726 | /* confdefs.h. */ |
| 23727 | _ACEOF |
| 23728 | cat confdefs.h >>conftest.$ac_ext |
| 23729 | cat >>conftest.$ac_ext <<_ACEOF |
| 23730 | /* end confdefs.h. */ |
| 23731 | $ac_includes_default |
| 23732 | int |
| 23733 | main () |
| 23734 | { |
| 23735 | if (sizeof (ssize_t)) |
| 23736 | return 0; |
| 23737 | ; |
| 23738 | return 0; |
| 23739 | } |
| 23740 | _ACEOF |
| 23741 | rm -f conftest.$ac_objext |
| 23742 | if { (ac_try="$ac_compile" |
| 23743 | case "(($ac_try" in |
| 23744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23745 | *) ac_try_echo=$ac_try;; |
| 23746 | esac |
| 23747 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23748 | $as_echo "$ac_try_echo") >&5 |
| 23749 | (eval "$ac_compile") 2>conftest.er1 |
| 23750 | ac_status=$? |
| 23751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23752 | rm -f conftest.er1 |
| 23753 | cat conftest.err >&5 |
| 23754 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23755 | (exit $ac_status); } && { |
| 23756 | test -z "$ac_c_werror_flag" || |
| 23757 | test ! -s conftest.err |
| 23758 | } && test -s conftest.$ac_objext; then |
| 23759 | cat >conftest.$ac_ext <<_ACEOF |
| 23760 | /* confdefs.h. */ |
| 23761 | _ACEOF |
| 23762 | cat confdefs.h >>conftest.$ac_ext |
| 23763 | cat >>conftest.$ac_ext <<_ACEOF |
| 23764 | /* end confdefs.h. */ |
| 23765 | $ac_includes_default |
| 23766 | int |
| 23767 | main () |
| 23768 | { |
| 23769 | if (sizeof ((ssize_t))) |
| 23770 | return 0; |
| 23771 | ; |
| 23772 | return 0; |
| 23773 | } |
| 23774 | _ACEOF |
| 23775 | rm -f conftest.$ac_objext |
| 23776 | if { (ac_try="$ac_compile" |
| 23777 | case "(($ac_try" in |
| 23778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23779 | *) ac_try_echo=$ac_try;; |
| 23780 | esac |
| 23781 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23782 | $as_echo "$ac_try_echo") >&5 |
| 23783 | (eval "$ac_compile") 2>conftest.er1 |
| 23784 | ac_status=$? |
| 23785 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23786 | rm -f conftest.er1 |
| 23787 | cat conftest.err >&5 |
| 23788 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23789 | (exit $ac_status); } && { |
| 23790 | test -z "$ac_c_werror_flag" || |
| 23791 | test ! -s conftest.err |
| 23792 | } && test -s conftest.$ac_objext; then |
| 23793 | : |
| 23794 | else |
| 23795 | $as_echo "$as_me: failed program was:" >&5 |
| 23796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23797 | |
| 23798 | ac_cv_type_ssize_t=yes |
| 23799 | fi |
| 23800 | |
| 23801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23802 | else |
| 23803 | $as_echo "$as_me: failed program was:" >&5 |
| 23804 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23805 | |
| 23806 | |
| 23807 | fi |
| 23808 | |
| 23809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23810 | fi |
| 23811 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 23812 | $as_echo "$ac_cv_type_ssize_t" >&6; } |
| 23813 | if test "x$ac_cv_type_ssize_t" = x""yes; then |
| 23814 | : |
| 23815 | else |
| 23816 | |
| 23817 | cat >>confdefs.h <<_ACEOF |
| 23818 | #define ssize_t int |
| 23819 | _ACEOF |
| 23820 | |
| 23821 | fi |
| 23822 | |
| 23823 | |
| 23824 | # If the C compiler supports a working long double type with more range |
| 23825 | # or precision than the double type, define HAVE_LONG_DOUBLE. |
| 23826 | |
| 23827 | { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5 |
| 23828 | $as_echo_n "checking for long double with more range or precision than double... " >&6; } |
| 23829 | if test "${ac_cv_type_long_double_wider+set}" = set; then |
| 23830 | $as_echo_n "(cached) " >&6 |
| 23831 | else |
| 23832 | cat >conftest.$ac_ext <<_ACEOF |
| 23833 | /* confdefs.h. */ |
| 23834 | _ACEOF |
| 23835 | cat confdefs.h >>conftest.$ac_ext |
| 23836 | cat >>conftest.$ac_ext <<_ACEOF |
| 23837 | /* end confdefs.h. */ |
| 23838 | #include <float.h> |
| 23839 | long double const a[] = |
| 23840 | { |
| 23841 | 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, |
| 23842 | LDBL_MIN, LDBL_MAX, LDBL_EPSILON |
| 23843 | }; |
| 23844 | long double |
| 23845 | f (long double x) |
| 23846 | { |
| 23847 | return ((x + (unsigned long int) 10) * (-1 / x) + a[0] |
| 23848 | + (x ? f (x) : 'c')); |
| 23849 | } |
| 23850 | |
| 23851 | int |
| 23852 | main () |
| 23853 | { |
| 23854 | static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) |
| 23855 | + (DBL_MANT_DIG < LDBL_MANT_DIG) |
| 23856 | - (LDBL_MAX_EXP < DBL_MAX_EXP) |
| 23857 | - (LDBL_MANT_DIG < DBL_MANT_DIG))) |
| 23858 | && (int) LDBL_EPSILON == 0 |
| 23859 | )]; |
| 23860 | test_array [0] = 0 |
| 23861 | |
| 23862 | ; |
| 23863 | return 0; |
| 23864 | } |
| 23865 | _ACEOF |
| 23866 | rm -f conftest.$ac_objext |
| 23867 | if { (ac_try="$ac_compile" |
| 23868 | case "(($ac_try" in |
| 23869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23870 | *) ac_try_echo=$ac_try;; |
| 23871 | esac |
| 23872 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23873 | $as_echo "$ac_try_echo") >&5 |
| 23874 | (eval "$ac_compile") 2>conftest.er1 |
| 23875 | ac_status=$? |
| 23876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23877 | rm -f conftest.er1 |
| 23878 | cat conftest.err >&5 |
| 23879 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23880 | (exit $ac_status); } && { |
| 23881 | test -z "$ac_c_werror_flag" || |
| 23882 | test ! -s conftest.err |
| 23883 | } && test -s conftest.$ac_objext; then |
| 23884 | ac_cv_type_long_double_wider=yes |
| 23885 | else |
| 23886 | $as_echo "$as_me: failed program was:" >&5 |
| 23887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23888 | |
| 23889 | ac_cv_type_long_double_wider=no |
| 23890 | fi |
| 23891 | |
| 23892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23893 | fi |
| 23894 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5 |
| 23895 | $as_echo "$ac_cv_type_long_double_wider" >&6; } |
| 23896 | if test $ac_cv_type_long_double_wider = yes; then |
| 23897 | |
| 23898 | cat >>confdefs.h <<\_ACEOF |
| 23899 | #define HAVE_LONG_DOUBLE_WIDER 1 |
| 23900 | _ACEOF |
| 23901 | |
| 23902 | fi |
| 23903 | |
| 23904 | |
| 23905 | # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the |
| 23906 | # C compiler predefines it. |
| 23907 | |
| 23908 | { $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 23909 | $as_echo_n "checking whether char is unsigned... " >&6; } |
| 23910 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 23911 | $as_echo_n "(cached) " >&6 |
| 23912 | else |
| 23913 | cat >conftest.$ac_ext <<_ACEOF |
| 23914 | /* confdefs.h. */ |
| 23915 | _ACEOF |
| 23916 | cat confdefs.h >>conftest.$ac_ext |
| 23917 | cat >>conftest.$ac_ext <<_ACEOF |
| 23918 | /* end confdefs.h. */ |
| 23919 | $ac_includes_default |
| 23920 | int |
| 23921 | main () |
| 23922 | { |
| 23923 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 23924 | test_array [0] = 0 |
| 23925 | |
| 23926 | ; |
| 23927 | return 0; |
| 23928 | } |
| 23929 | _ACEOF |
| 23930 | rm -f conftest.$ac_objext |
| 23931 | if { (ac_try="$ac_compile" |
| 23932 | case "(($ac_try" in |
| 23933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23934 | *) ac_try_echo=$ac_try;; |
| 23935 | esac |
| 23936 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 23937 | $as_echo "$ac_try_echo") >&5 |
| 23938 | (eval "$ac_compile") 2>conftest.er1 |
| 23939 | ac_status=$? |
| 23940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23941 | rm -f conftest.er1 |
| 23942 | cat conftest.err >&5 |
| 23943 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23944 | (exit $ac_status); } && { |
| 23945 | test -z "$ac_c_werror_flag" || |
| 23946 | test ! -s conftest.err |
| 23947 | } && test -s conftest.$ac_objext; then |
| 23948 | ac_cv_c_char_unsigned=no |
| 23949 | else |
| 23950 | $as_echo "$as_me: failed program was:" >&5 |
| 23951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23952 | |
| 23953 | ac_cv_c_char_unsigned=yes |
| 23954 | fi |
| 23955 | |
| 23956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23957 | fi |
| 23958 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 23959 | $as_echo "$ac_cv_c_char_unsigned" >&6; } |
| 23960 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 23961 | cat >>confdefs.h <<\_ACEOF |
| 23962 | #define __CHAR_UNSIGNED__ 1 |
| 23963 | _ACEOF |
| 23964 | |
| 23965 | fi |
| 23966 | |
| 23967 | |
| 23968 | # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT |
| 23969 | # The cast to long int works around a bug in the HP C Compiler |
| 23970 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23971 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23972 | # This bug is HP SR number 8606223364. |
| 23973 | { $as_echo "$as_me:$LINENO: checking size of signed short" >&5 |
| 23974 | $as_echo_n "checking size of signed short... " >&6; } |
| 23975 | if test "${ac_cv_sizeof_signed_short+set}" = set; then |
| 23976 | $as_echo_n "(cached) " >&6 |
| 23977 | else |
| 23978 | if test "$cross_compiling" = yes; then |
| 23979 | # Depending upon the size, compute the lo and hi bounds. |
| 23980 | cat >conftest.$ac_ext <<_ACEOF |
| 23981 | /* confdefs.h. */ |
| 23982 | _ACEOF |
| 23983 | cat confdefs.h >>conftest.$ac_ext |
| 23984 | cat >>conftest.$ac_ext <<_ACEOF |
| 23985 | /* end confdefs.h. */ |
| 23986 | $ac_includes_default |
| 23987 | int |
| 23988 | main () |
| 23989 | { |
| 23990 | static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= 0)]; |
| 23991 | test_array [0] = 0 |
| 23992 | |
| 23993 | ; |
| 23994 | return 0; |
| 23995 | } |
| 23996 | _ACEOF |
| 23997 | rm -f conftest.$ac_objext |
| 23998 | if { (ac_try="$ac_compile" |
| 23999 | case "(($ac_try" in |
| 24000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24001 | *) ac_try_echo=$ac_try;; |
| 24002 | esac |
| 24003 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24004 | $as_echo "$ac_try_echo") >&5 |
| 24005 | (eval "$ac_compile") 2>conftest.er1 |
| 24006 | ac_status=$? |
| 24007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24008 | rm -f conftest.er1 |
| 24009 | cat conftest.err >&5 |
| 24010 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24011 | (exit $ac_status); } && { |
| 24012 | test -z "$ac_c_werror_flag" || |
| 24013 | test ! -s conftest.err |
| 24014 | } && test -s conftest.$ac_objext; then |
| 24015 | ac_lo=0 ac_mid=0 |
| 24016 | while :; do |
| 24017 | cat >conftest.$ac_ext <<_ACEOF |
| 24018 | /* confdefs.h. */ |
| 24019 | _ACEOF |
| 24020 | cat confdefs.h >>conftest.$ac_ext |
| 24021 | cat >>conftest.$ac_ext <<_ACEOF |
| 24022 | /* end confdefs.h. */ |
| 24023 | $ac_includes_default |
| 24024 | int |
| 24025 | main () |
| 24026 | { |
| 24027 | static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)]; |
| 24028 | test_array [0] = 0 |
| 24029 | |
| 24030 | ; |
| 24031 | return 0; |
| 24032 | } |
| 24033 | _ACEOF |
| 24034 | rm -f conftest.$ac_objext |
| 24035 | if { (ac_try="$ac_compile" |
| 24036 | case "(($ac_try" in |
| 24037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24038 | *) ac_try_echo=$ac_try;; |
| 24039 | esac |
| 24040 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24041 | $as_echo "$ac_try_echo") >&5 |
| 24042 | (eval "$ac_compile") 2>conftest.er1 |
| 24043 | ac_status=$? |
| 24044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24045 | rm -f conftest.er1 |
| 24046 | cat conftest.err >&5 |
| 24047 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24048 | (exit $ac_status); } && { |
| 24049 | test -z "$ac_c_werror_flag" || |
| 24050 | test ! -s conftest.err |
| 24051 | } && test -s conftest.$ac_objext; then |
| 24052 | ac_hi=$ac_mid; break |
| 24053 | else |
| 24054 | $as_echo "$as_me: failed program was:" >&5 |
| 24055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24056 | |
| 24057 | ac_lo=`expr $ac_mid + 1` |
| 24058 | if test $ac_lo -le $ac_mid; then |
| 24059 | ac_lo= ac_hi= |
| 24060 | break |
| 24061 | fi |
| 24062 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 24063 | fi |
| 24064 | |
| 24065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24066 | done |
| 24067 | else |
| 24068 | $as_echo "$as_me: failed program was:" >&5 |
| 24069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24070 | |
| 24071 | cat >conftest.$ac_ext <<_ACEOF |
| 24072 | /* confdefs.h. */ |
| 24073 | _ACEOF |
| 24074 | cat confdefs.h >>conftest.$ac_ext |
| 24075 | cat >>conftest.$ac_ext <<_ACEOF |
| 24076 | /* end confdefs.h. */ |
| 24077 | $ac_includes_default |
| 24078 | int |
| 24079 | main () |
| 24080 | { |
| 24081 | static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) < 0)]; |
| 24082 | test_array [0] = 0 |
| 24083 | |
| 24084 | ; |
| 24085 | return 0; |
| 24086 | } |
| 24087 | _ACEOF |
| 24088 | rm -f conftest.$ac_objext |
| 24089 | if { (ac_try="$ac_compile" |
| 24090 | case "(($ac_try" in |
| 24091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24092 | *) ac_try_echo=$ac_try;; |
| 24093 | esac |
| 24094 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24095 | $as_echo "$ac_try_echo") >&5 |
| 24096 | (eval "$ac_compile") 2>conftest.er1 |
| 24097 | ac_status=$? |
| 24098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24099 | rm -f conftest.er1 |
| 24100 | cat conftest.err >&5 |
| 24101 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24102 | (exit $ac_status); } && { |
| 24103 | test -z "$ac_c_werror_flag" || |
| 24104 | test ! -s conftest.err |
| 24105 | } && test -s conftest.$ac_objext; then |
| 24106 | ac_hi=-1 ac_mid=-1 |
| 24107 | while :; do |
| 24108 | cat >conftest.$ac_ext <<_ACEOF |
| 24109 | /* confdefs.h. */ |
| 24110 | _ACEOF |
| 24111 | cat confdefs.h >>conftest.$ac_ext |
| 24112 | cat >>conftest.$ac_ext <<_ACEOF |
| 24113 | /* end confdefs.h. */ |
| 24114 | $ac_includes_default |
| 24115 | int |
| 24116 | main () |
| 24117 | { |
| 24118 | static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= $ac_mid)]; |
| 24119 | test_array [0] = 0 |
| 24120 | |
| 24121 | ; |
| 24122 | return 0; |
| 24123 | } |
| 24124 | _ACEOF |
| 24125 | rm -f conftest.$ac_objext |
| 24126 | if { (ac_try="$ac_compile" |
| 24127 | case "(($ac_try" in |
| 24128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24129 | *) ac_try_echo=$ac_try;; |
| 24130 | esac |
| 24131 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24132 | $as_echo "$ac_try_echo") >&5 |
| 24133 | (eval "$ac_compile") 2>conftest.er1 |
| 24134 | ac_status=$? |
| 24135 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24136 | rm -f conftest.er1 |
| 24137 | cat conftest.err >&5 |
| 24138 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24139 | (exit $ac_status); } && { |
| 24140 | test -z "$ac_c_werror_flag" || |
| 24141 | test ! -s conftest.err |
| 24142 | } && test -s conftest.$ac_objext; then |
| 24143 | ac_lo=$ac_mid; break |
| 24144 | else |
| 24145 | $as_echo "$as_me: failed program was:" >&5 |
| 24146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24147 | |
| 24148 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 24149 | if test $ac_mid -le $ac_hi; then |
| 24150 | ac_lo= ac_hi= |
| 24151 | break |
| 24152 | fi |
| 24153 | ac_mid=`expr 2 '*' $ac_mid` |
| 24154 | fi |
| 24155 | |
| 24156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24157 | done |
| 24158 | else |
| 24159 | $as_echo "$as_me: failed program was:" >&5 |
| 24160 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24161 | |
| 24162 | ac_lo= ac_hi= |
| 24163 | fi |
| 24164 | |
| 24165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24166 | fi |
| 24167 | |
| 24168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24169 | # Binary search between lo and hi bounds. |
| 24170 | while test "x$ac_lo" != "x$ac_hi"; do |
| 24171 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 24172 | cat >conftest.$ac_ext <<_ACEOF |
| 24173 | /* confdefs.h. */ |
| 24174 | _ACEOF |
| 24175 | cat confdefs.h >>conftest.$ac_ext |
| 24176 | cat >>conftest.$ac_ext <<_ACEOF |
| 24177 | /* end confdefs.h. */ |
| 24178 | $ac_includes_default |
| 24179 | int |
| 24180 | main () |
| 24181 | { |
| 24182 | static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)]; |
| 24183 | test_array [0] = 0 |
| 24184 | |
| 24185 | ; |
| 24186 | return 0; |
| 24187 | } |
| 24188 | _ACEOF |
| 24189 | rm -f conftest.$ac_objext |
| 24190 | if { (ac_try="$ac_compile" |
| 24191 | case "(($ac_try" in |
| 24192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24193 | *) ac_try_echo=$ac_try;; |
| 24194 | esac |
| 24195 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24196 | $as_echo "$ac_try_echo") >&5 |
| 24197 | (eval "$ac_compile") 2>conftest.er1 |
| 24198 | ac_status=$? |
| 24199 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24200 | rm -f conftest.er1 |
| 24201 | cat conftest.err >&5 |
| 24202 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24203 | (exit $ac_status); } && { |
| 24204 | test -z "$ac_c_werror_flag" || |
| 24205 | test ! -s conftest.err |
| 24206 | } && test -s conftest.$ac_objext; then |
| 24207 | ac_hi=$ac_mid |
| 24208 | else |
| 24209 | $as_echo "$as_me: failed program was:" >&5 |
| 24210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24211 | |
| 24212 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 24213 | fi |
| 24214 | |
| 24215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24216 | done |
| 24217 | case $ac_lo in |
| 24218 | ?*) ac_cv_sizeof_signed_short=$ac_lo;; |
| 24219 | '') if test "$ac_cv_type_signed_short" = yes; then |
| 24220 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 24221 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 24222 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short) |
| 24223 | See \`config.log' for more details." >&5 |
| 24224 | $as_echo "$as_me: error: cannot compute sizeof (signed short) |
| 24225 | See \`config.log' for more details." >&2;} |
| 24226 | { (exit 77); exit 77; }; }; } |
| 24227 | else |
| 24228 | ac_cv_sizeof_signed_short=0 |
| 24229 | fi ;; |
| 24230 | esac |
| 24231 | else |
| 24232 | cat >conftest.$ac_ext <<_ACEOF |
| 24233 | /* confdefs.h. */ |
| 24234 | _ACEOF |
| 24235 | cat confdefs.h >>conftest.$ac_ext |
| 24236 | cat >>conftest.$ac_ext <<_ACEOF |
| 24237 | /* end confdefs.h. */ |
| 24238 | $ac_includes_default |
| 24239 | static long int longval () { return (long int) (sizeof (signed short)); } |
| 24240 | static unsigned long int ulongval () { return (long int) (sizeof (signed short)); } |
| 24241 | #include <stdio.h> |
| 24242 | #include <stdlib.h> |
| 24243 | int |
| 24244 | main () |
| 24245 | { |
| 24246 | |
| 24247 | FILE *f = fopen ("conftest.val", "w"); |
| 24248 | if (! f) |
| 24249 | return 1; |
| 24250 | if (((long int) (sizeof (signed short))) < 0) |
| 24251 | { |
| 24252 | long int i = longval (); |
| 24253 | if (i != ((long int) (sizeof (signed short)))) |
| 24254 | return 1; |
| 24255 | fprintf (f, "%ld", i); |
| 24256 | } |
| 24257 | else |
| 24258 | { |
| 24259 | unsigned long int i = ulongval (); |
| 24260 | if (i != ((long int) (sizeof (signed short)))) |
| 24261 | return 1; |
| 24262 | fprintf (f, "%lu", i); |
| 24263 | } |
| 24264 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 24265 | on some platforms. */ |
| 24266 | return ferror (f) || fclose (f) != 0; |
| 24267 | |
| 24268 | ; |
| 24269 | return 0; |
| 24270 | } |
| 24271 | _ACEOF |
| 24272 | rm -f conftest$ac_exeext |
| 24273 | if { (ac_try="$ac_link" |
| 24274 | case "(($ac_try" in |
| 24275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24276 | *) ac_try_echo=$ac_try;; |
| 24277 | esac |
| 24278 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24279 | $as_echo "$ac_try_echo") >&5 |
| 24280 | (eval "$ac_link") 2>&5 |
| 24281 | ac_status=$? |
| 24282 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24283 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24284 | { (case "(($ac_try" in |
| 24285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24286 | *) ac_try_echo=$ac_try;; |
| 24287 | esac |
| 24288 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24289 | $as_echo "$ac_try_echo") >&5 |
| 24290 | (eval "$ac_try") 2>&5 |
| 24291 | ac_status=$? |
| 24292 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24293 | (exit $ac_status); }; }; then |
| 24294 | ac_cv_sizeof_signed_short=`cat conftest.val` |
| 24295 | else |
| 24296 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 24297 | $as_echo "$as_me: failed program was:" >&5 |
| 24298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24299 | |
| 24300 | ( exit $ac_status ) |
| 24301 | if test "$ac_cv_type_signed_short" = yes; then |
| 24302 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 24303 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 24304 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short) |
| 24305 | See \`config.log' for more details." >&5 |
| 24306 | $as_echo "$as_me: error: cannot compute sizeof (signed short) |
| 24307 | See \`config.log' for more details." >&2;} |
| 24308 | { (exit 77); exit 77; }; }; } |
| 24309 | else |
| 24310 | ac_cv_sizeof_signed_short=0 |
| 24311 | fi |
| 24312 | fi |
| 24313 | rm -rf conftest.dSYM |
| 24314 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24315 | fi |
| 24316 | rm -f conftest.val |
| 24317 | fi |
| 24318 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5 |
| 24319 | $as_echo "$ac_cv_sizeof_signed_short" >&6; } |
| 24320 | |
| 24321 | |
| 24322 | |
| 24323 | cat >>confdefs.h <<_ACEOF |
| 24324 | #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short |
| 24325 | _ACEOF |
| 24326 | |
| 24327 | |
| 24328 | |
| 24329 | # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT |
| 24330 | # The cast to long int works around a bug in the HP C Compiler |
| 24331 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 24332 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 24333 | # This bug is HP SR number 8606223364. |
| 24334 | { $as_echo "$as_me:$LINENO: checking size of unsigned short" >&5 |
| 24335 | $as_echo_n "checking size of unsigned short... " >&6; } |
| 24336 | if test "${ac_cv_sizeof_unsigned_short+set}" = set; then |
| 24337 | $as_echo_n "(cached) " >&6 |
| 24338 | else |
| 24339 | if test "$cross_compiling" = yes; then |
| 24340 | # Depending upon the size, compute the lo and hi bounds. |
| 24341 | cat >conftest.$ac_ext <<_ACEOF |
| 24342 | /* confdefs.h. */ |
| 24343 | _ACEOF |
| 24344 | cat confdefs.h >>conftest.$ac_ext |
| 24345 | cat >>conftest.$ac_ext <<_ACEOF |
| 24346 | /* end confdefs.h. */ |
| 24347 | $ac_includes_default |
| 24348 | int |
| 24349 | main () |
| 24350 | { |
| 24351 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= 0)]; |
| 24352 | test_array [0] = 0 |
| 24353 | |
| 24354 | ; |
| 24355 | return 0; |
| 24356 | } |
| 24357 | _ACEOF |
| 24358 | rm -f conftest.$ac_objext |
| 24359 | if { (ac_try="$ac_compile" |
| 24360 | case "(($ac_try" in |
| 24361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24362 | *) ac_try_echo=$ac_try;; |
| 24363 | esac |
| 24364 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24365 | $as_echo "$ac_try_echo") >&5 |
| 24366 | (eval "$ac_compile") 2>conftest.er1 |
| 24367 | ac_status=$? |
| 24368 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24369 | rm -f conftest.er1 |
| 24370 | cat conftest.err >&5 |
| 24371 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24372 | (exit $ac_status); } && { |
| 24373 | test -z "$ac_c_werror_flag" || |
| 24374 | test ! -s conftest.err |
| 24375 | } && test -s conftest.$ac_objext; then |
| 24376 | ac_lo=0 ac_mid=0 |
| 24377 | while :; do |
| 24378 | cat >conftest.$ac_ext <<_ACEOF |
| 24379 | /* confdefs.h. */ |
| 24380 | _ACEOF |
| 24381 | cat confdefs.h >>conftest.$ac_ext |
| 24382 | cat >>conftest.$ac_ext <<_ACEOF |
| 24383 | /* end confdefs.h. */ |
| 24384 | $ac_includes_default |
| 24385 | int |
| 24386 | main () |
| 24387 | { |
| 24388 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)]; |
| 24389 | test_array [0] = 0 |
| 24390 | |
| 24391 | ; |
| 24392 | return 0; |
| 24393 | } |
| 24394 | _ACEOF |
| 24395 | rm -f conftest.$ac_objext |
| 24396 | if { (ac_try="$ac_compile" |
| 24397 | case "(($ac_try" in |
| 24398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24399 | *) ac_try_echo=$ac_try;; |
| 24400 | esac |
| 24401 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24402 | $as_echo "$ac_try_echo") >&5 |
| 24403 | (eval "$ac_compile") 2>conftest.er1 |
| 24404 | ac_status=$? |
| 24405 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24406 | rm -f conftest.er1 |
| 24407 | cat conftest.err >&5 |
| 24408 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24409 | (exit $ac_status); } && { |
| 24410 | test -z "$ac_c_werror_flag" || |
| 24411 | test ! -s conftest.err |
| 24412 | } && test -s conftest.$ac_objext; then |
| 24413 | ac_hi=$ac_mid; break |
| 24414 | else |
| 24415 | $as_echo "$as_me: failed program was:" >&5 |
| 24416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24417 | |
| 24418 | ac_lo=`expr $ac_mid + 1` |
| 24419 | if test $ac_lo -le $ac_mid; then |
| 24420 | ac_lo= ac_hi= |
| 24421 | break |
| 24422 | fi |
| 24423 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 24424 | fi |
| 24425 | |
| 24426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24427 | done |
| 24428 | else |
| 24429 | $as_echo "$as_me: failed program was:" >&5 |
| 24430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24431 | |
| 24432 | cat >conftest.$ac_ext <<_ACEOF |
| 24433 | /* confdefs.h. */ |
| 24434 | _ACEOF |
| 24435 | cat confdefs.h >>conftest.$ac_ext |
| 24436 | cat >>conftest.$ac_ext <<_ACEOF |
| 24437 | /* end confdefs.h. */ |
| 24438 | $ac_includes_default |
| 24439 | int |
| 24440 | main () |
| 24441 | { |
| 24442 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) < 0)]; |
| 24443 | test_array [0] = 0 |
| 24444 | |
| 24445 | ; |
| 24446 | return 0; |
| 24447 | } |
| 24448 | _ACEOF |
| 24449 | rm -f conftest.$ac_objext |
| 24450 | if { (ac_try="$ac_compile" |
| 24451 | case "(($ac_try" in |
| 24452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24453 | *) ac_try_echo=$ac_try;; |
| 24454 | esac |
| 24455 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24456 | $as_echo "$ac_try_echo") >&5 |
| 24457 | (eval "$ac_compile") 2>conftest.er1 |
| 24458 | ac_status=$? |
| 24459 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24460 | rm -f conftest.er1 |
| 24461 | cat conftest.err >&5 |
| 24462 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24463 | (exit $ac_status); } && { |
| 24464 | test -z "$ac_c_werror_flag" || |
| 24465 | test ! -s conftest.err |
| 24466 | } && test -s conftest.$ac_objext; then |
| 24467 | ac_hi=-1 ac_mid=-1 |
| 24468 | while :; do |
| 24469 | cat >conftest.$ac_ext <<_ACEOF |
| 24470 | /* confdefs.h. */ |
| 24471 | _ACEOF |
| 24472 | cat confdefs.h >>conftest.$ac_ext |
| 24473 | cat >>conftest.$ac_ext <<_ACEOF |
| 24474 | /* end confdefs.h. */ |
| 24475 | $ac_includes_default |
| 24476 | int |
| 24477 | main () |
| 24478 | { |
| 24479 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= $ac_mid)]; |
| 24480 | test_array [0] = 0 |
| 24481 | |
| 24482 | ; |
| 24483 | return 0; |
| 24484 | } |
| 24485 | _ACEOF |
| 24486 | rm -f conftest.$ac_objext |
| 24487 | if { (ac_try="$ac_compile" |
| 24488 | case "(($ac_try" in |
| 24489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24490 | *) ac_try_echo=$ac_try;; |
| 24491 | esac |
| 24492 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24493 | $as_echo "$ac_try_echo") >&5 |
| 24494 | (eval "$ac_compile") 2>conftest.er1 |
| 24495 | ac_status=$? |
| 24496 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24497 | rm -f conftest.er1 |
| 24498 | cat conftest.err >&5 |
| 24499 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24500 | (exit $ac_status); } && { |
| 24501 | test -z "$ac_c_werror_flag" || |
| 24502 | test ! -s conftest.err |
| 24503 | } && test -s conftest.$ac_objext; then |
| 24504 | ac_lo=$ac_mid; break |
| 24505 | else |
| 24506 | $as_echo "$as_me: failed program was:" >&5 |
| 24507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24508 | |
| 24509 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 24510 | if test $ac_mid -le $ac_hi; then |
| 24511 | ac_lo= ac_hi= |
| 24512 | break |
| 24513 | fi |
| 24514 | ac_mid=`expr 2 '*' $ac_mid` |
| 24515 | fi |
| 24516 | |
| 24517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24518 | done |
| 24519 | else |
| 24520 | $as_echo "$as_me: failed program was:" >&5 |
| 24521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24522 | |
| 24523 | ac_lo= ac_hi= |
| 24524 | fi |
| 24525 | |
| 24526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24527 | fi |
| 24528 | |
| 24529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24530 | # Binary search between lo and hi bounds. |
| 24531 | while test "x$ac_lo" != "x$ac_hi"; do |
| 24532 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 24533 | cat >conftest.$ac_ext <<_ACEOF |
| 24534 | /* confdefs.h. */ |
| 24535 | _ACEOF |
| 24536 | cat confdefs.h >>conftest.$ac_ext |
| 24537 | cat >>conftest.$ac_ext <<_ACEOF |
| 24538 | /* end confdefs.h. */ |
| 24539 | $ac_includes_default |
| 24540 | int |
| 24541 | main () |
| 24542 | { |
| 24543 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)]; |
| 24544 | test_array [0] = 0 |
| 24545 | |
| 24546 | ; |
| 24547 | return 0; |
| 24548 | } |
| 24549 | _ACEOF |
| 24550 | rm -f conftest.$ac_objext |
| 24551 | if { (ac_try="$ac_compile" |
| 24552 | case "(($ac_try" in |
| 24553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24554 | *) ac_try_echo=$ac_try;; |
| 24555 | esac |
| 24556 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24557 | $as_echo "$ac_try_echo") >&5 |
| 24558 | (eval "$ac_compile") 2>conftest.er1 |
| 24559 | ac_status=$? |
| 24560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24561 | rm -f conftest.er1 |
| 24562 | cat conftest.err >&5 |
| 24563 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24564 | (exit $ac_status); } && { |
| 24565 | test -z "$ac_c_werror_flag" || |
| 24566 | test ! -s conftest.err |
| 24567 | } && test -s conftest.$ac_objext; then |
| 24568 | ac_hi=$ac_mid |
| 24569 | else |
| 24570 | $as_echo "$as_me: failed program was:" >&5 |
| 24571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24572 | |
| 24573 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 24574 | fi |
| 24575 | |
| 24576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24577 | done |
| 24578 | case $ac_lo in |
| 24579 | ?*) ac_cv_sizeof_unsigned_short=$ac_lo;; |
| 24580 | '') if test "$ac_cv_type_unsigned_short" = yes; then |
| 24581 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 24582 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 24583 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short) |
| 24584 | See \`config.log' for more details." >&5 |
| 24585 | $as_echo "$as_me: error: cannot compute sizeof (unsigned short) |
| 24586 | See \`config.log' for more details." >&2;} |
| 24587 | { (exit 77); exit 77; }; }; } |
| 24588 | else |
| 24589 | ac_cv_sizeof_unsigned_short=0 |
| 24590 | fi ;; |
| 24591 | esac |
| 24592 | else |
| 24593 | cat >conftest.$ac_ext <<_ACEOF |
| 24594 | /* confdefs.h. */ |
| 24595 | _ACEOF |
| 24596 | cat confdefs.h >>conftest.$ac_ext |
| 24597 | cat >>conftest.$ac_ext <<_ACEOF |
| 24598 | /* end confdefs.h. */ |
| 24599 | $ac_includes_default |
| 24600 | static long int longval () { return (long int) (sizeof (unsigned short)); } |
| 24601 | static unsigned long int ulongval () { return (long int) (sizeof (unsigned short)); } |
| 24602 | #include <stdio.h> |
| 24603 | #include <stdlib.h> |
| 24604 | int |
| 24605 | main () |
| 24606 | { |
| 24607 | |
| 24608 | FILE *f = fopen ("conftest.val", "w"); |
| 24609 | if (! f) |
| 24610 | return 1; |
| 24611 | if (((long int) (sizeof (unsigned short))) < 0) |
| 24612 | { |
| 24613 | long int i = longval (); |
| 24614 | if (i != ((long int) (sizeof (unsigned short)))) |
| 24615 | return 1; |
| 24616 | fprintf (f, "%ld", i); |
| 24617 | } |
| 24618 | else |
| 24619 | { |
| 24620 | unsigned long int i = ulongval (); |
| 24621 | if (i != ((long int) (sizeof (unsigned short)))) |
| 24622 | return 1; |
| 24623 | fprintf (f, "%lu", i); |
| 24624 | } |
| 24625 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 24626 | on some platforms. */ |
| 24627 | return ferror (f) || fclose (f) != 0; |
| 24628 | |
| 24629 | ; |
| 24630 | return 0; |
| 24631 | } |
| 24632 | _ACEOF |
| 24633 | rm -f conftest$ac_exeext |
| 24634 | if { (ac_try="$ac_link" |
| 24635 | case "(($ac_try" in |
| 24636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24637 | *) ac_try_echo=$ac_try;; |
| 24638 | esac |
| 24639 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24640 | $as_echo "$ac_try_echo") >&5 |
| 24641 | (eval "$ac_link") 2>&5 |
| 24642 | ac_status=$? |
| 24643 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24644 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 24645 | { (case "(($ac_try" in |
| 24646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24647 | *) ac_try_echo=$ac_try;; |
| 24648 | esac |
| 24649 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24650 | $as_echo "$ac_try_echo") >&5 |
| 24651 | (eval "$ac_try") 2>&5 |
| 24652 | ac_status=$? |
| 24653 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24654 | (exit $ac_status); }; }; then |
| 24655 | ac_cv_sizeof_unsigned_short=`cat conftest.val` |
| 24656 | else |
| 24657 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 24658 | $as_echo "$as_me: failed program was:" >&5 |
| 24659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24660 | |
| 24661 | ( exit $ac_status ) |
| 24662 | if test "$ac_cv_type_unsigned_short" = yes; then |
| 24663 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 24664 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 24665 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short) |
| 24666 | See \`config.log' for more details." >&5 |
| 24667 | $as_echo "$as_me: error: cannot compute sizeof (unsigned short) |
| 24668 | See \`config.log' for more details." >&2;} |
| 24669 | { (exit 77); exit 77; }; }; } |
| 24670 | else |
| 24671 | ac_cv_sizeof_unsigned_short=0 |
| 24672 | fi |
| 24673 | fi |
| 24674 | rm -rf conftest.dSYM |
| 24675 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 24676 | fi |
| 24677 | rm -f conftest.val |
| 24678 | fi |
| 24679 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5 |
| 24680 | $as_echo "$ac_cv_sizeof_unsigned_short" >&6; } |
| 24681 | |
| 24682 | |
| 24683 | |
| 24684 | cat >>confdefs.h <<_ACEOF |
| 24685 | #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short |
| 24686 | _ACEOF |
| 24687 | |
| 24688 | |
| 24689 | |
| 24690 | # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT |
| 24691 | # The cast to long int works around a bug in the HP C Compiler |
| 24692 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 24693 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 24694 | # This bug is HP SR number 8606223364. |
| 24695 | { $as_echo "$as_me:$LINENO: checking size of signed int" >&5 |
| 24696 | $as_echo_n "checking size of signed int... " >&6; } |
| 24697 | if test "${ac_cv_sizeof_signed_int+set}" = set; then |
| 24698 | $as_echo_n "(cached) " >&6 |
| 24699 | else |
| 24700 | if test "$cross_compiling" = yes; then |
| 24701 | # Depending upon the size, compute the lo and hi bounds. |
| 24702 | cat >conftest.$ac_ext <<_ACEOF |
| 24703 | /* confdefs.h. */ |
| 24704 | _ACEOF |
| 24705 | cat confdefs.h >>conftest.$ac_ext |
| 24706 | cat >>conftest.$ac_ext <<_ACEOF |
| 24707 | /* end confdefs.h. */ |
| 24708 | $ac_includes_default |
| 24709 | int |
| 24710 | main () |
| 24711 | { |
| 24712 | static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) >= 0)]; |
| 24713 | test_array [0] = 0 |
| 24714 | |
| 24715 | ; |
| 24716 | return 0; |
| 24717 | } |
| 24718 | _ACEOF |
| 24719 | rm -f conftest.$ac_objext |
| 24720 | if { (ac_try="$ac_compile" |
| 24721 | case "(($ac_try" in |
| 24722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24723 | *) ac_try_echo=$ac_try;; |
| 24724 | esac |
| 24725 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24726 | $as_echo "$ac_try_echo") >&5 |
| 24727 | (eval "$ac_compile") 2>conftest.er1 |
| 24728 | ac_status=$? |
| 24729 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24730 | rm -f conftest.er1 |
| 24731 | cat conftest.err >&5 |
| 24732 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24733 | (exit $ac_status); } && { |
| 24734 | test -z "$ac_c_werror_flag" || |
| 24735 | test ! -s conftest.err |
| 24736 | } && test -s conftest.$ac_objext; then |
| 24737 | ac_lo=0 ac_mid=0 |
| 24738 | while :; do |
| 24739 | cat >conftest.$ac_ext <<_ACEOF |
| 24740 | /* confdefs.h. */ |
| 24741 | _ACEOF |
| 24742 | cat confdefs.h >>conftest.$ac_ext |
| 24743 | cat >>conftest.$ac_ext <<_ACEOF |
| 24744 | /* end confdefs.h. */ |
| 24745 | $ac_includes_default |
| 24746 | int |
| 24747 | main () |
| 24748 | { |
| 24749 | static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) <= $ac_mid)]; |
| 24750 | test_array [0] = 0 |
| 24751 | |
| 24752 | ; |
| 24753 | return 0; |
| 24754 | } |
| 24755 | _ACEOF |
| 24756 | rm -f conftest.$ac_objext |
| 24757 | if { (ac_try="$ac_compile" |
| 24758 | case "(($ac_try" in |
| 24759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24760 | *) ac_try_echo=$ac_try;; |
| 24761 | esac |
| 24762 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24763 | $as_echo "$ac_try_echo") >&5 |
| 24764 | (eval "$ac_compile") 2>conftest.er1 |
| 24765 | ac_status=$? |
| 24766 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24767 | rm -f conftest.er1 |
| 24768 | cat conftest.err >&5 |
| 24769 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24770 | (exit $ac_status); } && { |
| 24771 | test -z "$ac_c_werror_flag" || |
| 24772 | test ! -s conftest.err |
| 24773 | } && test -s conftest.$ac_objext; then |
| 24774 | ac_hi=$ac_mid; break |
| 24775 | else |
| 24776 | $as_echo "$as_me: failed program was:" >&5 |
| 24777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24778 | |
| 24779 | ac_lo=`expr $ac_mid + 1` |
| 24780 | if test $ac_lo -le $ac_mid; then |
| 24781 | ac_lo= ac_hi= |
| 24782 | break |
| 24783 | fi |
| 24784 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 24785 | fi |
| 24786 | |
| 24787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24788 | done |
| 24789 | else |
| 24790 | $as_echo "$as_me: failed program was:" >&5 |
| 24791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24792 | |
| 24793 | cat >conftest.$ac_ext <<_ACEOF |
| 24794 | /* confdefs.h. */ |
| 24795 | _ACEOF |
| 24796 | cat confdefs.h >>conftest.$ac_ext |
| 24797 | cat >>conftest.$ac_ext <<_ACEOF |
| 24798 | /* end confdefs.h. */ |
| 24799 | $ac_includes_default |
| 24800 | int |
| 24801 | main () |
| 24802 | { |
| 24803 | static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) < 0)]; |
| 24804 | test_array [0] = 0 |
| 24805 | |
| 24806 | ; |
| 24807 | return 0; |
| 24808 | } |
| 24809 | _ACEOF |
| 24810 | rm -f conftest.$ac_objext |
| 24811 | if { (ac_try="$ac_compile" |
| 24812 | case "(($ac_try" in |
| 24813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24814 | *) ac_try_echo=$ac_try;; |
| 24815 | esac |
| 24816 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24817 | $as_echo "$ac_try_echo") >&5 |
| 24818 | (eval "$ac_compile") 2>conftest.er1 |
| 24819 | ac_status=$? |
| 24820 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24821 | rm -f conftest.er1 |
| 24822 | cat conftest.err >&5 |
| 24823 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24824 | (exit $ac_status); } && { |
| 24825 | test -z "$ac_c_werror_flag" || |
| 24826 | test ! -s conftest.err |
| 24827 | } && test -s conftest.$ac_objext; then |
| 24828 | ac_hi=-1 ac_mid=-1 |
| 24829 | while :; do |
| 24830 | cat >conftest.$ac_ext <<_ACEOF |
| 24831 | /* confdefs.h. */ |
| 24832 | _ACEOF |
| 24833 | cat confdefs.h >>conftest.$ac_ext |
| 24834 | cat >>conftest.$ac_ext <<_ACEOF |
| 24835 | /* end confdefs.h. */ |
| 24836 | $ac_includes_default |
| 24837 | int |
| 24838 | main () |
| 24839 | { |
| 24840 | static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) >= $ac_mid)]; |
| 24841 | test_array [0] = 0 |
| 24842 | |
| 24843 | ; |
| 24844 | return 0; |
| 24845 | } |
| 24846 | _ACEOF |
| 24847 | rm -f conftest.$ac_objext |
| 24848 | if { (ac_try="$ac_compile" |
| 24849 | case "(($ac_try" in |
| 24850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24851 | *) ac_try_echo=$ac_try;; |
| 24852 | esac |
| 24853 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24854 | $as_echo "$ac_try_echo") >&5 |
| 24855 | (eval "$ac_compile") 2>conftest.er1 |
| 24856 | ac_status=$? |
| 24857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24858 | rm -f conftest.er1 |
| 24859 | cat conftest.err >&5 |
| 24860 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24861 | (exit $ac_status); } && { |
| 24862 | test -z "$ac_c_werror_flag" || |
| 24863 | test ! -s conftest.err |
| 24864 | } && test -s conftest.$ac_objext; then |
| 24865 | ac_lo=$ac_mid; break |
| 24866 | else |
| 24867 | $as_echo "$as_me: failed program was:" >&5 |
| 24868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24869 | |
| 24870 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 24871 | if test $ac_mid -le $ac_hi; then |
| 24872 | ac_lo= ac_hi= |
| 24873 | break |
| 24874 | fi |
| 24875 | ac_mid=`expr 2 '*' $ac_mid` |
| 24876 | fi |
| 24877 | |
| 24878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24879 | done |
| 24880 | else |
| 24881 | $as_echo "$as_me: failed program was:" >&5 |
| 24882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24883 | |
| 24884 | ac_lo= ac_hi= |
| 24885 | fi |
| 24886 | |
| 24887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24888 | fi |
| 24889 | |
| 24890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24891 | # Binary search between lo and hi bounds. |
| 24892 | while test "x$ac_lo" != "x$ac_hi"; do |
| 24893 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 24894 | cat >conftest.$ac_ext <<_ACEOF |
| 24895 | /* confdefs.h. */ |
| 24896 | _ACEOF |
| 24897 | cat confdefs.h >>conftest.$ac_ext |
| 24898 | cat >>conftest.$ac_ext <<_ACEOF |
| 24899 | /* end confdefs.h. */ |
| 24900 | $ac_includes_default |
| 24901 | int |
| 24902 | main () |
| 24903 | { |
| 24904 | static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) <= $ac_mid)]; |
| 24905 | test_array [0] = 0 |
| 24906 | |
| 24907 | ; |
| 24908 | return 0; |
| 24909 | } |
| 24910 | _ACEOF |
| 24911 | rm -f conftest.$ac_objext |
| 24912 | if { (ac_try="$ac_compile" |
| 24913 | case "(($ac_try" in |
| 24914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24915 | *) ac_try_echo=$ac_try;; |
| 24916 | esac |
| 24917 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 24918 | $as_echo "$ac_try_echo") >&5 |
| 24919 | (eval "$ac_compile") 2>conftest.er1 |
| 24920 | ac_status=$? |
| 24921 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24922 | rm -f conftest.er1 |
| 24923 | cat conftest.err >&5 |
| 24924 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24925 | (exit $ac_status); } && { |
| 24926 | test -z "$ac_c_werror_flag" || |
| 24927 | test ! -s conftest.err |
| 24928 | } && test -s conftest.$ac_objext; then |
| 24929 | ac_hi=$ac_mid |
| 24930 | else |
| 24931 | $as_echo "$as_me: failed program was:" >&5 |
| 24932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24933 | |
| 24934 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 24935 | fi |
| 24936 | |
| 24937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24938 | done |
| 24939 | case $ac_lo in |
| 24940 | ?*) ac_cv_sizeof_signed_int=$ac_lo;; |
| 24941 | '') if test "$ac_cv_type_signed_int" = yes; then |
| 24942 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 24943 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 24944 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed int) |
| 24945 | See \`config.log' for more details." >&5 |
| 24946 | $as_echo "$as_me: error: cannot compute sizeof (signed int) |
| 24947 | See \`config.log' for more details." >&2;} |
| 24948 | { (exit 77); exit 77; }; }; } |
| 24949 | else |
| 24950 | ac_cv_sizeof_signed_int=0 |
| 24951 | fi ;; |
| 24952 | esac |
| 24953 | else |
| 24954 | cat >conftest.$ac_ext <<_ACEOF |
| 24955 | /* confdefs.h. */ |
| 24956 | _ACEOF |
| 24957 | cat confdefs.h >>conftest.$ac_ext |
| 24958 | cat >>conftest.$ac_ext <<_ACEOF |
| 24959 | /* end confdefs.h. */ |
| 24960 | $ac_includes_default |
| 24961 | static long int longval () { return (long int) (sizeof (signed int)); } |
| 24962 | static unsigned long int ulongval () { return (long int) (sizeof (signed int)); } |
| 24963 | #include <stdio.h> |
| 24964 | #include <stdlib.h> |
| 24965 | int |
| 24966 | main () |
| 24967 | { |
| 24968 | |
| 24969 | FILE *f = fopen ("conftest.val", "w"); |
| 24970 | if (! f) |
| 24971 | return 1; |
| 24972 | if (((long int) (sizeof (signed int))) < 0) |
| 24973 | { |
| 24974 | long int i = longval (); |
| 24975 | if (i != ((long int) (sizeof (signed int)))) |
| 24976 | return 1; |
| 24977 | fprintf (f, "%ld", i); |
| 24978 | } |
| 24979 | else |
| 24980 | { |
| 24981 | unsigned long int i = ulongval (); |
| 24982 | if (i != ((long int) (sizeof (signed int)))) |
| 24983 | return 1; |
| 24984 | fprintf (f, "%lu", i); |
| 24985 | } |
| 24986 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 24987 | on some platforms. */ |
| 24988 | return ferror (f) || fclose (f) != 0; |
| 24989 | |
| 24990 | ; |
| 24991 | return 0; |
| 24992 | } |
| 24993 | _ACEOF |
| 24994 | rm -f conftest$ac_exeext |
| 24995 | if { (ac_try="$ac_link" |
| 24996 | case "(($ac_try" in |
| 24997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24998 | *) ac_try_echo=$ac_try;; |
| 24999 | esac |
| 25000 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25001 | $as_echo "$ac_try_echo") >&5 |
| 25002 | (eval "$ac_link") 2>&5 |
| 25003 | ac_status=$? |
| 25004 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25005 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 25006 | { (case "(($ac_try" in |
| 25007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25008 | *) ac_try_echo=$ac_try;; |
| 25009 | esac |
| 25010 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25011 | $as_echo "$ac_try_echo") >&5 |
| 25012 | (eval "$ac_try") 2>&5 |
| 25013 | ac_status=$? |
| 25014 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25015 | (exit $ac_status); }; }; then |
| 25016 | ac_cv_sizeof_signed_int=`cat conftest.val` |
| 25017 | else |
| 25018 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 25019 | $as_echo "$as_me: failed program was:" >&5 |
| 25020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25021 | |
| 25022 | ( exit $ac_status ) |
| 25023 | if test "$ac_cv_type_signed_int" = yes; then |
| 25024 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 25025 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 25026 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed int) |
| 25027 | See \`config.log' for more details." >&5 |
| 25028 | $as_echo "$as_me: error: cannot compute sizeof (signed int) |
| 25029 | See \`config.log' for more details." >&2;} |
| 25030 | { (exit 77); exit 77; }; }; } |
| 25031 | else |
| 25032 | ac_cv_sizeof_signed_int=0 |
| 25033 | fi |
| 25034 | fi |
| 25035 | rm -rf conftest.dSYM |
| 25036 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 25037 | fi |
| 25038 | rm -f conftest.val |
| 25039 | fi |
| 25040 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_int" >&5 |
| 25041 | $as_echo "$ac_cv_sizeof_signed_int" >&6; } |
| 25042 | |
| 25043 | |
| 25044 | |
| 25045 | cat >>confdefs.h <<_ACEOF |
| 25046 | #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int |
| 25047 | _ACEOF |
| 25048 | |
| 25049 | |
| 25050 | |
| 25051 | # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT |
| 25052 | # The cast to long int works around a bug in the HP C Compiler |
| 25053 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 25054 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 25055 | # This bug is HP SR number 8606223364. |
| 25056 | { $as_echo "$as_me:$LINENO: checking size of unsigned int" >&5 |
| 25057 | $as_echo_n "checking size of unsigned int... " >&6; } |
| 25058 | if test "${ac_cv_sizeof_unsigned_int+set}" = set; then |
| 25059 | $as_echo_n "(cached) " >&6 |
| 25060 | else |
| 25061 | if test "$cross_compiling" = yes; then |
| 25062 | # Depending upon the size, compute the lo and hi bounds. |
| 25063 | cat >conftest.$ac_ext <<_ACEOF |
| 25064 | /* confdefs.h. */ |
| 25065 | _ACEOF |
| 25066 | cat confdefs.h >>conftest.$ac_ext |
| 25067 | cat >>conftest.$ac_ext <<_ACEOF |
| 25068 | /* end confdefs.h. */ |
| 25069 | $ac_includes_default |
| 25070 | int |
| 25071 | main () |
| 25072 | { |
| 25073 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= 0)]; |
| 25074 | test_array [0] = 0 |
| 25075 | |
| 25076 | ; |
| 25077 | return 0; |
| 25078 | } |
| 25079 | _ACEOF |
| 25080 | rm -f conftest.$ac_objext |
| 25081 | if { (ac_try="$ac_compile" |
| 25082 | case "(($ac_try" in |
| 25083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25084 | *) ac_try_echo=$ac_try;; |
| 25085 | esac |
| 25086 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25087 | $as_echo "$ac_try_echo") >&5 |
| 25088 | (eval "$ac_compile") 2>conftest.er1 |
| 25089 | ac_status=$? |
| 25090 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25091 | rm -f conftest.er1 |
| 25092 | cat conftest.err >&5 |
| 25093 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25094 | (exit $ac_status); } && { |
| 25095 | test -z "$ac_c_werror_flag" || |
| 25096 | test ! -s conftest.err |
| 25097 | } && test -s conftest.$ac_objext; then |
| 25098 | ac_lo=0 ac_mid=0 |
| 25099 | while :; do |
| 25100 | cat >conftest.$ac_ext <<_ACEOF |
| 25101 | /* confdefs.h. */ |
| 25102 | _ACEOF |
| 25103 | cat confdefs.h >>conftest.$ac_ext |
| 25104 | cat >>conftest.$ac_ext <<_ACEOF |
| 25105 | /* end confdefs.h. */ |
| 25106 | $ac_includes_default |
| 25107 | int |
| 25108 | main () |
| 25109 | { |
| 25110 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)]; |
| 25111 | test_array [0] = 0 |
| 25112 | |
| 25113 | ; |
| 25114 | return 0; |
| 25115 | } |
| 25116 | _ACEOF |
| 25117 | rm -f conftest.$ac_objext |
| 25118 | if { (ac_try="$ac_compile" |
| 25119 | case "(($ac_try" in |
| 25120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25121 | *) ac_try_echo=$ac_try;; |
| 25122 | esac |
| 25123 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25124 | $as_echo "$ac_try_echo") >&5 |
| 25125 | (eval "$ac_compile") 2>conftest.er1 |
| 25126 | ac_status=$? |
| 25127 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25128 | rm -f conftest.er1 |
| 25129 | cat conftest.err >&5 |
| 25130 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25131 | (exit $ac_status); } && { |
| 25132 | test -z "$ac_c_werror_flag" || |
| 25133 | test ! -s conftest.err |
| 25134 | } && test -s conftest.$ac_objext; then |
| 25135 | ac_hi=$ac_mid; break |
| 25136 | else |
| 25137 | $as_echo "$as_me: failed program was:" >&5 |
| 25138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25139 | |
| 25140 | ac_lo=`expr $ac_mid + 1` |
| 25141 | if test $ac_lo -le $ac_mid; then |
| 25142 | ac_lo= ac_hi= |
| 25143 | break |
| 25144 | fi |
| 25145 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 25146 | fi |
| 25147 | |
| 25148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25149 | done |
| 25150 | else |
| 25151 | $as_echo "$as_me: failed program was:" >&5 |
| 25152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25153 | |
| 25154 | cat >conftest.$ac_ext <<_ACEOF |
| 25155 | /* confdefs.h. */ |
| 25156 | _ACEOF |
| 25157 | cat confdefs.h >>conftest.$ac_ext |
| 25158 | cat >>conftest.$ac_ext <<_ACEOF |
| 25159 | /* end confdefs.h. */ |
| 25160 | $ac_includes_default |
| 25161 | int |
| 25162 | main () |
| 25163 | { |
| 25164 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) < 0)]; |
| 25165 | test_array [0] = 0 |
| 25166 | |
| 25167 | ; |
| 25168 | return 0; |
| 25169 | } |
| 25170 | _ACEOF |
| 25171 | rm -f conftest.$ac_objext |
| 25172 | if { (ac_try="$ac_compile" |
| 25173 | case "(($ac_try" in |
| 25174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25175 | *) ac_try_echo=$ac_try;; |
| 25176 | esac |
| 25177 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25178 | $as_echo "$ac_try_echo") >&5 |
| 25179 | (eval "$ac_compile") 2>conftest.er1 |
| 25180 | ac_status=$? |
| 25181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25182 | rm -f conftest.er1 |
| 25183 | cat conftest.err >&5 |
| 25184 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25185 | (exit $ac_status); } && { |
| 25186 | test -z "$ac_c_werror_flag" || |
| 25187 | test ! -s conftest.err |
| 25188 | } && test -s conftest.$ac_objext; then |
| 25189 | ac_hi=-1 ac_mid=-1 |
| 25190 | while :; do |
| 25191 | cat >conftest.$ac_ext <<_ACEOF |
| 25192 | /* confdefs.h. */ |
| 25193 | _ACEOF |
| 25194 | cat confdefs.h >>conftest.$ac_ext |
| 25195 | cat >>conftest.$ac_ext <<_ACEOF |
| 25196 | /* end confdefs.h. */ |
| 25197 | $ac_includes_default |
| 25198 | int |
| 25199 | main () |
| 25200 | { |
| 25201 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= $ac_mid)]; |
| 25202 | test_array [0] = 0 |
| 25203 | |
| 25204 | ; |
| 25205 | return 0; |
| 25206 | } |
| 25207 | _ACEOF |
| 25208 | rm -f conftest.$ac_objext |
| 25209 | if { (ac_try="$ac_compile" |
| 25210 | case "(($ac_try" in |
| 25211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25212 | *) ac_try_echo=$ac_try;; |
| 25213 | esac |
| 25214 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25215 | $as_echo "$ac_try_echo") >&5 |
| 25216 | (eval "$ac_compile") 2>conftest.er1 |
| 25217 | ac_status=$? |
| 25218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25219 | rm -f conftest.er1 |
| 25220 | cat conftest.err >&5 |
| 25221 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25222 | (exit $ac_status); } && { |
| 25223 | test -z "$ac_c_werror_flag" || |
| 25224 | test ! -s conftest.err |
| 25225 | } && test -s conftest.$ac_objext; then |
| 25226 | ac_lo=$ac_mid; break |
| 25227 | else |
| 25228 | $as_echo "$as_me: failed program was:" >&5 |
| 25229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25230 | |
| 25231 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 25232 | if test $ac_mid -le $ac_hi; then |
| 25233 | ac_lo= ac_hi= |
| 25234 | break |
| 25235 | fi |
| 25236 | ac_mid=`expr 2 '*' $ac_mid` |
| 25237 | fi |
| 25238 | |
| 25239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25240 | done |
| 25241 | else |
| 25242 | $as_echo "$as_me: failed program was:" >&5 |
| 25243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25244 | |
| 25245 | ac_lo= ac_hi= |
| 25246 | fi |
| 25247 | |
| 25248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25249 | fi |
| 25250 | |
| 25251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25252 | # Binary search between lo and hi bounds. |
| 25253 | while test "x$ac_lo" != "x$ac_hi"; do |
| 25254 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 25255 | cat >conftest.$ac_ext <<_ACEOF |
| 25256 | /* confdefs.h. */ |
| 25257 | _ACEOF |
| 25258 | cat confdefs.h >>conftest.$ac_ext |
| 25259 | cat >>conftest.$ac_ext <<_ACEOF |
| 25260 | /* end confdefs.h. */ |
| 25261 | $ac_includes_default |
| 25262 | int |
| 25263 | main () |
| 25264 | { |
| 25265 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)]; |
| 25266 | test_array [0] = 0 |
| 25267 | |
| 25268 | ; |
| 25269 | return 0; |
| 25270 | } |
| 25271 | _ACEOF |
| 25272 | rm -f conftest.$ac_objext |
| 25273 | if { (ac_try="$ac_compile" |
| 25274 | case "(($ac_try" in |
| 25275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25276 | *) ac_try_echo=$ac_try;; |
| 25277 | esac |
| 25278 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25279 | $as_echo "$ac_try_echo") >&5 |
| 25280 | (eval "$ac_compile") 2>conftest.er1 |
| 25281 | ac_status=$? |
| 25282 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25283 | rm -f conftest.er1 |
| 25284 | cat conftest.err >&5 |
| 25285 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25286 | (exit $ac_status); } && { |
| 25287 | test -z "$ac_c_werror_flag" || |
| 25288 | test ! -s conftest.err |
| 25289 | } && test -s conftest.$ac_objext; then |
| 25290 | ac_hi=$ac_mid |
| 25291 | else |
| 25292 | $as_echo "$as_me: failed program was:" >&5 |
| 25293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25294 | |
| 25295 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 25296 | fi |
| 25297 | |
| 25298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25299 | done |
| 25300 | case $ac_lo in |
| 25301 | ?*) ac_cv_sizeof_unsigned_int=$ac_lo;; |
| 25302 | '') if test "$ac_cv_type_unsigned_int" = yes; then |
| 25303 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 25304 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 25305 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int) |
| 25306 | See \`config.log' for more details." >&5 |
| 25307 | $as_echo "$as_me: error: cannot compute sizeof (unsigned int) |
| 25308 | See \`config.log' for more details." >&2;} |
| 25309 | { (exit 77); exit 77; }; }; } |
| 25310 | else |
| 25311 | ac_cv_sizeof_unsigned_int=0 |
| 25312 | fi ;; |
| 25313 | esac |
| 25314 | else |
| 25315 | cat >conftest.$ac_ext <<_ACEOF |
| 25316 | /* confdefs.h. */ |
| 25317 | _ACEOF |
| 25318 | cat confdefs.h >>conftest.$ac_ext |
| 25319 | cat >>conftest.$ac_ext <<_ACEOF |
| 25320 | /* end confdefs.h. */ |
| 25321 | $ac_includes_default |
| 25322 | static long int longval () { return (long int) (sizeof (unsigned int)); } |
| 25323 | static unsigned long int ulongval () { return (long int) (sizeof (unsigned int)); } |
| 25324 | #include <stdio.h> |
| 25325 | #include <stdlib.h> |
| 25326 | int |
| 25327 | main () |
| 25328 | { |
| 25329 | |
| 25330 | FILE *f = fopen ("conftest.val", "w"); |
| 25331 | if (! f) |
| 25332 | return 1; |
| 25333 | if (((long int) (sizeof (unsigned int))) < 0) |
| 25334 | { |
| 25335 | long int i = longval (); |
| 25336 | if (i != ((long int) (sizeof (unsigned int)))) |
| 25337 | return 1; |
| 25338 | fprintf (f, "%ld", i); |
| 25339 | } |
| 25340 | else |
| 25341 | { |
| 25342 | unsigned long int i = ulongval (); |
| 25343 | if (i != ((long int) (sizeof (unsigned int)))) |
| 25344 | return 1; |
| 25345 | fprintf (f, "%lu", i); |
| 25346 | } |
| 25347 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 25348 | on some platforms. */ |
| 25349 | return ferror (f) || fclose (f) != 0; |
| 25350 | |
| 25351 | ; |
| 25352 | return 0; |
| 25353 | } |
| 25354 | _ACEOF |
| 25355 | rm -f conftest$ac_exeext |
| 25356 | if { (ac_try="$ac_link" |
| 25357 | case "(($ac_try" in |
| 25358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25359 | *) ac_try_echo=$ac_try;; |
| 25360 | esac |
| 25361 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25362 | $as_echo "$ac_try_echo") >&5 |
| 25363 | (eval "$ac_link") 2>&5 |
| 25364 | ac_status=$? |
| 25365 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25366 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 25367 | { (case "(($ac_try" in |
| 25368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25369 | *) ac_try_echo=$ac_try;; |
| 25370 | esac |
| 25371 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25372 | $as_echo "$ac_try_echo") >&5 |
| 25373 | (eval "$ac_try") 2>&5 |
| 25374 | ac_status=$? |
| 25375 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25376 | (exit $ac_status); }; }; then |
| 25377 | ac_cv_sizeof_unsigned_int=`cat conftest.val` |
| 25378 | else |
| 25379 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 25380 | $as_echo "$as_me: failed program was:" >&5 |
| 25381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25382 | |
| 25383 | ( exit $ac_status ) |
| 25384 | if test "$ac_cv_type_unsigned_int" = yes; then |
| 25385 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 25386 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 25387 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int) |
| 25388 | See \`config.log' for more details." >&5 |
| 25389 | $as_echo "$as_me: error: cannot compute sizeof (unsigned int) |
| 25390 | See \`config.log' for more details." >&2;} |
| 25391 | { (exit 77); exit 77; }; }; } |
| 25392 | else |
| 25393 | ac_cv_sizeof_unsigned_int=0 |
| 25394 | fi |
| 25395 | fi |
| 25396 | rm -rf conftest.dSYM |
| 25397 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 25398 | fi |
| 25399 | rm -f conftest.val |
| 25400 | fi |
| 25401 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5 |
| 25402 | $as_echo "$ac_cv_sizeof_unsigned_int" >&6; } |
| 25403 | |
| 25404 | |
| 25405 | |
| 25406 | cat >>confdefs.h <<_ACEOF |
| 25407 | #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int |
| 25408 | _ACEOF |
| 25409 | |
| 25410 | |
| 25411 | |
| 25412 | # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG |
| 25413 | # The cast to long int works around a bug in the HP C Compiler |
| 25414 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 25415 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 25416 | # This bug is HP SR number 8606223364. |
| 25417 | { $as_echo "$as_me:$LINENO: checking size of signed long" >&5 |
| 25418 | $as_echo_n "checking size of signed long... " >&6; } |
| 25419 | if test "${ac_cv_sizeof_signed_long+set}" = set; then |
| 25420 | $as_echo_n "(cached) " >&6 |
| 25421 | else |
| 25422 | if test "$cross_compiling" = yes; then |
| 25423 | # Depending upon the size, compute the lo and hi bounds. |
| 25424 | cat >conftest.$ac_ext <<_ACEOF |
| 25425 | /* confdefs.h. */ |
| 25426 | _ACEOF |
| 25427 | cat confdefs.h >>conftest.$ac_ext |
| 25428 | cat >>conftest.$ac_ext <<_ACEOF |
| 25429 | /* end confdefs.h. */ |
| 25430 | $ac_includes_default |
| 25431 | int |
| 25432 | main () |
| 25433 | { |
| 25434 | static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) >= 0)]; |
| 25435 | test_array [0] = 0 |
| 25436 | |
| 25437 | ; |
| 25438 | return 0; |
| 25439 | } |
| 25440 | _ACEOF |
| 25441 | rm -f conftest.$ac_objext |
| 25442 | if { (ac_try="$ac_compile" |
| 25443 | case "(($ac_try" in |
| 25444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25445 | *) ac_try_echo=$ac_try;; |
| 25446 | esac |
| 25447 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25448 | $as_echo "$ac_try_echo") >&5 |
| 25449 | (eval "$ac_compile") 2>conftest.er1 |
| 25450 | ac_status=$? |
| 25451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25452 | rm -f conftest.er1 |
| 25453 | cat conftest.err >&5 |
| 25454 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25455 | (exit $ac_status); } && { |
| 25456 | test -z "$ac_c_werror_flag" || |
| 25457 | test ! -s conftest.err |
| 25458 | } && test -s conftest.$ac_objext; then |
| 25459 | ac_lo=0 ac_mid=0 |
| 25460 | while :; do |
| 25461 | cat >conftest.$ac_ext <<_ACEOF |
| 25462 | /* confdefs.h. */ |
| 25463 | _ACEOF |
| 25464 | cat confdefs.h >>conftest.$ac_ext |
| 25465 | cat >>conftest.$ac_ext <<_ACEOF |
| 25466 | /* end confdefs.h. */ |
| 25467 | $ac_includes_default |
| 25468 | int |
| 25469 | main () |
| 25470 | { |
| 25471 | static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) <= $ac_mid)]; |
| 25472 | test_array [0] = 0 |
| 25473 | |
| 25474 | ; |
| 25475 | return 0; |
| 25476 | } |
| 25477 | _ACEOF |
| 25478 | rm -f conftest.$ac_objext |
| 25479 | if { (ac_try="$ac_compile" |
| 25480 | case "(($ac_try" in |
| 25481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25482 | *) ac_try_echo=$ac_try;; |
| 25483 | esac |
| 25484 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25485 | $as_echo "$ac_try_echo") >&5 |
| 25486 | (eval "$ac_compile") 2>conftest.er1 |
| 25487 | ac_status=$? |
| 25488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25489 | rm -f conftest.er1 |
| 25490 | cat conftest.err >&5 |
| 25491 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25492 | (exit $ac_status); } && { |
| 25493 | test -z "$ac_c_werror_flag" || |
| 25494 | test ! -s conftest.err |
| 25495 | } && test -s conftest.$ac_objext; then |
| 25496 | ac_hi=$ac_mid; break |
| 25497 | else |
| 25498 | $as_echo "$as_me: failed program was:" >&5 |
| 25499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25500 | |
| 25501 | ac_lo=`expr $ac_mid + 1` |
| 25502 | if test $ac_lo -le $ac_mid; then |
| 25503 | ac_lo= ac_hi= |
| 25504 | break |
| 25505 | fi |
| 25506 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 25507 | fi |
| 25508 | |
| 25509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25510 | done |
| 25511 | else |
| 25512 | $as_echo "$as_me: failed program was:" >&5 |
| 25513 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25514 | |
| 25515 | cat >conftest.$ac_ext <<_ACEOF |
| 25516 | /* confdefs.h. */ |
| 25517 | _ACEOF |
| 25518 | cat confdefs.h >>conftest.$ac_ext |
| 25519 | cat >>conftest.$ac_ext <<_ACEOF |
| 25520 | /* end confdefs.h. */ |
| 25521 | $ac_includes_default |
| 25522 | int |
| 25523 | main () |
| 25524 | { |
| 25525 | static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) < 0)]; |
| 25526 | test_array [0] = 0 |
| 25527 | |
| 25528 | ; |
| 25529 | return 0; |
| 25530 | } |
| 25531 | _ACEOF |
| 25532 | rm -f conftest.$ac_objext |
| 25533 | if { (ac_try="$ac_compile" |
| 25534 | case "(($ac_try" in |
| 25535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25536 | *) ac_try_echo=$ac_try;; |
| 25537 | esac |
| 25538 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25539 | $as_echo "$ac_try_echo") >&5 |
| 25540 | (eval "$ac_compile") 2>conftest.er1 |
| 25541 | ac_status=$? |
| 25542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25543 | rm -f conftest.er1 |
| 25544 | cat conftest.err >&5 |
| 25545 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25546 | (exit $ac_status); } && { |
| 25547 | test -z "$ac_c_werror_flag" || |
| 25548 | test ! -s conftest.err |
| 25549 | } && test -s conftest.$ac_objext; then |
| 25550 | ac_hi=-1 ac_mid=-1 |
| 25551 | while :; do |
| 25552 | cat >conftest.$ac_ext <<_ACEOF |
| 25553 | /* confdefs.h. */ |
| 25554 | _ACEOF |
| 25555 | cat confdefs.h >>conftest.$ac_ext |
| 25556 | cat >>conftest.$ac_ext <<_ACEOF |
| 25557 | /* end confdefs.h. */ |
| 25558 | $ac_includes_default |
| 25559 | int |
| 25560 | main () |
| 25561 | { |
| 25562 | static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) >= $ac_mid)]; |
| 25563 | test_array [0] = 0 |
| 25564 | |
| 25565 | ; |
| 25566 | return 0; |
| 25567 | } |
| 25568 | _ACEOF |
| 25569 | rm -f conftest.$ac_objext |
| 25570 | if { (ac_try="$ac_compile" |
| 25571 | case "(($ac_try" in |
| 25572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25573 | *) ac_try_echo=$ac_try;; |
| 25574 | esac |
| 25575 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25576 | $as_echo "$ac_try_echo") >&5 |
| 25577 | (eval "$ac_compile") 2>conftest.er1 |
| 25578 | ac_status=$? |
| 25579 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25580 | rm -f conftest.er1 |
| 25581 | cat conftest.err >&5 |
| 25582 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25583 | (exit $ac_status); } && { |
| 25584 | test -z "$ac_c_werror_flag" || |
| 25585 | test ! -s conftest.err |
| 25586 | } && test -s conftest.$ac_objext; then |
| 25587 | ac_lo=$ac_mid; break |
| 25588 | else |
| 25589 | $as_echo "$as_me: failed program was:" >&5 |
| 25590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25591 | |
| 25592 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 25593 | if test $ac_mid -le $ac_hi; then |
| 25594 | ac_lo= ac_hi= |
| 25595 | break |
| 25596 | fi |
| 25597 | ac_mid=`expr 2 '*' $ac_mid` |
| 25598 | fi |
| 25599 | |
| 25600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25601 | done |
| 25602 | else |
| 25603 | $as_echo "$as_me: failed program was:" >&5 |
| 25604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25605 | |
| 25606 | ac_lo= ac_hi= |
| 25607 | fi |
| 25608 | |
| 25609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25610 | fi |
| 25611 | |
| 25612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25613 | # Binary search between lo and hi bounds. |
| 25614 | while test "x$ac_lo" != "x$ac_hi"; do |
| 25615 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 25616 | cat >conftest.$ac_ext <<_ACEOF |
| 25617 | /* confdefs.h. */ |
| 25618 | _ACEOF |
| 25619 | cat confdefs.h >>conftest.$ac_ext |
| 25620 | cat >>conftest.$ac_ext <<_ACEOF |
| 25621 | /* end confdefs.h. */ |
| 25622 | $ac_includes_default |
| 25623 | int |
| 25624 | main () |
| 25625 | { |
| 25626 | static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) <= $ac_mid)]; |
| 25627 | test_array [0] = 0 |
| 25628 | |
| 25629 | ; |
| 25630 | return 0; |
| 25631 | } |
| 25632 | _ACEOF |
| 25633 | rm -f conftest.$ac_objext |
| 25634 | if { (ac_try="$ac_compile" |
| 25635 | case "(($ac_try" in |
| 25636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25637 | *) ac_try_echo=$ac_try;; |
| 25638 | esac |
| 25639 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25640 | $as_echo "$ac_try_echo") >&5 |
| 25641 | (eval "$ac_compile") 2>conftest.er1 |
| 25642 | ac_status=$? |
| 25643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25644 | rm -f conftest.er1 |
| 25645 | cat conftest.err >&5 |
| 25646 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25647 | (exit $ac_status); } && { |
| 25648 | test -z "$ac_c_werror_flag" || |
| 25649 | test ! -s conftest.err |
| 25650 | } && test -s conftest.$ac_objext; then |
| 25651 | ac_hi=$ac_mid |
| 25652 | else |
| 25653 | $as_echo "$as_me: failed program was:" >&5 |
| 25654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25655 | |
| 25656 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 25657 | fi |
| 25658 | |
| 25659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25660 | done |
| 25661 | case $ac_lo in |
| 25662 | ?*) ac_cv_sizeof_signed_long=$ac_lo;; |
| 25663 | '') if test "$ac_cv_type_signed_long" = yes; then |
| 25664 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 25665 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 25666 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long) |
| 25667 | See \`config.log' for more details." >&5 |
| 25668 | $as_echo "$as_me: error: cannot compute sizeof (signed long) |
| 25669 | See \`config.log' for more details." >&2;} |
| 25670 | { (exit 77); exit 77; }; }; } |
| 25671 | else |
| 25672 | ac_cv_sizeof_signed_long=0 |
| 25673 | fi ;; |
| 25674 | esac |
| 25675 | else |
| 25676 | cat >conftest.$ac_ext <<_ACEOF |
| 25677 | /* confdefs.h. */ |
| 25678 | _ACEOF |
| 25679 | cat confdefs.h >>conftest.$ac_ext |
| 25680 | cat >>conftest.$ac_ext <<_ACEOF |
| 25681 | /* end confdefs.h. */ |
| 25682 | $ac_includes_default |
| 25683 | static long int longval () { return (long int) (sizeof (signed long)); } |
| 25684 | static unsigned long int ulongval () { return (long int) (sizeof (signed long)); } |
| 25685 | #include <stdio.h> |
| 25686 | #include <stdlib.h> |
| 25687 | int |
| 25688 | main () |
| 25689 | { |
| 25690 | |
| 25691 | FILE *f = fopen ("conftest.val", "w"); |
| 25692 | if (! f) |
| 25693 | return 1; |
| 25694 | if (((long int) (sizeof (signed long))) < 0) |
| 25695 | { |
| 25696 | long int i = longval (); |
| 25697 | if (i != ((long int) (sizeof (signed long)))) |
| 25698 | return 1; |
| 25699 | fprintf (f, "%ld", i); |
| 25700 | } |
| 25701 | else |
| 25702 | { |
| 25703 | unsigned long int i = ulongval (); |
| 25704 | if (i != ((long int) (sizeof (signed long)))) |
| 25705 | return 1; |
| 25706 | fprintf (f, "%lu", i); |
| 25707 | } |
| 25708 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 25709 | on some platforms. */ |
| 25710 | return ferror (f) || fclose (f) != 0; |
| 25711 | |
| 25712 | ; |
| 25713 | return 0; |
| 25714 | } |
| 25715 | _ACEOF |
| 25716 | rm -f conftest$ac_exeext |
| 25717 | if { (ac_try="$ac_link" |
| 25718 | case "(($ac_try" in |
| 25719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25720 | *) ac_try_echo=$ac_try;; |
| 25721 | esac |
| 25722 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25723 | $as_echo "$ac_try_echo") >&5 |
| 25724 | (eval "$ac_link") 2>&5 |
| 25725 | ac_status=$? |
| 25726 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25727 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 25728 | { (case "(($ac_try" in |
| 25729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25730 | *) ac_try_echo=$ac_try;; |
| 25731 | esac |
| 25732 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25733 | $as_echo "$ac_try_echo") >&5 |
| 25734 | (eval "$ac_try") 2>&5 |
| 25735 | ac_status=$? |
| 25736 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25737 | (exit $ac_status); }; }; then |
| 25738 | ac_cv_sizeof_signed_long=`cat conftest.val` |
| 25739 | else |
| 25740 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 25741 | $as_echo "$as_me: failed program was:" >&5 |
| 25742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25743 | |
| 25744 | ( exit $ac_status ) |
| 25745 | if test "$ac_cv_type_signed_long" = yes; then |
| 25746 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 25747 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 25748 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long) |
| 25749 | See \`config.log' for more details." >&5 |
| 25750 | $as_echo "$as_me: error: cannot compute sizeof (signed long) |
| 25751 | See \`config.log' for more details." >&2;} |
| 25752 | { (exit 77); exit 77; }; }; } |
| 25753 | else |
| 25754 | ac_cv_sizeof_signed_long=0 |
| 25755 | fi |
| 25756 | fi |
| 25757 | rm -rf conftest.dSYM |
| 25758 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 25759 | fi |
| 25760 | rm -f conftest.val |
| 25761 | fi |
| 25762 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long" >&5 |
| 25763 | $as_echo "$ac_cv_sizeof_signed_long" >&6; } |
| 25764 | |
| 25765 | |
| 25766 | |
| 25767 | cat >>confdefs.h <<_ACEOF |
| 25768 | #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long |
| 25769 | _ACEOF |
| 25770 | |
| 25771 | |
| 25772 | |
| 25773 | # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG |
| 25774 | # The cast to long int works around a bug in the HP C Compiler |
| 25775 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 25776 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 25777 | # This bug is HP SR number 8606223364. |
| 25778 | { $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5 |
| 25779 | $as_echo_n "checking size of unsigned long... " >&6; } |
| 25780 | if test "${ac_cv_sizeof_unsigned_long+set}" = set; then |
| 25781 | $as_echo_n "(cached) " >&6 |
| 25782 | else |
| 25783 | if test "$cross_compiling" = yes; then |
| 25784 | # Depending upon the size, compute the lo and hi bounds. |
| 25785 | cat >conftest.$ac_ext <<_ACEOF |
| 25786 | /* confdefs.h. */ |
| 25787 | _ACEOF |
| 25788 | cat confdefs.h >>conftest.$ac_ext |
| 25789 | cat >>conftest.$ac_ext <<_ACEOF |
| 25790 | /* end confdefs.h. */ |
| 25791 | $ac_includes_default |
| 25792 | int |
| 25793 | main () |
| 25794 | { |
| 25795 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)]; |
| 25796 | test_array [0] = 0 |
| 25797 | |
| 25798 | ; |
| 25799 | return 0; |
| 25800 | } |
| 25801 | _ACEOF |
| 25802 | rm -f conftest.$ac_objext |
| 25803 | if { (ac_try="$ac_compile" |
| 25804 | case "(($ac_try" in |
| 25805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25806 | *) ac_try_echo=$ac_try;; |
| 25807 | esac |
| 25808 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25809 | $as_echo "$ac_try_echo") >&5 |
| 25810 | (eval "$ac_compile") 2>conftest.er1 |
| 25811 | ac_status=$? |
| 25812 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25813 | rm -f conftest.er1 |
| 25814 | cat conftest.err >&5 |
| 25815 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25816 | (exit $ac_status); } && { |
| 25817 | test -z "$ac_c_werror_flag" || |
| 25818 | test ! -s conftest.err |
| 25819 | } && test -s conftest.$ac_objext; then |
| 25820 | ac_lo=0 ac_mid=0 |
| 25821 | while :; do |
| 25822 | cat >conftest.$ac_ext <<_ACEOF |
| 25823 | /* confdefs.h. */ |
| 25824 | _ACEOF |
| 25825 | cat confdefs.h >>conftest.$ac_ext |
| 25826 | cat >>conftest.$ac_ext <<_ACEOF |
| 25827 | /* end confdefs.h. */ |
| 25828 | $ac_includes_default |
| 25829 | int |
| 25830 | main () |
| 25831 | { |
| 25832 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)]; |
| 25833 | test_array [0] = 0 |
| 25834 | |
| 25835 | ; |
| 25836 | return 0; |
| 25837 | } |
| 25838 | _ACEOF |
| 25839 | rm -f conftest.$ac_objext |
| 25840 | if { (ac_try="$ac_compile" |
| 25841 | case "(($ac_try" in |
| 25842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25843 | *) ac_try_echo=$ac_try;; |
| 25844 | esac |
| 25845 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25846 | $as_echo "$ac_try_echo") >&5 |
| 25847 | (eval "$ac_compile") 2>conftest.er1 |
| 25848 | ac_status=$? |
| 25849 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25850 | rm -f conftest.er1 |
| 25851 | cat conftest.err >&5 |
| 25852 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25853 | (exit $ac_status); } && { |
| 25854 | test -z "$ac_c_werror_flag" || |
| 25855 | test ! -s conftest.err |
| 25856 | } && test -s conftest.$ac_objext; then |
| 25857 | ac_hi=$ac_mid; break |
| 25858 | else |
| 25859 | $as_echo "$as_me: failed program was:" >&5 |
| 25860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25861 | |
| 25862 | ac_lo=`expr $ac_mid + 1` |
| 25863 | if test $ac_lo -le $ac_mid; then |
| 25864 | ac_lo= ac_hi= |
| 25865 | break |
| 25866 | fi |
| 25867 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 25868 | fi |
| 25869 | |
| 25870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25871 | done |
| 25872 | else |
| 25873 | $as_echo "$as_me: failed program was:" >&5 |
| 25874 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25875 | |
| 25876 | cat >conftest.$ac_ext <<_ACEOF |
| 25877 | /* confdefs.h. */ |
| 25878 | _ACEOF |
| 25879 | cat confdefs.h >>conftest.$ac_ext |
| 25880 | cat >>conftest.$ac_ext <<_ACEOF |
| 25881 | /* end confdefs.h. */ |
| 25882 | $ac_includes_default |
| 25883 | int |
| 25884 | main () |
| 25885 | { |
| 25886 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)]; |
| 25887 | test_array [0] = 0 |
| 25888 | |
| 25889 | ; |
| 25890 | return 0; |
| 25891 | } |
| 25892 | _ACEOF |
| 25893 | rm -f conftest.$ac_objext |
| 25894 | if { (ac_try="$ac_compile" |
| 25895 | case "(($ac_try" in |
| 25896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25897 | *) ac_try_echo=$ac_try;; |
| 25898 | esac |
| 25899 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25900 | $as_echo "$ac_try_echo") >&5 |
| 25901 | (eval "$ac_compile") 2>conftest.er1 |
| 25902 | ac_status=$? |
| 25903 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25904 | rm -f conftest.er1 |
| 25905 | cat conftest.err >&5 |
| 25906 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25907 | (exit $ac_status); } && { |
| 25908 | test -z "$ac_c_werror_flag" || |
| 25909 | test ! -s conftest.err |
| 25910 | } && test -s conftest.$ac_objext; then |
| 25911 | ac_hi=-1 ac_mid=-1 |
| 25912 | while :; do |
| 25913 | cat >conftest.$ac_ext <<_ACEOF |
| 25914 | /* confdefs.h. */ |
| 25915 | _ACEOF |
| 25916 | cat confdefs.h >>conftest.$ac_ext |
| 25917 | cat >>conftest.$ac_ext <<_ACEOF |
| 25918 | /* end confdefs.h. */ |
| 25919 | $ac_includes_default |
| 25920 | int |
| 25921 | main () |
| 25922 | { |
| 25923 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)]; |
| 25924 | test_array [0] = 0 |
| 25925 | |
| 25926 | ; |
| 25927 | return 0; |
| 25928 | } |
| 25929 | _ACEOF |
| 25930 | rm -f conftest.$ac_objext |
| 25931 | if { (ac_try="$ac_compile" |
| 25932 | case "(($ac_try" in |
| 25933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25934 | *) ac_try_echo=$ac_try;; |
| 25935 | esac |
| 25936 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 25937 | $as_echo "$ac_try_echo") >&5 |
| 25938 | (eval "$ac_compile") 2>conftest.er1 |
| 25939 | ac_status=$? |
| 25940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25941 | rm -f conftest.er1 |
| 25942 | cat conftest.err >&5 |
| 25943 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 25944 | (exit $ac_status); } && { |
| 25945 | test -z "$ac_c_werror_flag" || |
| 25946 | test ! -s conftest.err |
| 25947 | } && test -s conftest.$ac_objext; then |
| 25948 | ac_lo=$ac_mid; break |
| 25949 | else |
| 25950 | $as_echo "$as_me: failed program was:" >&5 |
| 25951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25952 | |
| 25953 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 25954 | if test $ac_mid -le $ac_hi; then |
| 25955 | ac_lo= ac_hi= |
| 25956 | break |
| 25957 | fi |
| 25958 | ac_mid=`expr 2 '*' $ac_mid` |
| 25959 | fi |
| 25960 | |
| 25961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25962 | done |
| 25963 | else |
| 25964 | $as_echo "$as_me: failed program was:" >&5 |
| 25965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25966 | |
| 25967 | ac_lo= ac_hi= |
| 25968 | fi |
| 25969 | |
| 25970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25971 | fi |
| 25972 | |
| 25973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25974 | # Binary search between lo and hi bounds. |
| 25975 | while test "x$ac_lo" != "x$ac_hi"; do |
| 25976 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 25977 | cat >conftest.$ac_ext <<_ACEOF |
| 25978 | /* confdefs.h. */ |
| 25979 | _ACEOF |
| 25980 | cat confdefs.h >>conftest.$ac_ext |
| 25981 | cat >>conftest.$ac_ext <<_ACEOF |
| 25982 | /* end confdefs.h. */ |
| 25983 | $ac_includes_default |
| 25984 | int |
| 25985 | main () |
| 25986 | { |
| 25987 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)]; |
| 25988 | test_array [0] = 0 |
| 25989 | |
| 25990 | ; |
| 25991 | return 0; |
| 25992 | } |
| 25993 | _ACEOF |
| 25994 | rm -f conftest.$ac_objext |
| 25995 | if { (ac_try="$ac_compile" |
| 25996 | case "(($ac_try" in |
| 25997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25998 | *) ac_try_echo=$ac_try;; |
| 25999 | esac |
| 26000 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26001 | $as_echo "$ac_try_echo") >&5 |
| 26002 | (eval "$ac_compile") 2>conftest.er1 |
| 26003 | ac_status=$? |
| 26004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26005 | rm -f conftest.er1 |
| 26006 | cat conftest.err >&5 |
| 26007 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26008 | (exit $ac_status); } && { |
| 26009 | test -z "$ac_c_werror_flag" || |
| 26010 | test ! -s conftest.err |
| 26011 | } && test -s conftest.$ac_objext; then |
| 26012 | ac_hi=$ac_mid |
| 26013 | else |
| 26014 | $as_echo "$as_me: failed program was:" >&5 |
| 26015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26016 | |
| 26017 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 26018 | fi |
| 26019 | |
| 26020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26021 | done |
| 26022 | case $ac_lo in |
| 26023 | ?*) ac_cv_sizeof_unsigned_long=$ac_lo;; |
| 26024 | '') if test "$ac_cv_type_unsigned_long" = yes; then |
| 26025 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 26026 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 26027 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long) |
| 26028 | See \`config.log' for more details." >&5 |
| 26029 | $as_echo "$as_me: error: cannot compute sizeof (unsigned long) |
| 26030 | See \`config.log' for more details." >&2;} |
| 26031 | { (exit 77); exit 77; }; }; } |
| 26032 | else |
| 26033 | ac_cv_sizeof_unsigned_long=0 |
| 26034 | fi ;; |
| 26035 | esac |
| 26036 | else |
| 26037 | cat >conftest.$ac_ext <<_ACEOF |
| 26038 | /* confdefs.h. */ |
| 26039 | _ACEOF |
| 26040 | cat confdefs.h >>conftest.$ac_ext |
| 26041 | cat >>conftest.$ac_ext <<_ACEOF |
| 26042 | /* end confdefs.h. */ |
| 26043 | $ac_includes_default |
| 26044 | static long int longval () { return (long int) (sizeof (unsigned long)); } |
| 26045 | static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); } |
| 26046 | #include <stdio.h> |
| 26047 | #include <stdlib.h> |
| 26048 | int |
| 26049 | main () |
| 26050 | { |
| 26051 | |
| 26052 | FILE *f = fopen ("conftest.val", "w"); |
| 26053 | if (! f) |
| 26054 | return 1; |
| 26055 | if (((long int) (sizeof (unsigned long))) < 0) |
| 26056 | { |
| 26057 | long int i = longval (); |
| 26058 | if (i != ((long int) (sizeof (unsigned long)))) |
| 26059 | return 1; |
| 26060 | fprintf (f, "%ld", i); |
| 26061 | } |
| 26062 | else |
| 26063 | { |
| 26064 | unsigned long int i = ulongval (); |
| 26065 | if (i != ((long int) (sizeof (unsigned long)))) |
| 26066 | return 1; |
| 26067 | fprintf (f, "%lu", i); |
| 26068 | } |
| 26069 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 26070 | on some platforms. */ |
| 26071 | return ferror (f) || fclose (f) != 0; |
| 26072 | |
| 26073 | ; |
| 26074 | return 0; |
| 26075 | } |
| 26076 | _ACEOF |
| 26077 | rm -f conftest$ac_exeext |
| 26078 | if { (ac_try="$ac_link" |
| 26079 | case "(($ac_try" in |
| 26080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26081 | *) ac_try_echo=$ac_try;; |
| 26082 | esac |
| 26083 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26084 | $as_echo "$ac_try_echo") >&5 |
| 26085 | (eval "$ac_link") 2>&5 |
| 26086 | ac_status=$? |
| 26087 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26088 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 26089 | { (case "(($ac_try" in |
| 26090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26091 | *) ac_try_echo=$ac_try;; |
| 26092 | esac |
| 26093 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26094 | $as_echo "$ac_try_echo") >&5 |
| 26095 | (eval "$ac_try") 2>&5 |
| 26096 | ac_status=$? |
| 26097 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26098 | (exit $ac_status); }; }; then |
| 26099 | ac_cv_sizeof_unsigned_long=`cat conftest.val` |
| 26100 | else |
| 26101 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 26102 | $as_echo "$as_me: failed program was:" >&5 |
| 26103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26104 | |
| 26105 | ( exit $ac_status ) |
| 26106 | if test "$ac_cv_type_unsigned_long" = yes; then |
| 26107 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 26108 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 26109 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long) |
| 26110 | See \`config.log' for more details." >&5 |
| 26111 | $as_echo "$as_me: error: cannot compute sizeof (unsigned long) |
| 26112 | See \`config.log' for more details." >&2;} |
| 26113 | { (exit 77); exit 77; }; }; } |
| 26114 | else |
| 26115 | ac_cv_sizeof_unsigned_long=0 |
| 26116 | fi |
| 26117 | fi |
| 26118 | rm -rf conftest.dSYM |
| 26119 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 26120 | fi |
| 26121 | rm -f conftest.val |
| 26122 | fi |
| 26123 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5 |
| 26124 | $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } |
| 26125 | |
| 26126 | |
| 26127 | |
| 26128 | cat >>confdefs.h <<_ACEOF |
| 26129 | #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long |
| 26130 | _ACEOF |
| 26131 | |
| 26132 | |
| 26133 | |
| 26134 | # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If |
| 26135 | # 'signed long long' is not supported then the value defined is zero. |
| 26136 | # The cast to long int works around a bug in the HP C Compiler |
| 26137 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 26138 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 26139 | # This bug is HP SR number 8606223364. |
| 26140 | { $as_echo "$as_me:$LINENO: checking size of signed long long" >&5 |
| 26141 | $as_echo_n "checking size of signed long long... " >&6; } |
| 26142 | if test "${ac_cv_sizeof_signed_long_long+set}" = set; then |
| 26143 | $as_echo_n "(cached) " >&6 |
| 26144 | else |
| 26145 | if test "$cross_compiling" = yes; then |
| 26146 | # Depending upon the size, compute the lo and hi bounds. |
| 26147 | cat >conftest.$ac_ext <<_ACEOF |
| 26148 | /* confdefs.h. */ |
| 26149 | _ACEOF |
| 26150 | cat confdefs.h >>conftest.$ac_ext |
| 26151 | cat >>conftest.$ac_ext <<_ACEOF |
| 26152 | /* end confdefs.h. */ |
| 26153 | $ac_includes_default |
| 26154 | int |
| 26155 | main () |
| 26156 | { |
| 26157 | static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= 0)]; |
| 26158 | test_array [0] = 0 |
| 26159 | |
| 26160 | ; |
| 26161 | return 0; |
| 26162 | } |
| 26163 | _ACEOF |
| 26164 | rm -f conftest.$ac_objext |
| 26165 | if { (ac_try="$ac_compile" |
| 26166 | case "(($ac_try" in |
| 26167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26168 | *) ac_try_echo=$ac_try;; |
| 26169 | esac |
| 26170 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26171 | $as_echo "$ac_try_echo") >&5 |
| 26172 | (eval "$ac_compile") 2>conftest.er1 |
| 26173 | ac_status=$? |
| 26174 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26175 | rm -f conftest.er1 |
| 26176 | cat conftest.err >&5 |
| 26177 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26178 | (exit $ac_status); } && { |
| 26179 | test -z "$ac_c_werror_flag" || |
| 26180 | test ! -s conftest.err |
| 26181 | } && test -s conftest.$ac_objext; then |
| 26182 | ac_lo=0 ac_mid=0 |
| 26183 | while :; do |
| 26184 | cat >conftest.$ac_ext <<_ACEOF |
| 26185 | /* confdefs.h. */ |
| 26186 | _ACEOF |
| 26187 | cat confdefs.h >>conftest.$ac_ext |
| 26188 | cat >>conftest.$ac_ext <<_ACEOF |
| 26189 | /* end confdefs.h. */ |
| 26190 | $ac_includes_default |
| 26191 | int |
| 26192 | main () |
| 26193 | { |
| 26194 | static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)]; |
| 26195 | test_array [0] = 0 |
| 26196 | |
| 26197 | ; |
| 26198 | return 0; |
| 26199 | } |
| 26200 | _ACEOF |
| 26201 | rm -f conftest.$ac_objext |
| 26202 | if { (ac_try="$ac_compile" |
| 26203 | case "(($ac_try" in |
| 26204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26205 | *) ac_try_echo=$ac_try;; |
| 26206 | esac |
| 26207 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26208 | $as_echo "$ac_try_echo") >&5 |
| 26209 | (eval "$ac_compile") 2>conftest.er1 |
| 26210 | ac_status=$? |
| 26211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26212 | rm -f conftest.er1 |
| 26213 | cat conftest.err >&5 |
| 26214 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26215 | (exit $ac_status); } && { |
| 26216 | test -z "$ac_c_werror_flag" || |
| 26217 | test ! -s conftest.err |
| 26218 | } && test -s conftest.$ac_objext; then |
| 26219 | ac_hi=$ac_mid; break |
| 26220 | else |
| 26221 | $as_echo "$as_me: failed program was:" >&5 |
| 26222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26223 | |
| 26224 | ac_lo=`expr $ac_mid + 1` |
| 26225 | if test $ac_lo -le $ac_mid; then |
| 26226 | ac_lo= ac_hi= |
| 26227 | break |
| 26228 | fi |
| 26229 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 26230 | fi |
| 26231 | |
| 26232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26233 | done |
| 26234 | else |
| 26235 | $as_echo "$as_me: failed program was:" >&5 |
| 26236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26237 | |
| 26238 | cat >conftest.$ac_ext <<_ACEOF |
| 26239 | /* confdefs.h. */ |
| 26240 | _ACEOF |
| 26241 | cat confdefs.h >>conftest.$ac_ext |
| 26242 | cat >>conftest.$ac_ext <<_ACEOF |
| 26243 | /* end confdefs.h. */ |
| 26244 | $ac_includes_default |
| 26245 | int |
| 26246 | main () |
| 26247 | { |
| 26248 | static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) < 0)]; |
| 26249 | test_array [0] = 0 |
| 26250 | |
| 26251 | ; |
| 26252 | return 0; |
| 26253 | } |
| 26254 | _ACEOF |
| 26255 | rm -f conftest.$ac_objext |
| 26256 | if { (ac_try="$ac_compile" |
| 26257 | case "(($ac_try" in |
| 26258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26259 | *) ac_try_echo=$ac_try;; |
| 26260 | esac |
| 26261 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26262 | $as_echo "$ac_try_echo") >&5 |
| 26263 | (eval "$ac_compile") 2>conftest.er1 |
| 26264 | ac_status=$? |
| 26265 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26266 | rm -f conftest.er1 |
| 26267 | cat conftest.err >&5 |
| 26268 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26269 | (exit $ac_status); } && { |
| 26270 | test -z "$ac_c_werror_flag" || |
| 26271 | test ! -s conftest.err |
| 26272 | } && test -s conftest.$ac_objext; then |
| 26273 | ac_hi=-1 ac_mid=-1 |
| 26274 | while :; do |
| 26275 | cat >conftest.$ac_ext <<_ACEOF |
| 26276 | /* confdefs.h. */ |
| 26277 | _ACEOF |
| 26278 | cat confdefs.h >>conftest.$ac_ext |
| 26279 | cat >>conftest.$ac_ext <<_ACEOF |
| 26280 | /* end confdefs.h. */ |
| 26281 | $ac_includes_default |
| 26282 | int |
| 26283 | main () |
| 26284 | { |
| 26285 | static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= $ac_mid)]; |
| 26286 | test_array [0] = 0 |
| 26287 | |
| 26288 | ; |
| 26289 | return 0; |
| 26290 | } |
| 26291 | _ACEOF |
| 26292 | rm -f conftest.$ac_objext |
| 26293 | if { (ac_try="$ac_compile" |
| 26294 | case "(($ac_try" in |
| 26295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26296 | *) ac_try_echo=$ac_try;; |
| 26297 | esac |
| 26298 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26299 | $as_echo "$ac_try_echo") >&5 |
| 26300 | (eval "$ac_compile") 2>conftest.er1 |
| 26301 | ac_status=$? |
| 26302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26303 | rm -f conftest.er1 |
| 26304 | cat conftest.err >&5 |
| 26305 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26306 | (exit $ac_status); } && { |
| 26307 | test -z "$ac_c_werror_flag" || |
| 26308 | test ! -s conftest.err |
| 26309 | } && test -s conftest.$ac_objext; then |
| 26310 | ac_lo=$ac_mid; break |
| 26311 | else |
| 26312 | $as_echo "$as_me: failed program was:" >&5 |
| 26313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26314 | |
| 26315 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 26316 | if test $ac_mid -le $ac_hi; then |
| 26317 | ac_lo= ac_hi= |
| 26318 | break |
| 26319 | fi |
| 26320 | ac_mid=`expr 2 '*' $ac_mid` |
| 26321 | fi |
| 26322 | |
| 26323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26324 | done |
| 26325 | else |
| 26326 | $as_echo "$as_me: failed program was:" >&5 |
| 26327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26328 | |
| 26329 | ac_lo= ac_hi= |
| 26330 | fi |
| 26331 | |
| 26332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26333 | fi |
| 26334 | |
| 26335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26336 | # Binary search between lo and hi bounds. |
| 26337 | while test "x$ac_lo" != "x$ac_hi"; do |
| 26338 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 26339 | cat >conftest.$ac_ext <<_ACEOF |
| 26340 | /* confdefs.h. */ |
| 26341 | _ACEOF |
| 26342 | cat confdefs.h >>conftest.$ac_ext |
| 26343 | cat >>conftest.$ac_ext <<_ACEOF |
| 26344 | /* end confdefs.h. */ |
| 26345 | $ac_includes_default |
| 26346 | int |
| 26347 | main () |
| 26348 | { |
| 26349 | static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)]; |
| 26350 | test_array [0] = 0 |
| 26351 | |
| 26352 | ; |
| 26353 | return 0; |
| 26354 | } |
| 26355 | _ACEOF |
| 26356 | rm -f conftest.$ac_objext |
| 26357 | if { (ac_try="$ac_compile" |
| 26358 | case "(($ac_try" in |
| 26359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26360 | *) ac_try_echo=$ac_try;; |
| 26361 | esac |
| 26362 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26363 | $as_echo "$ac_try_echo") >&5 |
| 26364 | (eval "$ac_compile") 2>conftest.er1 |
| 26365 | ac_status=$? |
| 26366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26367 | rm -f conftest.er1 |
| 26368 | cat conftest.err >&5 |
| 26369 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26370 | (exit $ac_status); } && { |
| 26371 | test -z "$ac_c_werror_flag" || |
| 26372 | test ! -s conftest.err |
| 26373 | } && test -s conftest.$ac_objext; then |
| 26374 | ac_hi=$ac_mid |
| 26375 | else |
| 26376 | $as_echo "$as_me: failed program was:" >&5 |
| 26377 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26378 | |
| 26379 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 26380 | fi |
| 26381 | |
| 26382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26383 | done |
| 26384 | case $ac_lo in |
| 26385 | ?*) ac_cv_sizeof_signed_long_long=$ac_lo;; |
| 26386 | '') if test "$ac_cv_type_signed_long_long" = yes; then |
| 26387 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 26388 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 26389 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long) |
| 26390 | See \`config.log' for more details." >&5 |
| 26391 | $as_echo "$as_me: error: cannot compute sizeof (signed long long) |
| 26392 | See \`config.log' for more details." >&2;} |
| 26393 | { (exit 77); exit 77; }; }; } |
| 26394 | else |
| 26395 | ac_cv_sizeof_signed_long_long=0 |
| 26396 | fi ;; |
| 26397 | esac |
| 26398 | else |
| 26399 | cat >conftest.$ac_ext <<_ACEOF |
| 26400 | /* confdefs.h. */ |
| 26401 | _ACEOF |
| 26402 | cat confdefs.h >>conftest.$ac_ext |
| 26403 | cat >>conftest.$ac_ext <<_ACEOF |
| 26404 | /* end confdefs.h. */ |
| 26405 | $ac_includes_default |
| 26406 | static long int longval () { return (long int) (sizeof (signed long long)); } |
| 26407 | static unsigned long int ulongval () { return (long int) (sizeof (signed long long)); } |
| 26408 | #include <stdio.h> |
| 26409 | #include <stdlib.h> |
| 26410 | int |
| 26411 | main () |
| 26412 | { |
| 26413 | |
| 26414 | FILE *f = fopen ("conftest.val", "w"); |
| 26415 | if (! f) |
| 26416 | return 1; |
| 26417 | if (((long int) (sizeof (signed long long))) < 0) |
| 26418 | { |
| 26419 | long int i = longval (); |
| 26420 | if (i != ((long int) (sizeof (signed long long)))) |
| 26421 | return 1; |
| 26422 | fprintf (f, "%ld", i); |
| 26423 | } |
| 26424 | else |
| 26425 | { |
| 26426 | unsigned long int i = ulongval (); |
| 26427 | if (i != ((long int) (sizeof (signed long long)))) |
| 26428 | return 1; |
| 26429 | fprintf (f, "%lu", i); |
| 26430 | } |
| 26431 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 26432 | on some platforms. */ |
| 26433 | return ferror (f) || fclose (f) != 0; |
| 26434 | |
| 26435 | ; |
| 26436 | return 0; |
| 26437 | } |
| 26438 | _ACEOF |
| 26439 | rm -f conftest$ac_exeext |
| 26440 | if { (ac_try="$ac_link" |
| 26441 | case "(($ac_try" in |
| 26442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26443 | *) ac_try_echo=$ac_try;; |
| 26444 | esac |
| 26445 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26446 | $as_echo "$ac_try_echo") >&5 |
| 26447 | (eval "$ac_link") 2>&5 |
| 26448 | ac_status=$? |
| 26449 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26450 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 26451 | { (case "(($ac_try" in |
| 26452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26453 | *) ac_try_echo=$ac_try;; |
| 26454 | esac |
| 26455 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26456 | $as_echo "$ac_try_echo") >&5 |
| 26457 | (eval "$ac_try") 2>&5 |
| 26458 | ac_status=$? |
| 26459 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26460 | (exit $ac_status); }; }; then |
| 26461 | ac_cv_sizeof_signed_long_long=`cat conftest.val` |
| 26462 | else |
| 26463 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 26464 | $as_echo "$as_me: failed program was:" >&5 |
| 26465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26466 | |
| 26467 | ( exit $ac_status ) |
| 26468 | if test "$ac_cv_type_signed_long_long" = yes; then |
| 26469 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 26470 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 26471 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long) |
| 26472 | See \`config.log' for more details." >&5 |
| 26473 | $as_echo "$as_me: error: cannot compute sizeof (signed long long) |
| 26474 | See \`config.log' for more details." >&2;} |
| 26475 | { (exit 77); exit 77; }; }; } |
| 26476 | else |
| 26477 | ac_cv_sizeof_signed_long_long=0 |
| 26478 | fi |
| 26479 | fi |
| 26480 | rm -rf conftest.dSYM |
| 26481 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 26482 | fi |
| 26483 | rm -f conftest.val |
| 26484 | fi |
| 26485 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5 |
| 26486 | $as_echo "$ac_cv_sizeof_signed_long_long" >&6; } |
| 26487 | |
| 26488 | |
| 26489 | |
| 26490 | cat >>confdefs.h <<_ACEOF |
| 26491 | #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long |
| 26492 | _ACEOF |
| 26493 | |
| 26494 | |
| 26495 | |
| 26496 | # Obtain size of a 'unsigned long long' and define as |
| 26497 | # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not |
| 26498 | # supported then the value defined is zero. |
| 26499 | # The cast to long int works around a bug in the HP C Compiler |
| 26500 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 26501 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 26502 | # This bug is HP SR number 8606223364. |
| 26503 | { $as_echo "$as_me:$LINENO: checking size of unsigned long long" >&5 |
| 26504 | $as_echo_n "checking size of unsigned long long... " >&6; } |
| 26505 | if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then |
| 26506 | $as_echo_n "(cached) " >&6 |
| 26507 | else |
| 26508 | if test "$cross_compiling" = yes; then |
| 26509 | # Depending upon the size, compute the lo and hi bounds. |
| 26510 | cat >conftest.$ac_ext <<_ACEOF |
| 26511 | /* confdefs.h. */ |
| 26512 | _ACEOF |
| 26513 | cat confdefs.h >>conftest.$ac_ext |
| 26514 | cat >>conftest.$ac_ext <<_ACEOF |
| 26515 | /* end confdefs.h. */ |
| 26516 | $ac_includes_default |
| 26517 | int |
| 26518 | main () |
| 26519 | { |
| 26520 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= 0)]; |
| 26521 | test_array [0] = 0 |
| 26522 | |
| 26523 | ; |
| 26524 | return 0; |
| 26525 | } |
| 26526 | _ACEOF |
| 26527 | rm -f conftest.$ac_objext |
| 26528 | if { (ac_try="$ac_compile" |
| 26529 | case "(($ac_try" in |
| 26530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26531 | *) ac_try_echo=$ac_try;; |
| 26532 | esac |
| 26533 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26534 | $as_echo "$ac_try_echo") >&5 |
| 26535 | (eval "$ac_compile") 2>conftest.er1 |
| 26536 | ac_status=$? |
| 26537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26538 | rm -f conftest.er1 |
| 26539 | cat conftest.err >&5 |
| 26540 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26541 | (exit $ac_status); } && { |
| 26542 | test -z "$ac_c_werror_flag" || |
| 26543 | test ! -s conftest.err |
| 26544 | } && test -s conftest.$ac_objext; then |
| 26545 | ac_lo=0 ac_mid=0 |
| 26546 | while :; do |
| 26547 | cat >conftest.$ac_ext <<_ACEOF |
| 26548 | /* confdefs.h. */ |
| 26549 | _ACEOF |
| 26550 | cat confdefs.h >>conftest.$ac_ext |
| 26551 | cat >>conftest.$ac_ext <<_ACEOF |
| 26552 | /* end confdefs.h. */ |
| 26553 | $ac_includes_default |
| 26554 | int |
| 26555 | main () |
| 26556 | { |
| 26557 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)]; |
| 26558 | test_array [0] = 0 |
| 26559 | |
| 26560 | ; |
| 26561 | return 0; |
| 26562 | } |
| 26563 | _ACEOF |
| 26564 | rm -f conftest.$ac_objext |
| 26565 | if { (ac_try="$ac_compile" |
| 26566 | case "(($ac_try" in |
| 26567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26568 | *) ac_try_echo=$ac_try;; |
| 26569 | esac |
| 26570 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26571 | $as_echo "$ac_try_echo") >&5 |
| 26572 | (eval "$ac_compile") 2>conftest.er1 |
| 26573 | ac_status=$? |
| 26574 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26575 | rm -f conftest.er1 |
| 26576 | cat conftest.err >&5 |
| 26577 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26578 | (exit $ac_status); } && { |
| 26579 | test -z "$ac_c_werror_flag" || |
| 26580 | test ! -s conftest.err |
| 26581 | } && test -s conftest.$ac_objext; then |
| 26582 | ac_hi=$ac_mid; break |
| 26583 | else |
| 26584 | $as_echo "$as_me: failed program was:" >&5 |
| 26585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26586 | |
| 26587 | ac_lo=`expr $ac_mid + 1` |
| 26588 | if test $ac_lo -le $ac_mid; then |
| 26589 | ac_lo= ac_hi= |
| 26590 | break |
| 26591 | fi |
| 26592 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 26593 | fi |
| 26594 | |
| 26595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26596 | done |
| 26597 | else |
| 26598 | $as_echo "$as_me: failed program was:" >&5 |
| 26599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26600 | |
| 26601 | cat >conftest.$ac_ext <<_ACEOF |
| 26602 | /* confdefs.h. */ |
| 26603 | _ACEOF |
| 26604 | cat confdefs.h >>conftest.$ac_ext |
| 26605 | cat >>conftest.$ac_ext <<_ACEOF |
| 26606 | /* end confdefs.h. */ |
| 26607 | $ac_includes_default |
| 26608 | int |
| 26609 | main () |
| 26610 | { |
| 26611 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) < 0)]; |
| 26612 | test_array [0] = 0 |
| 26613 | |
| 26614 | ; |
| 26615 | return 0; |
| 26616 | } |
| 26617 | _ACEOF |
| 26618 | rm -f conftest.$ac_objext |
| 26619 | if { (ac_try="$ac_compile" |
| 26620 | case "(($ac_try" in |
| 26621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26622 | *) ac_try_echo=$ac_try;; |
| 26623 | esac |
| 26624 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26625 | $as_echo "$ac_try_echo") >&5 |
| 26626 | (eval "$ac_compile") 2>conftest.er1 |
| 26627 | ac_status=$? |
| 26628 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26629 | rm -f conftest.er1 |
| 26630 | cat conftest.err >&5 |
| 26631 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26632 | (exit $ac_status); } && { |
| 26633 | test -z "$ac_c_werror_flag" || |
| 26634 | test ! -s conftest.err |
| 26635 | } && test -s conftest.$ac_objext; then |
| 26636 | ac_hi=-1 ac_mid=-1 |
| 26637 | while :; do |
| 26638 | cat >conftest.$ac_ext <<_ACEOF |
| 26639 | /* confdefs.h. */ |
| 26640 | _ACEOF |
| 26641 | cat confdefs.h >>conftest.$ac_ext |
| 26642 | cat >>conftest.$ac_ext <<_ACEOF |
| 26643 | /* end confdefs.h. */ |
| 26644 | $ac_includes_default |
| 26645 | int |
| 26646 | main () |
| 26647 | { |
| 26648 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= $ac_mid)]; |
| 26649 | test_array [0] = 0 |
| 26650 | |
| 26651 | ; |
| 26652 | return 0; |
| 26653 | } |
| 26654 | _ACEOF |
| 26655 | rm -f conftest.$ac_objext |
| 26656 | if { (ac_try="$ac_compile" |
| 26657 | case "(($ac_try" in |
| 26658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26659 | *) ac_try_echo=$ac_try;; |
| 26660 | esac |
| 26661 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26662 | $as_echo "$ac_try_echo") >&5 |
| 26663 | (eval "$ac_compile") 2>conftest.er1 |
| 26664 | ac_status=$? |
| 26665 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26666 | rm -f conftest.er1 |
| 26667 | cat conftest.err >&5 |
| 26668 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26669 | (exit $ac_status); } && { |
| 26670 | test -z "$ac_c_werror_flag" || |
| 26671 | test ! -s conftest.err |
| 26672 | } && test -s conftest.$ac_objext; then |
| 26673 | ac_lo=$ac_mid; break |
| 26674 | else |
| 26675 | $as_echo "$as_me: failed program was:" >&5 |
| 26676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26677 | |
| 26678 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 26679 | if test $ac_mid -le $ac_hi; then |
| 26680 | ac_lo= ac_hi= |
| 26681 | break |
| 26682 | fi |
| 26683 | ac_mid=`expr 2 '*' $ac_mid` |
| 26684 | fi |
| 26685 | |
| 26686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26687 | done |
| 26688 | else |
| 26689 | $as_echo "$as_me: failed program was:" >&5 |
| 26690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26691 | |
| 26692 | ac_lo= ac_hi= |
| 26693 | fi |
| 26694 | |
| 26695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26696 | fi |
| 26697 | |
| 26698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26699 | # Binary search between lo and hi bounds. |
| 26700 | while test "x$ac_lo" != "x$ac_hi"; do |
| 26701 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 26702 | cat >conftest.$ac_ext <<_ACEOF |
| 26703 | /* confdefs.h. */ |
| 26704 | _ACEOF |
| 26705 | cat confdefs.h >>conftest.$ac_ext |
| 26706 | cat >>conftest.$ac_ext <<_ACEOF |
| 26707 | /* end confdefs.h. */ |
| 26708 | $ac_includes_default |
| 26709 | int |
| 26710 | main () |
| 26711 | { |
| 26712 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)]; |
| 26713 | test_array [0] = 0 |
| 26714 | |
| 26715 | ; |
| 26716 | return 0; |
| 26717 | } |
| 26718 | _ACEOF |
| 26719 | rm -f conftest.$ac_objext |
| 26720 | if { (ac_try="$ac_compile" |
| 26721 | case "(($ac_try" in |
| 26722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26723 | *) ac_try_echo=$ac_try;; |
| 26724 | esac |
| 26725 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26726 | $as_echo "$ac_try_echo") >&5 |
| 26727 | (eval "$ac_compile") 2>conftest.er1 |
| 26728 | ac_status=$? |
| 26729 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26730 | rm -f conftest.er1 |
| 26731 | cat conftest.err >&5 |
| 26732 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26733 | (exit $ac_status); } && { |
| 26734 | test -z "$ac_c_werror_flag" || |
| 26735 | test ! -s conftest.err |
| 26736 | } && test -s conftest.$ac_objext; then |
| 26737 | ac_hi=$ac_mid |
| 26738 | else |
| 26739 | $as_echo "$as_me: failed program was:" >&5 |
| 26740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26741 | |
| 26742 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 26743 | fi |
| 26744 | |
| 26745 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26746 | done |
| 26747 | case $ac_lo in |
| 26748 | ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;; |
| 26749 | '') if test "$ac_cv_type_unsigned_long_long" = yes; then |
| 26750 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 26751 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 26752 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long) |
| 26753 | See \`config.log' for more details." >&5 |
| 26754 | $as_echo "$as_me: error: cannot compute sizeof (unsigned long long) |
| 26755 | See \`config.log' for more details." >&2;} |
| 26756 | { (exit 77); exit 77; }; }; } |
| 26757 | else |
| 26758 | ac_cv_sizeof_unsigned_long_long=0 |
| 26759 | fi ;; |
| 26760 | esac |
| 26761 | else |
| 26762 | cat >conftest.$ac_ext <<_ACEOF |
| 26763 | /* confdefs.h. */ |
| 26764 | _ACEOF |
| 26765 | cat confdefs.h >>conftest.$ac_ext |
| 26766 | cat >>conftest.$ac_ext <<_ACEOF |
| 26767 | /* end confdefs.h. */ |
| 26768 | $ac_includes_default |
| 26769 | static long int longval () { return (long int) (sizeof (unsigned long long)); } |
| 26770 | static unsigned long int ulongval () { return (long int) (sizeof (unsigned long long)); } |
| 26771 | #include <stdio.h> |
| 26772 | #include <stdlib.h> |
| 26773 | int |
| 26774 | main () |
| 26775 | { |
| 26776 | |
| 26777 | FILE *f = fopen ("conftest.val", "w"); |
| 26778 | if (! f) |
| 26779 | return 1; |
| 26780 | if (((long int) (sizeof (unsigned long long))) < 0) |
| 26781 | { |
| 26782 | long int i = longval (); |
| 26783 | if (i != ((long int) (sizeof (unsigned long long)))) |
| 26784 | return 1; |
| 26785 | fprintf (f, "%ld", i); |
| 26786 | } |
| 26787 | else |
| 26788 | { |
| 26789 | unsigned long int i = ulongval (); |
| 26790 | if (i != ((long int) (sizeof (unsigned long long)))) |
| 26791 | return 1; |
| 26792 | fprintf (f, "%lu", i); |
| 26793 | } |
| 26794 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 26795 | on some platforms. */ |
| 26796 | return ferror (f) || fclose (f) != 0; |
| 26797 | |
| 26798 | ; |
| 26799 | return 0; |
| 26800 | } |
| 26801 | _ACEOF |
| 26802 | rm -f conftest$ac_exeext |
| 26803 | if { (ac_try="$ac_link" |
| 26804 | case "(($ac_try" in |
| 26805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26806 | *) ac_try_echo=$ac_try;; |
| 26807 | esac |
| 26808 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26809 | $as_echo "$ac_try_echo") >&5 |
| 26810 | (eval "$ac_link") 2>&5 |
| 26811 | ac_status=$? |
| 26812 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26813 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 26814 | { (case "(($ac_try" in |
| 26815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26816 | *) ac_try_echo=$ac_try;; |
| 26817 | esac |
| 26818 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26819 | $as_echo "$ac_try_echo") >&5 |
| 26820 | (eval "$ac_try") 2>&5 |
| 26821 | ac_status=$? |
| 26822 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26823 | (exit $ac_status); }; }; then |
| 26824 | ac_cv_sizeof_unsigned_long_long=`cat conftest.val` |
| 26825 | else |
| 26826 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 26827 | $as_echo "$as_me: failed program was:" >&5 |
| 26828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26829 | |
| 26830 | ( exit $ac_status ) |
| 26831 | if test "$ac_cv_type_unsigned_long_long" = yes; then |
| 26832 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 26833 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 26834 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long) |
| 26835 | See \`config.log' for more details." >&5 |
| 26836 | $as_echo "$as_me: error: cannot compute sizeof (unsigned long long) |
| 26837 | See \`config.log' for more details." >&2;} |
| 26838 | { (exit 77); exit 77; }; }; } |
| 26839 | else |
| 26840 | ac_cv_sizeof_unsigned_long_long=0 |
| 26841 | fi |
| 26842 | fi |
| 26843 | rm -rf conftest.dSYM |
| 26844 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 26845 | fi |
| 26846 | rm -f conftest.val |
| 26847 | fi |
| 26848 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5 |
| 26849 | $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } |
| 26850 | |
| 26851 | |
| 26852 | |
| 26853 | cat >>confdefs.h <<_ACEOF |
| 26854 | #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long |
| 26855 | _ACEOF |
| 26856 | |
| 26857 | |
| 26858 | |
| 26859 | # Obtain size of off_t and define as SIZEOF_OFF_T |
| 26860 | # The cast to long int works around a bug in the HP C Compiler |
| 26861 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 26862 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 26863 | # This bug is HP SR number 8606223364. |
| 26864 | { $as_echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 26865 | $as_echo_n "checking size of off_t... " >&6; } |
| 26866 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 26867 | $as_echo_n "(cached) " >&6 |
| 26868 | else |
| 26869 | if test "$cross_compiling" = yes; then |
| 26870 | # Depending upon the size, compute the lo and hi bounds. |
| 26871 | cat >conftest.$ac_ext <<_ACEOF |
| 26872 | /* confdefs.h. */ |
| 26873 | _ACEOF |
| 26874 | cat confdefs.h >>conftest.$ac_ext |
| 26875 | cat >>conftest.$ac_ext <<_ACEOF |
| 26876 | /* end confdefs.h. */ |
| 26877 | $ac_includes_default |
| 26878 | int |
| 26879 | main () |
| 26880 | { |
| 26881 | static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)]; |
| 26882 | test_array [0] = 0 |
| 26883 | |
| 26884 | ; |
| 26885 | return 0; |
| 26886 | } |
| 26887 | _ACEOF |
| 26888 | rm -f conftest.$ac_objext |
| 26889 | if { (ac_try="$ac_compile" |
| 26890 | case "(($ac_try" in |
| 26891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26892 | *) ac_try_echo=$ac_try;; |
| 26893 | esac |
| 26894 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26895 | $as_echo "$ac_try_echo") >&5 |
| 26896 | (eval "$ac_compile") 2>conftest.er1 |
| 26897 | ac_status=$? |
| 26898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26899 | rm -f conftest.er1 |
| 26900 | cat conftest.err >&5 |
| 26901 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26902 | (exit $ac_status); } && { |
| 26903 | test -z "$ac_c_werror_flag" || |
| 26904 | test ! -s conftest.err |
| 26905 | } && test -s conftest.$ac_objext; then |
| 26906 | ac_lo=0 ac_mid=0 |
| 26907 | while :; do |
| 26908 | cat >conftest.$ac_ext <<_ACEOF |
| 26909 | /* confdefs.h. */ |
| 26910 | _ACEOF |
| 26911 | cat confdefs.h >>conftest.$ac_ext |
| 26912 | cat >>conftest.$ac_ext <<_ACEOF |
| 26913 | /* end confdefs.h. */ |
| 26914 | $ac_includes_default |
| 26915 | int |
| 26916 | main () |
| 26917 | { |
| 26918 | static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)]; |
| 26919 | test_array [0] = 0 |
| 26920 | |
| 26921 | ; |
| 26922 | return 0; |
| 26923 | } |
| 26924 | _ACEOF |
| 26925 | rm -f conftest.$ac_objext |
| 26926 | if { (ac_try="$ac_compile" |
| 26927 | case "(($ac_try" in |
| 26928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26929 | *) ac_try_echo=$ac_try;; |
| 26930 | esac |
| 26931 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26932 | $as_echo "$ac_try_echo") >&5 |
| 26933 | (eval "$ac_compile") 2>conftest.er1 |
| 26934 | ac_status=$? |
| 26935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26936 | rm -f conftest.er1 |
| 26937 | cat conftest.err >&5 |
| 26938 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26939 | (exit $ac_status); } && { |
| 26940 | test -z "$ac_c_werror_flag" || |
| 26941 | test ! -s conftest.err |
| 26942 | } && test -s conftest.$ac_objext; then |
| 26943 | ac_hi=$ac_mid; break |
| 26944 | else |
| 26945 | $as_echo "$as_me: failed program was:" >&5 |
| 26946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26947 | |
| 26948 | ac_lo=`expr $ac_mid + 1` |
| 26949 | if test $ac_lo -le $ac_mid; then |
| 26950 | ac_lo= ac_hi= |
| 26951 | break |
| 26952 | fi |
| 26953 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 26954 | fi |
| 26955 | |
| 26956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26957 | done |
| 26958 | else |
| 26959 | $as_echo "$as_me: failed program was:" >&5 |
| 26960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26961 | |
| 26962 | cat >conftest.$ac_ext <<_ACEOF |
| 26963 | /* confdefs.h. */ |
| 26964 | _ACEOF |
| 26965 | cat confdefs.h >>conftest.$ac_ext |
| 26966 | cat >>conftest.$ac_ext <<_ACEOF |
| 26967 | /* end confdefs.h. */ |
| 26968 | $ac_includes_default |
| 26969 | int |
| 26970 | main () |
| 26971 | { |
| 26972 | static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)]; |
| 26973 | test_array [0] = 0 |
| 26974 | |
| 26975 | ; |
| 26976 | return 0; |
| 26977 | } |
| 26978 | _ACEOF |
| 26979 | rm -f conftest.$ac_objext |
| 26980 | if { (ac_try="$ac_compile" |
| 26981 | case "(($ac_try" in |
| 26982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26983 | *) ac_try_echo=$ac_try;; |
| 26984 | esac |
| 26985 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 26986 | $as_echo "$ac_try_echo") >&5 |
| 26987 | (eval "$ac_compile") 2>conftest.er1 |
| 26988 | ac_status=$? |
| 26989 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26990 | rm -f conftest.er1 |
| 26991 | cat conftest.err >&5 |
| 26992 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26993 | (exit $ac_status); } && { |
| 26994 | test -z "$ac_c_werror_flag" || |
| 26995 | test ! -s conftest.err |
| 26996 | } && test -s conftest.$ac_objext; then |
| 26997 | ac_hi=-1 ac_mid=-1 |
| 26998 | while :; do |
| 26999 | cat >conftest.$ac_ext <<_ACEOF |
| 27000 | /* confdefs.h. */ |
| 27001 | _ACEOF |
| 27002 | cat confdefs.h >>conftest.$ac_ext |
| 27003 | cat >>conftest.$ac_ext <<_ACEOF |
| 27004 | /* end confdefs.h. */ |
| 27005 | $ac_includes_default |
| 27006 | int |
| 27007 | main () |
| 27008 | { |
| 27009 | static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)]; |
| 27010 | test_array [0] = 0 |
| 27011 | |
| 27012 | ; |
| 27013 | return 0; |
| 27014 | } |
| 27015 | _ACEOF |
| 27016 | rm -f conftest.$ac_objext |
| 27017 | if { (ac_try="$ac_compile" |
| 27018 | case "(($ac_try" in |
| 27019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27020 | *) ac_try_echo=$ac_try;; |
| 27021 | esac |
| 27022 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 27023 | $as_echo "$ac_try_echo") >&5 |
| 27024 | (eval "$ac_compile") 2>conftest.er1 |
| 27025 | ac_status=$? |
| 27026 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27027 | rm -f conftest.er1 |
| 27028 | cat conftest.err >&5 |
| 27029 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27030 | (exit $ac_status); } && { |
| 27031 | test -z "$ac_c_werror_flag" || |
| 27032 | test ! -s conftest.err |
| 27033 | } && test -s conftest.$ac_objext; then |
| 27034 | ac_lo=$ac_mid; break |
| 27035 | else |
| 27036 | $as_echo "$as_me: failed program was:" >&5 |
| 27037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27038 | |
| 27039 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 27040 | if test $ac_mid -le $ac_hi; then |
| 27041 | ac_lo= ac_hi= |
| 27042 | break |
| 27043 | fi |
| 27044 | ac_mid=`expr 2 '*' $ac_mid` |
| 27045 | fi |
| 27046 | |
| 27047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27048 | done |
| 27049 | else |
| 27050 | $as_echo "$as_me: failed program was:" >&5 |
| 27051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27052 | |
| 27053 | ac_lo= ac_hi= |
| 27054 | fi |
| 27055 | |
| 27056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27057 | fi |
| 27058 | |
| 27059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27060 | # Binary search between lo and hi bounds. |
| 27061 | while test "x$ac_lo" != "x$ac_hi"; do |
| 27062 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 27063 | cat >conftest.$ac_ext <<_ACEOF |
| 27064 | /* confdefs.h. */ |
| 27065 | _ACEOF |
| 27066 | cat confdefs.h >>conftest.$ac_ext |
| 27067 | cat >>conftest.$ac_ext <<_ACEOF |
| 27068 | /* end confdefs.h. */ |
| 27069 | $ac_includes_default |
| 27070 | int |
| 27071 | main () |
| 27072 | { |
| 27073 | static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)]; |
| 27074 | test_array [0] = 0 |
| 27075 | |
| 27076 | ; |
| 27077 | return 0; |
| 27078 | } |
| 27079 | _ACEOF |
| 27080 | rm -f conftest.$ac_objext |
| 27081 | if { (ac_try="$ac_compile" |
| 27082 | case "(($ac_try" in |
| 27083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27084 | *) ac_try_echo=$ac_try;; |
| 27085 | esac |
| 27086 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 27087 | $as_echo "$ac_try_echo") >&5 |
| 27088 | (eval "$ac_compile") 2>conftest.er1 |
| 27089 | ac_status=$? |
| 27090 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27091 | rm -f conftest.er1 |
| 27092 | cat conftest.err >&5 |
| 27093 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27094 | (exit $ac_status); } && { |
| 27095 | test -z "$ac_c_werror_flag" || |
| 27096 | test ! -s conftest.err |
| 27097 | } && test -s conftest.$ac_objext; then |
| 27098 | ac_hi=$ac_mid |
| 27099 | else |
| 27100 | $as_echo "$as_me: failed program was:" >&5 |
| 27101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27102 | |
| 27103 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 27104 | fi |
| 27105 | |
| 27106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27107 | done |
| 27108 | case $ac_lo in |
| 27109 | ?*) ac_cv_sizeof_off_t=$ac_lo;; |
| 27110 | '') if test "$ac_cv_type_off_t" = yes; then |
| 27111 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 27112 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 27113 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 27114 | See \`config.log' for more details." >&5 |
| 27115 | $as_echo "$as_me: error: cannot compute sizeof (off_t) |
| 27116 | See \`config.log' for more details." >&2;} |
| 27117 | { (exit 77); exit 77; }; }; } |
| 27118 | else |
| 27119 | ac_cv_sizeof_off_t=0 |
| 27120 | fi ;; |
| 27121 | esac |
| 27122 | else |
| 27123 | cat >conftest.$ac_ext <<_ACEOF |
| 27124 | /* confdefs.h. */ |
| 27125 | _ACEOF |
| 27126 | cat confdefs.h >>conftest.$ac_ext |
| 27127 | cat >>conftest.$ac_ext <<_ACEOF |
| 27128 | /* end confdefs.h. */ |
| 27129 | $ac_includes_default |
| 27130 | static long int longval () { return (long int) (sizeof (off_t)); } |
| 27131 | static unsigned long int ulongval () { return (long int) (sizeof (off_t)); } |
| 27132 | #include <stdio.h> |
| 27133 | #include <stdlib.h> |
| 27134 | int |
| 27135 | main () |
| 27136 | { |
| 27137 | |
| 27138 | FILE *f = fopen ("conftest.val", "w"); |
| 27139 | if (! f) |
| 27140 | return 1; |
| 27141 | if (((long int) (sizeof (off_t))) < 0) |
| 27142 | { |
| 27143 | long int i = longval (); |
| 27144 | if (i != ((long int) (sizeof (off_t)))) |
| 27145 | return 1; |
| 27146 | fprintf (f, "%ld", i); |
| 27147 | } |
| 27148 | else |
| 27149 | { |
| 27150 | unsigned long int i = ulongval (); |
| 27151 | if (i != ((long int) (sizeof (off_t)))) |
| 27152 | return 1; |
| 27153 | fprintf (f, "%lu", i); |
| 27154 | } |
| 27155 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 27156 | on some platforms. */ |
| 27157 | return ferror (f) || fclose (f) != 0; |
| 27158 | |
| 27159 | ; |
| 27160 | return 0; |
| 27161 | } |
| 27162 | _ACEOF |
| 27163 | rm -f conftest$ac_exeext |
| 27164 | if { (ac_try="$ac_link" |
| 27165 | case "(($ac_try" in |
| 27166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27167 | *) ac_try_echo=$ac_try;; |
| 27168 | esac |
| 27169 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 27170 | $as_echo "$ac_try_echo") >&5 |
| 27171 | (eval "$ac_link") 2>&5 |
| 27172 | ac_status=$? |
| 27173 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27174 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 27175 | { (case "(($ac_try" in |
| 27176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27177 | *) ac_try_echo=$ac_try;; |
| 27178 | esac |
| 27179 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 27180 | $as_echo "$ac_try_echo") >&5 |
| 27181 | (eval "$ac_try") 2>&5 |
| 27182 | ac_status=$? |
| 27183 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27184 | (exit $ac_status); }; }; then |
| 27185 | ac_cv_sizeof_off_t=`cat conftest.val` |
| 27186 | else |
| 27187 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 27188 | $as_echo "$as_me: failed program was:" >&5 |
| 27189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27190 | |
| 27191 | ( exit $ac_status ) |
| 27192 | if test "$ac_cv_type_off_t" = yes; then |
| 27193 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 27194 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 27195 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) |
| 27196 | See \`config.log' for more details." >&5 |
| 27197 | $as_echo "$as_me: error: cannot compute sizeof (off_t) |
| 27198 | See \`config.log' for more details." >&2;} |
| 27199 | { (exit 77); exit 77; }; }; } |
| 27200 | else |
| 27201 | ac_cv_sizeof_off_t=0 |
| 27202 | fi |
| 27203 | fi |
| 27204 | rm -rf conftest.dSYM |
| 27205 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 27206 | fi |
| 27207 | rm -f conftest.val |
| 27208 | fi |
| 27209 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 27210 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
| 27211 | |
| 27212 | |
| 27213 | |
| 27214 | cat >>confdefs.h <<_ACEOF |
| 27215 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 27216 | _ACEOF |
| 27217 | |
| 27218 | |
| 27219 | |
| 27220 | # Obtain size of size_t and define as SIZEOF_SIZE_T |
| 27221 | # The cast to long int works around a bug in the HP C Compiler |
| 27222 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 27223 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 27224 | # This bug is HP SR number 8606223364. |
| 27225 | { $as_echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 27226 | $as_echo_n "checking size of size_t... " >&6; } |
| 27227 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
| 27228 | $as_echo_n "(cached) " >&6 |
| 27229 | else |
| 27230 | if test "$cross_compiling" = yes; then |
| 27231 | # Depending upon the size, compute the lo and hi bounds. |
| 27232 | cat >conftest.$ac_ext <<_ACEOF |
| 27233 | /* confdefs.h. */ |
| 27234 | _ACEOF |
| 27235 | cat confdefs.h >>conftest.$ac_ext |
| 27236 | cat >>conftest.$ac_ext <<_ACEOF |
| 27237 | /* end confdefs.h. */ |
| 27238 | $ac_includes_default |
| 27239 | int |
| 27240 | main () |
| 27241 | { |
| 27242 | static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)]; |
| 27243 | test_array [0] = 0 |
| 27244 | |
| 27245 | ; |
| 27246 | return 0; |
| 27247 | } |
| 27248 | _ACEOF |
| 27249 | rm -f conftest.$ac_objext |
| 27250 | if { (ac_try="$ac_compile" |
| 27251 | case "(($ac_try" in |
| 27252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27253 | *) ac_try_echo=$ac_try;; |
| 27254 | esac |
| 27255 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 27256 | $as_echo "$ac_try_echo") >&5 |
| 27257 | (eval "$ac_compile") 2>conftest.er1 |
| 27258 | ac_status=$? |
| 27259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27260 | rm -f conftest.er1 |
| 27261 | cat conftest.err >&5 |
| 27262 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27263 | (exit $ac_status); } && { |
| 27264 | test -z "$ac_c_werror_flag" || |
| 27265 | test ! -s conftest.err |
| 27266 | } && test -s conftest.$ac_objext; then |
| 27267 | ac_lo=0 ac_mid=0 |
| 27268 | while :; do |
| 27269 | cat >conftest.$ac_ext <<_ACEOF |
| 27270 | /* confdefs.h. */ |
| 27271 | _ACEOF |
| 27272 | cat confdefs.h >>conftest.$ac_ext |
| 27273 | cat >>conftest.$ac_ext <<_ACEOF |
| 27274 | /* end confdefs.h. */ |
| 27275 | $ac_includes_default |
| 27276 | int |
| 27277 | main () |
| 27278 | { |
| 27279 | static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)]; |
| 27280 | test_array [0] = 0 |
| 27281 | |
| 27282 | ; |
| 27283 | return 0; |
| 27284 | } |
| 27285 | _ACEOF |
| 27286 | rm -f conftest.$ac_objext |
| 27287 | if { (ac_try="$ac_compile" |
| 27288 | case "(($ac_try" in |
| 27289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27290 | *) ac_try_echo=$ac_try;; |
| 27291 | esac |
| 27292 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 27293 | $as_echo "$ac_try_echo") >&5 |
| 27294 | (eval "$ac_compile") 2>conftest.er1 |
| 27295 | ac_status=$? |
| 27296 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27297 | rm -f conftest.er1 |
| 27298 | cat conftest.err >&5 |
| 27299 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27300 | (exit $ac_status); } && { |
| 27301 | test -z "$ac_c_werror_flag" || |
| 27302 | test ! -s conftest.err |
| 27303 | } && test -s conftest.$ac_objext; then |
| 27304 | ac_hi=$ac_mid; break |
| 27305 | else |
| 27306 | $as_echo "$as_me: failed program was:" >&5 |
| 27307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27308 | |
| 27309 | ac_lo=`expr $ac_mid + 1` |
| 27310 | if test $ac_lo -le $ac_mid; then |
| 27311 | ac_lo= ac_hi= |
| 27312 | break |
| 27313 | fi |
| 27314 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 27315 | fi |
| 27316 | |
| 27317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27318 | done |
| 27319 | else |
| 27320 | $as_echo "$as_me: failed program was:" >&5 |
| 27321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27322 | |
| 27323 | cat >conftest.$ac_ext <<_ACEOF |
| 27324 | /* confdefs.h. */ |
| 27325 | _ACEOF |
| 27326 | cat confdefs.h >>conftest.$ac_ext |
| 27327 | cat >>conftest.$ac_ext <<_ACEOF |
| 27328 | /* end confdefs.h. */ |
| 27329 | $ac_includes_default |
| 27330 | int |
| 27331 | main () |
| 27332 | { |
| 27333 | static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)]; |
| 27334 | test_array [0] = 0 |
| 27335 | |
| 27336 | ; |
| 27337 | return 0; |
| 27338 | } |
| 27339 | _ACEOF |
| 27340 | rm -f conftest.$ac_objext |
| 27341 | if { (ac_try="$ac_compile" |
| 27342 | case "(($ac_try" in |
| 27343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27344 | *) ac_try_echo=$ac_try;; |
| 27345 | esac |
| 27346 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 27347 | $as_echo "$ac_try_echo") >&5 |
| 27348 | (eval "$ac_compile") 2>conftest.er1 |
| 27349 | ac_status=$? |
| 27350 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27351 | rm -f conftest.er1 |
| 27352 | cat conftest.err >&5 |
| 27353 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27354 | (exit $ac_status); } && { |
| 27355 | test -z "$ac_c_werror_flag" || |
| 27356 | test ! -s conftest.err |
| 27357 | } && test -s conftest.$ac_objext; then |
| 27358 | ac_hi=-1 ac_mid=-1 |
| 27359 | while :; do |
| 27360 | cat >conftest.$ac_ext <<_ACEOF |
| 27361 | /* confdefs.h. */ |
| 27362 | _ACEOF |
| 27363 | cat confdefs.h >>conftest.$ac_ext |
| 27364 | cat >>conftest.$ac_ext <<_ACEOF |
| 27365 | /* end confdefs.h. */ |
| 27366 | $ac_includes_default |
| 27367 | int |
| 27368 | main () |
| 27369 | { |
| 27370 | static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)]; |
| 27371 | test_array [0] = 0 |
| 27372 | |
| 27373 | ; |
| 27374 | return 0; |
| 27375 | } |
| 27376 | _ACEOF |
| 27377 | rm -f conftest.$ac_objext |
| 27378 | if { (ac_try="$ac_compile" |
| 27379 | case "(($ac_try" in |
| 27380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27381 | *) ac_try_echo=$ac_try;; |
| 27382 | esac |
| 27383 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 27384 | $as_echo "$ac_try_echo") >&5 |
| 27385 | (eval "$ac_compile") 2>conftest.er1 |
| 27386 | ac_status=$? |
| 27387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27388 | rm -f conftest.er1 |
| 27389 | cat conftest.err >&5 |
| 27390 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27391 | (exit $ac_status); } && { |
| 27392 | test -z "$ac_c_werror_flag" || |
| 27393 | test ! -s conftest.err |
| 27394 | } && test -s conftest.$ac_objext; then |
| 27395 | ac_lo=$ac_mid; break |
| 27396 | else |
| 27397 | $as_echo "$as_me: failed program was:" >&5 |
| 27398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27399 | |
| 27400 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 27401 | if test $ac_mid -le $ac_hi; then |
| 27402 | ac_lo= ac_hi= |
| 27403 | break |
| 27404 | fi |
| 27405 | ac_mid=`expr 2 '*' $ac_mid` |
| 27406 | fi |
| 27407 | |
| 27408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27409 | done |
| 27410 | else |
| 27411 | $as_echo "$as_me: failed program was:" >&5 |
| 27412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27413 | |
| 27414 | ac_lo= ac_hi= |
| 27415 | fi |
| 27416 | |
| 27417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27418 | fi |
| 27419 | |
| 27420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27421 | # Binary search between lo and hi bounds. |
| 27422 | while test "x$ac_lo" != "x$ac_hi"; do |
| 27423 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 27424 | cat >conftest.$ac_ext <<_ACEOF |
| 27425 | /* confdefs.h. */ |
| 27426 | _ACEOF |
| 27427 | cat confdefs.h >>conftest.$ac_ext |
| 27428 | cat >>conftest.$ac_ext <<_ACEOF |
| 27429 | /* end confdefs.h. */ |
| 27430 | $ac_includes_default |
| 27431 | int |
| 27432 | main () |
| 27433 | { |
| 27434 | static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)]; |
| 27435 | test_array [0] = 0 |
| 27436 | |
| 27437 | ; |
| 27438 | return 0; |
| 27439 | } |
| 27440 | _ACEOF |
| 27441 | rm -f conftest.$ac_objext |
| 27442 | if { (ac_try="$ac_compile" |
| 27443 | case "(($ac_try" in |
| 27444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27445 | *) ac_try_echo=$ac_try;; |
| 27446 | esac |
| 27447 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 27448 | $as_echo "$ac_try_echo") >&5 |
| 27449 | (eval "$ac_compile") 2>conftest.er1 |
| 27450 | ac_status=$? |
| 27451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27452 | rm -f conftest.er1 |
| 27453 | cat conftest.err >&5 |
| 27454 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27455 | (exit $ac_status); } && { |
| 27456 | test -z "$ac_c_werror_flag" || |
| 27457 | test ! -s conftest.err |
| 27458 | } && test -s conftest.$ac_objext; then |
| 27459 | ac_hi=$ac_mid |
| 27460 | else |
| 27461 | $as_echo "$as_me: failed program was:" >&5 |
| 27462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27463 | |
| 27464 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 27465 | fi |
| 27466 | |
| 27467 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27468 | done |
| 27469 | case $ac_lo in |
| 27470 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
| 27471 | '') if test "$ac_cv_type_size_t" = yes; then |
| 27472 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 27473 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 27474 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
| 27475 | See \`config.log' for more details." >&5 |
| 27476 | $as_echo "$as_me: error: cannot compute sizeof (size_t) |
| 27477 | See \`config.log' for more details." >&2;} |
| 27478 | { (exit 77); exit 77; }; }; } |
| 27479 | else |
| 27480 | ac_cv_sizeof_size_t=0 |
| 27481 | fi ;; |
| 27482 | esac |
| 27483 | else |
| 27484 | cat >conftest.$ac_ext <<_ACEOF |
| 27485 | /* confdefs.h. */ |
| 27486 | _ACEOF |
| 27487 | cat confdefs.h >>conftest.$ac_ext |
| 27488 | cat >>conftest.$ac_ext <<_ACEOF |
| 27489 | /* end confdefs.h. */ |
| 27490 | $ac_includes_default |
| 27491 | static long int longval () { return (long int) (sizeof (size_t)); } |
| 27492 | static unsigned long int ulongval () { return (long int) (sizeof (size_t)); } |
| 27493 | #include <stdio.h> |
| 27494 | #include <stdlib.h> |
| 27495 | int |
| 27496 | main () |
| 27497 | { |
| 27498 | |
| 27499 | FILE *f = fopen ("conftest.val", "w"); |
| 27500 | if (! f) |
| 27501 | return 1; |
| 27502 | if (((long int) (sizeof (size_t))) < 0) |
| 27503 | { |
| 27504 | long int i = longval (); |
| 27505 | if (i != ((long int) (sizeof (size_t)))) |
| 27506 | return 1; |
| 27507 | fprintf (f, "%ld", i); |
| 27508 | } |
| 27509 | else |
| 27510 | { |
| 27511 | unsigned long int i = ulongval (); |
| 27512 | if (i != ((long int) (sizeof (size_t)))) |
| 27513 | return 1; |
| 27514 | fprintf (f, "%lu", i); |
| 27515 | } |
| 27516 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 27517 | on some platforms. */ |
| 27518 | return ferror (f) || fclose (f) != 0; |
| 27519 | |
| 27520 | ; |
| 27521 | return 0; |
| 27522 | } |
| 27523 | _ACEOF |
| 27524 | rm -f conftest$ac_exeext |
| 27525 | if { (ac_try="$ac_link" |
| 27526 | case "(($ac_try" in |
| 27527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27528 | *) ac_try_echo=$ac_try;; |
| 27529 | esac |
| 27530 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 27531 | $as_echo "$ac_try_echo") >&5 |
| 27532 | (eval "$ac_link") 2>&5 |
| 27533 | ac_status=$? |
| 27534 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27535 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 27536 | { (case "(($ac_try" in |
| 27537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27538 | *) ac_try_echo=$ac_try;; |
| 27539 | esac |
| 27540 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 27541 | $as_echo "$ac_try_echo") >&5 |
| 27542 | (eval "$ac_try") 2>&5 |
| 27543 | ac_status=$? |
| 27544 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27545 | (exit $ac_status); }; }; then |
| 27546 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 27547 | else |
| 27548 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 27549 | $as_echo "$as_me: failed program was:" >&5 |
| 27550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27551 | |
| 27552 | ( exit $ac_status ) |
| 27553 | if test "$ac_cv_type_size_t" = yes; then |
| 27554 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 27555 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 27556 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t) |
| 27557 | See \`config.log' for more details." >&5 |
| 27558 | $as_echo "$as_me: error: cannot compute sizeof (size_t) |
| 27559 | See \`config.log' for more details." >&2;} |
| 27560 | { (exit 77); exit 77; }; }; } |
| 27561 | else |
| 27562 | ac_cv_sizeof_size_t=0 |
| 27563 | fi |
| 27564 | fi |
| 27565 | rm -rf conftest.dSYM |
| 27566 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 27567 | fi |
| 27568 | rm -f conftest.val |
| 27569 | fi |
| 27570 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 27571 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
| 27572 | |
| 27573 | |
| 27574 | |
| 27575 | cat >>confdefs.h <<_ACEOF |
| 27576 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 27577 | _ACEOF |
| 27578 | |
| 27579 | |
| 27580 | |
| 27581 | # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP |
| 27582 | # The cast to long int works around a bug in the HP C Compiler |
| 27583 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 27584 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 27585 | # This bug is HP SR number 8606223364. |
| 27586 | { $as_echo "$as_me:$LINENO: checking size of unsigned int*" >&5 |
| 27587 | $as_echo_n "checking size of unsigned int*... " >&6; } |
| 27588 | if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then |
| 27589 | $as_echo_n "(cached) " >&6 |
| 27590 | else |
| 27591 | if test "$cross_compiling" = yes; then |
| 27592 | # Depending upon the size, compute the lo and hi bounds. |
| 27593 | cat >conftest.$ac_ext <<_ACEOF |
| 27594 | /* confdefs.h. */ |
| 27595 | _ACEOF |
| 27596 | cat confdefs.h >>conftest.$ac_ext |
| 27597 | cat >>conftest.$ac_ext <<_ACEOF |
| 27598 | /* end confdefs.h. */ |
| 27599 | $ac_includes_default |
| 27600 | int |
| 27601 | main () |
| 27602 | { |
| 27603 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) >= 0)]; |
| 27604 | test_array [0] = 0 |
| 27605 | |
| 27606 | ; |
| 27607 | return 0; |
| 27608 | } |
| 27609 | _ACEOF |
| 27610 | rm -f conftest.$ac_objext |
| 27611 | if { (ac_try="$ac_compile" |
| 27612 | case "(($ac_try" in |
| 27613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27614 | *) ac_try_echo=$ac_try;; |
| 27615 | esac |
| 27616 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 27617 | $as_echo "$ac_try_echo") >&5 |
| 27618 | (eval "$ac_compile") 2>conftest.er1 |
| 27619 | ac_status=$? |
| 27620 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27621 | rm -f conftest.er1 |
| 27622 | cat conftest.err >&5 |
| 27623 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27624 | (exit $ac_status); } && { |
| 27625 | test -z "$ac_c_werror_flag" || |
| 27626 | test ! -s conftest.err |
| 27627 | } && test -s conftest.$ac_objext; then |
| 27628 | ac_lo=0 ac_mid=0 |
| 27629 | while :; do |
| 27630 | cat >conftest.$ac_ext <<_ACEOF |
| 27631 | /* confdefs.h. */ |
| 27632 | _ACEOF |
| 27633 | cat confdefs.h >>conftest.$ac_ext |
| 27634 | cat >>conftest.$ac_ext <<_ACEOF |
| 27635 | /* end confdefs.h. */ |
| 27636 | $ac_includes_default |
| 27637 | int |
| 27638 | main () |
| 27639 | { |
| 27640 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) <= $ac_mid)]; |
| 27641 | test_array [0] = 0 |
| 27642 | |
| 27643 | ; |
| 27644 | return 0; |
| 27645 | } |
| 27646 | _ACEOF |
| 27647 | rm -f conftest.$ac_objext |
| 27648 | if { (ac_try="$ac_compile" |
| 27649 | case "(($ac_try" in |
| 27650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27651 | *) ac_try_echo=$ac_try;; |
| 27652 | esac |
| 27653 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 27654 | $as_echo "$ac_try_echo") >&5 |
| 27655 | (eval "$ac_compile") 2>conftest.er1 |
| 27656 | ac_status=$? |
| 27657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27658 | rm -f conftest.er1 |
| 27659 | cat conftest.err >&5 |
| 27660 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27661 | (exit $ac_status); } && { |
| 27662 | test -z "$ac_c_werror_flag" || |
| 27663 | test ! -s conftest.err |
| 27664 | } && test -s conftest.$ac_objext; then |
| 27665 | ac_hi=$ac_mid; break |
| 27666 | else |
| 27667 | $as_echo "$as_me: failed program was:" >&5 |
| 27668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27669 | |
| 27670 | ac_lo=`expr $ac_mid + 1` |
| 27671 | if test $ac_lo -le $ac_mid; then |
| 27672 | ac_lo= ac_hi= |
| 27673 | break |
| 27674 | fi |
| 27675 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 27676 | fi |
| 27677 | |
| 27678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27679 | done |
| 27680 | else |
| 27681 | $as_echo "$as_me: failed program was:" >&5 |
| 27682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27683 | |
| 27684 | cat >conftest.$ac_ext <<_ACEOF |
| 27685 | /* confdefs.h. */ |
| 27686 | _ACEOF |
| 27687 | cat confdefs.h >>conftest.$ac_ext |
| 27688 | cat >>conftest.$ac_ext <<_ACEOF |
| 27689 | /* end confdefs.h. */ |
| 27690 | $ac_includes_default |
| 27691 | int |
| 27692 | main () |
| 27693 | { |
| 27694 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) < 0)]; |
| 27695 | test_array [0] = 0 |
| 27696 | |
| 27697 | ; |
| 27698 | return 0; |
| 27699 | } |
| 27700 | _ACEOF |
| 27701 | rm -f conftest.$ac_objext |
| 27702 | if { (ac_try="$ac_compile" |
| 27703 | case "(($ac_try" in |
| 27704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27705 | *) ac_try_echo=$ac_try;; |
| 27706 | esac |
| 27707 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 27708 | $as_echo "$ac_try_echo") >&5 |
| 27709 | (eval "$ac_compile") 2>conftest.er1 |
| 27710 | ac_status=$? |
| 27711 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27712 | rm -f conftest.er1 |
| 27713 | cat conftest.err >&5 |
| 27714 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27715 | (exit $ac_status); } && { |
| 27716 | test -z "$ac_c_werror_flag" || |
| 27717 | test ! -s conftest.err |
| 27718 | } && test -s conftest.$ac_objext; then |
| 27719 | ac_hi=-1 ac_mid=-1 |
| 27720 | while :; do |
| 27721 | cat >conftest.$ac_ext <<_ACEOF |
| 27722 | /* confdefs.h. */ |
| 27723 | _ACEOF |
| 27724 | cat confdefs.h >>conftest.$ac_ext |
| 27725 | cat >>conftest.$ac_ext <<_ACEOF |
| 27726 | /* end confdefs.h. */ |
| 27727 | $ac_includes_default |
| 27728 | int |
| 27729 | main () |
| 27730 | { |
| 27731 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) >= $ac_mid)]; |
| 27732 | test_array [0] = 0 |
| 27733 | |
| 27734 | ; |
| 27735 | return 0; |
| 27736 | } |
| 27737 | _ACEOF |
| 27738 | rm -f conftest.$ac_objext |
| 27739 | if { (ac_try="$ac_compile" |
| 27740 | case "(($ac_try" in |
| 27741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27742 | *) ac_try_echo=$ac_try;; |
| 27743 | esac |
| 27744 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 27745 | $as_echo "$ac_try_echo") >&5 |
| 27746 | (eval "$ac_compile") 2>conftest.er1 |
| 27747 | ac_status=$? |
| 27748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27749 | rm -f conftest.er1 |
| 27750 | cat conftest.err >&5 |
| 27751 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27752 | (exit $ac_status); } && { |
| 27753 | test -z "$ac_c_werror_flag" || |
| 27754 | test ! -s conftest.err |
| 27755 | } && test -s conftest.$ac_objext; then |
| 27756 | ac_lo=$ac_mid; break |
| 27757 | else |
| 27758 | $as_echo "$as_me: failed program was:" >&5 |
| 27759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27760 | |
| 27761 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 27762 | if test $ac_mid -le $ac_hi; then |
| 27763 | ac_lo= ac_hi= |
| 27764 | break |
| 27765 | fi |
| 27766 | ac_mid=`expr 2 '*' $ac_mid` |
| 27767 | fi |
| 27768 | |
| 27769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27770 | done |
| 27771 | else |
| 27772 | $as_echo "$as_me: failed program was:" >&5 |
| 27773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27774 | |
| 27775 | ac_lo= ac_hi= |
| 27776 | fi |
| 27777 | |
| 27778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27779 | fi |
| 27780 | |
| 27781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27782 | # Binary search between lo and hi bounds. |
| 27783 | while test "x$ac_lo" != "x$ac_hi"; do |
| 27784 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 27785 | cat >conftest.$ac_ext <<_ACEOF |
| 27786 | /* confdefs.h. */ |
| 27787 | _ACEOF |
| 27788 | cat confdefs.h >>conftest.$ac_ext |
| 27789 | cat >>conftest.$ac_ext <<_ACEOF |
| 27790 | /* end confdefs.h. */ |
| 27791 | $ac_includes_default |
| 27792 | int |
| 27793 | main () |
| 27794 | { |
| 27795 | static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) <= $ac_mid)]; |
| 27796 | test_array [0] = 0 |
| 27797 | |
| 27798 | ; |
| 27799 | return 0; |
| 27800 | } |
| 27801 | _ACEOF |
| 27802 | rm -f conftest.$ac_objext |
| 27803 | if { (ac_try="$ac_compile" |
| 27804 | case "(($ac_try" in |
| 27805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27806 | *) ac_try_echo=$ac_try;; |
| 27807 | esac |
| 27808 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 27809 | $as_echo "$ac_try_echo") >&5 |
| 27810 | (eval "$ac_compile") 2>conftest.er1 |
| 27811 | ac_status=$? |
| 27812 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27813 | rm -f conftest.er1 |
| 27814 | cat conftest.err >&5 |
| 27815 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27816 | (exit $ac_status); } && { |
| 27817 | test -z "$ac_c_werror_flag" || |
| 27818 | test ! -s conftest.err |
| 27819 | } && test -s conftest.$ac_objext; then |
| 27820 | ac_hi=$ac_mid |
| 27821 | else |
| 27822 | $as_echo "$as_me: failed program was:" >&5 |
| 27823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27824 | |
| 27825 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 27826 | fi |
| 27827 | |
| 27828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27829 | done |
| 27830 | case $ac_lo in |
| 27831 | ?*) ac_cv_sizeof_unsigned_intp=$ac_lo;; |
| 27832 | '') if test "$ac_cv_type_unsigned_intp" = yes; then |
| 27833 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 27834 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 27835 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int*) |
| 27836 | See \`config.log' for more details." >&5 |
| 27837 | $as_echo "$as_me: error: cannot compute sizeof (unsigned int*) |
| 27838 | See \`config.log' for more details." >&2;} |
| 27839 | { (exit 77); exit 77; }; }; } |
| 27840 | else |
| 27841 | ac_cv_sizeof_unsigned_intp=0 |
| 27842 | fi ;; |
| 27843 | esac |
| 27844 | else |
| 27845 | cat >conftest.$ac_ext <<_ACEOF |
| 27846 | /* confdefs.h. */ |
| 27847 | _ACEOF |
| 27848 | cat confdefs.h >>conftest.$ac_ext |
| 27849 | cat >>conftest.$ac_ext <<_ACEOF |
| 27850 | /* end confdefs.h. */ |
| 27851 | $ac_includes_default |
| 27852 | static long int longval () { return (long int) (sizeof (unsigned int*)); } |
| 27853 | static unsigned long int ulongval () { return (long int) (sizeof (unsigned int*)); } |
| 27854 | #include <stdio.h> |
| 27855 | #include <stdlib.h> |
| 27856 | int |
| 27857 | main () |
| 27858 | { |
| 27859 | |
| 27860 | FILE *f = fopen ("conftest.val", "w"); |
| 27861 | if (! f) |
| 27862 | return 1; |
| 27863 | if (((long int) (sizeof (unsigned int*))) < 0) |
| 27864 | { |
| 27865 | long int i = longval (); |
| 27866 | if (i != ((long int) (sizeof (unsigned int*)))) |
| 27867 | return 1; |
| 27868 | fprintf (f, "%ld", i); |
| 27869 | } |
| 27870 | else |
| 27871 | { |
| 27872 | unsigned long int i = ulongval (); |
| 27873 | if (i != ((long int) (sizeof (unsigned int*)))) |
| 27874 | return 1; |
| 27875 | fprintf (f, "%lu", i); |
| 27876 | } |
| 27877 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 27878 | on some platforms. */ |
| 27879 | return ferror (f) || fclose (f) != 0; |
| 27880 | |
| 27881 | ; |
| 27882 | return 0; |
| 27883 | } |
| 27884 | _ACEOF |
| 27885 | rm -f conftest$ac_exeext |
| 27886 | if { (ac_try="$ac_link" |
| 27887 | case "(($ac_try" in |
| 27888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27889 | *) ac_try_echo=$ac_try;; |
| 27890 | esac |
| 27891 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 27892 | $as_echo "$ac_try_echo") >&5 |
| 27893 | (eval "$ac_link") 2>&5 |
| 27894 | ac_status=$? |
| 27895 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27896 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 27897 | { (case "(($ac_try" in |
| 27898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27899 | *) ac_try_echo=$ac_try;; |
| 27900 | esac |
| 27901 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 27902 | $as_echo "$ac_try_echo") >&5 |
| 27903 | (eval "$ac_try") 2>&5 |
| 27904 | ac_status=$? |
| 27905 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27906 | (exit $ac_status); }; }; then |
| 27907 | ac_cv_sizeof_unsigned_intp=`cat conftest.val` |
| 27908 | else |
| 27909 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 27910 | $as_echo "$as_me: failed program was:" >&5 |
| 27911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27912 | |
| 27913 | ( exit $ac_status ) |
| 27914 | if test "$ac_cv_type_unsigned_intp" = yes; then |
| 27915 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
| 27916 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 27917 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int*) |
| 27918 | See \`config.log' for more details." >&5 |
| 27919 | $as_echo "$as_me: error: cannot compute sizeof (unsigned int*) |
| 27920 | See \`config.log' for more details." >&2;} |
| 27921 | { (exit 77); exit 77; }; }; } |
| 27922 | else |
| 27923 | ac_cv_sizeof_unsigned_intp=0 |
| 27924 | fi |
| 27925 | fi |
| 27926 | rm -rf conftest.dSYM |
| 27927 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 27928 | fi |
| 27929 | rm -f conftest.val |
| 27930 | fi |
| 27931 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_intp" >&5 |
| 27932 | $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; } |
| 27933 | |
| 27934 | |
| 27935 | |
| 27936 | cat >>confdefs.h <<_ACEOF |
| 27937 | #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp |
| 27938 | _ACEOF |
| 27939 | |
| 27940 | |
| 27941 | |
| 27942 | # |
| 27943 | # Compute sized types for current CPU and compiler options. |
| 27944 | # |
| 27945 | |
| 27946 | { $as_echo "$as_me:$LINENO: checking for signed 8-bit type" >&5 |
| 27947 | $as_echo_n "checking for signed 8-bit type... " >&6; } |
| 27948 | INT8_T='signed char' |
| 27949 | { $as_echo "$as_me:$LINENO: result: $INT8_T" >&5 |
| 27950 | $as_echo "$INT8_T" >&6; } |
| 27951 | |
| 27952 | |
| 27953 | { $as_echo "$as_me:$LINENO: checking for unsigned 8-bit type" >&5 |
| 27954 | $as_echo_n "checking for unsigned 8-bit type... " >&6; } |
| 27955 | UINT8_T='unsigned char' |
| 27956 | { $as_echo "$as_me:$LINENO: result: $UINT8_T" >&5 |
| 27957 | $as_echo "$UINT8_T" >&6; } |
| 27958 | |
| 27959 | |
| 27960 | { $as_echo "$as_me:$LINENO: checking for signed 16-bit type" >&5 |
| 27961 | $as_echo_n "checking for signed 16-bit type... " >&6; } |
| 27962 | INT16_T='signed short' |
| 27963 | { $as_echo "$as_me:$LINENO: result: $INT16_T" >&5 |
| 27964 | $as_echo "$INT16_T" >&6; } |
| 27965 | |
| 27966 | |
| 27967 | { $as_echo "$as_me:$LINENO: checking for unsigned 16-bit type" >&5 |
| 27968 | $as_echo_n "checking for unsigned 16-bit type... " >&6; } |
| 27969 | UINT16_T='unsigned short' |
| 27970 | { $as_echo "$as_me:$LINENO: result: $UINT16_T" >&5 |
| 27971 | $as_echo "$UINT16_T" >&6; } |
| 27972 | |
| 27973 | |
| 27974 | { $as_echo "$as_me:$LINENO: checking for signed 32-bit type" >&5 |
| 27975 | $as_echo_n "checking for signed 32-bit type... " >&6; } |
| 27976 | INT32_T='none' |
| 27977 | if test $ac_cv_sizeof_signed_int -eq 4; then |
| 27978 | INT32_T='signed int' |
| 27979 | elif test $ac_cv_sizeof_signed_long -eq 4; then |
| 27980 | INT32_T='signed long' |
| 27981 | fi |
| 27982 | { $as_echo "$as_me:$LINENO: result: $INT32_T" >&5 |
| 27983 | $as_echo "$INT32_T" >&6; } |
| 27984 | |
| 27985 | |
| 27986 | { $as_echo "$as_me:$LINENO: checking for unsigned 32-bit type" >&5 |
| 27987 | $as_echo_n "checking for unsigned 32-bit type... " >&6; } |
| 27988 | UINT32_T='none' |
| 27989 | if test $ac_cv_sizeof_unsigned_int -eq 4; then |
| 27990 | UINT32_T='unsigned int' |
| 27991 | elif test $ac_cv_sizeof_unsigned_long -eq 4; then |
| 27992 | UINT32_T='unsigned long' |
| 27993 | fi |
| 27994 | { $as_echo "$as_me:$LINENO: result: $UINT32_T" >&5 |
| 27995 | $as_echo "$UINT32_T" >&6; } |
| 27996 | |
| 27997 | |
| 27998 | { $as_echo "$as_me:$LINENO: checking for signed 64-bit type" >&5 |
| 27999 | $as_echo_n "checking for signed 64-bit type... " >&6; } |
| 28000 | INT64_T='none' |
| 28001 | if test $ac_cv_sizeof_signed_long -eq 8; then |
| 28002 | INT64_T='signed long' |
| 28003 | elif test $ac_cv_sizeof_signed_long_long -eq 8; then |
| 28004 | INT64_T='signed long long' |
| 28005 | fi |
| 28006 | { $as_echo "$as_me:$LINENO: result: $INT64_T" >&5 |
| 28007 | $as_echo "$INT64_T" >&6; } |
| 28008 | |
| 28009 | |
| 28010 | { $as_echo "$as_me:$LINENO: checking for unsigned 64-bit type" >&5 |
| 28011 | $as_echo_n "checking for unsigned 64-bit type... " >&6; } |
| 28012 | UINT64_T='none' |
| 28013 | if test $ac_cv_sizeof_unsigned_long -eq 8; then |
| 28014 | UINT64_T='unsigned long' |
| 28015 | elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then |
| 28016 | UINT64_T='unsigned long long' |
| 28017 | fi |
| 28018 | { $as_echo "$as_me:$LINENO: result: $UINT64_T" >&5 |
| 28019 | $as_echo "$UINT64_T" >&6; } |
| 28020 | |
| 28021 | |
| 28022 | { $as_echo "$as_me:$LINENO: checking for unsigned maximum type" >&5 |
| 28023 | $as_echo_n "checking for unsigned maximum type... " >&6; } |
| 28024 | UINTMAX_T='none' |
| 28025 | if test "$UINT64_T" != 'none'; then |
| 28026 | UINTMAX_T=$UINT64_T |
| 28027 | elif test "$UINT32_T" != 'none'; then |
| 28028 | UINTMAX_T=$UINT32_T |
| 28029 | fi |
| 28030 | { $as_echo "$as_me:$LINENO: result: $UINTMAX_T" >&5 |
| 28031 | $as_echo "$UINTMAX_T" >&6; } |
| 28032 | |
| 28033 | |
| 28034 | { $as_echo "$as_me:$LINENO: checking for pointer difference type" >&5 |
| 28035 | $as_echo_n "checking for pointer difference type... " >&6; } |
| 28036 | UINTPTR_T='none' |
| 28037 | if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then |
| 28038 | UINTPTR_T='unsigned long' |
| 28039 | elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then |
| 28040 | UINTPTR_T='unsigned long long' |
| 28041 | fi |
| 28042 | { $as_echo "$as_me:$LINENO: result: $UINTPTR_T" >&5 |
| 28043 | $as_echo "$UINTPTR_T" >&6; } |
| 28044 | |
| 28045 | |
| 28046 | { $as_echo "$as_me:$LINENO: checking whether our compiler supports __func__" >&5 |
| 28047 | $as_echo_n "checking whether our compiler supports __func__... " >&6; } |
| 28048 | cat >conftest.$ac_ext <<_ACEOF |
| 28049 | /* confdefs.h. */ |
| 28050 | _ACEOF |
| 28051 | cat confdefs.h >>conftest.$ac_ext |
| 28052 | cat >>conftest.$ac_ext <<_ACEOF |
| 28053 | /* end confdefs.h. */ |
| 28054 | |
| 28055 | int |
| 28056 | main () |
| 28057 | { |
| 28058 | { const char *func = __func__; return(func != 0 ? 0 : 1); } |
| 28059 | ; |
| 28060 | return 0; |
| 28061 | } |
| 28062 | _ACEOF |
| 28063 | rm -f conftest.$ac_objext |
| 28064 | if { (ac_try="$ac_compile" |
| 28065 | case "(($ac_try" in |
| 28066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28067 | *) ac_try_echo=$ac_try;; |
| 28068 | esac |
| 28069 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 28070 | $as_echo "$ac_try_echo") >&5 |
| 28071 | (eval "$ac_compile") 2>conftest.er1 |
| 28072 | ac_status=$? |
| 28073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28074 | rm -f conftest.er1 |
| 28075 | cat conftest.err >&5 |
| 28076 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28077 | (exit $ac_status); } && { |
| 28078 | test -z "$ac_c_werror_flag" || |
| 28079 | test ! -s conftest.err |
| 28080 | } && test -s conftest.$ac_objext; then |
| 28081 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 28082 | $as_echo "yes" >&6; } |
| 28083 | else |
| 28084 | $as_echo "$as_me: failed program was:" >&5 |
| 28085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28086 | |
| 28087 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 28088 | $as_echo "no" >&6; } |
| 28089 | { $as_echo "$as_me:$LINENO: checking whether our compiler supports __FUNCTION__" >&5 |
| 28090 | $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; } |
| 28091 | cat >conftest.$ac_ext <<_ACEOF |
| 28092 | /* confdefs.h. */ |
| 28093 | _ACEOF |
| 28094 | cat confdefs.h >>conftest.$ac_ext |
| 28095 | cat >>conftest.$ac_ext <<_ACEOF |
| 28096 | /* end confdefs.h. */ |
| 28097 | |
| 28098 | int |
| 28099 | main () |
| 28100 | { |
| 28101 | { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); } |
| 28102 | ; |
| 28103 | return 0; |
| 28104 | } |
| 28105 | _ACEOF |
| 28106 | rm -f conftest.$ac_objext |
| 28107 | if { (ac_try="$ac_compile" |
| 28108 | case "(($ac_try" in |
| 28109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28110 | *) ac_try_echo=$ac_try;; |
| 28111 | esac |
| 28112 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 28113 | $as_echo "$ac_try_echo") >&5 |
| 28114 | (eval "$ac_compile") 2>conftest.er1 |
| 28115 | ac_status=$? |
| 28116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28117 | rm -f conftest.er1 |
| 28118 | cat conftest.err >&5 |
| 28119 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28120 | (exit $ac_status); } && { |
| 28121 | test -z "$ac_c_werror_flag" || |
| 28122 | test ! -s conftest.err |
| 28123 | } && test -s conftest.$ac_objext; then |
| 28124 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 28125 | $as_echo "yes" >&6; } |
| 28126 | |
| 28127 | cat >>confdefs.h <<\_ACEOF |
| 28128 | #define __func__ __FUNCTION__ |
| 28129 | _ACEOF |
| 28130 | |
| 28131 | else |
| 28132 | $as_echo "$as_me: failed program was:" >&5 |
| 28133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28134 | |
| 28135 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 28136 | $as_echo "no" >&6; } |
| 28137 | |
| 28138 | cat >>confdefs.h <<\_ACEOF |
| 28139 | #define __func__ __FILE__ |
| 28140 | _ACEOF |
| 28141 | |
| 28142 | fi |
| 28143 | |
| 28144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28145 | fi |
| 28146 | |
| 28147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28148 | |
| 28149 | ######## |
| 28150 | # |
| 28151 | # Check for functions |
| 28152 | # |
| 28153 | ######## |
| 28154 | |
| 28155 | |
| 28156 | for ac_header in stdlib.h unistd.h |
| 28157 | do |
| 28158 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 28159 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28160 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28161 | $as_echo_n "checking for $ac_header... " >&6; } |
| 28162 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28163 | $as_echo_n "(cached) " >&6 |
| 28164 | fi |
| 28165 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 28166 | $as_echo "$as_val"'` |
| 28167 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28168 | $as_echo "$ac_res" >&6; } |
| 28169 | else |
| 28170 | # Is the header compilable? |
| 28171 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28172 | $as_echo_n "checking $ac_header usability... " >&6; } |
| 28173 | cat >conftest.$ac_ext <<_ACEOF |
| 28174 | /* confdefs.h. */ |
| 28175 | _ACEOF |
| 28176 | cat confdefs.h >>conftest.$ac_ext |
| 28177 | cat >>conftest.$ac_ext <<_ACEOF |
| 28178 | /* end confdefs.h. */ |
| 28179 | $ac_includes_default |
| 28180 | #include <$ac_header> |
| 28181 | _ACEOF |
| 28182 | rm -f conftest.$ac_objext |
| 28183 | if { (ac_try="$ac_compile" |
| 28184 | case "(($ac_try" in |
| 28185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28186 | *) ac_try_echo=$ac_try;; |
| 28187 | esac |
| 28188 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 28189 | $as_echo "$ac_try_echo") >&5 |
| 28190 | (eval "$ac_compile") 2>conftest.er1 |
| 28191 | ac_status=$? |
| 28192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28193 | rm -f conftest.er1 |
| 28194 | cat conftest.err >&5 |
| 28195 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28196 | (exit $ac_status); } && { |
| 28197 | test -z "$ac_c_werror_flag" || |
| 28198 | test ! -s conftest.err |
| 28199 | } && test -s conftest.$ac_objext; then |
| 28200 | ac_header_compiler=yes |
| 28201 | else |
| 28202 | $as_echo "$as_me: failed program was:" >&5 |
| 28203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28204 | |
| 28205 | ac_header_compiler=no |
| 28206 | fi |
| 28207 | |
| 28208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28209 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28210 | $as_echo "$ac_header_compiler" >&6; } |
| 28211 | |
| 28212 | # Is the header present? |
| 28213 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28214 | $as_echo_n "checking $ac_header presence... " >&6; } |
| 28215 | cat >conftest.$ac_ext <<_ACEOF |
| 28216 | /* confdefs.h. */ |
| 28217 | _ACEOF |
| 28218 | cat confdefs.h >>conftest.$ac_ext |
| 28219 | cat >>conftest.$ac_ext <<_ACEOF |
| 28220 | /* end confdefs.h. */ |
| 28221 | #include <$ac_header> |
| 28222 | _ACEOF |
| 28223 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28224 | case "(($ac_try" in |
| 28225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28226 | *) ac_try_echo=$ac_try;; |
| 28227 | esac |
| 28228 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 28229 | $as_echo "$ac_try_echo") >&5 |
| 28230 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 28231 | ac_status=$? |
| 28232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28233 | rm -f conftest.er1 |
| 28234 | cat conftest.err >&5 |
| 28235 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28236 | (exit $ac_status); } >/dev/null && { |
| 28237 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 28238 | test ! -s conftest.err |
| 28239 | }; then |
| 28240 | ac_header_preproc=yes |
| 28241 | else |
| 28242 | $as_echo "$as_me: failed program was:" >&5 |
| 28243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28244 | |
| 28245 | ac_header_preproc=no |
| 28246 | fi |
| 28247 | |
| 28248 | rm -f conftest.err conftest.$ac_ext |
| 28249 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28250 | $as_echo "$ac_header_preproc" >&6; } |
| 28251 | |
| 28252 | # So? What about this header? |
| 28253 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28254 | yes:no: ) |
| 28255 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28256 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28257 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28258 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 28259 | ac_header_preproc=yes |
| 28260 | ;; |
| 28261 | no:yes:* ) |
| 28262 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28263 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28264 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28265 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28266 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28267 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28268 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28269 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28270 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28271 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28272 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28273 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 28274 | ( cat <<\_ASBOX |
| 28275 | ## ----------------------------------------- ## |
| 28276 | ## Report this to http://www.imagemagick.org ## |
| 28277 | ## ----------------------------------------- ## |
| 28278 | _ASBOX |
| 28279 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 28280 | ;; |
| 28281 | esac |
| 28282 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28283 | $as_echo_n "checking for $ac_header... " >&6; } |
| 28284 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28285 | $as_echo_n "(cached) " >&6 |
| 28286 | else |
| 28287 | eval "$as_ac_Header=\$ac_header_preproc" |
| 28288 | fi |
| 28289 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 28290 | $as_echo "$as_val"'` |
| 28291 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28292 | $as_echo "$ac_res" >&6; } |
| 28293 | |
| 28294 | fi |
| 28295 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 28296 | $as_echo "$as_val"'` |
| 28297 | if test "x$as_val" = x""yes; then |
| 28298 | cat >>confdefs.h <<_ACEOF |
| 28299 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 28300 | _ACEOF |
| 28301 | |
| 28302 | fi |
| 28303 | |
| 28304 | done |
| 28305 | |
| 28306 | |
| 28307 | for ac_func in getpagesize |
| 28308 | do |
| 28309 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 28310 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 28311 | $as_echo_n "checking for $ac_func... " >&6; } |
| 28312 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28313 | $as_echo_n "(cached) " >&6 |
| 28314 | else |
| 28315 | cat >conftest.$ac_ext <<_ACEOF |
| 28316 | /* confdefs.h. */ |
| 28317 | _ACEOF |
| 28318 | cat confdefs.h >>conftest.$ac_ext |
| 28319 | cat >>conftest.$ac_ext <<_ACEOF |
| 28320 | /* end confdefs.h. */ |
| 28321 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 28322 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 28323 | #define $ac_func innocuous_$ac_func |
| 28324 | |
| 28325 | /* System header to define __stub macros and hopefully few prototypes, |
| 28326 | which can conflict with char $ac_func (); below. |
| 28327 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 28328 | <limits.h> exists even on freestanding compilers. */ |
| 28329 | |
| 28330 | #ifdef __STDC__ |
| 28331 | # include <limits.h> |
| 28332 | #else |
| 28333 | # include <assert.h> |
| 28334 | #endif |
| 28335 | |
| 28336 | #undef $ac_func |
| 28337 | |
| 28338 | /* Override any GCC internal prototype to avoid an error. |
| 28339 | Use char because int might match the return type of a GCC |
| 28340 | builtin and then its argument prototype would still apply. */ |
| 28341 | #ifdef __cplusplus |
| 28342 | extern "C" |
| 28343 | #endif |
| 28344 | char $ac_func (); |
| 28345 | /* The GNU C library defines this for functions which it implements |
| 28346 | to always fail with ENOSYS. Some functions are actually named |
| 28347 | something starting with __ and the normal name is an alias. */ |
| 28348 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 28349 | choke me |
| 28350 | #endif |
| 28351 | |
| 28352 | int |
| 28353 | main () |
| 28354 | { |
| 28355 | return $ac_func (); |
| 28356 | ; |
| 28357 | return 0; |
| 28358 | } |
| 28359 | _ACEOF |
| 28360 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28361 | if { (ac_try="$ac_link" |
| 28362 | case "(($ac_try" in |
| 28363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28364 | *) ac_try_echo=$ac_try;; |
| 28365 | esac |
| 28366 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 28367 | $as_echo "$ac_try_echo") >&5 |
| 28368 | (eval "$ac_link") 2>conftest.er1 |
| 28369 | ac_status=$? |
| 28370 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28371 | rm -f conftest.er1 |
| 28372 | cat conftest.err >&5 |
| 28373 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28374 | (exit $ac_status); } && { |
| 28375 | test -z "$ac_c_werror_flag" || |
| 28376 | test ! -s conftest.err |
| 28377 | } && test -s conftest$ac_exeext && { |
| 28378 | test "$cross_compiling" = yes || |
| 28379 | $as_test_x conftest$ac_exeext |
| 28380 | }; then |
| 28381 | eval "$as_ac_var=yes" |
| 28382 | else |
| 28383 | $as_echo "$as_me: failed program was:" >&5 |
| 28384 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28385 | |
| 28386 | eval "$as_ac_var=no" |
| 28387 | fi |
| 28388 | |
| 28389 | rm -rf conftest.dSYM |
| 28390 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 28391 | conftest$ac_exeext conftest.$ac_ext |
| 28392 | fi |
| 28393 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 28394 | $as_echo "$as_val"'` |
| 28395 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28396 | $as_echo "$ac_res" >&6; } |
| 28397 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 28398 | $as_echo "$as_val"'` |
| 28399 | if test "x$as_val" = x""yes; then |
| 28400 | cat >>confdefs.h <<_ACEOF |
| 28401 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 28402 | _ACEOF |
| 28403 | |
| 28404 | fi |
| 28405 | done |
| 28406 | |
| 28407 | { $as_echo "$as_me:$LINENO: checking for working mmap file i/o" >&5 |
| 28408 | $as_echo_n "checking for working mmap file i/o... " >&6; } |
| 28409 | if test "${magick_cv_func_mmap_fileio+set}" = set; then |
| 28410 | $as_echo_n "(cached) " >&6 |
| 28411 | else |
| 28412 | if test "$cross_compiling" = yes; then |
| 28413 | magick_cv_func_mmap_fileio=no |
| 28414 | else |
| 28415 | cat >conftest.$ac_ext <<_ACEOF |
| 28416 | /* confdefs.h. */ |
| 28417 | _ACEOF |
| 28418 | cat confdefs.h >>conftest.$ac_ext |
| 28419 | cat >>conftest.$ac_ext <<_ACEOF |
| 28420 | /* end confdefs.h. */ |
| 28421 | $ac_includes_default |
| 28422 | /* malloc might have been renamed as rpl_malloc. */ |
| 28423 | #undef malloc |
| 28424 | |
| 28425 | /* |
| 28426 | This test is derived from GNU Autoconf's similar macro. |
| 28427 | The purpose of this test is to verify that files may be memory |
| 28428 | mapped, and that memory mapping and file I/O are coherent. |
| 28429 | |
| 28430 | The test creates a test file, memory maps the file, updates |
| 28431 | the file using the memory map, and then reads the file using |
| 28432 | file I/O to verify that the file contains the updates. |
| 28433 | */ |
| 28434 | |
| 28435 | #include <fcntl.h> |
| 28436 | #include <sys/mman.h> |
| 28437 | |
| 28438 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 28439 | char *malloc (); |
| 28440 | #endif |
| 28441 | |
| 28442 | /* This mess was copied from the GNU getpagesize.h. */ |
| 28443 | #if !HAVE_GETPAGESIZE |
| 28444 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 28445 | # if !HAVE_SYS_PARAM_H |
| 28446 | # define HAVE_SYS_PARAM_H 1 |
| 28447 | # endif |
| 28448 | |
| 28449 | # ifdef _SC_PAGESIZE |
| 28450 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 28451 | # else /* no _SC_PAGESIZE */ |
| 28452 | # if HAVE_SYS_PARAM_H |
| 28453 | # include <sys/param.h> |
| 28454 | # ifdef EXEC_PAGESIZE |
| 28455 | # define getpagesize() EXEC_PAGESIZE |
| 28456 | # else /* no EXEC_PAGESIZE */ |
| 28457 | # ifdef NBPG |
| 28458 | # define getpagesize() NBPG * CLSIZE |
| 28459 | # ifndef CLSIZE |
| 28460 | # define CLSIZE 1 |
| 28461 | # endif /* no CLSIZE */ |
| 28462 | # else /* no NBPG */ |
| 28463 | # ifdef NBPC |
| 28464 | # define getpagesize() NBPC |
| 28465 | # else /* no NBPC */ |
| 28466 | # ifdef PAGESIZE |
| 28467 | # define getpagesize() PAGESIZE |
| 28468 | # endif /* PAGESIZE */ |
| 28469 | # endif /* no NBPC */ |
| 28470 | # endif /* no NBPG */ |
| 28471 | # endif /* no EXEC_PAGESIZE */ |
| 28472 | # else /* no HAVE_SYS_PARAM_H */ |
| 28473 | # define getpagesize() 8192 /* punt totally */ |
| 28474 | # endif /* no HAVE_SYS_PARAM_H */ |
| 28475 | # endif /* no _SC_PAGESIZE */ |
| 28476 | |
| 28477 | #endif /* no HAVE_GETPAGESIZE */ |
| 28478 | |
| 28479 | int |
| 28480 | main () |
| 28481 | { |
| 28482 | char *data, *data2, *data3; |
| 28483 | int i, pagesize; |
| 28484 | int fd; |
| 28485 | |
| 28486 | pagesize = getpagesize (); |
| 28487 | |
| 28488 | /* First, make a file with some known garbage in it. */ |
| 28489 | data = (char *) malloc (pagesize); |
| 28490 | if (!data) |
| 28491 | exit (1); |
| 28492 | for (i = 0; i < pagesize; ++i) |
| 28493 | *(data + i) = rand (); |
| 28494 | umask (0); |
| 28495 | fd = creat ("conftest.mmap", 0600); |
| 28496 | if (fd < 0) |
| 28497 | exit (1); |
| 28498 | if (write (fd, data, pagesize) != pagesize) |
| 28499 | exit (1); |
| 28500 | close (fd); |
| 28501 | |
| 28502 | /* Mmap the file as read/write/shared and verify that we see the |
| 28503 | same garbage. */ |
| 28504 | fd = open ("conftest.mmap", O_RDWR); |
| 28505 | if (fd < 0) |
| 28506 | exit (1); |
| 28507 | data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L); |
| 28508 | if (data2 == 0) |
| 28509 | exit (1); |
| 28510 | for (i = 0; i < pagesize; ++i) |
| 28511 | if (*(data + i) != *(data2 + i)) |
| 28512 | exit (1); |
| 28513 | |
| 28514 | /* Finally, make sure that changes to the mapped area |
| 28515 | percolate back to the file as seen by read(). */ |
| 28516 | for (i = 0; i < pagesize; ++i) |
| 28517 | *(data2 + i) = *(data2 + i) + 1; |
| 28518 | data3 = (char *) malloc (pagesize); |
| 28519 | if (!data3) |
| 28520 | exit (1); |
| 28521 | if (read (fd, data3, pagesize) != pagesize) |
| 28522 | exit (1); |
| 28523 | for (i = 0; i < pagesize; ++i) |
| 28524 | if (*(data2 + i) != *(data3 + i)) |
| 28525 | exit (1); |
| 28526 | close (fd); |
| 28527 | exit (0); |
| 28528 | } |
| 28529 | _ACEOF |
| 28530 | rm -f conftest$ac_exeext |
| 28531 | if { (ac_try="$ac_link" |
| 28532 | case "(($ac_try" in |
| 28533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28534 | *) ac_try_echo=$ac_try;; |
| 28535 | esac |
| 28536 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 28537 | $as_echo "$ac_try_echo") >&5 |
| 28538 | (eval "$ac_link") 2>&5 |
| 28539 | ac_status=$? |
| 28540 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28541 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 28542 | { (case "(($ac_try" in |
| 28543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28544 | *) ac_try_echo=$ac_try;; |
| 28545 | esac |
| 28546 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 28547 | $as_echo "$ac_try_echo") >&5 |
| 28548 | (eval "$ac_try") 2>&5 |
| 28549 | ac_status=$? |
| 28550 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28551 | (exit $ac_status); }; }; then |
| 28552 | magick_cv_func_mmap_fileio=yes |
| 28553 | else |
| 28554 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 28555 | $as_echo "$as_me: failed program was:" >&5 |
| 28556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28557 | |
| 28558 | ( exit $ac_status ) |
| 28559 | magick_cv_func_mmap_fileio=no |
| 28560 | fi |
| 28561 | rm -rf conftest.dSYM |
| 28562 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 28563 | fi |
| 28564 | |
| 28565 | |
| 28566 | fi |
| 28567 | { $as_echo "$as_me:$LINENO: result: $magick_cv_func_mmap_fileio" >&5 |
| 28568 | $as_echo "$magick_cv_func_mmap_fileio" >&6; } |
| 28569 | if test $magick_cv_func_mmap_fileio = yes; then |
| 28570 | |
| 28571 | cat >>confdefs.h <<\_ACEOF |
| 28572 | #define HAVE_MMAP_FILEIO 1 |
| 28573 | _ACEOF |
| 28574 | |
| 28575 | fi |
| 28576 | rm -f conftest.mmap |
| 28577 | |
| 28578 | { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
| 28579 | $as_echo_n "checking whether closedir returns void... " >&6; } |
| 28580 | if test "${ac_cv_func_closedir_void+set}" = set; then |
| 28581 | $as_echo_n "(cached) " >&6 |
| 28582 | else |
| 28583 | if test "$cross_compiling" = yes; then |
| 28584 | ac_cv_func_closedir_void=yes |
| 28585 | else |
| 28586 | cat >conftest.$ac_ext <<_ACEOF |
| 28587 | /* confdefs.h. */ |
| 28588 | _ACEOF |
| 28589 | cat confdefs.h >>conftest.$ac_ext |
| 28590 | cat >>conftest.$ac_ext <<_ACEOF |
| 28591 | /* end confdefs.h. */ |
| 28592 | $ac_includes_default |
| 28593 | #include <$ac_header_dirent> |
| 28594 | #ifndef __cplusplus |
| 28595 | int closedir (); |
| 28596 | #endif |
| 28597 | |
| 28598 | int |
| 28599 | main () |
| 28600 | { |
| 28601 | return closedir (opendir (".")) != 0; |
| 28602 | ; |
| 28603 | return 0; |
| 28604 | } |
| 28605 | _ACEOF |
| 28606 | rm -f conftest$ac_exeext |
| 28607 | if { (ac_try="$ac_link" |
| 28608 | case "(($ac_try" in |
| 28609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28610 | *) ac_try_echo=$ac_try;; |
| 28611 | esac |
| 28612 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 28613 | $as_echo "$ac_try_echo") >&5 |
| 28614 | (eval "$ac_link") 2>&5 |
| 28615 | ac_status=$? |
| 28616 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28617 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 28618 | { (case "(($ac_try" in |
| 28619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28620 | *) ac_try_echo=$ac_try;; |
| 28621 | esac |
| 28622 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 28623 | $as_echo "$ac_try_echo") >&5 |
| 28624 | (eval "$ac_try") 2>&5 |
| 28625 | ac_status=$? |
| 28626 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28627 | (exit $ac_status); }; }; then |
| 28628 | ac_cv_func_closedir_void=no |
| 28629 | else |
| 28630 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 28631 | $as_echo "$as_me: failed program was:" >&5 |
| 28632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28633 | |
| 28634 | ( exit $ac_status ) |
| 28635 | ac_cv_func_closedir_void=yes |
| 28636 | fi |
| 28637 | rm -rf conftest.dSYM |
| 28638 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 28639 | fi |
| 28640 | |
| 28641 | |
| 28642 | fi |
| 28643 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
| 28644 | $as_echo "$ac_cv_func_closedir_void" >&6; } |
| 28645 | if test $ac_cv_func_closedir_void = yes; then |
| 28646 | |
| 28647 | cat >>confdefs.h <<\_ACEOF |
| 28648 | #define CLOSEDIR_VOID 1 |
| 28649 | _ACEOF |
| 28650 | |
| 28651 | fi |
| 28652 | |
| 28653 | |
| 28654 | |
| 28655 | for ac_header in stdlib.h unistd.h |
| 28656 | do |
| 28657 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 28658 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28659 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28660 | $as_echo_n "checking for $ac_header... " >&6; } |
| 28661 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28662 | $as_echo_n "(cached) " >&6 |
| 28663 | fi |
| 28664 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 28665 | $as_echo "$as_val"'` |
| 28666 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28667 | $as_echo "$ac_res" >&6; } |
| 28668 | else |
| 28669 | # Is the header compilable? |
| 28670 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28671 | $as_echo_n "checking $ac_header usability... " >&6; } |
| 28672 | cat >conftest.$ac_ext <<_ACEOF |
| 28673 | /* confdefs.h. */ |
| 28674 | _ACEOF |
| 28675 | cat confdefs.h >>conftest.$ac_ext |
| 28676 | cat >>conftest.$ac_ext <<_ACEOF |
| 28677 | /* end confdefs.h. */ |
| 28678 | $ac_includes_default |
| 28679 | #include <$ac_header> |
| 28680 | _ACEOF |
| 28681 | rm -f conftest.$ac_objext |
| 28682 | if { (ac_try="$ac_compile" |
| 28683 | case "(($ac_try" in |
| 28684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28685 | *) ac_try_echo=$ac_try;; |
| 28686 | esac |
| 28687 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 28688 | $as_echo "$ac_try_echo") >&5 |
| 28689 | (eval "$ac_compile") 2>conftest.er1 |
| 28690 | ac_status=$? |
| 28691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28692 | rm -f conftest.er1 |
| 28693 | cat conftest.err >&5 |
| 28694 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28695 | (exit $ac_status); } && { |
| 28696 | test -z "$ac_c_werror_flag" || |
| 28697 | test ! -s conftest.err |
| 28698 | } && test -s conftest.$ac_objext; then |
| 28699 | ac_header_compiler=yes |
| 28700 | else |
| 28701 | $as_echo "$as_me: failed program was:" >&5 |
| 28702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28703 | |
| 28704 | ac_header_compiler=no |
| 28705 | fi |
| 28706 | |
| 28707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28708 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28709 | $as_echo "$ac_header_compiler" >&6; } |
| 28710 | |
| 28711 | # Is the header present? |
| 28712 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28713 | $as_echo_n "checking $ac_header presence... " >&6; } |
| 28714 | cat >conftest.$ac_ext <<_ACEOF |
| 28715 | /* confdefs.h. */ |
| 28716 | _ACEOF |
| 28717 | cat confdefs.h >>conftest.$ac_ext |
| 28718 | cat >>conftest.$ac_ext <<_ACEOF |
| 28719 | /* end confdefs.h. */ |
| 28720 | #include <$ac_header> |
| 28721 | _ACEOF |
| 28722 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28723 | case "(($ac_try" in |
| 28724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28725 | *) ac_try_echo=$ac_try;; |
| 28726 | esac |
| 28727 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 28728 | $as_echo "$ac_try_echo") >&5 |
| 28729 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 28730 | ac_status=$? |
| 28731 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28732 | rm -f conftest.er1 |
| 28733 | cat conftest.err >&5 |
| 28734 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28735 | (exit $ac_status); } >/dev/null && { |
| 28736 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 28737 | test ! -s conftest.err |
| 28738 | }; then |
| 28739 | ac_header_preproc=yes |
| 28740 | else |
| 28741 | $as_echo "$as_me: failed program was:" >&5 |
| 28742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28743 | |
| 28744 | ac_header_preproc=no |
| 28745 | fi |
| 28746 | |
| 28747 | rm -f conftest.err conftest.$ac_ext |
| 28748 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28749 | $as_echo "$ac_header_preproc" >&6; } |
| 28750 | |
| 28751 | # So? What about this header? |
| 28752 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28753 | yes:no: ) |
| 28754 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28755 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28756 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28757 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 28758 | ac_header_preproc=yes |
| 28759 | ;; |
| 28760 | no:yes:* ) |
| 28761 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28762 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28763 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28764 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28765 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28766 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28767 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28768 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28769 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28770 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28771 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28772 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 28773 | ( cat <<\_ASBOX |
| 28774 | ## ----------------------------------------- ## |
| 28775 | ## Report this to http://www.imagemagick.org ## |
| 28776 | ## ----------------------------------------- ## |
| 28777 | _ASBOX |
| 28778 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 28779 | ;; |
| 28780 | esac |
| 28781 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28782 | $as_echo_n "checking for $ac_header... " >&6; } |
| 28783 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28784 | $as_echo_n "(cached) " >&6 |
| 28785 | else |
| 28786 | eval "$as_ac_Header=\$ac_header_preproc" |
| 28787 | fi |
| 28788 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 28789 | $as_echo "$as_val"'` |
| 28790 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28791 | $as_echo "$ac_res" >&6; } |
| 28792 | |
| 28793 | fi |
| 28794 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 28795 | $as_echo "$as_val"'` |
| 28796 | if test "x$as_val" = x""yes; then |
| 28797 | cat >>confdefs.h <<_ACEOF |
| 28798 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 28799 | _ACEOF |
| 28800 | |
| 28801 | fi |
| 28802 | |
| 28803 | done |
| 28804 | |
| 28805 | |
| 28806 | for ac_func in getpagesize |
| 28807 | do |
| 28808 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 28809 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 28810 | $as_echo_n "checking for $ac_func... " >&6; } |
| 28811 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28812 | $as_echo_n "(cached) " >&6 |
| 28813 | else |
| 28814 | cat >conftest.$ac_ext <<_ACEOF |
| 28815 | /* confdefs.h. */ |
| 28816 | _ACEOF |
| 28817 | cat confdefs.h >>conftest.$ac_ext |
| 28818 | cat >>conftest.$ac_ext <<_ACEOF |
| 28819 | /* end confdefs.h. */ |
| 28820 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 28821 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 28822 | #define $ac_func innocuous_$ac_func |
| 28823 | |
| 28824 | /* System header to define __stub macros and hopefully few prototypes, |
| 28825 | which can conflict with char $ac_func (); below. |
| 28826 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 28827 | <limits.h> exists even on freestanding compilers. */ |
| 28828 | |
| 28829 | #ifdef __STDC__ |
| 28830 | # include <limits.h> |
| 28831 | #else |
| 28832 | # include <assert.h> |
| 28833 | #endif |
| 28834 | |
| 28835 | #undef $ac_func |
| 28836 | |
| 28837 | /* Override any GCC internal prototype to avoid an error. |
| 28838 | Use char because int might match the return type of a GCC |
| 28839 | builtin and then its argument prototype would still apply. */ |
| 28840 | #ifdef __cplusplus |
| 28841 | extern "C" |
| 28842 | #endif |
| 28843 | char $ac_func (); |
| 28844 | /* The GNU C library defines this for functions which it implements |
| 28845 | to always fail with ENOSYS. Some functions are actually named |
| 28846 | something starting with __ and the normal name is an alias. */ |
| 28847 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 28848 | choke me |
| 28849 | #endif |
| 28850 | |
| 28851 | int |
| 28852 | main () |
| 28853 | { |
| 28854 | return $ac_func (); |
| 28855 | ; |
| 28856 | return 0; |
| 28857 | } |
| 28858 | _ACEOF |
| 28859 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28860 | if { (ac_try="$ac_link" |
| 28861 | case "(($ac_try" in |
| 28862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28863 | *) ac_try_echo=$ac_try;; |
| 28864 | esac |
| 28865 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 28866 | $as_echo "$ac_try_echo") >&5 |
| 28867 | (eval "$ac_link") 2>conftest.er1 |
| 28868 | ac_status=$? |
| 28869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28870 | rm -f conftest.er1 |
| 28871 | cat conftest.err >&5 |
| 28872 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28873 | (exit $ac_status); } && { |
| 28874 | test -z "$ac_c_werror_flag" || |
| 28875 | test ! -s conftest.err |
| 28876 | } && test -s conftest$ac_exeext && { |
| 28877 | test "$cross_compiling" = yes || |
| 28878 | $as_test_x conftest$ac_exeext |
| 28879 | }; then |
| 28880 | eval "$as_ac_var=yes" |
| 28881 | else |
| 28882 | $as_echo "$as_me: failed program was:" >&5 |
| 28883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28884 | |
| 28885 | eval "$as_ac_var=no" |
| 28886 | fi |
| 28887 | |
| 28888 | rm -rf conftest.dSYM |
| 28889 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 28890 | conftest$ac_exeext conftest.$ac_ext |
| 28891 | fi |
| 28892 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 28893 | $as_echo "$as_val"'` |
| 28894 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28895 | $as_echo "$ac_res" >&6; } |
| 28896 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 28897 | $as_echo "$as_val"'` |
| 28898 | if test "x$as_val" = x""yes; then |
| 28899 | cat >>confdefs.h <<_ACEOF |
| 28900 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 28901 | _ACEOF |
| 28902 | |
| 28903 | fi |
| 28904 | done |
| 28905 | |
| 28906 | { $as_echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 28907 | $as_echo_n "checking for working mmap... " >&6; } |
| 28908 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 28909 | $as_echo_n "(cached) " >&6 |
| 28910 | else |
| 28911 | if test "$cross_compiling" = yes; then |
| 28912 | ac_cv_func_mmap_fixed_mapped=no |
| 28913 | else |
| 28914 | cat >conftest.$ac_ext <<_ACEOF |
| 28915 | /* confdefs.h. */ |
| 28916 | _ACEOF |
| 28917 | cat confdefs.h >>conftest.$ac_ext |
| 28918 | cat >>conftest.$ac_ext <<_ACEOF |
| 28919 | /* end confdefs.h. */ |
| 28920 | $ac_includes_default |
| 28921 | /* malloc might have been renamed as rpl_malloc. */ |
| 28922 | #undef malloc |
| 28923 | |
| 28924 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 28925 | Here is a matrix of mmap possibilities: |
| 28926 | mmap private not fixed |
| 28927 | mmap private fixed at somewhere currently unmapped |
| 28928 | mmap private fixed at somewhere already mapped |
| 28929 | mmap shared not fixed |
| 28930 | mmap shared fixed at somewhere currently unmapped |
| 28931 | mmap shared fixed at somewhere already mapped |
| 28932 | For private mappings, we should verify that changes cannot be read() |
| 28933 | back from the file, nor mmap's back from the file at a different |
| 28934 | address. (There have been systems where private was not correctly |
| 28935 | implemented like the infamous i386 svr4.0, and systems where the |
| 28936 | VM page cache was not coherent with the file system buffer cache |
| 28937 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 28938 | For shared mappings, we should conversely verify that changes get |
| 28939 | propagated back to all the places they're supposed to be. |
| 28940 | |
| 28941 | Grep wants private fixed already mapped. |
| 28942 | The main things grep needs to know about mmap are: |
| 28943 | * does it exist and is it safe to write into the mmap'd area |
| 28944 | * how to use it (BSD variants) */ |
| 28945 | |
| 28946 | #include <fcntl.h> |
| 28947 | #include <sys/mman.h> |
| 28948 | |
| 28949 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
| 28950 | char *malloc (); |
| 28951 | #endif |
| 28952 | |
| 28953 | /* This mess was copied from the GNU getpagesize.h. */ |
| 28954 | #ifndef HAVE_GETPAGESIZE |
| 28955 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 28956 | # ifndef HAVE_SYS_PARAM_H |
| 28957 | # define HAVE_SYS_PARAM_H 1 |
| 28958 | # endif |
| 28959 | |
| 28960 | # ifdef _SC_PAGESIZE |
| 28961 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 28962 | # else /* no _SC_PAGESIZE */ |
| 28963 | # ifdef HAVE_SYS_PARAM_H |
| 28964 | # include <sys/param.h> |
| 28965 | # ifdef EXEC_PAGESIZE |
| 28966 | # define getpagesize() EXEC_PAGESIZE |
| 28967 | # else /* no EXEC_PAGESIZE */ |
| 28968 | # ifdef NBPG |
| 28969 | # define getpagesize() NBPG * CLSIZE |
| 28970 | # ifndef CLSIZE |
| 28971 | # define CLSIZE 1 |
| 28972 | # endif /* no CLSIZE */ |
| 28973 | # else /* no NBPG */ |
| 28974 | # ifdef NBPC |
| 28975 | # define getpagesize() NBPC |
| 28976 | # else /* no NBPC */ |
| 28977 | # ifdef PAGESIZE |
| 28978 | # define getpagesize() PAGESIZE |
| 28979 | # endif /* PAGESIZE */ |
| 28980 | # endif /* no NBPC */ |
| 28981 | # endif /* no NBPG */ |
| 28982 | # endif /* no EXEC_PAGESIZE */ |
| 28983 | # else /* no HAVE_SYS_PARAM_H */ |
| 28984 | # define getpagesize() 8192 /* punt totally */ |
| 28985 | # endif /* no HAVE_SYS_PARAM_H */ |
| 28986 | # endif /* no _SC_PAGESIZE */ |
| 28987 | |
| 28988 | #endif /* no HAVE_GETPAGESIZE */ |
| 28989 | |
| 28990 | int |
| 28991 | main () |
| 28992 | { |
| 28993 | char *data, *data2, *data3; |
| 28994 | int i, pagesize; |
| 28995 | int fd; |
| 28996 | |
| 28997 | pagesize = getpagesize (); |
| 28998 | |
| 28999 | /* First, make a file with some known garbage in it. */ |
| 29000 | data = (char *) malloc (pagesize); |
| 29001 | if (!data) |
| 29002 | return 1; |
| 29003 | for (i = 0; i < pagesize; ++i) |
| 29004 | *(data + i) = rand (); |
| 29005 | umask (0); |
| 29006 | fd = creat ("conftest.mmap", 0600); |
| 29007 | if (fd < 0) |
| 29008 | return 1; |
| 29009 | if (write (fd, data, pagesize) != pagesize) |
| 29010 | return 1; |
| 29011 | close (fd); |
| 29012 | |
| 29013 | /* Next, try to mmap the file at a fixed address which already has |
| 29014 | something else allocated at it. If we can, also make sure that |
| 29015 | we see the same garbage. */ |
| 29016 | fd = open ("conftest.mmap", O_RDWR); |
| 29017 | if (fd < 0) |
| 29018 | return 1; |
| 29019 | data2 = (char *) malloc (2 * pagesize); |
| 29020 | if (!data2) |
| 29021 | return 1; |
| 29022 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
| 29023 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 29024 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 29025 | return 1; |
| 29026 | for (i = 0; i < pagesize; ++i) |
| 29027 | if (*(data + i) != *(data2 + i)) |
| 29028 | return 1; |
| 29029 | |
| 29030 | /* Finally, make sure that changes to the mapped area do not |
| 29031 | percolate back to the file as seen by read(). (This is a bug on |
| 29032 | some variants of i386 svr4.0.) */ |
| 29033 | for (i = 0; i < pagesize; ++i) |
| 29034 | *(data2 + i) = *(data2 + i) + 1; |
| 29035 | data3 = (char *) malloc (pagesize); |
| 29036 | if (!data3) |
| 29037 | return 1; |
| 29038 | if (read (fd, data3, pagesize) != pagesize) |
| 29039 | return 1; |
| 29040 | for (i = 0; i < pagesize; ++i) |
| 29041 | if (*(data + i) != *(data3 + i)) |
| 29042 | return 1; |
| 29043 | close (fd); |
| 29044 | return 0; |
| 29045 | } |
| 29046 | _ACEOF |
| 29047 | rm -f conftest$ac_exeext |
| 29048 | if { (ac_try="$ac_link" |
| 29049 | case "(($ac_try" in |
| 29050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29051 | *) ac_try_echo=$ac_try;; |
| 29052 | esac |
| 29053 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 29054 | $as_echo "$ac_try_echo") >&5 |
| 29055 | (eval "$ac_link") 2>&5 |
| 29056 | ac_status=$? |
| 29057 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29058 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 29059 | { (case "(($ac_try" in |
| 29060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29061 | *) ac_try_echo=$ac_try;; |
| 29062 | esac |
| 29063 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 29064 | $as_echo "$ac_try_echo") >&5 |
| 29065 | (eval "$ac_try") 2>&5 |
| 29066 | ac_status=$? |
| 29067 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29068 | (exit $ac_status); }; }; then |
| 29069 | ac_cv_func_mmap_fixed_mapped=yes |
| 29070 | else |
| 29071 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 29072 | $as_echo "$as_me: failed program was:" >&5 |
| 29073 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29074 | |
| 29075 | ( exit $ac_status ) |
| 29076 | ac_cv_func_mmap_fixed_mapped=no |
| 29077 | fi |
| 29078 | rm -rf conftest.dSYM |
| 29079 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 29080 | fi |
| 29081 | |
| 29082 | |
| 29083 | fi |
| 29084 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 29085 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
| 29086 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 29087 | |
| 29088 | cat >>confdefs.h <<\_ACEOF |
| 29089 | #define HAVE_MMAP 1 |
| 29090 | _ACEOF |
| 29091 | |
| 29092 | fi |
| 29093 | rm -f conftest.mmap |
| 29094 | |
| 29095 | |
| 29096 | for ac_header in vfork.h |
| 29097 | do |
| 29098 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 29099 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29100 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29101 | $as_echo_n "checking for $ac_header... " >&6; } |
| 29102 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29103 | $as_echo_n "(cached) " >&6 |
| 29104 | fi |
| 29105 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 29106 | $as_echo "$as_val"'` |
| 29107 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29108 | $as_echo "$ac_res" >&6; } |
| 29109 | else |
| 29110 | # Is the header compilable? |
| 29111 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29112 | $as_echo_n "checking $ac_header usability... " >&6; } |
| 29113 | cat >conftest.$ac_ext <<_ACEOF |
| 29114 | /* confdefs.h. */ |
| 29115 | _ACEOF |
| 29116 | cat confdefs.h >>conftest.$ac_ext |
| 29117 | cat >>conftest.$ac_ext <<_ACEOF |
| 29118 | /* end confdefs.h. */ |
| 29119 | $ac_includes_default |
| 29120 | #include <$ac_header> |
| 29121 | _ACEOF |
| 29122 | rm -f conftest.$ac_objext |
| 29123 | if { (ac_try="$ac_compile" |
| 29124 | case "(($ac_try" in |
| 29125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29126 | *) ac_try_echo=$ac_try;; |
| 29127 | esac |
| 29128 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 29129 | $as_echo "$ac_try_echo") >&5 |
| 29130 | (eval "$ac_compile") 2>conftest.er1 |
| 29131 | ac_status=$? |
| 29132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29133 | rm -f conftest.er1 |
| 29134 | cat conftest.err >&5 |
| 29135 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29136 | (exit $ac_status); } && { |
| 29137 | test -z "$ac_c_werror_flag" || |
| 29138 | test ! -s conftest.err |
| 29139 | } && test -s conftest.$ac_objext; then |
| 29140 | ac_header_compiler=yes |
| 29141 | else |
| 29142 | $as_echo "$as_me: failed program was:" >&5 |
| 29143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29144 | |
| 29145 | ac_header_compiler=no |
| 29146 | fi |
| 29147 | |
| 29148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29149 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29150 | $as_echo "$ac_header_compiler" >&6; } |
| 29151 | |
| 29152 | # Is the header present? |
| 29153 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29154 | $as_echo_n "checking $ac_header presence... " >&6; } |
| 29155 | cat >conftest.$ac_ext <<_ACEOF |
| 29156 | /* confdefs.h. */ |
| 29157 | _ACEOF |
| 29158 | cat confdefs.h >>conftest.$ac_ext |
| 29159 | cat >>conftest.$ac_ext <<_ACEOF |
| 29160 | /* end confdefs.h. */ |
| 29161 | #include <$ac_header> |
| 29162 | _ACEOF |
| 29163 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29164 | case "(($ac_try" in |
| 29165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29166 | *) ac_try_echo=$ac_try;; |
| 29167 | esac |
| 29168 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 29169 | $as_echo "$ac_try_echo") >&5 |
| 29170 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 29171 | ac_status=$? |
| 29172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29173 | rm -f conftest.er1 |
| 29174 | cat conftest.err >&5 |
| 29175 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29176 | (exit $ac_status); } >/dev/null && { |
| 29177 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 29178 | test ! -s conftest.err |
| 29179 | }; then |
| 29180 | ac_header_preproc=yes |
| 29181 | else |
| 29182 | $as_echo "$as_me: failed program was:" >&5 |
| 29183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29184 | |
| 29185 | ac_header_preproc=no |
| 29186 | fi |
| 29187 | |
| 29188 | rm -f conftest.err conftest.$ac_ext |
| 29189 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29190 | $as_echo "$ac_header_preproc" >&6; } |
| 29191 | |
| 29192 | # So? What about this header? |
| 29193 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29194 | yes:no: ) |
| 29195 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29196 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29197 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29198 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29199 | ac_header_preproc=yes |
| 29200 | ;; |
| 29201 | no:yes:* ) |
| 29202 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29203 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29204 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29205 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29206 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29207 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29208 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29209 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29210 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29211 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29212 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29213 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 29214 | ( cat <<\_ASBOX |
| 29215 | ## ----------------------------------------- ## |
| 29216 | ## Report this to http://www.imagemagick.org ## |
| 29217 | ## ----------------------------------------- ## |
| 29218 | _ASBOX |
| 29219 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 29220 | ;; |
| 29221 | esac |
| 29222 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29223 | $as_echo_n "checking for $ac_header... " >&6; } |
| 29224 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29225 | $as_echo_n "(cached) " >&6 |
| 29226 | else |
| 29227 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29228 | fi |
| 29229 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 29230 | $as_echo "$as_val"'` |
| 29231 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29232 | $as_echo "$ac_res" >&6; } |
| 29233 | |
| 29234 | fi |
| 29235 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 29236 | $as_echo "$as_val"'` |
| 29237 | if test "x$as_val" = x""yes; then |
| 29238 | cat >>confdefs.h <<_ACEOF |
| 29239 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29240 | _ACEOF |
| 29241 | |
| 29242 | fi |
| 29243 | |
| 29244 | done |
| 29245 | |
| 29246 | |
| 29247 | |
| 29248 | for ac_func in fork vfork |
| 29249 | do |
| 29250 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 29251 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 29252 | $as_echo_n "checking for $ac_func... " >&6; } |
| 29253 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29254 | $as_echo_n "(cached) " >&6 |
| 29255 | else |
| 29256 | cat >conftest.$ac_ext <<_ACEOF |
| 29257 | /* confdefs.h. */ |
| 29258 | _ACEOF |
| 29259 | cat confdefs.h >>conftest.$ac_ext |
| 29260 | cat >>conftest.$ac_ext <<_ACEOF |
| 29261 | /* end confdefs.h. */ |
| 29262 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 29263 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 29264 | #define $ac_func innocuous_$ac_func |
| 29265 | |
| 29266 | /* System header to define __stub macros and hopefully few prototypes, |
| 29267 | which can conflict with char $ac_func (); below. |
| 29268 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 29269 | <limits.h> exists even on freestanding compilers. */ |
| 29270 | |
| 29271 | #ifdef __STDC__ |
| 29272 | # include <limits.h> |
| 29273 | #else |
| 29274 | # include <assert.h> |
| 29275 | #endif |
| 29276 | |
| 29277 | #undef $ac_func |
| 29278 | |
| 29279 | /* Override any GCC internal prototype to avoid an error. |
| 29280 | Use char because int might match the return type of a GCC |
| 29281 | builtin and then its argument prototype would still apply. */ |
| 29282 | #ifdef __cplusplus |
| 29283 | extern "C" |
| 29284 | #endif |
| 29285 | char $ac_func (); |
| 29286 | /* The GNU C library defines this for functions which it implements |
| 29287 | to always fail with ENOSYS. Some functions are actually named |
| 29288 | something starting with __ and the normal name is an alias. */ |
| 29289 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 29290 | choke me |
| 29291 | #endif |
| 29292 | |
| 29293 | int |
| 29294 | main () |
| 29295 | { |
| 29296 | return $ac_func (); |
| 29297 | ; |
| 29298 | return 0; |
| 29299 | } |
| 29300 | _ACEOF |
| 29301 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 29302 | if { (ac_try="$ac_link" |
| 29303 | case "(($ac_try" in |
| 29304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29305 | *) ac_try_echo=$ac_try;; |
| 29306 | esac |
| 29307 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 29308 | $as_echo "$ac_try_echo") >&5 |
| 29309 | (eval "$ac_link") 2>conftest.er1 |
| 29310 | ac_status=$? |
| 29311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29312 | rm -f conftest.er1 |
| 29313 | cat conftest.err >&5 |
| 29314 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29315 | (exit $ac_status); } && { |
| 29316 | test -z "$ac_c_werror_flag" || |
| 29317 | test ! -s conftest.err |
| 29318 | } && test -s conftest$ac_exeext && { |
| 29319 | test "$cross_compiling" = yes || |
| 29320 | $as_test_x conftest$ac_exeext |
| 29321 | }; then |
| 29322 | eval "$as_ac_var=yes" |
| 29323 | else |
| 29324 | $as_echo "$as_me: failed program was:" >&5 |
| 29325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29326 | |
| 29327 | eval "$as_ac_var=no" |
| 29328 | fi |
| 29329 | |
| 29330 | rm -rf conftest.dSYM |
| 29331 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 29332 | conftest$ac_exeext conftest.$ac_ext |
| 29333 | fi |
| 29334 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 29335 | $as_echo "$as_val"'` |
| 29336 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29337 | $as_echo "$ac_res" >&6; } |
| 29338 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 29339 | $as_echo "$as_val"'` |
| 29340 | if test "x$as_val" = x""yes; then |
| 29341 | cat >>confdefs.h <<_ACEOF |
| 29342 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 29343 | _ACEOF |
| 29344 | |
| 29345 | fi |
| 29346 | done |
| 29347 | |
| 29348 | if test "x$ac_cv_func_fork" = xyes; then |
| 29349 | { $as_echo "$as_me:$LINENO: checking for working fork" >&5 |
| 29350 | $as_echo_n "checking for working fork... " >&6; } |
| 29351 | if test "${ac_cv_func_fork_works+set}" = set; then |
| 29352 | $as_echo_n "(cached) " >&6 |
| 29353 | else |
| 29354 | if test "$cross_compiling" = yes; then |
| 29355 | ac_cv_func_fork_works=cross |
| 29356 | else |
| 29357 | cat >conftest.$ac_ext <<_ACEOF |
| 29358 | /* confdefs.h. */ |
| 29359 | _ACEOF |
| 29360 | cat confdefs.h >>conftest.$ac_ext |
| 29361 | cat >>conftest.$ac_ext <<_ACEOF |
| 29362 | /* end confdefs.h. */ |
| 29363 | $ac_includes_default |
| 29364 | int |
| 29365 | main () |
| 29366 | { |
| 29367 | |
| 29368 | /* By Ruediger Kuhlmann. */ |
| 29369 | return fork () < 0; |
| 29370 | |
| 29371 | ; |
| 29372 | return 0; |
| 29373 | } |
| 29374 | _ACEOF |
| 29375 | rm -f conftest$ac_exeext |
| 29376 | if { (ac_try="$ac_link" |
| 29377 | case "(($ac_try" in |
| 29378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29379 | *) ac_try_echo=$ac_try;; |
| 29380 | esac |
| 29381 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 29382 | $as_echo "$ac_try_echo") >&5 |
| 29383 | (eval "$ac_link") 2>&5 |
| 29384 | ac_status=$? |
| 29385 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29386 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 29387 | { (case "(($ac_try" in |
| 29388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29389 | *) ac_try_echo=$ac_try;; |
| 29390 | esac |
| 29391 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 29392 | $as_echo "$ac_try_echo") >&5 |
| 29393 | (eval "$ac_try") 2>&5 |
| 29394 | ac_status=$? |
| 29395 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29396 | (exit $ac_status); }; }; then |
| 29397 | ac_cv_func_fork_works=yes |
| 29398 | else |
| 29399 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 29400 | $as_echo "$as_me: failed program was:" >&5 |
| 29401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29402 | |
| 29403 | ( exit $ac_status ) |
| 29404 | ac_cv_func_fork_works=no |
| 29405 | fi |
| 29406 | rm -rf conftest.dSYM |
| 29407 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 29408 | fi |
| 29409 | |
| 29410 | |
| 29411 | fi |
| 29412 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
| 29413 | $as_echo "$ac_cv_func_fork_works" >&6; } |
| 29414 | |
| 29415 | else |
| 29416 | ac_cv_func_fork_works=$ac_cv_func_fork |
| 29417 | fi |
| 29418 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 29419 | case $host in |
| 29420 | *-*-amigaos* | *-*-msdosdjgpp*) |
| 29421 | # Override, as these systems have only a dummy fork() stub |
| 29422 | ac_cv_func_fork_works=no |
| 29423 | ;; |
| 29424 | *) |
| 29425 | ac_cv_func_fork_works=yes |
| 29426 | ;; |
| 29427 | esac |
| 29428 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
| 29429 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
| 29430 | fi |
| 29431 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 29432 | if test "x$ac_cv_func_vfork" = xyes; then |
| 29433 | { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 |
| 29434 | $as_echo_n "checking for working vfork... " >&6; } |
| 29435 | if test "${ac_cv_func_vfork_works+set}" = set; then |
| 29436 | $as_echo_n "(cached) " >&6 |
| 29437 | else |
| 29438 | if test "$cross_compiling" = yes; then |
| 29439 | ac_cv_func_vfork_works=cross |
| 29440 | else |
| 29441 | cat >conftest.$ac_ext <<_ACEOF |
| 29442 | /* confdefs.h. */ |
| 29443 | _ACEOF |
| 29444 | cat confdefs.h >>conftest.$ac_ext |
| 29445 | cat >>conftest.$ac_ext <<_ACEOF |
| 29446 | /* end confdefs.h. */ |
| 29447 | /* Thanks to Paul Eggert for this test. */ |
| 29448 | $ac_includes_default |
| 29449 | #include <sys/wait.h> |
| 29450 | #ifdef HAVE_VFORK_H |
| 29451 | # include <vfork.h> |
| 29452 | #endif |
| 29453 | /* On some sparc systems, changes by the child to local and incoming |
| 29454 | argument registers are propagated back to the parent. The compiler |
| 29455 | is told about this with #include <vfork.h>, but some compilers |
| 29456 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
| 29457 | static variable whose address is put into a register that is |
| 29458 | clobbered by the vfork. */ |
| 29459 | static void |
| 29460 | #ifdef __cplusplus |
| 29461 | sparc_address_test (int arg) |
| 29462 | # else |
| 29463 | sparc_address_test (arg) int arg; |
| 29464 | #endif |
| 29465 | { |
| 29466 | static pid_t child; |
| 29467 | if (!child) { |
| 29468 | child = vfork (); |
| 29469 | if (child < 0) { |
| 29470 | perror ("vfork"); |
| 29471 | _exit(2); |
| 29472 | } |
| 29473 | if (!child) { |
| 29474 | arg = getpid(); |
| 29475 | write(-1, "", 0); |
| 29476 | _exit (arg); |
| 29477 | } |
| 29478 | } |
| 29479 | } |
| 29480 | |
| 29481 | int |
| 29482 | main () |
| 29483 | { |
| 29484 | pid_t parent = getpid (); |
| 29485 | pid_t child; |
| 29486 | |
| 29487 | sparc_address_test (0); |
| 29488 | |
| 29489 | child = vfork (); |
| 29490 | |
| 29491 | if (child == 0) { |
| 29492 | /* Here is another test for sparc vfork register problems. This |
| 29493 | test uses lots of local variables, at least as many local |
| 29494 | variables as main has allocated so far including compiler |
| 29495 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
| 29496 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
| 29497 | reuse the register of parent for one of the local variables, |
| 29498 | since it will think that parent can't possibly be used any more |
| 29499 | in this routine. Assigning to the local variable will thus |
| 29500 | munge parent in the parent process. */ |
| 29501 | pid_t |
| 29502 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
| 29503 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
| 29504 | /* Convince the compiler that p..p7 are live; otherwise, it might |
| 29505 | use the same hardware register for all 8 local variables. */ |
| 29506 | if (p != p1 || p != p2 || p != p3 || p != p4 |
| 29507 | || p != p5 || p != p6 || p != p7) |
| 29508 | _exit(1); |
| 29509 | |
| 29510 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
| 29511 | from child file descriptors. If the child closes a descriptor |
| 29512 | before it execs or exits, this munges the parent's descriptor |
| 29513 | as well. Test for this by closing stdout in the child. */ |
| 29514 | _exit(close(fileno(stdout)) != 0); |
| 29515 | } else { |
| 29516 | int status; |
| 29517 | struct stat st; |
| 29518 | |
| 29519 | while (wait(&status) != child) |
| 29520 | ; |
| 29521 | return ( |
| 29522 | /* Was there some problem with vforking? */ |
| 29523 | child < 0 |
| 29524 | |
| 29525 | /* Did the child fail? (This shouldn't happen.) */ |
| 29526 | || status |
| 29527 | |
| 29528 | /* Did the vfork/compiler bug occur? */ |
| 29529 | || parent != getpid() |
| 29530 | |
| 29531 | /* Did the file descriptor bug occur? */ |
| 29532 | || fstat(fileno(stdout), &st) != 0 |
| 29533 | ); |
| 29534 | } |
| 29535 | } |
| 29536 | _ACEOF |
| 29537 | rm -f conftest$ac_exeext |
| 29538 | if { (ac_try="$ac_link" |
| 29539 | case "(($ac_try" in |
| 29540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29541 | *) ac_try_echo=$ac_try;; |
| 29542 | esac |
| 29543 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 29544 | $as_echo "$ac_try_echo") >&5 |
| 29545 | (eval "$ac_link") 2>&5 |
| 29546 | ac_status=$? |
| 29547 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29548 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 29549 | { (case "(($ac_try" in |
| 29550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29551 | *) ac_try_echo=$ac_try;; |
| 29552 | esac |
| 29553 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 29554 | $as_echo "$ac_try_echo") >&5 |
| 29555 | (eval "$ac_try") 2>&5 |
| 29556 | ac_status=$? |
| 29557 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29558 | (exit $ac_status); }; }; then |
| 29559 | ac_cv_func_vfork_works=yes |
| 29560 | else |
| 29561 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 29562 | $as_echo "$as_me: failed program was:" >&5 |
| 29563 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29564 | |
| 29565 | ( exit $ac_status ) |
| 29566 | ac_cv_func_vfork_works=no |
| 29567 | fi |
| 29568 | rm -rf conftest.dSYM |
| 29569 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 29570 | fi |
| 29571 | |
| 29572 | |
| 29573 | fi |
| 29574 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
| 29575 | $as_echo "$ac_cv_func_vfork_works" >&6; } |
| 29576 | |
| 29577 | fi; |
| 29578 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 29579 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 29580 | { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
| 29581 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
| 29582 | fi |
| 29583 | |
| 29584 | if test "x$ac_cv_func_vfork_works" = xyes; then |
| 29585 | |
| 29586 | cat >>confdefs.h <<\_ACEOF |
| 29587 | #define HAVE_WORKING_VFORK 1 |
| 29588 | _ACEOF |
| 29589 | |
| 29590 | else |
| 29591 | |
| 29592 | cat >>confdefs.h <<\_ACEOF |
| 29593 | #define vfork fork |
| 29594 | _ACEOF |
| 29595 | |
| 29596 | fi |
| 29597 | if test "x$ac_cv_func_fork_works" = xyes; then |
| 29598 | |
| 29599 | cat >>confdefs.h <<\_ACEOF |
| 29600 | #define HAVE_WORKING_FORK 1 |
| 29601 | _ACEOF |
| 29602 | |
| 29603 | fi |
| 29604 | |
| 29605 | { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5 |
| 29606 | $as_echo_n "checking for working memcmp... " >&6; } |
| 29607 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
| 29608 | $as_echo_n "(cached) " >&6 |
| 29609 | else |
| 29610 | if test "$cross_compiling" = yes; then |
| 29611 | ac_cv_func_memcmp_working=no |
| 29612 | else |
| 29613 | cat >conftest.$ac_ext <<_ACEOF |
| 29614 | /* confdefs.h. */ |
| 29615 | _ACEOF |
| 29616 | cat confdefs.h >>conftest.$ac_ext |
| 29617 | cat >>conftest.$ac_ext <<_ACEOF |
| 29618 | /* end confdefs.h. */ |
| 29619 | $ac_includes_default |
| 29620 | int |
| 29621 | main () |
| 29622 | { |
| 29623 | |
| 29624 | /* Some versions of memcmp are not 8-bit clean. */ |
| 29625 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
| 29626 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
| 29627 | return 1; |
| 29628 | |
| 29629 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
| 29630 | or more and with at least one buffer not starting on a 4-byte boundary. |
| 29631 | William Lewis provided this test program. */ |
| 29632 | { |
| 29633 | char foo[21]; |
| 29634 | char bar[21]; |
| 29635 | int i; |
| 29636 | for (i = 0; i < 4; i++) |
| 29637 | { |
| 29638 | char *a = foo + i; |
| 29639 | char *b = bar + i; |
| 29640 | strcpy (a, "--------01111111"); |
| 29641 | strcpy (b, "--------10000000"); |
| 29642 | if (memcmp (a, b, 16) >= 0) |
| 29643 | return 1; |
| 29644 | } |
| 29645 | return 0; |
| 29646 | } |
| 29647 | |
| 29648 | ; |
| 29649 | return 0; |
| 29650 | } |
| 29651 | _ACEOF |
| 29652 | rm -f conftest$ac_exeext |
| 29653 | if { (ac_try="$ac_link" |
| 29654 | case "(($ac_try" in |
| 29655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29656 | *) ac_try_echo=$ac_try;; |
| 29657 | esac |
| 29658 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 29659 | $as_echo "$ac_try_echo") >&5 |
| 29660 | (eval "$ac_link") 2>&5 |
| 29661 | ac_status=$? |
| 29662 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29663 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 29664 | { (case "(($ac_try" in |
| 29665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29666 | *) ac_try_echo=$ac_try;; |
| 29667 | esac |
| 29668 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 29669 | $as_echo "$ac_try_echo") >&5 |
| 29670 | (eval "$ac_try") 2>&5 |
| 29671 | ac_status=$? |
| 29672 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29673 | (exit $ac_status); }; }; then |
| 29674 | ac_cv_func_memcmp_working=yes |
| 29675 | else |
| 29676 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 29677 | $as_echo "$as_me: failed program was:" >&5 |
| 29678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29679 | |
| 29680 | ( exit $ac_status ) |
| 29681 | ac_cv_func_memcmp_working=no |
| 29682 | fi |
| 29683 | rm -rf conftest.dSYM |
| 29684 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 29685 | fi |
| 29686 | |
| 29687 | |
| 29688 | fi |
| 29689 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
| 29690 | $as_echo "$ac_cv_func_memcmp_working" >&6; } |
| 29691 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
| 29692 | *" memcmp.$ac_objext "* ) ;; |
| 29693 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
| 29694 | ;; |
| 29695 | esac |
| 29696 | |
| 29697 | |
| 29698 | |
| 29699 | |
| 29700 | for ac_header in sys/select.h sys/socket.h |
| 29701 | do |
| 29702 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 29703 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29704 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29705 | $as_echo_n "checking for $ac_header... " >&6; } |
| 29706 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29707 | $as_echo_n "(cached) " >&6 |
| 29708 | fi |
| 29709 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 29710 | $as_echo "$as_val"'` |
| 29711 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29712 | $as_echo "$ac_res" >&6; } |
| 29713 | else |
| 29714 | # Is the header compilable? |
| 29715 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29716 | $as_echo_n "checking $ac_header usability... " >&6; } |
| 29717 | cat >conftest.$ac_ext <<_ACEOF |
| 29718 | /* confdefs.h. */ |
| 29719 | _ACEOF |
| 29720 | cat confdefs.h >>conftest.$ac_ext |
| 29721 | cat >>conftest.$ac_ext <<_ACEOF |
| 29722 | /* end confdefs.h. */ |
| 29723 | $ac_includes_default |
| 29724 | #include <$ac_header> |
| 29725 | _ACEOF |
| 29726 | rm -f conftest.$ac_objext |
| 29727 | if { (ac_try="$ac_compile" |
| 29728 | case "(($ac_try" in |
| 29729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29730 | *) ac_try_echo=$ac_try;; |
| 29731 | esac |
| 29732 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 29733 | $as_echo "$ac_try_echo") >&5 |
| 29734 | (eval "$ac_compile") 2>conftest.er1 |
| 29735 | ac_status=$? |
| 29736 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29737 | rm -f conftest.er1 |
| 29738 | cat conftest.err >&5 |
| 29739 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29740 | (exit $ac_status); } && { |
| 29741 | test -z "$ac_c_werror_flag" || |
| 29742 | test ! -s conftest.err |
| 29743 | } && test -s conftest.$ac_objext; then |
| 29744 | ac_header_compiler=yes |
| 29745 | else |
| 29746 | $as_echo "$as_me: failed program was:" >&5 |
| 29747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29748 | |
| 29749 | ac_header_compiler=no |
| 29750 | fi |
| 29751 | |
| 29752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29753 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29754 | $as_echo "$ac_header_compiler" >&6; } |
| 29755 | |
| 29756 | # Is the header present? |
| 29757 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29758 | $as_echo_n "checking $ac_header presence... " >&6; } |
| 29759 | cat >conftest.$ac_ext <<_ACEOF |
| 29760 | /* confdefs.h. */ |
| 29761 | _ACEOF |
| 29762 | cat confdefs.h >>conftest.$ac_ext |
| 29763 | cat >>conftest.$ac_ext <<_ACEOF |
| 29764 | /* end confdefs.h. */ |
| 29765 | #include <$ac_header> |
| 29766 | _ACEOF |
| 29767 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29768 | case "(($ac_try" in |
| 29769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29770 | *) ac_try_echo=$ac_try;; |
| 29771 | esac |
| 29772 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 29773 | $as_echo "$ac_try_echo") >&5 |
| 29774 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 29775 | ac_status=$? |
| 29776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29777 | rm -f conftest.er1 |
| 29778 | cat conftest.err >&5 |
| 29779 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29780 | (exit $ac_status); } >/dev/null && { |
| 29781 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 29782 | test ! -s conftest.err |
| 29783 | }; then |
| 29784 | ac_header_preproc=yes |
| 29785 | else |
| 29786 | $as_echo "$as_me: failed program was:" >&5 |
| 29787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29788 | |
| 29789 | ac_header_preproc=no |
| 29790 | fi |
| 29791 | |
| 29792 | rm -f conftest.err conftest.$ac_ext |
| 29793 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29794 | $as_echo "$ac_header_preproc" >&6; } |
| 29795 | |
| 29796 | # So? What about this header? |
| 29797 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29798 | yes:no: ) |
| 29799 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29800 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29801 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29802 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29803 | ac_header_preproc=yes |
| 29804 | ;; |
| 29805 | no:yes:* ) |
| 29806 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29807 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29808 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29809 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29810 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29811 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29812 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29813 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29814 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29815 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29816 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29817 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 29818 | ( cat <<\_ASBOX |
| 29819 | ## ----------------------------------------- ## |
| 29820 | ## Report this to http://www.imagemagick.org ## |
| 29821 | ## ----------------------------------------- ## |
| 29822 | _ASBOX |
| 29823 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 29824 | ;; |
| 29825 | esac |
| 29826 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29827 | $as_echo_n "checking for $ac_header... " >&6; } |
| 29828 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29829 | $as_echo_n "(cached) " >&6 |
| 29830 | else |
| 29831 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29832 | fi |
| 29833 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 29834 | $as_echo "$as_val"'` |
| 29835 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29836 | $as_echo "$ac_res" >&6; } |
| 29837 | |
| 29838 | fi |
| 29839 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 29840 | $as_echo "$as_val"'` |
| 29841 | if test "x$as_val" = x""yes; then |
| 29842 | cat >>confdefs.h <<_ACEOF |
| 29843 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29844 | _ACEOF |
| 29845 | |
| 29846 | fi |
| 29847 | |
| 29848 | done |
| 29849 | |
| 29850 | { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
| 29851 | $as_echo_n "checking types of arguments for select... " >&6; } |
| 29852 | if test "${ac_cv_func_select_args+set}" = set; then |
| 29853 | $as_echo_n "(cached) " >&6 |
| 29854 | else |
| 29855 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
| 29856 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
| 29857 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
| 29858 | cat >conftest.$ac_ext <<_ACEOF |
| 29859 | /* confdefs.h. */ |
| 29860 | _ACEOF |
| 29861 | cat confdefs.h >>conftest.$ac_ext |
| 29862 | cat >>conftest.$ac_ext <<_ACEOF |
| 29863 | /* end confdefs.h. */ |
| 29864 | $ac_includes_default |
| 29865 | #ifdef HAVE_SYS_SELECT_H |
| 29866 | # include <sys/select.h> |
| 29867 | #endif |
| 29868 | #ifdef HAVE_SYS_SOCKET_H |
| 29869 | # include <sys/socket.h> |
| 29870 | #endif |
| 29871 | |
| 29872 | int |
| 29873 | main () |
| 29874 | { |
| 29875 | extern int select ($ac_arg1, |
| 29876 | $ac_arg234, $ac_arg234, $ac_arg234, |
| 29877 | $ac_arg5); |
| 29878 | ; |
| 29879 | return 0; |
| 29880 | } |
| 29881 | _ACEOF |
| 29882 | rm -f conftest.$ac_objext |
| 29883 | if { (ac_try="$ac_compile" |
| 29884 | case "(($ac_try" in |
| 29885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29886 | *) ac_try_echo=$ac_try;; |
| 29887 | esac |
| 29888 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 29889 | $as_echo "$ac_try_echo") >&5 |
| 29890 | (eval "$ac_compile") 2>conftest.er1 |
| 29891 | ac_status=$? |
| 29892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29893 | rm -f conftest.er1 |
| 29894 | cat conftest.err >&5 |
| 29895 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29896 | (exit $ac_status); } && { |
| 29897 | test -z "$ac_c_werror_flag" || |
| 29898 | test ! -s conftest.err |
| 29899 | } && test -s conftest.$ac_objext; then |
| 29900 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
| 29901 | else |
| 29902 | $as_echo "$as_me: failed program was:" >&5 |
| 29903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29904 | |
| 29905 | |
| 29906 | fi |
| 29907 | |
| 29908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29909 | done |
| 29910 | done |
| 29911 | done |
| 29912 | # Provide a safe default value. |
| 29913 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} |
| 29914 | |
| 29915 | fi |
| 29916 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
| 29917 | $as_echo "$ac_cv_func_select_args" >&6; } |
| 29918 | ac_save_IFS=$IFS; IFS=',' |
| 29919 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
| 29920 | IFS=$ac_save_IFS |
| 29921 | shift |
| 29922 | |
| 29923 | cat >>confdefs.h <<_ACEOF |
| 29924 | #define SELECT_TYPE_ARG1 $1 |
| 29925 | _ACEOF |
| 29926 | |
| 29927 | |
| 29928 | cat >>confdefs.h <<_ACEOF |
| 29929 | #define SELECT_TYPE_ARG234 ($2) |
| 29930 | _ACEOF |
| 29931 | |
| 29932 | |
| 29933 | cat >>confdefs.h <<_ACEOF |
| 29934 | #define SELECT_TYPE_ARG5 ($3) |
| 29935 | _ACEOF |
| 29936 | |
| 29937 | rm -f conftest* |
| 29938 | |
| 29939 | if test "${ac_cv_func_setvbuf_reversed+set}" = set; then |
| 29940 | $as_echo_n "(cached) " >&6 |
| 29941 | else |
| 29942 | ac_cv_func_setvbuf_reversed=no |
| 29943 | fi |
| 29944 | |
| 29945 | |
| 29946 | { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 29947 | $as_echo_n "checking return type of signal handlers... " >&6; } |
| 29948 | if test "${ac_cv_type_signal+set}" = set; then |
| 29949 | $as_echo_n "(cached) " >&6 |
| 29950 | else |
| 29951 | cat >conftest.$ac_ext <<_ACEOF |
| 29952 | /* confdefs.h. */ |
| 29953 | _ACEOF |
| 29954 | cat confdefs.h >>conftest.$ac_ext |
| 29955 | cat >>conftest.$ac_ext <<_ACEOF |
| 29956 | /* end confdefs.h. */ |
| 29957 | #include <sys/types.h> |
| 29958 | #include <signal.h> |
| 29959 | |
| 29960 | int |
| 29961 | main () |
| 29962 | { |
| 29963 | return *(signal (0, 0)) (0) == 1; |
| 29964 | ; |
| 29965 | return 0; |
| 29966 | } |
| 29967 | _ACEOF |
| 29968 | rm -f conftest.$ac_objext |
| 29969 | if { (ac_try="$ac_compile" |
| 29970 | case "(($ac_try" in |
| 29971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29972 | *) ac_try_echo=$ac_try;; |
| 29973 | esac |
| 29974 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 29975 | $as_echo "$ac_try_echo") >&5 |
| 29976 | (eval "$ac_compile") 2>conftest.er1 |
| 29977 | ac_status=$? |
| 29978 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29979 | rm -f conftest.er1 |
| 29980 | cat conftest.err >&5 |
| 29981 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29982 | (exit $ac_status); } && { |
| 29983 | test -z "$ac_c_werror_flag" || |
| 29984 | test ! -s conftest.err |
| 29985 | } && test -s conftest.$ac_objext; then |
| 29986 | ac_cv_type_signal=int |
| 29987 | else |
| 29988 | $as_echo "$as_me: failed program was:" >&5 |
| 29989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29990 | |
| 29991 | ac_cv_type_signal=void |
| 29992 | fi |
| 29993 | |
| 29994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29995 | fi |
| 29996 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 29997 | $as_echo "$ac_cv_type_signal" >&6; } |
| 29998 | |
| 29999 | cat >>confdefs.h <<_ACEOF |
| 30000 | #define RETSIGTYPE $ac_cv_type_signal |
| 30001 | _ACEOF |
| 30002 | |
| 30003 | |
| 30004 | { $as_echo "$as_me:$LINENO: checking for working strtod" >&5 |
| 30005 | $as_echo_n "checking for working strtod... " >&6; } |
| 30006 | if test "${ac_cv_func_strtod+set}" = set; then |
| 30007 | $as_echo_n "(cached) " >&6 |
| 30008 | else |
| 30009 | if test "$cross_compiling" = yes; then |
| 30010 | ac_cv_func_strtod=no |
| 30011 | else |
| 30012 | cat >conftest.$ac_ext <<_ACEOF |
| 30013 | /* confdefs.h. */ |
| 30014 | _ACEOF |
| 30015 | cat confdefs.h >>conftest.$ac_ext |
| 30016 | cat >>conftest.$ac_ext <<_ACEOF |
| 30017 | /* end confdefs.h. */ |
| 30018 | |
| 30019 | $ac_includes_default |
| 30020 | #ifndef strtod |
| 30021 | double strtod (); |
| 30022 | #endif |
| 30023 | int |
| 30024 | main() |
| 30025 | { |
| 30026 | { |
| 30027 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
| 30028 | char *string = " +69"; |
| 30029 | char *term; |
| 30030 | double value; |
| 30031 | value = strtod (string, &term); |
| 30032 | if (value != 69 || term != (string + 4)) |
| 30033 | return 1; |
| 30034 | } |
| 30035 | |
| 30036 | { |
| 30037 | /* Under Solaris 2.4, strtod returns the wrong value for the |
| 30038 | terminating character under some conditions. */ |
| 30039 | char *string = "NaN"; |
| 30040 | char *term; |
| 30041 | strtod (string, &term); |
| 30042 | if (term != string && *(term - 1) == 0) |
| 30043 | return 1; |
| 30044 | } |
| 30045 | return 0; |
| 30046 | } |
| 30047 | |
| 30048 | _ACEOF |
| 30049 | rm -f conftest$ac_exeext |
| 30050 | if { (ac_try="$ac_link" |
| 30051 | case "(($ac_try" in |
| 30052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30053 | *) ac_try_echo=$ac_try;; |
| 30054 | esac |
| 30055 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 30056 | $as_echo "$ac_try_echo") >&5 |
| 30057 | (eval "$ac_link") 2>&5 |
| 30058 | ac_status=$? |
| 30059 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30060 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 30061 | { (case "(($ac_try" in |
| 30062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30063 | *) ac_try_echo=$ac_try;; |
| 30064 | esac |
| 30065 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 30066 | $as_echo "$ac_try_echo") >&5 |
| 30067 | (eval "$ac_try") 2>&5 |
| 30068 | ac_status=$? |
| 30069 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30070 | (exit $ac_status); }; }; then |
| 30071 | ac_cv_func_strtod=yes |
| 30072 | else |
| 30073 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 30074 | $as_echo "$as_me: failed program was:" >&5 |
| 30075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30076 | |
| 30077 | ( exit $ac_status ) |
| 30078 | ac_cv_func_strtod=no |
| 30079 | fi |
| 30080 | rm -rf conftest.dSYM |
| 30081 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 30082 | fi |
| 30083 | |
| 30084 | |
| 30085 | fi |
| 30086 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
| 30087 | $as_echo "$ac_cv_func_strtod" >&6; } |
| 30088 | if test $ac_cv_func_strtod = no; then |
| 30089 | case " $LIBOBJS " in |
| 30090 | *" strtod.$ac_objext "* ) ;; |
| 30091 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
| 30092 | ;; |
| 30093 | esac |
| 30094 | |
| 30095 | { $as_echo "$as_me:$LINENO: checking for pow" >&5 |
| 30096 | $as_echo_n "checking for pow... " >&6; } |
| 30097 | if test "${ac_cv_func_pow+set}" = set; then |
| 30098 | $as_echo_n "(cached) " >&6 |
| 30099 | else |
| 30100 | cat >conftest.$ac_ext <<_ACEOF |
| 30101 | /* confdefs.h. */ |
| 30102 | _ACEOF |
| 30103 | cat confdefs.h >>conftest.$ac_ext |
| 30104 | cat >>conftest.$ac_ext <<_ACEOF |
| 30105 | /* end confdefs.h. */ |
| 30106 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
| 30107 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30108 | #define pow innocuous_pow |
| 30109 | |
| 30110 | /* System header to define __stub macros and hopefully few prototypes, |
| 30111 | which can conflict with char pow (); below. |
| 30112 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30113 | <limits.h> exists even on freestanding compilers. */ |
| 30114 | |
| 30115 | #ifdef __STDC__ |
| 30116 | # include <limits.h> |
| 30117 | #else |
| 30118 | # include <assert.h> |
| 30119 | #endif |
| 30120 | |
| 30121 | #undef pow |
| 30122 | |
| 30123 | /* Override any GCC internal prototype to avoid an error. |
| 30124 | Use char because int might match the return type of a GCC |
| 30125 | builtin and then its argument prototype would still apply. */ |
| 30126 | #ifdef __cplusplus |
| 30127 | extern "C" |
| 30128 | #endif |
| 30129 | char pow (); |
| 30130 | /* The GNU C library defines this for functions which it implements |
| 30131 | to always fail with ENOSYS. Some functions are actually named |
| 30132 | something starting with __ and the normal name is an alias. */ |
| 30133 | #if defined __stub_pow || defined __stub___pow |
| 30134 | choke me |
| 30135 | #endif |
| 30136 | |
| 30137 | int |
| 30138 | main () |
| 30139 | { |
| 30140 | return pow (); |
| 30141 | ; |
| 30142 | return 0; |
| 30143 | } |
| 30144 | _ACEOF |
| 30145 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 30146 | if { (ac_try="$ac_link" |
| 30147 | case "(($ac_try" in |
| 30148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30149 | *) ac_try_echo=$ac_try;; |
| 30150 | esac |
| 30151 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 30152 | $as_echo "$ac_try_echo") >&5 |
| 30153 | (eval "$ac_link") 2>conftest.er1 |
| 30154 | ac_status=$? |
| 30155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30156 | rm -f conftest.er1 |
| 30157 | cat conftest.err >&5 |
| 30158 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30159 | (exit $ac_status); } && { |
| 30160 | test -z "$ac_c_werror_flag" || |
| 30161 | test ! -s conftest.err |
| 30162 | } && test -s conftest$ac_exeext && { |
| 30163 | test "$cross_compiling" = yes || |
| 30164 | $as_test_x conftest$ac_exeext |
| 30165 | }; then |
| 30166 | ac_cv_func_pow=yes |
| 30167 | else |
| 30168 | $as_echo "$as_me: failed program was:" >&5 |
| 30169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30170 | |
| 30171 | ac_cv_func_pow=no |
| 30172 | fi |
| 30173 | |
| 30174 | rm -rf conftest.dSYM |
| 30175 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 30176 | conftest$ac_exeext conftest.$ac_ext |
| 30177 | fi |
| 30178 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
| 30179 | $as_echo "$ac_cv_func_pow" >&6; } |
| 30180 | |
| 30181 | if test $ac_cv_func_pow = no; then |
| 30182 | { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
| 30183 | $as_echo_n "checking for pow in -lm... " >&6; } |
| 30184 | if test "${ac_cv_lib_m_pow+set}" = set; then |
| 30185 | $as_echo_n "(cached) " >&6 |
| 30186 | else |
| 30187 | ac_check_lib_save_LIBS=$LIBS |
| 30188 | LIBS="-lm $LIBS" |
| 30189 | cat >conftest.$ac_ext <<_ACEOF |
| 30190 | /* confdefs.h. */ |
| 30191 | _ACEOF |
| 30192 | cat confdefs.h >>conftest.$ac_ext |
| 30193 | cat >>conftest.$ac_ext <<_ACEOF |
| 30194 | /* end confdefs.h. */ |
| 30195 | |
| 30196 | /* Override any GCC internal prototype to avoid an error. |
| 30197 | Use char because int might match the return type of a GCC |
| 30198 | builtin and then its argument prototype would still apply. */ |
| 30199 | #ifdef __cplusplus |
| 30200 | extern "C" |
| 30201 | #endif |
| 30202 | char pow (); |
| 30203 | int |
| 30204 | main () |
| 30205 | { |
| 30206 | return pow (); |
| 30207 | ; |
| 30208 | return 0; |
| 30209 | } |
| 30210 | _ACEOF |
| 30211 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 30212 | if { (ac_try="$ac_link" |
| 30213 | case "(($ac_try" in |
| 30214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30215 | *) ac_try_echo=$ac_try;; |
| 30216 | esac |
| 30217 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 30218 | $as_echo "$ac_try_echo") >&5 |
| 30219 | (eval "$ac_link") 2>conftest.er1 |
| 30220 | ac_status=$? |
| 30221 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30222 | rm -f conftest.er1 |
| 30223 | cat conftest.err >&5 |
| 30224 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30225 | (exit $ac_status); } && { |
| 30226 | test -z "$ac_c_werror_flag" || |
| 30227 | test ! -s conftest.err |
| 30228 | } && test -s conftest$ac_exeext && { |
| 30229 | test "$cross_compiling" = yes || |
| 30230 | $as_test_x conftest$ac_exeext |
| 30231 | }; then |
| 30232 | ac_cv_lib_m_pow=yes |
| 30233 | else |
| 30234 | $as_echo "$as_me: failed program was:" >&5 |
| 30235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30236 | |
| 30237 | ac_cv_lib_m_pow=no |
| 30238 | fi |
| 30239 | |
| 30240 | rm -rf conftest.dSYM |
| 30241 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 30242 | conftest$ac_exeext conftest.$ac_ext |
| 30243 | LIBS=$ac_check_lib_save_LIBS |
| 30244 | fi |
| 30245 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
| 30246 | $as_echo "$ac_cv_lib_m_pow" >&6; } |
| 30247 | if test "x$ac_cv_lib_m_pow" = x""yes; then |
| 30248 | POW_LIB=-lm |
| 30249 | else |
| 30250 | { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
| 30251 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
| 30252 | fi |
| 30253 | |
| 30254 | fi |
| 30255 | |
| 30256 | fi |
| 30257 | |
| 30258 | |
| 30259 | for ac_func in vprintf |
| 30260 | do |
| 30261 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 30262 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30263 | $as_echo_n "checking for $ac_func... " >&6; } |
| 30264 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30265 | $as_echo_n "(cached) " >&6 |
| 30266 | else |
| 30267 | cat >conftest.$ac_ext <<_ACEOF |
| 30268 | /* confdefs.h. */ |
| 30269 | _ACEOF |
| 30270 | cat confdefs.h >>conftest.$ac_ext |
| 30271 | cat >>conftest.$ac_ext <<_ACEOF |
| 30272 | /* end confdefs.h. */ |
| 30273 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30274 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30275 | #define $ac_func innocuous_$ac_func |
| 30276 | |
| 30277 | /* System header to define __stub macros and hopefully few prototypes, |
| 30278 | which can conflict with char $ac_func (); below. |
| 30279 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30280 | <limits.h> exists even on freestanding compilers. */ |
| 30281 | |
| 30282 | #ifdef __STDC__ |
| 30283 | # include <limits.h> |
| 30284 | #else |
| 30285 | # include <assert.h> |
| 30286 | #endif |
| 30287 | |
| 30288 | #undef $ac_func |
| 30289 | |
| 30290 | /* Override any GCC internal prototype to avoid an error. |
| 30291 | Use char because int might match the return type of a GCC |
| 30292 | builtin and then its argument prototype would still apply. */ |
| 30293 | #ifdef __cplusplus |
| 30294 | extern "C" |
| 30295 | #endif |
| 30296 | char $ac_func (); |
| 30297 | /* The GNU C library defines this for functions which it implements |
| 30298 | to always fail with ENOSYS. Some functions are actually named |
| 30299 | something starting with __ and the normal name is an alias. */ |
| 30300 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 30301 | choke me |
| 30302 | #endif |
| 30303 | |
| 30304 | int |
| 30305 | main () |
| 30306 | { |
| 30307 | return $ac_func (); |
| 30308 | ; |
| 30309 | return 0; |
| 30310 | } |
| 30311 | _ACEOF |
| 30312 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 30313 | if { (ac_try="$ac_link" |
| 30314 | case "(($ac_try" in |
| 30315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30316 | *) ac_try_echo=$ac_try;; |
| 30317 | esac |
| 30318 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 30319 | $as_echo "$ac_try_echo") >&5 |
| 30320 | (eval "$ac_link") 2>conftest.er1 |
| 30321 | ac_status=$? |
| 30322 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30323 | rm -f conftest.er1 |
| 30324 | cat conftest.err >&5 |
| 30325 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30326 | (exit $ac_status); } && { |
| 30327 | test -z "$ac_c_werror_flag" || |
| 30328 | test ! -s conftest.err |
| 30329 | } && test -s conftest$ac_exeext && { |
| 30330 | test "$cross_compiling" = yes || |
| 30331 | $as_test_x conftest$ac_exeext |
| 30332 | }; then |
| 30333 | eval "$as_ac_var=yes" |
| 30334 | else |
| 30335 | $as_echo "$as_me: failed program was:" >&5 |
| 30336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30337 | |
| 30338 | eval "$as_ac_var=no" |
| 30339 | fi |
| 30340 | |
| 30341 | rm -rf conftest.dSYM |
| 30342 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 30343 | conftest$ac_exeext conftest.$ac_ext |
| 30344 | fi |
| 30345 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 30346 | $as_echo "$as_val"'` |
| 30347 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30348 | $as_echo "$ac_res" >&6; } |
| 30349 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 30350 | $as_echo "$as_val"'` |
| 30351 | if test "x$as_val" = x""yes; then |
| 30352 | cat >>confdefs.h <<_ACEOF |
| 30353 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30354 | _ACEOF |
| 30355 | |
| 30356 | { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 |
| 30357 | $as_echo_n "checking for _doprnt... " >&6; } |
| 30358 | if test "${ac_cv_func__doprnt+set}" = set; then |
| 30359 | $as_echo_n "(cached) " >&6 |
| 30360 | else |
| 30361 | cat >conftest.$ac_ext <<_ACEOF |
| 30362 | /* confdefs.h. */ |
| 30363 | _ACEOF |
| 30364 | cat confdefs.h >>conftest.$ac_ext |
| 30365 | cat >>conftest.$ac_ext <<_ACEOF |
| 30366 | /* end confdefs.h. */ |
| 30367 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
| 30368 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30369 | #define _doprnt innocuous__doprnt |
| 30370 | |
| 30371 | /* System header to define __stub macros and hopefully few prototypes, |
| 30372 | which can conflict with char _doprnt (); below. |
| 30373 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30374 | <limits.h> exists even on freestanding compilers. */ |
| 30375 | |
| 30376 | #ifdef __STDC__ |
| 30377 | # include <limits.h> |
| 30378 | #else |
| 30379 | # include <assert.h> |
| 30380 | #endif |
| 30381 | |
| 30382 | #undef _doprnt |
| 30383 | |
| 30384 | /* Override any GCC internal prototype to avoid an error. |
| 30385 | Use char because int might match the return type of a GCC |
| 30386 | builtin and then its argument prototype would still apply. */ |
| 30387 | #ifdef __cplusplus |
| 30388 | extern "C" |
| 30389 | #endif |
| 30390 | char _doprnt (); |
| 30391 | /* The GNU C library defines this for functions which it implements |
| 30392 | to always fail with ENOSYS. Some functions are actually named |
| 30393 | something starting with __ and the normal name is an alias. */ |
| 30394 | #if defined __stub__doprnt || defined __stub____doprnt |
| 30395 | choke me |
| 30396 | #endif |
| 30397 | |
| 30398 | int |
| 30399 | main () |
| 30400 | { |
| 30401 | return _doprnt (); |
| 30402 | ; |
| 30403 | return 0; |
| 30404 | } |
| 30405 | _ACEOF |
| 30406 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 30407 | if { (ac_try="$ac_link" |
| 30408 | case "(($ac_try" in |
| 30409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30410 | *) ac_try_echo=$ac_try;; |
| 30411 | esac |
| 30412 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 30413 | $as_echo "$ac_try_echo") >&5 |
| 30414 | (eval "$ac_link") 2>conftest.er1 |
| 30415 | ac_status=$? |
| 30416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30417 | rm -f conftest.er1 |
| 30418 | cat conftest.err >&5 |
| 30419 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30420 | (exit $ac_status); } && { |
| 30421 | test -z "$ac_c_werror_flag" || |
| 30422 | test ! -s conftest.err |
| 30423 | } && test -s conftest$ac_exeext && { |
| 30424 | test "$cross_compiling" = yes || |
| 30425 | $as_test_x conftest$ac_exeext |
| 30426 | }; then |
| 30427 | ac_cv_func__doprnt=yes |
| 30428 | else |
| 30429 | $as_echo "$as_me: failed program was:" >&5 |
| 30430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30431 | |
| 30432 | ac_cv_func__doprnt=no |
| 30433 | fi |
| 30434 | |
| 30435 | rm -rf conftest.dSYM |
| 30436 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 30437 | conftest$ac_exeext conftest.$ac_ext |
| 30438 | fi |
| 30439 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
| 30440 | $as_echo "$ac_cv_func__doprnt" >&6; } |
| 30441 | if test "x$ac_cv_func__doprnt" = x""yes; then |
| 30442 | |
| 30443 | cat >>confdefs.h <<\_ACEOF |
| 30444 | #define HAVE_DOPRNT 1 |
| 30445 | _ACEOF |
| 30446 | |
| 30447 | fi |
| 30448 | |
| 30449 | fi |
| 30450 | done |
| 30451 | |
| 30452 | |
| 30453 | |
| 30454 | |
| 30455 | |
| 30456 | |
| 30457 | |
| 30458 | |
| 30459 | |
| 30460 | |
| 30461 | |
| 30462 | |
| 30463 | |
| 30464 | |
| 30465 | |
| 30466 | |
| 30467 | |
| 30468 | |
| 30469 | |
| 30470 | |
| 30471 | |
| 30472 | |
| 30473 | |
| 30474 | |
| 30475 | |
| 30476 | |
| 30477 | |
| 30478 | |
| 30479 | |
| 30480 | |
| 30481 | |
| 30482 | |
| 30483 | |
| 30484 | |
| 30485 | |
| 30486 | |
| 30487 | |
| 30488 | |
| 30489 | |
| 30490 | |
| 30491 | |
| 30492 | |
| 30493 | |
| 30494 | |
| 30495 | |
| 30496 | |
| 30497 | |
| 30498 | |
| 30499 | |
| 30500 | |
| 30501 | |
| 30502 | |
| 30503 | |
| 30504 | |
| 30505 | |
| 30506 | |
| 30507 | |
| 30508 | |
| 30509 | |
| 30510 | |
| 30511 | |
| 30512 | |
| 30513 | |
| 30514 | |
| 30515 | |
| 30516 | |
| 30517 | |
| 30518 | |
| 30519 | |
| 30520 | |
| 30521 | |
| 30522 | |
| 30523 | |
| 30524 | |
| 30525 | |
| 30526 | |
| 30527 | |
| 30528 | |
| 30529 | for ac_func in _exit atexit clock clock_gettime directio execvp floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrusage gettimeofday gmtime_r localtime_r lstat memmove memset mkstemp munmap _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign pow pread pwrite raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol symlink sysconf sigemptyset sigaction strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep vsprintf vsnprintf waitpid _wfopen _wstat |
| 30530 | do |
| 30531 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 30532 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30533 | $as_echo_n "checking for $ac_func... " >&6; } |
| 30534 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30535 | $as_echo_n "(cached) " >&6 |
| 30536 | else |
| 30537 | cat >conftest.$ac_ext <<_ACEOF |
| 30538 | /* confdefs.h. */ |
| 30539 | _ACEOF |
| 30540 | cat confdefs.h >>conftest.$ac_ext |
| 30541 | cat >>conftest.$ac_ext <<_ACEOF |
| 30542 | /* end confdefs.h. */ |
| 30543 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30544 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30545 | #define $ac_func innocuous_$ac_func |
| 30546 | |
| 30547 | /* System header to define __stub macros and hopefully few prototypes, |
| 30548 | which can conflict with char $ac_func (); below. |
| 30549 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30550 | <limits.h> exists even on freestanding compilers. */ |
| 30551 | |
| 30552 | #ifdef __STDC__ |
| 30553 | # include <limits.h> |
| 30554 | #else |
| 30555 | # include <assert.h> |
| 30556 | #endif |
| 30557 | |
| 30558 | #undef $ac_func |
| 30559 | |
| 30560 | /* Override any GCC internal prototype to avoid an error. |
| 30561 | Use char because int might match the return type of a GCC |
| 30562 | builtin and then its argument prototype would still apply. */ |
| 30563 | #ifdef __cplusplus |
| 30564 | extern "C" |
| 30565 | #endif |
| 30566 | char $ac_func (); |
| 30567 | /* The GNU C library defines this for functions which it implements |
| 30568 | to always fail with ENOSYS. Some functions are actually named |
| 30569 | something starting with __ and the normal name is an alias. */ |
| 30570 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 30571 | choke me |
| 30572 | #endif |
| 30573 | |
| 30574 | int |
| 30575 | main () |
| 30576 | { |
| 30577 | return $ac_func (); |
| 30578 | ; |
| 30579 | return 0; |
| 30580 | } |
| 30581 | _ACEOF |
| 30582 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 30583 | if { (ac_try="$ac_link" |
| 30584 | case "(($ac_try" in |
| 30585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30586 | *) ac_try_echo=$ac_try;; |
| 30587 | esac |
| 30588 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 30589 | $as_echo "$ac_try_echo") >&5 |
| 30590 | (eval "$ac_link") 2>conftest.er1 |
| 30591 | ac_status=$? |
| 30592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30593 | rm -f conftest.er1 |
| 30594 | cat conftest.err >&5 |
| 30595 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30596 | (exit $ac_status); } && { |
| 30597 | test -z "$ac_c_werror_flag" || |
| 30598 | test ! -s conftest.err |
| 30599 | } && test -s conftest$ac_exeext && { |
| 30600 | test "$cross_compiling" = yes || |
| 30601 | $as_test_x conftest$ac_exeext |
| 30602 | }; then |
| 30603 | eval "$as_ac_var=yes" |
| 30604 | else |
| 30605 | $as_echo "$as_me: failed program was:" >&5 |
| 30606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30607 | |
| 30608 | eval "$as_ac_var=no" |
| 30609 | fi |
| 30610 | |
| 30611 | rm -rf conftest.dSYM |
| 30612 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 30613 | conftest$ac_exeext conftest.$ac_ext |
| 30614 | fi |
| 30615 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 30616 | $as_echo "$as_val"'` |
| 30617 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30618 | $as_echo "$ac_res" >&6; } |
| 30619 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 30620 | $as_echo "$as_val"'` |
| 30621 | if test "x$as_val" = x""yes; then |
| 30622 | cat >>confdefs.h <<_ACEOF |
| 30623 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30624 | _ACEOF |
| 30625 | |
| 30626 | fi |
| 30627 | done |
| 30628 | |
| 30629 | |
| 30630 | ######## |
| 30631 | # |
| 30632 | # Check for function prototypes |
| 30633 | # |
| 30634 | ######## |
| 30635 | |
| 30636 | { $as_echo "$as_me:$LINENO: checking whether pread is declared" >&5 |
| 30637 | $as_echo_n "checking whether pread is declared... " >&6; } |
| 30638 | if test "${ac_cv_have_decl_pread+set}" = set; then |
| 30639 | $as_echo_n "(cached) " >&6 |
| 30640 | else |
| 30641 | cat >conftest.$ac_ext <<_ACEOF |
| 30642 | /* confdefs.h. */ |
| 30643 | _ACEOF |
| 30644 | cat confdefs.h >>conftest.$ac_ext |
| 30645 | cat >>conftest.$ac_ext <<_ACEOF |
| 30646 | /* end confdefs.h. */ |
| 30647 | |
| 30648 | #include <unistd.h> |
| 30649 | |
| 30650 | int |
| 30651 | main () |
| 30652 | { |
| 30653 | #ifndef pread |
| 30654 | (void) pread; |
| 30655 | #endif |
| 30656 | |
| 30657 | ; |
| 30658 | return 0; |
| 30659 | } |
| 30660 | _ACEOF |
| 30661 | rm -f conftest.$ac_objext |
| 30662 | if { (ac_try="$ac_compile" |
| 30663 | case "(($ac_try" in |
| 30664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30665 | *) ac_try_echo=$ac_try;; |
| 30666 | esac |
| 30667 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 30668 | $as_echo "$ac_try_echo") >&5 |
| 30669 | (eval "$ac_compile") 2>conftest.er1 |
| 30670 | ac_status=$? |
| 30671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30672 | rm -f conftest.er1 |
| 30673 | cat conftest.err >&5 |
| 30674 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30675 | (exit $ac_status); } && { |
| 30676 | test -z "$ac_c_werror_flag" || |
| 30677 | test ! -s conftest.err |
| 30678 | } && test -s conftest.$ac_objext; then |
| 30679 | ac_cv_have_decl_pread=yes |
| 30680 | else |
| 30681 | $as_echo "$as_me: failed program was:" >&5 |
| 30682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30683 | |
| 30684 | ac_cv_have_decl_pread=no |
| 30685 | fi |
| 30686 | |
| 30687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30688 | fi |
| 30689 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pread" >&5 |
| 30690 | $as_echo "$ac_cv_have_decl_pread" >&6; } |
| 30691 | if test "x$ac_cv_have_decl_pread" = x""yes; then |
| 30692 | |
| 30693 | cat >>confdefs.h <<_ACEOF |
| 30694 | #define HAVE_DECL_PREAD 1 |
| 30695 | _ACEOF |
| 30696 | |
| 30697 | |
| 30698 | else |
| 30699 | cat >>confdefs.h <<_ACEOF |
| 30700 | #define HAVE_DECL_PREAD 0 |
| 30701 | _ACEOF |
| 30702 | |
| 30703 | |
| 30704 | fi |
| 30705 | { $as_echo "$as_me:$LINENO: checking whether pwrite is declared" >&5 |
| 30706 | $as_echo_n "checking whether pwrite is declared... " >&6; } |
| 30707 | if test "${ac_cv_have_decl_pwrite+set}" = set; then |
| 30708 | $as_echo_n "(cached) " >&6 |
| 30709 | else |
| 30710 | cat >conftest.$ac_ext <<_ACEOF |
| 30711 | /* confdefs.h. */ |
| 30712 | _ACEOF |
| 30713 | cat confdefs.h >>conftest.$ac_ext |
| 30714 | cat >>conftest.$ac_ext <<_ACEOF |
| 30715 | /* end confdefs.h. */ |
| 30716 | |
| 30717 | #include <unistd.h> |
| 30718 | |
| 30719 | int |
| 30720 | main () |
| 30721 | { |
| 30722 | #ifndef pwrite |
| 30723 | (void) pwrite; |
| 30724 | #endif |
| 30725 | |
| 30726 | ; |
| 30727 | return 0; |
| 30728 | } |
| 30729 | _ACEOF |
| 30730 | rm -f conftest.$ac_objext |
| 30731 | if { (ac_try="$ac_compile" |
| 30732 | case "(($ac_try" in |
| 30733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30734 | *) ac_try_echo=$ac_try;; |
| 30735 | esac |
| 30736 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 30737 | $as_echo "$ac_try_echo") >&5 |
| 30738 | (eval "$ac_compile") 2>conftest.er1 |
| 30739 | ac_status=$? |
| 30740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30741 | rm -f conftest.er1 |
| 30742 | cat conftest.err >&5 |
| 30743 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30744 | (exit $ac_status); } && { |
| 30745 | test -z "$ac_c_werror_flag" || |
| 30746 | test ! -s conftest.err |
| 30747 | } && test -s conftest.$ac_objext; then |
| 30748 | ac_cv_have_decl_pwrite=yes |
| 30749 | else |
| 30750 | $as_echo "$as_me: failed program was:" >&5 |
| 30751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30752 | |
| 30753 | ac_cv_have_decl_pwrite=no |
| 30754 | fi |
| 30755 | |
| 30756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30757 | fi |
| 30758 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pwrite" >&5 |
| 30759 | $as_echo "$ac_cv_have_decl_pwrite" >&6; } |
| 30760 | if test "x$ac_cv_have_decl_pwrite" = x""yes; then |
| 30761 | |
| 30762 | cat >>confdefs.h <<_ACEOF |
| 30763 | #define HAVE_DECL_PWRITE 1 |
| 30764 | _ACEOF |
| 30765 | |
| 30766 | |
| 30767 | else |
| 30768 | cat >>confdefs.h <<_ACEOF |
| 30769 | #define HAVE_DECL_PWRITE 0 |
| 30770 | _ACEOF |
| 30771 | |
| 30772 | |
| 30773 | fi |
| 30774 | |
| 30775 | |
| 30776 | |
| 30777 | { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5 |
| 30778 | $as_echo_n "checking whether strlcpy is declared... " >&6; } |
| 30779 | if test "${ac_cv_have_decl_strlcpy+set}" = set; then |
| 30780 | $as_echo_n "(cached) " >&6 |
| 30781 | else |
| 30782 | cat >conftest.$ac_ext <<_ACEOF |
| 30783 | /* confdefs.h. */ |
| 30784 | _ACEOF |
| 30785 | cat confdefs.h >>conftest.$ac_ext |
| 30786 | cat >>conftest.$ac_ext <<_ACEOF |
| 30787 | /* end confdefs.h. */ |
| 30788 | |
| 30789 | #include <strings.h> |
| 30790 | |
| 30791 | int |
| 30792 | main () |
| 30793 | { |
| 30794 | #ifndef strlcpy |
| 30795 | (void) strlcpy; |
| 30796 | #endif |
| 30797 | |
| 30798 | ; |
| 30799 | return 0; |
| 30800 | } |
| 30801 | _ACEOF |
| 30802 | rm -f conftest.$ac_objext |
| 30803 | if { (ac_try="$ac_compile" |
| 30804 | case "(($ac_try" in |
| 30805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30806 | *) ac_try_echo=$ac_try;; |
| 30807 | esac |
| 30808 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 30809 | $as_echo "$ac_try_echo") >&5 |
| 30810 | (eval "$ac_compile") 2>conftest.er1 |
| 30811 | ac_status=$? |
| 30812 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30813 | rm -f conftest.er1 |
| 30814 | cat conftest.err >&5 |
| 30815 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30816 | (exit $ac_status); } && { |
| 30817 | test -z "$ac_c_werror_flag" || |
| 30818 | test ! -s conftest.err |
| 30819 | } && test -s conftest.$ac_objext; then |
| 30820 | ac_cv_have_decl_strlcpy=yes |
| 30821 | else |
| 30822 | $as_echo "$as_me: failed program was:" >&5 |
| 30823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30824 | |
| 30825 | ac_cv_have_decl_strlcpy=no |
| 30826 | fi |
| 30827 | |
| 30828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30829 | fi |
| 30830 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5 |
| 30831 | $as_echo "$ac_cv_have_decl_strlcpy" >&6; } |
| 30832 | if test "x$ac_cv_have_decl_strlcpy" = x""yes; then |
| 30833 | |
| 30834 | cat >>confdefs.h <<_ACEOF |
| 30835 | #define HAVE_DECL_STRLCPY 1 |
| 30836 | _ACEOF |
| 30837 | |
| 30838 | |
| 30839 | else |
| 30840 | cat >>confdefs.h <<_ACEOF |
| 30841 | #define HAVE_DECL_STRLCPY 0 |
| 30842 | _ACEOF |
| 30843 | |
| 30844 | |
| 30845 | fi |
| 30846 | |
| 30847 | |
| 30848 | |
| 30849 | { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 |
| 30850 | $as_echo_n "checking whether vsnprintf is declared... " >&6; } |
| 30851 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then |
| 30852 | $as_echo_n "(cached) " >&6 |
| 30853 | else |
| 30854 | cat >conftest.$ac_ext <<_ACEOF |
| 30855 | /* confdefs.h. */ |
| 30856 | _ACEOF |
| 30857 | cat confdefs.h >>conftest.$ac_ext |
| 30858 | cat >>conftest.$ac_ext <<_ACEOF |
| 30859 | /* end confdefs.h. */ |
| 30860 | |
| 30861 | #include <stdio.h> |
| 30862 | #include <stdarg.h> |
| 30863 | |
| 30864 | int |
| 30865 | main () |
| 30866 | { |
| 30867 | #ifndef vsnprintf |
| 30868 | (void) vsnprintf; |
| 30869 | #endif |
| 30870 | |
| 30871 | ; |
| 30872 | return 0; |
| 30873 | } |
| 30874 | _ACEOF |
| 30875 | rm -f conftest.$ac_objext |
| 30876 | if { (ac_try="$ac_compile" |
| 30877 | case "(($ac_try" in |
| 30878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30879 | *) ac_try_echo=$ac_try;; |
| 30880 | esac |
| 30881 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 30882 | $as_echo "$ac_try_echo") >&5 |
| 30883 | (eval "$ac_compile") 2>conftest.er1 |
| 30884 | ac_status=$? |
| 30885 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30886 | rm -f conftest.er1 |
| 30887 | cat conftest.err >&5 |
| 30888 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30889 | (exit $ac_status); } && { |
| 30890 | test -z "$ac_c_werror_flag" || |
| 30891 | test ! -s conftest.err |
| 30892 | } && test -s conftest.$ac_objext; then |
| 30893 | ac_cv_have_decl_vsnprintf=yes |
| 30894 | else |
| 30895 | $as_echo "$as_me: failed program was:" >&5 |
| 30896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30897 | |
| 30898 | ac_cv_have_decl_vsnprintf=no |
| 30899 | fi |
| 30900 | |
| 30901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30902 | fi |
| 30903 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 |
| 30904 | $as_echo "$ac_cv_have_decl_vsnprintf" >&6; } |
| 30905 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then |
| 30906 | |
| 30907 | cat >>confdefs.h <<_ACEOF |
| 30908 | #define HAVE_DECL_VSNPRINTF 1 |
| 30909 | _ACEOF |
| 30910 | |
| 30911 | |
| 30912 | else |
| 30913 | cat >>confdefs.h <<_ACEOF |
| 30914 | #define HAVE_DECL_VSNPRINTF 0 |
| 30915 | _ACEOF |
| 30916 | |
| 30917 | |
| 30918 | fi |
| 30919 | |
| 30920 | |
| 30921 | |
| 30922 | ######## |
| 30923 | # |
| 30924 | # C++ Support Tests (For Magick++) |
| 30925 | # |
| 30926 | ######## |
| 30927 | have_magick_plus_plus='no' |
| 30928 | if test "$with_magick_plus_plus" = 'yes'; then |
| 30929 | OLIBS="$LIBS" |
| 30930 | LIBS='' |
| 30931 | ac_ext=cpp |
| 30932 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30933 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30934 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30935 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30936 | |
| 30937 | |
| 30938 | # Full set of headers used... |
| 30939 | # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception |
| 30940 | # functional iomanip iosfwd iostream iterator list string strstream utility |
| 30941 | ac_ext=cpp |
| 30942 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30943 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30944 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30945 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30946 | |
| 30947 | ac_ext=cpp |
| 30948 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30949 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30950 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30951 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30952 | if test -z "$CXX"; then |
| 30953 | if test -n "$CCC"; then |
| 30954 | CXX=$CCC |
| 30955 | else |
| 30956 | if test -n "$ac_tool_prefix"; then |
| 30957 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 30958 | do |
| 30959 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 30960 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 30961 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 30962 | $as_echo_n "checking for $ac_word... " >&6; } |
| 30963 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 30964 | $as_echo_n "(cached) " >&6 |
| 30965 | else |
| 30966 | if test -n "$CXX"; then |
| 30967 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 30968 | else |
| 30969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30970 | for as_dir in $PATH |
| 30971 | do |
| 30972 | IFS=$as_save_IFS |
| 30973 | test -z "$as_dir" && as_dir=. |
| 30974 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 30975 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 30976 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 30977 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 30978 | break 2 |
| 30979 | fi |
| 30980 | done |
| 30981 | done |
| 30982 | IFS=$as_save_IFS |
| 30983 | |
| 30984 | fi |
| 30985 | fi |
| 30986 | CXX=$ac_cv_prog_CXX |
| 30987 | if test -n "$CXX"; then |
| 30988 | { $as_echo "$as_me:$LINENO: result: $CXX" >&5 |
| 30989 | $as_echo "$CXX" >&6; } |
| 30990 | else |
| 30991 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 30992 | $as_echo "no" >&6; } |
| 30993 | fi |
| 30994 | |
| 30995 | |
| 30996 | test -n "$CXX" && break |
| 30997 | done |
| 30998 | fi |
| 30999 | if test -z "$CXX"; then |
| 31000 | ac_ct_CXX=$CXX |
| 31001 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 31002 | do |
| 31003 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 31004 | set dummy $ac_prog; ac_word=$2 |
| 31005 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 31006 | $as_echo_n "checking for $ac_word... " >&6; } |
| 31007 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 31008 | $as_echo_n "(cached) " >&6 |
| 31009 | else |
| 31010 | if test -n "$ac_ct_CXX"; then |
| 31011 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 31012 | else |
| 31013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 31014 | for as_dir in $PATH |
| 31015 | do |
| 31016 | IFS=$as_save_IFS |
| 31017 | test -z "$as_dir" && as_dir=. |
| 31018 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 31019 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 31020 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 31021 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 31022 | break 2 |
| 31023 | fi |
| 31024 | done |
| 31025 | done |
| 31026 | IFS=$as_save_IFS |
| 31027 | |
| 31028 | fi |
| 31029 | fi |
| 31030 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 31031 | if test -n "$ac_ct_CXX"; then |
| 31032 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 31033 | $as_echo "$ac_ct_CXX" >&6; } |
| 31034 | else |
| 31035 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 31036 | $as_echo "no" >&6; } |
| 31037 | fi |
| 31038 | |
| 31039 | |
| 31040 | test -n "$ac_ct_CXX" && break |
| 31041 | done |
| 31042 | |
| 31043 | if test "x$ac_ct_CXX" = x; then |
| 31044 | CXX="g++" |
| 31045 | else |
| 31046 | case $cross_compiling:$ac_tool_warned in |
| 31047 | yes:) |
| 31048 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 31049 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 31050 | ac_tool_warned=yes ;; |
| 31051 | esac |
| 31052 | CXX=$ac_ct_CXX |
| 31053 | fi |
| 31054 | fi |
| 31055 | |
| 31056 | fi |
| 31057 | fi |
| 31058 | # Provide some information about the compiler. |
| 31059 | $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 31060 | set X $ac_compile |
| 31061 | ac_compiler=$2 |
| 31062 | { (ac_try="$ac_compiler --version >&5" |
| 31063 | case "(($ac_try" in |
| 31064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31065 | *) ac_try_echo=$ac_try;; |
| 31066 | esac |
| 31067 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 31068 | $as_echo "$ac_try_echo") >&5 |
| 31069 | (eval "$ac_compiler --version >&5") 2>&5 |
| 31070 | ac_status=$? |
| 31071 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31072 | (exit $ac_status); } |
| 31073 | { (ac_try="$ac_compiler -v >&5" |
| 31074 | case "(($ac_try" in |
| 31075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31076 | *) ac_try_echo=$ac_try;; |
| 31077 | esac |
| 31078 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 31079 | $as_echo "$ac_try_echo") >&5 |
| 31080 | (eval "$ac_compiler -v >&5") 2>&5 |
| 31081 | ac_status=$? |
| 31082 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31083 | (exit $ac_status); } |
| 31084 | { (ac_try="$ac_compiler -V >&5" |
| 31085 | case "(($ac_try" in |
| 31086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31087 | *) ac_try_echo=$ac_try;; |
| 31088 | esac |
| 31089 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 31090 | $as_echo "$ac_try_echo") >&5 |
| 31091 | (eval "$ac_compiler -V >&5") 2>&5 |
| 31092 | ac_status=$? |
| 31093 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31094 | (exit $ac_status); } |
| 31095 | |
| 31096 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 31097 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 31098 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 31099 | $as_echo_n "(cached) " >&6 |
| 31100 | else |
| 31101 | cat >conftest.$ac_ext <<_ACEOF |
| 31102 | /* confdefs.h. */ |
| 31103 | _ACEOF |
| 31104 | cat confdefs.h >>conftest.$ac_ext |
| 31105 | cat >>conftest.$ac_ext <<_ACEOF |
| 31106 | /* end confdefs.h. */ |
| 31107 | |
| 31108 | int |
| 31109 | main () |
| 31110 | { |
| 31111 | #ifndef __GNUC__ |
| 31112 | choke me |
| 31113 | #endif |
| 31114 | |
| 31115 | ; |
| 31116 | return 0; |
| 31117 | } |
| 31118 | _ACEOF |
| 31119 | rm -f conftest.$ac_objext |
| 31120 | if { (ac_try="$ac_compile" |
| 31121 | case "(($ac_try" in |
| 31122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31123 | *) ac_try_echo=$ac_try;; |
| 31124 | esac |
| 31125 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 31126 | $as_echo "$ac_try_echo") >&5 |
| 31127 | (eval "$ac_compile") 2>conftest.er1 |
| 31128 | ac_status=$? |
| 31129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31130 | rm -f conftest.er1 |
| 31131 | cat conftest.err >&5 |
| 31132 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31133 | (exit $ac_status); } && { |
| 31134 | test -z "$ac_cxx_werror_flag" || |
| 31135 | test ! -s conftest.err |
| 31136 | } && test -s conftest.$ac_objext; then |
| 31137 | ac_compiler_gnu=yes |
| 31138 | else |
| 31139 | $as_echo "$as_me: failed program was:" >&5 |
| 31140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31141 | |
| 31142 | ac_compiler_gnu=no |
| 31143 | fi |
| 31144 | |
| 31145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 31146 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 31147 | |
| 31148 | fi |
| 31149 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 31150 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 31151 | if test $ac_compiler_gnu = yes; then |
| 31152 | GXX=yes |
| 31153 | else |
| 31154 | GXX= |
| 31155 | fi |
| 31156 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 31157 | ac_save_CXXFLAGS=$CXXFLAGS |
| 31158 | { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 31159 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 31160 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 31161 | $as_echo_n "(cached) " >&6 |
| 31162 | else |
| 31163 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 31164 | ac_cxx_werror_flag=yes |
| 31165 | ac_cv_prog_cxx_g=no |
| 31166 | CXXFLAGS="-g" |
| 31167 | cat >conftest.$ac_ext <<_ACEOF |
| 31168 | /* confdefs.h. */ |
| 31169 | _ACEOF |
| 31170 | cat confdefs.h >>conftest.$ac_ext |
| 31171 | cat >>conftest.$ac_ext <<_ACEOF |
| 31172 | /* end confdefs.h. */ |
| 31173 | |
| 31174 | int |
| 31175 | main () |
| 31176 | { |
| 31177 | |
| 31178 | ; |
| 31179 | return 0; |
| 31180 | } |
| 31181 | _ACEOF |
| 31182 | rm -f conftest.$ac_objext |
| 31183 | if { (ac_try="$ac_compile" |
| 31184 | case "(($ac_try" in |
| 31185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31186 | *) ac_try_echo=$ac_try;; |
| 31187 | esac |
| 31188 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 31189 | $as_echo "$ac_try_echo") >&5 |
| 31190 | (eval "$ac_compile") 2>conftest.er1 |
| 31191 | ac_status=$? |
| 31192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31193 | rm -f conftest.er1 |
| 31194 | cat conftest.err >&5 |
| 31195 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31196 | (exit $ac_status); } && { |
| 31197 | test -z "$ac_cxx_werror_flag" || |
| 31198 | test ! -s conftest.err |
| 31199 | } && test -s conftest.$ac_objext; then |
| 31200 | ac_cv_prog_cxx_g=yes |
| 31201 | else |
| 31202 | $as_echo "$as_me: failed program was:" >&5 |
| 31203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31204 | |
| 31205 | CXXFLAGS="" |
| 31206 | cat >conftest.$ac_ext <<_ACEOF |
| 31207 | /* confdefs.h. */ |
| 31208 | _ACEOF |
| 31209 | cat confdefs.h >>conftest.$ac_ext |
| 31210 | cat >>conftest.$ac_ext <<_ACEOF |
| 31211 | /* end confdefs.h. */ |
| 31212 | |
| 31213 | int |
| 31214 | main () |
| 31215 | { |
| 31216 | |
| 31217 | ; |
| 31218 | return 0; |
| 31219 | } |
| 31220 | _ACEOF |
| 31221 | rm -f conftest.$ac_objext |
| 31222 | if { (ac_try="$ac_compile" |
| 31223 | case "(($ac_try" in |
| 31224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31225 | *) ac_try_echo=$ac_try;; |
| 31226 | esac |
| 31227 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 31228 | $as_echo "$ac_try_echo") >&5 |
| 31229 | (eval "$ac_compile") 2>conftest.er1 |
| 31230 | ac_status=$? |
| 31231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31232 | rm -f conftest.er1 |
| 31233 | cat conftest.err >&5 |
| 31234 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31235 | (exit $ac_status); } && { |
| 31236 | test -z "$ac_cxx_werror_flag" || |
| 31237 | test ! -s conftest.err |
| 31238 | } && test -s conftest.$ac_objext; then |
| 31239 | : |
| 31240 | else |
| 31241 | $as_echo "$as_me: failed program was:" >&5 |
| 31242 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31243 | |
| 31244 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 31245 | CXXFLAGS="-g" |
| 31246 | cat >conftest.$ac_ext <<_ACEOF |
| 31247 | /* confdefs.h. */ |
| 31248 | _ACEOF |
| 31249 | cat confdefs.h >>conftest.$ac_ext |
| 31250 | cat >>conftest.$ac_ext <<_ACEOF |
| 31251 | /* end confdefs.h. */ |
| 31252 | |
| 31253 | int |
| 31254 | main () |
| 31255 | { |
| 31256 | |
| 31257 | ; |
| 31258 | return 0; |
| 31259 | } |
| 31260 | _ACEOF |
| 31261 | rm -f conftest.$ac_objext |
| 31262 | if { (ac_try="$ac_compile" |
| 31263 | case "(($ac_try" in |
| 31264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31265 | *) ac_try_echo=$ac_try;; |
| 31266 | esac |
| 31267 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 31268 | $as_echo "$ac_try_echo") >&5 |
| 31269 | (eval "$ac_compile") 2>conftest.er1 |
| 31270 | ac_status=$? |
| 31271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31272 | rm -f conftest.er1 |
| 31273 | cat conftest.err >&5 |
| 31274 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31275 | (exit $ac_status); } && { |
| 31276 | test -z "$ac_cxx_werror_flag" || |
| 31277 | test ! -s conftest.err |
| 31278 | } && test -s conftest.$ac_objext; then |
| 31279 | ac_cv_prog_cxx_g=yes |
| 31280 | else |
| 31281 | $as_echo "$as_me: failed program was:" >&5 |
| 31282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31283 | |
| 31284 | |
| 31285 | fi |
| 31286 | |
| 31287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 31288 | fi |
| 31289 | |
| 31290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 31291 | fi |
| 31292 | |
| 31293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 31294 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 31295 | fi |
| 31296 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 31297 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 31298 | if test "$ac_test_CXXFLAGS" = set; then |
| 31299 | CXXFLAGS=$ac_save_CXXFLAGS |
| 31300 | elif test $ac_cv_prog_cxx_g = yes; then |
| 31301 | if test "$GXX" = yes; then |
| 31302 | CXXFLAGS="-g -O2" |
| 31303 | else |
| 31304 | CXXFLAGS="-g" |
| 31305 | fi |
| 31306 | else |
| 31307 | if test "$GXX" = yes; then |
| 31308 | CXXFLAGS="-O2" |
| 31309 | else |
| 31310 | CXXFLAGS= |
| 31311 | fi |
| 31312 | fi |
| 31313 | ac_ext=cpp |
| 31314 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31315 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31316 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31317 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31318 | |
| 31319 | depcc="$CXX" am_compiler_list= |
| 31320 | |
| 31321 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 31322 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 31323 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 31324 | $as_echo_n "(cached) " >&6 |
| 31325 | else |
| 31326 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 31327 | # We make a subdir and do the tests there. Otherwise we can end up |
| 31328 | # making bogus files that we don't know about and never remove. For |
| 31329 | # instance it was reported that on HP-UX the gcc test will end up |
| 31330 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 31331 | # in D'. |
| 31332 | mkdir conftest.dir |
| 31333 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 31334 | # using a relative directory. |
| 31335 | cp "$am_depcomp" conftest.dir |
| 31336 | cd conftest.dir |
| 31337 | # We will build objects and dependencies in a subdirectory because |
| 31338 | # it helps to detect inapplicable dependency modes. For instance |
| 31339 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 31340 | # side effect of compilation, but ICC will put the dependencies in |
| 31341 | # the current directory while Tru64 will put them in the object |
| 31342 | # directory. |
| 31343 | mkdir sub |
| 31344 | |
| 31345 | am_cv_CXX_dependencies_compiler_type=none |
| 31346 | if test "$am_compiler_list" = ""; then |
| 31347 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 31348 | fi |
| 31349 | am__universal=false |
| 31350 | case " $depcc " in #( |
| 31351 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 31352 | esac |
| 31353 | |
| 31354 | for depmode in $am_compiler_list; do |
| 31355 | # Setup a source with many dependencies, because some compilers |
| 31356 | # like to wrap large dependency lists on column 80 (with \), and |
| 31357 | # we should not choose a depcomp mode which is confused by this. |
| 31358 | # |
| 31359 | # We need to recreate these files for each test, as the compiler may |
| 31360 | # overwrite some of them when testing with obscure command lines. |
| 31361 | # This happens at least with the AIX C compiler. |
| 31362 | : > sub/conftest.c |
| 31363 | for i in 1 2 3 4 5 6; do |
| 31364 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 31365 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 31366 | # Solaris 8's {/usr,}/bin/sh. |
| 31367 | touch sub/conftst$i.h |
| 31368 | done |
| 31369 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 31370 | |
| 31371 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 31372 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 31373 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 31374 | # versions had trouble with output in subdirs |
| 31375 | am__obj=sub/conftest.${OBJEXT-o} |
| 31376 | am__minus_obj="-o $am__obj" |
| 31377 | case $depmode in |
| 31378 | gcc) |
| 31379 | # This depmode causes a compiler race in universal mode. |
| 31380 | test "$am__universal" = false || continue |
| 31381 | ;; |
| 31382 | nosideeffect) |
| 31383 | # after this tag, mechanisms are not by side-effect, so they'll |
| 31384 | # only be used when explicitly requested |
| 31385 | if test "x$enable_dependency_tracking" = xyes; then |
| 31386 | continue |
| 31387 | else |
| 31388 | break |
| 31389 | fi |
| 31390 | ;; |
| 31391 | msvisualcpp | msvcmsys) |
| 31392 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 31393 | # not run yet. These depmodes are late enough in the game, and |
| 31394 | # so weak that their functioning should not be impacted. |
| 31395 | am__obj=conftest.${OBJEXT-o} |
| 31396 | am__minus_obj= |
| 31397 | ;; |
| 31398 | none) break ;; |
| 31399 | esac |
| 31400 | if depmode=$depmode \ |
| 31401 | source=sub/conftest.c object=$am__obj \ |
| 31402 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 31403 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 31404 | >/dev/null 2>conftest.err && |
| 31405 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 31406 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 31407 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 31408 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 31409 | # icc doesn't choke on unknown options, it will just issue warnings |
| 31410 | # or remarks (even with -Werror). So we grep stderr for any message |
| 31411 | # that says an option was ignored or not supported. |
| 31412 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 31413 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 31414 | # The diagnosis changed in icc 8.0: |
| 31415 | # icc: Command line remark: option '-MP' not supported |
| 31416 | if (grep 'ignoring option' conftest.err || |
| 31417 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 31418 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 31419 | break |
| 31420 | fi |
| 31421 | fi |
| 31422 | done |
| 31423 | |
| 31424 | cd .. |
| 31425 | rm -rf conftest.dir |
| 31426 | else |
| 31427 | am_cv_CXX_dependencies_compiler_type=none |
| 31428 | fi |
| 31429 | |
| 31430 | fi |
| 31431 | { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 31432 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 31433 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 31434 | |
| 31435 | if |
| 31436 | test "x$enable_dependency_tracking" != xno \ |
| 31437 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 31438 | am__fastdepCXX_TRUE= |
| 31439 | am__fastdepCXX_FALSE='#' |
| 31440 | else |
| 31441 | am__fastdepCXX_TRUE='#' |
| 31442 | am__fastdepCXX_FALSE= |
| 31443 | fi |
| 31444 | |
| 31445 | |
| 31446 | { $as_echo "$as_me:$LINENO: checking whether the compiler recognizes bool as a built-in type" >&5 |
| 31447 | $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; } |
| 31448 | if test "${ac_cv_cxx_have_bool+set}" = set; then |
| 31449 | $as_echo_n "(cached) " >&6 |
| 31450 | else |
| 31451 | |
| 31452 | ac_ext=cpp |
| 31453 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31454 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31455 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31456 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31457 | |
| 31458 | cat >conftest.$ac_ext <<_ACEOF |
| 31459 | /* confdefs.h. */ |
| 31460 | _ACEOF |
| 31461 | cat confdefs.h >>conftest.$ac_ext |
| 31462 | cat >>conftest.$ac_ext <<_ACEOF |
| 31463 | /* end confdefs.h. */ |
| 31464 | |
| 31465 | int f(int x){return 1;} |
| 31466 | int f(char x){return 1;} |
| 31467 | int f(bool x){return 1;} |
| 31468 | |
| 31469 | int |
| 31470 | main () |
| 31471 | { |
| 31472 | bool b = true; return f(b); |
| 31473 | ; |
| 31474 | return 0; |
| 31475 | } |
| 31476 | _ACEOF |
| 31477 | rm -f conftest.$ac_objext |
| 31478 | if { (ac_try="$ac_compile" |
| 31479 | case "(($ac_try" in |
| 31480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31481 | *) ac_try_echo=$ac_try;; |
| 31482 | esac |
| 31483 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 31484 | $as_echo "$ac_try_echo") >&5 |
| 31485 | (eval "$ac_compile") 2>conftest.er1 |
| 31486 | ac_status=$? |
| 31487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31488 | rm -f conftest.er1 |
| 31489 | cat conftest.err >&5 |
| 31490 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31491 | (exit $ac_status); } && { |
| 31492 | test -z "$ac_cxx_werror_flag" || |
| 31493 | test ! -s conftest.err |
| 31494 | } && test -s conftest.$ac_objext; then |
| 31495 | ac_cv_cxx_have_bool=yes |
| 31496 | else |
| 31497 | $as_echo "$as_me: failed program was:" >&5 |
| 31498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31499 | |
| 31500 | ac_cv_cxx_have_bool=no |
| 31501 | fi |
| 31502 | |
| 31503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 31504 | ac_ext=cpp |
| 31505 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31506 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31507 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31508 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31509 | |
| 31510 | |
| 31511 | fi |
| 31512 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bool" >&5 |
| 31513 | $as_echo "$ac_cv_cxx_have_bool" >&6; } |
| 31514 | if test "$ac_cv_cxx_have_bool" = yes; then |
| 31515 | |
| 31516 | cat >>confdefs.h <<\_ACEOF |
| 31517 | #define HAVE_BOOL /**/ |
| 31518 | _ACEOF |
| 31519 | |
| 31520 | fi |
| 31521 | |
| 31522 | { $as_echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 31523 | $as_echo_n "checking whether the compiler implements namespaces... " >&6; } |
| 31524 | if test "${ac_cv_cxx_have_namespaces+set}" = set; then |
| 31525 | $as_echo_n "(cached) " >&6 |
| 31526 | else |
| 31527 | |
| 31528 | ac_ext=cpp |
| 31529 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31530 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31531 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31532 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31533 | |
| 31534 | cat >conftest.$ac_ext <<_ACEOF |
| 31535 | /* confdefs.h. */ |
| 31536 | _ACEOF |
| 31537 | cat confdefs.h >>conftest.$ac_ext |
| 31538 | cat >>conftest.$ac_ext <<_ACEOF |
| 31539 | /* end confdefs.h. */ |
| 31540 | namespace Outer { namespace Inner { int i = 0; }} |
| 31541 | int |
| 31542 | main () |
| 31543 | { |
| 31544 | using namespace Outer::Inner; return i; |
| 31545 | ; |
| 31546 | return 0; |
| 31547 | } |
| 31548 | _ACEOF |
| 31549 | rm -f conftest.$ac_objext |
| 31550 | if { (ac_try="$ac_compile" |
| 31551 | case "(($ac_try" in |
| 31552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31553 | *) ac_try_echo=$ac_try;; |
| 31554 | esac |
| 31555 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 31556 | $as_echo "$ac_try_echo") >&5 |
| 31557 | (eval "$ac_compile") 2>conftest.er1 |
| 31558 | ac_status=$? |
| 31559 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31560 | rm -f conftest.er1 |
| 31561 | cat conftest.err >&5 |
| 31562 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31563 | (exit $ac_status); } && { |
| 31564 | test -z "$ac_cxx_werror_flag" || |
| 31565 | test ! -s conftest.err |
| 31566 | } && test -s conftest.$ac_objext; then |
| 31567 | ac_cv_cxx_have_namespaces=yes |
| 31568 | else |
| 31569 | $as_echo "$as_me: failed program was:" >&5 |
| 31570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31571 | |
| 31572 | ac_cv_cxx_have_namespaces=no |
| 31573 | fi |
| 31574 | |
| 31575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 31576 | ac_ext=cpp |
| 31577 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31578 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31579 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31580 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31581 | |
| 31582 | |
| 31583 | fi |
| 31584 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_namespaces" >&5 |
| 31585 | $as_echo "$ac_cv_cxx_have_namespaces" >&6; } |
| 31586 | if test "$ac_cv_cxx_have_namespaces" = yes; then |
| 31587 | |
| 31588 | cat >>confdefs.h <<\_ACEOF |
| 31589 | #define HAVE_NAMESPACES /**/ |
| 31590 | _ACEOF |
| 31591 | |
| 31592 | fi |
| 31593 | |
| 31594 | { $as_echo "$as_me:$LINENO: checking whether the compiler supports the std namespace" >&5 |
| 31595 | $as_echo_n "checking whether the compiler supports the std namespace... " >&6; } |
| 31596 | if test "${ac_cv_cxx_have_std_namespace+set}" = set; then |
| 31597 | $as_echo_n "(cached) " >&6 |
| 31598 | else |
| 31599 | |
| 31600 | ac_ext=cpp |
| 31601 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31602 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31603 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31604 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31605 | |
| 31606 | cat >conftest.$ac_ext <<_ACEOF |
| 31607 | /* confdefs.h. */ |
| 31608 | _ACEOF |
| 31609 | cat confdefs.h >>conftest.$ac_ext |
| 31610 | cat >>conftest.$ac_ext <<_ACEOF |
| 31611 | /* end confdefs.h. */ |
| 31612 | #include <iostream> |
| 31613 | std::istream& is = std::cin; |
| 31614 | |
| 31615 | int |
| 31616 | main () |
| 31617 | { |
| 31618 | return 0; |
| 31619 | ; |
| 31620 | return 0; |
| 31621 | } |
| 31622 | _ACEOF |
| 31623 | rm -f conftest.$ac_objext |
| 31624 | if { (ac_try="$ac_compile" |
| 31625 | case "(($ac_try" in |
| 31626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31627 | *) ac_try_echo=$ac_try;; |
| 31628 | esac |
| 31629 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 31630 | $as_echo "$ac_try_echo") >&5 |
| 31631 | (eval "$ac_compile") 2>conftest.er1 |
| 31632 | ac_status=$? |
| 31633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31634 | rm -f conftest.er1 |
| 31635 | cat conftest.err >&5 |
| 31636 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31637 | (exit $ac_status); } && { |
| 31638 | test -z "$ac_cxx_werror_flag" || |
| 31639 | test ! -s conftest.err |
| 31640 | } && test -s conftest.$ac_objext; then |
| 31641 | ac_cv_cxx_have_std_namespace=yes |
| 31642 | else |
| 31643 | $as_echo "$as_me: failed program was:" >&5 |
| 31644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31645 | |
| 31646 | ac_cv_cxx_have_std_namespace=no |
| 31647 | fi |
| 31648 | |
| 31649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 31650 | ac_ext=cpp |
| 31651 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31652 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31653 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31654 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31655 | |
| 31656 | |
| 31657 | fi |
| 31658 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_namespace" >&5 |
| 31659 | $as_echo "$ac_cv_cxx_have_std_namespace" >&6; } |
| 31660 | if test "$ac_cv_cxx_have_std_namespace" = yes; then |
| 31661 | |
| 31662 | cat >>confdefs.h <<\_ACEOF |
| 31663 | #define HAVE_STD_NAMESPACE /**/ |
| 31664 | _ACEOF |
| 31665 | |
| 31666 | fi |
| 31667 | |
| 31668 | { $as_echo "$as_me:$LINENO: checking whether the compiler supports ISO C++ standard library" >&5 |
| 31669 | $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; } |
| 31670 | if test "${ac_cv_cxx_have_std_libs+set}" = set; then |
| 31671 | $as_echo_n "(cached) " >&6 |
| 31672 | else |
| 31673 | |
| 31674 | |
| 31675 | ac_ext=cpp |
| 31676 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31677 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31678 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31679 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31680 | |
| 31681 | cat >conftest.$ac_ext <<_ACEOF |
| 31682 | /* confdefs.h. */ |
| 31683 | _ACEOF |
| 31684 | cat confdefs.h >>conftest.$ac_ext |
| 31685 | cat >>conftest.$ac_ext <<_ACEOF |
| 31686 | /* end confdefs.h. */ |
| 31687 | #include <iostream> |
| 31688 | #include <map> |
| 31689 | #include <iomanip> |
| 31690 | #include <cmath> |
| 31691 | #ifdef HAVE_NAMESPACES |
| 31692 | using namespace std; |
| 31693 | #endif |
| 31694 | int |
| 31695 | main () |
| 31696 | { |
| 31697 | return 0; |
| 31698 | ; |
| 31699 | return 0; |
| 31700 | } |
| 31701 | _ACEOF |
| 31702 | rm -f conftest.$ac_objext |
| 31703 | if { (ac_try="$ac_compile" |
| 31704 | case "(($ac_try" in |
| 31705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31706 | *) ac_try_echo=$ac_try;; |
| 31707 | esac |
| 31708 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 31709 | $as_echo "$ac_try_echo") >&5 |
| 31710 | (eval "$ac_compile") 2>conftest.er1 |
| 31711 | ac_status=$? |
| 31712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31713 | rm -f conftest.er1 |
| 31714 | cat conftest.err >&5 |
| 31715 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31716 | (exit $ac_status); } && { |
| 31717 | test -z "$ac_cxx_werror_flag" || |
| 31718 | test ! -s conftest.err |
| 31719 | } && test -s conftest.$ac_objext; then |
| 31720 | ac_cv_cxx_have_std_libs=yes |
| 31721 | else |
| 31722 | $as_echo "$as_me: failed program was:" >&5 |
| 31723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31724 | |
| 31725 | ac_cv_cxx_have_std_libs=no |
| 31726 | fi |
| 31727 | |
| 31728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 31729 | ac_ext=cpp |
| 31730 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31731 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31732 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31733 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31734 | |
| 31735 | |
| 31736 | fi |
| 31737 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_libs" >&5 |
| 31738 | $as_echo "$ac_cv_cxx_have_std_libs" >&6; } |
| 31739 | if test "$ac_cv_cxx_have_std_libs" = yes; then |
| 31740 | |
| 31741 | cat >>confdefs.h <<\_ACEOF |
| 31742 | #define HAVE_STD_LIBS /**/ |
| 31743 | _ACEOF |
| 31744 | |
| 31745 | fi |
| 31746 | |
| 31747 | { $as_echo "$as_me:$LINENO: checking whether the compiler implements L\"widestring\"" >&5 |
| 31748 | $as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; } |
| 31749 | if test "${ac_cv_cxx_have_lstring+set}" = set; then |
| 31750 | $as_echo_n "(cached) " >&6 |
| 31751 | else |
| 31752 | |
| 31753 | ac_ext=cpp |
| 31754 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31755 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31756 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31757 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31758 | |
| 31759 | cat >conftest.$ac_ext <<_ACEOF |
| 31760 | /* confdefs.h. */ |
| 31761 | _ACEOF |
| 31762 | cat confdefs.h >>conftest.$ac_ext |
| 31763 | cat >>conftest.$ac_ext <<_ACEOF |
| 31764 | /* end confdefs.h. */ |
| 31765 | const wchar_t* s=L"wide string"; |
| 31766 | _ACEOF |
| 31767 | rm -f conftest.$ac_objext |
| 31768 | if { (ac_try="$ac_compile" |
| 31769 | case "(($ac_try" in |
| 31770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31771 | *) ac_try_echo=$ac_try;; |
| 31772 | esac |
| 31773 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 31774 | $as_echo "$ac_try_echo") >&5 |
| 31775 | (eval "$ac_compile") 2>conftest.er1 |
| 31776 | ac_status=$? |
| 31777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31778 | rm -f conftest.er1 |
| 31779 | cat conftest.err >&5 |
| 31780 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31781 | (exit $ac_status); } && { |
| 31782 | test -z "$ac_cxx_werror_flag" || |
| 31783 | test ! -s conftest.err |
| 31784 | } && test -s conftest.$ac_objext; then |
| 31785 | ac_cv_cxx_have_lstring=yes |
| 31786 | else |
| 31787 | $as_echo "$as_me: failed program was:" >&5 |
| 31788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31789 | |
| 31790 | ac_cv_cxx_have_lstring=no |
| 31791 | fi |
| 31792 | |
| 31793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 31794 | ac_ext=cpp |
| 31795 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31796 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31797 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31798 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31799 | |
| 31800 | |
| 31801 | fi |
| 31802 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_lstring" >&5 |
| 31803 | $as_echo "$ac_cv_cxx_have_lstring" >&6; } |
| 31804 | if test "$ac_cv_cxx_have_lstring" = yes; then |
| 31805 | |
| 31806 | cat >>confdefs.h <<\_ACEOF |
| 31807 | #define HAVE_LSTRING /**/ |
| 31808 | _ACEOF |
| 31809 | |
| 31810 | fi |
| 31811 | |
| 31812 | |
| 31813 | OPENMP_CXXFLAGS= |
| 31814 | # Check whether --enable-openmp was given. |
| 31815 | if test "${enable_openmp+set}" = set; then |
| 31816 | enableval=$enable_openmp; |
| 31817 | fi |
| 31818 | |
| 31819 | if test "$enable_openmp" != no; then |
| 31820 | { $as_echo "$as_me:$LINENO: checking for $CC option to support OpenMP" >&5 |
| 31821 | $as_echo_n "checking for $CC option to support OpenMP... " >&6; } |
| 31822 | if test "${ac_cv_prog_cxx_openmp+set}" = set; then |
| 31823 | $as_echo_n "(cached) " >&6 |
| 31824 | else |
| 31825 | cat >conftest.$ac_ext <<_ACEOF |
| 31826 | |
| 31827 | #ifndef _OPENMP |
| 31828 | choke me |
| 31829 | #endif |
| 31830 | #include <omp.h> |
| 31831 | int main () { return omp_get_num_threads (); } |
| 31832 | |
| 31833 | _ACEOF |
| 31834 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 31835 | if { (ac_try="$ac_link" |
| 31836 | case "(($ac_try" in |
| 31837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31838 | *) ac_try_echo=$ac_try;; |
| 31839 | esac |
| 31840 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 31841 | $as_echo "$ac_try_echo") >&5 |
| 31842 | (eval "$ac_link") 2>conftest.er1 |
| 31843 | ac_status=$? |
| 31844 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31845 | rm -f conftest.er1 |
| 31846 | cat conftest.err >&5 |
| 31847 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31848 | (exit $ac_status); } && { |
| 31849 | test -z "$ac_cxx_werror_flag" || |
| 31850 | test ! -s conftest.err |
| 31851 | } && test -s conftest$ac_exeext && { |
| 31852 | test "$cross_compiling" = yes || |
| 31853 | $as_test_x conftest$ac_exeext |
| 31854 | }; then |
| 31855 | ac_cv_prog_cxx_openmp='none needed' |
| 31856 | else |
| 31857 | $as_echo "$as_me: failed program was:" >&5 |
| 31858 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31859 | |
| 31860 | ac_cv_prog_cxx_openmp='unsupported' |
| 31861 | for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do |
| 31862 | ac_save_CXXFLAGS=$CXXFLAGS |
| 31863 | CXXFLAGS="$CXXFLAGS $ac_option" |
| 31864 | cat >conftest.$ac_ext <<_ACEOF |
| 31865 | |
| 31866 | #ifndef _OPENMP |
| 31867 | choke me |
| 31868 | #endif |
| 31869 | #include <omp.h> |
| 31870 | int main () { return omp_get_num_threads (); } |
| 31871 | |
| 31872 | _ACEOF |
| 31873 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 31874 | if { (ac_try="$ac_link" |
| 31875 | case "(($ac_try" in |
| 31876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31877 | *) ac_try_echo=$ac_try;; |
| 31878 | esac |
| 31879 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 31880 | $as_echo "$ac_try_echo") >&5 |
| 31881 | (eval "$ac_link") 2>conftest.er1 |
| 31882 | ac_status=$? |
| 31883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31884 | rm -f conftest.er1 |
| 31885 | cat conftest.err >&5 |
| 31886 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31887 | (exit $ac_status); } && { |
| 31888 | test -z "$ac_cxx_werror_flag" || |
| 31889 | test ! -s conftest.err |
| 31890 | } && test -s conftest$ac_exeext && { |
| 31891 | test "$cross_compiling" = yes || |
| 31892 | $as_test_x conftest$ac_exeext |
| 31893 | }; then |
| 31894 | ac_cv_prog_cxx_openmp=$ac_option |
| 31895 | else |
| 31896 | $as_echo "$as_me: failed program was:" >&5 |
| 31897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31898 | |
| 31899 | |
| 31900 | fi |
| 31901 | |
| 31902 | rm -rf conftest.dSYM |
| 31903 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 31904 | conftest$ac_exeext conftest.$ac_ext |
| 31905 | CXXFLAGS=$ac_save_CXXFLAGS |
| 31906 | if test "$ac_cv_prog_cxx_openmp" != unsupported; then |
| 31907 | break |
| 31908 | fi |
| 31909 | done |
| 31910 | fi |
| 31911 | |
| 31912 | rm -rf conftest.dSYM |
| 31913 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 31914 | conftest$ac_exeext conftest.$ac_ext |
| 31915 | fi |
| 31916 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_openmp" >&5 |
| 31917 | $as_echo "$ac_cv_prog_cxx_openmp" >&6; } |
| 31918 | case $ac_cv_prog_cxx_openmp in #( |
| 31919 | "none needed" | unsupported) |
| 31920 | ;; #( |
| 31921 | *) |
| 31922 | OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;; |
| 31923 | esac |
| 31924 | fi |
| 31925 | |
| 31926 | |
| 31927 | ac_ext=c |
| 31928 | ac_cpp='$CPP $CPPFLAGS' |
| 31929 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31930 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31931 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31932 | |
| 31933 | |
| 31934 | { $as_echo "$as_me:$LINENO: checking whether C++ compiler is sufficient for Magick++" >&5 |
| 31935 | $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; } |
| 31936 | if \ |
| 31937 | test $ac_cv_cxx_have_bool = 'yes' && \ |
| 31938 | test $ac_cv_cxx_have_lstring = 'yes' && \ |
| 31939 | test $ac_cv_cxx_have_namespaces = 'yes' && \ |
| 31940 | test $ac_cv_cxx_have_std_libs = 'yes' && \ |
| 31941 | test $ac_cv_cxx_have_std_namespace = 'yes'; then |
| 31942 | have_magick_plus_plus='yes' |
| 31943 | else |
| 31944 | have_magick_plus_plus='no (failed tests)' |
| 31945 | fi |
| 31946 | { $as_echo "$as_me:$LINENO: result: $have_magick_plus_plus" >&5 |
| 31947 | $as_echo "$have_magick_plus_plus" >&6; } |
| 31948 | LIBS="$OLIBS" |
| 31949 | fi |
| 31950 | if test "$have_magick_plus_plus" = 'yes'; then |
| 31951 | WITH_MAGICK_PLUS_PLUS_TRUE= |
| 31952 | WITH_MAGICK_PLUS_PLUS_FALSE='#' |
| 31953 | else |
| 31954 | WITH_MAGICK_PLUS_PLUS_TRUE='#' |
| 31955 | WITH_MAGICK_PLUS_PLUS_FALSE= |
| 31956 | fi |
| 31957 | |
| 31958 | |
| 31959 | # Only check for delegate libraries in subdirectories if requested. |
| 31960 | if test "$enable_delegate_build" != 'no'; then |
| 31961 | # Check for delegate sub-directories and add -I & -L options as required. |
| 31962 | # This presumes that delegates are installed as detailed in the ImageMagick |
| 31963 | # README. If delegates are installed in a standard location where the |
| 31964 | # compiler will automatically find them then these options should not be |
| 31965 | # required. |
| 31966 | |
| 31967 | # |
| 31968 | # Most delegates have includes in the same directory as the library, but not all... |
| 31969 | # |
| 31970 | # Includes |
| 31971 | for dir in bzlib fftw fpx jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do |
| 31972 | if test -d "$builddir/$dir"; then |
| 31973 | CPPFLAGS="$CPPFLAGS -I$builddir/$dir" |
| 31974 | else |
| 31975 | if test -d "$srcdirfull/$dir"; then |
| 31976 | CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir" |
| 31977 | fi |
| 31978 | fi |
| 31979 | done |
| 31980 | |
| 31981 | # Libraries |
| 31982 | for dir in bzlib fftw fpx jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do |
| 31983 | if test -d "$builddir/$dir/.libs"; then |
| 31984 | LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs" |
| 31985 | else |
| 31986 | if test -d "$srcdirfull/$dir/.libs"; then |
| 31987 | LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs" |
| 31988 | fi |
| 31989 | fi |
| 31990 | if test -d "$builddir/$dir"; then |
| 31991 | LDFLAGS="$LDFLAGS -L$builddir/$dir" |
| 31992 | else |
| 31993 | if test -d "$srcdirfull/$dir"; then |
| 31994 | LDFLAGS="$LDFLAGS -L$srcdirfull/$dir" |
| 31995 | fi |
| 31996 | fi |
| 31997 | done |
| 31998 | fi |
| 31999 | |
| 32000 | # Assume that delegate headers reside under same directory as ImageMagick |
| 32001 | # installation prefix. |
| 32002 | MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS" |
| 32003 | |
| 32004 | # |
| 32005 | # Find the X11 RGB database |
| 32006 | # |
| 32007 | { $as_echo "$as_me:$LINENO: checking for X11 configure files" >&5 |
| 32008 | $as_echo_n "checking for X11 configure files... " >&6; } |
| 32009 | if test "${im_cv_x_configure+set}" = set; then |
| 32010 | $as_echo_n "(cached) " >&6 |
| 32011 | else |
| 32012 | # Look for the header file in a standard set of common directories. |
| 32013 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 32014 | for ac_dir in \ |
| 32015 | /lib/usr/lib/X11 \ |
| 32016 | /usr/X11/lib \ |
| 32017 | /usr/X11R4/lib \ |
| 32018 | /usr/X11R5/lib \ |
| 32019 | /usr/X11R6/lib \ |
| 32020 | /usr/X11R7/lib \ |
| 32021 | /usr/X386/lib \ |
| 32022 | /usr/XFree86/lib/X11 \ |
| 32023 | /usr/athena/lib \ |
| 32024 | /usr/lib \ |
| 32025 | /usr/lib/X11 \ |
| 32026 | /usr/lib/X11R4 \ |
| 32027 | /usr/lib/X11R5 \ |
| 32028 | /usr/lib/X11R6 \ |
| 32029 | /usr/lib/X11R7 \ |
| 32030 | /usr/local/X11/lib \ |
| 32031 | /usr/local/X11R4/lib \ |
| 32032 | /usr/local/X11R5/lib \ |
| 32033 | /usr/local/X11R6/lib \ |
| 32034 | /usr/local/lib \ |
| 32035 | /usr/local/lib/X11 \ |
| 32036 | /usr/local/lib/X11R4 \ |
| 32037 | /usr/local/lib/X11R5 \ |
| 32038 | /usr/local/lib/X11R6 \ |
| 32039 | /usr/local/lib/X11R7 \ |
| 32040 | /usr/local/x11r5/lib \ |
| 32041 | /usr/lpp/Xamples/lib \ |
| 32042 | /usr/openwin/lib \ |
| 32043 | /usr/openwin/share/lib \ |
| 32044 | /usr/unsupported/lib \ |
| 32045 | /usr/x386/lib \ |
| 32046 | ; do |
| 32047 | if test -f "$ac_dir/X11/rgb.txt"; then |
| 32048 | im_cv_x_configure="$ac_dir/X11/" |
| 32049 | break |
| 32050 | elif test -f "$ac_dir/rgb.txt"; then |
| 32051 | im_cv_x_configure="$ac_dir/" |
| 32052 | break |
| 32053 | fi |
| 32054 | |
| 32055 | done |
| 32056 | fi |
| 32057 | { $as_echo "$as_me:$LINENO: result: $im_cv_x_configure" >&5 |
| 32058 | $as_echo "$im_cv_x_configure" >&6; } |
| 32059 | X11_CONFIGURE_PATH="$im_cv_x_configure" |
| 32060 | case "${build_os}" in |
| 32061 | mingw* ) |
| 32062 | X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1` |
| 32063 | ;; |
| 32064 | esac |
| 32065 | |
| 32066 | cat >>confdefs.h <<_ACEOF |
| 32067 | #define X11_CONFIGURE_PATH "$X11ConfigurePath" |
| 32068 | _ACEOF |
| 32069 | |
| 32070 | |
| 32071 | # |
| 32072 | # Find OpenMP library |
| 32073 | # |
| 32074 | GOMP_LIBS='' |
| 32075 | if test "$enable_openmp" != 'no'; then |
| 32076 | if test "${GCC}" = "yes"; then |
| 32077 | { $as_echo "$as_me:$LINENO: checking for GOMP_parallel_start in -lgomp" >&5 |
| 32078 | $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; } |
| 32079 | if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then |
| 32080 | $as_echo_n "(cached) " >&6 |
| 32081 | else |
| 32082 | ac_check_lib_save_LIBS=$LIBS |
| 32083 | LIBS="-lgomp $LIBS" |
| 32084 | cat >conftest.$ac_ext <<_ACEOF |
| 32085 | /* confdefs.h. */ |
| 32086 | _ACEOF |
| 32087 | cat confdefs.h >>conftest.$ac_ext |
| 32088 | cat >>conftest.$ac_ext <<_ACEOF |
| 32089 | /* end confdefs.h. */ |
| 32090 | |
| 32091 | /* Override any GCC internal prototype to avoid an error. |
| 32092 | Use char because int might match the return type of a GCC |
| 32093 | builtin and then its argument prototype would still apply. */ |
| 32094 | #ifdef __cplusplus |
| 32095 | extern "C" |
| 32096 | #endif |
| 32097 | char GOMP_parallel_start (); |
| 32098 | int |
| 32099 | main () |
| 32100 | { |
| 32101 | return GOMP_parallel_start (); |
| 32102 | ; |
| 32103 | return 0; |
| 32104 | } |
| 32105 | _ACEOF |
| 32106 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 32107 | if { (ac_try="$ac_link" |
| 32108 | case "(($ac_try" in |
| 32109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32110 | *) ac_try_echo=$ac_try;; |
| 32111 | esac |
| 32112 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 32113 | $as_echo "$ac_try_echo") >&5 |
| 32114 | (eval "$ac_link") 2>conftest.er1 |
| 32115 | ac_status=$? |
| 32116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32117 | rm -f conftest.er1 |
| 32118 | cat conftest.err >&5 |
| 32119 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32120 | (exit $ac_status); } && { |
| 32121 | test -z "$ac_c_werror_flag" || |
| 32122 | test ! -s conftest.err |
| 32123 | } && test -s conftest$ac_exeext && { |
| 32124 | test "$cross_compiling" = yes || |
| 32125 | $as_test_x conftest$ac_exeext |
| 32126 | }; then |
| 32127 | ac_cv_lib_gomp_GOMP_parallel_start=yes |
| 32128 | else |
| 32129 | $as_echo "$as_me: failed program was:" >&5 |
| 32130 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32131 | |
| 32132 | ac_cv_lib_gomp_GOMP_parallel_start=no |
| 32133 | fi |
| 32134 | |
| 32135 | rm -rf conftest.dSYM |
| 32136 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 32137 | conftest$ac_exeext conftest.$ac_ext |
| 32138 | LIBS=$ac_check_lib_save_LIBS |
| 32139 | fi |
| 32140 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5 |
| 32141 | $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; } |
| 32142 | if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then |
| 32143 | GOMP_LIBS="-lgomp" |
| 32144 | fi |
| 32145 | # gcc |
| 32146 | else |
| 32147 | { $as_echo "$as_me:$LINENO: checking for sunw_mp_register_warn in -lmtsk" >&5 |
| 32148 | $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; } |
| 32149 | if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then |
| 32150 | $as_echo_n "(cached) " >&6 |
| 32151 | else |
| 32152 | ac_check_lib_save_LIBS=$LIBS |
| 32153 | LIBS="-lmtsk $LIBS" |
| 32154 | cat >conftest.$ac_ext <<_ACEOF |
| 32155 | /* confdefs.h. */ |
| 32156 | _ACEOF |
| 32157 | cat confdefs.h >>conftest.$ac_ext |
| 32158 | cat >>conftest.$ac_ext <<_ACEOF |
| 32159 | /* end confdefs.h. */ |
| 32160 | |
| 32161 | /* Override any GCC internal prototype to avoid an error. |
| 32162 | Use char because int might match the return type of a GCC |
| 32163 | builtin and then its argument prototype would still apply. */ |
| 32164 | #ifdef __cplusplus |
| 32165 | extern "C" |
| 32166 | #endif |
| 32167 | char sunw_mp_register_warn (); |
| 32168 | int |
| 32169 | main () |
| 32170 | { |
| 32171 | return sunw_mp_register_warn (); |
| 32172 | ; |
| 32173 | return 0; |
| 32174 | } |
| 32175 | _ACEOF |
| 32176 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 32177 | if { (ac_try="$ac_link" |
| 32178 | case "(($ac_try" in |
| 32179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32180 | *) ac_try_echo=$ac_try;; |
| 32181 | esac |
| 32182 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 32183 | $as_echo "$ac_try_echo") >&5 |
| 32184 | (eval "$ac_link") 2>conftest.er1 |
| 32185 | ac_status=$? |
| 32186 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32187 | rm -f conftest.er1 |
| 32188 | cat conftest.err >&5 |
| 32189 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32190 | (exit $ac_status); } && { |
| 32191 | test -z "$ac_c_werror_flag" || |
| 32192 | test ! -s conftest.err |
| 32193 | } && test -s conftest$ac_exeext && { |
| 32194 | test "$cross_compiling" = yes || |
| 32195 | $as_test_x conftest$ac_exeext |
| 32196 | }; then |
| 32197 | ac_cv_lib_mtsk_sunw_mp_register_warn=yes |
| 32198 | else |
| 32199 | $as_echo "$as_me: failed program was:" >&5 |
| 32200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32201 | |
| 32202 | ac_cv_lib_mtsk_sunw_mp_register_warn=no |
| 32203 | fi |
| 32204 | |
| 32205 | rm -rf conftest.dSYM |
| 32206 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 32207 | conftest$ac_exeext conftest.$ac_ext |
| 32208 | LIBS=$ac_check_lib_save_LIBS |
| 32209 | fi |
| 32210 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5 |
| 32211 | $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; } |
| 32212 | if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then |
| 32213 | GOMP_LIBS="-lmtsk" |
| 32214 | fi |
| 32215 | # solaris cc |
| 32216 | { $as_echo "$as_me:$LINENO: checking for _xlsmpFlush in -lxlsmp" >&5 |
| 32217 | $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; } |
| 32218 | if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then |
| 32219 | $as_echo_n "(cached) " >&6 |
| 32220 | else |
| 32221 | ac_check_lib_save_LIBS=$LIBS |
| 32222 | LIBS="-lxlsmp $LIBS" |
| 32223 | cat >conftest.$ac_ext <<_ACEOF |
| 32224 | /* confdefs.h. */ |
| 32225 | _ACEOF |
| 32226 | cat confdefs.h >>conftest.$ac_ext |
| 32227 | cat >>conftest.$ac_ext <<_ACEOF |
| 32228 | /* end confdefs.h. */ |
| 32229 | |
| 32230 | /* Override any GCC internal prototype to avoid an error. |
| 32231 | Use char because int might match the return type of a GCC |
| 32232 | builtin and then its argument prototype would still apply. */ |
| 32233 | #ifdef __cplusplus |
| 32234 | extern "C" |
| 32235 | #endif |
| 32236 | char _xlsmpFlush (); |
| 32237 | int |
| 32238 | main () |
| 32239 | { |
| 32240 | return _xlsmpFlush (); |
| 32241 | ; |
| 32242 | return 0; |
| 32243 | } |
| 32244 | _ACEOF |
| 32245 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 32246 | if { (ac_try="$ac_link" |
| 32247 | case "(($ac_try" in |
| 32248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32249 | *) ac_try_echo=$ac_try;; |
| 32250 | esac |
| 32251 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 32252 | $as_echo "$ac_try_echo") >&5 |
| 32253 | (eval "$ac_link") 2>conftest.er1 |
| 32254 | ac_status=$? |
| 32255 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32256 | rm -f conftest.er1 |
| 32257 | cat conftest.err >&5 |
| 32258 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32259 | (exit $ac_status); } && { |
| 32260 | test -z "$ac_c_werror_flag" || |
| 32261 | test ! -s conftest.err |
| 32262 | } && test -s conftest$ac_exeext && { |
| 32263 | test "$cross_compiling" = yes || |
| 32264 | $as_test_x conftest$ac_exeext |
| 32265 | }; then |
| 32266 | ac_cv_lib_xlsmp__xlsmpFlush=yes |
| 32267 | else |
| 32268 | $as_echo "$as_me: failed program was:" >&5 |
| 32269 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32270 | |
| 32271 | ac_cv_lib_xlsmp__xlsmpFlush=no |
| 32272 | fi |
| 32273 | |
| 32274 | rm -rf conftest.dSYM |
| 32275 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 32276 | conftest$ac_exeext conftest.$ac_ext |
| 32277 | LIBS=$ac_check_lib_save_LIBS |
| 32278 | fi |
| 32279 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5 |
| 32280 | $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; } |
| 32281 | if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then |
| 32282 | GOMP_LIBS="-lxlsmp" |
| 32283 | fi |
| 32284 | # AIX xlc |
| 32285 | { $as_echo "$as_me:$LINENO: checking for mp_destroy in -lmp" >&5 |
| 32286 | $as_echo_n "checking for mp_destroy in -lmp... " >&6; } |
| 32287 | if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then |
| 32288 | $as_echo_n "(cached) " >&6 |
| 32289 | else |
| 32290 | ac_check_lib_save_LIBS=$LIBS |
| 32291 | LIBS="-lmp $LIBS" |
| 32292 | cat >conftest.$ac_ext <<_ACEOF |
| 32293 | /* confdefs.h. */ |
| 32294 | _ACEOF |
| 32295 | cat confdefs.h >>conftest.$ac_ext |
| 32296 | cat >>conftest.$ac_ext <<_ACEOF |
| 32297 | /* end confdefs.h. */ |
| 32298 | |
| 32299 | /* Override any GCC internal prototype to avoid an error. |
| 32300 | Use char because int might match the return type of a GCC |
| 32301 | builtin and then its argument prototype would still apply. */ |
| 32302 | #ifdef __cplusplus |
| 32303 | extern "C" |
| 32304 | #endif |
| 32305 | char mp_destroy (); |
| 32306 | int |
| 32307 | main () |
| 32308 | { |
| 32309 | return mp_destroy (); |
| 32310 | ; |
| 32311 | return 0; |
| 32312 | } |
| 32313 | _ACEOF |
| 32314 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 32315 | if { (ac_try="$ac_link" |
| 32316 | case "(($ac_try" in |
| 32317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32318 | *) ac_try_echo=$ac_try;; |
| 32319 | esac |
| 32320 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 32321 | $as_echo "$ac_try_echo") >&5 |
| 32322 | (eval "$ac_link") 2>conftest.er1 |
| 32323 | ac_status=$? |
| 32324 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32325 | rm -f conftest.er1 |
| 32326 | cat conftest.err >&5 |
| 32327 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32328 | (exit $ac_status); } && { |
| 32329 | test -z "$ac_c_werror_flag" || |
| 32330 | test ! -s conftest.err |
| 32331 | } && test -s conftest$ac_exeext && { |
| 32332 | test "$cross_compiling" = yes || |
| 32333 | $as_test_x conftest$ac_exeext |
| 32334 | }; then |
| 32335 | ac_cv_lib_mp_mp_destroy=yes |
| 32336 | else |
| 32337 | $as_echo "$as_me: failed program was:" >&5 |
| 32338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32339 | |
| 32340 | ac_cv_lib_mp_mp_destroy=no |
| 32341 | fi |
| 32342 | |
| 32343 | rm -rf conftest.dSYM |
| 32344 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 32345 | conftest$ac_exeext conftest.$ac_ext |
| 32346 | LIBS=$ac_check_lib_save_LIBS |
| 32347 | fi |
| 32348 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp_mp_destroy" >&5 |
| 32349 | $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; } |
| 32350 | if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then |
| 32351 | GOMP_LIBS="-lmp" |
| 32352 | fi |
| 32353 | # SGI IRIX 6.5 MIPSpro C/C++ |
| 32354 | fi |
| 32355 | LIBS="$GOMP_LIBS $LIBS" |
| 32356 | fi |
| 32357 | |
| 32358 | |
| 32359 | # |
| 32360 | # Find Posix threads library |
| 32361 | # |
| 32362 | THREAD_LIBS='' |
| 32363 | if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then |
| 32364 | |
| 32365 | if test "x$PTHREAD_LIBS" = "x"; then |
| 32366 | case "${host_cpu}-${host_os}" in |
| 32367 | *-freebsd*) |
| 32368 | |
| 32369 | |
| 32370 | |
| 32371 | ac_ext=c |
| 32372 | ac_cpp='$CPP $CPPFLAGS' |
| 32373 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32374 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32375 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32376 | |
| 32377 | magick_pthread_lib_ok=no |
| 32378 | |
| 32379 | LIB=-lc_r |
| 32380 | save_LIBS="$LIBS" |
| 32381 | LIBS="$LIBS $LIB" |
| 32382 | |
| 32383 | { $as_echo "$as_me:$LINENO: checking for the pthreads library $LIB" >&5 |
| 32384 | $as_echo_n "checking for the pthreads library $LIB... " >&6; } |
| 32385 | cat >conftest.$ac_ext <<_ACEOF |
| 32386 | /* confdefs.h. */ |
| 32387 | _ACEOF |
| 32388 | cat confdefs.h >>conftest.$ac_ext |
| 32389 | cat >>conftest.$ac_ext <<_ACEOF |
| 32390 | /* end confdefs.h. */ |
| 32391 | #include <pthread.h> |
| 32392 | int |
| 32393 | main () |
| 32394 | { |
| 32395 | pthread_t th; |
| 32396 | pthread_join(th, 0); |
| 32397 | pthread_attr_init(0); |
| 32398 | pthread_cleanup_push(0, 0); |
| 32399 | pthread_create(0,0,0,0); |
| 32400 | pthread_cleanup_pop(0); |
| 32401 | ; |
| 32402 | return 0; |
| 32403 | } |
| 32404 | _ACEOF |
| 32405 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 32406 | if { (ac_try="$ac_link" |
| 32407 | case "(($ac_try" in |
| 32408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32409 | *) ac_try_echo=$ac_try;; |
| 32410 | esac |
| 32411 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 32412 | $as_echo "$ac_try_echo") >&5 |
| 32413 | (eval "$ac_link") 2>conftest.er1 |
| 32414 | ac_status=$? |
| 32415 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32416 | rm -f conftest.er1 |
| 32417 | cat conftest.err >&5 |
| 32418 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32419 | (exit $ac_status); } && { |
| 32420 | test -z "$ac_c_werror_flag" || |
| 32421 | test ! -s conftest.err |
| 32422 | } && test -s conftest$ac_exeext && { |
| 32423 | test "$cross_compiling" = yes || |
| 32424 | $as_test_x conftest$ac_exeext |
| 32425 | }; then |
| 32426 | magick_pthread_lib_ok=yes |
| 32427 | else |
| 32428 | $as_echo "$as_me: failed program was:" >&5 |
| 32429 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32430 | |
| 32431 | |
| 32432 | fi |
| 32433 | |
| 32434 | rm -rf conftest.dSYM |
| 32435 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 32436 | conftest$ac_exeext conftest.$ac_ext |
| 32437 | |
| 32438 | { $as_echo "$as_me:$LINENO: result: ${magick_pthread_lib_ok}" >&5 |
| 32439 | $as_echo "${magick_pthread_lib_ok}" >&6; } |
| 32440 | if test "$magick_pthread_lib_ok" = yes |
| 32441 | then |
| 32442 | PTHREAD_LIBS=-lc_r |
| 32443 | : |
| 32444 | else |
| 32445 | |
| 32446 | : |
| 32447 | fi |
| 32448 | |
| 32449 | LIBS="$save_LIBS" |
| 32450 | |
| 32451 | ac_ext=c |
| 32452 | ac_cpp='$CPP $CPPFLAGS' |
| 32453 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32454 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32455 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32456 | |
| 32457 | ;; |
| 32458 | esac |
| 32459 | fi |
| 32460 | |
| 32461 | for lib in pthread pthreads; do |
| 32462 | if test "x$PTHREAD_LIBS" = "x"; then |
| 32463 | |
| 32464 | |
| 32465 | |
| 32466 | ac_ext=c |
| 32467 | ac_cpp='$CPP $CPPFLAGS' |
| 32468 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32469 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32470 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32471 | |
| 32472 | magick_pthread_lib_ok=no |
| 32473 | |
| 32474 | LIB=-l$lib |
| 32475 | save_LIBS="$LIBS" |
| 32476 | LIBS="$LIBS $LIB" |
| 32477 | |
| 32478 | { $as_echo "$as_me:$LINENO: checking for the pthreads library $LIB" >&5 |
| 32479 | $as_echo_n "checking for the pthreads library $LIB... " >&6; } |
| 32480 | cat >conftest.$ac_ext <<_ACEOF |
| 32481 | /* confdefs.h. */ |
| 32482 | _ACEOF |
| 32483 | cat confdefs.h >>conftest.$ac_ext |
| 32484 | cat >>conftest.$ac_ext <<_ACEOF |
| 32485 | /* end confdefs.h. */ |
| 32486 | #include <pthread.h> |
| 32487 | int |
| 32488 | main () |
| 32489 | { |
| 32490 | pthread_t th; |
| 32491 | pthread_join(th, 0); |
| 32492 | pthread_attr_init(0); |
| 32493 | pthread_cleanup_push(0, 0); |
| 32494 | pthread_create(0,0,0,0); |
| 32495 | pthread_cleanup_pop(0); |
| 32496 | ; |
| 32497 | return 0; |
| 32498 | } |
| 32499 | _ACEOF |
| 32500 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 32501 | if { (ac_try="$ac_link" |
| 32502 | case "(($ac_try" in |
| 32503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32504 | *) ac_try_echo=$ac_try;; |
| 32505 | esac |
| 32506 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 32507 | $as_echo "$ac_try_echo") >&5 |
| 32508 | (eval "$ac_link") 2>conftest.er1 |
| 32509 | ac_status=$? |
| 32510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32511 | rm -f conftest.er1 |
| 32512 | cat conftest.err >&5 |
| 32513 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32514 | (exit $ac_status); } && { |
| 32515 | test -z "$ac_c_werror_flag" || |
| 32516 | test ! -s conftest.err |
| 32517 | } && test -s conftest$ac_exeext && { |
| 32518 | test "$cross_compiling" = yes || |
| 32519 | $as_test_x conftest$ac_exeext |
| 32520 | }; then |
| 32521 | magick_pthread_lib_ok=yes |
| 32522 | else |
| 32523 | $as_echo "$as_me: failed program was:" >&5 |
| 32524 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32525 | |
| 32526 | |
| 32527 | fi |
| 32528 | |
| 32529 | rm -rf conftest.dSYM |
| 32530 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 32531 | conftest$ac_exeext conftest.$ac_ext |
| 32532 | |
| 32533 | { $as_echo "$as_me:$LINENO: result: ${magick_pthread_lib_ok}" >&5 |
| 32534 | $as_echo "${magick_pthread_lib_ok}" >&6; } |
| 32535 | if test "$magick_pthread_lib_ok" = yes |
| 32536 | then |
| 32537 | PTHREAD_LIBS=-l$lib |
| 32538 | : |
| 32539 | else |
| 32540 | |
| 32541 | : |
| 32542 | fi |
| 32543 | |
| 32544 | LIBS="$save_LIBS" |
| 32545 | |
| 32546 | ac_ext=c |
| 32547 | ac_cpp='$CPP $CPPFLAGS' |
| 32548 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32549 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32550 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32551 | |
| 32552 | |
| 32553 | fi |
| 32554 | done |
| 32555 | |
| 32556 | THREAD_LIBS="$PTHREAD_LIBS" |
| 32557 | LIBS="$LIBS $THREAD_LIBS" |
| 32558 | fi |
| 32559 | |
| 32560 | |
| 32561 | # |
| 32562 | # Check for umem. |
| 32563 | # |
| 32564 | have_umem='no' |
| 32565 | UMEM_LIBS='' |
| 32566 | if test "$with_umem" != 'no'; then |
| 32567 | { $as_echo "$as_me:$LINENO: checking for UMEM support " >&5 |
| 32568 | $as_echo_n "checking for UMEM support ... " >&6; } |
| 32569 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 32570 | $as_echo "" >&6; } |
| 32571 | failed=0 |
| 32572 | passed=0 |
| 32573 | if test "${ac_cv_header_umem_h+set}" = set; then |
| 32574 | { $as_echo "$as_me:$LINENO: checking for umem.h" >&5 |
| 32575 | $as_echo_n "checking for umem.h... " >&6; } |
| 32576 | if test "${ac_cv_header_umem_h+set}" = set; then |
| 32577 | $as_echo_n "(cached) " >&6 |
| 32578 | fi |
| 32579 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_umem_h" >&5 |
| 32580 | $as_echo "$ac_cv_header_umem_h" >&6; } |
| 32581 | else |
| 32582 | # Is the header compilable? |
| 32583 | { $as_echo "$as_me:$LINENO: checking umem.h usability" >&5 |
| 32584 | $as_echo_n "checking umem.h usability... " >&6; } |
| 32585 | cat >conftest.$ac_ext <<_ACEOF |
| 32586 | /* confdefs.h. */ |
| 32587 | _ACEOF |
| 32588 | cat confdefs.h >>conftest.$ac_ext |
| 32589 | cat >>conftest.$ac_ext <<_ACEOF |
| 32590 | /* end confdefs.h. */ |
| 32591 | $ac_includes_default |
| 32592 | #include <umem.h> |
| 32593 | _ACEOF |
| 32594 | rm -f conftest.$ac_objext |
| 32595 | if { (ac_try="$ac_compile" |
| 32596 | case "(($ac_try" in |
| 32597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32598 | *) ac_try_echo=$ac_try;; |
| 32599 | esac |
| 32600 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 32601 | $as_echo "$ac_try_echo") >&5 |
| 32602 | (eval "$ac_compile") 2>conftest.er1 |
| 32603 | ac_status=$? |
| 32604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32605 | rm -f conftest.er1 |
| 32606 | cat conftest.err >&5 |
| 32607 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32608 | (exit $ac_status); } && { |
| 32609 | test -z "$ac_c_werror_flag" || |
| 32610 | test ! -s conftest.err |
| 32611 | } && test -s conftest.$ac_objext; then |
| 32612 | ac_header_compiler=yes |
| 32613 | else |
| 32614 | $as_echo "$as_me: failed program was:" >&5 |
| 32615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32616 | |
| 32617 | ac_header_compiler=no |
| 32618 | fi |
| 32619 | |
| 32620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 32621 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 32622 | $as_echo "$ac_header_compiler" >&6; } |
| 32623 | |
| 32624 | # Is the header present? |
| 32625 | { $as_echo "$as_me:$LINENO: checking umem.h presence" >&5 |
| 32626 | $as_echo_n "checking umem.h presence... " >&6; } |
| 32627 | cat >conftest.$ac_ext <<_ACEOF |
| 32628 | /* confdefs.h. */ |
| 32629 | _ACEOF |
| 32630 | cat confdefs.h >>conftest.$ac_ext |
| 32631 | cat >>conftest.$ac_ext <<_ACEOF |
| 32632 | /* end confdefs.h. */ |
| 32633 | #include <umem.h> |
| 32634 | _ACEOF |
| 32635 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 32636 | case "(($ac_try" in |
| 32637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32638 | *) ac_try_echo=$ac_try;; |
| 32639 | esac |
| 32640 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 32641 | $as_echo "$ac_try_echo") >&5 |
| 32642 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 32643 | ac_status=$? |
| 32644 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32645 | rm -f conftest.er1 |
| 32646 | cat conftest.err >&5 |
| 32647 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32648 | (exit $ac_status); } >/dev/null && { |
| 32649 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 32650 | test ! -s conftest.err |
| 32651 | }; then |
| 32652 | ac_header_preproc=yes |
| 32653 | else |
| 32654 | $as_echo "$as_me: failed program was:" >&5 |
| 32655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32656 | |
| 32657 | ac_header_preproc=no |
| 32658 | fi |
| 32659 | |
| 32660 | rm -f conftest.err conftest.$ac_ext |
| 32661 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 32662 | $as_echo "$ac_header_preproc" >&6; } |
| 32663 | |
| 32664 | # So? What about this header? |
| 32665 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 32666 | yes:no: ) |
| 32667 | { $as_echo "$as_me:$LINENO: WARNING: umem.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 32668 | $as_echo "$as_me: WARNING: umem.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 32669 | { $as_echo "$as_me:$LINENO: WARNING: umem.h: proceeding with the compiler's result" >&5 |
| 32670 | $as_echo "$as_me: WARNING: umem.h: proceeding with the compiler's result" >&2;} |
| 32671 | ac_header_preproc=yes |
| 32672 | ;; |
| 32673 | no:yes:* ) |
| 32674 | { $as_echo "$as_me:$LINENO: WARNING: umem.h: present but cannot be compiled" >&5 |
| 32675 | $as_echo "$as_me: WARNING: umem.h: present but cannot be compiled" >&2;} |
| 32676 | { $as_echo "$as_me:$LINENO: WARNING: umem.h: check for missing prerequisite headers?" >&5 |
| 32677 | $as_echo "$as_me: WARNING: umem.h: check for missing prerequisite headers?" >&2;} |
| 32678 | { $as_echo "$as_me:$LINENO: WARNING: umem.h: see the Autoconf documentation" >&5 |
| 32679 | $as_echo "$as_me: WARNING: umem.h: see the Autoconf documentation" >&2;} |
| 32680 | { $as_echo "$as_me:$LINENO: WARNING: umem.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 32681 | $as_echo "$as_me: WARNING: umem.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 32682 | { $as_echo "$as_me:$LINENO: WARNING: umem.h: proceeding with the preprocessor's result" >&5 |
| 32683 | $as_echo "$as_me: WARNING: umem.h: proceeding with the preprocessor's result" >&2;} |
| 32684 | { $as_echo "$as_me:$LINENO: WARNING: umem.h: in the future, the compiler will take precedence" >&5 |
| 32685 | $as_echo "$as_me: WARNING: umem.h: in the future, the compiler will take precedence" >&2;} |
| 32686 | ( cat <<\_ASBOX |
| 32687 | ## ----------------------------------------- ## |
| 32688 | ## Report this to http://www.imagemagick.org ## |
| 32689 | ## ----------------------------------------- ## |
| 32690 | _ASBOX |
| 32691 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 32692 | ;; |
| 32693 | esac |
| 32694 | { $as_echo "$as_me:$LINENO: checking for umem.h" >&5 |
| 32695 | $as_echo_n "checking for umem.h... " >&6; } |
| 32696 | if test "${ac_cv_header_umem_h+set}" = set; then |
| 32697 | $as_echo_n "(cached) " >&6 |
| 32698 | else |
| 32699 | ac_cv_header_umem_h=$ac_header_preproc |
| 32700 | fi |
| 32701 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_umem_h" >&5 |
| 32702 | $as_echo "$ac_cv_header_umem_h" >&6; } |
| 32703 | |
| 32704 | fi |
| 32705 | if test "x$ac_cv_header_umem_h" = x""yes; then |
| 32706 | passed=`expr $passed + 1` |
| 32707 | else |
| 32708 | failed=`expr $failed + 1` |
| 32709 | fi |
| 32710 | |
| 32711 | |
| 32712 | { $as_echo "$as_me:$LINENO: checking for umem_alloc in -lumem" >&5 |
| 32713 | $as_echo_n "checking for umem_alloc in -lumem... " >&6; } |
| 32714 | if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then |
| 32715 | $as_echo_n "(cached) " >&6 |
| 32716 | else |
| 32717 | ac_check_lib_save_LIBS=$LIBS |
| 32718 | LIBS="-lumem $LIBS" |
| 32719 | cat >conftest.$ac_ext <<_ACEOF |
| 32720 | /* confdefs.h. */ |
| 32721 | _ACEOF |
| 32722 | cat confdefs.h >>conftest.$ac_ext |
| 32723 | cat >>conftest.$ac_ext <<_ACEOF |
| 32724 | /* end confdefs.h. */ |
| 32725 | |
| 32726 | /* Override any GCC internal prototype to avoid an error. |
| 32727 | Use char because int might match the return type of a GCC |
| 32728 | builtin and then its argument prototype would still apply. */ |
| 32729 | #ifdef __cplusplus |
| 32730 | extern "C" |
| 32731 | #endif |
| 32732 | char umem_alloc (); |
| 32733 | int |
| 32734 | main () |
| 32735 | { |
| 32736 | return umem_alloc (); |
| 32737 | ; |
| 32738 | return 0; |
| 32739 | } |
| 32740 | _ACEOF |
| 32741 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 32742 | if { (ac_try="$ac_link" |
| 32743 | case "(($ac_try" in |
| 32744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32745 | *) ac_try_echo=$ac_try;; |
| 32746 | esac |
| 32747 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 32748 | $as_echo "$ac_try_echo") >&5 |
| 32749 | (eval "$ac_link") 2>conftest.er1 |
| 32750 | ac_status=$? |
| 32751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32752 | rm -f conftest.er1 |
| 32753 | cat conftest.err >&5 |
| 32754 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32755 | (exit $ac_status); } && { |
| 32756 | test -z "$ac_c_werror_flag" || |
| 32757 | test ! -s conftest.err |
| 32758 | } && test -s conftest$ac_exeext && { |
| 32759 | test "$cross_compiling" = yes || |
| 32760 | $as_test_x conftest$ac_exeext |
| 32761 | }; then |
| 32762 | ac_cv_lib_umem_umem_alloc=yes |
| 32763 | else |
| 32764 | $as_echo "$as_me: failed program was:" >&5 |
| 32765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32766 | |
| 32767 | ac_cv_lib_umem_umem_alloc=no |
| 32768 | fi |
| 32769 | |
| 32770 | rm -rf conftest.dSYM |
| 32771 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 32772 | conftest$ac_exeext conftest.$ac_ext |
| 32773 | LIBS=$ac_check_lib_save_LIBS |
| 32774 | fi |
| 32775 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_umem_umem_alloc" >&5 |
| 32776 | $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } |
| 32777 | if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then |
| 32778 | passed=`expr $passed + 1` |
| 32779 | else |
| 32780 | failed=`expr $failed + 1` |
| 32781 | fi |
| 32782 | |
| 32783 | { $as_echo "$as_me:$LINENO: checking for umem_free in -lumem" >&5 |
| 32784 | $as_echo_n "checking for umem_free in -lumem... " >&6; } |
| 32785 | if test "${ac_cv_lib_umem_umem_free+set}" = set; then |
| 32786 | $as_echo_n "(cached) " >&6 |
| 32787 | else |
| 32788 | ac_check_lib_save_LIBS=$LIBS |
| 32789 | LIBS="-lumem $LIBS" |
| 32790 | cat >conftest.$ac_ext <<_ACEOF |
| 32791 | /* confdefs.h. */ |
| 32792 | _ACEOF |
| 32793 | cat confdefs.h >>conftest.$ac_ext |
| 32794 | cat >>conftest.$ac_ext <<_ACEOF |
| 32795 | /* end confdefs.h. */ |
| 32796 | |
| 32797 | /* Override any GCC internal prototype to avoid an error. |
| 32798 | Use char because int might match the return type of a GCC |
| 32799 | builtin and then its argument prototype would still apply. */ |
| 32800 | #ifdef __cplusplus |
| 32801 | extern "C" |
| 32802 | #endif |
| 32803 | char umem_free (); |
| 32804 | int |
| 32805 | main () |
| 32806 | { |
| 32807 | return umem_free (); |
| 32808 | ; |
| 32809 | return 0; |
| 32810 | } |
| 32811 | _ACEOF |
| 32812 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 32813 | if { (ac_try="$ac_link" |
| 32814 | case "(($ac_try" in |
| 32815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32816 | *) ac_try_echo=$ac_try;; |
| 32817 | esac |
| 32818 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 32819 | $as_echo "$ac_try_echo") >&5 |
| 32820 | (eval "$ac_link") 2>conftest.er1 |
| 32821 | ac_status=$? |
| 32822 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32823 | rm -f conftest.er1 |
| 32824 | cat conftest.err >&5 |
| 32825 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32826 | (exit $ac_status); } && { |
| 32827 | test -z "$ac_c_werror_flag" || |
| 32828 | test ! -s conftest.err |
| 32829 | } && test -s conftest$ac_exeext && { |
| 32830 | test "$cross_compiling" = yes || |
| 32831 | $as_test_x conftest$ac_exeext |
| 32832 | }; then |
| 32833 | ac_cv_lib_umem_umem_free=yes |
| 32834 | else |
| 32835 | $as_echo "$as_me: failed program was:" >&5 |
| 32836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32837 | |
| 32838 | ac_cv_lib_umem_umem_free=no |
| 32839 | fi |
| 32840 | |
| 32841 | rm -rf conftest.dSYM |
| 32842 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 32843 | conftest$ac_exeext conftest.$ac_ext |
| 32844 | LIBS=$ac_check_lib_save_LIBS |
| 32845 | fi |
| 32846 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_umem_umem_free" >&5 |
| 32847 | $as_echo "$ac_cv_lib_umem_umem_free" >&6; } |
| 32848 | if test "x$ac_cv_lib_umem_umem_free" = x""yes; then |
| 32849 | passed=`expr $passed + 1` |
| 32850 | else |
| 32851 | failed=`expr $failed + 1` |
| 32852 | fi |
| 32853 | |
| 32854 | { $as_echo "$as_me:$LINENO: checking if umem memory allocation library is complete" >&5 |
| 32855 | $as_echo_n "checking if umem memory allocation library is complete... " >&6; } |
| 32856 | if test $passed -gt 0; then |
| 32857 | if test $failed -gt 0; then |
| 32858 | { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5 |
| 32859 | $as_echo "no -- some components failed test" >&6; } |
| 32860 | have_umem='no (failed tests)' |
| 32861 | else |
| 32862 | UMEM_LIBS='-lumem' |
| 32863 | LIBS="$UMEM_LIBS $LIBS" |
| 32864 | |
| 32865 | cat >>confdefs.h <<\_ACEOF |
| 32866 | #define HasUMEM 1 |
| 32867 | _ACEOF |
| 32868 | |
| 32869 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 32870 | $as_echo "yes" >&6; } |
| 32871 | have_umem='yes' |
| 32872 | fi |
| 32873 | else |
| 32874 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 32875 | $as_echo "no" >&6; } |
| 32876 | fi |
| 32877 | fi |
| 32878 | if test "$have_umem" = 'yes'; then |
| 32879 | HasUMEM_TRUE= |
| 32880 | HasUMEM_FALSE='#' |
| 32881 | else |
| 32882 | HasUMEM_TRUE='#' |
| 32883 | HasUMEM_FALSE= |
| 32884 | fi |
| 32885 | |
| 32886 | |
| 32887 | |
| 32888 | # |
| 32889 | # Add support for ccmalloc memory debugging library if requested |
| 32890 | # |
| 32891 | have_ccmalloc='no' |
| 32892 | CCMALLOC_LIBS='' |
| 32893 | if test "$enable_ccmalloc" = 'yes'; then |
| 32894 | # Extract the first word of "ccmalloc", so it can be a program name with args. |
| 32895 | set dummy ccmalloc; ac_word=$2 |
| 32896 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 32897 | $as_echo_n "checking for $ac_word... " >&6; } |
| 32898 | if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then |
| 32899 | $as_echo_n "(cached) " >&6 |
| 32900 | else |
| 32901 | case $CCMALLOCDelegate in |
| 32902 | [\\/]* | ?:[\\/]*) |
| 32903 | ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path. |
| 32904 | ;; |
| 32905 | *) |
| 32906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32907 | for as_dir in $PATH |
| 32908 | do |
| 32909 | IFS=$as_save_IFS |
| 32910 | test -z "$as_dir" && as_dir=. |
| 32911 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 32912 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32913 | ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 32914 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 32915 | break 2 |
| 32916 | fi |
| 32917 | done |
| 32918 | done |
| 32919 | IFS=$as_save_IFS |
| 32920 | |
| 32921 | ;; |
| 32922 | esac |
| 32923 | fi |
| 32924 | CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate |
| 32925 | if test -n "$CCMALLOCDelegate"; then |
| 32926 | { $as_echo "$as_me:$LINENO: result: $CCMALLOCDelegate" >&5 |
| 32927 | $as_echo "$CCMALLOCDelegate" >&6; } |
| 32928 | else |
| 32929 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 32930 | $as_echo "no" >&6; } |
| 32931 | fi |
| 32932 | |
| 32933 | |
| 32934 | if test -n "$CCMALLOCDelegate"; then |
| 32935 | eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'` |
| 32936 | OLIBS="$LIBS" |
| 32937 | # Assume that gcc is used with ccmalloc. |
| 32938 | LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o" |
| 32939 | { $as_echo "$as_me:$LINENO: checking for ccmalloc_malloc in -lccmalloc" >&5 |
| 32940 | $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; } |
| 32941 | if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then |
| 32942 | $as_echo_n "(cached) " >&6 |
| 32943 | else |
| 32944 | ac_check_lib_save_LIBS=$LIBS |
| 32945 | LIBS="-lccmalloc -ldl $LIBS" |
| 32946 | cat >conftest.$ac_ext <<_ACEOF |
| 32947 | /* confdefs.h. */ |
| 32948 | _ACEOF |
| 32949 | cat confdefs.h >>conftest.$ac_ext |
| 32950 | cat >>conftest.$ac_ext <<_ACEOF |
| 32951 | /* end confdefs.h. */ |
| 32952 | |
| 32953 | /* Override any GCC internal prototype to avoid an error. |
| 32954 | Use char because int might match the return type of a GCC |
| 32955 | builtin and then its argument prototype would still apply. */ |
| 32956 | #ifdef __cplusplus |
| 32957 | extern "C" |
| 32958 | #endif |
| 32959 | char ccmalloc_malloc (); |
| 32960 | int |
| 32961 | main () |
| 32962 | { |
| 32963 | return ccmalloc_malloc (); |
| 32964 | ; |
| 32965 | return 0; |
| 32966 | } |
| 32967 | _ACEOF |
| 32968 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 32969 | if { (ac_try="$ac_link" |
| 32970 | case "(($ac_try" in |
| 32971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32972 | *) ac_try_echo=$ac_try;; |
| 32973 | esac |
| 32974 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 32975 | $as_echo "$ac_try_echo") >&5 |
| 32976 | (eval "$ac_link") 2>conftest.er1 |
| 32977 | ac_status=$? |
| 32978 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32979 | rm -f conftest.er1 |
| 32980 | cat conftest.err >&5 |
| 32981 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32982 | (exit $ac_status); } && { |
| 32983 | test -z "$ac_c_werror_flag" || |
| 32984 | test ! -s conftest.err |
| 32985 | } && test -s conftest$ac_exeext && { |
| 32986 | test "$cross_compiling" = yes || |
| 32987 | $as_test_x conftest$ac_exeext |
| 32988 | }; then |
| 32989 | ac_cv_lib_ccmalloc_ccmalloc_malloc=yes |
| 32990 | else |
| 32991 | $as_echo "$as_me: failed program was:" >&5 |
| 32992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32993 | |
| 32994 | ac_cv_lib_ccmalloc_ccmalloc_malloc=no |
| 32995 | fi |
| 32996 | |
| 32997 | rm -rf conftest.dSYM |
| 32998 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 32999 | conftest$ac_exeext conftest.$ac_ext |
| 33000 | LIBS=$ac_check_lib_save_LIBS |
| 33001 | fi |
| 33002 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5 |
| 33003 | $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; } |
| 33004 | if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then |
| 33005 | CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl" |
| 33006 | fi |
| 33007 | |
| 33008 | if test -n "$CCMALLOC_LIBS"; then |
| 33009 | LIBS="$OLIBS" |
| 33010 | LIBS="$LIBS $CCMALLOC_LIBS" |
| 33011 | have_ccmalloc='yes' |
| 33012 | else |
| 33013 | LIBS="$OLIBS" |
| 33014 | fi |
| 33015 | fi |
| 33016 | fi |
| 33017 | |
| 33018 | # |
| 33019 | # Add support for efence memory debugging library if requested |
| 33020 | # |
| 33021 | if test "$enable_efence" = 'yes'; then |
| 33022 | EFENCE_LIBS='-lefence' |
| 33023 | LIBS="$EFENCE_LIBS $LIBS" |
| 33024 | fi |
| 33025 | |
| 33026 | # |
| 33027 | # Find math library |
| 33028 | # |
| 33029 | MATH_LIBS='' |
| 33030 | { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
| 33031 | $as_echo_n "checking for sqrt in -lm... " >&6; } |
| 33032 | if test "${ac_cv_lib_m_sqrt+set}" = set; then |
| 33033 | $as_echo_n "(cached) " >&6 |
| 33034 | else |
| 33035 | ac_check_lib_save_LIBS=$LIBS |
| 33036 | LIBS="-lm $LIBS" |
| 33037 | cat >conftest.$ac_ext <<_ACEOF |
| 33038 | /* confdefs.h. */ |
| 33039 | _ACEOF |
| 33040 | cat confdefs.h >>conftest.$ac_ext |
| 33041 | cat >>conftest.$ac_ext <<_ACEOF |
| 33042 | /* end confdefs.h. */ |
| 33043 | |
| 33044 | /* Override any GCC internal prototype to avoid an error. |
| 33045 | Use char because int might match the return type of a GCC |
| 33046 | builtin and then its argument prototype would still apply. */ |
| 33047 | #ifdef __cplusplus |
| 33048 | extern "C" |
| 33049 | #endif |
| 33050 | char sqrt (); |
| 33051 | int |
| 33052 | main () |
| 33053 | { |
| 33054 | return sqrt (); |
| 33055 | ; |
| 33056 | return 0; |
| 33057 | } |
| 33058 | _ACEOF |
| 33059 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 33060 | if { (ac_try="$ac_link" |
| 33061 | case "(($ac_try" in |
| 33062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33063 | *) ac_try_echo=$ac_try;; |
| 33064 | esac |
| 33065 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 33066 | $as_echo "$ac_try_echo") >&5 |
| 33067 | (eval "$ac_link") 2>conftest.er1 |
| 33068 | ac_status=$? |
| 33069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33070 | rm -f conftest.er1 |
| 33071 | cat conftest.err >&5 |
| 33072 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33073 | (exit $ac_status); } && { |
| 33074 | test -z "$ac_c_werror_flag" || |
| 33075 | test ! -s conftest.err |
| 33076 | } && test -s conftest$ac_exeext && { |
| 33077 | test "$cross_compiling" = yes || |
| 33078 | $as_test_x conftest$ac_exeext |
| 33079 | }; then |
| 33080 | ac_cv_lib_m_sqrt=yes |
| 33081 | else |
| 33082 | $as_echo "$as_me: failed program was:" >&5 |
| 33083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33084 | |
| 33085 | ac_cv_lib_m_sqrt=no |
| 33086 | fi |
| 33087 | |
| 33088 | rm -rf conftest.dSYM |
| 33089 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 33090 | conftest$ac_exeext conftest.$ac_ext |
| 33091 | LIBS=$ac_check_lib_save_LIBS |
| 33092 | fi |
| 33093 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
| 33094 | $as_echo "$ac_cv_lib_m_sqrt" >&6; } |
| 33095 | if test "x$ac_cv_lib_m_sqrt" = x""yes; then |
| 33096 | MATH_LIBS="-lm" |
| 33097 | fi |
| 33098 | |
| 33099 | LIBS="$MATH_LIBS $LIBS" |
| 33100 | |
| 33101 | |
| 33102 | |
| 33103 | # |
| 33104 | # Check for BZLIB |
| 33105 | # |
| 33106 | |
| 33107 | |
| 33108 | # Check whether --with-bzlib was given. |
| 33109 | if test "${with_bzlib+set}" = set; then |
| 33110 | withval=$with_bzlib; with_bzlib=$withval |
| 33111 | else |
| 33112 | with_bzlib='yes' |
| 33113 | fi |
| 33114 | |
| 33115 | |
| 33116 | if test "$with_bzlib" != 'yes'; then |
| 33117 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib " |
| 33118 | fi |
| 33119 | |
| 33120 | have_bzlib='no' |
| 33121 | if test "$with_bzlib" != 'no'; then |
| 33122 | BZLIB_LIBS='' |
| 33123 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 33124 | $as_echo "-------------------------------------------------------------" >&6; } |
| 33125 | { $as_echo "$as_me:$LINENO: checking for BZLIB" >&5 |
| 33126 | $as_echo_n "checking for BZLIB... " >&6; } |
| 33127 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 33128 | $as_echo "" >&6; } |
| 33129 | failed=0 |
| 33130 | passed=0 |
| 33131 | found_libbz=0 |
| 33132 | if test "${ac_cv_header_bzlib_h+set}" = set; then |
| 33133 | { $as_echo "$as_me:$LINENO: checking for bzlib.h" >&5 |
| 33134 | $as_echo_n "checking for bzlib.h... " >&6; } |
| 33135 | if test "${ac_cv_header_bzlib_h+set}" = set; then |
| 33136 | $as_echo_n "(cached) " >&6 |
| 33137 | fi |
| 33138 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5 |
| 33139 | $as_echo "$ac_cv_header_bzlib_h" >&6; } |
| 33140 | else |
| 33141 | # Is the header compilable? |
| 33142 | { $as_echo "$as_me:$LINENO: checking bzlib.h usability" >&5 |
| 33143 | $as_echo_n "checking bzlib.h usability... " >&6; } |
| 33144 | cat >conftest.$ac_ext <<_ACEOF |
| 33145 | /* confdefs.h. */ |
| 33146 | _ACEOF |
| 33147 | cat confdefs.h >>conftest.$ac_ext |
| 33148 | cat >>conftest.$ac_ext <<_ACEOF |
| 33149 | /* end confdefs.h. */ |
| 33150 | $ac_includes_default |
| 33151 | #include <bzlib.h> |
| 33152 | _ACEOF |
| 33153 | rm -f conftest.$ac_objext |
| 33154 | if { (ac_try="$ac_compile" |
| 33155 | case "(($ac_try" in |
| 33156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33157 | *) ac_try_echo=$ac_try;; |
| 33158 | esac |
| 33159 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 33160 | $as_echo "$ac_try_echo") >&5 |
| 33161 | (eval "$ac_compile") 2>conftest.er1 |
| 33162 | ac_status=$? |
| 33163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33164 | rm -f conftest.er1 |
| 33165 | cat conftest.err >&5 |
| 33166 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33167 | (exit $ac_status); } && { |
| 33168 | test -z "$ac_c_werror_flag" || |
| 33169 | test ! -s conftest.err |
| 33170 | } && test -s conftest.$ac_objext; then |
| 33171 | ac_header_compiler=yes |
| 33172 | else |
| 33173 | $as_echo "$as_me: failed program was:" >&5 |
| 33174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33175 | |
| 33176 | ac_header_compiler=no |
| 33177 | fi |
| 33178 | |
| 33179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 33180 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 33181 | $as_echo "$ac_header_compiler" >&6; } |
| 33182 | |
| 33183 | # Is the header present? |
| 33184 | { $as_echo "$as_me:$LINENO: checking bzlib.h presence" >&5 |
| 33185 | $as_echo_n "checking bzlib.h presence... " >&6; } |
| 33186 | cat >conftest.$ac_ext <<_ACEOF |
| 33187 | /* confdefs.h. */ |
| 33188 | _ACEOF |
| 33189 | cat confdefs.h >>conftest.$ac_ext |
| 33190 | cat >>conftest.$ac_ext <<_ACEOF |
| 33191 | /* end confdefs.h. */ |
| 33192 | #include <bzlib.h> |
| 33193 | _ACEOF |
| 33194 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 33195 | case "(($ac_try" in |
| 33196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33197 | *) ac_try_echo=$ac_try;; |
| 33198 | esac |
| 33199 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 33200 | $as_echo "$ac_try_echo") >&5 |
| 33201 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 33202 | ac_status=$? |
| 33203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33204 | rm -f conftest.er1 |
| 33205 | cat conftest.err >&5 |
| 33206 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33207 | (exit $ac_status); } >/dev/null && { |
| 33208 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 33209 | test ! -s conftest.err |
| 33210 | }; then |
| 33211 | ac_header_preproc=yes |
| 33212 | else |
| 33213 | $as_echo "$as_me: failed program was:" >&5 |
| 33214 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33215 | |
| 33216 | ac_header_preproc=no |
| 33217 | fi |
| 33218 | |
| 33219 | rm -f conftest.err conftest.$ac_ext |
| 33220 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 33221 | $as_echo "$ac_header_preproc" >&6; } |
| 33222 | |
| 33223 | # So? What about this header? |
| 33224 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 33225 | yes:no: ) |
| 33226 | { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 33227 | $as_echo "$as_me: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 33228 | { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the compiler's result" >&5 |
| 33229 | $as_echo "$as_me: WARNING: bzlib.h: proceeding with the compiler's result" >&2;} |
| 33230 | ac_header_preproc=yes |
| 33231 | ;; |
| 33232 | no:yes:* ) |
| 33233 | { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: present but cannot be compiled" >&5 |
| 33234 | $as_echo "$as_me: WARNING: bzlib.h: present but cannot be compiled" >&2;} |
| 33235 | { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: check for missing prerequisite headers?" >&5 |
| 33236 | $as_echo "$as_me: WARNING: bzlib.h: check for missing prerequisite headers?" >&2;} |
| 33237 | { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: see the Autoconf documentation" >&5 |
| 33238 | $as_echo "$as_me: WARNING: bzlib.h: see the Autoconf documentation" >&2;} |
| 33239 | { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 33240 | $as_echo "$as_me: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 33241 | { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the preprocessor's result" >&5 |
| 33242 | $as_echo "$as_me: WARNING: bzlib.h: proceeding with the preprocessor's result" >&2;} |
| 33243 | { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: in the future, the compiler will take precedence" >&5 |
| 33244 | $as_echo "$as_me: WARNING: bzlib.h: in the future, the compiler will take precedence" >&2;} |
| 33245 | ( cat <<\_ASBOX |
| 33246 | ## ----------------------------------------- ## |
| 33247 | ## Report this to http://www.imagemagick.org ## |
| 33248 | ## ----------------------------------------- ## |
| 33249 | _ASBOX |
| 33250 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 33251 | ;; |
| 33252 | esac |
| 33253 | { $as_echo "$as_me:$LINENO: checking for bzlib.h" >&5 |
| 33254 | $as_echo_n "checking for bzlib.h... " >&6; } |
| 33255 | if test "${ac_cv_header_bzlib_h+set}" = set; then |
| 33256 | $as_echo_n "(cached) " >&6 |
| 33257 | else |
| 33258 | ac_cv_header_bzlib_h=$ac_header_preproc |
| 33259 | fi |
| 33260 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5 |
| 33261 | $as_echo "$ac_cv_header_bzlib_h" >&6; } |
| 33262 | |
| 33263 | fi |
| 33264 | if test "x$ac_cv_header_bzlib_h" = x""yes; then |
| 33265 | passed=`expr $passed + 1` |
| 33266 | else |
| 33267 | failed=`expr $failed + 1` |
| 33268 | fi |
| 33269 | |
| 33270 | |
| 33271 | { $as_echo "$as_me:$LINENO: checking for BZ2_bzDecompress in -lbz2" >&5 |
| 33272 | $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; } |
| 33273 | if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then |
| 33274 | $as_echo_n "(cached) " >&6 |
| 33275 | else |
| 33276 | ac_check_lib_save_LIBS=$LIBS |
| 33277 | LIBS="-lbz2 $LIBS" |
| 33278 | cat >conftest.$ac_ext <<_ACEOF |
| 33279 | /* confdefs.h. */ |
| 33280 | _ACEOF |
| 33281 | cat confdefs.h >>conftest.$ac_ext |
| 33282 | cat >>conftest.$ac_ext <<_ACEOF |
| 33283 | /* end confdefs.h. */ |
| 33284 | |
| 33285 | /* Override any GCC internal prototype to avoid an error. |
| 33286 | Use char because int might match the return type of a GCC |
| 33287 | builtin and then its argument prototype would still apply. */ |
| 33288 | #ifdef __cplusplus |
| 33289 | extern "C" |
| 33290 | #endif |
| 33291 | char BZ2_bzDecompress (); |
| 33292 | int |
| 33293 | main () |
| 33294 | { |
| 33295 | return BZ2_bzDecompress (); |
| 33296 | ; |
| 33297 | return 0; |
| 33298 | } |
| 33299 | _ACEOF |
| 33300 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 33301 | if { (ac_try="$ac_link" |
| 33302 | case "(($ac_try" in |
| 33303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33304 | *) ac_try_echo=$ac_try;; |
| 33305 | esac |
| 33306 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 33307 | $as_echo "$ac_try_echo") >&5 |
| 33308 | (eval "$ac_link") 2>conftest.er1 |
| 33309 | ac_status=$? |
| 33310 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33311 | rm -f conftest.er1 |
| 33312 | cat conftest.err >&5 |
| 33313 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33314 | (exit $ac_status); } && { |
| 33315 | test -z "$ac_c_werror_flag" || |
| 33316 | test ! -s conftest.err |
| 33317 | } && test -s conftest$ac_exeext && { |
| 33318 | test "$cross_compiling" = yes || |
| 33319 | $as_test_x conftest$ac_exeext |
| 33320 | }; then |
| 33321 | ac_cv_lib_bz2_BZ2_bzDecompress=yes |
| 33322 | else |
| 33323 | $as_echo "$as_me: failed program was:" >&5 |
| 33324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33325 | |
| 33326 | ac_cv_lib_bz2_BZ2_bzDecompress=no |
| 33327 | fi |
| 33328 | |
| 33329 | rm -rf conftest.dSYM |
| 33330 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 33331 | conftest$ac_exeext conftest.$ac_ext |
| 33332 | LIBS=$ac_check_lib_save_LIBS |
| 33333 | fi |
| 33334 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5 |
| 33335 | $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; } |
| 33336 | if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then |
| 33337 | found_libbz=`expr $found_libbz + 1` |
| 33338 | fi |
| 33339 | |
| 33340 | if test "$native_win32_build" = 'yes'; then |
| 33341 | { $as_echo "$as_me:$LINENO: checking for _imp__BZ2_decompress in -lbz2" >&5 |
| 33342 | $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; } |
| 33343 | if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then |
| 33344 | $as_echo_n "(cached) " >&6 |
| 33345 | else |
| 33346 | ac_check_lib_save_LIBS=$LIBS |
| 33347 | LIBS="-lbz2 $LIBS" |
| 33348 | cat >conftest.$ac_ext <<_ACEOF |
| 33349 | /* confdefs.h. */ |
| 33350 | _ACEOF |
| 33351 | cat confdefs.h >>conftest.$ac_ext |
| 33352 | cat >>conftest.$ac_ext <<_ACEOF |
| 33353 | /* end confdefs.h. */ |
| 33354 | |
| 33355 | /* Override any GCC internal prototype to avoid an error. |
| 33356 | Use char because int might match the return type of a GCC |
| 33357 | builtin and then its argument prototype would still apply. */ |
| 33358 | #ifdef __cplusplus |
| 33359 | extern "C" |
| 33360 | #endif |
| 33361 | char _imp__BZ2_decompress (); |
| 33362 | int |
| 33363 | main () |
| 33364 | { |
| 33365 | return _imp__BZ2_decompress (); |
| 33366 | ; |
| 33367 | return 0; |
| 33368 | } |
| 33369 | _ACEOF |
| 33370 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 33371 | if { (ac_try="$ac_link" |
| 33372 | case "(($ac_try" in |
| 33373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33374 | *) ac_try_echo=$ac_try;; |
| 33375 | esac |
| 33376 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 33377 | $as_echo "$ac_try_echo") >&5 |
| 33378 | (eval "$ac_link") 2>conftest.er1 |
| 33379 | ac_status=$? |
| 33380 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33381 | rm -f conftest.er1 |
| 33382 | cat conftest.err >&5 |
| 33383 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33384 | (exit $ac_status); } && { |
| 33385 | test -z "$ac_c_werror_flag" || |
| 33386 | test ! -s conftest.err |
| 33387 | } && test -s conftest$ac_exeext && { |
| 33388 | test "$cross_compiling" = yes || |
| 33389 | $as_test_x conftest$ac_exeext |
| 33390 | }; then |
| 33391 | ac_cv_lib_bz2__imp__BZ2_decompress=yes |
| 33392 | else |
| 33393 | $as_echo "$as_me: failed program was:" >&5 |
| 33394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33395 | |
| 33396 | ac_cv_lib_bz2__imp__BZ2_decompress=no |
| 33397 | fi |
| 33398 | |
| 33399 | rm -rf conftest.dSYM |
| 33400 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 33401 | conftest$ac_exeext conftest.$ac_ext |
| 33402 | LIBS=$ac_check_lib_save_LIBS |
| 33403 | fi |
| 33404 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5 |
| 33405 | $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; } |
| 33406 | if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then |
| 33407 | found_libbz=`expr $found_libbz + 1` |
| 33408 | fi |
| 33409 | |
| 33410 | fi |
| 33411 | if test $found_libbz -gt 0; then |
| 33412 | passed=`expr $passed + 1` |
| 33413 | else |
| 33414 | failed=`expr $failed + 1` |
| 33415 | fi |
| 33416 | { $as_echo "$as_me:$LINENO: checking if BZLIB package is complete" >&5 |
| 33417 | $as_echo_n "checking if BZLIB package is complete... " >&6; } |
| 33418 | if test $passed -gt 0; then |
| 33419 | if test $failed -gt 0; then |
| 33420 | { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5 |
| 33421 | $as_echo "no -- some components failed test" >&6; } |
| 33422 | have_bzlib='no (failed tests)' |
| 33423 | else |
| 33424 | BZLIB_LIBS='-lbz2' |
| 33425 | LIBS="$BZLIB_LIBS $LIBS" |
| 33426 | |
| 33427 | cat >>confdefs.h <<\_ACEOF |
| 33428 | #define BZLIB_DELEGATE 1 |
| 33429 | _ACEOF |
| 33430 | |
| 33431 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 33432 | $as_echo "yes" >&6; } |
| 33433 | have_bzlib='yes' |
| 33434 | fi |
| 33435 | else |
| 33436 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 33437 | $as_echo "no" >&6; } |
| 33438 | fi |
| 33439 | fi |
| 33440 | if test "$have_bzlib" = 'yes'; then |
| 33441 | BZLIB_DELEGATE_TRUE= |
| 33442 | BZLIB_DELEGATE_FALSE='#' |
| 33443 | else |
| 33444 | BZLIB_DELEGATE_TRUE='#' |
| 33445 | BZLIB_DELEGATE_FALSE= |
| 33446 | fi |
| 33447 | |
| 33448 | |
| 33449 | |
| 33450 | # |
| 33451 | # Find the X11 include and library directories. |
| 33452 | # |
| 33453 | IPC_LIBS='' |
| 33454 | X11_LIBS='' |
| 33455 | XEXT_LIBS='' |
| 33456 | XT_LIBS='' |
| 33457 | { $as_echo "$as_me:$LINENO: checking for X" >&5 |
| 33458 | $as_echo_n "checking for X... " >&6; } |
| 33459 | |
| 33460 | |
| 33461 | # Check whether --with-x was given. |
| 33462 | if test "${with_x+set}" = set; then |
| 33463 | withval=$with_x; |
| 33464 | fi |
| 33465 | |
| 33466 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 33467 | if test "x$with_x" = xno; then |
| 33468 | # The user explicitly disabled X. |
| 33469 | have_x=disabled |
| 33470 | else |
| 33471 | case $x_includes,$x_libraries in #( |
| 33472 | *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5 |
| 33473 | $as_echo "$as_me: error: cannot use X directory names containing '" >&2;} |
| 33474 | { (exit 1); exit 1; }; };; #( |
| 33475 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
| 33476 | $as_echo_n "(cached) " >&6 |
| 33477 | else |
| 33478 | # One or both of the vars are not set, and there is no cached value. |
| 33479 | ac_x_includes=no ac_x_libraries=no |
| 33480 | rm -f -r conftest.dir |
| 33481 | if mkdir conftest.dir; then |
| 33482 | cd conftest.dir |
| 33483 | cat >Imakefile <<'_ACEOF' |
| 33484 | incroot: |
| 33485 | @echo incroot='${INCROOT}' |
| 33486 | usrlibdir: |
| 33487 | @echo usrlibdir='${USRLIBDIR}' |
| 33488 | libdir: |
| 33489 | @echo libdir='${LIBDIR}' |
| 33490 | _ACEOF |
| 33491 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
| 33492 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 33493 | for ac_var in incroot usrlibdir libdir; do |
| 33494 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 33495 | done |
| 33496 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 33497 | for ac_extension in a so sl dylib la dll; do |
| 33498 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 33499 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
| 33500 | ac_im_usrlibdir=$ac_im_libdir; break |
| 33501 | fi |
| 33502 | done |
| 33503 | # Screen out bogus values from the imake configuration. They are |
| 33504 | # bogus both because they are the default anyway, and because |
| 33505 | # using them would break gcc on systems where it needs fixed includes. |
| 33506 | case $ac_im_incroot in |
| 33507 | /usr/include) ac_x_includes= ;; |
| 33508 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 33509 | esac |
| 33510 | case $ac_im_usrlibdir in |
| 33511 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
| 33512 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 33513 | esac |
| 33514 | fi |
| 33515 | cd .. |
| 33516 | rm -f -r conftest.dir |
| 33517 | fi |
| 33518 | |
| 33519 | # Standard set of common directories for X headers. |
| 33520 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 33521 | ac_x_header_dirs=' |
| 33522 | /usr/X11/include |
| 33523 | /usr/X11R6/include |
| 33524 | /usr/X11R5/include |
| 33525 | /usr/X11R4/include |
| 33526 | |
| 33527 | /usr/include/X11 |
| 33528 | /usr/include/X11R6 |
| 33529 | /usr/include/X11R5 |
| 33530 | /usr/include/X11R4 |
| 33531 | |
| 33532 | /usr/local/X11/include |
| 33533 | /usr/local/X11R6/include |
| 33534 | /usr/local/X11R5/include |
| 33535 | /usr/local/X11R4/include |
| 33536 | |
| 33537 | /usr/local/include/X11 |
| 33538 | /usr/local/include/X11R6 |
| 33539 | /usr/local/include/X11R5 |
| 33540 | /usr/local/include/X11R4 |
| 33541 | |
| 33542 | /usr/X386/include |
| 33543 | /usr/x386/include |
| 33544 | /usr/XFree86/include/X11 |
| 33545 | |
| 33546 | /usr/include |
| 33547 | /usr/local/include |
| 33548 | /usr/unsupported/include |
| 33549 | /usr/athena/include |
| 33550 | /usr/local/x11r5/include |
| 33551 | /usr/lpp/Xamples/include |
| 33552 | |
| 33553 | /usr/openwin/include |
| 33554 | /usr/openwin/share/include' |
| 33555 | |
| 33556 | if test "$ac_x_includes" = no; then |
| 33557 | # Guess where to find include files, by looking for Xlib.h. |
| 33558 | # First, try using that file with no special directory specified. |
| 33559 | cat >conftest.$ac_ext <<_ACEOF |
| 33560 | /* confdefs.h. */ |
| 33561 | _ACEOF |
| 33562 | cat confdefs.h >>conftest.$ac_ext |
| 33563 | cat >>conftest.$ac_ext <<_ACEOF |
| 33564 | /* end confdefs.h. */ |
| 33565 | #include <X11/Xlib.h> |
| 33566 | _ACEOF |
| 33567 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 33568 | case "(($ac_try" in |
| 33569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33570 | *) ac_try_echo=$ac_try;; |
| 33571 | esac |
| 33572 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 33573 | $as_echo "$ac_try_echo") >&5 |
| 33574 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 33575 | ac_status=$? |
| 33576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33577 | rm -f conftest.er1 |
| 33578 | cat conftest.err >&5 |
| 33579 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33580 | (exit $ac_status); } >/dev/null && { |
| 33581 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 33582 | test ! -s conftest.err |
| 33583 | }; then |
| 33584 | # We can compile using X headers with no special include directory. |
| 33585 | ac_x_includes= |
| 33586 | else |
| 33587 | $as_echo "$as_me: failed program was:" >&5 |
| 33588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33589 | |
| 33590 | for ac_dir in $ac_x_header_dirs; do |
| 33591 | if test -r "$ac_dir/X11/Xlib.h"; then |
| 33592 | ac_x_includes=$ac_dir |
| 33593 | break |
| 33594 | fi |
| 33595 | done |
| 33596 | fi |
| 33597 | |
| 33598 | rm -f conftest.err conftest.$ac_ext |
| 33599 | fi # $ac_x_includes = no |
| 33600 | |
| 33601 | if test "$ac_x_libraries" = no; then |
| 33602 | # Check for the libraries. |
| 33603 | # See if we find them without any special options. |
| 33604 | # Don't add to $LIBS permanently. |
| 33605 | ac_save_LIBS=$LIBS |
| 33606 | LIBS="-lX11 $LIBS" |
| 33607 | cat >conftest.$ac_ext <<_ACEOF |
| 33608 | /* confdefs.h. */ |
| 33609 | _ACEOF |
| 33610 | cat confdefs.h >>conftest.$ac_ext |
| 33611 | cat >>conftest.$ac_ext <<_ACEOF |
| 33612 | /* end confdefs.h. */ |
| 33613 | #include <X11/Xlib.h> |
| 33614 | int |
| 33615 | main () |
| 33616 | { |
| 33617 | XrmInitialize () |
| 33618 | ; |
| 33619 | return 0; |
| 33620 | } |
| 33621 | _ACEOF |
| 33622 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 33623 | if { (ac_try="$ac_link" |
| 33624 | case "(($ac_try" in |
| 33625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33626 | *) ac_try_echo=$ac_try;; |
| 33627 | esac |
| 33628 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 33629 | $as_echo "$ac_try_echo") >&5 |
| 33630 | (eval "$ac_link") 2>conftest.er1 |
| 33631 | ac_status=$? |
| 33632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33633 | rm -f conftest.er1 |
| 33634 | cat conftest.err >&5 |
| 33635 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33636 | (exit $ac_status); } && { |
| 33637 | test -z "$ac_c_werror_flag" || |
| 33638 | test ! -s conftest.err |
| 33639 | } && test -s conftest$ac_exeext && { |
| 33640 | test "$cross_compiling" = yes || |
| 33641 | $as_test_x conftest$ac_exeext |
| 33642 | }; then |
| 33643 | LIBS=$ac_save_LIBS |
| 33644 | # We can link X programs with no special library path. |
| 33645 | ac_x_libraries= |
| 33646 | else |
| 33647 | $as_echo "$as_me: failed program was:" >&5 |
| 33648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33649 | |
| 33650 | LIBS=$ac_save_LIBS |
| 33651 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 33652 | do |
| 33653 | # Don't even attempt the hair of trying to link an X program! |
| 33654 | for ac_extension in a so sl dylib la dll; do |
| 33655 | if test -r "$ac_dir/libX11.$ac_extension"; then |
| 33656 | ac_x_libraries=$ac_dir |
| 33657 | break 2 |
| 33658 | fi |
| 33659 | done |
| 33660 | done |
| 33661 | fi |
| 33662 | |
| 33663 | rm -rf conftest.dSYM |
| 33664 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 33665 | conftest$ac_exeext conftest.$ac_ext |
| 33666 | fi # $ac_x_libraries = no |
| 33667 | |
| 33668 | case $ac_x_includes,$ac_x_libraries in #( |
| 33669 | no,* | *,no | *\'*) |
| 33670 | # Didn't find X, or a directory has "'" in its name. |
| 33671 | ac_cv_have_x="have_x=no";; #( |
| 33672 | *) |
| 33673 | # Record where we found X for the cache. |
| 33674 | ac_cv_have_x="have_x=yes\ |
| 33675 | ac_x_includes='$ac_x_includes'\ |
| 33676 | ac_x_libraries='$ac_x_libraries'" |
| 33677 | esac |
| 33678 | fi |
| 33679 | ;; #( |
| 33680 | *) have_x=yes;; |
| 33681 | esac |
| 33682 | eval "$ac_cv_have_x" |
| 33683 | fi # $with_x != no |
| 33684 | |
| 33685 | if test "$have_x" != yes; then |
| 33686 | { $as_echo "$as_me:$LINENO: result: $have_x" >&5 |
| 33687 | $as_echo "$have_x" >&6; } |
| 33688 | no_x=yes |
| 33689 | else |
| 33690 | # If each of the values was on the command line, it overrides each guess. |
| 33691 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 33692 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 33693 | # Update the cache value to reflect the command line values. |
| 33694 | ac_cv_have_x="have_x=yes\ |
| 33695 | ac_x_includes='$x_includes'\ |
| 33696 | ac_x_libraries='$x_libraries'" |
| 33697 | { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 33698 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
| 33699 | fi |
| 33700 | |
| 33701 | if test "$no_x" = yes; then |
| 33702 | # Not all programs may use this symbol, but it does not hurt to define it. |
| 33703 | |
| 33704 | cat >>confdefs.h <<\_ACEOF |
| 33705 | #define X_DISPLAY_MISSING 1 |
| 33706 | _ACEOF |
| 33707 | |
| 33708 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 33709 | else |
| 33710 | if test -n "$x_includes"; then |
| 33711 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 33712 | fi |
| 33713 | |
| 33714 | # It would also be nice to do this for all -L options, not just this one. |
| 33715 | if test -n "$x_libraries"; then |
| 33716 | X_LIBS="$X_LIBS -L$x_libraries" |
| 33717 | # For Solaris; some versions of Sun CC require a space after -R and |
| 33718 | # others require no space. Words are not sufficient . . . . |
| 33719 | { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
| 33720 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
| 33721 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 33722 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 33723 | ac_c_werror_flag=yes |
| 33724 | cat >conftest.$ac_ext <<_ACEOF |
| 33725 | /* confdefs.h. */ |
| 33726 | _ACEOF |
| 33727 | cat confdefs.h >>conftest.$ac_ext |
| 33728 | cat >>conftest.$ac_ext <<_ACEOF |
| 33729 | /* end confdefs.h. */ |
| 33730 | |
| 33731 | int |
| 33732 | main () |
| 33733 | { |
| 33734 | |
| 33735 | ; |
| 33736 | return 0; |
| 33737 | } |
| 33738 | _ACEOF |
| 33739 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 33740 | if { (ac_try="$ac_link" |
| 33741 | case "(($ac_try" in |
| 33742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33743 | *) ac_try_echo=$ac_try;; |
| 33744 | esac |
| 33745 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 33746 | $as_echo "$ac_try_echo") >&5 |
| 33747 | (eval "$ac_link") 2>conftest.er1 |
| 33748 | ac_status=$? |
| 33749 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33750 | rm -f conftest.er1 |
| 33751 | cat conftest.err >&5 |
| 33752 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33753 | (exit $ac_status); } && { |
| 33754 | test -z "$ac_c_werror_flag" || |
| 33755 | test ! -s conftest.err |
| 33756 | } && test -s conftest$ac_exeext && { |
| 33757 | test "$cross_compiling" = yes || |
| 33758 | $as_test_x conftest$ac_exeext |
| 33759 | }; then |
| 33760 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 33761 | $as_echo "no" >&6; } |
| 33762 | X_LIBS="$X_LIBS -R$x_libraries" |
| 33763 | else |
| 33764 | $as_echo "$as_me: failed program was:" >&5 |
| 33765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33766 | |
| 33767 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 33768 | cat >conftest.$ac_ext <<_ACEOF |
| 33769 | /* confdefs.h. */ |
| 33770 | _ACEOF |
| 33771 | cat confdefs.h >>conftest.$ac_ext |
| 33772 | cat >>conftest.$ac_ext <<_ACEOF |
| 33773 | /* end confdefs.h. */ |
| 33774 | |
| 33775 | int |
| 33776 | main () |
| 33777 | { |
| 33778 | |
| 33779 | ; |
| 33780 | return 0; |
| 33781 | } |
| 33782 | _ACEOF |
| 33783 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 33784 | if { (ac_try="$ac_link" |
| 33785 | case "(($ac_try" in |
| 33786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33787 | *) ac_try_echo=$ac_try;; |
| 33788 | esac |
| 33789 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 33790 | $as_echo "$ac_try_echo") >&5 |
| 33791 | (eval "$ac_link") 2>conftest.er1 |
| 33792 | ac_status=$? |
| 33793 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33794 | rm -f conftest.er1 |
| 33795 | cat conftest.err >&5 |
| 33796 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33797 | (exit $ac_status); } && { |
| 33798 | test -z "$ac_c_werror_flag" || |
| 33799 | test ! -s conftest.err |
| 33800 | } && test -s conftest$ac_exeext && { |
| 33801 | test "$cross_compiling" = yes || |
| 33802 | $as_test_x conftest$ac_exeext |
| 33803 | }; then |
| 33804 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 33805 | $as_echo "yes" >&6; } |
| 33806 | X_LIBS="$X_LIBS -R $x_libraries" |
| 33807 | else |
| 33808 | $as_echo "$as_me: failed program was:" >&5 |
| 33809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33810 | |
| 33811 | { $as_echo "$as_me:$LINENO: result: neither works" >&5 |
| 33812 | $as_echo "neither works" >&6; } |
| 33813 | fi |
| 33814 | |
| 33815 | rm -rf conftest.dSYM |
| 33816 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 33817 | conftest$ac_exeext conftest.$ac_ext |
| 33818 | fi |
| 33819 | |
| 33820 | rm -rf conftest.dSYM |
| 33821 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 33822 | conftest$ac_exeext conftest.$ac_ext |
| 33823 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 33824 | LIBS=$ac_xsave_LIBS |
| 33825 | fi |
| 33826 | |
| 33827 | # Check for system-dependent libraries X programs must link with. |
| 33828 | # Do this before checking for the system-independent R6 libraries |
| 33829 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 33830 | |
| 33831 | if test "$ISC" = yes; then |
| 33832 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 33833 | else |
| 33834 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 33835 | # libraries were built with DECnet support. And Karl Berry says |
| 33836 | # the Alpha needs dnet_stub (dnet does not exist). |
| 33837 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 33838 | cat >conftest.$ac_ext <<_ACEOF |
| 33839 | /* confdefs.h. */ |
| 33840 | _ACEOF |
| 33841 | cat confdefs.h >>conftest.$ac_ext |
| 33842 | cat >>conftest.$ac_ext <<_ACEOF |
| 33843 | /* end confdefs.h. */ |
| 33844 | |
| 33845 | /* Override any GCC internal prototype to avoid an error. |
| 33846 | Use char because int might match the return type of a GCC |
| 33847 | builtin and then its argument prototype would still apply. */ |
| 33848 | #ifdef __cplusplus |
| 33849 | extern "C" |
| 33850 | #endif |
| 33851 | char XOpenDisplay (); |
| 33852 | int |
| 33853 | main () |
| 33854 | { |
| 33855 | return XOpenDisplay (); |
| 33856 | ; |
| 33857 | return 0; |
| 33858 | } |
| 33859 | _ACEOF |
| 33860 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 33861 | if { (ac_try="$ac_link" |
| 33862 | case "(($ac_try" in |
| 33863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33864 | *) ac_try_echo=$ac_try;; |
| 33865 | esac |
| 33866 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 33867 | $as_echo "$ac_try_echo") >&5 |
| 33868 | (eval "$ac_link") 2>conftest.er1 |
| 33869 | ac_status=$? |
| 33870 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33871 | rm -f conftest.er1 |
| 33872 | cat conftest.err >&5 |
| 33873 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33874 | (exit $ac_status); } && { |
| 33875 | test -z "$ac_c_werror_flag" || |
| 33876 | test ! -s conftest.err |
| 33877 | } && test -s conftest$ac_exeext && { |
| 33878 | test "$cross_compiling" = yes || |
| 33879 | $as_test_x conftest$ac_exeext |
| 33880 | }; then |
| 33881 | : |
| 33882 | else |
| 33883 | $as_echo "$as_me: failed program was:" >&5 |
| 33884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33885 | |
| 33886 | { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
| 33887 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
| 33888 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 33889 | $as_echo_n "(cached) " >&6 |
| 33890 | else |
| 33891 | ac_check_lib_save_LIBS=$LIBS |
| 33892 | LIBS="-ldnet $LIBS" |
| 33893 | cat >conftest.$ac_ext <<_ACEOF |
| 33894 | /* confdefs.h. */ |
| 33895 | _ACEOF |
| 33896 | cat confdefs.h >>conftest.$ac_ext |
| 33897 | cat >>conftest.$ac_ext <<_ACEOF |
| 33898 | /* end confdefs.h. */ |
| 33899 | |
| 33900 | /* Override any GCC internal prototype to avoid an error. |
| 33901 | Use char because int might match the return type of a GCC |
| 33902 | builtin and then its argument prototype would still apply. */ |
| 33903 | #ifdef __cplusplus |
| 33904 | extern "C" |
| 33905 | #endif |
| 33906 | char dnet_ntoa (); |
| 33907 | int |
| 33908 | main () |
| 33909 | { |
| 33910 | return dnet_ntoa (); |
| 33911 | ; |
| 33912 | return 0; |
| 33913 | } |
| 33914 | _ACEOF |
| 33915 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 33916 | if { (ac_try="$ac_link" |
| 33917 | case "(($ac_try" in |
| 33918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33919 | *) ac_try_echo=$ac_try;; |
| 33920 | esac |
| 33921 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 33922 | $as_echo "$ac_try_echo") >&5 |
| 33923 | (eval "$ac_link") 2>conftest.er1 |
| 33924 | ac_status=$? |
| 33925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33926 | rm -f conftest.er1 |
| 33927 | cat conftest.err >&5 |
| 33928 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33929 | (exit $ac_status); } && { |
| 33930 | test -z "$ac_c_werror_flag" || |
| 33931 | test ! -s conftest.err |
| 33932 | } && test -s conftest$ac_exeext && { |
| 33933 | test "$cross_compiling" = yes || |
| 33934 | $as_test_x conftest$ac_exeext |
| 33935 | }; then |
| 33936 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 33937 | else |
| 33938 | $as_echo "$as_me: failed program was:" >&5 |
| 33939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33940 | |
| 33941 | ac_cv_lib_dnet_dnet_ntoa=no |
| 33942 | fi |
| 33943 | |
| 33944 | rm -rf conftest.dSYM |
| 33945 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 33946 | conftest$ac_exeext conftest.$ac_ext |
| 33947 | LIBS=$ac_check_lib_save_LIBS |
| 33948 | fi |
| 33949 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 33950 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
| 33951 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then |
| 33952 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 33953 | fi |
| 33954 | |
| 33955 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
| 33956 | { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 33957 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
| 33958 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 33959 | $as_echo_n "(cached) " >&6 |
| 33960 | else |
| 33961 | ac_check_lib_save_LIBS=$LIBS |
| 33962 | LIBS="-ldnet_stub $LIBS" |
| 33963 | cat >conftest.$ac_ext <<_ACEOF |
| 33964 | /* confdefs.h. */ |
| 33965 | _ACEOF |
| 33966 | cat confdefs.h >>conftest.$ac_ext |
| 33967 | cat >>conftest.$ac_ext <<_ACEOF |
| 33968 | /* end confdefs.h. */ |
| 33969 | |
| 33970 | /* Override any GCC internal prototype to avoid an error. |
| 33971 | Use char because int might match the return type of a GCC |
| 33972 | builtin and then its argument prototype would still apply. */ |
| 33973 | #ifdef __cplusplus |
| 33974 | extern "C" |
| 33975 | #endif |
| 33976 | char dnet_ntoa (); |
| 33977 | int |
| 33978 | main () |
| 33979 | { |
| 33980 | return dnet_ntoa (); |
| 33981 | ; |
| 33982 | return 0; |
| 33983 | } |
| 33984 | _ACEOF |
| 33985 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 33986 | if { (ac_try="$ac_link" |
| 33987 | case "(($ac_try" in |
| 33988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33989 | *) ac_try_echo=$ac_try;; |
| 33990 | esac |
| 33991 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 33992 | $as_echo "$ac_try_echo") >&5 |
| 33993 | (eval "$ac_link") 2>conftest.er1 |
| 33994 | ac_status=$? |
| 33995 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33996 | rm -f conftest.er1 |
| 33997 | cat conftest.err >&5 |
| 33998 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33999 | (exit $ac_status); } && { |
| 34000 | test -z "$ac_c_werror_flag" || |
| 34001 | test ! -s conftest.err |
| 34002 | } && test -s conftest$ac_exeext && { |
| 34003 | test "$cross_compiling" = yes || |
| 34004 | $as_test_x conftest$ac_exeext |
| 34005 | }; then |
| 34006 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
| 34007 | else |
| 34008 | $as_echo "$as_me: failed program was:" >&5 |
| 34009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34010 | |
| 34011 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
| 34012 | fi |
| 34013 | |
| 34014 | rm -rf conftest.dSYM |
| 34015 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 34016 | conftest$ac_exeext conftest.$ac_ext |
| 34017 | LIBS=$ac_check_lib_save_LIBS |
| 34018 | fi |
| 34019 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 34020 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
| 34021 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then |
| 34022 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 34023 | fi |
| 34024 | |
| 34025 | fi |
| 34026 | fi |
| 34027 | |
| 34028 | rm -rf conftest.dSYM |
| 34029 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 34030 | conftest$ac_exeext conftest.$ac_ext |
| 34031 | LIBS="$ac_xsave_LIBS" |
| 34032 | |
| 34033 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 34034 | # to get the SysV transport functions. |
| 34035 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 34036 | # needs -lnsl. |
| 34037 | # The nsl library prevents programs from opening the X display |
| 34038 | # on Irix 5.2, according to T.E. Dickey. |
| 34039 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 34040 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
| 34041 | { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 34042 | $as_echo_n "checking for gethostbyname... " >&6; } |
| 34043 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 34044 | $as_echo_n "(cached) " >&6 |
| 34045 | else |
| 34046 | cat >conftest.$ac_ext <<_ACEOF |
| 34047 | /* confdefs.h. */ |
| 34048 | _ACEOF |
| 34049 | cat confdefs.h >>conftest.$ac_ext |
| 34050 | cat >>conftest.$ac_ext <<_ACEOF |
| 34051 | /* end confdefs.h. */ |
| 34052 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 34053 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 34054 | #define gethostbyname innocuous_gethostbyname |
| 34055 | |
| 34056 | /* System header to define __stub macros and hopefully few prototypes, |
| 34057 | which can conflict with char gethostbyname (); below. |
| 34058 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 34059 | <limits.h> exists even on freestanding compilers. */ |
| 34060 | |
| 34061 | #ifdef __STDC__ |
| 34062 | # include <limits.h> |
| 34063 | #else |
| 34064 | # include <assert.h> |
| 34065 | #endif |
| 34066 | |
| 34067 | #undef gethostbyname |
| 34068 | |
| 34069 | /* Override any GCC internal prototype to avoid an error. |
| 34070 | Use char because int might match the return type of a GCC |
| 34071 | builtin and then its argument prototype would still apply. */ |
| 34072 | #ifdef __cplusplus |
| 34073 | extern "C" |
| 34074 | #endif |
| 34075 | char gethostbyname (); |
| 34076 | /* The GNU C library defines this for functions which it implements |
| 34077 | to always fail with ENOSYS. Some functions are actually named |
| 34078 | something starting with __ and the normal name is an alias. */ |
| 34079 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
| 34080 | choke me |
| 34081 | #endif |
| 34082 | |
| 34083 | int |
| 34084 | main () |
| 34085 | { |
| 34086 | return gethostbyname (); |
| 34087 | ; |
| 34088 | return 0; |
| 34089 | } |
| 34090 | _ACEOF |
| 34091 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34092 | if { (ac_try="$ac_link" |
| 34093 | case "(($ac_try" in |
| 34094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34095 | *) ac_try_echo=$ac_try;; |
| 34096 | esac |
| 34097 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 34098 | $as_echo "$ac_try_echo") >&5 |
| 34099 | (eval "$ac_link") 2>conftest.er1 |
| 34100 | ac_status=$? |
| 34101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34102 | rm -f conftest.er1 |
| 34103 | cat conftest.err >&5 |
| 34104 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34105 | (exit $ac_status); } && { |
| 34106 | test -z "$ac_c_werror_flag" || |
| 34107 | test ! -s conftest.err |
| 34108 | } && test -s conftest$ac_exeext && { |
| 34109 | test "$cross_compiling" = yes || |
| 34110 | $as_test_x conftest$ac_exeext |
| 34111 | }; then |
| 34112 | ac_cv_func_gethostbyname=yes |
| 34113 | else |
| 34114 | $as_echo "$as_me: failed program was:" >&5 |
| 34115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34116 | |
| 34117 | ac_cv_func_gethostbyname=no |
| 34118 | fi |
| 34119 | |
| 34120 | rm -rf conftest.dSYM |
| 34121 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 34122 | conftest$ac_exeext conftest.$ac_ext |
| 34123 | fi |
| 34124 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 34125 | $as_echo "$ac_cv_func_gethostbyname" >&6; } |
| 34126 | |
| 34127 | if test $ac_cv_func_gethostbyname = no; then |
| 34128 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 34129 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
| 34130 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 34131 | $as_echo_n "(cached) " >&6 |
| 34132 | else |
| 34133 | ac_check_lib_save_LIBS=$LIBS |
| 34134 | LIBS="-lnsl $LIBS" |
| 34135 | cat >conftest.$ac_ext <<_ACEOF |
| 34136 | /* confdefs.h. */ |
| 34137 | _ACEOF |
| 34138 | cat confdefs.h >>conftest.$ac_ext |
| 34139 | cat >>conftest.$ac_ext <<_ACEOF |
| 34140 | /* end confdefs.h. */ |
| 34141 | |
| 34142 | /* Override any GCC internal prototype to avoid an error. |
| 34143 | Use char because int might match the return type of a GCC |
| 34144 | builtin and then its argument prototype would still apply. */ |
| 34145 | #ifdef __cplusplus |
| 34146 | extern "C" |
| 34147 | #endif |
| 34148 | char gethostbyname (); |
| 34149 | int |
| 34150 | main () |
| 34151 | { |
| 34152 | return gethostbyname (); |
| 34153 | ; |
| 34154 | return 0; |
| 34155 | } |
| 34156 | _ACEOF |
| 34157 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34158 | if { (ac_try="$ac_link" |
| 34159 | case "(($ac_try" in |
| 34160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34161 | *) ac_try_echo=$ac_try;; |
| 34162 | esac |
| 34163 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 34164 | $as_echo "$ac_try_echo") >&5 |
| 34165 | (eval "$ac_link") 2>conftest.er1 |
| 34166 | ac_status=$? |
| 34167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34168 | rm -f conftest.er1 |
| 34169 | cat conftest.err >&5 |
| 34170 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34171 | (exit $ac_status); } && { |
| 34172 | test -z "$ac_c_werror_flag" || |
| 34173 | test ! -s conftest.err |
| 34174 | } && test -s conftest$ac_exeext && { |
| 34175 | test "$cross_compiling" = yes || |
| 34176 | $as_test_x conftest$ac_exeext |
| 34177 | }; then |
| 34178 | ac_cv_lib_nsl_gethostbyname=yes |
| 34179 | else |
| 34180 | $as_echo "$as_me: failed program was:" >&5 |
| 34181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34182 | |
| 34183 | ac_cv_lib_nsl_gethostbyname=no |
| 34184 | fi |
| 34185 | |
| 34186 | rm -rf conftest.dSYM |
| 34187 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 34188 | conftest$ac_exeext conftest.$ac_ext |
| 34189 | LIBS=$ac_check_lib_save_LIBS |
| 34190 | fi |
| 34191 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 34192 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
| 34193 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then |
| 34194 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 34195 | fi |
| 34196 | |
| 34197 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
| 34198 | { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 34199 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
| 34200 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 34201 | $as_echo_n "(cached) " >&6 |
| 34202 | else |
| 34203 | ac_check_lib_save_LIBS=$LIBS |
| 34204 | LIBS="-lbsd $LIBS" |
| 34205 | cat >conftest.$ac_ext <<_ACEOF |
| 34206 | /* confdefs.h. */ |
| 34207 | _ACEOF |
| 34208 | cat confdefs.h >>conftest.$ac_ext |
| 34209 | cat >>conftest.$ac_ext <<_ACEOF |
| 34210 | /* end confdefs.h. */ |
| 34211 | |
| 34212 | /* Override any GCC internal prototype to avoid an error. |
| 34213 | Use char because int might match the return type of a GCC |
| 34214 | builtin and then its argument prototype would still apply. */ |
| 34215 | #ifdef __cplusplus |
| 34216 | extern "C" |
| 34217 | #endif |
| 34218 | char gethostbyname (); |
| 34219 | int |
| 34220 | main () |
| 34221 | { |
| 34222 | return gethostbyname (); |
| 34223 | ; |
| 34224 | return 0; |
| 34225 | } |
| 34226 | _ACEOF |
| 34227 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34228 | if { (ac_try="$ac_link" |
| 34229 | case "(($ac_try" in |
| 34230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34231 | *) ac_try_echo=$ac_try;; |
| 34232 | esac |
| 34233 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 34234 | $as_echo "$ac_try_echo") >&5 |
| 34235 | (eval "$ac_link") 2>conftest.er1 |
| 34236 | ac_status=$? |
| 34237 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34238 | rm -f conftest.er1 |
| 34239 | cat conftest.err >&5 |
| 34240 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34241 | (exit $ac_status); } && { |
| 34242 | test -z "$ac_c_werror_flag" || |
| 34243 | test ! -s conftest.err |
| 34244 | } && test -s conftest$ac_exeext && { |
| 34245 | test "$cross_compiling" = yes || |
| 34246 | $as_test_x conftest$ac_exeext |
| 34247 | }; then |
| 34248 | ac_cv_lib_bsd_gethostbyname=yes |
| 34249 | else |
| 34250 | $as_echo "$as_me: failed program was:" >&5 |
| 34251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34252 | |
| 34253 | ac_cv_lib_bsd_gethostbyname=no |
| 34254 | fi |
| 34255 | |
| 34256 | rm -rf conftest.dSYM |
| 34257 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 34258 | conftest$ac_exeext conftest.$ac_ext |
| 34259 | LIBS=$ac_check_lib_save_LIBS |
| 34260 | fi |
| 34261 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 34262 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
| 34263 | if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then |
| 34264 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 34265 | fi |
| 34266 | |
| 34267 | fi |
| 34268 | fi |
| 34269 | |
| 34270 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 34271 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 34272 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 34273 | # on later versions), says Simon Leinen: it contains gethostby* |
| 34274 | # variants that don't use the name server (or something). -lsocket |
| 34275 | # must be given before -lnsl if both are needed. We assume that |
| 34276 | # if connect needs -lnsl, so does gethostbyname. |
| 34277 | { $as_echo "$as_me:$LINENO: checking for connect" >&5 |
| 34278 | $as_echo_n "checking for connect... " >&6; } |
| 34279 | if test "${ac_cv_func_connect+set}" = set; then |
| 34280 | $as_echo_n "(cached) " >&6 |
| 34281 | else |
| 34282 | cat >conftest.$ac_ext <<_ACEOF |
| 34283 | /* confdefs.h. */ |
| 34284 | _ACEOF |
| 34285 | cat confdefs.h >>conftest.$ac_ext |
| 34286 | cat >>conftest.$ac_ext <<_ACEOF |
| 34287 | /* end confdefs.h. */ |
| 34288 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 34289 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 34290 | #define connect innocuous_connect |
| 34291 | |
| 34292 | /* System header to define __stub macros and hopefully few prototypes, |
| 34293 | which can conflict with char connect (); below. |
| 34294 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 34295 | <limits.h> exists even on freestanding compilers. */ |
| 34296 | |
| 34297 | #ifdef __STDC__ |
| 34298 | # include <limits.h> |
| 34299 | #else |
| 34300 | # include <assert.h> |
| 34301 | #endif |
| 34302 | |
| 34303 | #undef connect |
| 34304 | |
| 34305 | /* Override any GCC internal prototype to avoid an error. |
| 34306 | Use char because int might match the return type of a GCC |
| 34307 | builtin and then its argument prototype would still apply. */ |
| 34308 | #ifdef __cplusplus |
| 34309 | extern "C" |
| 34310 | #endif |
| 34311 | char connect (); |
| 34312 | /* The GNU C library defines this for functions which it implements |
| 34313 | to always fail with ENOSYS. Some functions are actually named |
| 34314 | something starting with __ and the normal name is an alias. */ |
| 34315 | #if defined __stub_connect || defined __stub___connect |
| 34316 | choke me |
| 34317 | #endif |
| 34318 | |
| 34319 | int |
| 34320 | main () |
| 34321 | { |
| 34322 | return connect (); |
| 34323 | ; |
| 34324 | return 0; |
| 34325 | } |
| 34326 | _ACEOF |
| 34327 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34328 | if { (ac_try="$ac_link" |
| 34329 | case "(($ac_try" in |
| 34330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34331 | *) ac_try_echo=$ac_try;; |
| 34332 | esac |
| 34333 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 34334 | $as_echo "$ac_try_echo") >&5 |
| 34335 | (eval "$ac_link") 2>conftest.er1 |
| 34336 | ac_status=$? |
| 34337 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34338 | rm -f conftest.er1 |
| 34339 | cat conftest.err >&5 |
| 34340 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34341 | (exit $ac_status); } && { |
| 34342 | test -z "$ac_c_werror_flag" || |
| 34343 | test ! -s conftest.err |
| 34344 | } && test -s conftest$ac_exeext && { |
| 34345 | test "$cross_compiling" = yes || |
| 34346 | $as_test_x conftest$ac_exeext |
| 34347 | }; then |
| 34348 | ac_cv_func_connect=yes |
| 34349 | else |
| 34350 | $as_echo "$as_me: failed program was:" >&5 |
| 34351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34352 | |
| 34353 | ac_cv_func_connect=no |
| 34354 | fi |
| 34355 | |
| 34356 | rm -rf conftest.dSYM |
| 34357 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 34358 | conftest$ac_exeext conftest.$ac_ext |
| 34359 | fi |
| 34360 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
| 34361 | $as_echo "$ac_cv_func_connect" >&6; } |
| 34362 | |
| 34363 | if test $ac_cv_func_connect = no; then |
| 34364 | { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 34365 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
| 34366 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 34367 | $as_echo_n "(cached) " >&6 |
| 34368 | else |
| 34369 | ac_check_lib_save_LIBS=$LIBS |
| 34370 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
| 34371 | cat >conftest.$ac_ext <<_ACEOF |
| 34372 | /* confdefs.h. */ |
| 34373 | _ACEOF |
| 34374 | cat confdefs.h >>conftest.$ac_ext |
| 34375 | cat >>conftest.$ac_ext <<_ACEOF |
| 34376 | /* end confdefs.h. */ |
| 34377 | |
| 34378 | /* Override any GCC internal prototype to avoid an error. |
| 34379 | Use char because int might match the return type of a GCC |
| 34380 | builtin and then its argument prototype would still apply. */ |
| 34381 | #ifdef __cplusplus |
| 34382 | extern "C" |
| 34383 | #endif |
| 34384 | char connect (); |
| 34385 | int |
| 34386 | main () |
| 34387 | { |
| 34388 | return connect (); |
| 34389 | ; |
| 34390 | return 0; |
| 34391 | } |
| 34392 | _ACEOF |
| 34393 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34394 | if { (ac_try="$ac_link" |
| 34395 | case "(($ac_try" in |
| 34396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34397 | *) ac_try_echo=$ac_try;; |
| 34398 | esac |
| 34399 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 34400 | $as_echo "$ac_try_echo") >&5 |
| 34401 | (eval "$ac_link") 2>conftest.er1 |
| 34402 | ac_status=$? |
| 34403 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34404 | rm -f conftest.er1 |
| 34405 | cat conftest.err >&5 |
| 34406 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34407 | (exit $ac_status); } && { |
| 34408 | test -z "$ac_c_werror_flag" || |
| 34409 | test ! -s conftest.err |
| 34410 | } && test -s conftest$ac_exeext && { |
| 34411 | test "$cross_compiling" = yes || |
| 34412 | $as_test_x conftest$ac_exeext |
| 34413 | }; then |
| 34414 | ac_cv_lib_socket_connect=yes |
| 34415 | else |
| 34416 | $as_echo "$as_me: failed program was:" >&5 |
| 34417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34418 | |
| 34419 | ac_cv_lib_socket_connect=no |
| 34420 | fi |
| 34421 | |
| 34422 | rm -rf conftest.dSYM |
| 34423 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 34424 | conftest$ac_exeext conftest.$ac_ext |
| 34425 | LIBS=$ac_check_lib_save_LIBS |
| 34426 | fi |
| 34427 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 34428 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
| 34429 | if test "x$ac_cv_lib_socket_connect" = x""yes; then |
| 34430 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 34431 | fi |
| 34432 | |
| 34433 | fi |
| 34434 | |
| 34435 | # Guillermo Gomez says -lposix is necessary on A/UX. |
| 34436 | { $as_echo "$as_me:$LINENO: checking for remove" >&5 |
| 34437 | $as_echo_n "checking for remove... " >&6; } |
| 34438 | if test "${ac_cv_func_remove+set}" = set; then |
| 34439 | $as_echo_n "(cached) " >&6 |
| 34440 | else |
| 34441 | cat >conftest.$ac_ext <<_ACEOF |
| 34442 | /* confdefs.h. */ |
| 34443 | _ACEOF |
| 34444 | cat confdefs.h >>conftest.$ac_ext |
| 34445 | cat >>conftest.$ac_ext <<_ACEOF |
| 34446 | /* end confdefs.h. */ |
| 34447 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 34448 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 34449 | #define remove innocuous_remove |
| 34450 | |
| 34451 | /* System header to define __stub macros and hopefully few prototypes, |
| 34452 | which can conflict with char remove (); below. |
| 34453 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 34454 | <limits.h> exists even on freestanding compilers. */ |
| 34455 | |
| 34456 | #ifdef __STDC__ |
| 34457 | # include <limits.h> |
| 34458 | #else |
| 34459 | # include <assert.h> |
| 34460 | #endif |
| 34461 | |
| 34462 | #undef remove |
| 34463 | |
| 34464 | /* Override any GCC internal prototype to avoid an error. |
| 34465 | Use char because int might match the return type of a GCC |
| 34466 | builtin and then its argument prototype would still apply. */ |
| 34467 | #ifdef __cplusplus |
| 34468 | extern "C" |
| 34469 | #endif |
| 34470 | char remove (); |
| 34471 | /* The GNU C library defines this for functions which it implements |
| 34472 | to always fail with ENOSYS. Some functions are actually named |
| 34473 | something starting with __ and the normal name is an alias. */ |
| 34474 | #if defined __stub_remove || defined __stub___remove |
| 34475 | choke me |
| 34476 | #endif |
| 34477 | |
| 34478 | int |
| 34479 | main () |
| 34480 | { |
| 34481 | return remove (); |
| 34482 | ; |
| 34483 | return 0; |
| 34484 | } |
| 34485 | _ACEOF |
| 34486 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34487 | if { (ac_try="$ac_link" |
| 34488 | case "(($ac_try" in |
| 34489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34490 | *) ac_try_echo=$ac_try;; |
| 34491 | esac |
| 34492 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 34493 | $as_echo "$ac_try_echo") >&5 |
| 34494 | (eval "$ac_link") 2>conftest.er1 |
| 34495 | ac_status=$? |
| 34496 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34497 | rm -f conftest.er1 |
| 34498 | cat conftest.err >&5 |
| 34499 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34500 | (exit $ac_status); } && { |
| 34501 | test -z "$ac_c_werror_flag" || |
| 34502 | test ! -s conftest.err |
| 34503 | } && test -s conftest$ac_exeext && { |
| 34504 | test "$cross_compiling" = yes || |
| 34505 | $as_test_x conftest$ac_exeext |
| 34506 | }; then |
| 34507 | ac_cv_func_remove=yes |
| 34508 | else |
| 34509 | $as_echo "$as_me: failed program was:" >&5 |
| 34510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34511 | |
| 34512 | ac_cv_func_remove=no |
| 34513 | fi |
| 34514 | |
| 34515 | rm -rf conftest.dSYM |
| 34516 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 34517 | conftest$ac_exeext conftest.$ac_ext |
| 34518 | fi |
| 34519 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
| 34520 | $as_echo "$ac_cv_func_remove" >&6; } |
| 34521 | |
| 34522 | if test $ac_cv_func_remove = no; then |
| 34523 | { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
| 34524 | $as_echo_n "checking for remove in -lposix... " >&6; } |
| 34525 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 34526 | $as_echo_n "(cached) " >&6 |
| 34527 | else |
| 34528 | ac_check_lib_save_LIBS=$LIBS |
| 34529 | LIBS="-lposix $LIBS" |
| 34530 | cat >conftest.$ac_ext <<_ACEOF |
| 34531 | /* confdefs.h. */ |
| 34532 | _ACEOF |
| 34533 | cat confdefs.h >>conftest.$ac_ext |
| 34534 | cat >>conftest.$ac_ext <<_ACEOF |
| 34535 | /* end confdefs.h. */ |
| 34536 | |
| 34537 | /* Override any GCC internal prototype to avoid an error. |
| 34538 | Use char because int might match the return type of a GCC |
| 34539 | builtin and then its argument prototype would still apply. */ |
| 34540 | #ifdef __cplusplus |
| 34541 | extern "C" |
| 34542 | #endif |
| 34543 | char remove (); |
| 34544 | int |
| 34545 | main () |
| 34546 | { |
| 34547 | return remove (); |
| 34548 | ; |
| 34549 | return 0; |
| 34550 | } |
| 34551 | _ACEOF |
| 34552 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34553 | if { (ac_try="$ac_link" |
| 34554 | case "(($ac_try" in |
| 34555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34556 | *) ac_try_echo=$ac_try;; |
| 34557 | esac |
| 34558 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 34559 | $as_echo "$ac_try_echo") >&5 |
| 34560 | (eval "$ac_link") 2>conftest.er1 |
| 34561 | ac_status=$? |
| 34562 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34563 | rm -f conftest.er1 |
| 34564 | cat conftest.err >&5 |
| 34565 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34566 | (exit $ac_status); } && { |
| 34567 | test -z "$ac_c_werror_flag" || |
| 34568 | test ! -s conftest.err |
| 34569 | } && test -s conftest$ac_exeext && { |
| 34570 | test "$cross_compiling" = yes || |
| 34571 | $as_test_x conftest$ac_exeext |
| 34572 | }; then |
| 34573 | ac_cv_lib_posix_remove=yes |
| 34574 | else |
| 34575 | $as_echo "$as_me: failed program was:" >&5 |
| 34576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34577 | |
| 34578 | ac_cv_lib_posix_remove=no |
| 34579 | fi |
| 34580 | |
| 34581 | rm -rf conftest.dSYM |
| 34582 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 34583 | conftest$ac_exeext conftest.$ac_ext |
| 34584 | LIBS=$ac_check_lib_save_LIBS |
| 34585 | fi |
| 34586 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
| 34587 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
| 34588 | if test "x$ac_cv_lib_posix_remove" = x""yes; then |
| 34589 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 34590 | fi |
| 34591 | |
| 34592 | fi |
| 34593 | |
| 34594 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
| 34595 | { $as_echo "$as_me:$LINENO: checking for shmat" >&5 |
| 34596 | $as_echo_n "checking for shmat... " >&6; } |
| 34597 | if test "${ac_cv_func_shmat+set}" = set; then |
| 34598 | $as_echo_n "(cached) " >&6 |
| 34599 | else |
| 34600 | cat >conftest.$ac_ext <<_ACEOF |
| 34601 | /* confdefs.h. */ |
| 34602 | _ACEOF |
| 34603 | cat confdefs.h >>conftest.$ac_ext |
| 34604 | cat >>conftest.$ac_ext <<_ACEOF |
| 34605 | /* end confdefs.h. */ |
| 34606 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 34607 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 34608 | #define shmat innocuous_shmat |
| 34609 | |
| 34610 | /* System header to define __stub macros and hopefully few prototypes, |
| 34611 | which can conflict with char shmat (); below. |
| 34612 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 34613 | <limits.h> exists even on freestanding compilers. */ |
| 34614 | |
| 34615 | #ifdef __STDC__ |
| 34616 | # include <limits.h> |
| 34617 | #else |
| 34618 | # include <assert.h> |
| 34619 | #endif |
| 34620 | |
| 34621 | #undef shmat |
| 34622 | |
| 34623 | /* Override any GCC internal prototype to avoid an error. |
| 34624 | Use char because int might match the return type of a GCC |
| 34625 | builtin and then its argument prototype would still apply. */ |
| 34626 | #ifdef __cplusplus |
| 34627 | extern "C" |
| 34628 | #endif |
| 34629 | char shmat (); |
| 34630 | /* The GNU C library defines this for functions which it implements |
| 34631 | to always fail with ENOSYS. Some functions are actually named |
| 34632 | something starting with __ and the normal name is an alias. */ |
| 34633 | #if defined __stub_shmat || defined __stub___shmat |
| 34634 | choke me |
| 34635 | #endif |
| 34636 | |
| 34637 | int |
| 34638 | main () |
| 34639 | { |
| 34640 | return shmat (); |
| 34641 | ; |
| 34642 | return 0; |
| 34643 | } |
| 34644 | _ACEOF |
| 34645 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34646 | if { (ac_try="$ac_link" |
| 34647 | case "(($ac_try" in |
| 34648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34649 | *) ac_try_echo=$ac_try;; |
| 34650 | esac |
| 34651 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 34652 | $as_echo "$ac_try_echo") >&5 |
| 34653 | (eval "$ac_link") 2>conftest.er1 |
| 34654 | ac_status=$? |
| 34655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34656 | rm -f conftest.er1 |
| 34657 | cat conftest.err >&5 |
| 34658 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34659 | (exit $ac_status); } && { |
| 34660 | test -z "$ac_c_werror_flag" || |
| 34661 | test ! -s conftest.err |
| 34662 | } && test -s conftest$ac_exeext && { |
| 34663 | test "$cross_compiling" = yes || |
| 34664 | $as_test_x conftest$ac_exeext |
| 34665 | }; then |
| 34666 | ac_cv_func_shmat=yes |
| 34667 | else |
| 34668 | $as_echo "$as_me: failed program was:" >&5 |
| 34669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34670 | |
| 34671 | ac_cv_func_shmat=no |
| 34672 | fi |
| 34673 | |
| 34674 | rm -rf conftest.dSYM |
| 34675 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 34676 | conftest$ac_exeext conftest.$ac_ext |
| 34677 | fi |
| 34678 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
| 34679 | $as_echo "$ac_cv_func_shmat" >&6; } |
| 34680 | |
| 34681 | if test $ac_cv_func_shmat = no; then |
| 34682 | { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
| 34683 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
| 34684 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 34685 | $as_echo_n "(cached) " >&6 |
| 34686 | else |
| 34687 | ac_check_lib_save_LIBS=$LIBS |
| 34688 | LIBS="-lipc $LIBS" |
| 34689 | cat >conftest.$ac_ext <<_ACEOF |
| 34690 | /* confdefs.h. */ |
| 34691 | _ACEOF |
| 34692 | cat confdefs.h >>conftest.$ac_ext |
| 34693 | cat >>conftest.$ac_ext <<_ACEOF |
| 34694 | /* end confdefs.h. */ |
| 34695 | |
| 34696 | /* Override any GCC internal prototype to avoid an error. |
| 34697 | Use char because int might match the return type of a GCC |
| 34698 | builtin and then its argument prototype would still apply. */ |
| 34699 | #ifdef __cplusplus |
| 34700 | extern "C" |
| 34701 | #endif |
| 34702 | char shmat (); |
| 34703 | int |
| 34704 | main () |
| 34705 | { |
| 34706 | return shmat (); |
| 34707 | ; |
| 34708 | return 0; |
| 34709 | } |
| 34710 | _ACEOF |
| 34711 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34712 | if { (ac_try="$ac_link" |
| 34713 | case "(($ac_try" in |
| 34714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34715 | *) ac_try_echo=$ac_try;; |
| 34716 | esac |
| 34717 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 34718 | $as_echo "$ac_try_echo") >&5 |
| 34719 | (eval "$ac_link") 2>conftest.er1 |
| 34720 | ac_status=$? |
| 34721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34722 | rm -f conftest.er1 |
| 34723 | cat conftest.err >&5 |
| 34724 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34725 | (exit $ac_status); } && { |
| 34726 | test -z "$ac_c_werror_flag" || |
| 34727 | test ! -s conftest.err |
| 34728 | } && test -s conftest$ac_exeext && { |
| 34729 | test "$cross_compiling" = yes || |
| 34730 | $as_test_x conftest$ac_exeext |
| 34731 | }; then |
| 34732 | ac_cv_lib_ipc_shmat=yes |
| 34733 | else |
| 34734 | $as_echo "$as_me: failed program was:" >&5 |
| 34735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34736 | |
| 34737 | ac_cv_lib_ipc_shmat=no |
| 34738 | fi |
| 34739 | |
| 34740 | rm -rf conftest.dSYM |
| 34741 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 34742 | conftest$ac_exeext conftest.$ac_ext |
| 34743 | LIBS=$ac_check_lib_save_LIBS |
| 34744 | fi |
| 34745 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
| 34746 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
| 34747 | if test "x$ac_cv_lib_ipc_shmat" = x""yes; then |
| 34748 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 34749 | fi |
| 34750 | |
| 34751 | fi |
| 34752 | fi |
| 34753 | |
| 34754 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 34755 | ac_save_LDFLAGS=$LDFLAGS |
| 34756 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 34757 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 34758 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 34759 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 34760 | # These have to be linked with before -lX11, unlike the other |
| 34761 | # libraries we check for below, so use a different variable. |
| 34762 | # John Interrante, Karl Berry |
| 34763 | { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
| 34764 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
| 34765 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 34766 | $as_echo_n "(cached) " >&6 |
| 34767 | else |
| 34768 | ac_check_lib_save_LIBS=$LIBS |
| 34769 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
| 34770 | cat >conftest.$ac_ext <<_ACEOF |
| 34771 | /* confdefs.h. */ |
| 34772 | _ACEOF |
| 34773 | cat confdefs.h >>conftest.$ac_ext |
| 34774 | cat >>conftest.$ac_ext <<_ACEOF |
| 34775 | /* end confdefs.h. */ |
| 34776 | |
| 34777 | /* Override any GCC internal prototype to avoid an error. |
| 34778 | Use char because int might match the return type of a GCC |
| 34779 | builtin and then its argument prototype would still apply. */ |
| 34780 | #ifdef __cplusplus |
| 34781 | extern "C" |
| 34782 | #endif |
| 34783 | char IceConnectionNumber (); |
| 34784 | int |
| 34785 | main () |
| 34786 | { |
| 34787 | return IceConnectionNumber (); |
| 34788 | ; |
| 34789 | return 0; |
| 34790 | } |
| 34791 | _ACEOF |
| 34792 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34793 | if { (ac_try="$ac_link" |
| 34794 | case "(($ac_try" in |
| 34795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34796 | *) ac_try_echo=$ac_try;; |
| 34797 | esac |
| 34798 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 34799 | $as_echo "$ac_try_echo") >&5 |
| 34800 | (eval "$ac_link") 2>conftest.er1 |
| 34801 | ac_status=$? |
| 34802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34803 | rm -f conftest.er1 |
| 34804 | cat conftest.err >&5 |
| 34805 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34806 | (exit $ac_status); } && { |
| 34807 | test -z "$ac_c_werror_flag" || |
| 34808 | test ! -s conftest.err |
| 34809 | } && test -s conftest$ac_exeext && { |
| 34810 | test "$cross_compiling" = yes || |
| 34811 | $as_test_x conftest$ac_exeext |
| 34812 | }; then |
| 34813 | ac_cv_lib_ICE_IceConnectionNumber=yes |
| 34814 | else |
| 34815 | $as_echo "$as_me: failed program was:" >&5 |
| 34816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34817 | |
| 34818 | ac_cv_lib_ICE_IceConnectionNumber=no |
| 34819 | fi |
| 34820 | |
| 34821 | rm -rf conftest.dSYM |
| 34822 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 34823 | conftest$ac_exeext conftest.$ac_ext |
| 34824 | LIBS=$ac_check_lib_save_LIBS |
| 34825 | fi |
| 34826 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 34827 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
| 34828 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then |
| 34829 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 34830 | fi |
| 34831 | |
| 34832 | LDFLAGS=$ac_save_LDFLAGS |
| 34833 | |
| 34834 | fi |
| 34835 | |
| 34836 | if test "$no_x" != 'yes'; then |
| 34837 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 34838 | $as_echo "-------------------------------------------------------------" >&6; } |
| 34839 | { $as_echo "$as_me:$LINENO: checking for X11" >&5 |
| 34840 | $as_echo_n "checking for X11... " >&6; } |
| 34841 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 34842 | $as_echo "" >&6; } |
| 34843 | LDFLAGS="$LDFLAGS $X_LIBS" |
| 34844 | X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS" |
| 34845 | LIBS="$X11_LIBS $LIBS" |
| 34846 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 34847 | |
| 34848 | |
| 34849 | cat >>confdefs.h <<\_ACEOF |
| 34850 | #define X11_DELEGATE 1 |
| 34851 | _ACEOF |
| 34852 | |
| 34853 | # |
| 34854 | # Check for X11 shared memory extension |
| 34855 | # |
| 34856 | # shmctl is required to support the shared memory extension |
| 34857 | { $as_echo "$as_me:$LINENO: checking for shmctl" >&5 |
| 34858 | $as_echo_n "checking for shmctl... " >&6; } |
| 34859 | if test "${ac_cv_func_shmctl+set}" = set; then |
| 34860 | $as_echo_n "(cached) " >&6 |
| 34861 | else |
| 34862 | cat >conftest.$ac_ext <<_ACEOF |
| 34863 | /* confdefs.h. */ |
| 34864 | _ACEOF |
| 34865 | cat confdefs.h >>conftest.$ac_ext |
| 34866 | cat >>conftest.$ac_ext <<_ACEOF |
| 34867 | /* end confdefs.h. */ |
| 34868 | /* Define shmctl to an innocuous variant, in case <limits.h> declares shmctl. |
| 34869 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 34870 | #define shmctl innocuous_shmctl |
| 34871 | |
| 34872 | /* System header to define __stub macros and hopefully few prototypes, |
| 34873 | which can conflict with char shmctl (); below. |
| 34874 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 34875 | <limits.h> exists even on freestanding compilers. */ |
| 34876 | |
| 34877 | #ifdef __STDC__ |
| 34878 | # include <limits.h> |
| 34879 | #else |
| 34880 | # include <assert.h> |
| 34881 | #endif |
| 34882 | |
| 34883 | #undef shmctl |
| 34884 | |
| 34885 | /* Override any GCC internal prototype to avoid an error. |
| 34886 | Use char because int might match the return type of a GCC |
| 34887 | builtin and then its argument prototype would still apply. */ |
| 34888 | #ifdef __cplusplus |
| 34889 | extern "C" |
| 34890 | #endif |
| 34891 | char shmctl (); |
| 34892 | /* The GNU C library defines this for functions which it implements |
| 34893 | to always fail with ENOSYS. Some functions are actually named |
| 34894 | something starting with __ and the normal name is an alias. */ |
| 34895 | #if defined __stub_shmctl || defined __stub___shmctl |
| 34896 | choke me |
| 34897 | #endif |
| 34898 | |
| 34899 | int |
| 34900 | main () |
| 34901 | { |
| 34902 | return shmctl (); |
| 34903 | ; |
| 34904 | return 0; |
| 34905 | } |
| 34906 | _ACEOF |
| 34907 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34908 | if { (ac_try="$ac_link" |
| 34909 | case "(($ac_try" in |
| 34910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34911 | *) ac_try_echo=$ac_try;; |
| 34912 | esac |
| 34913 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 34914 | $as_echo "$ac_try_echo") >&5 |
| 34915 | (eval "$ac_link") 2>conftest.er1 |
| 34916 | ac_status=$? |
| 34917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34918 | rm -f conftest.er1 |
| 34919 | cat conftest.err >&5 |
| 34920 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34921 | (exit $ac_status); } && { |
| 34922 | test -z "$ac_c_werror_flag" || |
| 34923 | test ! -s conftest.err |
| 34924 | } && test -s conftest$ac_exeext && { |
| 34925 | test "$cross_compiling" = yes || |
| 34926 | $as_test_x conftest$ac_exeext |
| 34927 | }; then |
| 34928 | ac_cv_func_shmctl=yes |
| 34929 | else |
| 34930 | $as_echo "$as_me: failed program was:" >&5 |
| 34931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34932 | |
| 34933 | ac_cv_func_shmctl=no |
| 34934 | fi |
| 34935 | |
| 34936 | rm -rf conftest.dSYM |
| 34937 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 34938 | conftest$ac_exeext conftest.$ac_ext |
| 34939 | fi |
| 34940 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmctl" >&5 |
| 34941 | $as_echo "$ac_cv_func_shmctl" >&6; } |
| 34942 | if test "x$ac_cv_func_shmctl" = x""yes; then |
| 34943 | have_shmctl='yes' |
| 34944 | fi |
| 34945 | |
| 34946 | if test "$have_shmctl" != 'yes'; then |
| 34947 | PERSIST_LIBS=$LIBS |
| 34948 | LIBS="$LIBS -lcygipc" |
| 34949 | cat >conftest.$ac_ext <<_ACEOF |
| 34950 | /* confdefs.h. */ |
| 34951 | _ACEOF |
| 34952 | cat confdefs.h >>conftest.$ac_ext |
| 34953 | cat >>conftest.$ac_ext <<_ACEOF |
| 34954 | /* end confdefs.h. */ |
| 34955 | |
| 34956 | /* Override any GCC internal prototype to avoid an error. |
| 34957 | Use char because int might match the return type of a GCC |
| 34958 | builtin and then its argument prototype would still apply. */ |
| 34959 | #ifdef __cplusplus |
| 34960 | extern "C" |
| 34961 | #endif |
| 34962 | char shmctl (); |
| 34963 | int |
| 34964 | main () |
| 34965 | { |
| 34966 | return shmctl (); |
| 34967 | ; |
| 34968 | return 0; |
| 34969 | } |
| 34970 | _ACEOF |
| 34971 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 34972 | if { (ac_try="$ac_link" |
| 34973 | case "(($ac_try" in |
| 34974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 34975 | *) ac_try_echo=$ac_try;; |
| 34976 | esac |
| 34977 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 34978 | $as_echo "$ac_try_echo") >&5 |
| 34979 | (eval "$ac_link") 2>conftest.er1 |
| 34980 | ac_status=$? |
| 34981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 34982 | rm -f conftest.er1 |
| 34983 | cat conftest.err >&5 |
| 34984 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 34985 | (exit $ac_status); } && { |
| 34986 | test -z "$ac_c_werror_flag" || |
| 34987 | test ! -s conftest.err |
| 34988 | } && test -s conftest$ac_exeext && { |
| 34989 | test "$cross_compiling" = yes || |
| 34990 | $as_test_x conftest$ac_exeext |
| 34991 | }; then |
| 34992 | have_shmctl='yes'; IPC_LIBS='-lcygipc' |
| 34993 | else |
| 34994 | $as_echo "$as_me: failed program was:" >&5 |
| 34995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 34996 | |
| 34997 | |
| 34998 | fi |
| 34999 | |
| 35000 | rm -rf conftest.dSYM |
| 35001 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 35002 | conftest$ac_exeext conftest.$ac_ext |
| 35003 | LIBS=$PERSIST_LIBS |
| 35004 | fi |
| 35005 | |
| 35006 | if test "$have_shmctl" = 'yes'; then |
| 35007 | { $as_echo "$as_me:$LINENO: checking for XShmAttach in -lXext" >&5 |
| 35008 | $as_echo_n "checking for XShmAttach in -lXext... " >&6; } |
| 35009 | if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then |
| 35010 | $as_echo_n "(cached) " >&6 |
| 35011 | else |
| 35012 | ac_check_lib_save_LIBS=$LIBS |
| 35013 | LIBS="-lXext $LIBS" |
| 35014 | cat >conftest.$ac_ext <<_ACEOF |
| 35015 | /* confdefs.h. */ |
| 35016 | _ACEOF |
| 35017 | cat confdefs.h >>conftest.$ac_ext |
| 35018 | cat >>conftest.$ac_ext <<_ACEOF |
| 35019 | /* end confdefs.h. */ |
| 35020 | |
| 35021 | /* Override any GCC internal prototype to avoid an error. |
| 35022 | Use char because int might match the return type of a GCC |
| 35023 | builtin and then its argument prototype would still apply. */ |
| 35024 | #ifdef __cplusplus |
| 35025 | extern "C" |
| 35026 | #endif |
| 35027 | char XShmAttach (); |
| 35028 | int |
| 35029 | main () |
| 35030 | { |
| 35031 | return XShmAttach (); |
| 35032 | ; |
| 35033 | return 0; |
| 35034 | } |
| 35035 | _ACEOF |
| 35036 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 35037 | if { (ac_try="$ac_link" |
| 35038 | case "(($ac_try" in |
| 35039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35040 | *) ac_try_echo=$ac_try;; |
| 35041 | esac |
| 35042 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 35043 | $as_echo "$ac_try_echo") >&5 |
| 35044 | (eval "$ac_link") 2>conftest.er1 |
| 35045 | ac_status=$? |
| 35046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 35047 | rm -f conftest.er1 |
| 35048 | cat conftest.err >&5 |
| 35049 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35050 | (exit $ac_status); } && { |
| 35051 | test -z "$ac_c_werror_flag" || |
| 35052 | test ! -s conftest.err |
| 35053 | } && test -s conftest$ac_exeext && { |
| 35054 | test "$cross_compiling" = yes || |
| 35055 | $as_test_x conftest$ac_exeext |
| 35056 | }; then |
| 35057 | ac_cv_lib_Xext_XShmAttach=yes |
| 35058 | else |
| 35059 | $as_echo "$as_me: failed program was:" >&5 |
| 35060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 35061 | |
| 35062 | ac_cv_lib_Xext_XShmAttach=no |
| 35063 | fi |
| 35064 | |
| 35065 | rm -rf conftest.dSYM |
| 35066 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 35067 | conftest$ac_exeext conftest.$ac_ext |
| 35068 | LIBS=$ac_check_lib_save_LIBS |
| 35069 | fi |
| 35070 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmAttach" >&5 |
| 35071 | $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; } |
| 35072 | if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then |
| 35073 | XEXT_LIBS='-lXext' ; |
| 35074 | cat >>confdefs.h <<\_ACEOF |
| 35075 | #define HAVE_SHARED_MEMORY 1 |
| 35076 | _ACEOF |
| 35077 | |
| 35078 | fi |
| 35079 | |
| 35080 | fi |
| 35081 | |
| 35082 | # |
| 35083 | # Check for X11 shape extension |
| 35084 | # |
| 35085 | { $as_echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5 |
| 35086 | $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; } |
| 35087 | if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then |
| 35088 | $as_echo_n "(cached) " >&6 |
| 35089 | else |
| 35090 | ac_check_lib_save_LIBS=$LIBS |
| 35091 | LIBS="-lXext $LIBS" |
| 35092 | cat >conftest.$ac_ext <<_ACEOF |
| 35093 | /* confdefs.h. */ |
| 35094 | _ACEOF |
| 35095 | cat confdefs.h >>conftest.$ac_ext |
| 35096 | cat >>conftest.$ac_ext <<_ACEOF |
| 35097 | /* end confdefs.h. */ |
| 35098 | |
| 35099 | /* Override any GCC internal prototype to avoid an error. |
| 35100 | Use char because int might match the return type of a GCC |
| 35101 | builtin and then its argument prototype would still apply. */ |
| 35102 | #ifdef __cplusplus |
| 35103 | extern "C" |
| 35104 | #endif |
| 35105 | char XShapeCombineMask (); |
| 35106 | int |
| 35107 | main () |
| 35108 | { |
| 35109 | return XShapeCombineMask (); |
| 35110 | ; |
| 35111 | return 0; |
| 35112 | } |
| 35113 | _ACEOF |
| 35114 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 35115 | if { (ac_try="$ac_link" |
| 35116 | case "(($ac_try" in |
| 35117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35118 | *) ac_try_echo=$ac_try;; |
| 35119 | esac |
| 35120 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 35121 | $as_echo "$ac_try_echo") >&5 |
| 35122 | (eval "$ac_link") 2>conftest.er1 |
| 35123 | ac_status=$? |
| 35124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 35125 | rm -f conftest.er1 |
| 35126 | cat conftest.err >&5 |
| 35127 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35128 | (exit $ac_status); } && { |
| 35129 | test -z "$ac_c_werror_flag" || |
| 35130 | test ! -s conftest.err |
| 35131 | } && test -s conftest$ac_exeext && { |
| 35132 | test "$cross_compiling" = yes || |
| 35133 | $as_test_x conftest$ac_exeext |
| 35134 | }; then |
| 35135 | ac_cv_lib_Xext_XShapeCombineMask=yes |
| 35136 | else |
| 35137 | $as_echo "$as_me: failed program was:" >&5 |
| 35138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 35139 | |
| 35140 | ac_cv_lib_Xext_XShapeCombineMask=no |
| 35141 | fi |
| 35142 | |
| 35143 | rm -rf conftest.dSYM |
| 35144 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 35145 | conftest$ac_exeext conftest.$ac_ext |
| 35146 | LIBS=$ac_check_lib_save_LIBS |
| 35147 | fi |
| 35148 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5 |
| 35149 | $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; } |
| 35150 | if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then |
| 35151 | XEXT_LIBS='-lXext' ; |
| 35152 | cat >>confdefs.h <<\_ACEOF |
| 35153 | #define HAVE_SHAPE 1 |
| 35154 | _ACEOF |
| 35155 | |
| 35156 | fi |
| 35157 | |
| 35158 | { $as_echo "$as_me:$LINENO: checking for XtSetEventDispatcher in -lXt" >&5 |
| 35159 | $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; } |
| 35160 | if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then |
| 35161 | $as_echo_n "(cached) " >&6 |
| 35162 | else |
| 35163 | ac_check_lib_save_LIBS=$LIBS |
| 35164 | LIBS="-lXt $LIBS" |
| 35165 | cat >conftest.$ac_ext <<_ACEOF |
| 35166 | /* confdefs.h. */ |
| 35167 | _ACEOF |
| 35168 | cat confdefs.h >>conftest.$ac_ext |
| 35169 | cat >>conftest.$ac_ext <<_ACEOF |
| 35170 | /* end confdefs.h. */ |
| 35171 | |
| 35172 | /* Override any GCC internal prototype to avoid an error. |
| 35173 | Use char because int might match the return type of a GCC |
| 35174 | builtin and then its argument prototype would still apply. */ |
| 35175 | #ifdef __cplusplus |
| 35176 | extern "C" |
| 35177 | #endif |
| 35178 | char XtSetEventDispatcher (); |
| 35179 | int |
| 35180 | main () |
| 35181 | { |
| 35182 | return XtSetEventDispatcher (); |
| 35183 | ; |
| 35184 | return 0; |
| 35185 | } |
| 35186 | _ACEOF |
| 35187 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 35188 | if { (ac_try="$ac_link" |
| 35189 | case "(($ac_try" in |
| 35190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35191 | *) ac_try_echo=$ac_try;; |
| 35192 | esac |
| 35193 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 35194 | $as_echo "$ac_try_echo") >&5 |
| 35195 | (eval "$ac_link") 2>conftest.er1 |
| 35196 | ac_status=$? |
| 35197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 35198 | rm -f conftest.er1 |
| 35199 | cat conftest.err >&5 |
| 35200 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35201 | (exit $ac_status); } && { |
| 35202 | test -z "$ac_c_werror_flag" || |
| 35203 | test ! -s conftest.err |
| 35204 | } && test -s conftest$ac_exeext && { |
| 35205 | test "$cross_compiling" = yes || |
| 35206 | $as_test_x conftest$ac_exeext |
| 35207 | }; then |
| 35208 | ac_cv_lib_Xt_XtSetEventDispatcher=yes |
| 35209 | else |
| 35210 | $as_echo "$as_me: failed program was:" >&5 |
| 35211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 35212 | |
| 35213 | ac_cv_lib_Xt_XtSetEventDispatcher=no |
| 35214 | fi |
| 35215 | |
| 35216 | rm -rf conftest.dSYM |
| 35217 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 35218 | conftest$ac_exeext conftest.$ac_ext |
| 35219 | LIBS=$ac_check_lib_save_LIBS |
| 35220 | fi |
| 35221 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5 |
| 35222 | $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; } |
| 35223 | if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then |
| 35224 | XT_LIBS='-lXt' |
| 35225 | fi |
| 35226 | |
| 35227 | LIBS="$XEXT_LIBS $XT_LIBS $LIBS" |
| 35228 | fi |
| 35229 | if test "$no_x" != 'yes'; then |
| 35230 | have_x='yes' |
| 35231 | else |
| 35232 | have_x='no' |
| 35233 | fi |
| 35234 | if test "$have_x" = 'yes'; then |
| 35235 | X11_DELEGATE_TRUE= |
| 35236 | X11_DELEGATE_FALSE='#' |
| 35237 | else |
| 35238 | X11_DELEGATE_TRUE='#' |
| 35239 | X11_DELEGATE_FALSE= |
| 35240 | fi |
| 35241 | |
| 35242 | |
| 35243 | |
| 35244 | |
| 35245 | |
| 35246 | # |
| 35247 | # Check for ZLIB |
| 35248 | # |
| 35249 | |
| 35250 | # Check whether --with-zlib was given. |
| 35251 | if test "${with_zlib+set}" = set; then |
| 35252 | withval=$with_zlib; with_zlib=$withval |
| 35253 | else |
| 35254 | with_zlib='yes' |
| 35255 | fi |
| 35256 | |
| 35257 | |
| 35258 | if test "$with_zlib" != 'yes'; then |
| 35259 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib " |
| 35260 | fi |
| 35261 | |
| 35262 | have_zlib='no' |
| 35263 | ZLIB_LIBS='' |
| 35264 | if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then |
| 35265 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 35266 | $as_echo "-------------------------------------------------------------" >&6; } |
| 35267 | { $as_echo "$as_me:$LINENO: checking for ZLIB" >&5 |
| 35268 | $as_echo_n "checking for ZLIB... " >&6; } |
| 35269 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 35270 | $as_echo "" >&6; } |
| 35271 | ZLIB_LIBS='' |
| 35272 | failed=0 |
| 35273 | passed=0 |
| 35274 | if test "${ac_cv_header_zconf_h+set}" = set; then |
| 35275 | { $as_echo "$as_me:$LINENO: checking for zconf.h" >&5 |
| 35276 | $as_echo_n "checking for zconf.h... " >&6; } |
| 35277 | if test "${ac_cv_header_zconf_h+set}" = set; then |
| 35278 | $as_echo_n "(cached) " >&6 |
| 35279 | fi |
| 35280 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zconf_h" >&5 |
| 35281 | $as_echo "$ac_cv_header_zconf_h" >&6; } |
| 35282 | else |
| 35283 | # Is the header compilable? |
| 35284 | { $as_echo "$as_me:$LINENO: checking zconf.h usability" >&5 |
| 35285 | $as_echo_n "checking zconf.h usability... " >&6; } |
| 35286 | cat >conftest.$ac_ext <<_ACEOF |
| 35287 | /* confdefs.h. */ |
| 35288 | _ACEOF |
| 35289 | cat confdefs.h >>conftest.$ac_ext |
| 35290 | cat >>conftest.$ac_ext <<_ACEOF |
| 35291 | /* end confdefs.h. */ |
| 35292 | $ac_includes_default |
| 35293 | #include <zconf.h> |
| 35294 | _ACEOF |
| 35295 | rm -f conftest.$ac_objext |
| 35296 | if { (ac_try="$ac_compile" |
| 35297 | case "(($ac_try" in |
| 35298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35299 | *) ac_try_echo=$ac_try;; |
| 35300 | esac |
| 35301 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 35302 | $as_echo "$ac_try_echo") >&5 |
| 35303 | (eval "$ac_compile") 2>conftest.er1 |
| 35304 | ac_status=$? |
| 35305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 35306 | rm -f conftest.er1 |
| 35307 | cat conftest.err >&5 |
| 35308 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35309 | (exit $ac_status); } && { |
| 35310 | test -z "$ac_c_werror_flag" || |
| 35311 | test ! -s conftest.err |
| 35312 | } && test -s conftest.$ac_objext; then |
| 35313 | ac_header_compiler=yes |
| 35314 | else |
| 35315 | $as_echo "$as_me: failed program was:" >&5 |
| 35316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 35317 | |
| 35318 | ac_header_compiler=no |
| 35319 | fi |
| 35320 | |
| 35321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 35322 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 35323 | $as_echo "$ac_header_compiler" >&6; } |
| 35324 | |
| 35325 | # Is the header present? |
| 35326 | { $as_echo "$as_me:$LINENO: checking zconf.h presence" >&5 |
| 35327 | $as_echo_n "checking zconf.h presence... " >&6; } |
| 35328 | cat >conftest.$ac_ext <<_ACEOF |
| 35329 | /* confdefs.h. */ |
| 35330 | _ACEOF |
| 35331 | cat confdefs.h >>conftest.$ac_ext |
| 35332 | cat >>conftest.$ac_ext <<_ACEOF |
| 35333 | /* end confdefs.h. */ |
| 35334 | #include <zconf.h> |
| 35335 | _ACEOF |
| 35336 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 35337 | case "(($ac_try" in |
| 35338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35339 | *) ac_try_echo=$ac_try;; |
| 35340 | esac |
| 35341 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 35342 | $as_echo "$ac_try_echo") >&5 |
| 35343 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 35344 | ac_status=$? |
| 35345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 35346 | rm -f conftest.er1 |
| 35347 | cat conftest.err >&5 |
| 35348 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35349 | (exit $ac_status); } >/dev/null && { |
| 35350 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 35351 | test ! -s conftest.err |
| 35352 | }; then |
| 35353 | ac_header_preproc=yes |
| 35354 | else |
| 35355 | $as_echo "$as_me: failed program was:" >&5 |
| 35356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 35357 | |
| 35358 | ac_header_preproc=no |
| 35359 | fi |
| 35360 | |
| 35361 | rm -f conftest.err conftest.$ac_ext |
| 35362 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 35363 | $as_echo "$ac_header_preproc" >&6; } |
| 35364 | |
| 35365 | # So? What about this header? |
| 35366 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 35367 | yes:no: ) |
| 35368 | { $as_echo "$as_me:$LINENO: WARNING: zconf.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 35369 | $as_echo "$as_me: WARNING: zconf.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 35370 | { $as_echo "$as_me:$LINENO: WARNING: zconf.h: proceeding with the compiler's result" >&5 |
| 35371 | $as_echo "$as_me: WARNING: zconf.h: proceeding with the compiler's result" >&2;} |
| 35372 | ac_header_preproc=yes |
| 35373 | ;; |
| 35374 | no:yes:* ) |
| 35375 | { $as_echo "$as_me:$LINENO: WARNING: zconf.h: present but cannot be compiled" >&5 |
| 35376 | $as_echo "$as_me: WARNING: zconf.h: present but cannot be compiled" >&2;} |
| 35377 | { $as_echo "$as_me:$LINENO: WARNING: zconf.h: check for missing prerequisite headers?" >&5 |
| 35378 | $as_echo "$as_me: WARNING: zconf.h: check for missing prerequisite headers?" >&2;} |
| 35379 | { $as_echo "$as_me:$LINENO: WARNING: zconf.h: see the Autoconf documentation" >&5 |
| 35380 | $as_echo "$as_me: WARNING: zconf.h: see the Autoconf documentation" >&2;} |
| 35381 | { $as_echo "$as_me:$LINENO: WARNING: zconf.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 35382 | $as_echo "$as_me: WARNING: zconf.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 35383 | { $as_echo "$as_me:$LINENO: WARNING: zconf.h: proceeding with the preprocessor's result" >&5 |
| 35384 | $as_echo "$as_me: WARNING: zconf.h: proceeding with the preprocessor's result" >&2;} |
| 35385 | { $as_echo "$as_me:$LINENO: WARNING: zconf.h: in the future, the compiler will take precedence" >&5 |
| 35386 | $as_echo "$as_me: WARNING: zconf.h: in the future, the compiler will take precedence" >&2;} |
| 35387 | ( cat <<\_ASBOX |
| 35388 | ## ----------------------------------------- ## |
| 35389 | ## Report this to http://www.imagemagick.org ## |
| 35390 | ## ----------------------------------------- ## |
| 35391 | _ASBOX |
| 35392 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 35393 | ;; |
| 35394 | esac |
| 35395 | { $as_echo "$as_me:$LINENO: checking for zconf.h" >&5 |
| 35396 | $as_echo_n "checking for zconf.h... " >&6; } |
| 35397 | if test "${ac_cv_header_zconf_h+set}" = set; then |
| 35398 | $as_echo_n "(cached) " >&6 |
| 35399 | else |
| 35400 | ac_cv_header_zconf_h=$ac_header_preproc |
| 35401 | fi |
| 35402 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zconf_h" >&5 |
| 35403 | $as_echo "$ac_cv_header_zconf_h" >&6; } |
| 35404 | |
| 35405 | fi |
| 35406 | if test "x$ac_cv_header_zconf_h" = x""yes; then |
| 35407 | passed=`expr $passed + 1` |
| 35408 | else |
| 35409 | failed=`expr $failed + 1` |
| 35410 | fi |
| 35411 | |
| 35412 | |
| 35413 | if test "${ac_cv_header_zlib_h+set}" = set; then |
| 35414 | { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5 |
| 35415 | $as_echo_n "checking for zlib.h... " >&6; } |
| 35416 | if test "${ac_cv_header_zlib_h+set}" = set; then |
| 35417 | $as_echo_n "(cached) " >&6 |
| 35418 | fi |
| 35419 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
| 35420 | $as_echo "$ac_cv_header_zlib_h" >&6; } |
| 35421 | else |
| 35422 | # Is the header compilable? |
| 35423 | { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5 |
| 35424 | $as_echo_n "checking zlib.h usability... " >&6; } |
| 35425 | cat >conftest.$ac_ext <<_ACEOF |
| 35426 | /* confdefs.h. */ |
| 35427 | _ACEOF |
| 35428 | cat confdefs.h >>conftest.$ac_ext |
| 35429 | cat >>conftest.$ac_ext <<_ACEOF |
| 35430 | /* end confdefs.h. */ |
| 35431 | $ac_includes_default |
| 35432 | #include <zlib.h> |
| 35433 | _ACEOF |
| 35434 | rm -f conftest.$ac_objext |
| 35435 | if { (ac_try="$ac_compile" |
| 35436 | case "(($ac_try" in |
| 35437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35438 | *) ac_try_echo=$ac_try;; |
| 35439 | esac |
| 35440 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 35441 | $as_echo "$ac_try_echo") >&5 |
| 35442 | (eval "$ac_compile") 2>conftest.er1 |
| 35443 | ac_status=$? |
| 35444 | grep -v '^ *+' conftest.er1 >conftest.err |
| 35445 | rm -f conftest.er1 |
| 35446 | cat conftest.err >&5 |
| 35447 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35448 | (exit $ac_status); } && { |
| 35449 | test -z "$ac_c_werror_flag" || |
| 35450 | test ! -s conftest.err |
| 35451 | } && test -s conftest.$ac_objext; then |
| 35452 | ac_header_compiler=yes |
| 35453 | else |
| 35454 | $as_echo "$as_me: failed program was:" >&5 |
| 35455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 35456 | |
| 35457 | ac_header_compiler=no |
| 35458 | fi |
| 35459 | |
| 35460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 35461 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 35462 | $as_echo "$ac_header_compiler" >&6; } |
| 35463 | |
| 35464 | # Is the header present? |
| 35465 | { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5 |
| 35466 | $as_echo_n "checking zlib.h presence... " >&6; } |
| 35467 | cat >conftest.$ac_ext <<_ACEOF |
| 35468 | /* confdefs.h. */ |
| 35469 | _ACEOF |
| 35470 | cat confdefs.h >>conftest.$ac_ext |
| 35471 | cat >>conftest.$ac_ext <<_ACEOF |
| 35472 | /* end confdefs.h. */ |
| 35473 | #include <zlib.h> |
| 35474 | _ACEOF |
| 35475 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 35476 | case "(($ac_try" in |
| 35477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35478 | *) ac_try_echo=$ac_try;; |
| 35479 | esac |
| 35480 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 35481 | $as_echo "$ac_try_echo") >&5 |
| 35482 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 35483 | ac_status=$? |
| 35484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 35485 | rm -f conftest.er1 |
| 35486 | cat conftest.err >&5 |
| 35487 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35488 | (exit $ac_status); } >/dev/null && { |
| 35489 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 35490 | test ! -s conftest.err |
| 35491 | }; then |
| 35492 | ac_header_preproc=yes |
| 35493 | else |
| 35494 | $as_echo "$as_me: failed program was:" >&5 |
| 35495 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 35496 | |
| 35497 | ac_header_preproc=no |
| 35498 | fi |
| 35499 | |
| 35500 | rm -f conftest.err conftest.$ac_ext |
| 35501 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 35502 | $as_echo "$ac_header_preproc" >&6; } |
| 35503 | |
| 35504 | # So? What about this header? |
| 35505 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 35506 | yes:no: ) |
| 35507 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 35508 | $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 35509 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
| 35510 | $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} |
| 35511 | ac_header_preproc=yes |
| 35512 | ;; |
| 35513 | no:yes:* ) |
| 35514 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
| 35515 | $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} |
| 35516 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
| 35517 | $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} |
| 35518 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 |
| 35519 | $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} |
| 35520 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 35521 | $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 35522 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
| 35523 | $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} |
| 35524 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
| 35525 | $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} |
| 35526 | ( cat <<\_ASBOX |
| 35527 | ## ----------------------------------------- ## |
| 35528 | ## Report this to http://www.imagemagick.org ## |
| 35529 | ## ----------------------------------------- ## |
| 35530 | _ASBOX |
| 35531 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 35532 | ;; |
| 35533 | esac |
| 35534 | { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5 |
| 35535 | $as_echo_n "checking for zlib.h... " >&6; } |
| 35536 | if test "${ac_cv_header_zlib_h+set}" = set; then |
| 35537 | $as_echo_n "(cached) " >&6 |
| 35538 | else |
| 35539 | ac_cv_header_zlib_h=$ac_header_preproc |
| 35540 | fi |
| 35541 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
| 35542 | $as_echo "$ac_cv_header_zlib_h" >&6; } |
| 35543 | |
| 35544 | fi |
| 35545 | if test "x$ac_cv_header_zlib_h" = x""yes; then |
| 35546 | passed=`expr $passed + 1` |
| 35547 | else |
| 35548 | failed=`expr $failed + 1` |
| 35549 | fi |
| 35550 | |
| 35551 | |
| 35552 | { $as_echo "$as_me:$LINENO: checking for compress in -lz" >&5 |
| 35553 | $as_echo_n "checking for compress in -lz... " >&6; } |
| 35554 | if test "${ac_cv_lib_z_compress+set}" = set; then |
| 35555 | $as_echo_n "(cached) " >&6 |
| 35556 | else |
| 35557 | ac_check_lib_save_LIBS=$LIBS |
| 35558 | LIBS="-lz $LIBS" |
| 35559 | cat >conftest.$ac_ext <<_ACEOF |
| 35560 | /* confdefs.h. */ |
| 35561 | _ACEOF |
| 35562 | cat confdefs.h >>conftest.$ac_ext |
| 35563 | cat >>conftest.$ac_ext <<_ACEOF |
| 35564 | /* end confdefs.h. */ |
| 35565 | |
| 35566 | /* Override any GCC internal prototype to avoid an error. |
| 35567 | Use char because int might match the return type of a GCC |
| 35568 | builtin and then its argument prototype would still apply. */ |
| 35569 | #ifdef __cplusplus |
| 35570 | extern "C" |
| 35571 | #endif |
| 35572 | char compress (); |
| 35573 | int |
| 35574 | main () |
| 35575 | { |
| 35576 | return compress (); |
| 35577 | ; |
| 35578 | return 0; |
| 35579 | } |
| 35580 | _ACEOF |
| 35581 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 35582 | if { (ac_try="$ac_link" |
| 35583 | case "(($ac_try" in |
| 35584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35585 | *) ac_try_echo=$ac_try;; |
| 35586 | esac |
| 35587 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 35588 | $as_echo "$ac_try_echo") >&5 |
| 35589 | (eval "$ac_link") 2>conftest.er1 |
| 35590 | ac_status=$? |
| 35591 | grep -v '^ *+' conftest.er1 >conftest.err |
| 35592 | rm -f conftest.er1 |
| 35593 | cat conftest.err >&5 |
| 35594 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35595 | (exit $ac_status); } && { |
| 35596 | test -z "$ac_c_werror_flag" || |
| 35597 | test ! -s conftest.err |
| 35598 | } && test -s conftest$ac_exeext && { |
| 35599 | test "$cross_compiling" = yes || |
| 35600 | $as_test_x conftest$ac_exeext |
| 35601 | }; then |
| 35602 | ac_cv_lib_z_compress=yes |
| 35603 | else |
| 35604 | $as_echo "$as_me: failed program was:" >&5 |
| 35605 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 35606 | |
| 35607 | ac_cv_lib_z_compress=no |
| 35608 | fi |
| 35609 | |
| 35610 | rm -rf conftest.dSYM |
| 35611 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 35612 | conftest$ac_exeext conftest.$ac_ext |
| 35613 | LIBS=$ac_check_lib_save_LIBS |
| 35614 | fi |
| 35615 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5 |
| 35616 | $as_echo "$ac_cv_lib_z_compress" >&6; } |
| 35617 | if test "x$ac_cv_lib_z_compress" = x""yes; then |
| 35618 | passed=`expr $passed + 1` |
| 35619 | else |
| 35620 | failed=`expr $failed + 1` |
| 35621 | fi |
| 35622 | |
| 35623 | { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5 |
| 35624 | $as_echo_n "checking for uncompress in -lz... " >&6; } |
| 35625 | if test "${ac_cv_lib_z_uncompress+set}" = set; then |
| 35626 | $as_echo_n "(cached) " >&6 |
| 35627 | else |
| 35628 | ac_check_lib_save_LIBS=$LIBS |
| 35629 | LIBS="-lz $LIBS" |
| 35630 | cat >conftest.$ac_ext <<_ACEOF |
| 35631 | /* confdefs.h. */ |
| 35632 | _ACEOF |
| 35633 | cat confdefs.h >>conftest.$ac_ext |
| 35634 | cat >>conftest.$ac_ext <<_ACEOF |
| 35635 | /* end confdefs.h. */ |
| 35636 | |
| 35637 | /* Override any GCC internal prototype to avoid an error. |
| 35638 | Use char because int might match the return type of a GCC |
| 35639 | builtin and then its argument prototype would still apply. */ |
| 35640 | #ifdef __cplusplus |
| 35641 | extern "C" |
| 35642 | #endif |
| 35643 | char uncompress (); |
| 35644 | int |
| 35645 | main () |
| 35646 | { |
| 35647 | return uncompress (); |
| 35648 | ; |
| 35649 | return 0; |
| 35650 | } |
| 35651 | _ACEOF |
| 35652 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 35653 | if { (ac_try="$ac_link" |
| 35654 | case "(($ac_try" in |
| 35655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35656 | *) ac_try_echo=$ac_try;; |
| 35657 | esac |
| 35658 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 35659 | $as_echo "$ac_try_echo") >&5 |
| 35660 | (eval "$ac_link") 2>conftest.er1 |
| 35661 | ac_status=$? |
| 35662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 35663 | rm -f conftest.er1 |
| 35664 | cat conftest.err >&5 |
| 35665 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35666 | (exit $ac_status); } && { |
| 35667 | test -z "$ac_c_werror_flag" || |
| 35668 | test ! -s conftest.err |
| 35669 | } && test -s conftest$ac_exeext && { |
| 35670 | test "$cross_compiling" = yes || |
| 35671 | $as_test_x conftest$ac_exeext |
| 35672 | }; then |
| 35673 | ac_cv_lib_z_uncompress=yes |
| 35674 | else |
| 35675 | $as_echo "$as_me: failed program was:" >&5 |
| 35676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 35677 | |
| 35678 | ac_cv_lib_z_uncompress=no |
| 35679 | fi |
| 35680 | |
| 35681 | rm -rf conftest.dSYM |
| 35682 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 35683 | conftest$ac_exeext conftest.$ac_ext |
| 35684 | LIBS=$ac_check_lib_save_LIBS |
| 35685 | fi |
| 35686 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5 |
| 35687 | $as_echo "$ac_cv_lib_z_uncompress" >&6; } |
| 35688 | if test "x$ac_cv_lib_z_uncompress" = x""yes; then |
| 35689 | passed=`expr $passed + 1` |
| 35690 | else |
| 35691 | failed=`expr $failed + 1` |
| 35692 | fi |
| 35693 | |
| 35694 | { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
| 35695 | $as_echo_n "checking for deflate in -lz... " >&6; } |
| 35696 | if test "${ac_cv_lib_z_deflate+set}" = set; then |
| 35697 | $as_echo_n "(cached) " >&6 |
| 35698 | else |
| 35699 | ac_check_lib_save_LIBS=$LIBS |
| 35700 | LIBS="-lz $LIBS" |
| 35701 | cat >conftest.$ac_ext <<_ACEOF |
| 35702 | /* confdefs.h. */ |
| 35703 | _ACEOF |
| 35704 | cat confdefs.h >>conftest.$ac_ext |
| 35705 | cat >>conftest.$ac_ext <<_ACEOF |
| 35706 | /* end confdefs.h. */ |
| 35707 | |
| 35708 | /* Override any GCC internal prototype to avoid an error. |
| 35709 | Use char because int might match the return type of a GCC |
| 35710 | builtin and then its argument prototype would still apply. */ |
| 35711 | #ifdef __cplusplus |
| 35712 | extern "C" |
| 35713 | #endif |
| 35714 | char deflate (); |
| 35715 | int |
| 35716 | main () |
| 35717 | { |
| 35718 | return deflate (); |
| 35719 | ; |
| 35720 | return 0; |
| 35721 | } |
| 35722 | _ACEOF |
| 35723 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 35724 | if { (ac_try="$ac_link" |
| 35725 | case "(($ac_try" in |
| 35726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35727 | *) ac_try_echo=$ac_try;; |
| 35728 | esac |
| 35729 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 35730 | $as_echo "$ac_try_echo") >&5 |
| 35731 | (eval "$ac_link") 2>conftest.er1 |
| 35732 | ac_status=$? |
| 35733 | grep -v '^ *+' conftest.er1 >conftest.err |
| 35734 | rm -f conftest.er1 |
| 35735 | cat conftest.err >&5 |
| 35736 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35737 | (exit $ac_status); } && { |
| 35738 | test -z "$ac_c_werror_flag" || |
| 35739 | test ! -s conftest.err |
| 35740 | } && test -s conftest$ac_exeext && { |
| 35741 | test "$cross_compiling" = yes || |
| 35742 | $as_test_x conftest$ac_exeext |
| 35743 | }; then |
| 35744 | ac_cv_lib_z_deflate=yes |
| 35745 | else |
| 35746 | $as_echo "$as_me: failed program was:" >&5 |
| 35747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 35748 | |
| 35749 | ac_cv_lib_z_deflate=no |
| 35750 | fi |
| 35751 | |
| 35752 | rm -rf conftest.dSYM |
| 35753 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 35754 | conftest$ac_exeext conftest.$ac_ext |
| 35755 | LIBS=$ac_check_lib_save_LIBS |
| 35756 | fi |
| 35757 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 |
| 35758 | $as_echo "$ac_cv_lib_z_deflate" >&6; } |
| 35759 | if test "x$ac_cv_lib_z_deflate" = x""yes; then |
| 35760 | passed=`expr $passed + 1` |
| 35761 | else |
| 35762 | failed=`expr $failed + 1` |
| 35763 | fi |
| 35764 | |
| 35765 | { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5 |
| 35766 | $as_echo_n "checking for inflate in -lz... " >&6; } |
| 35767 | if test "${ac_cv_lib_z_inflate+set}" = set; then |
| 35768 | $as_echo_n "(cached) " >&6 |
| 35769 | else |
| 35770 | ac_check_lib_save_LIBS=$LIBS |
| 35771 | LIBS="-lz $LIBS" |
| 35772 | cat >conftest.$ac_ext <<_ACEOF |
| 35773 | /* confdefs.h. */ |
| 35774 | _ACEOF |
| 35775 | cat confdefs.h >>conftest.$ac_ext |
| 35776 | cat >>conftest.$ac_ext <<_ACEOF |
| 35777 | /* end confdefs.h. */ |
| 35778 | |
| 35779 | /* Override any GCC internal prototype to avoid an error. |
| 35780 | Use char because int might match the return type of a GCC |
| 35781 | builtin and then its argument prototype would still apply. */ |
| 35782 | #ifdef __cplusplus |
| 35783 | extern "C" |
| 35784 | #endif |
| 35785 | char inflate (); |
| 35786 | int |
| 35787 | main () |
| 35788 | { |
| 35789 | return inflate (); |
| 35790 | ; |
| 35791 | return 0; |
| 35792 | } |
| 35793 | _ACEOF |
| 35794 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 35795 | if { (ac_try="$ac_link" |
| 35796 | case "(($ac_try" in |
| 35797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35798 | *) ac_try_echo=$ac_try;; |
| 35799 | esac |
| 35800 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 35801 | $as_echo "$ac_try_echo") >&5 |
| 35802 | (eval "$ac_link") 2>conftest.er1 |
| 35803 | ac_status=$? |
| 35804 | grep -v '^ *+' conftest.er1 >conftest.err |
| 35805 | rm -f conftest.er1 |
| 35806 | cat conftest.err >&5 |
| 35807 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35808 | (exit $ac_status); } && { |
| 35809 | test -z "$ac_c_werror_flag" || |
| 35810 | test ! -s conftest.err |
| 35811 | } && test -s conftest$ac_exeext && { |
| 35812 | test "$cross_compiling" = yes || |
| 35813 | $as_test_x conftest$ac_exeext |
| 35814 | }; then |
| 35815 | ac_cv_lib_z_inflate=yes |
| 35816 | else |
| 35817 | $as_echo "$as_me: failed program was:" >&5 |
| 35818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 35819 | |
| 35820 | ac_cv_lib_z_inflate=no |
| 35821 | fi |
| 35822 | |
| 35823 | rm -rf conftest.dSYM |
| 35824 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 35825 | conftest$ac_exeext conftest.$ac_ext |
| 35826 | LIBS=$ac_check_lib_save_LIBS |
| 35827 | fi |
| 35828 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5 |
| 35829 | $as_echo "$ac_cv_lib_z_inflate" >&6; } |
| 35830 | if test "x$ac_cv_lib_z_inflate" = x""yes; then |
| 35831 | passed=`expr $passed + 1` |
| 35832 | else |
| 35833 | failed=`expr $failed + 1` |
| 35834 | fi |
| 35835 | |
| 35836 | { $as_echo "$as_me:$LINENO: checking for gzseek in -lz" >&5 |
| 35837 | $as_echo_n "checking for gzseek in -lz... " >&6; } |
| 35838 | if test "${ac_cv_lib_z_gzseek+set}" = set; then |
| 35839 | $as_echo_n "(cached) " >&6 |
| 35840 | else |
| 35841 | ac_check_lib_save_LIBS=$LIBS |
| 35842 | LIBS="-lz $LIBS" |
| 35843 | cat >conftest.$ac_ext <<_ACEOF |
| 35844 | /* confdefs.h. */ |
| 35845 | _ACEOF |
| 35846 | cat confdefs.h >>conftest.$ac_ext |
| 35847 | cat >>conftest.$ac_ext <<_ACEOF |
| 35848 | /* end confdefs.h. */ |
| 35849 | |
| 35850 | /* Override any GCC internal prototype to avoid an error. |
| 35851 | Use char because int might match the return type of a GCC |
| 35852 | builtin and then its argument prototype would still apply. */ |
| 35853 | #ifdef __cplusplus |
| 35854 | extern "C" |
| 35855 | #endif |
| 35856 | char gzseek (); |
| 35857 | int |
| 35858 | main () |
| 35859 | { |
| 35860 | return gzseek (); |
| 35861 | ; |
| 35862 | return 0; |
| 35863 | } |
| 35864 | _ACEOF |
| 35865 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 35866 | if { (ac_try="$ac_link" |
| 35867 | case "(($ac_try" in |
| 35868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35869 | *) ac_try_echo=$ac_try;; |
| 35870 | esac |
| 35871 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 35872 | $as_echo "$ac_try_echo") >&5 |
| 35873 | (eval "$ac_link") 2>conftest.er1 |
| 35874 | ac_status=$? |
| 35875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 35876 | rm -f conftest.er1 |
| 35877 | cat conftest.err >&5 |
| 35878 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35879 | (exit $ac_status); } && { |
| 35880 | test -z "$ac_c_werror_flag" || |
| 35881 | test ! -s conftest.err |
| 35882 | } && test -s conftest$ac_exeext && { |
| 35883 | test "$cross_compiling" = yes || |
| 35884 | $as_test_x conftest$ac_exeext |
| 35885 | }; then |
| 35886 | ac_cv_lib_z_gzseek=yes |
| 35887 | else |
| 35888 | $as_echo "$as_me: failed program was:" >&5 |
| 35889 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 35890 | |
| 35891 | ac_cv_lib_z_gzseek=no |
| 35892 | fi |
| 35893 | |
| 35894 | rm -rf conftest.dSYM |
| 35895 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 35896 | conftest$ac_exeext conftest.$ac_ext |
| 35897 | LIBS=$ac_check_lib_save_LIBS |
| 35898 | fi |
| 35899 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzseek" >&5 |
| 35900 | $as_echo "$ac_cv_lib_z_gzseek" >&6; } |
| 35901 | if test "x$ac_cv_lib_z_gzseek" = x""yes; then |
| 35902 | passed=`expr $passed + 1` |
| 35903 | else |
| 35904 | failed=`expr $failed + 1` |
| 35905 | fi |
| 35906 | |
| 35907 | { $as_echo "$as_me:$LINENO: checking for gztell in -lz" >&5 |
| 35908 | $as_echo_n "checking for gztell in -lz... " >&6; } |
| 35909 | if test "${ac_cv_lib_z_gztell+set}" = set; then |
| 35910 | $as_echo_n "(cached) " >&6 |
| 35911 | else |
| 35912 | ac_check_lib_save_LIBS=$LIBS |
| 35913 | LIBS="-lz $LIBS" |
| 35914 | cat >conftest.$ac_ext <<_ACEOF |
| 35915 | /* confdefs.h. */ |
| 35916 | _ACEOF |
| 35917 | cat confdefs.h >>conftest.$ac_ext |
| 35918 | cat >>conftest.$ac_ext <<_ACEOF |
| 35919 | /* end confdefs.h. */ |
| 35920 | |
| 35921 | /* Override any GCC internal prototype to avoid an error. |
| 35922 | Use char because int might match the return type of a GCC |
| 35923 | builtin and then its argument prototype would still apply. */ |
| 35924 | #ifdef __cplusplus |
| 35925 | extern "C" |
| 35926 | #endif |
| 35927 | char gztell (); |
| 35928 | int |
| 35929 | main () |
| 35930 | { |
| 35931 | return gztell (); |
| 35932 | ; |
| 35933 | return 0; |
| 35934 | } |
| 35935 | _ACEOF |
| 35936 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 35937 | if { (ac_try="$ac_link" |
| 35938 | case "(($ac_try" in |
| 35939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 35940 | *) ac_try_echo=$ac_try;; |
| 35941 | esac |
| 35942 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 35943 | $as_echo "$ac_try_echo") >&5 |
| 35944 | (eval "$ac_link") 2>conftest.er1 |
| 35945 | ac_status=$? |
| 35946 | grep -v '^ *+' conftest.er1 >conftest.err |
| 35947 | rm -f conftest.er1 |
| 35948 | cat conftest.err >&5 |
| 35949 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 35950 | (exit $ac_status); } && { |
| 35951 | test -z "$ac_c_werror_flag" || |
| 35952 | test ! -s conftest.err |
| 35953 | } && test -s conftest$ac_exeext && { |
| 35954 | test "$cross_compiling" = yes || |
| 35955 | $as_test_x conftest$ac_exeext |
| 35956 | }; then |
| 35957 | ac_cv_lib_z_gztell=yes |
| 35958 | else |
| 35959 | $as_echo "$as_me: failed program was:" >&5 |
| 35960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 35961 | |
| 35962 | ac_cv_lib_z_gztell=no |
| 35963 | fi |
| 35964 | |
| 35965 | rm -rf conftest.dSYM |
| 35966 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 35967 | conftest$ac_exeext conftest.$ac_ext |
| 35968 | LIBS=$ac_check_lib_save_LIBS |
| 35969 | fi |
| 35970 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gztell" >&5 |
| 35971 | $as_echo "$ac_cv_lib_z_gztell" >&6; } |
| 35972 | if test "x$ac_cv_lib_z_gztell" = x""yes; then |
| 35973 | passed=`expr $passed + 1` |
| 35974 | else |
| 35975 | failed=`expr $failed + 1` |
| 35976 | fi |
| 35977 | |
| 35978 | { $as_echo "$as_me:$LINENO: checking if ZLIB package is complete" >&5 |
| 35979 | $as_echo_n "checking if ZLIB package is complete... " >&6; } |
| 35980 | if test $passed -gt 0; then |
| 35981 | if test $failed -gt 0; then |
| 35982 | { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5 |
| 35983 | $as_echo "no -- some components failed test" >&6; } |
| 35984 | have_zlib='no (failed tests)' |
| 35985 | else |
| 35986 | ZLIB_LIBS='-lz' |
| 35987 | LIBS="$ZLIB_LIBS $LIBS" |
| 35988 | |
| 35989 | cat >>confdefs.h <<\_ACEOF |
| 35990 | #define ZLIB_DELEGATE 1 |
| 35991 | _ACEOF |
| 35992 | |
| 35993 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 35994 | $as_echo "yes" >&6; } |
| 35995 | have_zlib='yes' |
| 35996 | fi |
| 35997 | else |
| 35998 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 35999 | $as_echo "no" >&6; } |
| 36000 | fi |
| 36001 | fi |
| 36002 | if test "$have_zlib" = 'yes'; then |
| 36003 | ZLIB_DELEGATE_TRUE= |
| 36004 | ZLIB_DELEGATE_FALSE='#' |
| 36005 | else |
| 36006 | ZLIB_DELEGATE_TRUE='#' |
| 36007 | ZLIB_DELEGATE_FALSE= |
| 36008 | fi |
| 36009 | |
| 36010 | |
| 36011 | |
| 36012 | # |
| 36013 | # If profiling, then check for -ldl and dlopen (required for Solaris & gcc) |
| 36014 | # |
| 36015 | LIB_DL='' |
| 36016 | if test "$enable_profiling" = 'yes'; then |
| 36017 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 36018 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 36019 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 36020 | $as_echo_n "(cached) " >&6 |
| 36021 | else |
| 36022 | ac_check_lib_save_LIBS=$LIBS |
| 36023 | LIBS="-ldl $LIBS" |
| 36024 | cat >conftest.$ac_ext <<_ACEOF |
| 36025 | /* confdefs.h. */ |
| 36026 | _ACEOF |
| 36027 | cat confdefs.h >>conftest.$ac_ext |
| 36028 | cat >>conftest.$ac_ext <<_ACEOF |
| 36029 | /* end confdefs.h. */ |
| 36030 | |
| 36031 | /* Override any GCC internal prototype to avoid an error. |
| 36032 | Use char because int might match the return type of a GCC |
| 36033 | builtin and then its argument prototype would still apply. */ |
| 36034 | #ifdef __cplusplus |
| 36035 | extern "C" |
| 36036 | #endif |
| 36037 | char dlopen (); |
| 36038 | int |
| 36039 | main () |
| 36040 | { |
| 36041 | return dlopen (); |
| 36042 | ; |
| 36043 | return 0; |
| 36044 | } |
| 36045 | _ACEOF |
| 36046 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 36047 | if { (ac_try="$ac_link" |
| 36048 | case "(($ac_try" in |
| 36049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 36050 | *) ac_try_echo=$ac_try;; |
| 36051 | esac |
| 36052 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 36053 | $as_echo "$ac_try_echo") >&5 |
| 36054 | (eval "$ac_link") 2>conftest.er1 |
| 36055 | ac_status=$? |
| 36056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 36057 | rm -f conftest.er1 |
| 36058 | cat conftest.err >&5 |
| 36059 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 36060 | (exit $ac_status); } && { |
| 36061 | test -z "$ac_c_werror_flag" || |
| 36062 | test ! -s conftest.err |
| 36063 | } && test -s conftest$ac_exeext && { |
| 36064 | test "$cross_compiling" = yes || |
| 36065 | $as_test_x conftest$ac_exeext |
| 36066 | }; then |
| 36067 | ac_cv_lib_dl_dlopen=yes |
| 36068 | else |
| 36069 | $as_echo "$as_me: failed program was:" >&5 |
| 36070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 36071 | |
| 36072 | ac_cv_lib_dl_dlopen=no |
| 36073 | fi |
| 36074 | |
| 36075 | rm -rf conftest.dSYM |
| 36076 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 36077 | conftest$ac_exeext conftest.$ac_ext |
| 36078 | LIBS=$ac_check_lib_save_LIBS |
| 36079 | fi |
| 36080 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 36081 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 36082 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then |
| 36083 | LIB_DL='-ldl' |
| 36084 | fi |
| 36085 | |
| 36086 | LIBS="$LIB_DL $LIBS" |
| 36087 | fi |
| 36088 | |
| 36089 | |
| 36090 | |
| 36091 | # |
| 36092 | # Check for Autotrace delegate library. |
| 36093 | # |
| 36094 | |
| 36095 | # Check whether --with-autotrace was given. |
| 36096 | if test "${with_autotrace+set}" = set; then |
| 36097 | withval=$with_autotrace; with_autotrace=$withval |
| 36098 | else |
| 36099 | with_autotrace='no' |
| 36100 | fi |
| 36101 | |
| 36102 | |
| 36103 | if test "$with_autotrace" != 'yes'; then |
| 36104 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace " |
| 36105 | fi |
| 36106 | |
| 36107 | have_autotrace='no' |
| 36108 | AUTOTRACE_CFLAGS="" |
| 36109 | AUTOTRACE_LIBS="" |
| 36110 | AUTOTRACE_PKG="" |
| 36111 | if test "x$with_autotrace" = "xyes"; then |
| 36112 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 36113 | $as_echo "-------------------------------------------------------------" >&6; } |
| 36114 | |
| 36115 | pkg_failed=no |
| 36116 | { $as_echo "$as_me:$LINENO: checking for AUTOTRACE" >&5 |
| 36117 | $as_echo_n "checking for AUTOTRACE... " >&6; } |
| 36118 | |
| 36119 | if test -n "$AUTOTRACE_CFLAGS"; then |
| 36120 | pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS" |
| 36121 | elif test -n "$PKG_CONFIG"; then |
| 36122 | if test -n "$PKG_CONFIG" && \ |
| 36123 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\"") >&5 |
| 36124 | ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 |
| 36125 | ac_status=$? |
| 36126 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 36127 | (exit $ac_status); }; then |
| 36128 | pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null` |
| 36129 | else |
| 36130 | pkg_failed=yes |
| 36131 | fi |
| 36132 | else |
| 36133 | pkg_failed=untried |
| 36134 | fi |
| 36135 | if test -n "$AUTOTRACE_LIBS"; then |
| 36136 | pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS" |
| 36137 | elif test -n "$PKG_CONFIG"; then |
| 36138 | if test -n "$PKG_CONFIG" && \ |
| 36139 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\"") >&5 |
| 36140 | ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 |
| 36141 | ac_status=$? |
| 36142 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 36143 | (exit $ac_status); }; then |
| 36144 | pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null` |
| 36145 | else |
| 36146 | pkg_failed=yes |
| 36147 | fi |
| 36148 | else |
| 36149 | pkg_failed=untried |
| 36150 | fi |
| 36151 | |
| 36152 | |
| 36153 | |
| 36154 | if test $pkg_failed = yes; then |
| 36155 | |
| 36156 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 36157 | _pkg_short_errors_supported=yes |
| 36158 | else |
| 36159 | _pkg_short_errors_supported=no |
| 36160 | fi |
| 36161 | if test $_pkg_short_errors_supported = yes; then |
| 36162 | AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1` |
| 36163 | else |
| 36164 | AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1` |
| 36165 | fi |
| 36166 | # Put the nasty error message in config.log where it belongs |
| 36167 | echo "$AUTOTRACE_PKG_ERRORS" >&5 |
| 36168 | |
| 36169 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 36170 | $as_echo "no" >&6; } |
| 36171 | have_autotrace=no |
| 36172 | elif test $pkg_failed = untried; then |
| 36173 | have_autotrace=no |
| 36174 | else |
| 36175 | AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS |
| 36176 | AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS |
| 36177 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 36178 | $as_echo "yes" >&6; } |
| 36179 | have_autotrace=yes |
| 36180 | fi |
| 36181 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 36182 | $as_echo "" >&6; } |
| 36183 | fi |
| 36184 | |
| 36185 | if test "$have_autotrace" = 'yes'; then |
| 36186 | failed=0 |
| 36187 | |
| 36188 | cat >>confdefs.h <<\_ACEOF |
| 36189 | #define AUTOTRACE_DELEGATE 1 |
| 36190 | _ACEOF |
| 36191 | |
| 36192 | if test "$with_modules" = 'no'; then |
| 36193 | CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS" |
| 36194 | fi |
| 36195 | fi |
| 36196 | |
| 36197 | if test "$have_autotrace" = 'yes'; then |
| 36198 | AUTOTRACE_DELEGATE_TRUE= |
| 36199 | AUTOTRACE_DELEGATE_FALSE='#' |
| 36200 | else |
| 36201 | AUTOTRACE_DELEGATE_TRUE='#' |
| 36202 | AUTOTRACE_DELEGATE_FALSE= |
| 36203 | fi |
| 36204 | |
| 36205 | |
| 36206 | |
| 36207 | |
| 36208 | |
| 36209 | # |
| 36210 | # Check for Display Postscript delegate library. |
| 36211 | # |
| 36212 | |
| 36213 | # Check whether --with-dps was given. |
| 36214 | if test "${with_dps+set}" = set; then |
| 36215 | withval=$with_dps; with_dps=$withval |
| 36216 | else |
| 36217 | with_dps='yes' |
| 36218 | fi |
| 36219 | |
| 36220 | |
| 36221 | if test "$with_dps" != 'yes'; then |
| 36222 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps " |
| 36223 | fi |
| 36224 | |
| 36225 | have_dps='no' |
| 36226 | DPS_LIBS='' |
| 36227 | if test "$with_dps" != 'no' && test "$with_x" != 'no'; then |
| 36228 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 36229 | $as_echo "-------------------------------------------------------------" >&6; } |
| 36230 | { $as_echo "$as_me:$LINENO: checking for DPS" >&5 |
| 36231 | $as_echo_n "checking for DPS... " >&6; } |
| 36232 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 36233 | $as_echo "" >&6; } |
| 36234 | failed=0 |
| 36235 | passed=0 |
| 36236 | PERSIST_CPPFLAGS="$CPPFLAGS" |
| 36237 | CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11" |
| 36238 | if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then |
| 36239 | { $as_echo "$as_me:$LINENO: checking for DPS/dpsXclient.h" >&5 |
| 36240 | $as_echo_n "checking for DPS/dpsXclient.h... " >&6; } |
| 36241 | if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then |
| 36242 | $as_echo_n "(cached) " >&6 |
| 36243 | fi |
| 36244 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_DPS_dpsXclient_h" >&5 |
| 36245 | $as_echo "$ac_cv_header_DPS_dpsXclient_h" >&6; } |
| 36246 | else |
| 36247 | # Is the header compilable? |
| 36248 | { $as_echo "$as_me:$LINENO: checking DPS/dpsXclient.h usability" >&5 |
| 36249 | $as_echo_n "checking DPS/dpsXclient.h usability... " >&6; } |
| 36250 | cat >conftest.$ac_ext <<_ACEOF |
| 36251 | /* confdefs.h. */ |
| 36252 | _ACEOF |
| 36253 | cat confdefs.h >>conftest.$ac_ext |
| 36254 | cat >>conftest.$ac_ext <<_ACEOF |
| 36255 | /* end confdefs.h. */ |
| 36256 | $ac_includes_default |
| 36257 | #include <DPS/dpsXclient.h> |
| 36258 | _ACEOF |
| 36259 | rm -f conftest.$ac_objext |
| 36260 | if { (ac_try="$ac_compile" |
| 36261 | case "(($ac_try" in |
| 36262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 36263 | *) ac_try_echo=$ac_try;; |
| 36264 | esac |
| 36265 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 36266 | $as_echo "$ac_try_echo") >&5 |
| 36267 | (eval "$ac_compile") 2>conftest.er1 |
| 36268 | ac_status=$? |
| 36269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 36270 | rm -f conftest.er1 |
| 36271 | cat conftest.err >&5 |
| 36272 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 36273 | (exit $ac_status); } && { |
| 36274 | test -z "$ac_c_werror_flag" || |
| 36275 | test ! -s conftest.err |
| 36276 | } && test -s conftest.$ac_objext; then |
| 36277 | ac_header_compiler=yes |
| 36278 | else |
| 36279 | $as_echo "$as_me: failed program was:" >&5 |
| 36280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 36281 | |
| 36282 | ac_header_compiler=no |
| 36283 | fi |
| 36284 | |
| 36285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 36286 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 36287 | $as_echo "$ac_header_compiler" >&6; } |
| 36288 | |
| 36289 | # Is the header present? |
| 36290 | { $as_echo "$as_me:$LINENO: checking DPS/dpsXclient.h presence" >&5 |
| 36291 | $as_echo_n "checking DPS/dpsXclient.h presence... " >&6; } |
| 36292 | cat >conftest.$ac_ext <<_ACEOF |
| 36293 | /* confdefs.h. */ |
| 36294 | _ACEOF |
| 36295 | cat confdefs.h >>conftest.$ac_ext |
| 36296 | cat >>conftest.$ac_ext <<_ACEOF |
| 36297 | /* end confdefs.h. */ |
| 36298 | #include <DPS/dpsXclient.h> |
| 36299 | _ACEOF |
| 36300 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 36301 | case "(($ac_try" in |
| 36302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 36303 | *) ac_try_echo=$ac_try;; |
| 36304 | esac |
| 36305 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 36306 | $as_echo "$ac_try_echo") >&5 |
| 36307 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 36308 | ac_status=$? |
| 36309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 36310 | rm -f conftest.er1 |
| 36311 | cat conftest.err >&5 |
| 36312 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 36313 | (exit $ac_status); } >/dev/null && { |
| 36314 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 36315 | test ! -s conftest.err |
| 36316 | }; then |
| 36317 | ac_header_preproc=yes |
| 36318 | else |
| 36319 | $as_echo "$as_me: failed program was:" >&5 |
| 36320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 36321 | |
| 36322 | ac_header_preproc=no |
| 36323 | fi |
| 36324 | |
| 36325 | rm -f conftest.err conftest.$ac_ext |
| 36326 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 36327 | $as_echo "$ac_header_preproc" >&6; } |
| 36328 | |
| 36329 | # So? What about this header? |
| 36330 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 36331 | yes:no: ) |
| 36332 | { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 36333 | $as_echo "$as_me: WARNING: DPS/dpsXclient.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 36334 | { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: proceeding with the compiler's result" >&5 |
| 36335 | $as_echo "$as_me: WARNING: DPS/dpsXclient.h: proceeding with the compiler's result" >&2;} |
| 36336 | ac_header_preproc=yes |
| 36337 | ;; |
| 36338 | no:yes:* ) |
| 36339 | { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: present but cannot be compiled" >&5 |
| 36340 | $as_echo "$as_me: WARNING: DPS/dpsXclient.h: present but cannot be compiled" >&2;} |
| 36341 | { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: check for missing prerequisite headers?" >&5 |
| 36342 | $as_echo "$as_me: WARNING: DPS/dpsXclient.h: check for missing prerequisite headers?" >&2;} |
| 36343 | { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: see the Autoconf documentation" >&5 |
| 36344 | $as_echo "$as_me: WARNING: DPS/dpsXclient.h: see the Autoconf documentation" >&2;} |
| 36345 | { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 36346 | $as_echo "$as_me: WARNING: DPS/dpsXclient.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 36347 | { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: proceeding with the preprocessor's result" >&5 |
| 36348 | $as_echo "$as_me: WARNING: DPS/dpsXclient.h: proceeding with the preprocessor's result" >&2;} |
| 36349 | { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: in the future, the compiler will take precedence" >&5 |
| 36350 | $as_echo "$as_me: WARNING: DPS/dpsXclient.h: in the future, the compiler will take precedence" >&2;} |
| 36351 | ( cat <<\_ASBOX |
| 36352 | ## ----------------------------------------- ## |
| 36353 | ## Report this to http://www.imagemagick.org ## |
| 36354 | ## ----------------------------------------- ## |
| 36355 | _ASBOX |
| 36356 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 36357 | ;; |
| 36358 | esac |
| 36359 | { $as_echo "$as_me:$LINENO: checking for DPS/dpsXclient.h" >&5 |
| 36360 | $as_echo_n "checking for DPS/dpsXclient.h... " >&6; } |
| 36361 | if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then |
| 36362 | $as_echo_n "(cached) " >&6 |
| 36363 | else |
| 36364 | ac_cv_header_DPS_dpsXclient_h=$ac_header_preproc |
| 36365 | fi |
| 36366 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_DPS_dpsXclient_h" >&5 |
| 36367 | $as_echo "$ac_cv_header_DPS_dpsXclient_h" >&6; } |
| 36368 | |
| 36369 | fi |
| 36370 | if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then |
| 36371 | passed=`expr $passed + 1` |
| 36372 | else |
| 36373 | failed=`expr $failed + 1` |
| 36374 | fi |
| 36375 | |
| 36376 | |
| 36377 | # DPS issues: |
| 36378 | # XFree86-4.x needs -lXt to provide XtMalloc for -ldps. |
| 36379 | # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build. |
| 36380 | # Adobe DPS (as delivered on Solaris) doesn't require -lXt. |
| 36381 | # ImageMagick itself doesn't use -lXt. |
| 36382 | have_libdps='no' |
| 36383 | LIBDPS_XT='' |
| 36384 | { $as_echo "$as_me:$LINENO: checking for DPSInitialize in -ldps" >&5 |
| 36385 | $as_echo_n "checking for DPSInitialize in -ldps... " >&6; } |
| 36386 | if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then |
| 36387 | $as_echo_n "(cached) " >&6 |
| 36388 | else |
| 36389 | ac_check_lib_save_LIBS=$LIBS |
| 36390 | LIBS="-ldps $LIBS" |
| 36391 | cat >conftest.$ac_ext <<_ACEOF |
| 36392 | /* confdefs.h. */ |
| 36393 | _ACEOF |
| 36394 | cat confdefs.h >>conftest.$ac_ext |
| 36395 | cat >>conftest.$ac_ext <<_ACEOF |
| 36396 | /* end confdefs.h. */ |
| 36397 | |
| 36398 | /* Override any GCC internal prototype to avoid an error. |
| 36399 | Use char because int might match the return type of a GCC |
| 36400 | builtin and then its argument prototype would still apply. */ |
| 36401 | #ifdef __cplusplus |
| 36402 | extern "C" |
| 36403 | #endif |
| 36404 | char DPSInitialize (); |
| 36405 | int |
| 36406 | main () |
| 36407 | { |
| 36408 | return DPSInitialize (); |
| 36409 | ; |
| 36410 | return 0; |
| 36411 | } |
| 36412 | _ACEOF |
| 36413 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 36414 | if { (ac_try="$ac_link" |
| 36415 | case "(($ac_try" in |
| 36416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 36417 | *) ac_try_echo=$ac_try;; |
| 36418 | esac |
| 36419 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 36420 | $as_echo "$ac_try_echo") >&5 |
| 36421 | (eval "$ac_link") 2>conftest.er1 |
| 36422 | ac_status=$? |
| 36423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 36424 | rm -f conftest.er1 |
| 36425 | cat conftest.err >&5 |
| 36426 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 36427 | (exit $ac_status); } && { |
| 36428 | test -z "$ac_c_werror_flag" || |
| 36429 | test ! -s conftest.err |
| 36430 | } && test -s conftest$ac_exeext && { |
| 36431 | test "$cross_compiling" = yes || |
| 36432 | $as_test_x conftest$ac_exeext |
| 36433 | }; then |
| 36434 | ac_cv_lib_dps_DPSInitialize=yes |
| 36435 | else |
| 36436 | $as_echo "$as_me: failed program was:" >&5 |
| 36437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 36438 | |
| 36439 | ac_cv_lib_dps_DPSInitialize=no |
| 36440 | fi |
| 36441 | |
| 36442 | rm -rf conftest.dSYM |
| 36443 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 36444 | conftest$ac_exeext conftest.$ac_ext |
| 36445 | LIBS=$ac_check_lib_save_LIBS |
| 36446 | fi |
| 36447 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dps_DPSInitialize" >&5 |
| 36448 | $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } |
| 36449 | if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then |
| 36450 | have_libdps='yes' |
| 36451 | else |
| 36452 | have_libdps='no' |
| 36453 | fi |
| 36454 | |
| 36455 | if test "$have_libdps" != 'yes'; then |
| 36456 | # Unset cache variable so we can try again. |
| 36457 | unset ac_cv_lib_dps_DPSInitialize |
| 36458 | { $as_echo "$as_me:$LINENO: checking for DPSInitialize in -ldps" >&5 |
| 36459 | $as_echo_n "checking for DPSInitialize in -ldps... " >&6; } |
| 36460 | if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then |
| 36461 | $as_echo_n "(cached) " >&6 |
| 36462 | else |
| 36463 | ac_check_lib_save_LIBS=$LIBS |
| 36464 | LIBS="-ldps -lXt $LIBS" |
| 36465 | cat >conftest.$ac_ext <<_ACEOF |
| 36466 | /* confdefs.h. */ |
| 36467 | _ACEOF |
| 36468 | cat confdefs.h >>conftest.$ac_ext |
| 36469 | cat >>conftest.$ac_ext <<_ACEOF |
| 36470 | /* end confdefs.h. */ |
| 36471 | |
| 36472 | /* Override any GCC internal prototype to avoid an error. |
| 36473 | Use char because int might match the return type of a GCC |
| 36474 | builtin and then its argument prototype would still apply. */ |
| 36475 | #ifdef __cplusplus |
| 36476 | extern "C" |
| 36477 | #endif |
| 36478 | char DPSInitialize (); |
| 36479 | int |
| 36480 | main () |
| 36481 | { |
| 36482 | return DPSInitialize (); |
| 36483 | ; |
| 36484 | return 0; |
| 36485 | } |
| 36486 | _ACEOF |
| 36487 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 36488 | if { (ac_try="$ac_link" |
| 36489 | case "(($ac_try" in |
| 36490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 36491 | *) ac_try_echo=$ac_try;; |
| 36492 | esac |
| 36493 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 36494 | $as_echo "$ac_try_echo") >&5 |
| 36495 | (eval "$ac_link") 2>conftest.er1 |
| 36496 | ac_status=$? |
| 36497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 36498 | rm -f conftest.er1 |
| 36499 | cat conftest.err >&5 |
| 36500 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 36501 | (exit $ac_status); } && { |
| 36502 | test -z "$ac_c_werror_flag" || |
| 36503 | test ! -s conftest.err |
| 36504 | } && test -s conftest$ac_exeext && { |
| 36505 | test "$cross_compiling" = yes || |
| 36506 | $as_test_x conftest$ac_exeext |
| 36507 | }; then |
| 36508 | ac_cv_lib_dps_DPSInitialize=yes |
| 36509 | else |
| 36510 | $as_echo "$as_me: failed program was:" >&5 |
| 36511 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 36512 | |
| 36513 | ac_cv_lib_dps_DPSInitialize=no |
| 36514 | fi |
| 36515 | |
| 36516 | rm -rf conftest.dSYM |
| 36517 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 36518 | conftest$ac_exeext conftest.$ac_ext |
| 36519 | LIBS=$ac_check_lib_save_LIBS |
| 36520 | fi |
| 36521 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dps_DPSInitialize" >&5 |
| 36522 | $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } |
| 36523 | if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then |
| 36524 | have_libdps='yes' |
| 36525 | else |
| 36526 | have_libdps='no' |
| 36527 | fi |
| 36528 | |
| 36529 | if test "$have_libdps" = 'yes'; then |
| 36530 | LIBDPS_XT='-lXt' |
| 36531 | fi |
| 36532 | fi |
| 36533 | if test "$have_libdps" = 'yes'; then |
| 36534 | passed=`expr $passed + 1` |
| 36535 | else |
| 36536 | failed=`expr $failed + 1` |
| 36537 | fi |
| 36538 | { $as_echo "$as_me:$LINENO: checking for XDPSPixelsPerPoint in -ldpstk" >&5 |
| 36539 | $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; } |
| 36540 | if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then |
| 36541 | $as_echo_n "(cached) " >&6 |
| 36542 | else |
| 36543 | ac_check_lib_save_LIBS=$LIBS |
| 36544 | LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS" |
| 36545 | cat >conftest.$ac_ext <<_ACEOF |
| 36546 | /* confdefs.h. */ |
| 36547 | _ACEOF |
| 36548 | cat confdefs.h >>conftest.$ac_ext |
| 36549 | cat >>conftest.$ac_ext <<_ACEOF |
| 36550 | /* end confdefs.h. */ |
| 36551 | |
| 36552 | /* Override any GCC internal prototype to avoid an error. |
| 36553 | Use char because int might match the return type of a GCC |
| 36554 | builtin and then its argument prototype would still apply. */ |
| 36555 | #ifdef __cplusplus |
| 36556 | extern "C" |
| 36557 | #endif |
| 36558 | char XDPSPixelsPerPoint (); |
| 36559 | int |
| 36560 | main () |
| 36561 | { |
| 36562 | return XDPSPixelsPerPoint (); |
| 36563 | ; |
| 36564 | return 0; |
| 36565 | } |
| 36566 | _ACEOF |
| 36567 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 36568 | if { (ac_try="$ac_link" |
| 36569 | case "(($ac_try" in |
| 36570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 36571 | *) ac_try_echo=$ac_try;; |
| 36572 | esac |
| 36573 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 36574 | $as_echo "$ac_try_echo") >&5 |
| 36575 | (eval "$ac_link") 2>conftest.er1 |
| 36576 | ac_status=$? |
| 36577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 36578 | rm -f conftest.er1 |
| 36579 | cat conftest.err >&5 |
| 36580 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 36581 | (exit $ac_status); } && { |
| 36582 | test -z "$ac_c_werror_flag" || |
| 36583 | test ! -s conftest.err |
| 36584 | } && test -s conftest$ac_exeext && { |
| 36585 | test "$cross_compiling" = yes || |
| 36586 | $as_test_x conftest$ac_exeext |
| 36587 | }; then |
| 36588 | ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes |
| 36589 | else |
| 36590 | $as_echo "$as_me: failed program was:" >&5 |
| 36591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 36592 | |
| 36593 | ac_cv_lib_dpstk_XDPSPixelsPerPoint=no |
| 36594 | fi |
| 36595 | |
| 36596 | rm -rf conftest.dSYM |
| 36597 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 36598 | conftest$ac_exeext conftest.$ac_ext |
| 36599 | LIBS=$ac_check_lib_save_LIBS |
| 36600 | fi |
| 36601 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5 |
| 36602 | $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; } |
| 36603 | if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then |
| 36604 | passed=`expr $passed + 1` |
| 36605 | else |
| 36606 | failed=`expr $failed + 1` |
| 36607 | fi |
| 36608 | |
| 36609 | { $as_echo "$as_me:$LINENO: checking if DPS package is complete" >&5 |
| 36610 | $as_echo_n "checking if DPS package is complete... " >&6; } |
| 36611 | if test $passed -gt 0; then |
| 36612 | if test $failed -gt 0; then |
| 36613 | { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5 |
| 36614 | $as_echo "no -- some components failed test" >&6; } |
| 36615 | have_dps='no (failed tests)' |
| 36616 | CPPFLAGS="$PERSIST_CPPFLAGS" |
| 36617 | else |
| 36618 | DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}" |
| 36619 | LIBS="$DPS_LIBS $LIBS" |
| 36620 | |
| 36621 | cat >>confdefs.h <<\_ACEOF |
| 36622 | #define DPS_DELEGATE 1 |
| 36623 | _ACEOF |
| 36624 | |
| 36625 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 36626 | $as_echo "yes" >&6; } |
| 36627 | have_dps='yes' |
| 36628 | fi |
| 36629 | else |
| 36630 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 36631 | $as_echo "no" >&6; } |
| 36632 | CPPFLAGS=$PERSIST_CPPFLAGS |
| 36633 | fi |
| 36634 | fi |
| 36635 | if test "$have_dps" = 'yes'; then |
| 36636 | DPS_DELEGATE_TRUE= |
| 36637 | DPS_DELEGATE_FALSE='#' |
| 36638 | else |
| 36639 | DPS_DELEGATE_TRUE='#' |
| 36640 | DPS_DELEGATE_FALSE= |
| 36641 | fi |
| 36642 | |
| 36643 | |
| 36644 | |
| 36645 | |
| 36646 | # |
| 36647 | # Check for DJVU delegate library. |
| 36648 | # |
| 36649 | |
| 36650 | # Check whether --with-djvu was given. |
| 36651 | if test "${with_djvu+set}" = set; then |
| 36652 | withval=$with_djvu; with_djvu=$withval |
| 36653 | else |
| 36654 | with_djvu='yes' |
| 36655 | fi |
| 36656 | |
| 36657 | |
| 36658 | if test "$with_djvu" != 'yes'; then |
| 36659 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu " |
| 36660 | fi |
| 36661 | |
| 36662 | have_djvu='no' |
| 36663 | DJVU_LIBS='' |
| 36664 | if test "$with_djvu" != 'no'; then |
| 36665 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 36666 | $as_echo "-------------------------------------------------------------" >&6; } |
| 36667 | { $as_echo "$as_me:$LINENO: checking for DJVU" >&5 |
| 36668 | $as_echo_n "checking for DJVU... " >&6; } |
| 36669 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 36670 | $as_echo "" >&6; } |
| 36671 | failed=0 |
| 36672 | passed=0 |
| 36673 | if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then |
| 36674 | { $as_echo "$as_me:$LINENO: checking for libdjvu/ddjvuapi.h" >&5 |
| 36675 | $as_echo_n "checking for libdjvu/ddjvuapi.h... " >&6; } |
| 36676 | if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then |
| 36677 | $as_echo_n "(cached) " >&6 |
| 36678 | fi |
| 36679 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdjvu_ddjvuapi_h" >&5 |
| 36680 | $as_echo "$ac_cv_header_libdjvu_ddjvuapi_h" >&6; } |
| 36681 | else |
| 36682 | # Is the header compilable? |
| 36683 | { $as_echo "$as_me:$LINENO: checking libdjvu/ddjvuapi.h usability" >&5 |
| 36684 | $as_echo_n "checking libdjvu/ddjvuapi.h usability... " >&6; } |
| 36685 | cat >conftest.$ac_ext <<_ACEOF |
| 36686 | /* confdefs.h. */ |
| 36687 | _ACEOF |
| 36688 | cat confdefs.h >>conftest.$ac_ext |
| 36689 | cat >>conftest.$ac_ext <<_ACEOF |
| 36690 | /* end confdefs.h. */ |
| 36691 | $ac_includes_default |
| 36692 | #include <libdjvu/ddjvuapi.h> |
| 36693 | _ACEOF |
| 36694 | rm -f conftest.$ac_objext |
| 36695 | if { (ac_try="$ac_compile" |
| 36696 | case "(($ac_try" in |
| 36697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 36698 | *) ac_try_echo=$ac_try;; |
| 36699 | esac |
| 36700 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 36701 | $as_echo "$ac_try_echo") >&5 |
| 36702 | (eval "$ac_compile") 2>conftest.er1 |
| 36703 | ac_status=$? |
| 36704 | grep -v '^ *+' conftest.er1 >conftest.err |
| 36705 | rm -f conftest.er1 |
| 36706 | cat conftest.err >&5 |
| 36707 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 36708 | (exit $ac_status); } && { |
| 36709 | test -z "$ac_c_werror_flag" || |
| 36710 | test ! -s conftest.err |
| 36711 | } && test -s conftest.$ac_objext; then |
| 36712 | ac_header_compiler=yes |
| 36713 | else |
| 36714 | $as_echo "$as_me: failed program was:" >&5 |
| 36715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 36716 | |
| 36717 | ac_header_compiler=no |
| 36718 | fi |
| 36719 | |
| 36720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 36721 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 36722 | $as_echo "$ac_header_compiler" >&6; } |
| 36723 | |
| 36724 | # Is the header present? |
| 36725 | { $as_echo "$as_me:$LINENO: checking libdjvu/ddjvuapi.h presence" >&5 |
| 36726 | $as_echo_n "checking libdjvu/ddjvuapi.h presence... " >&6; } |
| 36727 | cat >conftest.$ac_ext <<_ACEOF |
| 36728 | /* confdefs.h. */ |
| 36729 | _ACEOF |
| 36730 | cat confdefs.h >>conftest.$ac_ext |
| 36731 | cat >>conftest.$ac_ext <<_ACEOF |
| 36732 | /* end confdefs.h. */ |
| 36733 | #include <libdjvu/ddjvuapi.h> |
| 36734 | _ACEOF |
| 36735 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 36736 | case "(($ac_try" in |
| 36737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 36738 | *) ac_try_echo=$ac_try;; |
| 36739 | esac |
| 36740 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 36741 | $as_echo "$ac_try_echo") >&5 |
| 36742 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 36743 | ac_status=$? |
| 36744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 36745 | rm -f conftest.er1 |
| 36746 | cat conftest.err >&5 |
| 36747 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 36748 | (exit $ac_status); } >/dev/null && { |
| 36749 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 36750 | test ! -s conftest.err |
| 36751 | }; then |
| 36752 | ac_header_preproc=yes |
| 36753 | else |
| 36754 | $as_echo "$as_me: failed program was:" >&5 |
| 36755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 36756 | |
| 36757 | ac_header_preproc=no |
| 36758 | fi |
| 36759 | |
| 36760 | rm -f conftest.err conftest.$ac_ext |
| 36761 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 36762 | $as_echo "$ac_header_preproc" >&6; } |
| 36763 | |
| 36764 | # So? What about this header? |
| 36765 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 36766 | yes:no: ) |
| 36767 | { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 36768 | $as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 36769 | { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: proceeding with the compiler's result" >&5 |
| 36770 | $as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: proceeding with the compiler's result" >&2;} |
| 36771 | ac_header_preproc=yes |
| 36772 | ;; |
| 36773 | no:yes:* ) |
| 36774 | { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: present but cannot be compiled" >&5 |
| 36775 | $as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: present but cannot be compiled" >&2;} |
| 36776 | { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: check for missing prerequisite headers?" >&5 |
| 36777 | $as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: check for missing prerequisite headers?" >&2;} |
| 36778 | { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: see the Autoconf documentation" >&5 |
| 36779 | $as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: see the Autoconf documentation" >&2;} |
| 36780 | { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 36781 | $as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 36782 | { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: proceeding with the preprocessor's result" >&5 |
| 36783 | $as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: proceeding with the preprocessor's result" >&2;} |
| 36784 | { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: in the future, the compiler will take precedence" >&5 |
| 36785 | $as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: in the future, the compiler will take precedence" >&2;} |
| 36786 | ( cat <<\_ASBOX |
| 36787 | ## ----------------------------------------- ## |
| 36788 | ## Report this to http://www.imagemagick.org ## |
| 36789 | ## ----------------------------------------- ## |
| 36790 | _ASBOX |
| 36791 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 36792 | ;; |
| 36793 | esac |
| 36794 | { $as_echo "$as_me:$LINENO: checking for libdjvu/ddjvuapi.h" >&5 |
| 36795 | $as_echo_n "checking for libdjvu/ddjvuapi.h... " >&6; } |
| 36796 | if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then |
| 36797 | $as_echo_n "(cached) " >&6 |
| 36798 | else |
| 36799 | ac_cv_header_libdjvu_ddjvuapi_h=$ac_header_preproc |
| 36800 | fi |
| 36801 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdjvu_ddjvuapi_h" >&5 |
| 36802 | $as_echo "$ac_cv_header_libdjvu_ddjvuapi_h" >&6; } |
| 36803 | |
| 36804 | fi |
| 36805 | if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then |
| 36806 | passed=`expr $passed + 1` |
| 36807 | else |
| 36808 | failed=`expr $failed + 1` |
| 36809 | fi |
| 36810 | |
| 36811 | |
| 36812 | { $as_echo "$as_me:$LINENO: checking for ddjvu_context_create in -ldjvulibre" >&5 |
| 36813 | $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; } |
| 36814 | if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then |
| 36815 | $as_echo_n "(cached) " >&6 |
| 36816 | else |
| 36817 | ac_check_lib_save_LIBS=$LIBS |
| 36818 | LIBS="-ldjvulibre $LIBS" |
| 36819 | cat >conftest.$ac_ext <<_ACEOF |
| 36820 | /* confdefs.h. */ |
| 36821 | _ACEOF |
| 36822 | cat confdefs.h >>conftest.$ac_ext |
| 36823 | cat >>conftest.$ac_ext <<_ACEOF |
| 36824 | /* end confdefs.h. */ |
| 36825 | |
| 36826 | /* Override any GCC internal prototype to avoid an error. |
| 36827 | Use char because int might match the return type of a GCC |
| 36828 | builtin and then its argument prototype would still apply. */ |
| 36829 | #ifdef __cplusplus |
| 36830 | extern "C" |
| 36831 | #endif |
| 36832 | char ddjvu_context_create (); |
| 36833 | int |
| 36834 | main () |
| 36835 | { |
| 36836 | return ddjvu_context_create (); |
| 36837 | ; |
| 36838 | return 0; |
| 36839 | } |
| 36840 | _ACEOF |
| 36841 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 36842 | if { (ac_try="$ac_link" |
| 36843 | case "(($ac_try" in |
| 36844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 36845 | *) ac_try_echo=$ac_try;; |
| 36846 | esac |
| 36847 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 36848 | $as_echo "$ac_try_echo") >&5 |
| 36849 | (eval "$ac_link") 2>conftest.er1 |
| 36850 | ac_status=$? |
| 36851 | grep -v '^ *+' conftest.er1 >conftest.err |
| 36852 | rm -f conftest.er1 |
| 36853 | cat conftest.err >&5 |
| 36854 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 36855 | (exit $ac_status); } && { |
| 36856 | test -z "$ac_c_werror_flag" || |
| 36857 | test ! -s conftest.err |
| 36858 | } && test -s conftest$ac_exeext && { |
| 36859 | test "$cross_compiling" = yes || |
| 36860 | $as_test_x conftest$ac_exeext |
| 36861 | }; then |
| 36862 | ac_cv_lib_djvulibre_ddjvu_context_create=yes |
| 36863 | else |
| 36864 | $as_echo "$as_me: failed program was:" >&5 |
| 36865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 36866 | |
| 36867 | ac_cv_lib_djvulibre_ddjvu_context_create=no |
| 36868 | fi |
| 36869 | |
| 36870 | rm -rf conftest.dSYM |
| 36871 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 36872 | conftest$ac_exeext conftest.$ac_ext |
| 36873 | LIBS=$ac_check_lib_save_LIBS |
| 36874 | fi |
| 36875 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5 |
| 36876 | $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; } |
| 36877 | if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then |
| 36878 | passed=`expr $passed + 1` |
| 36879 | else |
| 36880 | failed=`expr $failed + 1` |
| 36881 | fi |
| 36882 | |
| 36883 | { $as_echo "$as_me:$LINENO: checking if DJVU package is complete" >&5 |
| 36884 | $as_echo_n "checking if DJVU package is complete... " >&6; } |
| 36885 | if test $passed -gt 0; then |
| 36886 | if test $failed -gt 0; then |
| 36887 | { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5 |
| 36888 | $as_echo "no -- some components failed test" >&6; } |
| 36889 | have_djvu='no (failed tests)' |
| 36890 | else |
| 36891 | DJVU_LIBS='-ldjvulibre' |
| 36892 | LIBS="$DJVU_LIBS $LIBS" |
| 36893 | |
| 36894 | cat >>confdefs.h <<\_ACEOF |
| 36895 | #define DJVU_DELEGATE 1 |
| 36896 | _ACEOF |
| 36897 | |
| 36898 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 36899 | $as_echo "yes" >&6; } |
| 36900 | have_djvu='yes' |
| 36901 | fi |
| 36902 | else |
| 36903 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 36904 | $as_echo "no" >&6; } |
| 36905 | fi |
| 36906 | fi |
| 36907 | if test "$have_djvu" = 'yes'; then |
| 36908 | DJVU_DELEGATE_TRUE= |
| 36909 | DJVU_DELEGATE_FALSE='#' |
| 36910 | else |
| 36911 | DJVU_DELEGATE_TRUE='#' |
| 36912 | DJVU_DELEGATE_FALSE= |
| 36913 | fi |
| 36914 | |
| 36915 | |
| 36916 | |
| 36917 | |
| 36918 | # |
| 36919 | # Check for FFTW delegate library. |
| 36920 | # |
| 36921 | |
| 36922 | # Check whether --with-fftw was given. |
| 36923 | if test "${with_fftw+set}" = set; then |
| 36924 | withval=$with_fftw; with_fftw=$withval |
| 36925 | else |
| 36926 | with_fftw='yes' |
| 36927 | fi |
| 36928 | |
| 36929 | |
| 36930 | if test "$with_fftw" != 'yes'; then |
| 36931 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw " |
| 36932 | fi |
| 36933 | |
| 36934 | have_fftw='no' |
| 36935 | FFTW_LIBS='' |
| 36936 | if test "$with_fftw" != 'no'; then |
| 36937 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 36938 | $as_echo "-------------------------------------------------------------" >&6; } |
| 36939 | { $as_echo "$as_me:$LINENO: checking for FFTW" >&5 |
| 36940 | $as_echo_n "checking for FFTW... " >&6; } |
| 36941 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 36942 | $as_echo "" >&6; } |
| 36943 | failed=0 |
| 36944 | passed=0 |
| 36945 | if test "${ac_cv_header_fftw3_h+set}" = set; then |
| 36946 | { $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5 |
| 36947 | $as_echo_n "checking for fftw3.h... " >&6; } |
| 36948 | if test "${ac_cv_header_fftw3_h+set}" = set; then |
| 36949 | $as_echo_n "(cached) " >&6 |
| 36950 | fi |
| 36951 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5 |
| 36952 | $as_echo "$ac_cv_header_fftw3_h" >&6; } |
| 36953 | else |
| 36954 | # Is the header compilable? |
| 36955 | { $as_echo "$as_me:$LINENO: checking fftw3.h usability" >&5 |
| 36956 | $as_echo_n "checking fftw3.h usability... " >&6; } |
| 36957 | cat >conftest.$ac_ext <<_ACEOF |
| 36958 | /* confdefs.h. */ |
| 36959 | _ACEOF |
| 36960 | cat confdefs.h >>conftest.$ac_ext |
| 36961 | cat >>conftest.$ac_ext <<_ACEOF |
| 36962 | /* end confdefs.h. */ |
| 36963 | $ac_includes_default |
| 36964 | #include <fftw3.h> |
| 36965 | _ACEOF |
| 36966 | rm -f conftest.$ac_objext |
| 36967 | if { (ac_try="$ac_compile" |
| 36968 | case "(($ac_try" in |
| 36969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 36970 | *) ac_try_echo=$ac_try;; |
| 36971 | esac |
| 36972 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 36973 | $as_echo "$ac_try_echo") >&5 |
| 36974 | (eval "$ac_compile") 2>conftest.er1 |
| 36975 | ac_status=$? |
| 36976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 36977 | rm -f conftest.er1 |
| 36978 | cat conftest.err >&5 |
| 36979 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 36980 | (exit $ac_status); } && { |
| 36981 | test -z "$ac_c_werror_flag" || |
| 36982 | test ! -s conftest.err |
| 36983 | } && test -s conftest.$ac_objext; then |
| 36984 | ac_header_compiler=yes |
| 36985 | else |
| 36986 | $as_echo "$as_me: failed program was:" >&5 |
| 36987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 36988 | |
| 36989 | ac_header_compiler=no |
| 36990 | fi |
| 36991 | |
| 36992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 36993 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 36994 | $as_echo "$ac_header_compiler" >&6; } |
| 36995 | |
| 36996 | # Is the header present? |
| 36997 | { $as_echo "$as_me:$LINENO: checking fftw3.h presence" >&5 |
| 36998 | $as_echo_n "checking fftw3.h presence... " >&6; } |
| 36999 | cat >conftest.$ac_ext <<_ACEOF |
| 37000 | /* confdefs.h. */ |
| 37001 | _ACEOF |
| 37002 | cat confdefs.h >>conftest.$ac_ext |
| 37003 | cat >>conftest.$ac_ext <<_ACEOF |
| 37004 | /* end confdefs.h. */ |
| 37005 | #include <fftw3.h> |
| 37006 | _ACEOF |
| 37007 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 37008 | case "(($ac_try" in |
| 37009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 37010 | *) ac_try_echo=$ac_try;; |
| 37011 | esac |
| 37012 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 37013 | $as_echo "$ac_try_echo") >&5 |
| 37014 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 37015 | ac_status=$? |
| 37016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 37017 | rm -f conftest.er1 |
| 37018 | cat conftest.err >&5 |
| 37019 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 37020 | (exit $ac_status); } >/dev/null && { |
| 37021 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 37022 | test ! -s conftest.err |
| 37023 | }; then |
| 37024 | ac_header_preproc=yes |
| 37025 | else |
| 37026 | $as_echo "$as_me: failed program was:" >&5 |
| 37027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 37028 | |
| 37029 | ac_header_preproc=no |
| 37030 | fi |
| 37031 | |
| 37032 | rm -f conftest.err conftest.$ac_ext |
| 37033 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 37034 | $as_echo "$ac_header_preproc" >&6; } |
| 37035 | |
| 37036 | # So? What about this header? |
| 37037 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 37038 | yes:no: ) |
| 37039 | { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 37040 | $as_echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 37041 | { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5 |
| 37042 | $as_echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;} |
| 37043 | ac_header_preproc=yes |
| 37044 | ;; |
| 37045 | no:yes:* ) |
| 37046 | { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5 |
| 37047 | $as_echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;} |
| 37048 | { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: check for missing prerequisite headers?" >&5 |
| 37049 | $as_echo "$as_me: WARNING: fftw3.h: check for missing prerequisite headers?" >&2;} |
| 37050 | { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5 |
| 37051 | $as_echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;} |
| 37052 | { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 37053 | $as_echo "$as_me: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 37054 | { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5 |
| 37055 | $as_echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;} |
| 37056 | { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5 |
| 37057 | $as_echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;} |
| 37058 | ( cat <<\_ASBOX |
| 37059 | ## ----------------------------------------- ## |
| 37060 | ## Report this to http://www.imagemagick.org ## |
| 37061 | ## ----------------------------------------- ## |
| 37062 | _ASBOX |
| 37063 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 37064 | ;; |
| 37065 | esac |
| 37066 | { $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5 |
| 37067 | $as_echo_n "checking for fftw3.h... " >&6; } |
| 37068 | if test "${ac_cv_header_fftw3_h+set}" = set; then |
| 37069 | $as_echo_n "(cached) " >&6 |
| 37070 | else |
| 37071 | ac_cv_header_fftw3_h=$ac_header_preproc |
| 37072 | fi |
| 37073 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5 |
| 37074 | $as_echo "$ac_cv_header_fftw3_h" >&6; } |
| 37075 | |
| 37076 | fi |
| 37077 | if test "x$ac_cv_header_fftw3_h" = x""yes; then |
| 37078 | passed=`expr $passed + 1` |
| 37079 | else |
| 37080 | failed=`expr $failed + 1` |
| 37081 | fi |
| 37082 | |
| 37083 | |
| 37084 | { $as_echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5 |
| 37085 | $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; } |
| 37086 | if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then |
| 37087 | $as_echo_n "(cached) " >&6 |
| 37088 | else |
| 37089 | ac_check_lib_save_LIBS=$LIBS |
| 37090 | LIBS="-lfftw3 $LIBS" |
| 37091 | cat >conftest.$ac_ext <<_ACEOF |
| 37092 | /* confdefs.h. */ |
| 37093 | _ACEOF |
| 37094 | cat confdefs.h >>conftest.$ac_ext |
| 37095 | cat >>conftest.$ac_ext <<_ACEOF |
| 37096 | /* end confdefs.h. */ |
| 37097 | |
| 37098 | /* Override any GCC internal prototype to avoid an error. |
| 37099 | Use char because int might match the return type of a GCC |
| 37100 | builtin and then its argument prototype would still apply. */ |
| 37101 | #ifdef __cplusplus |
| 37102 | extern "C" |
| 37103 | #endif |
| 37104 | char fftw_execute (); |
| 37105 | int |
| 37106 | main () |
| 37107 | { |
| 37108 | return fftw_execute (); |
| 37109 | ; |
| 37110 | return 0; |
| 37111 | } |
| 37112 | _ACEOF |
| 37113 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 37114 | if { (ac_try="$ac_link" |
| 37115 | case "(($ac_try" in |
| 37116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 37117 | *) ac_try_echo=$ac_try;; |
| 37118 | esac |
| 37119 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 37120 | $as_echo "$ac_try_echo") >&5 |
| 37121 | (eval "$ac_link") 2>conftest.er1 |
| 37122 | ac_status=$? |
| 37123 | grep -v '^ *+' conftest.er1 >conftest.err |
| 37124 | rm -f conftest.er1 |
| 37125 | cat conftest.err >&5 |
| 37126 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 37127 | (exit $ac_status); } && { |
| 37128 | test -z "$ac_c_werror_flag" || |
| 37129 | test ! -s conftest.err |
| 37130 | } && test -s conftest$ac_exeext && { |
| 37131 | test "$cross_compiling" = yes || |
| 37132 | $as_test_x conftest$ac_exeext |
| 37133 | }; then |
| 37134 | ac_cv_lib_fftw3_fftw_execute=yes |
| 37135 | else |
| 37136 | $as_echo "$as_me: failed program was:" >&5 |
| 37137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 37138 | |
| 37139 | ac_cv_lib_fftw3_fftw_execute=no |
| 37140 | fi |
| 37141 | |
| 37142 | rm -rf conftest.dSYM |
| 37143 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 37144 | conftest$ac_exeext conftest.$ac_ext |
| 37145 | LIBS=$ac_check_lib_save_LIBS |
| 37146 | fi |
| 37147 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5 |
| 37148 | $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; } |
| 37149 | if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then |
| 37150 | passed=`expr $passed + 1` |
| 37151 | else |
| 37152 | failed=`expr $failed + 1` |
| 37153 | fi |
| 37154 | |
| 37155 | { $as_echo "$as_me:$LINENO: checking if FFTW package is complete" >&5 |
| 37156 | $as_echo_n "checking if FFTW package is complete... " >&6; } |
| 37157 | if test $passed -gt 0; then |
| 37158 | if test $failed -gt 0; then |
| 37159 | { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5 |
| 37160 | $as_echo "no -- some components failed test" >&6; } |
| 37161 | have_fftw='no (failed tests)' |
| 37162 | else |
| 37163 | FFTW_LIBS='-lfftw3' |
| 37164 | LIBS="$FFTW_LIBS $LIBS" |
| 37165 | |
| 37166 | cat >>confdefs.h <<\_ACEOF |
| 37167 | #define FFTW_DELEGATE 1 |
| 37168 | _ACEOF |
| 37169 | |
| 37170 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 37171 | $as_echo "yes" >&6; } |
| 37172 | have_fftw='yes' |
| 37173 | fi |
| 37174 | else |
| 37175 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 37176 | $as_echo "no" >&6; } |
| 37177 | fi |
| 37178 | fi |
| 37179 | if test "$have_fftw" = 'yes'; then |
| 37180 | FFTW_DELEGATE_TRUE= |
| 37181 | FFTW_DELEGATE_FALSE='#' |
| 37182 | else |
| 37183 | FFTW_DELEGATE_TRUE='#' |
| 37184 | FFTW_DELEGATE_FALSE= |
| 37185 | fi |
| 37186 | |
| 37187 | |
| 37188 | |
| 37189 | |
| 37190 | # |
| 37191 | # Check for FlashPIX delegate library. |
| 37192 | # |
| 37193 | |
| 37194 | # Check whether --with-fpx was given. |
| 37195 | if test "${with_fpx+set}" = set; then |
| 37196 | withval=$with_fpx; with_fpx=$withval |
| 37197 | else |
| 37198 | with_fpx='yes' |
| 37199 | fi |
| 37200 | |
| 37201 | |
| 37202 | if test "$with_fpx" != 'yes'; then |
| 37203 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx " |
| 37204 | fi |
| 37205 | |
| 37206 | have_fpx='no' |
| 37207 | FPX_LIBS='' |
| 37208 | if test "$with_fpx" != 'no'; then |
| 37209 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 37210 | $as_echo "-------------------------------------------------------------" >&6; } |
| 37211 | { $as_echo "$as_me:$LINENO: checking for FlashPIX" >&5 |
| 37212 | $as_echo_n "checking for FlashPIX... " >&6; } |
| 37213 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 37214 | $as_echo "" >&6; } |
| 37215 | failed=0 |
| 37216 | passed=0 |
| 37217 | ac_ext=cpp |
| 37218 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 37219 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 37220 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 37221 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 37222 | |
| 37223 | |
| 37224 | if test "${ac_cv_header_fpxlib_h+set}" = set; then |
| 37225 | { $as_echo "$as_me:$LINENO: checking for fpxlib.h" >&5 |
| 37226 | $as_echo_n "checking for fpxlib.h... " >&6; } |
| 37227 | if test "${ac_cv_header_fpxlib_h+set}" = set; then |
| 37228 | $as_echo_n "(cached) " >&6 |
| 37229 | fi |
| 37230 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_fpxlib_h" >&5 |
| 37231 | $as_echo "$ac_cv_header_fpxlib_h" >&6; } |
| 37232 | else |
| 37233 | # Is the header compilable? |
| 37234 | { $as_echo "$as_me:$LINENO: checking fpxlib.h usability" >&5 |
| 37235 | $as_echo_n "checking fpxlib.h usability... " >&6; } |
| 37236 | cat >conftest.$ac_ext <<_ACEOF |
| 37237 | /* confdefs.h. */ |
| 37238 | _ACEOF |
| 37239 | cat confdefs.h >>conftest.$ac_ext |
| 37240 | cat >>conftest.$ac_ext <<_ACEOF |
| 37241 | /* end confdefs.h. */ |
| 37242 | $ac_includes_default |
| 37243 | #include <fpxlib.h> |
| 37244 | _ACEOF |
| 37245 | rm -f conftest.$ac_objext |
| 37246 | if { (ac_try="$ac_compile" |
| 37247 | case "(($ac_try" in |
| 37248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 37249 | *) ac_try_echo=$ac_try;; |
| 37250 | esac |
| 37251 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 37252 | $as_echo "$ac_try_echo") >&5 |
| 37253 | (eval "$ac_compile") 2>conftest.er1 |
| 37254 | ac_status=$? |
| 37255 | grep -v '^ *+' conftest.er1 >conftest.err |
| 37256 | rm -f conftest.er1 |
| 37257 | cat conftest.err >&5 |
| 37258 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 37259 | (exit $ac_status); } && { |
| 37260 | test -z "$ac_cxx_werror_flag" || |
| 37261 | test ! -s conftest.err |
| 37262 | } && test -s conftest.$ac_objext; then |
| 37263 | ac_header_compiler=yes |
| 37264 | else |
| 37265 | $as_echo "$as_me: failed program was:" >&5 |
| 37266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 37267 | |
| 37268 | ac_header_compiler=no |
| 37269 | fi |
| 37270 | |
| 37271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 37272 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 37273 | $as_echo "$ac_header_compiler" >&6; } |
| 37274 | |
| 37275 | # Is the header present? |
| 37276 | { $as_echo "$as_me:$LINENO: checking fpxlib.h presence" >&5 |
| 37277 | $as_echo_n "checking fpxlib.h presence... " >&6; } |
| 37278 | cat >conftest.$ac_ext <<_ACEOF |
| 37279 | /* confdefs.h. */ |
| 37280 | _ACEOF |
| 37281 | cat confdefs.h >>conftest.$ac_ext |
| 37282 | cat >>conftest.$ac_ext <<_ACEOF |
| 37283 | /* end confdefs.h. */ |
| 37284 | #include <fpxlib.h> |
| 37285 | _ACEOF |
| 37286 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 37287 | case "(($ac_try" in |
| 37288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 37289 | *) ac_try_echo=$ac_try;; |
| 37290 | esac |
| 37291 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 37292 | $as_echo "$ac_try_echo") >&5 |
| 37293 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 37294 | ac_status=$? |
| 37295 | grep -v '^ *+' conftest.er1 >conftest.err |
| 37296 | rm -f conftest.er1 |
| 37297 | cat conftest.err >&5 |
| 37298 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 37299 | (exit $ac_status); } >/dev/null && { |
| 37300 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 37301 | test ! -s conftest.err |
| 37302 | }; then |
| 37303 | ac_header_preproc=yes |
| 37304 | else |
| 37305 | $as_echo "$as_me: failed program was:" >&5 |
| 37306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 37307 | |
| 37308 | ac_header_preproc=no |
| 37309 | fi |
| 37310 | |
| 37311 | rm -f conftest.err conftest.$ac_ext |
| 37312 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 37313 | $as_echo "$ac_header_preproc" >&6; } |
| 37314 | |
| 37315 | # So? What about this header? |
| 37316 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 37317 | yes:no: ) |
| 37318 | { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 37319 | $as_echo "$as_me: WARNING: fpxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 37320 | { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: proceeding with the compiler's result" >&5 |
| 37321 | $as_echo "$as_me: WARNING: fpxlib.h: proceeding with the compiler's result" >&2;} |
| 37322 | ac_header_preproc=yes |
| 37323 | ;; |
| 37324 | no:yes:* ) |
| 37325 | { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: present but cannot be compiled" >&5 |
| 37326 | $as_echo "$as_me: WARNING: fpxlib.h: present but cannot be compiled" >&2;} |
| 37327 | { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: check for missing prerequisite headers?" >&5 |
| 37328 | $as_echo "$as_me: WARNING: fpxlib.h: check for missing prerequisite headers?" >&2;} |
| 37329 | { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: see the Autoconf documentation" >&5 |
| 37330 | $as_echo "$as_me: WARNING: fpxlib.h: see the Autoconf documentation" >&2;} |
| 37331 | { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 37332 | $as_echo "$as_me: WARNING: fpxlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 37333 | { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: proceeding with the preprocessor's result" >&5 |
| 37334 | $as_echo "$as_me: WARNING: fpxlib.h: proceeding with the preprocessor's result" >&2;} |
| 37335 | { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: in the future, the compiler will take precedence" >&5 |
| 37336 | $as_echo "$as_me: WARNING: fpxlib.h: in the future, the compiler will take precedence" >&2;} |
| 37337 | ( cat <<\_ASBOX |
| 37338 | ## ----------------------------------------- ## |
| 37339 | ## Report this to http://www.imagemagick.org ## |
| 37340 | ## ----------------------------------------- ## |
| 37341 | _ASBOX |
| 37342 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 37343 | ;; |
| 37344 | esac |
| 37345 | { $as_echo "$as_me:$LINENO: checking for fpxlib.h" >&5 |
| 37346 | $as_echo_n "checking for fpxlib.h... " >&6; } |
| 37347 | if test "${ac_cv_header_fpxlib_h+set}" = set; then |
| 37348 | $as_echo_n "(cached) " >&6 |
| 37349 | else |
| 37350 | ac_cv_header_fpxlib_h=$ac_header_preproc |
| 37351 | fi |
| 37352 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_fpxlib_h" >&5 |
| 37353 | $as_echo "$ac_cv_header_fpxlib_h" >&6; } |
| 37354 | |
| 37355 | fi |
| 37356 | if test "x$ac_cv_header_fpxlib_h" = x""yes; then |
| 37357 | passed=`expr $passed + 1` |
| 37358 | else |
| 37359 | failed=`expr $failed + 1` |
| 37360 | fi |
| 37361 | |
| 37362 | |
| 37363 | { $as_echo "$as_me:$LINENO: checking for FPX_OpenImageByFilename in -lfpx" >&5 |
| 37364 | $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; } |
| 37365 | if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then |
| 37366 | $as_echo_n "(cached) " >&6 |
| 37367 | else |
| 37368 | ac_check_lib_save_LIBS=$LIBS |
| 37369 | LIBS="-lfpx $LIBS" |
| 37370 | cat >conftest.$ac_ext <<_ACEOF |
| 37371 | /* confdefs.h. */ |
| 37372 | _ACEOF |
| 37373 | cat confdefs.h >>conftest.$ac_ext |
| 37374 | cat >>conftest.$ac_ext <<_ACEOF |
| 37375 | /* end confdefs.h. */ |
| 37376 | |
| 37377 | /* Override any GCC internal prototype to avoid an error. |
| 37378 | Use char because int might match the return type of a GCC |
| 37379 | builtin and then its argument prototype would still apply. */ |
| 37380 | #ifdef __cplusplus |
| 37381 | extern "C" |
| 37382 | #endif |
| 37383 | char FPX_OpenImageByFilename (); |
| 37384 | int |
| 37385 | main () |
| 37386 | { |
| 37387 | return FPX_OpenImageByFilename (); |
| 37388 | ; |
| 37389 | return 0; |
| 37390 | } |
| 37391 | _ACEOF |
| 37392 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 37393 | if { (ac_try="$ac_link" |
| 37394 | case "(($ac_try" in |
| 37395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 37396 | *) ac_try_echo=$ac_try;; |
| 37397 | esac |
| 37398 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 37399 | $as_echo "$ac_try_echo") >&5 |
| 37400 | (eval "$ac_link") 2>conftest.er1 |
| 37401 | ac_status=$? |
| 37402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 37403 | rm -f conftest.er1 |
| 37404 | cat conftest.err >&5 |
| 37405 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 37406 | (exit $ac_status); } && { |
| 37407 | test -z "$ac_cxx_werror_flag" || |
| 37408 | test ! -s conftest.err |
| 37409 | } && test -s conftest$ac_exeext && { |
| 37410 | test "$cross_compiling" = yes || |
| 37411 | $as_test_x conftest$ac_exeext |
| 37412 | }; then |
| 37413 | ac_cv_lib_fpx_FPX_OpenImageByFilename=yes |
| 37414 | else |
| 37415 | $as_echo "$as_me: failed program was:" >&5 |
| 37416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 37417 | |
| 37418 | ac_cv_lib_fpx_FPX_OpenImageByFilename=no |
| 37419 | fi |
| 37420 | |
| 37421 | rm -rf conftest.dSYM |
| 37422 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 37423 | conftest$ac_exeext conftest.$ac_ext |
| 37424 | LIBS=$ac_check_lib_save_LIBS |
| 37425 | fi |
| 37426 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5 |
| 37427 | $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; } |
| 37428 | if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then |
| 37429 | passed=`expr $passed + 1` |
| 37430 | else |
| 37431 | failed=`expr $failed + 1` |
| 37432 | fi |
| 37433 | |
| 37434 | ac_ext=c |
| 37435 | ac_cpp='$CPP $CPPFLAGS' |
| 37436 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 37437 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 37438 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 37439 | |
| 37440 | { $as_echo "$as_me:$LINENO: checking if FlashPIX package is complete" >&5 |
| 37441 | $as_echo_n "checking if FlashPIX package is complete... " >&6; } |
| 37442 | if test $passed -gt 0; then |
| 37443 | if test $failed -gt 0; then |
| 37444 | { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5 |
| 37445 | $as_echo "no -- some components failed test" >&6; } |
| 37446 | have_fpx='no (failed tests)' |
| 37447 | else |
| 37448 | FPX_LIBS='-lfpx' |
| 37449 | |
| 37450 | cat >>confdefs.h <<\_ACEOF |
| 37451 | #define FPX_DELEGATE 1 |
| 37452 | _ACEOF |
| 37453 | |
| 37454 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 37455 | $as_echo "yes" >&6; } |
| 37456 | have_fpx='yes' |
| 37457 | PERLMAINCC="$CXX" |
| 37458 | fi |
| 37459 | else |
| 37460 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 37461 | $as_echo "no" >&6; } |
| 37462 | fi |
| 37463 | fi |
| 37464 | if test "$have_fpx" = 'yes'; then |
| 37465 | FPX_DELEGATE_TRUE= |
| 37466 | FPX_DELEGATE_FALSE='#' |
| 37467 | else |
| 37468 | FPX_DELEGATE_TRUE='#' |
| 37469 | FPX_DELEGATE_FALSE= |
| 37470 | fi |
| 37471 | |
| 37472 | |
| 37473 | |
| 37474 | |
| 37475 | # |
| 37476 | # Check for fontconfig delegate library. |
| 37477 | # |
| 37478 | |
| 37479 | # Check whether --with-fontconfig was given. |
| 37480 | if test "${with_fontconfig+set}" = set; then |
| 37481 | withval=$with_fontconfig; with_fontconfig=$withval |
| 37482 | else |
| 37483 | with_fontconfig=$have_x |
| 37484 | fi |
| 37485 | |
| 37486 | |
| 37487 | if test "$with_fontconfig" != 'yes'; then |
| 37488 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig " |
| 37489 | fi |
| 37490 | |
| 37491 | have_fontconfig='no' |
| 37492 | FONTCONFIG_CFLAGS="" |
| 37493 | FONTCONFIG_LIBS="" |
| 37494 | FONTCONFIG_PKG="" |
| 37495 | if test "x$with_fontconfig" = "xyes"; then |
| 37496 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 37497 | $as_echo "-------------------------------------------------------------" >&6; } |
| 37498 | |
| 37499 | pkg_failed=no |
| 37500 | { $as_echo "$as_me:$LINENO: checking for FONTCONFIG" >&5 |
| 37501 | $as_echo_n "checking for FONTCONFIG... " >&6; } |
| 37502 | |
| 37503 | if test -n "$FONTCONFIG_CFLAGS"; then |
| 37504 | pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" |
| 37505 | elif test -n "$PKG_CONFIG"; then |
| 37506 | if test -n "$PKG_CONFIG" && \ |
| 37507 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\"") >&5 |
| 37508 | ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 |
| 37509 | ac_status=$? |
| 37510 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 37511 | (exit $ac_status); }; then |
| 37512 | pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null` |
| 37513 | else |
| 37514 | pkg_failed=yes |
| 37515 | fi |
| 37516 | else |
| 37517 | pkg_failed=untried |
| 37518 | fi |
| 37519 | if test -n "$FONTCONFIG_LIBS"; then |
| 37520 | pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" |
| 37521 | elif test -n "$PKG_CONFIG"; then |
| 37522 | if test -n "$PKG_CONFIG" && \ |
| 37523 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\"") >&5 |
| 37524 | ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 |
| 37525 | ac_status=$? |
| 37526 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 37527 | (exit $ac_status); }; then |
| 37528 | pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null` |
| 37529 | else |
| 37530 | pkg_failed=yes |
| 37531 | fi |
| 37532 | else |
| 37533 | pkg_failed=untried |
| 37534 | fi |
| 37535 | |
| 37536 | |
| 37537 | |
| 37538 | if test $pkg_failed = yes; then |
| 37539 | |
| 37540 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 37541 | _pkg_short_errors_supported=yes |
| 37542 | else |
| 37543 | _pkg_short_errors_supported=no |
| 37544 | fi |
| 37545 | if test $_pkg_short_errors_supported = yes; then |
| 37546 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1` |
| 37547 | else |
| 37548 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1` |
| 37549 | fi |
| 37550 | # Put the nasty error message in config.log where it belongs |
| 37551 | echo "$FONTCONFIG_PKG_ERRORS" >&5 |
| 37552 | |
| 37553 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 37554 | $as_echo "no" >&6; } |
| 37555 | have_fontconfig=no |
| 37556 | elif test $pkg_failed = untried; then |
| 37557 | have_fontconfig=no |
| 37558 | else |
| 37559 | FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS |
| 37560 | FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS |
| 37561 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 37562 | $as_echo "yes" >&6; } |
| 37563 | have_fontconfig=yes |
| 37564 | fi |
| 37565 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 37566 | $as_echo "" >&6; } |
| 37567 | fi |
| 37568 | |
| 37569 | if test "$have_fontconfig" = 'yes'; then |
| 37570 | |
| 37571 | cat >>confdefs.h <<\_ACEOF |
| 37572 | #define FONTCONFIG_DELEGATE 1 |
| 37573 | _ACEOF |
| 37574 | |
| 37575 | if test "$with_modules" = 'no'; then |
| 37576 | CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS" |
| 37577 | fi |
| 37578 | fi |
| 37579 | |
| 37580 | if test "$have_fontconfig" = 'yes'; then |
| 37581 | FONTCONFIG_DELEGATE_TRUE= |
| 37582 | FONTCONFIG_DELEGATE_FALSE='#' |
| 37583 | else |
| 37584 | FONTCONFIG_DELEGATE_TRUE='#' |
| 37585 | FONTCONFIG_DELEGATE_FALSE= |
| 37586 | fi |
| 37587 | |
| 37588 | |
| 37589 | |
| 37590 | |
| 37591 | |
| 37592 | # |
| 37593 | # Check for freetype delegate library. |
| 37594 | # |
| 37595 | |
| 37596 | # Check whether --with-freetype was given. |
| 37597 | if test "${with_freetype+set}" = set; then |
| 37598 | withval=$with_freetype; with_freetype=$withval |
| 37599 | else |
| 37600 | with_freetype='yes' |
| 37601 | fi |
| 37602 | |
| 37603 | |
| 37604 | |
| 37605 | if test "$with_freetype" != 'yes'; then |
| 37606 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype " |
| 37607 | fi |
| 37608 | |
| 37609 | have_freetype='no' |
| 37610 | FREETYPE_LIBS='' |
| 37611 | if test "$with_freetype" != 'no'; then |
| 37612 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 37613 | $as_echo "-------------------------------------------------------------" >&6; } |
| 37614 | { $as_echo "$as_me:$LINENO: checking for FreeType 2.0" >&5 |
| 37615 | $as_echo_n "checking for FreeType 2.0... " >&6; } |
| 37616 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 37617 | $as_echo "" >&6; } |
| 37618 | failed=0 |
| 37619 | passed=0 |
| 37620 | PERSIST_LDFLAGS="$LDFLAGS" |
| 37621 | PERSIST_CPPFLAGS="$CPPFLAGS" |
| 37622 | if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then |
| 37623 | : |
| 37624 | else |
| 37625 | freetype_config='' |
| 37626 | for ac_prog in freetype-config |
| 37627 | do |
| 37628 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 37629 | set dummy $ac_prog; ac_word=$2 |
| 37630 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 37631 | $as_echo_n "checking for $ac_word... " >&6; } |
| 37632 | if test "${ac_cv_prog_freetype_config+set}" = set; then |
| 37633 | $as_echo_n "(cached) " >&6 |
| 37634 | else |
| 37635 | if test -n "$freetype_config"; then |
| 37636 | ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test. |
| 37637 | else |
| 37638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 37639 | for as_dir in $PATH |
| 37640 | do |
| 37641 | IFS=$as_save_IFS |
| 37642 | test -z "$as_dir" && as_dir=. |
| 37643 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 37644 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 37645 | ac_cv_prog_freetype_config="$ac_prog" |
| 37646 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 37647 | break 2 |
| 37648 | fi |
| 37649 | done |
| 37650 | done |
| 37651 | IFS=$as_save_IFS |
| 37652 | |
| 37653 | fi |
| 37654 | fi |
| 37655 | freetype_config=$ac_cv_prog_freetype_config |
| 37656 | if test -n "$freetype_config"; then |
| 37657 | { $as_echo "$as_me:$LINENO: result: $freetype_config" >&5 |
| 37658 | $as_echo "$freetype_config" >&6; } |
| 37659 | else |
| 37660 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 37661 | $as_echo "no" >&6; } |
| 37662 | fi |
| 37663 | |
| 37664 | |
| 37665 | test -n "$freetype_config" && break |
| 37666 | done |
| 37667 | if test -n "$freetype_config"; then |
| 37668 | freetype_cflags=`$freetype_config --cflags` |
| 37669 | freetype_libs=`$freetype_config --libs` |
| 37670 | LDFLAGS="$LDFLAGS $freetype_libs" |
| 37671 | CPPFLAGS="$freetype_cflags $CPPFLAGS" |
| 37672 | fi |
| 37673 | fi |
| 37674 | |
| 37675 | if test "$FREETYPE_LIBS" = ''; then |
| 37676 | { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 |
| 37677 | $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; } |
| 37678 | if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then |
| 37679 | $as_echo_n "(cached) " >&6 |
| 37680 | else |
| 37681 | ac_check_lib_save_LIBS=$LIBS |
| 37682 | LIBS="-lfreetype $LIBS" |
| 37683 | cat >conftest.$ac_ext <<_ACEOF |
| 37684 | /* confdefs.h. */ |
| 37685 | _ACEOF |
| 37686 | cat confdefs.h >>conftest.$ac_ext |
| 37687 | cat >>conftest.$ac_ext <<_ACEOF |
| 37688 | /* end confdefs.h. */ |
| 37689 | |
| 37690 | /* Override any GCC internal prototype to avoid an error. |
| 37691 | Use char because int might match the return type of a GCC |
| 37692 | builtin and then its argument prototype would still apply. */ |
| 37693 | #ifdef __cplusplus |
| 37694 | extern "C" |
| 37695 | #endif |
| 37696 | char FT_Init_FreeType (); |
| 37697 | int |
| 37698 | main () |
| 37699 | { |
| 37700 | return FT_Init_FreeType (); |
| 37701 | ; |
| 37702 | return 0; |
| 37703 | } |
| 37704 | _ACEOF |
| 37705 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 37706 | if { (ac_try="$ac_link" |
| 37707 | case "(($ac_try" in |
| 37708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 37709 | *) ac_try_echo=$ac_try;; |
| 37710 | esac |
| 37711 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 37712 | $as_echo "$ac_try_echo") >&5 |
| 37713 | (eval "$ac_link") 2>conftest.er1 |
| 37714 | ac_status=$? |
| 37715 | grep -v '^ *+' conftest.er1 >conftest.err |
| 37716 | rm -f conftest.er1 |
| 37717 | cat conftest.err >&5 |
| 37718 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 37719 | (exit $ac_status); } && { |
| 37720 | test -z "$ac_c_werror_flag" || |
| 37721 | test ! -s conftest.err |
| 37722 | } && test -s conftest$ac_exeext && { |
| 37723 | test "$cross_compiling" = yes || |
| 37724 | $as_test_x conftest$ac_exeext |
| 37725 | }; then |
| 37726 | ac_cv_lib_freetype_FT_Init_FreeType=yes |
| 37727 | else |
| 37728 | $as_echo "$as_me: failed program was:" >&5 |
| 37729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 37730 | |
| 37731 | ac_cv_lib_freetype_FT_Init_FreeType=no |
| 37732 | fi |
| 37733 | |
| 37734 | rm -rf conftest.dSYM |
| 37735 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 37736 | conftest$ac_exeext conftest.$ac_ext |
| 37737 | LIBS=$ac_check_lib_save_LIBS |
| 37738 | fi |
| 37739 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 |
| 37740 | $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } |
| 37741 | if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then |
| 37742 | FREETYPE_LIBS='-lfreetype' |
| 37743 | fi |
| 37744 | |
| 37745 | if test "$FREETYPE_LIBS" != ''; then |
| 37746 | passed=`expr $passed + 1` |
| 37747 | else |
| 37748 | failed=`expr $failed + 1` |
| 37749 | LDFLAGS="$PERSIST_LDFLAGS" |
| 37750 | fi |
| 37751 | fi |
| 37752 | |
| 37753 | if test "${ac_cv_header_ft2build_h+set}" = set; then |
| 37754 | { $as_echo "$as_me:$LINENO: checking for ft2build.h" >&5 |
| 37755 | $as_echo_n "checking for ft2build.h... " >&6; } |
| 37756 | if test "${ac_cv_header_ft2build_h+set}" = set; then |
| 37757 | $as_echo_n "(cached) " >&6 |
| 37758 | fi |
| 37759 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5 |
| 37760 | $as_echo "$ac_cv_header_ft2build_h" >&6; } |
| 37761 | else |
| 37762 | # Is the header compilable? |
| 37763 | { $as_echo "$as_me:$LINENO: checking ft2build.h usability" >&5 |
| 37764 | $as_echo_n "checking ft2build.h usability... " >&6; } |
| 37765 | cat >conftest.$ac_ext <<_ACEOF |
| 37766 | /* confdefs.h. */ |
| 37767 | _ACEOF |
| 37768 | cat confdefs.h >>conftest.$ac_ext |
| 37769 | cat >>conftest.$ac_ext <<_ACEOF |
| 37770 | /* end confdefs.h. */ |
| 37771 | $ac_includes_default |
| 37772 | #include <ft2build.h> |
| 37773 | _ACEOF |
| 37774 | rm -f conftest.$ac_objext |
| 37775 | if { (ac_try="$ac_compile" |
| 37776 | case "(($ac_try" in |
| 37777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 37778 | *) ac_try_echo=$ac_try;; |
| 37779 | esac |
| 37780 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 37781 | $as_echo "$ac_try_echo") >&5 |
| 37782 | (eval "$ac_compile") 2>conftest.er1 |
| 37783 | ac_status=$? |
| 37784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 37785 | rm -f conftest.er1 |
| 37786 | cat conftest.err >&5 |
| 37787 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 37788 | (exit $ac_status); } && { |
| 37789 | test -z "$ac_c_werror_flag" || |
| 37790 | test ! -s conftest.err |
| 37791 | } && test -s conftest.$ac_objext; then |
| 37792 | ac_header_compiler=yes |
| 37793 | else |
| 37794 | $as_echo "$as_me: failed program was:" >&5 |
| 37795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 37796 | |
| 37797 | ac_header_compiler=no |
| 37798 | fi |
| 37799 | |
| 37800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 37801 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 37802 | $as_echo "$ac_header_compiler" >&6; } |
| 37803 | |
| 37804 | # Is the header present? |
| 37805 | { $as_echo "$as_me:$LINENO: checking ft2build.h presence" >&5 |
| 37806 | $as_echo_n "checking ft2build.h presence... " >&6; } |
| 37807 | cat >conftest.$ac_ext <<_ACEOF |
| 37808 | /* confdefs.h. */ |
| 37809 | _ACEOF |
| 37810 | cat confdefs.h >>conftest.$ac_ext |
| 37811 | cat >>conftest.$ac_ext <<_ACEOF |
| 37812 | /* end confdefs.h. */ |
| 37813 | #include <ft2build.h> |
| 37814 | _ACEOF |
| 37815 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 37816 | case "(($ac_try" in |
| 37817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 37818 | *) ac_try_echo=$ac_try;; |
| 37819 | esac |
| 37820 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 37821 | $as_echo "$ac_try_echo") >&5 |
| 37822 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 37823 | ac_status=$? |
| 37824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 37825 | rm -f conftest.er1 |
| 37826 | cat conftest.err >&5 |
| 37827 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 37828 | (exit $ac_status); } >/dev/null && { |
| 37829 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 37830 | test ! -s conftest.err |
| 37831 | }; then |
| 37832 | ac_header_preproc=yes |
| 37833 | else |
| 37834 | $as_echo "$as_me: failed program was:" >&5 |
| 37835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 37836 | |
| 37837 | ac_header_preproc=no |
| 37838 | fi |
| 37839 | |
| 37840 | rm -f conftest.err conftest.$ac_ext |
| 37841 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 37842 | $as_echo "$ac_header_preproc" >&6; } |
| 37843 | |
| 37844 | # So? What about this header? |
| 37845 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 37846 | yes:no: ) |
| 37847 | { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 37848 | $as_echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 37849 | { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5 |
| 37850 | $as_echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;} |
| 37851 | ac_header_preproc=yes |
| 37852 | ;; |
| 37853 | no:yes:* ) |
| 37854 | { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5 |
| 37855 | $as_echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;} |
| 37856 | { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5 |
| 37857 | $as_echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;} |
| 37858 | { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5 |
| 37859 | $as_echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;} |
| 37860 | { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 37861 | $as_echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 37862 | { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5 |
| 37863 | $as_echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;} |
| 37864 | { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5 |
| 37865 | $as_echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;} |
| 37866 | ( cat <<\_ASBOX |
| 37867 | ## ----------------------------------------- ## |
| 37868 | ## Report this to http://www.imagemagick.org ## |
| 37869 | ## ----------------------------------------- ## |
| 37870 | _ASBOX |
| 37871 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 37872 | ;; |
| 37873 | esac |
| 37874 | { $as_echo "$as_me:$LINENO: checking for ft2build.h" >&5 |
| 37875 | $as_echo_n "checking for ft2build.h... " >&6; } |
| 37876 | if test "${ac_cv_header_ft2build_h+set}" = set; then |
| 37877 | $as_echo_n "(cached) " >&6 |
| 37878 | else |
| 37879 | ac_cv_header_ft2build_h=$ac_header_preproc |
| 37880 | fi |
| 37881 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5 |
| 37882 | $as_echo "$ac_cv_header_ft2build_h" >&6; } |
| 37883 | |
| 37884 | fi |
| 37885 | if test "x$ac_cv_header_ft2build_h" = x""yes; then |
| 37886 | FT2BUILD_H='#include <ft2build.h>' |
| 37887 | else |
| 37888 | ft2build='' |
| 37889 | fi |
| 37890 | |
| 37891 | |
| 37892 | { $as_echo "$as_me:$LINENO: checking for freetype/freetype.h" >&5 |
| 37893 | $as_echo_n "checking for freetype/freetype.h... " >&6; } |
| 37894 | if test "${ac_cv_header_freetype_freetype_h+set}" = set; then |
| 37895 | $as_echo_n "(cached) " >&6 |
| 37896 | else |
| 37897 | cat >conftest.$ac_ext <<_ACEOF |
| 37898 | /* confdefs.h. */ |
| 37899 | _ACEOF |
| 37900 | cat confdefs.h >>conftest.$ac_ext |
| 37901 | cat >>conftest.$ac_ext <<_ACEOF |
| 37902 | /* end confdefs.h. */ |
| 37903 | $FT2BUILD_H |
| 37904 | |
| 37905 | #include <freetype/freetype.h> |
| 37906 | _ACEOF |
| 37907 | rm -f conftest.$ac_objext |
| 37908 | if { (ac_try="$ac_compile" |
| 37909 | case "(($ac_try" in |
| 37910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 37911 | *) ac_try_echo=$ac_try;; |
| 37912 | esac |
| 37913 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 37914 | $as_echo "$ac_try_echo") >&5 |
| 37915 | (eval "$ac_compile") 2>conftest.er1 |
| 37916 | ac_status=$? |
| 37917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 37918 | rm -f conftest.er1 |
| 37919 | cat conftest.err >&5 |
| 37920 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 37921 | (exit $ac_status); } && { |
| 37922 | test -z "$ac_c_werror_flag" || |
| 37923 | test ! -s conftest.err |
| 37924 | } && test -s conftest.$ac_objext; then |
| 37925 | ac_cv_header_freetype_freetype_h=yes |
| 37926 | else |
| 37927 | $as_echo "$as_me: failed program was:" >&5 |
| 37928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 37929 | |
| 37930 | ac_cv_header_freetype_freetype_h=no |
| 37931 | fi |
| 37932 | |
| 37933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 37934 | fi |
| 37935 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_freetype_freetype_h" >&5 |
| 37936 | $as_echo "$ac_cv_header_freetype_freetype_h" >&6; } |
| 37937 | if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then |
| 37938 | have_freetype_h='yes' |
| 37939 | else |
| 37940 | have_freetype_h='no' |
| 37941 | fi |
| 37942 | |
| 37943 | |
| 37944 | if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then |
| 37945 | passed=`expr $passed + 1` |
| 37946 | else |
| 37947 | failed=`expr $failed + 1` |
| 37948 | CPPFLAGS="$PERSIST_CPPFLAGS" |
| 37949 | fi |
| 37950 | |
| 37951 | { $as_echo "$as_me:$LINENO: checking if FreeType package is complete" >&5 |
| 37952 | $as_echo_n "checking if FreeType package is complete... " >&6; } |
| 37953 | if test $passed -gt 0; then |
| 37954 | if test $failed -gt 0; then |
| 37955 | FREETYPE_LIBS='' |
| 37956 | { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5 |
| 37957 | $as_echo "no -- some components failed test" >&6; } |
| 37958 | have_freetype='no (failed tests)' |
| 37959 | else |
| 37960 | LIBS="$FREETYPE_LIBS $LIBS" |
| 37961 | |
| 37962 | cat >>confdefs.h <<\_ACEOF |
| 37963 | #define FREETYPE_DELEGATE 1 |
| 37964 | _ACEOF |
| 37965 | |
| 37966 | if test "$ac_cv_header_ft2build_h" = 'yes'; then |
| 37967 | |
| 37968 | cat >>confdefs.h <<\_ACEOF |
| 37969 | #define HAVE_FT2BUILD_H 1 |
| 37970 | _ACEOF |
| 37971 | |
| 37972 | fi |
| 37973 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 37974 | $as_echo "yes" >&6; } |
| 37975 | have_freetype='yes' |
| 37976 | fi |
| 37977 | else |
| 37978 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 37979 | $as_echo "no" >&6; } |
| 37980 | fi |
| 37981 | fi |
| 37982 | if test "$have_freetype" = 'yes'; then |
| 37983 | FREETYPE_DELEGATE_TRUE= |
| 37984 | FREETYPE_DELEGATE_FALSE='#' |
| 37985 | else |
| 37986 | FREETYPE_DELEGATE_TRUE='#' |
| 37987 | FREETYPE_DELEGATE_FALSE= |
| 37988 | fi |
| 37989 | |
| 37990 | |
| 37991 | |
| 37992 | |
| 37993 | |
| 37994 | # |
| 37995 | # Check for Ghostscript library or framework. |
| 37996 | # |
| 37997 | # Test for iapi.h & test for gsapi_new_instance in -lgs |
| 37998 | # or -framework Ghostscript |
| 37999 | |
| 38000 | |
| 38001 | # Check whether --with-gslib was given. |
| 38002 | if test "${with_gslib+set}" = set; then |
| 38003 | withval=$with_gslib; with_gslib=$withval |
| 38004 | else |
| 38005 | with_gslib='no' |
| 38006 | fi |
| 38007 | |
| 38008 | |
| 38009 | if test "$with_gslib" != 'yes'; then |
| 38010 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib " |
| 38011 | fi |
| 38012 | |
| 38013 | have_gslib='no' |
| 38014 | GS_LIBS='' |
| 38015 | if test "$with_gslib" != 'no'; then |
| 38016 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 38017 | $as_echo "-------------------------------------------------------------" >&6; } |
| 38018 | { $as_echo "$as_me:$LINENO: checking for Ghostscript" >&5 |
| 38019 | $as_echo_n "checking for Ghostscript... " >&6; } |
| 38020 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 38021 | $as_echo "" >&6; } |
| 38022 | framework=0; |
| 38023 | failed=0 |
| 38024 | passed=0 |
| 38025 | if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then |
| 38026 | { $as_echo "$as_me:$LINENO: checking for ghostscript/iapi.h" >&5 |
| 38027 | $as_echo_n "checking for ghostscript/iapi.h... " >&6; } |
| 38028 | if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then |
| 38029 | $as_echo_n "(cached) " >&6 |
| 38030 | fi |
| 38031 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_iapi_h" >&5 |
| 38032 | $as_echo "$ac_cv_header_ghostscript_iapi_h" >&6; } |
| 38033 | else |
| 38034 | # Is the header compilable? |
| 38035 | { $as_echo "$as_me:$LINENO: checking ghostscript/iapi.h usability" >&5 |
| 38036 | $as_echo_n "checking ghostscript/iapi.h usability... " >&6; } |
| 38037 | cat >conftest.$ac_ext <<_ACEOF |
| 38038 | /* confdefs.h. */ |
| 38039 | _ACEOF |
| 38040 | cat confdefs.h >>conftest.$ac_ext |
| 38041 | cat >>conftest.$ac_ext <<_ACEOF |
| 38042 | /* end confdefs.h. */ |
| 38043 | $ac_includes_default |
| 38044 | #include <ghostscript/iapi.h> |
| 38045 | _ACEOF |
| 38046 | rm -f conftest.$ac_objext |
| 38047 | if { (ac_try="$ac_compile" |
| 38048 | case "(($ac_try" in |
| 38049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 38050 | *) ac_try_echo=$ac_try;; |
| 38051 | esac |
| 38052 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 38053 | $as_echo "$ac_try_echo") >&5 |
| 38054 | (eval "$ac_compile") 2>conftest.er1 |
| 38055 | ac_status=$? |
| 38056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 38057 | rm -f conftest.er1 |
| 38058 | cat conftest.err >&5 |
| 38059 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 38060 | (exit $ac_status); } && { |
| 38061 | test -z "$ac_c_werror_flag" || |
| 38062 | test ! -s conftest.err |
| 38063 | } && test -s conftest.$ac_objext; then |
| 38064 | ac_header_compiler=yes |
| 38065 | else |
| 38066 | $as_echo "$as_me: failed program was:" >&5 |
| 38067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 38068 | |
| 38069 | ac_header_compiler=no |
| 38070 | fi |
| 38071 | |
| 38072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 38073 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 38074 | $as_echo "$ac_header_compiler" >&6; } |
| 38075 | |
| 38076 | # Is the header present? |
| 38077 | { $as_echo "$as_me:$LINENO: checking ghostscript/iapi.h presence" >&5 |
| 38078 | $as_echo_n "checking ghostscript/iapi.h presence... " >&6; } |
| 38079 | cat >conftest.$ac_ext <<_ACEOF |
| 38080 | /* confdefs.h. */ |
| 38081 | _ACEOF |
| 38082 | cat confdefs.h >>conftest.$ac_ext |
| 38083 | cat >>conftest.$ac_ext <<_ACEOF |
| 38084 | /* end confdefs.h. */ |
| 38085 | #include <ghostscript/iapi.h> |
| 38086 | _ACEOF |
| 38087 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 38088 | case "(($ac_try" in |
| 38089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 38090 | *) ac_try_echo=$ac_try;; |
| 38091 | esac |
| 38092 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 38093 | $as_echo "$ac_try_echo") >&5 |
| 38094 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 38095 | ac_status=$? |
| 38096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 38097 | rm -f conftest.er1 |
| 38098 | cat conftest.err >&5 |
| 38099 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 38100 | (exit $ac_status); } >/dev/null && { |
| 38101 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 38102 | test ! -s conftest.err |
| 38103 | }; then |
| 38104 | ac_header_preproc=yes |
| 38105 | else |
| 38106 | $as_echo "$as_me: failed program was:" >&5 |
| 38107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 38108 | |
| 38109 | ac_header_preproc=no |
| 38110 | fi |
| 38111 | |
| 38112 | rm -f conftest.err conftest.$ac_ext |
| 38113 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 38114 | $as_echo "$ac_header_preproc" >&6; } |
| 38115 | |
| 38116 | # So? What about this header? |
| 38117 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 38118 | yes:no: ) |
| 38119 | { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 38120 | $as_echo "$as_me: WARNING: ghostscript/iapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 38121 | { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: proceeding with the compiler's result" >&5 |
| 38122 | $as_echo "$as_me: WARNING: ghostscript/iapi.h: proceeding with the compiler's result" >&2;} |
| 38123 | ac_header_preproc=yes |
| 38124 | ;; |
| 38125 | no:yes:* ) |
| 38126 | { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: present but cannot be compiled" >&5 |
| 38127 | $as_echo "$as_me: WARNING: ghostscript/iapi.h: present but cannot be compiled" >&2;} |
| 38128 | { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: check for missing prerequisite headers?" >&5 |
| 38129 | $as_echo "$as_me: WARNING: ghostscript/iapi.h: check for missing prerequisite headers?" >&2;} |
| 38130 | { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: see the Autoconf documentation" >&5 |
| 38131 | $as_echo "$as_me: WARNING: ghostscript/iapi.h: see the Autoconf documentation" >&2;} |
| 38132 | { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 38133 | $as_echo "$as_me: WARNING: ghostscript/iapi.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 38134 | { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: proceeding with the preprocessor's result" >&5 |
| 38135 | $as_echo "$as_me: WARNING: ghostscript/iapi.h: proceeding with the preprocessor's result" >&2;} |
| 38136 | { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: in the future, the compiler will take precedence" >&5 |
| 38137 | $as_echo "$as_me: WARNING: ghostscript/iapi.h: in the future, the compiler will take precedence" >&2;} |
| 38138 | ( cat <<\_ASBOX |
| 38139 | ## ----------------------------------------- ## |
| 38140 | ## Report this to http://www.imagemagick.org ## |
| 38141 | ## ----------------------------------------- ## |
| 38142 | _ASBOX |
| 38143 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 38144 | ;; |
| 38145 | esac |
| 38146 | { $as_echo "$as_me:$LINENO: checking for ghostscript/iapi.h" >&5 |
| 38147 | $as_echo_n "checking for ghostscript/iapi.h... " >&6; } |
| 38148 | if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then |
| 38149 | $as_echo_n "(cached) " >&6 |
| 38150 | else |
| 38151 | ac_cv_header_ghostscript_iapi_h=$ac_header_preproc |
| 38152 | fi |
| 38153 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_iapi_h" >&5 |
| 38154 | $as_echo "$ac_cv_header_ghostscript_iapi_h" >&6; } |
| 38155 | |
| 38156 | fi |
| 38157 | if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then |
| 38158 | passed=`expr $passed + 1` |
| 38159 | else |
| 38160 | failed=`expr $failed + 1` |
| 38161 | fi |
| 38162 | |
| 38163 | |
| 38164 | if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then |
| 38165 | { $as_echo "$as_me:$LINENO: checking for ghostscript/ierrors.h" >&5 |
| 38166 | $as_echo_n "checking for ghostscript/ierrors.h... " >&6; } |
| 38167 | if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then |
| 38168 | $as_echo_n "(cached) " >&6 |
| 38169 | fi |
| 38170 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_ierrors_h" >&5 |
| 38171 | $as_echo "$ac_cv_header_ghostscript_ierrors_h" >&6; } |
| 38172 | else |
| 38173 | # Is the header compilable? |
| 38174 | { $as_echo "$as_me:$LINENO: checking ghostscript/ierrors.h usability" >&5 |
| 38175 | $as_echo_n "checking ghostscript/ierrors.h usability... " >&6; } |
| 38176 | cat >conftest.$ac_ext <<_ACEOF |
| 38177 | /* confdefs.h. */ |
| 38178 | _ACEOF |
| 38179 | cat confdefs.h >>conftest.$ac_ext |
| 38180 | cat >>conftest.$ac_ext <<_ACEOF |
| 38181 | /* end confdefs.h. */ |
| 38182 | $ac_includes_default |
| 38183 | #include <ghostscript/ierrors.h> |
| 38184 | _ACEOF |
| 38185 | rm -f conftest.$ac_objext |
| 38186 | if { (ac_try="$ac_compile" |
| 38187 | case "(($ac_try" in |
| 38188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 38189 | *) ac_try_echo=$ac_try;; |
| 38190 | esac |
| 38191 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 38192 | $as_echo "$ac_try_echo") >&5 |
| 38193 | (eval "$ac_compile") 2>conftest.er1 |
| 38194 | ac_status=$? |
| 38195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 38196 | rm -f conftest.er1 |
| 38197 | cat conftest.err >&5 |
| 38198 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 38199 | (exit $ac_status); } && { |
| 38200 | test -z "$ac_c_werror_flag" || |
| 38201 | test ! -s conftest.err |
| 38202 | } && test -s conftest.$ac_objext; then |
| 38203 | ac_header_compiler=yes |
| 38204 | else |
| 38205 | $as_echo "$as_me: failed program was:" >&5 |
| 38206 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 38207 | |
| 38208 | ac_header_compiler=no |
| 38209 | fi |
| 38210 | |
| 38211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 38212 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 38213 | $as_echo "$ac_header_compiler" >&6; } |
| 38214 | |
| 38215 | # Is the header present? |
| 38216 | { $as_echo "$as_me:$LINENO: checking ghostscript/ierrors.h presence" >&5 |
| 38217 | $as_echo_n "checking ghostscript/ierrors.h presence... " >&6; } |
| 38218 | cat >conftest.$ac_ext <<_ACEOF |
| 38219 | /* confdefs.h. */ |
| 38220 | _ACEOF |
| 38221 | cat confdefs.h >>conftest.$ac_ext |
| 38222 | cat >>conftest.$ac_ext <<_ACEOF |
| 38223 | /* end confdefs.h. */ |
| 38224 | #include <ghostscript/ierrors.h> |
| 38225 | _ACEOF |
| 38226 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 38227 | case "(($ac_try" in |
| 38228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 38229 | *) ac_try_echo=$ac_try;; |
| 38230 | esac |
| 38231 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 38232 | $as_echo "$ac_try_echo") >&5 |
| 38233 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 38234 | ac_status=$? |
| 38235 | grep -v '^ *+' conftest.er1 >conftest.err |
| 38236 | rm -f conftest.er1 |
| 38237 | cat conftest.err >&5 |
| 38238 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 38239 | (exit $ac_status); } >/dev/null && { |
| 38240 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 38241 | test ! -s conftest.err |
| 38242 | }; then |
| 38243 | ac_header_preproc=yes |
| 38244 | else |
| 38245 | $as_echo "$as_me: failed program was:" >&5 |
| 38246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 38247 | |
| 38248 | ac_header_preproc=no |
| 38249 | fi |
| 38250 | |
| 38251 | rm -f conftest.err conftest.$ac_ext |
| 38252 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 38253 | $as_echo "$ac_header_preproc" >&6; } |
| 38254 | |
| 38255 | # So? What about this header? |
| 38256 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 38257 | yes:no: ) |
| 38258 | { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 38259 | $as_echo "$as_me: WARNING: ghostscript/ierrors.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 38260 | { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: proceeding with the compiler's result" >&5 |
| 38261 | $as_echo "$as_me: WARNING: ghostscript/ierrors.h: proceeding with the compiler's result" >&2;} |
| 38262 | ac_header_preproc=yes |
| 38263 | ;; |
| 38264 | no:yes:* ) |
| 38265 | { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: present but cannot be compiled" >&5 |
| 38266 | $as_echo "$as_me: WARNING: ghostscript/ierrors.h: present but cannot be compiled" >&2;} |
| 38267 | { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: check for missing prerequisite headers?" >&5 |
| 38268 | $as_echo "$as_me: WARNING: ghostscript/ierrors.h: check for missing prerequisite headers?" >&2;} |
| 38269 | { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: see the Autoconf documentation" >&5 |
| 38270 | $as_echo "$as_me: WARNING: ghostscript/ierrors.h: see the Autoconf documentation" >&2;} |
| 38271 | { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 38272 | $as_echo "$as_me: WARNING: ghostscript/ierrors.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 38273 | { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: proceeding with the preprocessor's result" >&5 |
| 38274 | $as_echo "$as_me: WARNING: ghostscript/ierrors.h: proceeding with the preprocessor's result" >&2;} |
| 38275 | { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: in the future, the compiler will take precedence" >&5 |
| 38276 | $as_echo "$as_me: WARNING: ghostscript/ierrors.h: in the future, the compiler will take precedence" >&2;} |
| 38277 | ( cat <<\_ASBOX |
| 38278 | ## ----------------------------------------- ## |
| 38279 | ## Report this to http://www.imagemagick.org ## |
| 38280 | ## ----------------------------------------- ## |
| 38281 | _ASBOX |
| 38282 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 38283 | ;; |
| 38284 | esac |
| 38285 | { $as_echo "$as_me:$LINENO: checking for ghostscript/ierrors.h" >&5 |
| 38286 | $as_echo_n "checking for ghostscript/ierrors.h... " >&6; } |
| 38287 | if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then |
| 38288 | $as_echo_n "(cached) " >&6 |
| 38289 | else |
| 38290 | ac_cv_header_ghostscript_ierrors_h=$ac_header_preproc |
| 38291 | fi |
| 38292 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_ierrors_h" >&5 |
| 38293 | $as_echo "$ac_cv_header_ghostscript_ierrors_h" >&6; } |
| 38294 | |
| 38295 | fi |
| 38296 | if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then |
| 38297 | passed=`expr $passed + 1` |
| 38298 | else |
| 38299 | failed=`expr $failed + 1` |
| 38300 | fi |
| 38301 | |
| 38302 | |
| 38303 | { $as_echo "$as_me:$LINENO: checking for gsapi_new_instance in Ghostscript framework" >&5 |
| 38304 | $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; } |
| 38305 | if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then |
| 38306 | $as_echo_n "(cached) " >&6 |
| 38307 | else |
| 38308 | ac_check_framework_save_LIBS=$LIBS |
| 38309 | LIBS="-framework Ghostscript $LIBS" |
| 38310 | cat >conftest.$ac_ext <<_ACEOF |
| 38311 | /* confdefs.h. */ |
| 38312 | _ACEOF |
| 38313 | cat confdefs.h >>conftest.$ac_ext |
| 38314 | cat >>conftest.$ac_ext <<_ACEOF |
| 38315 | /* end confdefs.h. */ |
| 38316 | |
| 38317 | /* Override any GCC internal prototype to avoid an error. |
| 38318 | Use char because int might match the return type of a GCC |
| 38319 | builtin and then its argument prototype would still apply. */ |
| 38320 | #ifdef __cplusplus |
| 38321 | extern "C" |
| 38322 | #endif |
| 38323 | char gsapi_new_instance (); |
| 38324 | int |
| 38325 | main () |
| 38326 | { |
| 38327 | return gsapi_new_instance (); |
| 38328 | ; |
| 38329 | return 0; |
| 38330 | } |
| 38331 | _ACEOF |
| 38332 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 38333 | if { (ac_try="$ac_link" |
| 38334 | case "(($ac_try" in |
| 38335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 38336 | *) ac_try_echo=$ac_try;; |
| 38337 | esac |
| 38338 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 38339 | $as_echo "$ac_try_echo") >&5 |
| 38340 | (eval "$ac_link") 2>conftest.er1 |
| 38341 | ac_status=$? |
| 38342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 38343 | rm -f conftest.er1 |
| 38344 | cat conftest.err >&5 |
| 38345 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 38346 | (exit $ac_status); } && { |
| 38347 | test -z "$ac_c_werror_flag" || |
| 38348 | test ! -s conftest.err |
| 38349 | } && test -s conftest$ac_exeext && { |
| 38350 | test "$cross_compiling" = yes || |
| 38351 | $as_test_x conftest$ac_exeext |
| 38352 | }; then |
| 38353 | ac_cv_framework_Ghostscript_gsapi_new_instance=yes |
| 38354 | else |
| 38355 | $as_echo "$as_me: failed program was:" >&5 |
| 38356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 38357 | |
| 38358 | ac_cv_framework_Ghostscript_gsapi_new_instance=no |
| 38359 | fi |
| 38360 | |
| 38361 | rm -rf conftest.dSYM |
| 38362 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 38363 | conftest$ac_exeext conftest.$ac_ext |
| 38364 | LIBS=$ac_check_framework_save_LIBS |
| 38365 | fi |
| 38366 | { $as_echo "$as_me:$LINENO: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5 |
| 38367 | $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; } |
| 38368 | if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then |
| 38369 | framework=`expr $framework + 1` |
| 38370 | else |
| 38371 | { $as_echo "$as_me:$LINENO: checking for gsapi_new_instance in -lgs" >&5 |
| 38372 | $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; } |
| 38373 | if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then |
| 38374 | $as_echo_n "(cached) " >&6 |
| 38375 | else |
| 38376 | ac_check_lib_save_LIBS=$LIBS |
| 38377 | LIBS="-lgs $LIBS" |
| 38378 | cat >conftest.$ac_ext <<_ACEOF |
| 38379 | /* confdefs.h. */ |
| 38380 | _ACEOF |
| 38381 | cat confdefs.h >>conftest.$ac_ext |
| 38382 | cat >>conftest.$ac_ext <<_ACEOF |
| 38383 | /* end confdefs.h. */ |
| 38384 | |
| 38385 | /* Override any GCC internal prototype to avoid an error. |
| 38386 | Use char because int might match the return type of a GCC |
| 38387 | builtin and then its argument prototype would still apply. */ |
| 38388 | #ifdef __cplusplus |
| 38389 | extern "C" |
| 38390 | #endif |
| 38391 | char gsapi_new_instance (); |
| 38392 | int |
| 38393 | main () |
| 38394 | { |
| 38395 | return gsapi_new_instance (); |
| 38396 | ; |
| 38397 | return 0; |
| 38398 | } |
| 38399 | _ACEOF |
| 38400 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 38401 | if { (ac_try="$ac_link" |
| 38402 | case "(($ac_try" in |
| 38403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 38404 | *) ac_try_echo=$ac_try;; |
| 38405 | esac |
| 38406 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 38407 | $as_echo "$ac_try_echo") >&5 |
| 38408 | (eval "$ac_link") 2>conftest.er1 |
| 38409 | ac_status=$? |
| 38410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 38411 | rm -f conftest.er1 |
| 38412 | cat conftest.err >&5 |
| 38413 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 38414 | (exit $ac_status); } && { |
| 38415 | test -z "$ac_c_werror_flag" || |
| 38416 | test ! -s conftest.err |
| 38417 | } && test -s conftest$ac_exeext && { |
| 38418 | test "$cross_compiling" = yes || |
| 38419 | $as_test_x conftest$ac_exeext |
| 38420 | }; then |
| 38421 | ac_cv_lib_gs_gsapi_new_instance=yes |
| 38422 | else |
| 38423 | $as_echo "$as_me: failed program was:" >&5 |
| 38424 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 38425 | |
| 38426 | ac_cv_lib_gs_gsapi_new_instance=no |
| 38427 | fi |
| 38428 | |
| 38429 | rm -rf conftest.dSYM |
| 38430 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 38431 | conftest$ac_exeext conftest.$ac_ext |
| 38432 | LIBS=$ac_check_lib_save_LIBS |
| 38433 | fi |
| 38434 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gs_gsapi_new_instance" >&5 |
| 38435 | $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; } |
| 38436 | if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then |
| 38437 | passed=`expr $passed + 1` |
| 38438 | else |
| 38439 | failed=`expr $failed + 1` |
| 38440 | fi |
| 38441 | |
| 38442 | fi |
| 38443 | |
| 38444 | { $as_echo "$as_me:$LINENO: checking if Ghostscript package is complete" >&5 |
| 38445 | $as_echo_n "checking if Ghostscript package is complete... " >&6; } |
| 38446 | if test $passed -gt 0; then |
| 38447 | if test $failed -gt 0; then |
| 38448 | { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5 |
| 38449 | $as_echo "no -- some components failed test" >&6; } |
| 38450 | have_gslib='no (failed tests)' |
| 38451 | else |
| 38452 | if test $framework -gt 0; then |
| 38453 | GS_LIBS='-framework Ghostscript' |
| 38454 | { $as_echo "$as_me:$LINENO: result: yes, using framework." >&5 |
| 38455 | $as_echo "yes, using framework." >&6; } |
| 38456 | else |
| 38457 | { $as_echo "$as_me:$LINENO: result: yes, using library." >&5 |
| 38458 | $as_echo "yes, using library." >&6; } |
| 38459 | GS_LIBS='-lgs' |
| 38460 | fi |
| 38461 | LIBS="$GS_LIBS $LIBS" |
| 38462 | |
| 38463 | cat >>confdefs.h <<\_ACEOF |
| 38464 | #define GS_DELEGATE 1 |
| 38465 | _ACEOF |
| 38466 | |
| 38467 | have_gslib='yes' |
| 38468 | fi |
| 38469 | else |
| 38470 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 38471 | $as_echo "no" >&6; } |
| 38472 | fi |
| 38473 | fi |
| 38474 | if test "$have_gslib" = 'yes'; then |
| 38475 | GS_DELEGATE_TRUE= |
| 38476 | GS_DELEGATE_FALSE='#' |
| 38477 | else |
| 38478 | GS_DELEGATE_TRUE='#' |
| 38479 | GS_DELEGATE_FALSE= |
| 38480 | fi |
| 38481 | |
| 38482 | |
| 38483 | |
| 38484 | # Set default font search path |
| 38485 | |
| 38486 | # Check whether --with-fontpath was given. |
| 38487 | if test "${with_fontpath+set}" = set; then |
| 38488 | withval=$with_fontpath; with_fontpath=$withval |
| 38489 | else |
| 38490 | with_fontpath='' |
| 38491 | fi |
| 38492 | |
| 38493 | |
| 38494 | if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then |
| 38495 | with_fontpath='' |
| 38496 | else |
| 38497 | |
| 38498 | cat >>confdefs.h <<_ACEOF |
| 38499 | #define MAGICK_FONT_PATH "$with_fontpath" |
| 38500 | _ACEOF |
| 38501 | |
| 38502 | fi |
| 38503 | if test "$with_fontpath=" != ''; then |
| 38504 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath " |
| 38505 | fi |
| 38506 | |
| 38507 | # Set Ghostscript font directory |
| 38508 | |
| 38509 | # Check whether --with-gs-font-dir was given. |
| 38510 | if test "${with_gs_font_dir+set}" = set; then |
| 38511 | withval=$with_gs_font_dir; with_gs_font_dir=$withval |
| 38512 | else |
| 38513 | with_gs_font_dir='default' |
| 38514 | fi |
| 38515 | |
| 38516 | |
| 38517 | if test "$with_gs_font_dir" != 'default'; then |
| 38518 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir " |
| 38519 | fi |
| 38520 | |
| 38521 | |
| 38522 | # |
| 38523 | # Check for GVC delegate library. |
| 38524 | # |
| 38525 | |
| 38526 | # Check whether --with-gvc was given. |
| 38527 | if test "${with_gvc+set}" = set; then |
| 38528 | withval=$with_gvc; with_gvc=$withval |
| 38529 | else |
| 38530 | with_gvc='yes' |
| 38531 | fi |
| 38532 | |
| 38533 | |
| 38534 | if test "$with_gvc" != 'yes'; then |
| 38535 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc " |
| 38536 | fi |
| 38537 | |
| 38538 | GVC_PKG="" |
| 38539 | if test "x$with_gvc" = "xyes"; then |
| 38540 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 38541 | $as_echo "-------------------------------------------------------------" >&6; } |
| 38542 | |
| 38543 | pkg_failed=no |
| 38544 | { $as_echo "$as_me:$LINENO: checking for GVC" >&5 |
| 38545 | $as_echo_n "checking for GVC... " >&6; } |
| 38546 | |
| 38547 | if test -n "$GVC_CFLAGS"; then |
| 38548 | pkg_cv_GVC_CFLAGS="$GVC_CFLAGS" |
| 38549 | elif test -n "$PKG_CONFIG"; then |
| 38550 | if test -n "$PKG_CONFIG" && \ |
| 38551 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\"") >&5 |
| 38552 | ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 |
| 38553 | ac_status=$? |
| 38554 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 38555 | (exit $ac_status); }; then |
| 38556 | pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null` |
| 38557 | else |
| 38558 | pkg_failed=yes |
| 38559 | fi |
| 38560 | else |
| 38561 | pkg_failed=untried |
| 38562 | fi |
| 38563 | if test -n "$GVC_LIBS"; then |
| 38564 | pkg_cv_GVC_LIBS="$GVC_LIBS" |
| 38565 | elif test -n "$PKG_CONFIG"; then |
| 38566 | if test -n "$PKG_CONFIG" && \ |
| 38567 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\"") >&5 |
| 38568 | ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 |
| 38569 | ac_status=$? |
| 38570 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 38571 | (exit $ac_status); }; then |
| 38572 | pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null` |
| 38573 | else |
| 38574 | pkg_failed=yes |
| 38575 | fi |
| 38576 | else |
| 38577 | pkg_failed=untried |
| 38578 | fi |
| 38579 | |
| 38580 | |
| 38581 | |
| 38582 | if test $pkg_failed = yes; then |
| 38583 | |
| 38584 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 38585 | _pkg_short_errors_supported=yes |
| 38586 | else |
| 38587 | _pkg_short_errors_supported=no |
| 38588 | fi |
| 38589 | if test $_pkg_short_errors_supported = yes; then |
| 38590 | GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1` |
| 38591 | else |
| 38592 | GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1` |
| 38593 | fi |
| 38594 | # Put the nasty error message in config.log where it belongs |
| 38595 | echo "$GVC_PKG_ERRORS" >&5 |
| 38596 | |
| 38597 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 38598 | $as_echo "no" >&6; } |
| 38599 | have_gvc=no |
| 38600 | elif test $pkg_failed = untried; then |
| 38601 | have_gvc=no |
| 38602 | else |
| 38603 | GVC_CFLAGS=$pkg_cv_GVC_CFLAGS |
| 38604 | GVC_LIBS=$pkg_cv_GVC_LIBS |
| 38605 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 38606 | $as_echo "yes" >&6; } |
| 38607 | have_gvc=yes |
| 38608 | fi |
| 38609 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 38610 | $as_echo "" >&6; } |
| 38611 | fi |
| 38612 | |
| 38613 | if test "$have_gvc" = 'yes'; then |
| 38614 | |
| 38615 | cat >>confdefs.h <<\_ACEOF |
| 38616 | #define GVC_DELEGATE 1 |
| 38617 | _ACEOF |
| 38618 | |
| 38619 | if test "$with_modules" = 'no'; then |
| 38620 | CPPFLAGS="$GVC_CFLAGS $CPPFLAGS" |
| 38621 | fi |
| 38622 | fi |
| 38623 | |
| 38624 | if test "$have_gvc" = 'yes'; then |
| 38625 | GVC_DELEGATE_TRUE= |
| 38626 | GVC_DELEGATE_FALSE='#' |
| 38627 | else |
| 38628 | GVC_DELEGATE_TRUE='#' |
| 38629 | GVC_DELEGATE_FALSE= |
| 38630 | fi |
| 38631 | |
| 38632 | |
| 38633 | |
| 38634 | |
| 38635 | |
| 38636 | # |
| 38637 | # Check for JBIG delegate library. |
| 38638 | # |
| 38639 | |
| 38640 | |
| 38641 | # Check whether --with-jbig was given. |
| 38642 | if test "${with_jbig+set}" = set; then |
| 38643 | withval=$with_jbig; with_jbig=$withval |
| 38644 | else |
| 38645 | with_jbig='yes' |
| 38646 | fi |
| 38647 | |
| 38648 | |
| 38649 | have_jbig='no' |
| 38650 | JBIG_LIBS='' |
| 38651 | if test "$with_jbig" != 'no'; then |
| 38652 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 38653 | $as_echo "-------------------------------------------------------------" >&6; } |
| 38654 | { $as_echo "$as_me:$LINENO: checking for JBIG" >&5 |
| 38655 | $as_echo_n "checking for JBIG... " >&6; } |
| 38656 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 38657 | $as_echo "" >&6; } |
| 38658 | failed=0 |
| 38659 | passed=0 |
| 38660 | if test "${ac_cv_header_jbig_h+set}" = set; then |
| 38661 | { $as_echo "$as_me:$LINENO: checking for jbig.h" >&5 |
| 38662 | $as_echo_n "checking for jbig.h... " >&6; } |
| 38663 | if test "${ac_cv_header_jbig_h+set}" = set; then |
| 38664 | $as_echo_n "(cached) " >&6 |
| 38665 | fi |
| 38666 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jbig_h" >&5 |
| 38667 | $as_echo "$ac_cv_header_jbig_h" >&6; } |
| 38668 | else |
| 38669 | # Is the header compilable? |
| 38670 | { $as_echo "$as_me:$LINENO: checking jbig.h usability" >&5 |
| 38671 | $as_echo_n "checking jbig.h usability... " >&6; } |
| 38672 | cat >conftest.$ac_ext <<_ACEOF |
| 38673 | /* confdefs.h. */ |
| 38674 | _ACEOF |
| 38675 | cat confdefs.h >>conftest.$ac_ext |
| 38676 | cat >>conftest.$ac_ext <<_ACEOF |
| 38677 | /* end confdefs.h. */ |
| 38678 | $ac_includes_default |
| 38679 | #include <jbig.h> |
| 38680 | _ACEOF |
| 38681 | rm -f conftest.$ac_objext |
| 38682 | if { (ac_try="$ac_compile" |
| 38683 | case "(($ac_try" in |
| 38684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 38685 | *) ac_try_echo=$ac_try;; |
| 38686 | esac |
| 38687 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 38688 | $as_echo "$ac_try_echo") >&5 |
| 38689 | (eval "$ac_compile") 2>conftest.er1 |
| 38690 | ac_status=$? |
| 38691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 38692 | rm -f conftest.er1 |
| 38693 | cat conftest.err >&5 |
| 38694 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 38695 | (exit $ac_status); } && { |
| 38696 | test -z "$ac_c_werror_flag" || |
| 38697 | test ! -s conftest.err |
| 38698 | } && test -s conftest.$ac_objext; then |
| 38699 | ac_header_compiler=yes |
| 38700 | else |
| 38701 | $as_echo "$as_me: failed program was:" >&5 |
| 38702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 38703 | |
| 38704 | ac_header_compiler=no |
| 38705 | fi |
| 38706 | |
| 38707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 38708 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 38709 | $as_echo "$ac_header_compiler" >&6; } |
| 38710 | |
| 38711 | # Is the header present? |
| 38712 | { $as_echo "$as_me:$LINENO: checking jbig.h presence" >&5 |
| 38713 | $as_echo_n "checking jbig.h presence... " >&6; } |
| 38714 | cat >conftest.$ac_ext <<_ACEOF |
| 38715 | /* confdefs.h. */ |
| 38716 | _ACEOF |
| 38717 | cat confdefs.h >>conftest.$ac_ext |
| 38718 | cat >>conftest.$ac_ext <<_ACEOF |
| 38719 | /* end confdefs.h. */ |
| 38720 | #include <jbig.h> |
| 38721 | _ACEOF |
| 38722 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 38723 | case "(($ac_try" in |
| 38724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 38725 | *) ac_try_echo=$ac_try;; |
| 38726 | esac |
| 38727 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 38728 | $as_echo "$ac_try_echo") >&5 |
| 38729 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 38730 | ac_status=$? |
| 38731 | grep -v '^ *+' conftest.er1 >conftest.err |
| 38732 | rm -f conftest.er1 |
| 38733 | cat conftest.err >&5 |
| 38734 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 38735 | (exit $ac_status); } >/dev/null && { |
| 38736 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 38737 | test ! -s conftest.err |
| 38738 | }; then |
| 38739 | ac_header_preproc=yes |
| 38740 | else |
| 38741 | $as_echo "$as_me: failed program was:" >&5 |
| 38742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 38743 | |
| 38744 | ac_header_preproc=no |
| 38745 | fi |
| 38746 | |
| 38747 | rm -f conftest.err conftest.$ac_ext |
| 38748 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 38749 | $as_echo "$ac_header_preproc" >&6; } |
| 38750 | |
| 38751 | # So? What about this header? |
| 38752 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 38753 | yes:no: ) |
| 38754 | { $as_echo "$as_me:$LINENO: WARNING: jbig.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 38755 | $as_echo "$as_me: WARNING: jbig.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 38756 | { $as_echo "$as_me:$LINENO: WARNING: jbig.h: proceeding with the compiler's result" >&5 |
| 38757 | $as_echo "$as_me: WARNING: jbig.h: proceeding with the compiler's result" >&2;} |
| 38758 | ac_header_preproc=yes |
| 38759 | ;; |
| 38760 | no:yes:* ) |
| 38761 | { $as_echo "$as_me:$LINENO: WARNING: jbig.h: present but cannot be compiled" >&5 |
| 38762 | $as_echo "$as_me: WARNING: jbig.h: present but cannot be compiled" >&2;} |
| 38763 | { $as_echo "$as_me:$LINENO: WARNING: jbig.h: check for missing prerequisite headers?" >&5 |
| 38764 | $as_echo "$as_me: WARNING: jbig.h: check for missing prerequisite headers?" >&2;} |
| 38765 | { $as_echo "$as_me:$LINENO: WARNING: jbig.h: see the Autoconf documentation" >&5 |
| 38766 | $as_echo "$as_me: WARNING: jbig.h: see the Autoconf documentation" >&2;} |
| 38767 | { $as_echo "$as_me:$LINENO: WARNING: jbig.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 38768 | $as_echo "$as_me: WARNING: jbig.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 38769 | { $as_echo "$as_me:$LINENO: WARNING: jbig.h: proceeding with the preprocessor's result" >&5 |
| 38770 | $as_echo "$as_me: WARNING: jbig.h: proceeding with the preprocessor's result" >&2;} |
| 38771 | { $as_echo "$as_me:$LINENO: WARNING: jbig.h: in the future, the compiler will take precedence" >&5 |
| 38772 | $as_echo "$as_me: WARNING: jbig.h: in the future, the compiler will take precedence" >&2;} |
| 38773 | ( cat <<\_ASBOX |
| 38774 | ## ----------------------------------------- ## |
| 38775 | ## Report this to http://www.imagemagick.org ## |
| 38776 | ## ----------------------------------------- ## |
| 38777 | _ASBOX |
| 38778 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 38779 | ;; |
| 38780 | esac |
| 38781 | { $as_echo "$as_me:$LINENO: checking for jbig.h" >&5 |
| 38782 | $as_echo_n "checking for jbig.h... " >&6; } |
| 38783 | if test "${ac_cv_header_jbig_h+set}" = set; then |
| 38784 | $as_echo_n "(cached) " >&6 |
| 38785 | else |
| 38786 | ac_cv_header_jbig_h=$ac_header_preproc |
| 38787 | fi |
| 38788 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jbig_h" >&5 |
| 38789 | $as_echo "$ac_cv_header_jbig_h" >&6; } |
| 38790 | |
| 38791 | fi |
| 38792 | if test "x$ac_cv_header_jbig_h" = x""yes; then |
| 38793 | passed=`expr $passed + 1` |
| 38794 | else |
| 38795 | failed=`expr $failed + 1` |
| 38796 | fi |
| 38797 | |
| 38798 | |
| 38799 | { $as_echo "$as_me:$LINENO: checking for jbg_dec_init in -ljbig" >&5 |
| 38800 | $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } |
| 38801 | if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then |
| 38802 | $as_echo_n "(cached) " >&6 |
| 38803 | else |
| 38804 | ac_check_lib_save_LIBS=$LIBS |
| 38805 | LIBS="-ljbig $LIBS" |
| 38806 | cat >conftest.$ac_ext <<_ACEOF |
| 38807 | /* confdefs.h. */ |
| 38808 | _ACEOF |
| 38809 | cat confdefs.h >>conftest.$ac_ext |
| 38810 | cat >>conftest.$ac_ext <<_ACEOF |
| 38811 | /* end confdefs.h. */ |
| 38812 | |
| 38813 | /* Override any GCC internal prototype to avoid an error. |
| 38814 | Use char because int might match the return type of a GCC |
| 38815 | builtin and then its argument prototype would still apply. */ |
| 38816 | #ifdef __cplusplus |
| 38817 | extern "C" |
| 38818 | #endif |
| 38819 | char jbg_dec_init (); |
| 38820 | int |
| 38821 | main () |
| 38822 | { |
| 38823 | return jbg_dec_init (); |
| 38824 | ; |
| 38825 | return 0; |
| 38826 | } |
| 38827 | _ACEOF |
| 38828 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 38829 | if { (ac_try="$ac_link" |
| 38830 | case "(($ac_try" in |
| 38831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 38832 | *) ac_try_echo=$ac_try;; |
| 38833 | esac |
| 38834 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 38835 | $as_echo "$ac_try_echo") >&5 |
| 38836 | (eval "$ac_link") 2>conftest.er1 |
| 38837 | ac_status=$? |
| 38838 | grep -v '^ *+' conftest.er1 >conftest.err |
| 38839 | rm -f conftest.er1 |
| 38840 | cat conftest.err >&5 |
| 38841 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 38842 | (exit $ac_status); } && { |
| 38843 | test -z "$ac_c_werror_flag" || |
| 38844 | test ! -s conftest.err |
| 38845 | } && test -s conftest$ac_exeext && { |
| 38846 | test "$cross_compiling" = yes || |
| 38847 | $as_test_x conftest$ac_exeext |
| 38848 | }; then |
| 38849 | ac_cv_lib_jbig_jbg_dec_init=yes |
| 38850 | else |
| 38851 | $as_echo "$as_me: failed program was:" >&5 |
| 38852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 38853 | |
| 38854 | ac_cv_lib_jbig_jbg_dec_init=no |
| 38855 | fi |
| 38856 | |
| 38857 | rm -rf conftest.dSYM |
| 38858 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 38859 | conftest$ac_exeext conftest.$ac_ext |
| 38860 | LIBS=$ac_check_lib_save_LIBS |
| 38861 | fi |
| 38862 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jbig_jbg_dec_init" >&5 |
| 38863 | $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } |
| 38864 | if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then |
| 38865 | passed=`expr $passed + 1` |
| 38866 | else |
| 38867 | failed=`expr $failed + 1` |
| 38868 | fi |
| 38869 | |
| 38870 | { $as_echo "$as_me:$LINENO: checking if JBIG package is complete" >&5 |
| 38871 | $as_echo_n "checking if JBIG package is complete... " >&6; } |
| 38872 | if test $passed -gt 0; then |
| 38873 | if test $failed -gt 0; then |
| 38874 | { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5 |
| 38875 | $as_echo "no -- some components failed test" >&6; } |
| 38876 | have_jbig='no (failed tests)' |
| 38877 | else |
| 38878 | JBIG_LIBS='-ljbig' |
| 38879 | LIBS="$JBIG_LIBS $LIBS" |
| 38880 | |
| 38881 | cat >>confdefs.h <<\_ACEOF |
| 38882 | #define JBIG_DELEGATE 1 |
| 38883 | _ACEOF |
| 38884 | |
| 38885 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 38886 | $as_echo "yes" >&6; } |
| 38887 | have_jbig='yes' |
| 38888 | fi |
| 38889 | else |
| 38890 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 38891 | $as_echo "no" >&6; } |
| 38892 | fi |
| 38893 | fi |
| 38894 | if test "$have_jbig" = 'yes'; then |
| 38895 | JBIG_DELEGATE_TRUE= |
| 38896 | JBIG_DELEGATE_FALSE='#' |
| 38897 | else |
| 38898 | JBIG_DELEGATE_TRUE='#' |
| 38899 | JBIG_DELEGATE_FALSE= |
| 38900 | fi |
| 38901 | |
| 38902 | |
| 38903 | |
| 38904 | |
| 38905 | # |
| 38906 | # Check for JPEG delegate library. |
| 38907 | # |
| 38908 | |
| 38909 | # Check whether --with-jpeg was given. |
| 38910 | if test "${with_jpeg+set}" = set; then |
| 38911 | withval=$with_jpeg; with_jpeg=$withval |
| 38912 | else |
| 38913 | with_jpeg='yes' |
| 38914 | fi |
| 38915 | |
| 38916 | |
| 38917 | if test "$with_jpeg" != 'yes'; then |
| 38918 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg " |
| 38919 | fi |
| 38920 | |
| 38921 | have_jpeg='no' |
| 38922 | JPEG_LIBS='' |
| 38923 | if test "$with_jpeg" != 'no'; then |
| 38924 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 38925 | $as_echo "-------------------------------------------------------------" >&6; } |
| 38926 | { $as_echo "$as_me:$LINENO: checking for JPEG" >&5 |
| 38927 | $as_echo_n "checking for JPEG... " >&6; } |
| 38928 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 38929 | $as_echo "" >&6; } |
| 38930 | failed=0 |
| 38931 | passed=0 |
| 38932 | if test "${ac_cv_header_jconfig_h+set}" = set; then |
| 38933 | { $as_echo "$as_me:$LINENO: checking for jconfig.h" >&5 |
| 38934 | $as_echo_n "checking for jconfig.h... " >&6; } |
| 38935 | if test "${ac_cv_header_jconfig_h+set}" = set; then |
| 38936 | $as_echo_n "(cached) " >&6 |
| 38937 | fi |
| 38938 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jconfig_h" >&5 |
| 38939 | $as_echo "$ac_cv_header_jconfig_h" >&6; } |
| 38940 | else |
| 38941 | # Is the header compilable? |
| 38942 | { $as_echo "$as_me:$LINENO: checking jconfig.h usability" >&5 |
| 38943 | $as_echo_n "checking jconfig.h usability... " >&6; } |
| 38944 | cat >conftest.$ac_ext <<_ACEOF |
| 38945 | /* confdefs.h. */ |
| 38946 | _ACEOF |
| 38947 | cat confdefs.h >>conftest.$ac_ext |
| 38948 | cat >>conftest.$ac_ext <<_ACEOF |
| 38949 | /* end confdefs.h. */ |
| 38950 | $ac_includes_default |
| 38951 | #include <jconfig.h> |
| 38952 | _ACEOF |
| 38953 | rm -f conftest.$ac_objext |
| 38954 | if { (ac_try="$ac_compile" |
| 38955 | case "(($ac_try" in |
| 38956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 38957 | *) ac_try_echo=$ac_try;; |
| 38958 | esac |
| 38959 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 38960 | $as_echo "$ac_try_echo") >&5 |
| 38961 | (eval "$ac_compile") 2>conftest.er1 |
| 38962 | ac_status=$? |
| 38963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 38964 | rm -f conftest.er1 |
| 38965 | cat conftest.err >&5 |
| 38966 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 38967 | (exit $ac_status); } && { |
| 38968 | test -z "$ac_c_werror_flag" || |
| 38969 | test ! -s conftest.err |
| 38970 | } && test -s conftest.$ac_objext; then |
| 38971 | ac_header_compiler=yes |
| 38972 | else |
| 38973 | $as_echo "$as_me: failed program was:" >&5 |
| 38974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 38975 | |
| 38976 | ac_header_compiler=no |
| 38977 | fi |
| 38978 | |
| 38979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 38980 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 38981 | $as_echo "$ac_header_compiler" >&6; } |
| 38982 | |
| 38983 | # Is the header present? |
| 38984 | { $as_echo "$as_me:$LINENO: checking jconfig.h presence" >&5 |
| 38985 | $as_echo_n "checking jconfig.h presence... " >&6; } |
| 38986 | cat >conftest.$ac_ext <<_ACEOF |
| 38987 | /* confdefs.h. */ |
| 38988 | _ACEOF |
| 38989 | cat confdefs.h >>conftest.$ac_ext |
| 38990 | cat >>conftest.$ac_ext <<_ACEOF |
| 38991 | /* end confdefs.h. */ |
| 38992 | #include <jconfig.h> |
| 38993 | _ACEOF |
| 38994 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 38995 | case "(($ac_try" in |
| 38996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 38997 | *) ac_try_echo=$ac_try;; |
| 38998 | esac |
| 38999 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 39000 | $as_echo "$ac_try_echo") >&5 |
| 39001 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 39002 | ac_status=$? |
| 39003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 39004 | rm -f conftest.er1 |
| 39005 | cat conftest.err >&5 |
| 39006 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 39007 | (exit $ac_status); } >/dev/null && { |
| 39008 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 39009 | test ! -s conftest.err |
| 39010 | }; then |
| 39011 | ac_header_preproc=yes |
| 39012 | else |
| 39013 | $as_echo "$as_me: failed program was:" >&5 |
| 39014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 39015 | |
| 39016 | ac_header_preproc=no |
| 39017 | fi |
| 39018 | |
| 39019 | rm -f conftest.err conftest.$ac_ext |
| 39020 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 39021 | $as_echo "$ac_header_preproc" >&6; } |
| 39022 | |
| 39023 | # So? What about this header? |
| 39024 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 39025 | yes:no: ) |
| 39026 | { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 39027 | $as_echo "$as_me: WARNING: jconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 39028 | { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: proceeding with the compiler's result" >&5 |
| 39029 | $as_echo "$as_me: WARNING: jconfig.h: proceeding with the compiler's result" >&2;} |
| 39030 | ac_header_preproc=yes |
| 39031 | ;; |
| 39032 | no:yes:* ) |
| 39033 | { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: present but cannot be compiled" >&5 |
| 39034 | $as_echo "$as_me: WARNING: jconfig.h: present but cannot be compiled" >&2;} |
| 39035 | { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: check for missing prerequisite headers?" >&5 |
| 39036 | $as_echo "$as_me: WARNING: jconfig.h: check for missing prerequisite headers?" >&2;} |
| 39037 | { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: see the Autoconf documentation" >&5 |
| 39038 | $as_echo "$as_me: WARNING: jconfig.h: see the Autoconf documentation" >&2;} |
| 39039 | { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 39040 | $as_echo "$as_me: WARNING: jconfig.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 39041 | { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: proceeding with the preprocessor's result" >&5 |
| 39042 | $as_echo "$as_me: WARNING: jconfig.h: proceeding with the preprocessor's result" >&2;} |
| 39043 | { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: in the future, the compiler will take precedence" >&5 |
| 39044 | $as_echo "$as_me: WARNING: jconfig.h: in the future, the compiler will take precedence" >&2;} |
| 39045 | ( cat <<\_ASBOX |
| 39046 | ## ----------------------------------------- ## |
| 39047 | ## Report this to http://www.imagemagick.org ## |
| 39048 | ## ----------------------------------------- ## |
| 39049 | _ASBOX |
| 39050 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 39051 | ;; |
| 39052 | esac |
| 39053 | { $as_echo "$as_me:$LINENO: checking for jconfig.h" >&5 |
| 39054 | $as_echo_n "checking for jconfig.h... " >&6; } |
| 39055 | if test "${ac_cv_header_jconfig_h+set}" = set; then |
| 39056 | $as_echo_n "(cached) " >&6 |
| 39057 | else |
| 39058 | ac_cv_header_jconfig_h=$ac_header_preproc |
| 39059 | fi |
| 39060 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jconfig_h" >&5 |
| 39061 | $as_echo "$ac_cv_header_jconfig_h" >&6; } |
| 39062 | |
| 39063 | fi |
| 39064 | if test "x$ac_cv_header_jconfig_h" = x""yes; then |
| 39065 | passed=`expr $passed + 1` |
| 39066 | else |
| 39067 | failed=`expr $failed + 1` |
| 39068 | fi |
| 39069 | |
| 39070 | |
| 39071 | if test "${ac_cv_header_jerror_h+set}" = set; then |
| 39072 | { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5 |
| 39073 | $as_echo_n "checking for jerror.h... " >&6; } |
| 39074 | if test "${ac_cv_header_jerror_h+set}" = set; then |
| 39075 | $as_echo_n "(cached) " >&6 |
| 39076 | fi |
| 39077 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 |
| 39078 | $as_echo "$ac_cv_header_jerror_h" >&6; } |
| 39079 | else |
| 39080 | # Is the header compilable? |
| 39081 | { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5 |
| 39082 | $as_echo_n "checking jerror.h usability... " >&6; } |
| 39083 | cat >conftest.$ac_ext <<_ACEOF |
| 39084 | /* confdefs.h. */ |
| 39085 | _ACEOF |
| 39086 | cat confdefs.h >>conftest.$ac_ext |
| 39087 | cat >>conftest.$ac_ext <<_ACEOF |
| 39088 | /* end confdefs.h. */ |
| 39089 | $ac_includes_default |
| 39090 | #include <jerror.h> |
| 39091 | _ACEOF |
| 39092 | rm -f conftest.$ac_objext |
| 39093 | if { (ac_try="$ac_compile" |
| 39094 | case "(($ac_try" in |
| 39095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 39096 | *) ac_try_echo=$ac_try;; |
| 39097 | esac |
| 39098 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 39099 | $as_echo "$ac_try_echo") >&5 |
| 39100 | (eval "$ac_compile") 2>conftest.er1 |
| 39101 | ac_status=$? |
| 39102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 39103 | rm -f conftest.er1 |
| 39104 | cat conftest.err >&5 |
| 39105 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 39106 | (exit $ac_status); } && { |
| 39107 | test -z "$ac_c_werror_flag" || |
| 39108 | test ! -s conftest.err |
| 39109 | } && test -s conftest.$ac_objext; then |
| 39110 | ac_header_compiler=yes |
| 39111 | else |
| 39112 | $as_echo "$as_me: failed program was:" >&5 |
| 39113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 39114 | |
| 39115 | ac_header_compiler=no |
| 39116 | fi |
| 39117 | |
| 39118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 39119 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 39120 | $as_echo "$ac_header_compiler" >&6; } |
| 39121 | |
| 39122 | # Is the header present? |
| 39123 | { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5 |
| 39124 | $as_echo_n "checking jerror.h presence... " >&6; } |
| 39125 | cat >conftest.$ac_ext <<_ACEOF |
| 39126 | /* confdefs.h. */ |
| 39127 | _ACEOF |
| 39128 | cat confdefs.h >>conftest.$ac_ext |
| 39129 | cat >>conftest.$ac_ext <<_ACEOF |
| 39130 | /* end confdefs.h. */ |
| 39131 | #include <jerror.h> |
| 39132 | _ACEOF |
| 39133 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 39134 | case "(($ac_try" in |
| 39135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 39136 | *) ac_try_echo=$ac_try;; |
| 39137 | esac |
| 39138 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 39139 | $as_echo "$ac_try_echo") >&5 |
| 39140 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 39141 | ac_status=$? |
| 39142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 39143 | rm -f conftest.er1 |
| 39144 | cat conftest.err >&5 |
| 39145 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 39146 | (exit $ac_status); } >/dev/null && { |
| 39147 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 39148 | test ! -s conftest.err |
| 39149 | }; then |
| 39150 | ac_header_preproc=yes |
| 39151 | else |
| 39152 | $as_echo "$as_me: failed program was:" >&5 |
| 39153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 39154 | |
| 39155 | ac_header_preproc=no |
| 39156 | fi |
| 39157 | |
| 39158 | rm -f conftest.err conftest.$ac_ext |
| 39159 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 39160 | $as_echo "$ac_header_preproc" >&6; } |
| 39161 | |
| 39162 | # So? What about this header? |
| 39163 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 39164 | yes:no: ) |
| 39165 | { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 39166 | $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 39167 | { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5 |
| 39168 | $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;} |
| 39169 | ac_header_preproc=yes |
| 39170 | ;; |
| 39171 | no:yes:* ) |
| 39172 | { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5 |
| 39173 | $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;} |
| 39174 | { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5 |
| 39175 | $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;} |
| 39176 | { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5 |
| 39177 | $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;} |
| 39178 | { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 39179 | $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 39180 | { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 |
| 39181 | $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;} |
| 39182 | { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5 |
| 39183 | $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;} |
| 39184 | ( cat <<\_ASBOX |
| 39185 | ## ----------------------------------------- ## |
| 39186 | ## Report this to http://www.imagemagick.org ## |
| 39187 | ## ----------------------------------------- ## |
| 39188 | _ASBOX |
| 39189 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 39190 | ;; |
| 39191 | esac |
| 39192 | { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5 |
| 39193 | $as_echo_n "checking for jerror.h... " >&6; } |
| 39194 | if test "${ac_cv_header_jerror_h+set}" = set; then |
| 39195 | $as_echo_n "(cached) " >&6 |
| 39196 | else |
| 39197 | ac_cv_header_jerror_h=$ac_header_preproc |
| 39198 | fi |
| 39199 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 |
| 39200 | $as_echo "$ac_cv_header_jerror_h" >&6; } |
| 39201 | |
| 39202 | fi |
| 39203 | if test "x$ac_cv_header_jerror_h" = x""yes; then |
| 39204 | passed=`expr $passed + 1` |
| 39205 | else |
| 39206 | failed=`expr $failed + 1` |
| 39207 | fi |
| 39208 | |
| 39209 | |
| 39210 | if test "${ac_cv_header_jmorecfg_h+set}" = set; then |
| 39211 | { $as_echo "$as_me:$LINENO: checking for jmorecfg.h" >&5 |
| 39212 | $as_echo_n "checking for jmorecfg.h... " >&6; } |
| 39213 | if test "${ac_cv_header_jmorecfg_h+set}" = set; then |
| 39214 | $as_echo_n "(cached) " >&6 |
| 39215 | fi |
| 39216 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jmorecfg_h" >&5 |
| 39217 | $as_echo "$ac_cv_header_jmorecfg_h" >&6; } |
| 39218 | else |
| 39219 | # Is the header compilable? |
| 39220 | { $as_echo "$as_me:$LINENO: checking jmorecfg.h usability" >&5 |
| 39221 | $as_echo_n "checking jmorecfg.h usability... " >&6; } |
| 39222 | cat >conftest.$ac_ext <<_ACEOF |
| 39223 | /* confdefs.h. */ |
| 39224 | _ACEOF |
| 39225 | cat confdefs.h >>conftest.$ac_ext |
| 39226 | cat >>conftest.$ac_ext <<_ACEOF |
| 39227 | /* end confdefs.h. */ |
| 39228 | $ac_includes_default |
| 39229 | #include <jmorecfg.h> |
| 39230 | _ACEOF |
| 39231 | rm -f conftest.$ac_objext |
| 39232 | if { (ac_try="$ac_compile" |
| 39233 | case "(($ac_try" in |
| 39234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 39235 | *) ac_try_echo=$ac_try;; |
| 39236 | esac |
| 39237 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 39238 | $as_echo "$ac_try_echo") >&5 |
| 39239 | (eval "$ac_compile") 2>conftest.er1 |
| 39240 | ac_status=$? |
| 39241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 39242 | rm -f conftest.er1 |
| 39243 | cat conftest.err >&5 |
| 39244 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 39245 | (exit $ac_status); } && { |
| 39246 | test -z "$ac_c_werror_flag" || |
| 39247 | test ! -s conftest.err |
| 39248 | } && test -s conftest.$ac_objext; then |
| 39249 | ac_header_compiler=yes |
| 39250 | else |
| 39251 | $as_echo "$as_me: failed program was:" >&5 |
| 39252 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 39253 | |
| 39254 | ac_header_compiler=no |
| 39255 | fi |
| 39256 | |
| 39257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 39258 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 39259 | $as_echo "$ac_header_compiler" >&6; } |
| 39260 | |
| 39261 | # Is the header present? |
| 39262 | { $as_echo "$as_me:$LINENO: checking jmorecfg.h presence" >&5 |
| 39263 | $as_echo_n "checking jmorecfg.h presence... " >&6; } |
| 39264 | cat >conftest.$ac_ext <<_ACEOF |
| 39265 | /* confdefs.h. */ |
| 39266 | _ACEOF |
| 39267 | cat confdefs.h >>conftest.$ac_ext |
| 39268 | cat >>conftest.$ac_ext <<_ACEOF |
| 39269 | /* end confdefs.h. */ |
| 39270 | #include <jmorecfg.h> |
| 39271 | _ACEOF |
| 39272 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 39273 | case "(($ac_try" in |
| 39274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 39275 | *) ac_try_echo=$ac_try;; |
| 39276 | esac |
| 39277 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 39278 | $as_echo "$ac_try_echo") >&5 |
| 39279 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 39280 | ac_status=$? |
| 39281 | grep -v '^ *+' conftest.er1 >conftest.err |
| 39282 | rm -f conftest.er1 |
| 39283 | cat conftest.err >&5 |
| 39284 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 39285 | (exit $ac_status); } >/dev/null && { |
| 39286 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 39287 | test ! -s conftest.err |
| 39288 | }; then |
| 39289 | ac_header_preproc=yes |
| 39290 | else |
| 39291 | $as_echo "$as_me: failed program was:" >&5 |
| 39292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 39293 | |
| 39294 | ac_header_preproc=no |
| 39295 | fi |
| 39296 | |
| 39297 | rm -f conftest.err conftest.$ac_ext |
| 39298 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 39299 | $as_echo "$ac_header_preproc" >&6; } |
| 39300 | |
| 39301 | # So? What about this header? |
| 39302 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 39303 | yes:no: ) |
| 39304 | { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 39305 | $as_echo "$as_me: WARNING: jmorecfg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 39306 | { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: proceeding with the compiler's result" >&5 |
| 39307 | $as_echo "$as_me: WARNING: jmorecfg.h: proceeding with the compiler's result" >&2;} |
| 39308 | ac_header_preproc=yes |
| 39309 | ;; |
| 39310 | no:yes:* ) |
| 39311 | { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: present but cannot be compiled" >&5 |
| 39312 | $as_echo "$as_me: WARNING: jmorecfg.h: present but cannot be compiled" >&2;} |
| 39313 | { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: check for missing prerequisite headers?" >&5 |
| 39314 | $as_echo "$as_me: WARNING: jmorecfg.h: check for missing prerequisite headers?" >&2;} |
| 39315 | { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: see the Autoconf documentation" >&5 |
| 39316 | $as_echo "$as_me: WARNING: jmorecfg.h: see the Autoconf documentation" >&2;} |
| 39317 | { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 39318 | $as_echo "$as_me: WARNING: jmorecfg.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 39319 | { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: proceeding with the preprocessor's result" >&5 |
| 39320 | $as_echo "$as_me: WARNING: jmorecfg.h: proceeding with the preprocessor's result" >&2;} |
| 39321 | { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: in the future, the compiler will take precedence" >&5 |
| 39322 | $as_echo "$as_me: WARNING: jmorecfg.h: in the future, the compiler will take precedence" >&2;} |
| 39323 | ( cat <<\_ASBOX |
| 39324 | ## ----------------------------------------- ## |
| 39325 | ## Report this to http://www.imagemagick.org ## |
| 39326 | ## ----------------------------------------- ## |
| 39327 | _ASBOX |
| 39328 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 39329 | ;; |
| 39330 | esac |
| 39331 | { $as_echo "$as_me:$LINENO: checking for jmorecfg.h" >&5 |
| 39332 | $as_echo_n "checking for jmorecfg.h... " >&6; } |
| 39333 | if test "${ac_cv_header_jmorecfg_h+set}" = set; then |
| 39334 | $as_echo_n "(cached) " >&6 |
| 39335 | else |
| 39336 | ac_cv_header_jmorecfg_h=$ac_header_preproc |
| 39337 | fi |
| 39338 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jmorecfg_h" >&5 |
| 39339 | $as_echo "$ac_cv_header_jmorecfg_h" >&6; } |
| 39340 | |
| 39341 | fi |
| 39342 | if test "x$ac_cv_header_jmorecfg_h" = x""yes; then |
| 39343 | passed=`expr $passed + 1` |
| 39344 | else |
| 39345 | failed=`expr $failed + 1` |
| 39346 | fi |
| 39347 | |
| 39348 | |
| 39349 | if test "${ac_cv_header_jpeglib_h+set}" = set; then |
| 39350 | { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5 |
| 39351 | $as_echo_n "checking for jpeglib.h... " >&6; } |
| 39352 | if test "${ac_cv_header_jpeglib_h+set}" = set; then |
| 39353 | $as_echo_n "(cached) " >&6 |
| 39354 | fi |
| 39355 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 |
| 39356 | $as_echo "$ac_cv_header_jpeglib_h" >&6; } |
| 39357 | else |
| 39358 | # Is the header compilable? |
| 39359 | { $as_echo "$as_me:$LINENO: checking jpeglib.h usability" >&5 |
| 39360 | $as_echo_n "checking jpeglib.h usability... " >&6; } |
| 39361 | cat >conftest.$ac_ext <<_ACEOF |
| 39362 | /* confdefs.h. */ |
| 39363 | _ACEOF |
| 39364 | cat confdefs.h >>conftest.$ac_ext |
| 39365 | cat >>conftest.$ac_ext <<_ACEOF |
| 39366 | /* end confdefs.h. */ |
| 39367 | $ac_includes_default |
| 39368 | #include <jpeglib.h> |
| 39369 | _ACEOF |
| 39370 | rm -f conftest.$ac_objext |
| 39371 | if { (ac_try="$ac_compile" |
| 39372 | case "(($ac_try" in |
| 39373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 39374 | *) ac_try_echo=$ac_try;; |
| 39375 | esac |
| 39376 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 39377 | $as_echo "$ac_try_echo") >&5 |
| 39378 | (eval "$ac_compile") 2>conftest.er1 |
| 39379 | ac_status=$? |
| 39380 | grep -v '^ *+' conftest.er1 >conftest.err |
| 39381 | rm -f conftest.er1 |
| 39382 | cat conftest.err >&5 |
| 39383 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 39384 | (exit $ac_status); } && { |
| 39385 | test -z "$ac_c_werror_flag" || |
| 39386 | test ! -s conftest.err |
| 39387 | } && test -s conftest.$ac_objext; then |
| 39388 | ac_header_compiler=yes |
| 39389 | else |
| 39390 | $as_echo "$as_me: failed program was:" >&5 |
| 39391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 39392 | |
| 39393 | ac_header_compiler=no |
| 39394 | fi |
| 39395 | |
| 39396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 39397 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 39398 | $as_echo "$ac_header_compiler" >&6; } |
| 39399 | |
| 39400 | # Is the header present? |
| 39401 | { $as_echo "$as_me:$LINENO: checking jpeglib.h presence" >&5 |
| 39402 | $as_echo_n "checking jpeglib.h presence... " >&6; } |
| 39403 | cat >conftest.$ac_ext <<_ACEOF |
| 39404 | /* confdefs.h. */ |
| 39405 | _ACEOF |
| 39406 | cat confdefs.h >>conftest.$ac_ext |
| 39407 | cat >>conftest.$ac_ext <<_ACEOF |
| 39408 | /* end confdefs.h. */ |
| 39409 | #include <jpeglib.h> |
| 39410 | _ACEOF |
| 39411 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 39412 | case "(($ac_try" in |
| 39413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 39414 | *) ac_try_echo=$ac_try;; |
| 39415 | esac |
| 39416 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 39417 | $as_echo "$ac_try_echo") >&5 |
| 39418 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 39419 | ac_status=$? |
| 39420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 39421 | rm -f conftest.er1 |
| 39422 | cat conftest.err >&5 |
| 39423 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 39424 | (exit $ac_status); } >/dev/null && { |
| 39425 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 39426 | test ! -s conftest.err |
| 39427 | }; then |
| 39428 | ac_header_preproc=yes |
| 39429 | else |
| 39430 | $as_echo "$as_me: failed program was:" >&5 |
| 39431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 39432 | |
| 39433 | ac_header_preproc=no |
| 39434 | fi |
| 39435 | |
| 39436 | rm -f conftest.err conftest.$ac_ext |
| 39437 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 39438 | $as_echo "$ac_header_preproc" >&6; } |
| 39439 | |
| 39440 | # So? What about this header? |
| 39441 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 39442 | yes:no: ) |
| 39443 | { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 39444 | $as_echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 39445 | { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5 |
| 39446 | $as_echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;} |
| 39447 | ac_header_preproc=yes |
| 39448 | ;; |
| 39449 | no:yes:* ) |
| 39450 | { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5 |
| 39451 | $as_echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;} |
| 39452 | { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5 |
| 39453 | $as_echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;} |
| 39454 | { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5 |
| 39455 | $as_echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;} |
| 39456 | { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 39457 | $as_echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 39458 | { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5 |
| 39459 | $as_echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;} |
| 39460 | { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5 |
| 39461 | $as_echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;} |
| 39462 | ( cat <<\_ASBOX |
| 39463 | ## ----------------------------------------- ## |
| 39464 | ## Report this to http://www.imagemagick.org ## |
| 39465 | ## ----------------------------------------- ## |
| 39466 | _ASBOX |
| 39467 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 39468 | ;; |
| 39469 | esac |
| 39470 | { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5 |
| 39471 | $as_echo_n "checking for jpeglib.h... " >&6; } |
| 39472 | if test "${ac_cv_header_jpeglib_h+set}" = set; then |
| 39473 | $as_echo_n "(cached) " >&6 |
| 39474 | else |
| 39475 | ac_cv_header_jpeglib_h=$ac_header_preproc |
| 39476 | fi |
| 39477 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 |
| 39478 | $as_echo "$ac_cv_header_jpeglib_h" >&6; } |
| 39479 | |
| 39480 | fi |
| 39481 | if test "x$ac_cv_header_jpeglib_h" = x""yes; then |
| 39482 | passed=`expr $passed + 1` |
| 39483 | else |
| 39484 | failed=`expr $failed + 1` |
| 39485 | fi |
| 39486 | |
| 39487 | |
| 39488 | { $as_echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 |
| 39489 | $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } |
| 39490 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then |
| 39491 | $as_echo_n "(cached) " >&6 |
| 39492 | else |
| 39493 | ac_check_lib_save_LIBS=$LIBS |
| 39494 | LIBS="-ljpeg $LIBS" |
| 39495 | cat >conftest.$ac_ext <<_ACEOF |
| 39496 | /* confdefs.h. */ |
| 39497 | _ACEOF |
| 39498 | cat confdefs.h >>conftest.$ac_ext |
| 39499 | cat >>conftest.$ac_ext <<_ACEOF |
| 39500 | /* end confdefs.h. */ |
| 39501 | |
| 39502 | /* Override any GCC internal prototype to avoid an error. |
| 39503 | Use char because int might match the return type of a GCC |
| 39504 | builtin and then its argument prototype would still apply. */ |
| 39505 | #ifdef __cplusplus |
| 39506 | extern "C" |
| 39507 | #endif |
| 39508 | char jpeg_read_header (); |
| 39509 | int |
| 39510 | main () |
| 39511 | { |
| 39512 | return jpeg_read_header (); |
| 39513 | ; |
| 39514 | return 0; |
| 39515 | } |
| 39516 | _ACEOF |
| 39517 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 39518 | if { (ac_try="$ac_link" |
| 39519 | case "(($ac_try" in |
| 39520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 39521 | *) ac_try_echo=$ac_try;; |
| 39522 | esac |
| 39523 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 39524 | $as_echo "$ac_try_echo") >&5 |
| 39525 | (eval "$ac_link") 2>conftest.er1 |
| 39526 | ac_status=$? |
| 39527 | grep -v '^ *+' conftest.er1 >conftest.err |
| 39528 | rm -f conftest.er1 |
| 39529 | cat conftest.err >&5 |
| 39530 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 39531 | (exit $ac_status); } && { |
| 39532 | test -z "$ac_c_werror_flag" || |
| 39533 | test ! -s conftest.err |
| 39534 | } && test -s conftest$ac_exeext && { |
| 39535 | test "$cross_compiling" = yes || |
| 39536 | $as_test_x conftest$ac_exeext |
| 39537 | }; then |
| 39538 | ac_cv_lib_jpeg_jpeg_read_header=yes |
| 39539 | else |
| 39540 | $as_echo "$as_me: failed program was:" >&5 |
| 39541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 39542 | |
| 39543 | ac_cv_lib_jpeg_jpeg_read_header=no |
| 39544 | fi |
| 39545 | |
| 39546 | rm -rf conftest.dSYM |
| 39547 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 39548 | conftest$ac_exeext conftest.$ac_ext |
| 39549 | LIBS=$ac_check_lib_save_LIBS |
| 39550 | fi |
| 39551 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 |
| 39552 | $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } |
| 39553 | if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then |
| 39554 | passed=`expr $passed + 1` |
| 39555 | else |
| 39556 | failed=`expr $failed + 1` |
| 39557 | fi |
| 39558 | |
| 39559 | |
| 39560 | # Test for compatible JPEG library |
| 39561 | if test "$ac_cv_jpeg_version_ok" != 'yes'; then |
| 39562 | { $as_echo "$as_me:$LINENO: checking for JPEG library is version 6b or later" >&5 |
| 39563 | $as_echo_n "checking for JPEG library is version 6b or later... " >&6; } |
| 39564 | if test "${ac_cv_jpeg_version_ok+set}" = set; then |
| 39565 | $as_echo_n "(cached) " >&6 |
| 39566 | else |
| 39567 | cat >conftest.$ac_ext <<_ACEOF |
| 39568 | /* confdefs.h. */ |
| 39569 | _ACEOF |
| 39570 | cat confdefs.h >>conftest.$ac_ext |
| 39571 | cat >>conftest.$ac_ext <<_ACEOF |
| 39572 | /* end confdefs.h. */ |
| 39573 | #include <stdio.h> |
| 39574 | #include <stdlib.h> |
| 39575 | #include <jpeglib.h> |
| 39576 | |
| 39577 | int |
| 39578 | main () |
| 39579 | { |
| 39580 | |
| 39581 | #if JPEG_LIB_VERSION < 62 |
| 39582 | #error IJG JPEG library must be version 6b or newer! |
| 39583 | #endif |
| 39584 | return 0; |
| 39585 | |
| 39586 | ; |
| 39587 | return 0; |
| 39588 | } |
| 39589 | _ACEOF |
| 39590 | rm -f conftest.$ac_objext |
| 39591 | if { (ac_try="$ac_compile" |
| 39592 | case "(($ac_try" in |
| 39593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 39594 | *) ac_try_echo=$ac_try;; |
| 39595 | esac |
| 39596 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 39597 | $as_echo "$ac_try_echo") >&5 |
| 39598 | (eval "$ac_compile") 2>conftest.er1 |
| 39599 | ac_status=$? |
| 39600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 39601 | rm -f conftest.er1 |
| 39602 | cat conftest.err >&5 |
| 39603 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 39604 | (exit $ac_status); } && { |
| 39605 | test -z "$ac_c_werror_flag" || |
| 39606 | test ! -s conftest.err |
| 39607 | } && test -s conftest.$ac_objext; then |
| 39608 | ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1` |
| 39609 | else |
| 39610 | $as_echo "$as_me: failed program was:" >&5 |
| 39611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 39612 | |
| 39613 | ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1` |
| 39614 | fi |
| 39615 | |
| 39616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 39617 | fi |
| 39618 | { $as_echo "$as_me:$LINENO: result: $ac_cv_jpeg_version_ok" >&5 |
| 39619 | $as_echo "$ac_cv_jpeg_version_ok" >&6; } |
| 39620 | fi |
| 39621 | { $as_echo "$as_me:$LINENO: checking if JPEG package is complete" >&5 |
| 39622 | $as_echo_n "checking if JPEG package is complete... " >&6; } |
| 39623 | if test $passed -gt 0; then |
| 39624 | if test $failed -gt 0; then |
| 39625 | { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5 |
| 39626 | $as_echo "no -- some components failed test" >&6; } |
| 39627 | have_jpeg='no (failed tests)' |
| 39628 | else |
| 39629 | JPEG_LIBS='-ljpeg' |
| 39630 | LIBS="$JPEG_LIBS $LIBS" |
| 39631 | |
| 39632 | cat >>confdefs.h <<\_ACEOF |
| 39633 | #define JPEG_DELEGATE 1 |
| 39634 | _ACEOF |
| 39635 | |
| 39636 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 39637 | $as_echo "yes" >&6; } |
| 39638 | have_jpeg='yes' |
| 39639 | fi |
| 39640 | else |
| 39641 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 39642 | $as_echo "no" >&6; } |
| 39643 | fi |
| 39644 | fi |
| 39645 | if test "$have_jpeg" = 'yes'; then |
| 39646 | JPEG_DELEGATE_TRUE= |
| 39647 | JPEG_DELEGATE_FALSE='#' |
| 39648 | else |
| 39649 | JPEG_DELEGATE_TRUE='#' |
| 39650 | JPEG_DELEGATE_FALSE= |
| 39651 | fi |
| 39652 | |
| 39653 | |
| 39654 | |
| 39655 | |
| 39656 | # |
| 39657 | # Check for JPEG Version 2 delegate library. |
| 39658 | # |
| 39659 | |
| 39660 | # Check whether --with-jp2 was given. |
| 39661 | if test "${with_jp2+set}" = set; then |
| 39662 | withval=$with_jp2; with_jp2=$withval |
| 39663 | else |
| 39664 | with_jp2='yes' |
| 39665 | fi |
| 39666 | |
| 39667 | |
| 39668 | if test "$with_jp2" != 'yes'; then |
| 39669 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 " |
| 39670 | fi |
| 39671 | |
| 39672 | have_jp2='no' |
| 39673 | JP2_LIBS='' |
| 39674 | if test "$with_jp2" != 'no'; then |
| 39675 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 39676 | $as_echo "-------------------------------------------------------------" >&6; } |
| 39677 | { $as_echo "$as_me:$LINENO: checking for JPEG Version 2" >&5 |
| 39678 | $as_echo_n "checking for JPEG Version 2... " >&6; } |
| 39679 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 39680 | $as_echo "" >&6; } |
| 39681 | failed=0 |
| 39682 | passed=0 |
| 39683 | if test "${ac_cv_header_jasper_jasper_h+set}" = set; then |
| 39684 | { $as_echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5 |
| 39685 | $as_echo_n "checking for jasper/jasper.h... " >&6; } |
| 39686 | if test "${ac_cv_header_jasper_jasper_h+set}" = set; then |
| 39687 | $as_echo_n "(cached) " >&6 |
| 39688 | fi |
| 39689 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5 |
| 39690 | $as_echo "$ac_cv_header_jasper_jasper_h" >&6; } |
| 39691 | else |
| 39692 | # Is the header compilable? |
| 39693 | { $as_echo "$as_me:$LINENO: checking jasper/jasper.h usability" >&5 |
| 39694 | $as_echo_n "checking jasper/jasper.h usability... " >&6; } |
| 39695 | cat >conftest.$ac_ext <<_ACEOF |
| 39696 | /* confdefs.h. */ |
| 39697 | _ACEOF |
| 39698 | cat confdefs.h >>conftest.$ac_ext |
| 39699 | cat >>conftest.$ac_ext <<_ACEOF |
| 39700 | /* end confdefs.h. */ |
| 39701 | $ac_includes_default |
| 39702 | #include <jasper/jasper.h> |
| 39703 | _ACEOF |
| 39704 | rm -f conftest.$ac_objext |
| 39705 | if { (ac_try="$ac_compile" |
| 39706 | case "(($ac_try" in |
| 39707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 39708 | *) ac_try_echo=$ac_try;; |
| 39709 | esac |
| 39710 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 39711 | $as_echo "$ac_try_echo") >&5 |
| 39712 | (eval "$ac_compile") 2>conftest.er1 |
| 39713 | ac_status=$? |
| 39714 | grep -v '^ *+' conftest.er1 >conftest.err |
| 39715 | rm -f conftest.er1 |
| 39716 | cat conftest.err >&5 |
| 39717 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 39718 | (exit $ac_status); } && { |
| 39719 | test -z "$ac_c_werror_flag" || |
| 39720 | test ! -s conftest.err |
| 39721 | } && test -s conftest.$ac_objext; then |
| 39722 | ac_header_compiler=yes |
| 39723 | else |
| 39724 | $as_echo "$as_me: failed program was:" >&5 |
| 39725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 39726 | |
| 39727 | ac_header_compiler=no |
| 39728 | fi |
| 39729 | |
| 39730 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 39731 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 39732 | $as_echo "$ac_header_compiler" >&6; } |
| 39733 | |
| 39734 | # Is the header present? |
| 39735 | { $as_echo "$as_me:$LINENO: checking jasper/jasper.h presence" >&5 |
| 39736 | $as_echo_n "checking jasper/jasper.h presence... " >&6; } |
| 39737 | cat >conftest.$ac_ext <<_ACEOF |
| 39738 | /* confdefs.h. */ |
| 39739 | _ACEOF |
| 39740 | cat confdefs.h >>conftest.$ac_ext |
| 39741 | cat >>conftest.$ac_ext <<_ACEOF |
| 39742 | /* end confdefs.h. */ |
| 39743 | #include <jasper/jasper.h> |
| 39744 | _ACEOF |
| 39745 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 39746 | case "(($ac_try" in |
| 39747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 39748 | *) ac_try_echo=$ac_try;; |
| 39749 | esac |
| 39750 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 39751 | $as_echo "$ac_try_echo") >&5 |
| 39752 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 39753 | ac_status=$? |
| 39754 | grep -v '^ *+' conftest.er1 >conftest.err |
| 39755 | rm -f conftest.er1 |
| 39756 | cat conftest.err >&5 |
| 39757 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 39758 | (exit $ac_status); } >/dev/null && { |
| 39759 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 39760 | test ! -s conftest.err |
| 39761 | }; then |
| 39762 | ac_header_preproc=yes |
| 39763 | else |
| 39764 | $as_echo "$as_me: failed program was:" >&5 |
| 39765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 39766 | |
| 39767 | ac_header_preproc=no |
| 39768 | fi |
| 39769 | |
| 39770 | rm -f conftest.err conftest.$ac_ext |
| 39771 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 39772 | $as_echo "$ac_header_preproc" >&6; } |
| 39773 | |
| 39774 | # So? What about this header? |
| 39775 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 39776 | yes:no: ) |
| 39777 | { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 39778 | $as_echo "$as_me: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 39779 | { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&5 |
| 39780 | $as_echo "$as_me: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&2;} |
| 39781 | ac_header_preproc=yes |
| 39782 | ;; |
| 39783 | no:yes:* ) |
| 39784 | { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: present but cannot be compiled" >&5 |
| 39785 | $as_echo "$as_me: WARNING: jasper/jasper.h: present but cannot be compiled" >&2;} |
| 39786 | { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&5 |
| 39787 | $as_echo "$as_me: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&2;} |
| 39788 | { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: see the Autoconf documentation" >&5 |
| 39789 | $as_echo "$as_me: WARNING: jasper/jasper.h: see the Autoconf documentation" >&2;} |
| 39790 | { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 39791 | $as_echo "$as_me: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 39792 | { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&5 |
| 39793 | $as_echo "$as_me: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&2;} |
| 39794 | { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&5 |
| 39795 | $as_echo "$as_me: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&2;} |
| 39796 | ( cat <<\_ASBOX |
| 39797 | ## ----------------------------------------- ## |
| 39798 | ## Report this to http://www.imagemagick.org ## |
| 39799 | ## ----------------------------------------- ## |
| 39800 | _ASBOX |
| 39801 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 39802 | ;; |
| 39803 | esac |
| 39804 | { $as_echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5 |
| 39805 | $as_echo_n "checking for jasper/jasper.h... " >&6; } |
| 39806 | if test "${ac_cv_header_jasper_jasper_h+set}" = set; then |
| 39807 | $as_echo_n "(cached) " >&6 |
| 39808 | else |
| 39809 | ac_cv_header_jasper_jasper_h=$ac_header_preproc |
| 39810 | fi |
| 39811 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5 |
| 39812 | $as_echo "$ac_cv_header_jasper_jasper_h" >&6; } |
| 39813 | |
| 39814 | fi |
| 39815 | if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then |
| 39816 | passed=`expr $passed + 1` |
| 39817 | else |
| 39818 | failed=`expr $failed + 1` |
| 39819 | fi |
| 39820 | |
| 39821 | |
| 39822 | { $as_echo "$as_me:$LINENO: checking for jas_stream_fopen in -ljasper" >&5 |
| 39823 | $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; } |
| 39824 | if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then |
| 39825 | $as_echo_n "(cached) " >&6 |
| 39826 | else |
| 39827 | ac_check_lib_save_LIBS=$LIBS |
| 39828 | LIBS="-ljasper $LIBS" |
| 39829 | cat >conftest.$ac_ext <<_ACEOF |
| 39830 | /* confdefs.h. */ |
| 39831 | _ACEOF |
| 39832 | cat confdefs.h >>conftest.$ac_ext |
| 39833 | cat >>conftest.$ac_ext <<_ACEOF |
| 39834 | /* end confdefs.h. */ |
| 39835 | |
| 39836 | /* Override any GCC internal prototype to avoid an error. |
| 39837 | Use char because int might match the return type of a GCC |
| 39838 | builtin and then its argument prototype would still apply. */ |
| 39839 | #ifdef __cplusplus |
| 39840 | extern "C" |
| 39841 | #endif |
| 39842 | char jas_stream_fopen (); |
| 39843 | int |
| 39844 | main () |
| 39845 | { |
| 39846 | return jas_stream_fopen (); |
| 39847 | ; |
| 39848 | return 0; |
| 39849 | } |
| 39850 | _ACEOF |
| 39851 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 39852 | if { (ac_try="$ac_link" |
| 39853 | case "(($ac_try" in |
| 39854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 39855 | *) ac_try_echo=$ac_try;; |
| 39856 | esac |
| 39857 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 39858 | $as_echo "$ac_try_echo") >&5 |
| 39859 | (eval "$ac_link") 2>conftest.er1 |
| 39860 | ac_status=$? |
| 39861 | grep -v '^ *+' conftest.er1 >conftest.err |
| 39862 | rm -f conftest.er1 |
| 39863 | cat conftest.err >&5 |
| 39864 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 39865 | (exit $ac_status); } && { |
| 39866 | test -z "$ac_c_werror_flag" || |
| 39867 | test ! -s conftest.err |
| 39868 | } && test -s conftest$ac_exeext && { |
| 39869 | test "$cross_compiling" = yes || |
| 39870 | $as_test_x conftest$ac_exeext |
| 39871 | }; then |
| 39872 | ac_cv_lib_jasper_jas_stream_fopen=yes |
| 39873 | else |
| 39874 | $as_echo "$as_me: failed program was:" >&5 |
| 39875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 39876 | |
| 39877 | ac_cv_lib_jasper_jas_stream_fopen=no |
| 39878 | fi |
| 39879 | |
| 39880 | rm -rf conftest.dSYM |
| 39881 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 39882 | conftest$ac_exeext conftest.$ac_ext |
| 39883 | LIBS=$ac_check_lib_save_LIBS |
| 39884 | fi |
| 39885 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5 |
| 39886 | $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; } |
| 39887 | if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then |
| 39888 | passed=`expr $passed + 1` |
| 39889 | else |
| 39890 | failed=`expr $failed + 1` |
| 39891 | fi |
| 39892 | |
| 39893 | { $as_echo "$as_me:$LINENO: checking if JPEG version 2 support package is complete" >&5 |
| 39894 | $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; } |
| 39895 | if test $passed -gt 0; then |
| 39896 | if test $failed -gt 0; then |
| 39897 | { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5 |
| 39898 | $as_echo "no -- some components failed test" >&6; } |
| 39899 | have_jp2='no (failed tests)' |
| 39900 | else |
| 39901 | JP2_LIBS='-ljasper' |
| 39902 | LIBS="$JP2_LIBS $LIBS" |
| 39903 | |
| 39904 | cat >>confdefs.h <<\_ACEOF |
| 39905 | #define JP2_DELEGATE 1 |
| 39906 | _ACEOF |
| 39907 | |
| 39908 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 39909 | $as_echo "yes" >&6; } |
| 39910 | have_jp2='yes' |
| 39911 | fi |
| 39912 | else |
| 39913 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 39914 | $as_echo "no" >&6; } |
| 39915 | fi |
| 39916 | fi |
| 39917 | if test "$have_jp2" = 'yes'; then |
| 39918 | JP2_DELEGATE_TRUE= |
| 39919 | JP2_DELEGATE_FALSE='#' |
| 39920 | else |
| 39921 | JP2_DELEGATE_TRUE='#' |
| 39922 | JP2_DELEGATE_FALSE= |
| 39923 | fi |
| 39924 | |
| 39925 | |
| 39926 | |
| 39927 | |
| 39928 | # |
| 39929 | # Check for LCMS delegate library. |
| 39930 | # |
| 39931 | |
| 39932 | # Check whether --with-lcms was given. |
| 39933 | if test "${with_lcms+set}" = set; then |
| 39934 | withval=$with_lcms; with_lcms=$withval |
| 39935 | else |
| 39936 | with_lcms='yes' |
| 39937 | fi |
| 39938 | |
| 39939 | |
| 39940 | if test "$with_lcms" != 'yes'; then |
| 39941 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms " |
| 39942 | fi |
| 39943 | |
| 39944 | have_lcms='no' |
| 39945 | LCMS_LIBS='' |
| 39946 | if test "$with_lcms" != 'no'; then |
| 39947 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 39948 | $as_echo "-------------------------------------------------------------" >&6; } |
| 39949 | { $as_echo "$as_me:$LINENO: checking for LCMS" >&5 |
| 39950 | $as_echo_n "checking for LCMS... " >&6; } |
| 39951 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 39952 | $as_echo "" >&6; } |
| 39953 | failed=0 |
| 39954 | passed=0 |
| 39955 | have_lcms_header='no' |
| 39956 | if test "${ac_cv_header_lcms_h+set}" = set; then |
| 39957 | { $as_echo "$as_me:$LINENO: checking for lcms.h" >&5 |
| 39958 | $as_echo_n "checking for lcms.h... " >&6; } |
| 39959 | if test "${ac_cv_header_lcms_h+set}" = set; then |
| 39960 | $as_echo_n "(cached) " >&6 |
| 39961 | fi |
| 39962 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_h" >&5 |
| 39963 | $as_echo "$ac_cv_header_lcms_h" >&6; } |
| 39964 | else |
| 39965 | # Is the header compilable? |
| 39966 | { $as_echo "$as_me:$LINENO: checking lcms.h usability" >&5 |
| 39967 | $as_echo_n "checking lcms.h usability... " >&6; } |
| 39968 | cat >conftest.$ac_ext <<_ACEOF |
| 39969 | /* confdefs.h. */ |
| 39970 | _ACEOF |
| 39971 | cat confdefs.h >>conftest.$ac_ext |
| 39972 | cat >>conftest.$ac_ext <<_ACEOF |
| 39973 | /* end confdefs.h. */ |
| 39974 | $ac_includes_default |
| 39975 | #include <lcms.h> |
| 39976 | _ACEOF |
| 39977 | rm -f conftest.$ac_objext |
| 39978 | if { (ac_try="$ac_compile" |
| 39979 | case "(($ac_try" in |
| 39980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 39981 | *) ac_try_echo=$ac_try;; |
| 39982 | esac |
| 39983 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 39984 | $as_echo "$ac_try_echo") >&5 |
| 39985 | (eval "$ac_compile") 2>conftest.er1 |
| 39986 | ac_status=$? |
| 39987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 39988 | rm -f conftest.er1 |
| 39989 | cat conftest.err >&5 |
| 39990 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 39991 | (exit $ac_status); } && { |
| 39992 | test -z "$ac_c_werror_flag" || |
| 39993 | test ! -s conftest.err |
| 39994 | } && test -s conftest.$ac_objext; then |
| 39995 | ac_header_compiler=yes |
| 39996 | else |
| 39997 | $as_echo "$as_me: failed program was:" >&5 |
| 39998 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 39999 | |
| 40000 | ac_header_compiler=no |
| 40001 | fi |
| 40002 | |
| 40003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 40004 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 40005 | $as_echo "$ac_header_compiler" >&6; } |
| 40006 | |
| 40007 | # Is the header present? |
| 40008 | { $as_echo "$as_me:$LINENO: checking lcms.h presence" >&5 |
| 40009 | $as_echo_n "checking lcms.h presence... " >&6; } |
| 40010 | cat >conftest.$ac_ext <<_ACEOF |
| 40011 | /* confdefs.h. */ |
| 40012 | _ACEOF |
| 40013 | cat confdefs.h >>conftest.$ac_ext |
| 40014 | cat >>conftest.$ac_ext <<_ACEOF |
| 40015 | /* end confdefs.h. */ |
| 40016 | #include <lcms.h> |
| 40017 | _ACEOF |
| 40018 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 40019 | case "(($ac_try" in |
| 40020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 40021 | *) ac_try_echo=$ac_try;; |
| 40022 | esac |
| 40023 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 40024 | $as_echo "$ac_try_echo") >&5 |
| 40025 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 40026 | ac_status=$? |
| 40027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 40028 | rm -f conftest.er1 |
| 40029 | cat conftest.err >&5 |
| 40030 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 40031 | (exit $ac_status); } >/dev/null && { |
| 40032 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 40033 | test ! -s conftest.err |
| 40034 | }; then |
| 40035 | ac_header_preproc=yes |
| 40036 | else |
| 40037 | $as_echo "$as_me: failed program was:" >&5 |
| 40038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 40039 | |
| 40040 | ac_header_preproc=no |
| 40041 | fi |
| 40042 | |
| 40043 | rm -f conftest.err conftest.$ac_ext |
| 40044 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 40045 | $as_echo "$ac_header_preproc" >&6; } |
| 40046 | |
| 40047 | # So? What about this header? |
| 40048 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 40049 | yes:no: ) |
| 40050 | { $as_echo "$as_me:$LINENO: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 40051 | $as_echo "$as_me: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 40052 | { $as_echo "$as_me:$LINENO: WARNING: lcms.h: proceeding with the compiler's result" >&5 |
| 40053 | $as_echo "$as_me: WARNING: lcms.h: proceeding with the compiler's result" >&2;} |
| 40054 | ac_header_preproc=yes |
| 40055 | ;; |
| 40056 | no:yes:* ) |
| 40057 | { $as_echo "$as_me:$LINENO: WARNING: lcms.h: present but cannot be compiled" >&5 |
| 40058 | $as_echo "$as_me: WARNING: lcms.h: present but cannot be compiled" >&2;} |
| 40059 | { $as_echo "$as_me:$LINENO: WARNING: lcms.h: check for missing prerequisite headers?" >&5 |
| 40060 | $as_echo "$as_me: WARNING: lcms.h: check for missing prerequisite headers?" >&2;} |
| 40061 | { $as_echo "$as_me:$LINENO: WARNING: lcms.h: see the Autoconf documentation" >&5 |
| 40062 | $as_echo "$as_me: WARNING: lcms.h: see the Autoconf documentation" >&2;} |
| 40063 | { $as_echo "$as_me:$LINENO: WARNING: lcms.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 40064 | $as_echo "$as_me: WARNING: lcms.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 40065 | { $as_echo "$as_me:$LINENO: WARNING: lcms.h: proceeding with the preprocessor's result" >&5 |
| 40066 | $as_echo "$as_me: WARNING: lcms.h: proceeding with the preprocessor's result" >&2;} |
| 40067 | { $as_echo "$as_me:$LINENO: WARNING: lcms.h: in the future, the compiler will take precedence" >&5 |
| 40068 | $as_echo "$as_me: WARNING: lcms.h: in the future, the compiler will take precedence" >&2;} |
| 40069 | ( cat <<\_ASBOX |
| 40070 | ## ----------------------------------------- ## |
| 40071 | ## Report this to http://www.imagemagick.org ## |
| 40072 | ## ----------------------------------------- ## |
| 40073 | _ASBOX |
| 40074 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 40075 | ;; |
| 40076 | esac |
| 40077 | { $as_echo "$as_me:$LINENO: checking for lcms.h" >&5 |
| 40078 | $as_echo_n "checking for lcms.h... " >&6; } |
| 40079 | if test "${ac_cv_header_lcms_h+set}" = set; then |
| 40080 | $as_echo_n "(cached) " >&6 |
| 40081 | else |
| 40082 | ac_cv_header_lcms_h=$ac_header_preproc |
| 40083 | fi |
| 40084 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_h" >&5 |
| 40085 | $as_echo "$ac_cv_header_lcms_h" >&6; } |
| 40086 | |
| 40087 | fi |
| 40088 | if test "x$ac_cv_header_lcms_h" = x""yes; then |
| 40089 | have_lcms_header='yes' |
| 40090 | fi |
| 40091 | |
| 40092 | |
| 40093 | if test "$have_lcms_header" = 'yes'; then |
| 40094 | passed=`expr $passed + 1` |
| 40095 | |
| 40096 | cat >>confdefs.h <<\_ACEOF |
| 40097 | #define HAVE_LCMS_H 1 |
| 40098 | _ACEOF |
| 40099 | |
| 40100 | else |
| 40101 | if test "${ac_cv_header_lcms_lcms_h+set}" = set; then |
| 40102 | { $as_echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5 |
| 40103 | $as_echo_n "checking for lcms/lcms.h... " >&6; } |
| 40104 | if test "${ac_cv_header_lcms_lcms_h+set}" = set; then |
| 40105 | $as_echo_n "(cached) " >&6 |
| 40106 | fi |
| 40107 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5 |
| 40108 | $as_echo "$ac_cv_header_lcms_lcms_h" >&6; } |
| 40109 | else |
| 40110 | # Is the header compilable? |
| 40111 | { $as_echo "$as_me:$LINENO: checking lcms/lcms.h usability" >&5 |
| 40112 | $as_echo_n "checking lcms/lcms.h usability... " >&6; } |
| 40113 | cat >conftest.$ac_ext <<_ACEOF |
| 40114 | /* confdefs.h. */ |
| 40115 | _ACEOF |
| 40116 | cat confdefs.h >>conftest.$ac_ext |
| 40117 | cat >>conftest.$ac_ext <<_ACEOF |
| 40118 | /* end confdefs.h. */ |
| 40119 | $ac_includes_default |
| 40120 | #include <lcms/lcms.h> |
| 40121 | _ACEOF |
| 40122 | rm -f conftest.$ac_objext |
| 40123 | if { (ac_try="$ac_compile" |
| 40124 | case "(($ac_try" in |
| 40125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 40126 | *) ac_try_echo=$ac_try;; |
| 40127 | esac |
| 40128 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 40129 | $as_echo "$ac_try_echo") >&5 |
| 40130 | (eval "$ac_compile") 2>conftest.er1 |
| 40131 | ac_status=$? |
| 40132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 40133 | rm -f conftest.er1 |
| 40134 | cat conftest.err >&5 |
| 40135 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 40136 | (exit $ac_status); } && { |
| 40137 | test -z "$ac_c_werror_flag" || |
| 40138 | test ! -s conftest.err |
| 40139 | } && test -s conftest.$ac_objext; then |
| 40140 | ac_header_compiler=yes |
| 40141 | else |
| 40142 | $as_echo "$as_me: failed program was:" >&5 |
| 40143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 40144 | |
| 40145 | ac_header_compiler=no |
| 40146 | fi |
| 40147 | |
| 40148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 40149 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 40150 | $as_echo "$ac_header_compiler" >&6; } |
| 40151 | |
| 40152 | # Is the header present? |
| 40153 | { $as_echo "$as_me:$LINENO: checking lcms/lcms.h presence" >&5 |
| 40154 | $as_echo_n "checking lcms/lcms.h presence... " >&6; } |
| 40155 | cat >conftest.$ac_ext <<_ACEOF |
| 40156 | /* confdefs.h. */ |
| 40157 | _ACEOF |
| 40158 | cat confdefs.h >>conftest.$ac_ext |
| 40159 | cat >>conftest.$ac_ext <<_ACEOF |
| 40160 | /* end confdefs.h. */ |
| 40161 | #include <lcms/lcms.h> |
| 40162 | _ACEOF |
| 40163 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 40164 | case "(($ac_try" in |
| 40165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 40166 | *) ac_try_echo=$ac_try;; |
| 40167 | esac |
| 40168 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 40169 | $as_echo "$ac_try_echo") >&5 |
| 40170 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 40171 | ac_status=$? |
| 40172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 40173 | rm -f conftest.er1 |
| 40174 | cat conftest.err >&5 |
| 40175 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 40176 | (exit $ac_status); } >/dev/null && { |
| 40177 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 40178 | test ! -s conftest.err |
| 40179 | }; then |
| 40180 | ac_header_preproc=yes |
| 40181 | else |
| 40182 | $as_echo "$as_me: failed program was:" >&5 |
| 40183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 40184 | |
| 40185 | ac_header_preproc=no |
| 40186 | fi |
| 40187 | |
| 40188 | rm -f conftest.err conftest.$ac_ext |
| 40189 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 40190 | $as_echo "$ac_header_preproc" >&6; } |
| 40191 | |
| 40192 | # So? What about this header? |
| 40193 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 40194 | yes:no: ) |
| 40195 | { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 40196 | $as_echo "$as_me: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 40197 | { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&5 |
| 40198 | $as_echo "$as_me: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&2;} |
| 40199 | ac_header_preproc=yes |
| 40200 | ;; |
| 40201 | no:yes:* ) |
| 40202 | { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: present but cannot be compiled" >&5 |
| 40203 | $as_echo "$as_me: WARNING: lcms/lcms.h: present but cannot be compiled" >&2;} |
| 40204 | { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: check for missing prerequisite headers?" >&5 |
| 40205 | $as_echo "$as_me: WARNING: lcms/lcms.h: check for missing prerequisite headers?" >&2;} |
| 40206 | { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: see the Autoconf documentation" >&5 |
| 40207 | $as_echo "$as_me: WARNING: lcms/lcms.h: see the Autoconf documentation" >&2;} |
| 40208 | { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 40209 | $as_echo "$as_me: WARNING: lcms/lcms.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 40210 | { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&5 |
| 40211 | $as_echo "$as_me: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&2;} |
| 40212 | { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&5 |
| 40213 | $as_echo "$as_me: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&2;} |
| 40214 | ( cat <<\_ASBOX |
| 40215 | ## ----------------------------------------- ## |
| 40216 | ## Report this to http://www.imagemagick.org ## |
| 40217 | ## ----------------------------------------- ## |
| 40218 | _ASBOX |
| 40219 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 40220 | ;; |
| 40221 | esac |
| 40222 | { $as_echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5 |
| 40223 | $as_echo_n "checking for lcms/lcms.h... " >&6; } |
| 40224 | if test "${ac_cv_header_lcms_lcms_h+set}" = set; then |
| 40225 | $as_echo_n "(cached) " >&6 |
| 40226 | else |
| 40227 | ac_cv_header_lcms_lcms_h=$ac_header_preproc |
| 40228 | fi |
| 40229 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5 |
| 40230 | $as_echo "$ac_cv_header_lcms_lcms_h" >&6; } |
| 40231 | |
| 40232 | fi |
| 40233 | if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then |
| 40234 | have_lcms_header='yes' |
| 40235 | fi |
| 40236 | |
| 40237 | |
| 40238 | if test "$have_lcms_header" = 'yes'; then |
| 40239 | passed=`expr $passed + 1` |
| 40240 | |
| 40241 | cat >>confdefs.h <<\_ACEOF |
| 40242 | #define HAVE_LCMS_LCMS_H 1 |
| 40243 | _ACEOF |
| 40244 | |
| 40245 | else |
| 40246 | failed=`expr $failed + 1` |
| 40247 | fi |
| 40248 | fi |
| 40249 | { $as_echo "$as_me:$LINENO: checking for cmsOpenProfileFromMem in -llcms" >&5 |
| 40250 | $as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; } |
| 40251 | if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then |
| 40252 | $as_echo_n "(cached) " >&6 |
| 40253 | else |
| 40254 | ac_check_lib_save_LIBS=$LIBS |
| 40255 | LIBS="-llcms $LIBS" |
| 40256 | cat >conftest.$ac_ext <<_ACEOF |
| 40257 | /* confdefs.h. */ |
| 40258 | _ACEOF |
| 40259 | cat confdefs.h >>conftest.$ac_ext |
| 40260 | cat >>conftest.$ac_ext <<_ACEOF |
| 40261 | /* end confdefs.h. */ |
| 40262 | |
| 40263 | /* Override any GCC internal prototype to avoid an error. |
| 40264 | Use char because int might match the return type of a GCC |
| 40265 | builtin and then its argument prototype would still apply. */ |
| 40266 | #ifdef __cplusplus |
| 40267 | extern "C" |
| 40268 | #endif |
| 40269 | char cmsOpenProfileFromMem (); |
| 40270 | int |
| 40271 | main () |
| 40272 | { |
| 40273 | return cmsOpenProfileFromMem (); |
| 40274 | ; |
| 40275 | return 0; |
| 40276 | } |
| 40277 | _ACEOF |
| 40278 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 40279 | if { (ac_try="$ac_link" |
| 40280 | case "(($ac_try" in |
| 40281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 40282 | *) ac_try_echo=$ac_try;; |
| 40283 | esac |
| 40284 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 40285 | $as_echo "$ac_try_echo") >&5 |
| 40286 | (eval "$ac_link") 2>conftest.er1 |
| 40287 | ac_status=$? |
| 40288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 40289 | rm -f conftest.er1 |
| 40290 | cat conftest.err >&5 |
| 40291 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 40292 | (exit $ac_status); } && { |
| 40293 | test -z "$ac_c_werror_flag" || |
| 40294 | test ! -s conftest.err |
| 40295 | } && test -s conftest$ac_exeext && { |
| 40296 | test "$cross_compiling" = yes || |
| 40297 | $as_test_x conftest$ac_exeext |
| 40298 | }; then |
| 40299 | ac_cv_lib_lcms_cmsOpenProfileFromMem=yes |
| 40300 | else |
| 40301 | $as_echo "$as_me: failed program was:" >&5 |
| 40302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 40303 | |
| 40304 | ac_cv_lib_lcms_cmsOpenProfileFromMem=no |
| 40305 | fi |
| 40306 | |
| 40307 | rm -rf conftest.dSYM |
| 40308 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 40309 | conftest$ac_exeext conftest.$ac_ext |
| 40310 | LIBS=$ac_check_lib_save_LIBS |
| 40311 | fi |
| 40312 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5 |
| 40313 | $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; } |
| 40314 | if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then |
| 40315 | passed=`expr $passed + 1` |
| 40316 | else |
| 40317 | failed=`expr $failed + 1` |
| 40318 | fi |
| 40319 | |
| 40320 | { $as_echo "$as_me:$LINENO: checking if LCMS package is complete" >&5 |
| 40321 | $as_echo_n "checking if LCMS package is complete... " >&6; } |
| 40322 | if test $passed -gt 0; then |
| 40323 | if test $failed -gt 0; then |
| 40324 | { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5 |
| 40325 | $as_echo "no -- some components failed test" >&6; } |
| 40326 | have_lcms='no (failed tests)' |
| 40327 | else |
| 40328 | LCMS_LIBS='-llcms' |
| 40329 | LIBS="$LCMS_LIBS $LIBS" |
| 40330 | |
| 40331 | cat >>confdefs.h <<\_ACEOF |
| 40332 | #define LCMS_DELEGATE 1 |
| 40333 | _ACEOF |
| 40334 | |
| 40335 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 40336 | $as_echo "yes" >&6; } |
| 40337 | have_lcms='yes' |
| 40338 | fi |
| 40339 | else |
| 40340 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 40341 | $as_echo "no" >&6; } |
| 40342 | fi |
| 40343 | fi |
| 40344 | if test "$have_lcms" = 'yes'; then |
| 40345 | LCMS_DELEGATE_TRUE= |
| 40346 | LCMS_DELEGATE_FALSE='#' |
| 40347 | else |
| 40348 | LCMS_DELEGATE_TRUE='#' |
| 40349 | LCMS_DELEGATE_FALSE= |
| 40350 | fi |
| 40351 | |
| 40352 | |
| 40353 | |
| 40354 | |
| 40355 | # |
| 40356 | # Check for the LQR (Liquid Rescale) delegate library. |
| 40357 | # |
| 40358 | |
| 40359 | # Check whether --with-lqr was given. |
| 40360 | if test "${with_lqr+set}" = set; then |
| 40361 | withval=$with_lqr; with_lqr=$withval |
| 40362 | else |
| 40363 | with_lqr='yes' |
| 40364 | fi |
| 40365 | |
| 40366 | |
| 40367 | if test "$with_lqr" != 'yes'; then |
| 40368 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr " |
| 40369 | fi |
| 40370 | |
| 40371 | have_lqr='no' |
| 40372 | LQR_CFLAGS="" |
| 40373 | LQR_LIBS="" |
| 40374 | LQR_PKG="" |
| 40375 | if test "x$with_lqr" = "xyes"; then |
| 40376 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 40377 | $as_echo "-------------------------------------------------------------" >&6; } |
| 40378 | |
| 40379 | pkg_failed=no |
| 40380 | { $as_echo "$as_me:$LINENO: checking for LQR" >&5 |
| 40381 | $as_echo_n "checking for LQR... " >&6; } |
| 40382 | |
| 40383 | if test -n "$LQR_CFLAGS"; then |
| 40384 | pkg_cv_LQR_CFLAGS="$LQR_CFLAGS" |
| 40385 | elif test -n "$PKG_CONFIG"; then |
| 40386 | if test -n "$PKG_CONFIG" && \ |
| 40387 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\"") >&5 |
| 40388 | ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 |
| 40389 | ac_status=$? |
| 40390 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 40391 | (exit $ac_status); }; then |
| 40392 | pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null` |
| 40393 | else |
| 40394 | pkg_failed=yes |
| 40395 | fi |
| 40396 | else |
| 40397 | pkg_failed=untried |
| 40398 | fi |
| 40399 | if test -n "$LQR_LIBS"; then |
| 40400 | pkg_cv_LQR_LIBS="$LQR_LIBS" |
| 40401 | elif test -n "$PKG_CONFIG"; then |
| 40402 | if test -n "$PKG_CONFIG" && \ |
| 40403 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\"") >&5 |
| 40404 | ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 |
| 40405 | ac_status=$? |
| 40406 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 40407 | (exit $ac_status); }; then |
| 40408 | pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null` |
| 40409 | else |
| 40410 | pkg_failed=yes |
| 40411 | fi |
| 40412 | else |
| 40413 | pkg_failed=untried |
| 40414 | fi |
| 40415 | |
| 40416 | |
| 40417 | |
| 40418 | if test $pkg_failed = yes; then |
| 40419 | |
| 40420 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 40421 | _pkg_short_errors_supported=yes |
| 40422 | else |
| 40423 | _pkg_short_errors_supported=no |
| 40424 | fi |
| 40425 | if test $_pkg_short_errors_supported = yes; then |
| 40426 | LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1` |
| 40427 | else |
| 40428 | LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1` |
| 40429 | fi |
| 40430 | # Put the nasty error message in config.log where it belongs |
| 40431 | echo "$LQR_PKG_ERRORS" >&5 |
| 40432 | |
| 40433 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 40434 | $as_echo "no" >&6; } |
| 40435 | have_lqr=no |
| 40436 | elif test $pkg_failed = untried; then |
| 40437 | have_lqr=no |
| 40438 | else |
| 40439 | LQR_CFLAGS=$pkg_cv_LQR_CFLAGS |
| 40440 | LQR_LIBS=$pkg_cv_LQR_LIBS |
| 40441 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 40442 | $as_echo "yes" >&6; } |
| 40443 | have_lqr=yes |
| 40444 | fi |
| 40445 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 40446 | $as_echo "" >&6; } |
| 40447 | fi |
| 40448 | |
| 40449 | if test "$have_lqr" = 'yes'; then |
| 40450 | |
| 40451 | cat >>confdefs.h <<\_ACEOF |
| 40452 | #define LQR_DELEGATE 1 |
| 40453 | _ACEOF |
| 40454 | |
| 40455 | CFLAGS="$LQR_CFLAGS $CFLAGS" |
| 40456 | fi |
| 40457 | |
| 40458 | if test "$have_lqr" = 'yes'; then |
| 40459 | LQR_DELEGATE_TRUE= |
| 40460 | LQR_DELEGATE_FALSE='#' |
| 40461 | else |
| 40462 | LQR_DELEGATE_TRUE='#' |
| 40463 | LQR_DELEGATE_FALSE= |
| 40464 | fi |
| 40465 | |
| 40466 | |
| 40467 | |
| 40468 | |
| 40469 | |
| 40470 | # |
| 40471 | # Check for the OpenEXR delegate library. |
| 40472 | # |
| 40473 | |
| 40474 | # Check whether --with-openexr was given. |
| 40475 | if test "${with_openexr+set}" = set; then |
| 40476 | withval=$with_openexr; with_openexr=$withval |
| 40477 | else |
| 40478 | with_openexr='yes' |
| 40479 | fi |
| 40480 | |
| 40481 | |
| 40482 | if test "$with_openexr" != 'yes'; then |
| 40483 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr " |
| 40484 | fi |
| 40485 | |
| 40486 | have_openexr='no' |
| 40487 | OPENEXR_CFLAGS="" |
| 40488 | OPENEXR_LIBS="" |
| 40489 | OPENEXR_PKG="" |
| 40490 | if test "x$with_openexr" = "xyes"; then |
| 40491 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 40492 | $as_echo "-------------------------------------------------------------" >&6; } |
| 40493 | |
| 40494 | pkg_failed=no |
| 40495 | { $as_echo "$as_me:$LINENO: checking for OPENEXR" >&5 |
| 40496 | $as_echo_n "checking for OPENEXR... " >&6; } |
| 40497 | |
| 40498 | if test -n "$OPENEXR_CFLAGS"; then |
| 40499 | pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS" |
| 40500 | elif test -n "$PKG_CONFIG"; then |
| 40501 | if test -n "$PKG_CONFIG" && \ |
| 40502 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\"") >&5 |
| 40503 | ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 |
| 40504 | ac_status=$? |
| 40505 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 40506 | (exit $ac_status); }; then |
| 40507 | pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null` |
| 40508 | else |
| 40509 | pkg_failed=yes |
| 40510 | fi |
| 40511 | else |
| 40512 | pkg_failed=untried |
| 40513 | fi |
| 40514 | if test -n "$OPENEXR_LIBS"; then |
| 40515 | pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS" |
| 40516 | elif test -n "$PKG_CONFIG"; then |
| 40517 | if test -n "$PKG_CONFIG" && \ |
| 40518 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\"") >&5 |
| 40519 | ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 |
| 40520 | ac_status=$? |
| 40521 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 40522 | (exit $ac_status); }; then |
| 40523 | pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null` |
| 40524 | else |
| 40525 | pkg_failed=yes |
| 40526 | fi |
| 40527 | else |
| 40528 | pkg_failed=untried |
| 40529 | fi |
| 40530 | |
| 40531 | |
| 40532 | |
| 40533 | if test $pkg_failed = yes; then |
| 40534 | |
| 40535 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 40536 | _pkg_short_errors_supported=yes |
| 40537 | else |
| 40538 | _pkg_short_errors_supported=no |
| 40539 | fi |
| 40540 | if test $_pkg_short_errors_supported = yes; then |
| 40541 | OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1` |
| 40542 | else |
| 40543 | OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1` |
| 40544 | fi |
| 40545 | # Put the nasty error message in config.log where it belongs |
| 40546 | echo "$OPENEXR_PKG_ERRORS" >&5 |
| 40547 | |
| 40548 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 40549 | $as_echo "no" >&6; } |
| 40550 | have_openexr=no |
| 40551 | elif test $pkg_failed = untried; then |
| 40552 | have_openexr=no |
| 40553 | else |
| 40554 | OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS |
| 40555 | OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS |
| 40556 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 40557 | $as_echo "yes" >&6; } |
| 40558 | have_openexr=yes |
| 40559 | fi |
| 40560 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 40561 | $as_echo "" >&6; } |
| 40562 | fi |
| 40563 | |
| 40564 | if test "$have_openexr" = 'yes'; then |
| 40565 | |
| 40566 | cat >>confdefs.h <<\_ACEOF |
| 40567 | #define OPENEXR_DELEGATE 1 |
| 40568 | _ACEOF |
| 40569 | |
| 40570 | if test "$with_modules" = 'no'; then |
| 40571 | CFLAGS="$OPENEXR_CFLAGS $CFLAGS" |
| 40572 | fi |
| 40573 | fi |
| 40574 | |
| 40575 | if test "$have_openexr" = 'yes'; then |
| 40576 | OPENEXR_DELEGATE_TRUE= |
| 40577 | OPENEXR_DELEGATE_FALSE='#' |
| 40578 | else |
| 40579 | OPENEXR_DELEGATE_TRUE='#' |
| 40580 | OPENEXR_DELEGATE_FALSE= |
| 40581 | fi |
| 40582 | |
| 40583 | |
| 40584 | |
| 40585 | |
| 40586 | |
| 40587 | # |
| 40588 | # Check for PNG delegate library. |
| 40589 | # |
| 40590 | |
| 40591 | # Check whether --with-png was given. |
| 40592 | if test "${with_png+set}" = set; then |
| 40593 | withval=$with_png; with_png=$withval |
| 40594 | else |
| 40595 | with_png='yes' |
| 40596 | fi |
| 40597 | |
| 40598 | |
| 40599 | if test "$with_png" != 'yes'; then |
| 40600 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png " |
| 40601 | fi |
| 40602 | |
| 40603 | have_png='no' |
| 40604 | PNG_LIBS='' |
| 40605 | if test "$with_png" != 'no'; then |
| 40606 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 40607 | $as_echo "-------------------------------------------------------------" >&6; } |
| 40608 | { $as_echo "$as_me:$LINENO: checking for PNG" >&5 |
| 40609 | $as_echo_n "checking for PNG... " >&6; } |
| 40610 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 40611 | $as_echo "" >&6; } |
| 40612 | failed=0 |
| 40613 | passed=0 |
| 40614 | if test "${ac_cv_header_png_h+set}" = set; then |
| 40615 | { $as_echo "$as_me:$LINENO: checking for png.h" >&5 |
| 40616 | $as_echo_n "checking for png.h... " >&6; } |
| 40617 | if test "${ac_cv_header_png_h+set}" = set; then |
| 40618 | $as_echo_n "(cached) " >&6 |
| 40619 | fi |
| 40620 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 |
| 40621 | $as_echo "$ac_cv_header_png_h" >&6; } |
| 40622 | else |
| 40623 | # Is the header compilable? |
| 40624 | { $as_echo "$as_me:$LINENO: checking png.h usability" >&5 |
| 40625 | $as_echo_n "checking png.h usability... " >&6; } |
| 40626 | cat >conftest.$ac_ext <<_ACEOF |
| 40627 | /* confdefs.h. */ |
| 40628 | _ACEOF |
| 40629 | cat confdefs.h >>conftest.$ac_ext |
| 40630 | cat >>conftest.$ac_ext <<_ACEOF |
| 40631 | /* end confdefs.h. */ |
| 40632 | $ac_includes_default |
| 40633 | #include <png.h> |
| 40634 | _ACEOF |
| 40635 | rm -f conftest.$ac_objext |
| 40636 | if { (ac_try="$ac_compile" |
| 40637 | case "(($ac_try" in |
| 40638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 40639 | *) ac_try_echo=$ac_try;; |
| 40640 | esac |
| 40641 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 40642 | $as_echo "$ac_try_echo") >&5 |
| 40643 | (eval "$ac_compile") 2>conftest.er1 |
| 40644 | ac_status=$? |
| 40645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 40646 | rm -f conftest.er1 |
| 40647 | cat conftest.err >&5 |
| 40648 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 40649 | (exit $ac_status); } && { |
| 40650 | test -z "$ac_c_werror_flag" || |
| 40651 | test ! -s conftest.err |
| 40652 | } && test -s conftest.$ac_objext; then |
| 40653 | ac_header_compiler=yes |
| 40654 | else |
| 40655 | $as_echo "$as_me: failed program was:" >&5 |
| 40656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 40657 | |
| 40658 | ac_header_compiler=no |
| 40659 | fi |
| 40660 | |
| 40661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 40662 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 40663 | $as_echo "$ac_header_compiler" >&6; } |
| 40664 | |
| 40665 | # Is the header present? |
| 40666 | { $as_echo "$as_me:$LINENO: checking png.h presence" >&5 |
| 40667 | $as_echo_n "checking png.h presence... " >&6; } |
| 40668 | cat >conftest.$ac_ext <<_ACEOF |
| 40669 | /* confdefs.h. */ |
| 40670 | _ACEOF |
| 40671 | cat confdefs.h >>conftest.$ac_ext |
| 40672 | cat >>conftest.$ac_ext <<_ACEOF |
| 40673 | /* end confdefs.h. */ |
| 40674 | #include <png.h> |
| 40675 | _ACEOF |
| 40676 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 40677 | case "(($ac_try" in |
| 40678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 40679 | *) ac_try_echo=$ac_try;; |
| 40680 | esac |
| 40681 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 40682 | $as_echo "$ac_try_echo") >&5 |
| 40683 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 40684 | ac_status=$? |
| 40685 | grep -v '^ *+' conftest.er1 >conftest.err |
| 40686 | rm -f conftest.er1 |
| 40687 | cat conftest.err >&5 |
| 40688 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 40689 | (exit $ac_status); } >/dev/null && { |
| 40690 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 40691 | test ! -s conftest.err |
| 40692 | }; then |
| 40693 | ac_header_preproc=yes |
| 40694 | else |
| 40695 | $as_echo "$as_me: failed program was:" >&5 |
| 40696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 40697 | |
| 40698 | ac_header_preproc=no |
| 40699 | fi |
| 40700 | |
| 40701 | rm -f conftest.err conftest.$ac_ext |
| 40702 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 40703 | $as_echo "$ac_header_preproc" >&6; } |
| 40704 | |
| 40705 | # So? What about this header? |
| 40706 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 40707 | yes:no: ) |
| 40708 | { $as_echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 40709 | $as_echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 40710 | { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
| 40711 | $as_echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} |
| 40712 | ac_header_preproc=yes |
| 40713 | ;; |
| 40714 | no:yes:* ) |
| 40715 | { $as_echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
| 40716 | $as_echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} |
| 40717 | { $as_echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
| 40718 | $as_echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} |
| 40719 | { $as_echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 |
| 40720 | $as_echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} |
| 40721 | { $as_echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 40722 | $as_echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 40723 | { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
| 40724 | $as_echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} |
| 40725 | { $as_echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
| 40726 | $as_echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} |
| 40727 | ( cat <<\_ASBOX |
| 40728 | ## ----------------------------------------- ## |
| 40729 | ## Report this to http://www.imagemagick.org ## |
| 40730 | ## ----------------------------------------- ## |
| 40731 | _ASBOX |
| 40732 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 40733 | ;; |
| 40734 | esac |
| 40735 | { $as_echo "$as_me:$LINENO: checking for png.h" >&5 |
| 40736 | $as_echo_n "checking for png.h... " >&6; } |
| 40737 | if test "${ac_cv_header_png_h+set}" = set; then |
| 40738 | $as_echo_n "(cached) " >&6 |
| 40739 | else |
| 40740 | ac_cv_header_png_h=$ac_header_preproc |
| 40741 | fi |
| 40742 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 |
| 40743 | $as_echo "$ac_cv_header_png_h" >&6; } |
| 40744 | |
| 40745 | fi |
| 40746 | if test "x$ac_cv_header_png_h" = x""yes; then |
| 40747 | passed=`expr $passed + 1` |
| 40748 | else |
| 40749 | failed=`expr $failed + 1` |
| 40750 | fi |
| 40751 | |
| 40752 | |
| 40753 | { $as_echo "$as_me:$LINENO: checking for png_get_io_ptr in -lpng" >&5 |
| 40754 | $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; } |
| 40755 | if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then |
| 40756 | $as_echo_n "(cached) " >&6 |
| 40757 | else |
| 40758 | ac_check_lib_save_LIBS=$LIBS |
| 40759 | LIBS="-lpng $LIBS" |
| 40760 | cat >conftest.$ac_ext <<_ACEOF |
| 40761 | /* confdefs.h. */ |
| 40762 | _ACEOF |
| 40763 | cat confdefs.h >>conftest.$ac_ext |
| 40764 | cat >>conftest.$ac_ext <<_ACEOF |
| 40765 | /* end confdefs.h. */ |
| 40766 | |
| 40767 | /* Override any GCC internal prototype to avoid an error. |
| 40768 | Use char because int might match the return type of a GCC |
| 40769 | builtin and then its argument prototype would still apply. */ |
| 40770 | #ifdef __cplusplus |
| 40771 | extern "C" |
| 40772 | #endif |
| 40773 | char png_get_io_ptr (); |
| 40774 | int |
| 40775 | main () |
| 40776 | { |
| 40777 | return png_get_io_ptr (); |
| 40778 | ; |
| 40779 | return 0; |
| 40780 | } |
| 40781 | _ACEOF |
| 40782 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 40783 | if { (ac_try="$ac_link" |
| 40784 | case "(($ac_try" in |
| 40785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 40786 | *) ac_try_echo=$ac_try;; |
| 40787 | esac |
| 40788 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 40789 | $as_echo "$ac_try_echo") >&5 |
| 40790 | (eval "$ac_link") 2>conftest.er1 |
| 40791 | ac_status=$? |
| 40792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 40793 | rm -f conftest.er1 |
| 40794 | cat conftest.err >&5 |
| 40795 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 40796 | (exit $ac_status); } && { |
| 40797 | test -z "$ac_c_werror_flag" || |
| 40798 | test ! -s conftest.err |
| 40799 | } && test -s conftest$ac_exeext && { |
| 40800 | test "$cross_compiling" = yes || |
| 40801 | $as_test_x conftest$ac_exeext |
| 40802 | }; then |
| 40803 | ac_cv_lib_png_png_get_io_ptr=yes |
| 40804 | else |
| 40805 | $as_echo "$as_me: failed program was:" >&5 |
| 40806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 40807 | |
| 40808 | ac_cv_lib_png_png_get_io_ptr=no |
| 40809 | fi |
| 40810 | |
| 40811 | rm -rf conftest.dSYM |
| 40812 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 40813 | conftest$ac_exeext conftest.$ac_ext |
| 40814 | LIBS=$ac_check_lib_save_LIBS |
| 40815 | fi |
| 40816 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_io_ptr" >&5 |
| 40817 | $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; } |
| 40818 | if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then |
| 40819 | passed=`expr $passed + 1` |
| 40820 | else |
| 40821 | failed=`expr $failed + 1` |
| 40822 | fi |
| 40823 | |
| 40824 | { $as_echo "$as_me:$LINENO: checking if PNG package is complete" >&5 |
| 40825 | $as_echo_n "checking if PNG package is complete... " >&6; } |
| 40826 | if test $passed -gt 0; then |
| 40827 | if test $failed -gt 0; then |
| 40828 | { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5 |
| 40829 | $as_echo "no -- some components failed test" >&6; } |
| 40830 | have_png='no (failed tests)' |
| 40831 | else |
| 40832 | PNG_LIBS='-lpng' |
| 40833 | LIBS="$PNG_LIBS $LIBS" |
| 40834 | |
| 40835 | cat >>confdefs.h <<\_ACEOF |
| 40836 | #define PNG_DELEGATE 1 |
| 40837 | _ACEOF |
| 40838 | |
| 40839 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 40840 | $as_echo "yes" >&6; } |
| 40841 | have_png='yes' |
| 40842 | fi |
| 40843 | else |
| 40844 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 40845 | $as_echo "no" >&6; } |
| 40846 | fi |
| 40847 | fi |
| 40848 | if test "$have_png" = 'yes'; then |
| 40849 | PNG_DELEGATE_TRUE= |
| 40850 | PNG_DELEGATE_FALSE='#' |
| 40851 | else |
| 40852 | PNG_DELEGATE_TRUE='#' |
| 40853 | PNG_DELEGATE_FALSE= |
| 40854 | fi |
| 40855 | |
| 40856 | |
| 40857 | |
| 40858 | |
| 40859 | # |
| 40860 | # Check for RSVG delegate library. |
| 40861 | # |
| 40862 | |
| 40863 | # Check whether --with-rsvg was given. |
| 40864 | if test "${with_rsvg+set}" = set; then |
| 40865 | withval=$with_rsvg; with_rsvg=$withval |
| 40866 | else |
| 40867 | with_rsvg=$have_x |
| 40868 | fi |
| 40869 | |
| 40870 | |
| 40871 | if test "$with_rsvg" != 'yes'; then |
| 40872 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg " |
| 40873 | fi |
| 40874 | |
| 40875 | have_rsvg='no' |
| 40876 | have_cairo='no' |
| 40877 | RSVG_CFLAGS="" |
| 40878 | RSVG_LIBS="" |
| 40879 | RSVG_PKG="" |
| 40880 | if test "x$with_rsvg" = "xyes"; then |
| 40881 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 40882 | $as_echo "-------------------------------------------------------------" >&6; } |
| 40883 | |
| 40884 | pkg_failed=no |
| 40885 | { $as_echo "$as_me:$LINENO: checking for RSVG" >&5 |
| 40886 | $as_echo_n "checking for RSVG... " >&6; } |
| 40887 | |
| 40888 | if test -n "$RSVG_CFLAGS"; then |
| 40889 | pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS" |
| 40890 | elif test -n "$PKG_CONFIG"; then |
| 40891 | if test -n "$PKG_CONFIG" && \ |
| 40892 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\"") >&5 |
| 40893 | ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 |
| 40894 | ac_status=$? |
| 40895 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 40896 | (exit $ac_status); }; then |
| 40897 | pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null` |
| 40898 | else |
| 40899 | pkg_failed=yes |
| 40900 | fi |
| 40901 | else |
| 40902 | pkg_failed=untried |
| 40903 | fi |
| 40904 | if test -n "$RSVG_LIBS"; then |
| 40905 | pkg_cv_RSVG_LIBS="$RSVG_LIBS" |
| 40906 | elif test -n "$PKG_CONFIG"; then |
| 40907 | if test -n "$PKG_CONFIG" && \ |
| 40908 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\"") >&5 |
| 40909 | ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 |
| 40910 | ac_status=$? |
| 40911 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 40912 | (exit $ac_status); }; then |
| 40913 | pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null` |
| 40914 | else |
| 40915 | pkg_failed=yes |
| 40916 | fi |
| 40917 | else |
| 40918 | pkg_failed=untried |
| 40919 | fi |
| 40920 | |
| 40921 | |
| 40922 | |
| 40923 | if test $pkg_failed = yes; then |
| 40924 | |
| 40925 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 40926 | _pkg_short_errors_supported=yes |
| 40927 | else |
| 40928 | _pkg_short_errors_supported=no |
| 40929 | fi |
| 40930 | if test $_pkg_short_errors_supported = yes; then |
| 40931 | RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1` |
| 40932 | else |
| 40933 | RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1` |
| 40934 | fi |
| 40935 | # Put the nasty error message in config.log where it belongs |
| 40936 | echo "$RSVG_PKG_ERRORS" >&5 |
| 40937 | |
| 40938 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 40939 | $as_echo "no" >&6; } |
| 40940 | have_rsvg=no |
| 40941 | elif test $pkg_failed = untried; then |
| 40942 | have_rsvg=no |
| 40943 | else |
| 40944 | RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS |
| 40945 | RSVG_LIBS=$pkg_cv_RSVG_LIBS |
| 40946 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 40947 | $as_echo "yes" >&6; } |
| 40948 | have_rsvg=yes |
| 40949 | fi |
| 40950 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 40951 | $as_echo "" >&6; } |
| 40952 | |
| 40953 | pkg_failed=no |
| 40954 | { $as_echo "$as_me:$LINENO: checking for CAIRO_SVG" >&5 |
| 40955 | $as_echo_n "checking for CAIRO_SVG... " >&6; } |
| 40956 | |
| 40957 | if test -n "$CAIRO_SVG_CFLAGS"; then |
| 40958 | pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS" |
| 40959 | elif test -n "$PKG_CONFIG"; then |
| 40960 | if test -n "$PKG_CONFIG" && \ |
| 40961 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-svg\"") >&5 |
| 40962 | ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 |
| 40963 | ac_status=$? |
| 40964 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 40965 | (exit $ac_status); }; then |
| 40966 | pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null` |
| 40967 | else |
| 40968 | pkg_failed=yes |
| 40969 | fi |
| 40970 | else |
| 40971 | pkg_failed=untried |
| 40972 | fi |
| 40973 | if test -n "$CAIRO_SVG_LIBS"; then |
| 40974 | pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS" |
| 40975 | elif test -n "$PKG_CONFIG"; then |
| 40976 | if test -n "$PKG_CONFIG" && \ |
| 40977 | { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-svg\"") >&5 |
| 40978 | ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 |
| 40979 | ac_status=$? |
| 40980 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 40981 | (exit $ac_status); }; then |
| 40982 | pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null` |
| 40983 | else |
| 40984 | pkg_failed=yes |
| 40985 | fi |
| 40986 | else |
| 40987 | pkg_failed=untried |
| 40988 | fi |
| 40989 | |
| 40990 | |
| 40991 | |
| 40992 | if test $pkg_failed = yes; then |
| 40993 | |
| 40994 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 40995 | _pkg_short_errors_supported=yes |
| 40996 | else |
| 40997 | _pkg_short_errors_supported=no |
| 40998 | fi |
| 40999 | if test $_pkg_short_errors_supported = yes; then |
| 41000 | CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1` |
| 41001 | else |
| 41002 | CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1` |
| 41003 | fi |
| 41004 | # Put the nasty error message in config.log where it belongs |
| 41005 | echo "$CAIRO_SVG_PKG_ERRORS" >&5 |
| 41006 | |
| 41007 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 41008 | $as_echo "no" >&6; } |
| 41009 | have_cairo=no |
| 41010 | elif test $pkg_failed = untried; then |
| 41011 | have_cairo=no |
| 41012 | else |
| 41013 | CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS |
| 41014 | CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS |
| 41015 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 41016 | $as_echo "yes" >&6; } |
| 41017 | have_cairo=yes |
| 41018 | fi |
| 41019 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 41020 | $as_echo "" >&6; } |
| 41021 | fi |
| 41022 | |
| 41023 | if test "$have_rsvg" = 'yes'; then |
| 41024 | |
| 41025 | cat >>confdefs.h <<\_ACEOF |
| 41026 | #define RSVG_DELEGATE 1 |
| 41027 | _ACEOF |
| 41028 | |
| 41029 | if test "$with_modules" = 'no'; then |
| 41030 | CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS" |
| 41031 | fi |
| 41032 | fi |
| 41033 | |
| 41034 | if test "$have_cairo" = 'yes'; then |
| 41035 | |
| 41036 | cat >>confdefs.h <<\_ACEOF |
| 41037 | #define CAIRO_DELEGATE 1 |
| 41038 | _ACEOF |
| 41039 | |
| 41040 | if test "$with_modules" = 'no'; then |
| 41041 | CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS" |
| 41042 | fi |
| 41043 | fi |
| 41044 | |
| 41045 | if test "$have_rsvg" = 'yes'; then |
| 41046 | RSVG_DELEGATE_TRUE= |
| 41047 | RSVG_DELEGATE_FALSE='#' |
| 41048 | else |
| 41049 | RSVG_DELEGATE_TRUE='#' |
| 41050 | RSVG_DELEGATE_FALSE= |
| 41051 | fi |
| 41052 | |
| 41053 | if test "$have_cairo" = 'yes'; then |
| 41054 | CAIRO_DELEGATE_TRUE= |
| 41055 | CAIRO_DELEGATE_FALSE='#' |
| 41056 | else |
| 41057 | CAIRO_DELEGATE_TRUE='#' |
| 41058 | CAIRO_DELEGATE_FALSE= |
| 41059 | fi |
| 41060 | |
| 41061 | |
| 41062 | |
| 41063 | |
| 41064 | |
| 41065 | # |
| 41066 | # Check for TIFF delegate library. |
| 41067 | # |
| 41068 | |
| 41069 | # Check whether --with-tiff was given. |
| 41070 | if test "${with_tiff+set}" = set; then |
| 41071 | withval=$with_tiff; with_tiff=$withval |
| 41072 | else |
| 41073 | with_tiff='yes' |
| 41074 | fi |
| 41075 | |
| 41076 | |
| 41077 | if test "$with_tiff" != 'yes'; then |
| 41078 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff " |
| 41079 | fi |
| 41080 | |
| 41081 | have_tiff='no' |
| 41082 | TIFF_LIBS='' |
| 41083 | if test "$with_tiff" != 'no'; then |
| 41084 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 41085 | $as_echo "-------------------------------------------------------------" >&6; } |
| 41086 | { $as_echo "$as_me:$LINENO: checking for TIFF" >&5 |
| 41087 | $as_echo_n "checking for TIFF... " >&6; } |
| 41088 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 41089 | $as_echo "" >&6; } |
| 41090 | failed=0 |
| 41091 | passed=0 |
| 41092 | if test "${ac_cv_header_tiff_h+set}" = set; then |
| 41093 | { $as_echo "$as_me:$LINENO: checking for tiff.h" >&5 |
| 41094 | $as_echo_n "checking for tiff.h... " >&6; } |
| 41095 | if test "${ac_cv_header_tiff_h+set}" = set; then |
| 41096 | $as_echo_n "(cached) " >&6 |
| 41097 | fi |
| 41098 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5 |
| 41099 | $as_echo "$ac_cv_header_tiff_h" >&6; } |
| 41100 | else |
| 41101 | # Is the header compilable? |
| 41102 | { $as_echo "$as_me:$LINENO: checking tiff.h usability" >&5 |
| 41103 | $as_echo_n "checking tiff.h usability... " >&6; } |
| 41104 | cat >conftest.$ac_ext <<_ACEOF |
| 41105 | /* confdefs.h. */ |
| 41106 | _ACEOF |
| 41107 | cat confdefs.h >>conftest.$ac_ext |
| 41108 | cat >>conftest.$ac_ext <<_ACEOF |
| 41109 | /* end confdefs.h. */ |
| 41110 | $ac_includes_default |
| 41111 | #include <tiff.h> |
| 41112 | _ACEOF |
| 41113 | rm -f conftest.$ac_objext |
| 41114 | if { (ac_try="$ac_compile" |
| 41115 | case "(($ac_try" in |
| 41116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 41117 | *) ac_try_echo=$ac_try;; |
| 41118 | esac |
| 41119 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 41120 | $as_echo "$ac_try_echo") >&5 |
| 41121 | (eval "$ac_compile") 2>conftest.er1 |
| 41122 | ac_status=$? |
| 41123 | grep -v '^ *+' conftest.er1 >conftest.err |
| 41124 | rm -f conftest.er1 |
| 41125 | cat conftest.err >&5 |
| 41126 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 41127 | (exit $ac_status); } && { |
| 41128 | test -z "$ac_c_werror_flag" || |
| 41129 | test ! -s conftest.err |
| 41130 | } && test -s conftest.$ac_objext; then |
| 41131 | ac_header_compiler=yes |
| 41132 | else |
| 41133 | $as_echo "$as_me: failed program was:" >&5 |
| 41134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 41135 | |
| 41136 | ac_header_compiler=no |
| 41137 | fi |
| 41138 | |
| 41139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 41140 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 41141 | $as_echo "$ac_header_compiler" >&6; } |
| 41142 | |
| 41143 | # Is the header present? |
| 41144 | { $as_echo "$as_me:$LINENO: checking tiff.h presence" >&5 |
| 41145 | $as_echo_n "checking tiff.h presence... " >&6; } |
| 41146 | cat >conftest.$ac_ext <<_ACEOF |
| 41147 | /* confdefs.h. */ |
| 41148 | _ACEOF |
| 41149 | cat confdefs.h >>conftest.$ac_ext |
| 41150 | cat >>conftest.$ac_ext <<_ACEOF |
| 41151 | /* end confdefs.h. */ |
| 41152 | #include <tiff.h> |
| 41153 | _ACEOF |
| 41154 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 41155 | case "(($ac_try" in |
| 41156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 41157 | *) ac_try_echo=$ac_try;; |
| 41158 | esac |
| 41159 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 41160 | $as_echo "$ac_try_echo") >&5 |
| 41161 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 41162 | ac_status=$? |
| 41163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 41164 | rm -f conftest.er1 |
| 41165 | cat conftest.err >&5 |
| 41166 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 41167 | (exit $ac_status); } >/dev/null && { |
| 41168 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 41169 | test ! -s conftest.err |
| 41170 | }; then |
| 41171 | ac_header_preproc=yes |
| 41172 | else |
| 41173 | $as_echo "$as_me: failed program was:" >&5 |
| 41174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 41175 | |
| 41176 | ac_header_preproc=no |
| 41177 | fi |
| 41178 | |
| 41179 | rm -f conftest.err conftest.$ac_ext |
| 41180 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 41181 | $as_echo "$ac_header_preproc" >&6; } |
| 41182 | |
| 41183 | # So? What about this header? |
| 41184 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 41185 | yes:no: ) |
| 41186 | { $as_echo "$as_me:$LINENO: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 41187 | $as_echo "$as_me: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 41188 | { $as_echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the compiler's result" >&5 |
| 41189 | $as_echo "$as_me: WARNING: tiff.h: proceeding with the compiler's result" >&2;} |
| 41190 | ac_header_preproc=yes |
| 41191 | ;; |
| 41192 | no:yes:* ) |
| 41193 | { $as_echo "$as_me:$LINENO: WARNING: tiff.h: present but cannot be compiled" >&5 |
| 41194 | $as_echo "$as_me: WARNING: tiff.h: present but cannot be compiled" >&2;} |
| 41195 | { $as_echo "$as_me:$LINENO: WARNING: tiff.h: check for missing prerequisite headers?" >&5 |
| 41196 | $as_echo "$as_me: WARNING: tiff.h: check for missing prerequisite headers?" >&2;} |
| 41197 | { $as_echo "$as_me:$LINENO: WARNING: tiff.h: see the Autoconf documentation" >&5 |
| 41198 | $as_echo "$as_me: WARNING: tiff.h: see the Autoconf documentation" >&2;} |
| 41199 | { $as_echo "$as_me:$LINENO: WARNING: tiff.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 41200 | $as_echo "$as_me: WARNING: tiff.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 41201 | { $as_echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the preprocessor's result" >&5 |
| 41202 | $as_echo "$as_me: WARNING: tiff.h: proceeding with the preprocessor's result" >&2;} |
| 41203 | { $as_echo "$as_me:$LINENO: WARNING: tiff.h: in the future, the compiler will take precedence" >&5 |
| 41204 | $as_echo "$as_me: WARNING: tiff.h: in the future, the compiler will take precedence" >&2;} |
| 41205 | ( cat <<\_ASBOX |
| 41206 | ## ----------------------------------------- ## |
| 41207 | ## Report this to http://www.imagemagick.org ## |
| 41208 | ## ----------------------------------------- ## |
| 41209 | _ASBOX |
| 41210 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 41211 | ;; |
| 41212 | esac |
| 41213 | { $as_echo "$as_me:$LINENO: checking for tiff.h" >&5 |
| 41214 | $as_echo_n "checking for tiff.h... " >&6; } |
| 41215 | if test "${ac_cv_header_tiff_h+set}" = set; then |
| 41216 | $as_echo_n "(cached) " >&6 |
| 41217 | else |
| 41218 | ac_cv_header_tiff_h=$ac_header_preproc |
| 41219 | fi |
| 41220 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5 |
| 41221 | $as_echo "$ac_cv_header_tiff_h" >&6; } |
| 41222 | |
| 41223 | fi |
| 41224 | if test "x$ac_cv_header_tiff_h" = x""yes; then |
| 41225 | passed=`expr $passed + 1` |
| 41226 | else |
| 41227 | failed=`expr $failed + 1` |
| 41228 | fi |
| 41229 | |
| 41230 | |
| 41231 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
| 41232 | { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5 |
| 41233 | $as_echo_n "checking for tiffio.h... " >&6; } |
| 41234 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
| 41235 | $as_echo_n "(cached) " >&6 |
| 41236 | fi |
| 41237 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
| 41238 | $as_echo "$ac_cv_header_tiffio_h" >&6; } |
| 41239 | else |
| 41240 | # Is the header compilable? |
| 41241 | { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5 |
| 41242 | $as_echo_n "checking tiffio.h usability... " >&6; } |
| 41243 | cat >conftest.$ac_ext <<_ACEOF |
| 41244 | /* confdefs.h. */ |
| 41245 | _ACEOF |
| 41246 | cat confdefs.h >>conftest.$ac_ext |
| 41247 | cat >>conftest.$ac_ext <<_ACEOF |
| 41248 | /* end confdefs.h. */ |
| 41249 | $ac_includes_default |
| 41250 | #include <tiffio.h> |
| 41251 | _ACEOF |
| 41252 | rm -f conftest.$ac_objext |
| 41253 | if { (ac_try="$ac_compile" |
| 41254 | case "(($ac_try" in |
| 41255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 41256 | *) ac_try_echo=$ac_try;; |
| 41257 | esac |
| 41258 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 41259 | $as_echo "$ac_try_echo") >&5 |
| 41260 | (eval "$ac_compile") 2>conftest.er1 |
| 41261 | ac_status=$? |
| 41262 | grep -v '^ *+' conftest.er1 >conftest.err |
| 41263 | rm -f conftest.er1 |
| 41264 | cat conftest.err >&5 |
| 41265 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 41266 | (exit $ac_status); } && { |
| 41267 | test -z "$ac_c_werror_flag" || |
| 41268 | test ! -s conftest.err |
| 41269 | } && test -s conftest.$ac_objext; then |
| 41270 | ac_header_compiler=yes |
| 41271 | else |
| 41272 | $as_echo "$as_me: failed program was:" >&5 |
| 41273 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 41274 | |
| 41275 | ac_header_compiler=no |
| 41276 | fi |
| 41277 | |
| 41278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 41279 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 41280 | $as_echo "$ac_header_compiler" >&6; } |
| 41281 | |
| 41282 | # Is the header present? |
| 41283 | { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5 |
| 41284 | $as_echo_n "checking tiffio.h presence... " >&6; } |
| 41285 | cat >conftest.$ac_ext <<_ACEOF |
| 41286 | /* confdefs.h. */ |
| 41287 | _ACEOF |
| 41288 | cat confdefs.h >>conftest.$ac_ext |
| 41289 | cat >>conftest.$ac_ext <<_ACEOF |
| 41290 | /* end confdefs.h. */ |
| 41291 | #include <tiffio.h> |
| 41292 | _ACEOF |
| 41293 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 41294 | case "(($ac_try" in |
| 41295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 41296 | *) ac_try_echo=$ac_try;; |
| 41297 | esac |
| 41298 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 41299 | $as_echo "$ac_try_echo") >&5 |
| 41300 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 41301 | ac_status=$? |
| 41302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 41303 | rm -f conftest.er1 |
| 41304 | cat conftest.err >&5 |
| 41305 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 41306 | (exit $ac_status); } >/dev/null && { |
| 41307 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 41308 | test ! -s conftest.err |
| 41309 | }; then |
| 41310 | ac_header_preproc=yes |
| 41311 | else |
| 41312 | $as_echo "$as_me: failed program was:" >&5 |
| 41313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 41314 | |
| 41315 | ac_header_preproc=no |
| 41316 | fi |
| 41317 | |
| 41318 | rm -f conftest.err conftest.$ac_ext |
| 41319 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 41320 | $as_echo "$ac_header_preproc" >&6; } |
| 41321 | |
| 41322 | # So? What about this header? |
| 41323 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 41324 | yes:no: ) |
| 41325 | { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 41326 | $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 41327 | { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
| 41328 | $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} |
| 41329 | ac_header_preproc=yes |
| 41330 | ;; |
| 41331 | no:yes:* ) |
| 41332 | { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
| 41333 | $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} |
| 41334 | { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
| 41335 | $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} |
| 41336 | { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 |
| 41337 | $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} |
| 41338 | { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 41339 | $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 41340 | { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
| 41341 | $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} |
| 41342 | { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
| 41343 | $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} |
| 41344 | ( cat <<\_ASBOX |
| 41345 | ## ----------------------------------------- ## |
| 41346 | ## Report this to http://www.imagemagick.org ## |
| 41347 | ## ----------------------------------------- ## |
| 41348 | _ASBOX |
| 41349 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 41350 | ;; |
| 41351 | esac |
| 41352 | { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5 |
| 41353 | $as_echo_n "checking for tiffio.h... " >&6; } |
| 41354 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
| 41355 | $as_echo_n "(cached) " >&6 |
| 41356 | else |
| 41357 | ac_cv_header_tiffio_h=$ac_header_preproc |
| 41358 | fi |
| 41359 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
| 41360 | $as_echo "$ac_cv_header_tiffio_h" >&6; } |
| 41361 | |
| 41362 | fi |
| 41363 | if test "x$ac_cv_header_tiffio_h" = x""yes; then |
| 41364 | passed=`expr $passed + 1` |
| 41365 | else |
| 41366 | failed=`expr $failed + 1` |
| 41367 | fi |
| 41368 | |
| 41369 | |
| 41370 | { $as_echo "$as_me:$LINENO: checking for TIFFOpen in -ltiff" >&5 |
| 41371 | $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } |
| 41372 | if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then |
| 41373 | $as_echo_n "(cached) " >&6 |
| 41374 | else |
| 41375 | ac_check_lib_save_LIBS=$LIBS |
| 41376 | LIBS="-ltiff $LIBS" |
| 41377 | cat >conftest.$ac_ext <<_ACEOF |
| 41378 | /* confdefs.h. */ |
| 41379 | _ACEOF |
| 41380 | cat confdefs.h >>conftest.$ac_ext |
| 41381 | cat >>conftest.$ac_ext <<_ACEOF |
| 41382 | /* end confdefs.h. */ |
| 41383 | |
| 41384 | /* Override any GCC internal prototype to avoid an error. |
| 41385 | Use char because int might match the return type of a GCC |
| 41386 | builtin and then its argument prototype would still apply. */ |
| 41387 | #ifdef __cplusplus |
| 41388 | extern "C" |
| 41389 | #endif |
| 41390 | char TIFFOpen (); |
| 41391 | int |
| 41392 | main () |
| 41393 | { |
| 41394 | return TIFFOpen (); |
| 41395 | ; |
| 41396 | return 0; |
| 41397 | } |
| 41398 | _ACEOF |
| 41399 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 41400 | if { (ac_try="$ac_link" |
| 41401 | case "(($ac_try" in |
| 41402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 41403 | *) ac_try_echo=$ac_try;; |
| 41404 | esac |
| 41405 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 41406 | $as_echo "$ac_try_echo") >&5 |
| 41407 | (eval "$ac_link") 2>conftest.er1 |
| 41408 | ac_status=$? |
| 41409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 41410 | rm -f conftest.er1 |
| 41411 | cat conftest.err >&5 |
| 41412 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 41413 | (exit $ac_status); } && { |
| 41414 | test -z "$ac_c_werror_flag" || |
| 41415 | test ! -s conftest.err |
| 41416 | } && test -s conftest$ac_exeext && { |
| 41417 | test "$cross_compiling" = yes || |
| 41418 | $as_test_x conftest$ac_exeext |
| 41419 | }; then |
| 41420 | ac_cv_lib_tiff_TIFFOpen=yes |
| 41421 | else |
| 41422 | $as_echo "$as_me: failed program was:" >&5 |
| 41423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 41424 | |
| 41425 | ac_cv_lib_tiff_TIFFOpen=no |
| 41426 | fi |
| 41427 | |
| 41428 | rm -rf conftest.dSYM |
| 41429 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 41430 | conftest$ac_exeext conftest.$ac_ext |
| 41431 | LIBS=$ac_check_lib_save_LIBS |
| 41432 | fi |
| 41433 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFOpen" >&5 |
| 41434 | $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } |
| 41435 | if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then |
| 41436 | passed=`expr $passed + 1` |
| 41437 | else |
| 41438 | failed=`expr $failed + 1` |
| 41439 | fi |
| 41440 | |
| 41441 | { $as_echo "$as_me:$LINENO: checking for TIFFClientOpen in -ltiff" >&5 |
| 41442 | $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; } |
| 41443 | if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then |
| 41444 | $as_echo_n "(cached) " >&6 |
| 41445 | else |
| 41446 | ac_check_lib_save_LIBS=$LIBS |
| 41447 | LIBS="-ltiff $LIBS" |
| 41448 | cat >conftest.$ac_ext <<_ACEOF |
| 41449 | /* confdefs.h. */ |
| 41450 | _ACEOF |
| 41451 | cat confdefs.h >>conftest.$ac_ext |
| 41452 | cat >>conftest.$ac_ext <<_ACEOF |
| 41453 | /* end confdefs.h. */ |
| 41454 | |
| 41455 | /* Override any GCC internal prototype to avoid an error. |
| 41456 | Use char because int might match the return type of a GCC |
| 41457 | builtin and then its argument prototype would still apply. */ |
| 41458 | #ifdef __cplusplus |
| 41459 | extern "C" |
| 41460 | #endif |
| 41461 | char TIFFClientOpen (); |
| 41462 | int |
| 41463 | main () |
| 41464 | { |
| 41465 | return TIFFClientOpen (); |
| 41466 | ; |
| 41467 | return 0; |
| 41468 | } |
| 41469 | _ACEOF |
| 41470 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 41471 | if { (ac_try="$ac_link" |
| 41472 | case "(($ac_try" in |
| 41473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 41474 | *) ac_try_echo=$ac_try;; |
| 41475 | esac |
| 41476 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 41477 | $as_echo "$ac_try_echo") >&5 |
| 41478 | (eval "$ac_link") 2>conftest.er1 |
| 41479 | ac_status=$? |
| 41480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 41481 | rm -f conftest.er1 |
| 41482 | cat conftest.err >&5 |
| 41483 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 41484 | (exit $ac_status); } && { |
| 41485 | test -z "$ac_c_werror_flag" || |
| 41486 | test ! -s conftest.err |
| 41487 | } && test -s conftest$ac_exeext && { |
| 41488 | test "$cross_compiling" = yes || |
| 41489 | $as_test_x conftest$ac_exeext |
| 41490 | }; then |
| 41491 | ac_cv_lib_tiff_TIFFClientOpen=yes |
| 41492 | else |
| 41493 | $as_echo "$as_me: failed program was:" >&5 |
| 41494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 41495 | |
| 41496 | ac_cv_lib_tiff_TIFFClientOpen=no |
| 41497 | fi |
| 41498 | |
| 41499 | rm -rf conftest.dSYM |
| 41500 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 41501 | conftest$ac_exeext conftest.$ac_ext |
| 41502 | LIBS=$ac_check_lib_save_LIBS |
| 41503 | fi |
| 41504 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5 |
| 41505 | $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; } |
| 41506 | if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then |
| 41507 | passed=`expr $passed + 1` |
| 41508 | else |
| 41509 | failed=`expr $failed + 1` |
| 41510 | fi |
| 41511 | |
| 41512 | { $as_echo "$as_me:$LINENO: checking for TIFFIsByteSwapped in -ltiff" >&5 |
| 41513 | $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; } |
| 41514 | if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then |
| 41515 | $as_echo_n "(cached) " >&6 |
| 41516 | else |
| 41517 | ac_check_lib_save_LIBS=$LIBS |
| 41518 | LIBS="-ltiff $LIBS" |
| 41519 | cat >conftest.$ac_ext <<_ACEOF |
| 41520 | /* confdefs.h. */ |
| 41521 | _ACEOF |
| 41522 | cat confdefs.h >>conftest.$ac_ext |
| 41523 | cat >>conftest.$ac_ext <<_ACEOF |
| 41524 | /* end confdefs.h. */ |
| 41525 | |
| 41526 | /* Override any GCC internal prototype to avoid an error. |
| 41527 | Use char because int might match the return type of a GCC |
| 41528 | builtin and then its argument prototype would still apply. */ |
| 41529 | #ifdef __cplusplus |
| 41530 | extern "C" |
| 41531 | #endif |
| 41532 | char TIFFIsByteSwapped (); |
| 41533 | int |
| 41534 | main () |
| 41535 | { |
| 41536 | return TIFFIsByteSwapped (); |
| 41537 | ; |
| 41538 | return 0; |
| 41539 | } |
| 41540 | _ACEOF |
| 41541 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 41542 | if { (ac_try="$ac_link" |
| 41543 | case "(($ac_try" in |
| 41544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 41545 | *) ac_try_echo=$ac_try;; |
| 41546 | esac |
| 41547 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 41548 | $as_echo "$ac_try_echo") >&5 |
| 41549 | (eval "$ac_link") 2>conftest.er1 |
| 41550 | ac_status=$? |
| 41551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 41552 | rm -f conftest.er1 |
| 41553 | cat conftest.err >&5 |
| 41554 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 41555 | (exit $ac_status); } && { |
| 41556 | test -z "$ac_c_werror_flag" || |
| 41557 | test ! -s conftest.err |
| 41558 | } && test -s conftest$ac_exeext && { |
| 41559 | test "$cross_compiling" = yes || |
| 41560 | $as_test_x conftest$ac_exeext |
| 41561 | }; then |
| 41562 | ac_cv_lib_tiff_TIFFIsByteSwapped=yes |
| 41563 | else |
| 41564 | $as_echo "$as_me: failed program was:" >&5 |
| 41565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 41566 | |
| 41567 | ac_cv_lib_tiff_TIFFIsByteSwapped=no |
| 41568 | fi |
| 41569 | |
| 41570 | rm -rf conftest.dSYM |
| 41571 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 41572 | conftest$ac_exeext conftest.$ac_ext |
| 41573 | LIBS=$ac_check_lib_save_LIBS |
| 41574 | fi |
| 41575 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5 |
| 41576 | $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; } |
| 41577 | if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then |
| 41578 | passed=`expr $passed + 1` |
| 41579 | else |
| 41580 | failed=`expr $failed + 1` |
| 41581 | fi |
| 41582 | |
| 41583 | { $as_echo "$as_me:$LINENO: checking for TIFFReadRGBATile in -ltiff" >&5 |
| 41584 | $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; } |
| 41585 | if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then |
| 41586 | $as_echo_n "(cached) " >&6 |
| 41587 | else |
| 41588 | ac_check_lib_save_LIBS=$LIBS |
| 41589 | LIBS="-ltiff $LIBS" |
| 41590 | cat >conftest.$ac_ext <<_ACEOF |
| 41591 | /* confdefs.h. */ |
| 41592 | _ACEOF |
| 41593 | cat confdefs.h >>conftest.$ac_ext |
| 41594 | cat >>conftest.$ac_ext <<_ACEOF |
| 41595 | /* end confdefs.h. */ |
| 41596 | |
| 41597 | /* Override any GCC internal prototype to avoid an error. |
| 41598 | Use char because int might match the return type of a GCC |
| 41599 | builtin and then its argument prototype would still apply. */ |
| 41600 | #ifdef __cplusplus |
| 41601 | extern "C" |
| 41602 | #endif |
| 41603 | char TIFFReadRGBATile (); |
| 41604 | int |
| 41605 | main () |
| 41606 | { |
| 41607 | return TIFFReadRGBATile (); |
| 41608 | ; |
| 41609 | return 0; |
| 41610 | } |
| 41611 | _ACEOF |
| 41612 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 41613 | if { (ac_try="$ac_link" |
| 41614 | case "(($ac_try" in |
| 41615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 41616 | *) ac_try_echo=$ac_try;; |
| 41617 | esac |
| 41618 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 41619 | $as_echo "$ac_try_echo") >&5 |
| 41620 | (eval "$ac_link") 2>conftest.er1 |
| 41621 | ac_status=$? |
| 41622 | grep -v '^ *+' conftest.er1 >conftest.err |
| 41623 | rm -f conftest.er1 |
| 41624 | cat conftest.err >&5 |
| 41625 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 41626 | (exit $ac_status); } && { |
| 41627 | test -z "$ac_c_werror_flag" || |
| 41628 | test ! -s conftest.err |
| 41629 | } && test -s conftest$ac_exeext && { |
| 41630 | test "$cross_compiling" = yes || |
| 41631 | $as_test_x conftest$ac_exeext |
| 41632 | }; then |
| 41633 | ac_cv_lib_tiff_TIFFReadRGBATile=yes |
| 41634 | else |
| 41635 | $as_echo "$as_me: failed program was:" >&5 |
| 41636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 41637 | |
| 41638 | ac_cv_lib_tiff_TIFFReadRGBATile=no |
| 41639 | fi |
| 41640 | |
| 41641 | rm -rf conftest.dSYM |
| 41642 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 41643 | conftest$ac_exeext conftest.$ac_ext |
| 41644 | LIBS=$ac_check_lib_save_LIBS |
| 41645 | fi |
| 41646 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5 |
| 41647 | $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; } |
| 41648 | if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then |
| 41649 | passed=`expr $passed + 1` |
| 41650 | else |
| 41651 | failed=`expr $failed + 1` |
| 41652 | fi |
| 41653 | |
| 41654 | { $as_echo "$as_me:$LINENO: checking for TIFFReadRGBAStrip in -ltiff" >&5 |
| 41655 | $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; } |
| 41656 | if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then |
| 41657 | $as_echo_n "(cached) " >&6 |
| 41658 | else |
| 41659 | ac_check_lib_save_LIBS=$LIBS |
| 41660 | LIBS="-ltiff $LIBS" |
| 41661 | cat >conftest.$ac_ext <<_ACEOF |
| 41662 | /* confdefs.h. */ |
| 41663 | _ACEOF |
| 41664 | cat confdefs.h >>conftest.$ac_ext |
| 41665 | cat >>conftest.$ac_ext <<_ACEOF |
| 41666 | /* end confdefs.h. */ |
| 41667 | |
| 41668 | /* Override any GCC internal prototype to avoid an error. |
| 41669 | Use char because int might match the return type of a GCC |
| 41670 | builtin and then its argument prototype would still apply. */ |
| 41671 | #ifdef __cplusplus |
| 41672 | extern "C" |
| 41673 | #endif |
| 41674 | char TIFFReadRGBAStrip (); |
| 41675 | int |
| 41676 | main () |
| 41677 | { |
| 41678 | return TIFFReadRGBAStrip (); |
| 41679 | ; |
| 41680 | return 0; |
| 41681 | } |
| 41682 | _ACEOF |
| 41683 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 41684 | if { (ac_try="$ac_link" |
| 41685 | case "(($ac_try" in |
| 41686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 41687 | *) ac_try_echo=$ac_try;; |
| 41688 | esac |
| 41689 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 41690 | $as_echo "$ac_try_echo") >&5 |
| 41691 | (eval "$ac_link") 2>conftest.er1 |
| 41692 | ac_status=$? |
| 41693 | grep -v '^ *+' conftest.er1 >conftest.err |
| 41694 | rm -f conftest.er1 |
| 41695 | cat conftest.err >&5 |
| 41696 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 41697 | (exit $ac_status); } && { |
| 41698 | test -z "$ac_c_werror_flag" || |
| 41699 | test ! -s conftest.err |
| 41700 | } && test -s conftest$ac_exeext && { |
| 41701 | test "$cross_compiling" = yes || |
| 41702 | $as_test_x conftest$ac_exeext |
| 41703 | }; then |
| 41704 | ac_cv_lib_tiff_TIFFReadRGBAStrip=yes |
| 41705 | else |
| 41706 | $as_echo "$as_me: failed program was:" >&5 |
| 41707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 41708 | |
| 41709 | ac_cv_lib_tiff_TIFFReadRGBAStrip=no |
| 41710 | fi |
| 41711 | |
| 41712 | rm -rf conftest.dSYM |
| 41713 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 41714 | conftest$ac_exeext conftest.$ac_ext |
| 41715 | LIBS=$ac_check_lib_save_LIBS |
| 41716 | fi |
| 41717 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5 |
| 41718 | $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; } |
| 41719 | if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then |
| 41720 | passed=`expr $passed + 1` |
| 41721 | else |
| 41722 | failed=`expr $failed + 1` |
| 41723 | fi |
| 41724 | |
| 41725 | { $as_echo "$as_me:$LINENO: checking if TIFF package is complete" >&5 |
| 41726 | $as_echo_n "checking if TIFF package is complete... " >&6; } |
| 41727 | if test $passed -gt 0; then |
| 41728 | if test $failed -gt 0; then |
| 41729 | { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5 |
| 41730 | $as_echo "no -- some components failed test" >&6; } |
| 41731 | have_tiff='no (failed tests)' |
| 41732 | else |
| 41733 | TIFF_LIBS='-ltiff' |
| 41734 | LIBS="$TIFF_LIBS $LIBS" |
| 41735 | |
| 41736 | cat >>confdefs.h <<\_ACEOF |
| 41737 | #define TIFF_DELEGATE 1 |
| 41738 | _ACEOF |
| 41739 | |
| 41740 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 41741 | $as_echo "yes" >&6; } |
| 41742 | have_tiff='yes' |
| 41743 | |
| 41744 | for ac_header in tiffconf.h |
| 41745 | do |
| 41746 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 41747 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 41748 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 41749 | $as_echo_n "checking for $ac_header... " >&6; } |
| 41750 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 41751 | $as_echo_n "(cached) " >&6 |
| 41752 | fi |
| 41753 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 41754 | $as_echo "$as_val"'` |
| 41755 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 41756 | $as_echo "$ac_res" >&6; } |
| 41757 | else |
| 41758 | # Is the header compilable? |
| 41759 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 41760 | $as_echo_n "checking $ac_header usability... " >&6; } |
| 41761 | cat >conftest.$ac_ext <<_ACEOF |
| 41762 | /* confdefs.h. */ |
| 41763 | _ACEOF |
| 41764 | cat confdefs.h >>conftest.$ac_ext |
| 41765 | cat >>conftest.$ac_ext <<_ACEOF |
| 41766 | /* end confdefs.h. */ |
| 41767 | $ac_includes_default |
| 41768 | #include <$ac_header> |
| 41769 | _ACEOF |
| 41770 | rm -f conftest.$ac_objext |
| 41771 | if { (ac_try="$ac_compile" |
| 41772 | case "(($ac_try" in |
| 41773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 41774 | *) ac_try_echo=$ac_try;; |
| 41775 | esac |
| 41776 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 41777 | $as_echo "$ac_try_echo") >&5 |
| 41778 | (eval "$ac_compile") 2>conftest.er1 |
| 41779 | ac_status=$? |
| 41780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 41781 | rm -f conftest.er1 |
| 41782 | cat conftest.err >&5 |
| 41783 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 41784 | (exit $ac_status); } && { |
| 41785 | test -z "$ac_c_werror_flag" || |
| 41786 | test ! -s conftest.err |
| 41787 | } && test -s conftest.$ac_objext; then |
| 41788 | ac_header_compiler=yes |
| 41789 | else |
| 41790 | $as_echo "$as_me: failed program was:" >&5 |
| 41791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 41792 | |
| 41793 | ac_header_compiler=no |
| 41794 | fi |
| 41795 | |
| 41796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 41797 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 41798 | $as_echo "$ac_header_compiler" >&6; } |
| 41799 | |
| 41800 | # Is the header present? |
| 41801 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 41802 | $as_echo_n "checking $ac_header presence... " >&6; } |
| 41803 | cat >conftest.$ac_ext <<_ACEOF |
| 41804 | /* confdefs.h. */ |
| 41805 | _ACEOF |
| 41806 | cat confdefs.h >>conftest.$ac_ext |
| 41807 | cat >>conftest.$ac_ext <<_ACEOF |
| 41808 | /* end confdefs.h. */ |
| 41809 | #include <$ac_header> |
| 41810 | _ACEOF |
| 41811 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 41812 | case "(($ac_try" in |
| 41813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 41814 | *) ac_try_echo=$ac_try;; |
| 41815 | esac |
| 41816 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 41817 | $as_echo "$ac_try_echo") >&5 |
| 41818 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 41819 | ac_status=$? |
| 41820 | grep -v '^ *+' conftest.er1 >conftest.err |
| 41821 | rm -f conftest.er1 |
| 41822 | cat conftest.err >&5 |
| 41823 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 41824 | (exit $ac_status); } >/dev/null && { |
| 41825 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 41826 | test ! -s conftest.err |
| 41827 | }; then |
| 41828 | ac_header_preproc=yes |
| 41829 | else |
| 41830 | $as_echo "$as_me: failed program was:" >&5 |
| 41831 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 41832 | |
| 41833 | ac_header_preproc=no |
| 41834 | fi |
| 41835 | |
| 41836 | rm -f conftest.err conftest.$ac_ext |
| 41837 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 41838 | $as_echo "$ac_header_preproc" >&6; } |
| 41839 | |
| 41840 | # So? What about this header? |
| 41841 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 41842 | yes:no: ) |
| 41843 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 41844 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 41845 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 41846 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 41847 | ac_header_preproc=yes |
| 41848 | ;; |
| 41849 | no:yes:* ) |
| 41850 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 41851 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 41852 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 41853 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 41854 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 41855 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 41856 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 41857 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 41858 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 41859 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 41860 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 41861 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 41862 | ( cat <<\_ASBOX |
| 41863 | ## ----------------------------------------- ## |
| 41864 | ## Report this to http://www.imagemagick.org ## |
| 41865 | ## ----------------------------------------- ## |
| 41866 | _ASBOX |
| 41867 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 41868 | ;; |
| 41869 | esac |
| 41870 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 41871 | $as_echo_n "checking for $ac_header... " >&6; } |
| 41872 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 41873 | $as_echo_n "(cached) " >&6 |
| 41874 | else |
| 41875 | eval "$as_ac_Header=\$ac_header_preproc" |
| 41876 | fi |
| 41877 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 41878 | $as_echo "$as_val"'` |
| 41879 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 41880 | $as_echo "$ac_res" >&6; } |
| 41881 | |
| 41882 | fi |
| 41883 | as_val=`eval 'as_val=${'$as_ac_Header'} |
| 41884 | $as_echo "$as_val"'` |
| 41885 | if test "x$as_val" = x""yes; then |
| 41886 | cat >>confdefs.h <<_ACEOF |
| 41887 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 41888 | _ACEOF |
| 41889 | |
| 41890 | fi |
| 41891 | |
| 41892 | done |
| 41893 | |
| 41894 | |
| 41895 | |
| 41896 | |
| 41897 | |
| 41898 | |
| 41899 | |
| 41900 | |
| 41901 | for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \ |
| 41902 | TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \ |
| 41903 | TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples |
| 41904 | do |
| 41905 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 41906 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 41907 | $as_echo_n "checking for $ac_func... " >&6; } |
| 41908 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 41909 | $as_echo_n "(cached) " >&6 |
| 41910 | else |
| 41911 | cat >conftest.$ac_ext <<_ACEOF |
| 41912 | /* confdefs.h. */ |
| 41913 | _ACEOF |
| 41914 | cat confdefs.h >>conftest.$ac_ext |
| 41915 | cat >>conftest.$ac_ext <<_ACEOF |
| 41916 | /* end confdefs.h. */ |
| 41917 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 41918 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 41919 | #define $ac_func innocuous_$ac_func |
| 41920 | |
| 41921 | /* System header to define __stub macros and hopefully few prototypes, |
| 41922 | which can conflict with char $ac_func (); below. |
| 41923 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 41924 | <limits.h> exists even on freestanding compilers. */ |
| 41925 | |
| 41926 | #ifdef __STDC__ |
| 41927 | # include <limits.h> |
| 41928 | #else |
| 41929 | # include <assert.h> |
| 41930 | #endif |
| 41931 | |
| 41932 | #undef $ac_func |
| 41933 | |
| 41934 | /* Override any GCC internal prototype to avoid an error. |
| 41935 | Use char because int might match the return type of a GCC |
| 41936 | builtin and then its argument prototype would still apply. */ |
| 41937 | #ifdef __cplusplus |
| 41938 | extern "C" |
| 41939 | #endif |
| 41940 | char $ac_func (); |
| 41941 | /* The GNU C library defines this for functions which it implements |
| 41942 | to always fail with ENOSYS. Some functions are actually named |
| 41943 | something starting with __ and the normal name is an alias. */ |
| 41944 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 41945 | choke me |
| 41946 | #endif |
| 41947 | |
| 41948 | int |
| 41949 | main () |
| 41950 | { |
| 41951 | return $ac_func (); |
| 41952 | ; |
| 41953 | return 0; |
| 41954 | } |
| 41955 | _ACEOF |
| 41956 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 41957 | if { (ac_try="$ac_link" |
| 41958 | case "(($ac_try" in |
| 41959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 41960 | *) ac_try_echo=$ac_try;; |
| 41961 | esac |
| 41962 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 41963 | $as_echo "$ac_try_echo") >&5 |
| 41964 | (eval "$ac_link") 2>conftest.er1 |
| 41965 | ac_status=$? |
| 41966 | grep -v '^ *+' conftest.er1 >conftest.err |
| 41967 | rm -f conftest.er1 |
| 41968 | cat conftest.err >&5 |
| 41969 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 41970 | (exit $ac_status); } && { |
| 41971 | test -z "$ac_c_werror_flag" || |
| 41972 | test ! -s conftest.err |
| 41973 | } && test -s conftest$ac_exeext && { |
| 41974 | test "$cross_compiling" = yes || |
| 41975 | $as_test_x conftest$ac_exeext |
| 41976 | }; then |
| 41977 | eval "$as_ac_var=yes" |
| 41978 | else |
| 41979 | $as_echo "$as_me: failed program was:" >&5 |
| 41980 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 41981 | |
| 41982 | eval "$as_ac_var=no" |
| 41983 | fi |
| 41984 | |
| 41985 | rm -rf conftest.dSYM |
| 41986 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 41987 | conftest$ac_exeext conftest.$ac_ext |
| 41988 | fi |
| 41989 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 41990 | $as_echo "$as_val"'` |
| 41991 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 41992 | $as_echo "$ac_res" >&6; } |
| 41993 | as_val=`eval 'as_val=${'$as_ac_var'} |
| 41994 | $as_echo "$as_val"'` |
| 41995 | if test "x$as_val" = x""yes; then |
| 41996 | cat >>confdefs.h <<_ACEOF |
| 41997 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 41998 | _ACEOF |
| 41999 | |
| 42000 | fi |
| 42001 | done |
| 42002 | |
| 42003 | fi |
| 42004 | else |
| 42005 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 42006 | $as_echo "no" >&6; } |
| 42007 | fi |
| 42008 | fi |
| 42009 | if test "$have_tiff" = 'yes'; then |
| 42010 | TIFF_DELEGATE_TRUE= |
| 42011 | TIFF_DELEGATE_FALSE='#' |
| 42012 | else |
| 42013 | TIFF_DELEGATE_TRUE='#' |
| 42014 | TIFF_DELEGATE_FALSE= |
| 42015 | fi |
| 42016 | |
| 42017 | |
| 42018 | |
| 42019 | |
| 42020 | # |
| 42021 | # Set Windows font directory. |
| 42022 | # |
| 42023 | |
| 42024 | # Check whether --with-windows-font-dir was given. |
| 42025 | if test "${with_windows_font_dir+set}" = set; then |
| 42026 | withval=$with_windows_font_dir; with_windows_font_dir=$withval |
| 42027 | else |
| 42028 | with_windows_font_dir='' |
| 42029 | fi |
| 42030 | |
| 42031 | if test "$with_windows_font_dir" != '' ; then |
| 42032 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir " |
| 42033 | fi |
| 42034 | |
| 42035 | |
| 42036 | # |
| 42037 | # Check for WMF delegate library. |
| 42038 | # |
| 42039 | |
| 42040 | # Check whether --with-wmf was given. |
| 42041 | if test "${with_wmf+set}" = set; then |
| 42042 | withval=$with_wmf; with_wmf=$withval |
| 42043 | else |
| 42044 | with_wmf=$with_modules |
| 42045 | fi |
| 42046 | |
| 42047 | |
| 42048 | if test "$with_wmf" != 'yes'; then |
| 42049 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf " |
| 42050 | fi |
| 42051 | |
| 42052 | have_wmf='no' |
| 42053 | WMF_LIBS='' |
| 42054 | WMF_LIBS_DEPS='' |
| 42055 | OLIBS="$LIBS" |
| 42056 | if test "$with_wmf" != 'no'; then |
| 42057 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 42058 | $as_echo "-------------------------------------------------------------" >&6; } |
| 42059 | { $as_echo "$as_me:$LINENO: checking for WMF" >&5 |
| 42060 | $as_echo_n "checking for WMF... " >&6; } |
| 42061 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 42062 | $as_echo "" >&6; } |
| 42063 | have_libwmf='no' |
| 42064 | have_libwmflite='no' |
| 42065 | have_libwmf_ipa_h='no' |
| 42066 | |
| 42067 | { $as_echo "$as_me:$LINENO: checking for libwmf/ipa.h" >&5 |
| 42068 | $as_echo_n "checking for libwmf/ipa.h... " >&6; } |
| 42069 | if test "${ac_cv_header_libwmf_ipa_h+set}" = set; then |
| 42070 | $as_echo_n "(cached) " >&6 |
| 42071 | else |
| 42072 | cat >conftest.$ac_ext <<_ACEOF |
| 42073 | /* confdefs.h. */ |
| 42074 | _ACEOF |
| 42075 | cat confdefs.h >>conftest.$ac_ext |
| 42076 | cat >>conftest.$ac_ext <<_ACEOF |
| 42077 | /* end confdefs.h. */ |
| 42078 | $FT2BUILD_H |
| 42079 | |
| 42080 | #include <libwmf/ipa.h> |
| 42081 | _ACEOF |
| 42082 | rm -f conftest.$ac_objext |
| 42083 | if { (ac_try="$ac_compile" |
| 42084 | case "(($ac_try" in |
| 42085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 42086 | *) ac_try_echo=$ac_try;; |
| 42087 | esac |
| 42088 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 42089 | $as_echo "$ac_try_echo") >&5 |
| 42090 | (eval "$ac_compile") 2>conftest.er1 |
| 42091 | ac_status=$? |
| 42092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 42093 | rm -f conftest.er1 |
| 42094 | cat conftest.err >&5 |
| 42095 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 42096 | (exit $ac_status); } && { |
| 42097 | test -z "$ac_c_werror_flag" || |
| 42098 | test ! -s conftest.err |
| 42099 | } && test -s conftest.$ac_objext; then |
| 42100 | ac_cv_header_libwmf_ipa_h=yes |
| 42101 | else |
| 42102 | $as_echo "$as_me: failed program was:" >&5 |
| 42103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 42104 | |
| 42105 | ac_cv_header_libwmf_ipa_h=no |
| 42106 | fi |
| 42107 | |
| 42108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 42109 | fi |
| 42110 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libwmf_ipa_h" >&5 |
| 42111 | $as_echo "$ac_cv_header_libwmf_ipa_h" >&6; } |
| 42112 | if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then |
| 42113 | have_libwmf_ipa_h='yes' |
| 42114 | fi |
| 42115 | |
| 42116 | |
| 42117 | if test "$have_libwmf_ipa_h" = 'yes'; then |
| 42118 | { $as_echo "$as_me:$LINENO: checking for wmf_lite_create in -lwmflite" >&5 |
| 42119 | $as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; } |
| 42120 | if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then |
| 42121 | $as_echo_n "(cached) " >&6 |
| 42122 | else |
| 42123 | ac_check_lib_save_LIBS=$LIBS |
| 42124 | LIBS="-lwmflite $LIBS" |
| 42125 | cat >conftest.$ac_ext <<_ACEOF |
| 42126 | /* confdefs.h. */ |
| 42127 | _ACEOF |
| 42128 | cat confdefs.h >>conftest.$ac_ext |
| 42129 | cat >>conftest.$ac_ext <<_ACEOF |
| 42130 | /* end confdefs.h. */ |
| 42131 | |
| 42132 | /* Override any GCC internal prototype to avoid an error. |
| 42133 | Use char because int might match the return type of a GCC |
| 42134 | builtin and then its argument prototype would still apply. */ |
| 42135 | #ifdef __cplusplus |
| 42136 | extern "C" |
| 42137 | #endif |
| 42138 | char wmf_lite_create (); |
| 42139 | int |
| 42140 | main () |
| 42141 | { |
| 42142 | return wmf_lite_create (); |
| 42143 | ; |
| 42144 | return 0; |
| 42145 | } |
| 42146 | _ACEOF |
| 42147 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 42148 | if { (ac_try="$ac_link" |
| 42149 | case "(($ac_try" in |
| 42150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 42151 | *) ac_try_echo=$ac_try;; |
| 42152 | esac |
| 42153 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 42154 | $as_echo "$ac_try_echo") >&5 |
| 42155 | (eval "$ac_link") 2>conftest.er1 |
| 42156 | ac_status=$? |
| 42157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 42158 | rm -f conftest.er1 |
| 42159 | cat conftest.err >&5 |
| 42160 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 42161 | (exit $ac_status); } && { |
| 42162 | test -z "$ac_c_werror_flag" || |
| 42163 | test ! -s conftest.err |
| 42164 | } && test -s conftest$ac_exeext && { |
| 42165 | test "$cross_compiling" = yes || |
| 42166 | $as_test_x conftest$ac_exeext |
| 42167 | }; then |
| 42168 | ac_cv_lib_wmflite_wmf_lite_create=yes |
| 42169 | else |
| 42170 | $as_echo "$as_me: failed program was:" >&5 |
| 42171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 42172 | |
| 42173 | ac_cv_lib_wmflite_wmf_lite_create=no |
| 42174 | fi |
| 42175 | |
| 42176 | rm -rf conftest.dSYM |
| 42177 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 42178 | conftest$ac_exeext conftest.$ac_ext |
| 42179 | LIBS=$ac_check_lib_save_LIBS |
| 42180 | fi |
| 42181 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5 |
| 42182 | $as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; } |
| 42183 | if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then |
| 42184 | have_libwmflite='yes' |
| 42185 | fi |
| 42186 | |
| 42187 | if test "$have_libwmflite" = 'yes'; then |
| 42188 | |
| 42189 | cat >>confdefs.h <<\_ACEOF |
| 42190 | #define WMFLITE_DELEGATE 1 |
| 42191 | _ACEOF |
| 42192 | |
| 42193 | WMF_LIBS='-lwmflite' |
| 42194 | LIBS="$WMF_LIBS $LIBS" |
| 42195 | have_wmf='yes' |
| 42196 | else |
| 42197 | WMF_LIBS_DEPS='' |
| 42198 | WMF_CONFIG_LIBS=`libwmf-config --libs` |
| 42199 | for lib in xml2 expat freetype jpeg png z; do |
| 42200 | testlib="-l${lib}" |
| 42201 | echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib" |
| 42202 | done |
| 42203 | { $as_echo "$as_me:$LINENO: checking for wmf_api_create in -lwmf" >&5 |
| 42204 | $as_echo_n "checking for wmf_api_create in -lwmf... " >&6; } |
| 42205 | if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then |
| 42206 | $as_echo_n "(cached) " >&6 |
| 42207 | else |
| 42208 | ac_check_lib_save_LIBS=$LIBS |
| 42209 | LIBS="-lwmf $WMF_LIBS_DEPS $LIBS" |
| 42210 | cat >conftest.$ac_ext <<_ACEOF |
| 42211 | /* confdefs.h. */ |
| 42212 | _ACEOF |
| 42213 | cat confdefs.h >>conftest.$ac_ext |
| 42214 | cat >>conftest.$ac_ext <<_ACEOF |
| 42215 | /* end confdefs.h. */ |
| 42216 | |
| 42217 | /* Override any GCC internal prototype to avoid an error. |
| 42218 | Use char because int might match the return type of a GCC |
| 42219 | builtin and then its argument prototype would still apply. */ |
| 42220 | #ifdef __cplusplus |
| 42221 | extern "C" |
| 42222 | #endif |
| 42223 | char wmf_api_create (); |
| 42224 | int |
| 42225 | main () |
| 42226 | { |
| 42227 | return wmf_api_create (); |
| 42228 | ; |
| 42229 | return 0; |
| 42230 | } |
| 42231 | _ACEOF |
| 42232 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 42233 | if { (ac_try="$ac_link" |
| 42234 | case "(($ac_try" in |
| 42235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 42236 | *) ac_try_echo=$ac_try;; |
| 42237 | esac |
| 42238 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 42239 | $as_echo "$ac_try_echo") >&5 |
| 42240 | (eval "$ac_link") 2>conftest.er1 |
| 42241 | ac_status=$? |
| 42242 | grep -v '^ *+' conftest.er1 >conftest.err |
| 42243 | rm -f conftest.er1 |
| 42244 | cat conftest.err >&5 |
| 42245 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 42246 | (exit $ac_status); } && { |
| 42247 | test -z "$ac_c_werror_flag" || |
| 42248 | test ! -s conftest.err |
| 42249 | } && test -s conftest$ac_exeext && { |
| 42250 | test "$cross_compiling" = yes || |
| 42251 | $as_test_x conftest$ac_exeext |
| 42252 | }; then |
| 42253 | ac_cv_lib_wmf_wmf_api_create=yes |
| 42254 | else |
| 42255 | $as_echo "$as_me: failed program was:" >&5 |
| 42256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 42257 | |
| 42258 | ac_cv_lib_wmf_wmf_api_create=no |
| 42259 | fi |
| 42260 | |
| 42261 | rm -rf conftest.dSYM |
| 42262 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 42263 | conftest$ac_exeext conftest.$ac_ext |
| 42264 | LIBS=$ac_check_lib_save_LIBS |
| 42265 | fi |
| 42266 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wmf_wmf_api_create" >&5 |
| 42267 | $as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; } |
| 42268 | if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then |
| 42269 | have_libwmf='yes' |
| 42270 | fi |
| 42271 | |
| 42272 | if test "$have_libwmf" = 'yes'; then |
| 42273 | |
| 42274 | cat >>confdefs.h <<\_ACEOF |
| 42275 | #define WMF_DELEGATE 1 |
| 42276 | _ACEOF |
| 42277 | |
| 42278 | WMF_LIBS='-lwmf' |
| 42279 | LIBS="$WMF_LIBS $LIBS" |
| 42280 | have_wmf='yes' |
| 42281 | else |
| 42282 | { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5 |
| 42283 | $as_echo "no -- some components failed test" >&6; } |
| 42284 | have_wmf='no (failed tests)' |
| 42285 | have_wmflite='no (failed tests)' |
| 42286 | LIBS="$OLIBS" |
| 42287 | WMF_LIBS='' |
| 42288 | fi |
| 42289 | fi |
| 42290 | fi |
| 42291 | { $as_echo "$as_me:$LINENO: checking if WMF package is complete" >&5 |
| 42292 | $as_echo_n "checking if WMF package is complete... " >&6; } |
| 42293 | if test "$have_wmf" = 'yes'; then |
| 42294 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 42295 | $as_echo "yes" >&6; } |
| 42296 | else |
| 42297 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 42298 | $as_echo "no" >&6; } |
| 42299 | fi |
| 42300 | fi |
| 42301 | if test "$have_wmf" = 'yes'; then |
| 42302 | WMF_DELEGATE_TRUE= |
| 42303 | WMF_DELEGATE_FALSE='#' |
| 42304 | else |
| 42305 | WMF_DELEGATE_TRUE='#' |
| 42306 | WMF_DELEGATE_FALSE= |
| 42307 | fi |
| 42308 | |
| 42309 | |
| 42310 | |
| 42311 | |
| 42312 | |
| 42313 | # |
| 42314 | # Check for XML delegate library. |
| 42315 | # |
| 42316 | |
| 42317 | # Check whether --with-xml was given. |
| 42318 | if test "${with_xml+set}" = set; then |
| 42319 | withval=$with_xml; with_xml=$withval |
| 42320 | else |
| 42321 | with_xml=$have_x |
| 42322 | fi |
| 42323 | |
| 42324 | |
| 42325 | if test "$with_xml" != 'yes' ; then |
| 42326 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml " |
| 42327 | fi |
| 42328 | |
| 42329 | have_xml='no' |
| 42330 | XML_LIBS='' |
| 42331 | if test "$with_xml" != 'no'; then |
| 42332 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 42333 | $as_echo "-------------------------------------------------------------" >&6; } |
| 42334 | { $as_echo "$as_me:$LINENO: checking for XML" >&5 |
| 42335 | $as_echo_n "checking for XML... " >&6; } |
| 42336 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 42337 | $as_echo "" >&6; } |
| 42338 | PERSIST_LDFLAGS=$LDFLAGS |
| 42339 | PERSIST_CPPFLAGS=$CPPFLAGS |
| 42340 | xml2_config='' |
| 42341 | for ac_prog in xml2-config |
| 42342 | do |
| 42343 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 42344 | set dummy $ac_prog; ac_word=$2 |
| 42345 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 42346 | $as_echo_n "checking for $ac_word... " >&6; } |
| 42347 | if test "${ac_cv_prog_xml2_config+set}" = set; then |
| 42348 | $as_echo_n "(cached) " >&6 |
| 42349 | else |
| 42350 | if test -n "$xml2_config"; then |
| 42351 | ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test. |
| 42352 | else |
| 42353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 42354 | for as_dir in $PATH |
| 42355 | do |
| 42356 | IFS=$as_save_IFS |
| 42357 | test -z "$as_dir" && as_dir=. |
| 42358 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 42359 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 42360 | ac_cv_prog_xml2_config="$ac_prog" |
| 42361 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 42362 | break 2 |
| 42363 | fi |
| 42364 | done |
| 42365 | done |
| 42366 | IFS=$as_save_IFS |
| 42367 | |
| 42368 | fi |
| 42369 | fi |
| 42370 | xml2_config=$ac_cv_prog_xml2_config |
| 42371 | if test -n "$xml2_config"; then |
| 42372 | { $as_echo "$as_me:$LINENO: result: $xml2_config" >&5 |
| 42373 | $as_echo "$xml2_config" >&6; } |
| 42374 | else |
| 42375 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 42376 | $as_echo "no" >&6; } |
| 42377 | fi |
| 42378 | |
| 42379 | |
| 42380 | test -n "$xml2_config" && break |
| 42381 | done |
| 42382 | if test -n "$xml2_config"; then |
| 42383 | # Debian installs libxml headers under /usr/include/libxml2/libxml with |
| 42384 | # the shared library installed under /usr/lib, whereas the package |
| 42385 | # installs itself under $prefix/libxml and $prefix/lib. |
| 42386 | xml2_prefix=`xml2-config --prefix` |
| 42387 | if test -d "${xml2_prefix}/include/libxml2"; then |
| 42388 | CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2" |
| 42389 | fi |
| 42390 | if test "${xml2_prefix}" != '/usr'; then |
| 42391 | LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib" |
| 42392 | fi |
| 42393 | fi |
| 42394 | failed=0 |
| 42395 | passed=0 |
| 42396 | if test "${ac_cv_header_libxml_parser_h+set}" = set; then |
| 42397 | { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5 |
| 42398 | $as_echo_n "checking for libxml/parser.h... " >&6; } |
| 42399 | if test "${ac_cv_header_libxml_parser_h+set}" = set; then |
| 42400 | $as_echo_n "(cached) " >&6 |
| 42401 | fi |
| 42402 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5 |
| 42403 | $as_echo "$ac_cv_header_libxml_parser_h" >&6; } |
| 42404 | else |
| 42405 | # Is the header compilable? |
| 42406 | { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5 |
| 42407 | $as_echo_n "checking libxml/parser.h usability... " >&6; } |
| 42408 | cat >conftest.$ac_ext <<_ACEOF |
| 42409 | /* confdefs.h. */ |
| 42410 | _ACEOF |
| 42411 | cat confdefs.h >>conftest.$ac_ext |
| 42412 | cat >>conftest.$ac_ext <<_ACEOF |
| 42413 | /* end confdefs.h. */ |
| 42414 | $ac_includes_default |
| 42415 | #include <libxml/parser.h> |
| 42416 | _ACEOF |
| 42417 | rm -f conftest.$ac_objext |
| 42418 | if { (ac_try="$ac_compile" |
| 42419 | case "(($ac_try" in |
| 42420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 42421 | *) ac_try_echo=$ac_try;; |
| 42422 | esac |
| 42423 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 42424 | $as_echo "$ac_try_echo") >&5 |
| 42425 | (eval "$ac_compile") 2>conftest.er1 |
| 42426 | ac_status=$? |
| 42427 | grep -v '^ *+' conftest.er1 >conftest.err |
| 42428 | rm -f conftest.er1 |
| 42429 | cat conftest.err >&5 |
| 42430 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 42431 | (exit $ac_status); } && { |
| 42432 | test -z "$ac_c_werror_flag" || |
| 42433 | test ! -s conftest.err |
| 42434 | } && test -s conftest.$ac_objext; then |
| 42435 | ac_header_compiler=yes |
| 42436 | else |
| 42437 | $as_echo "$as_me: failed program was:" >&5 |
| 42438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 42439 | |
| 42440 | ac_header_compiler=no |
| 42441 | fi |
| 42442 | |
| 42443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 42444 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 42445 | $as_echo "$ac_header_compiler" >&6; } |
| 42446 | |
| 42447 | # Is the header present? |
| 42448 | { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5 |
| 42449 | $as_echo_n "checking libxml/parser.h presence... " >&6; } |
| 42450 | cat >conftest.$ac_ext <<_ACEOF |
| 42451 | /* confdefs.h. */ |
| 42452 | _ACEOF |
| 42453 | cat confdefs.h >>conftest.$ac_ext |
| 42454 | cat >>conftest.$ac_ext <<_ACEOF |
| 42455 | /* end confdefs.h. */ |
| 42456 | #include <libxml/parser.h> |
| 42457 | _ACEOF |
| 42458 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 42459 | case "(($ac_try" in |
| 42460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 42461 | *) ac_try_echo=$ac_try;; |
| 42462 | esac |
| 42463 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 42464 | $as_echo "$ac_try_echo") >&5 |
| 42465 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 42466 | ac_status=$? |
| 42467 | grep -v '^ *+' conftest.er1 >conftest.err |
| 42468 | rm -f conftest.er1 |
| 42469 | cat conftest.err >&5 |
| 42470 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 42471 | (exit $ac_status); } >/dev/null && { |
| 42472 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 42473 | test ! -s conftest.err |
| 42474 | }; then |
| 42475 | ac_header_preproc=yes |
| 42476 | else |
| 42477 | $as_echo "$as_me: failed program was:" >&5 |
| 42478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 42479 | |
| 42480 | ac_header_preproc=no |
| 42481 | fi |
| 42482 | |
| 42483 | rm -f conftest.err conftest.$ac_ext |
| 42484 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 42485 | $as_echo "$ac_header_preproc" >&6; } |
| 42486 | |
| 42487 | # So? What about this header? |
| 42488 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 42489 | yes:no: ) |
| 42490 | { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 42491 | $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 42492 | { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5 |
| 42493 | $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;} |
| 42494 | ac_header_preproc=yes |
| 42495 | ;; |
| 42496 | no:yes:* ) |
| 42497 | { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5 |
| 42498 | $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;} |
| 42499 | { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5 |
| 42500 | $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;} |
| 42501 | { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5 |
| 42502 | $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;} |
| 42503 | { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 42504 | $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 42505 | { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5 |
| 42506 | $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;} |
| 42507 | { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5 |
| 42508 | $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;} |
| 42509 | ( cat <<\_ASBOX |
| 42510 | ## ----------------------------------------- ## |
| 42511 | ## Report this to http://www.imagemagick.org ## |
| 42512 | ## ----------------------------------------- ## |
| 42513 | _ASBOX |
| 42514 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 42515 | ;; |
| 42516 | esac |
| 42517 | { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5 |
| 42518 | $as_echo_n "checking for libxml/parser.h... " >&6; } |
| 42519 | if test "${ac_cv_header_libxml_parser_h+set}" = set; then |
| 42520 | $as_echo_n "(cached) " >&6 |
| 42521 | else |
| 42522 | ac_cv_header_libxml_parser_h=$ac_header_preproc |
| 42523 | fi |
| 42524 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5 |
| 42525 | $as_echo "$ac_cv_header_libxml_parser_h" >&6; } |
| 42526 | |
| 42527 | fi |
| 42528 | if test "x$ac_cv_header_libxml_parser_h" = x""yes; then |
| 42529 | passed=`expr $passed + 1` |
| 42530 | else |
| 42531 | failed=`expr $failed + 1` |
| 42532 | fi |
| 42533 | |
| 42534 | |
| 42535 | { $as_echo "$as_me:$LINENO: checking for xmlParseExternalEntity in -lxml2" >&5 |
| 42536 | $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; } |
| 42537 | if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then |
| 42538 | $as_echo_n "(cached) " >&6 |
| 42539 | else |
| 42540 | ac_check_lib_save_LIBS=$LIBS |
| 42541 | LIBS="-lxml2 $LIBS" |
| 42542 | cat >conftest.$ac_ext <<_ACEOF |
| 42543 | /* confdefs.h. */ |
| 42544 | _ACEOF |
| 42545 | cat confdefs.h >>conftest.$ac_ext |
| 42546 | cat >>conftest.$ac_ext <<_ACEOF |
| 42547 | /* end confdefs.h. */ |
| 42548 | |
| 42549 | /* Override any GCC internal prototype to avoid an error. |
| 42550 | Use char because int might match the return type of a GCC |
| 42551 | builtin and then its argument prototype would still apply. */ |
| 42552 | #ifdef __cplusplus |
| 42553 | extern "C" |
| 42554 | #endif |
| 42555 | char xmlParseExternalEntity (); |
| 42556 | int |
| 42557 | main () |
| 42558 | { |
| 42559 | return xmlParseExternalEntity (); |
| 42560 | ; |
| 42561 | return 0; |
| 42562 | } |
| 42563 | _ACEOF |
| 42564 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 42565 | if { (ac_try="$ac_link" |
| 42566 | case "(($ac_try" in |
| 42567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 42568 | *) ac_try_echo=$ac_try;; |
| 42569 | esac |
| 42570 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 42571 | $as_echo "$ac_try_echo") >&5 |
| 42572 | (eval "$ac_link") 2>conftest.er1 |
| 42573 | ac_status=$? |
| 42574 | grep -v '^ *+' conftest.er1 >conftest.err |
| 42575 | rm -f conftest.er1 |
| 42576 | cat conftest.err >&5 |
| 42577 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 42578 | (exit $ac_status); } && { |
| 42579 | test -z "$ac_c_werror_flag" || |
| 42580 | test ! -s conftest.err |
| 42581 | } && test -s conftest$ac_exeext && { |
| 42582 | test "$cross_compiling" = yes || |
| 42583 | $as_test_x conftest$ac_exeext |
| 42584 | }; then |
| 42585 | ac_cv_lib_xml2_xmlParseExternalEntity=yes |
| 42586 | else |
| 42587 | $as_echo "$as_me: failed program was:" >&5 |
| 42588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 42589 | |
| 42590 | ac_cv_lib_xml2_xmlParseExternalEntity=no |
| 42591 | fi |
| 42592 | |
| 42593 | rm -rf conftest.dSYM |
| 42594 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 42595 | conftest$ac_exeext conftest.$ac_ext |
| 42596 | LIBS=$ac_check_lib_save_LIBS |
| 42597 | fi |
| 42598 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5 |
| 42599 | $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; } |
| 42600 | if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then |
| 42601 | passed=`expr $passed + 1` |
| 42602 | else |
| 42603 | failed=`expr $failed + 1` |
| 42604 | fi |
| 42605 | |
| 42606 | { $as_echo "$as_me:$LINENO: checking if XML package is complete" >&5 |
| 42607 | $as_echo_n "checking if XML package is complete... " >&6; } |
| 42608 | if test $passed -gt 0; then |
| 42609 | if test $failed -gt 0; then |
| 42610 | { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5 |
| 42611 | $as_echo "no -- some components failed test" >&6; } |
| 42612 | have_xml='no (failed tests)' |
| 42613 | LDFLAGS="$PERSIST_LDFLAGS" |
| 42614 | CPPFLAGS="$PERSIST_CPPFLAGS" |
| 42615 | else |
| 42616 | XML_LIBS='-lxml2' |
| 42617 | LIBS="$XML_LIBS $LIBS" |
| 42618 | |
| 42619 | cat >>confdefs.h <<\_ACEOF |
| 42620 | #define XML_DELEGATE 1 |
| 42621 | _ACEOF |
| 42622 | |
| 42623 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 42624 | $as_echo "yes" >&6; } |
| 42625 | have_xml='yes' |
| 42626 | fi |
| 42627 | else |
| 42628 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 42629 | $as_echo "no" >&6; } |
| 42630 | fi |
| 42631 | fi |
| 42632 | if test "$have_xml" = 'yes'; then |
| 42633 | XML_DELEGATE_TRUE= |
| 42634 | XML_DELEGATE_FALSE='#' |
| 42635 | else |
| 42636 | XML_DELEGATE_TRUE='#' |
| 42637 | XML_DELEGATE_FALSE= |
| 42638 | fi |
| 42639 | |
| 42640 | |
| 42641 | |
| 42642 | |
| 42643 | # Substitute compiler name to build/link PerlMagick |
| 42644 | # |
| 42645 | |
| 42646 | |
| 42647 | # |
| 42648 | # Configure install Paths |
| 42649 | # |
| 42650 | |
| 42651 | # Subdirectory under lib to place ImageMagick lib files |
| 42652 | LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" |
| 42653 | |
| 42654 | cat >>confdefs.h <<_ACEOF |
| 42655 | #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH" |
| 42656 | _ACEOF |
| 42657 | |
| 42658 | |
| 42659 | # Path to ImageMagick bin directory |
| 42660 | EXECUTABLE_PATH="${BIN_DIR}" |
| 42661 | DEFINE_EXECUTABLE_PATH="${BIN_DIR}/" |
| 42662 | case "${build_os}" in |
| 42663 | mingw* ) |
| 42664 | DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1` |
| 42665 | ;; |
| 42666 | esac |
| 42667 | |
| 42668 | cat >>confdefs.h <<_ACEOF |
| 42669 | #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH" |
| 42670 | _ACEOF |
| 42671 | |
| 42672 | |
| 42673 | |
| 42674 | # Path to ImageMagick lib |
| 42675 | LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}" |
| 42676 | DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/" |
| 42677 | case "${build_os}" in |
| 42678 | mingw* ) |
| 42679 | DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1` |
| 42680 | ;; |
| 42681 | esac |
| 42682 | |
| 42683 | cat >>confdefs.h <<_ACEOF |
| 42684 | #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH" |
| 42685 | _ACEOF |
| 42686 | |
| 42687 | |
| 42688 | |
| 42689 | # Subdirectory under lib to place ImageMagick configuration files |
| 42690 | CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config" |
| 42691 | |
| 42692 | cat >>confdefs.h <<_ACEOF |
| 42693 | #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH" |
| 42694 | _ACEOF |
| 42695 | |
| 42696 | CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/" |
| 42697 | DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/" |
| 42698 | case "${build_os}" in |
| 42699 | mingw* ) |
| 42700 | DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1` |
| 42701 | ;; |
| 42702 | esac |
| 42703 | |
| 42704 | cat >>confdefs.h <<_ACEOF |
| 42705 | #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH" |
| 42706 | _ACEOF |
| 42707 | |
| 42708 | |
| 42709 | |
| 42710 | # |
| 42711 | # Subdirectory under lib to place ImageMagick coder module files |
| 42712 | CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders" |
| 42713 | |
| 42714 | cat >>confdefs.h <<_ACEOF |
| 42715 | #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH" |
| 42716 | _ACEOF |
| 42717 | |
| 42718 | CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}" |
| 42719 | DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/" |
| 42720 | case "${build_os}" in |
| 42721 | mingw* ) |
| 42722 | DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1` |
| 42723 | ;; |
| 42724 | esac |
| 42725 | |
| 42726 | cat >>confdefs.h <<_ACEOF |
| 42727 | #define CODER_PATH "$DEFINE_CODER_PATH" |
| 42728 | _ACEOF |
| 42729 | |
| 42730 | |
| 42731 | |
| 42732 | # |
| 42733 | # Subdirectory under lib to place ImageMagick filter module files |
| 42734 | FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters" |
| 42735 | |
| 42736 | cat >>confdefs.h <<_ACEOF |
| 42737 | #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH" |
| 42738 | _ACEOF |
| 42739 | |
| 42740 | FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}" |
| 42741 | DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/" |
| 42742 | case "${build_os}" in |
| 42743 | mingw* ) |
| 42744 | DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1` |
| 42745 | ;; |
| 42746 | esac |
| 42747 | |
| 42748 | cat >>confdefs.h <<_ACEOF |
| 42749 | #define FILTER_PATH "$DEFINE_FILTER_PATH" |
| 42750 | _ACEOF |
| 42751 | |
| 42752 | |
| 42753 | |
| 42754 | # |
| 42755 | # Path to ImageMagick documentation files |
| 42756 | DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" |
| 42757 | DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}" |
| 42758 | DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/" |
| 42759 | case "${build_os}" in |
| 42760 | mingw* ) |
| 42761 | DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1` |
| 42762 | ;; |
| 42763 | esac |
| 42764 | |
| 42765 | cat >>confdefs.h <<_ACEOF |
| 42766 | #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH" |
| 42767 | _ACEOF |
| 42768 | |
| 42769 | |
| 42770 | |
| 42771 | # |
| 42772 | # Path to ImageMagick share files |
| 42773 | SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" |
| 42774 | SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}" |
| 42775 | DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/" |
| 42776 | case "${build_os}" in |
| 42777 | mingw* ) |
| 42778 | DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1` |
| 42779 | ;; |
| 42780 | esac |
| 42781 | |
| 42782 | cat >>confdefs.h <<_ACEOF |
| 42783 | #define SHARE_PATH "$DEFINE_SHARE_PATH" |
| 42784 | _ACEOF |
| 42785 | |
| 42786 | |
| 42787 | |
| 42788 | # Subdirectory under share to place ImageMagick configuration files |
| 42789 | SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config" |
| 42790 | |
| 42791 | cat >>confdefs.h <<_ACEOF |
| 42792 | #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH" |
| 42793 | _ACEOF |
| 42794 | |
| 42795 | SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}" |
| 42796 | DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/" |
| 42797 | case "${build_os}" in |
| 42798 | mingw* ) |
| 42799 | DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1` |
| 42800 | ;; |
| 42801 | esac |
| 42802 | |
| 42803 | cat >>confdefs.h <<_ACEOF |
| 42804 | #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH" |
| 42805 | _ACEOF |
| 42806 | |
| 42807 | |
| 42808 | |
| 42809 | # |
| 42810 | # program_transform_name is formed for use in a Makefile, so create a |
| 42811 | # modified version for use in a shell script. |
| 42812 | configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'` |
| 42813 | |
| 42814 | # Default delegate definitions |
| 42815 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 42816 | $as_echo "-------------------------------------------------------------" >&6; } |
| 42817 | { $as_echo "$as_me:$LINENO: checking for ImageMagick delegate programs" >&5 |
| 42818 | $as_echo_n "checking for ImageMagick delegate programs... " >&6; } |
| 42819 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 42820 | $as_echo "" >&6; } |
| 42821 | AutotraceDecodeDelegateDefault='autotrace' |
| 42822 | AVIDecodeDelegateDefault='mplayer' |
| 42823 | BlenderDelegateDefault='blender' |
| 42824 | BZIPDelegateDefault='bzip2' |
| 42825 | BrowseDelegateDefault='xdg-open' |
| 42826 | CGMDecodeDelegateDefault='ralcgm' |
| 42827 | CatDelegateDefault='cat' |
| 42828 | DNGDecodeDelegateDefault='ufraw-batch' |
| 42829 | GVCDecodeDelegateDefault='dot' |
| 42830 | DVIDecodeDelegateDefault='dvips' |
| 42831 | EchoDelegateDefault='echo' |
| 42832 | EditorDelegateDefault='xterm' |
| 42833 | FIGDecodeDelegateDefault='fig2dev' |
| 42834 | ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}` |
| 42835 | DisplayDelegateDefault=`echo display | sed ${configure_transform_name}` |
| 42836 | MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}` |
| 42837 | GnuplotDecodeDelegateDefault='gnuplot' |
| 42838 | HDRDecodeDelegateDefault='ra_pfm' |
| 42839 | HPGLDecodeDelegateDefault='hp2xx' |
| 42840 | HTMLDecodeDelegateDefault='html2ps' |
| 42841 | ILBMDecodeDelegateDefault='ilbmtoppm' |
| 42842 | ILBMEncodeDelegateDefault='ppmtoilbm' |
| 42843 | LPDelegateDefault='lp' |
| 42844 | LPRDelegateDefault='lpr' |
| 42845 | LZWDecodeDelegateDefault='uncompress' |
| 42846 | LZWEncodeDelegateDefault='compress' |
| 42847 | LaunchDelegateDefault='gimp' |
| 42848 | MANDelegateDefault='groff' |
| 42849 | MPEGDecodeDelegateDefault='ffmpeg' |
| 42850 | MPEGEncodeDelegateDefault='ffmpeg' |
| 42851 | MVDelegateDefault='mv' |
| 42852 | PCLDelegateDefault='pcl6' |
| 42853 | PGPDecodeDelegateDefault='pgpv' |
| 42854 | POVDelegateDefault='povray' |
| 42855 | if test "$native_win32_build" = 'yes'; then |
| 42856 | PSDelegateDefault='gswin32c' |
| 42857 | elif test $framework -gt 0; then |
| 42858 | PSDelegateDefault='gsc' |
| 42859 | else |
| 42860 | PSDelegateDefault='gs' |
| 42861 | fi |
| 42862 | RLEEncodeDelegateDefault='rawtorle' |
| 42863 | RMDelegateDefault='rm' |
| 42864 | SCANDecodeDelegateDefault='scanimage' |
| 42865 | TXTDelegateDefault='enscript' |
| 42866 | WMFDecodeDelegateDefault='wmf2eps' |
| 42867 | WWWDecodeDelegateDefault='curl' |
| 42868 | XPSDelegateDefault='gxps' |
| 42869 | ZipDelegateDefault='gzip' |
| 42870 | |
| 42871 | # Search for delegates |
| 42872 | # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args. |
| 42873 | set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2 |
| 42874 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 42875 | $as_echo_n "checking for $ac_word... " >&6; } |
| 42876 | if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then |
| 42877 | $as_echo_n "(cached) " >&6 |
| 42878 | else |
| 42879 | case $AutotraceDecodeDelegate in |
| 42880 | [\\/]* | ?:[\\/]*) |
| 42881 | ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path. |
| 42882 | ;; |
| 42883 | *) |
| 42884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 42885 | for as_dir in $PATH |
| 42886 | do |
| 42887 | IFS=$as_save_IFS |
| 42888 | test -z "$as_dir" && as_dir=. |
| 42889 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 42890 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 42891 | ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 42892 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 42893 | break 2 |
| 42894 | fi |
| 42895 | done |
| 42896 | done |
| 42897 | IFS=$as_save_IFS |
| 42898 | |
| 42899 | test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault"" |
| 42900 | ;; |
| 42901 | esac |
| 42902 | fi |
| 42903 | AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate |
| 42904 | if test -n "$AutotraceDecodeDelegate"; then |
| 42905 | { $as_echo "$as_me:$LINENO: result: $AutotraceDecodeDelegate" >&5 |
| 42906 | $as_echo "$AutotraceDecodeDelegate" >&6; } |
| 42907 | else |
| 42908 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 42909 | $as_echo "no" >&6; } |
| 42910 | fi |
| 42911 | |
| 42912 | |
| 42913 | # Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args. |
| 42914 | set dummy "$AVIDecodeDelegateDefault"; ac_word=$2 |
| 42915 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 42916 | $as_echo_n "checking for $ac_word... " >&6; } |
| 42917 | if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then |
| 42918 | $as_echo_n "(cached) " >&6 |
| 42919 | else |
| 42920 | case $AVIDecodeDelegate in |
| 42921 | [\\/]* | ?:[\\/]*) |
| 42922 | ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path. |
| 42923 | ;; |
| 42924 | *) |
| 42925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 42926 | for as_dir in $PATH |
| 42927 | do |
| 42928 | IFS=$as_save_IFS |
| 42929 | test -z "$as_dir" && as_dir=. |
| 42930 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 42931 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 42932 | ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 42933 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 42934 | break 2 |
| 42935 | fi |
| 42936 | done |
| 42937 | done |
| 42938 | IFS=$as_save_IFS |
| 42939 | |
| 42940 | test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault"" |
| 42941 | ;; |
| 42942 | esac |
| 42943 | fi |
| 42944 | AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate |
| 42945 | if test -n "$AVIDecodeDelegate"; then |
| 42946 | { $as_echo "$as_me:$LINENO: result: $AVIDecodeDelegate" >&5 |
| 42947 | $as_echo "$AVIDecodeDelegate" >&6; } |
| 42948 | else |
| 42949 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 42950 | $as_echo "no" >&6; } |
| 42951 | fi |
| 42952 | |
| 42953 | |
| 42954 | # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args. |
| 42955 | set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2 |
| 42956 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 42957 | $as_echo_n "checking for $ac_word... " >&6; } |
| 42958 | if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then |
| 42959 | $as_echo_n "(cached) " >&6 |
| 42960 | else |
| 42961 | case $BlenderDecodeDelegate in |
| 42962 | [\\/]* | ?:[\\/]*) |
| 42963 | ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path. |
| 42964 | ;; |
| 42965 | *) |
| 42966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 42967 | for as_dir in $PATH |
| 42968 | do |
| 42969 | IFS=$as_save_IFS |
| 42970 | test -z "$as_dir" && as_dir=. |
| 42971 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 42972 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 42973 | ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 42974 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 42975 | break 2 |
| 42976 | fi |
| 42977 | done |
| 42978 | done |
| 42979 | IFS=$as_save_IFS |
| 42980 | |
| 42981 | test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault"" |
| 42982 | ;; |
| 42983 | esac |
| 42984 | fi |
| 42985 | BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate |
| 42986 | if test -n "$BlenderDecodeDelegate"; then |
| 42987 | { $as_echo "$as_me:$LINENO: result: $BlenderDecodeDelegate" >&5 |
| 42988 | $as_echo "$BlenderDecodeDelegate" >&6; } |
| 42989 | else |
| 42990 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 42991 | $as_echo "no" >&6; } |
| 42992 | fi |
| 42993 | |
| 42994 | |
| 42995 | # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args. |
| 42996 | set dummy "$BZIPDelegateDefault"; ac_word=$2 |
| 42997 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 42998 | $as_echo_n "checking for $ac_word... " >&6; } |
| 42999 | if test "${ac_cv_path_BZIPDelegate+set}" = set; then |
| 43000 | $as_echo_n "(cached) " >&6 |
| 43001 | else |
| 43002 | case $BZIPDelegate in |
| 43003 | [\\/]* | ?:[\\/]*) |
| 43004 | ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path. |
| 43005 | ;; |
| 43006 | *) |
| 43007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43008 | for as_dir in $PATH |
| 43009 | do |
| 43010 | IFS=$as_save_IFS |
| 43011 | test -z "$as_dir" && as_dir=. |
| 43012 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43013 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43014 | ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43015 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43016 | break 2 |
| 43017 | fi |
| 43018 | done |
| 43019 | done |
| 43020 | IFS=$as_save_IFS |
| 43021 | |
| 43022 | test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault"" |
| 43023 | ;; |
| 43024 | esac |
| 43025 | fi |
| 43026 | BZIPDelegate=$ac_cv_path_BZIPDelegate |
| 43027 | if test -n "$BZIPDelegate"; then |
| 43028 | { $as_echo "$as_me:$LINENO: result: $BZIPDelegate" >&5 |
| 43029 | $as_echo "$BZIPDelegate" >&6; } |
| 43030 | else |
| 43031 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43032 | $as_echo "no" >&6; } |
| 43033 | fi |
| 43034 | |
| 43035 | |
| 43036 | # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args. |
| 43037 | set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2 |
| 43038 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43039 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43040 | if test "${ac_cv_path_BrowseDelegate+set}" = set; then |
| 43041 | $as_echo_n "(cached) " >&6 |
| 43042 | else |
| 43043 | case $BrowseDelegate in |
| 43044 | [\\/]* | ?:[\\/]*) |
| 43045 | ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path. |
| 43046 | ;; |
| 43047 | *) |
| 43048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43049 | for as_dir in $PATH |
| 43050 | do |
| 43051 | IFS=$as_save_IFS |
| 43052 | test -z "$as_dir" && as_dir=. |
| 43053 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43054 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43055 | ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43056 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43057 | break 2 |
| 43058 | fi |
| 43059 | done |
| 43060 | done |
| 43061 | IFS=$as_save_IFS |
| 43062 | |
| 43063 | test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault"" |
| 43064 | ;; |
| 43065 | esac |
| 43066 | fi |
| 43067 | BrowseDelegate=$ac_cv_path_BrowseDelegate |
| 43068 | if test -n "$BrowseDelegate"; then |
| 43069 | { $as_echo "$as_me:$LINENO: result: $BrowseDelegate" >&5 |
| 43070 | $as_echo "$BrowseDelegate" >&6; } |
| 43071 | else |
| 43072 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43073 | $as_echo "no" >&6; } |
| 43074 | fi |
| 43075 | |
| 43076 | |
| 43077 | # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args. |
| 43078 | set dummy "$CGMDecodeDelegateDefault"; ac_word=$2 |
| 43079 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43080 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43081 | if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then |
| 43082 | $as_echo_n "(cached) " >&6 |
| 43083 | else |
| 43084 | case $CGMDecodeDelegate in |
| 43085 | [\\/]* | ?:[\\/]*) |
| 43086 | ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path. |
| 43087 | ;; |
| 43088 | *) |
| 43089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43090 | for as_dir in $PATH |
| 43091 | do |
| 43092 | IFS=$as_save_IFS |
| 43093 | test -z "$as_dir" && as_dir=. |
| 43094 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43095 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43096 | ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43097 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43098 | break 2 |
| 43099 | fi |
| 43100 | done |
| 43101 | done |
| 43102 | IFS=$as_save_IFS |
| 43103 | |
| 43104 | test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault"" |
| 43105 | ;; |
| 43106 | esac |
| 43107 | fi |
| 43108 | CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate |
| 43109 | if test -n "$CGMDecodeDelegate"; then |
| 43110 | { $as_echo "$as_me:$LINENO: result: $CGMDecodeDelegate" >&5 |
| 43111 | $as_echo "$CGMDecodeDelegate" >&6; } |
| 43112 | else |
| 43113 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43114 | $as_echo "no" >&6; } |
| 43115 | fi |
| 43116 | |
| 43117 | |
| 43118 | # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args. |
| 43119 | set dummy "$CatDelegateDefault"; ac_word=$2 |
| 43120 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43121 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43122 | if test "${ac_cv_path_CatDelegate+set}" = set; then |
| 43123 | $as_echo_n "(cached) " >&6 |
| 43124 | else |
| 43125 | case $CatDelegate in |
| 43126 | [\\/]* | ?:[\\/]*) |
| 43127 | ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path. |
| 43128 | ;; |
| 43129 | *) |
| 43130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43131 | for as_dir in $PATH |
| 43132 | do |
| 43133 | IFS=$as_save_IFS |
| 43134 | test -z "$as_dir" && as_dir=. |
| 43135 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43136 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43137 | ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43138 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43139 | break 2 |
| 43140 | fi |
| 43141 | done |
| 43142 | done |
| 43143 | IFS=$as_save_IFS |
| 43144 | |
| 43145 | test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault"" |
| 43146 | ;; |
| 43147 | esac |
| 43148 | fi |
| 43149 | CatDelegate=$ac_cv_path_CatDelegate |
| 43150 | if test -n "$CatDelegate"; then |
| 43151 | { $as_echo "$as_me:$LINENO: result: $CatDelegate" >&5 |
| 43152 | $as_echo "$CatDelegate" >&6; } |
| 43153 | else |
| 43154 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43155 | $as_echo "no" >&6; } |
| 43156 | fi |
| 43157 | |
| 43158 | |
| 43159 | # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args. |
| 43160 | set dummy "$DNGDecodeDelegateDefault"; ac_word=$2 |
| 43161 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43162 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43163 | if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then |
| 43164 | $as_echo_n "(cached) " >&6 |
| 43165 | else |
| 43166 | case $DNGDecodeDelegate in |
| 43167 | [\\/]* | ?:[\\/]*) |
| 43168 | ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path. |
| 43169 | ;; |
| 43170 | *) |
| 43171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43172 | for as_dir in $PATH |
| 43173 | do |
| 43174 | IFS=$as_save_IFS |
| 43175 | test -z "$as_dir" && as_dir=. |
| 43176 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43177 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43178 | ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43179 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43180 | break 2 |
| 43181 | fi |
| 43182 | done |
| 43183 | done |
| 43184 | IFS=$as_save_IFS |
| 43185 | |
| 43186 | test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault"" |
| 43187 | ;; |
| 43188 | esac |
| 43189 | fi |
| 43190 | DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate |
| 43191 | if test -n "$DNGDecodeDelegate"; then |
| 43192 | { $as_echo "$as_me:$LINENO: result: $DNGDecodeDelegate" >&5 |
| 43193 | $as_echo "$DNGDecodeDelegate" >&6; } |
| 43194 | else |
| 43195 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43196 | $as_echo "no" >&6; } |
| 43197 | fi |
| 43198 | |
| 43199 | |
| 43200 | # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args. |
| 43201 | set dummy "$GVCDecodeDelegateDefault"; ac_word=$2 |
| 43202 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43203 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43204 | if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then |
| 43205 | $as_echo_n "(cached) " >&6 |
| 43206 | else |
| 43207 | case $GVCDecodeDelegate in |
| 43208 | [\\/]* | ?:[\\/]*) |
| 43209 | ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path. |
| 43210 | ;; |
| 43211 | *) |
| 43212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43213 | for as_dir in $PATH |
| 43214 | do |
| 43215 | IFS=$as_save_IFS |
| 43216 | test -z "$as_dir" && as_dir=. |
| 43217 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43218 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43219 | ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43220 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43221 | break 2 |
| 43222 | fi |
| 43223 | done |
| 43224 | done |
| 43225 | IFS=$as_save_IFS |
| 43226 | |
| 43227 | test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault"" |
| 43228 | ;; |
| 43229 | esac |
| 43230 | fi |
| 43231 | GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate |
| 43232 | if test -n "$GVCDecodeDelegate"; then |
| 43233 | { $as_echo "$as_me:$LINENO: result: $GVCDecodeDelegate" >&5 |
| 43234 | $as_echo "$GVCDecodeDelegate" >&6; } |
| 43235 | else |
| 43236 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43237 | $as_echo "no" >&6; } |
| 43238 | fi |
| 43239 | |
| 43240 | |
| 43241 | # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args. |
| 43242 | set dummy "$DVIDecodeDelegateDefault"; ac_word=$2 |
| 43243 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43244 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43245 | if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then |
| 43246 | $as_echo_n "(cached) " >&6 |
| 43247 | else |
| 43248 | case $DVIDecodeDelegate in |
| 43249 | [\\/]* | ?:[\\/]*) |
| 43250 | ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path. |
| 43251 | ;; |
| 43252 | *) |
| 43253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43254 | for as_dir in $PATH |
| 43255 | do |
| 43256 | IFS=$as_save_IFS |
| 43257 | test -z "$as_dir" && as_dir=. |
| 43258 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43259 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43260 | ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43261 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43262 | break 2 |
| 43263 | fi |
| 43264 | done |
| 43265 | done |
| 43266 | IFS=$as_save_IFS |
| 43267 | |
| 43268 | test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault"" |
| 43269 | ;; |
| 43270 | esac |
| 43271 | fi |
| 43272 | DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate |
| 43273 | if test -n "$DVIDecodeDelegate"; then |
| 43274 | { $as_echo "$as_me:$LINENO: result: $DVIDecodeDelegate" >&5 |
| 43275 | $as_echo "$DVIDecodeDelegate" >&6; } |
| 43276 | else |
| 43277 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43278 | $as_echo "no" >&6; } |
| 43279 | fi |
| 43280 | |
| 43281 | |
| 43282 | # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args. |
| 43283 | set dummy "$EchoDelegateDefault"; ac_word=$2 |
| 43284 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43285 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43286 | if test "${ac_cv_path_EchoDelegate+set}" = set; then |
| 43287 | $as_echo_n "(cached) " >&6 |
| 43288 | else |
| 43289 | case $EchoDelegate in |
| 43290 | [\\/]* | ?:[\\/]*) |
| 43291 | ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path. |
| 43292 | ;; |
| 43293 | *) |
| 43294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43295 | for as_dir in $PATH |
| 43296 | do |
| 43297 | IFS=$as_save_IFS |
| 43298 | test -z "$as_dir" && as_dir=. |
| 43299 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43300 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43301 | ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43302 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43303 | break 2 |
| 43304 | fi |
| 43305 | done |
| 43306 | done |
| 43307 | IFS=$as_save_IFS |
| 43308 | |
| 43309 | test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault"" |
| 43310 | ;; |
| 43311 | esac |
| 43312 | fi |
| 43313 | EchoDelegate=$ac_cv_path_EchoDelegate |
| 43314 | if test -n "$EchoDelegate"; then |
| 43315 | { $as_echo "$as_me:$LINENO: result: $EchoDelegate" >&5 |
| 43316 | $as_echo "$EchoDelegate" >&6; } |
| 43317 | else |
| 43318 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43319 | $as_echo "no" >&6; } |
| 43320 | fi |
| 43321 | |
| 43322 | |
| 43323 | # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args. |
| 43324 | set dummy "$EditorDelegateDefault"; ac_word=$2 |
| 43325 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43326 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43327 | if test "${ac_cv_path_EditorDelegate+set}" = set; then |
| 43328 | $as_echo_n "(cached) " >&6 |
| 43329 | else |
| 43330 | case $EditorDelegate in |
| 43331 | [\\/]* | ?:[\\/]*) |
| 43332 | ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path. |
| 43333 | ;; |
| 43334 | *) |
| 43335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43336 | for as_dir in $PATH |
| 43337 | do |
| 43338 | IFS=$as_save_IFS |
| 43339 | test -z "$as_dir" && as_dir=. |
| 43340 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43341 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43342 | ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43343 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43344 | break 2 |
| 43345 | fi |
| 43346 | done |
| 43347 | done |
| 43348 | IFS=$as_save_IFS |
| 43349 | |
| 43350 | test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault"" |
| 43351 | ;; |
| 43352 | esac |
| 43353 | fi |
| 43354 | EditorDelegate=$ac_cv_path_EditorDelegate |
| 43355 | if test -n "$EditorDelegate"; then |
| 43356 | { $as_echo "$as_me:$LINENO: result: $EditorDelegate" >&5 |
| 43357 | $as_echo "$EditorDelegate" >&6; } |
| 43358 | else |
| 43359 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43360 | $as_echo "no" >&6; } |
| 43361 | fi |
| 43362 | |
| 43363 | |
| 43364 | # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args. |
| 43365 | set dummy "$FIGDecodeDelegateDefault"; ac_word=$2 |
| 43366 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43367 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43368 | if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then |
| 43369 | $as_echo_n "(cached) " >&6 |
| 43370 | else |
| 43371 | case $FIGDecodeDelegate in |
| 43372 | [\\/]* | ?:[\\/]*) |
| 43373 | ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path. |
| 43374 | ;; |
| 43375 | *) |
| 43376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43377 | for as_dir in $PATH |
| 43378 | do |
| 43379 | IFS=$as_save_IFS |
| 43380 | test -z "$as_dir" && as_dir=. |
| 43381 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43382 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43383 | ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43384 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43385 | break 2 |
| 43386 | fi |
| 43387 | done |
| 43388 | done |
| 43389 | IFS=$as_save_IFS |
| 43390 | |
| 43391 | test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault"" |
| 43392 | ;; |
| 43393 | esac |
| 43394 | fi |
| 43395 | FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate |
| 43396 | if test -n "$FIGDecodeDelegate"; then |
| 43397 | { $as_echo "$as_me:$LINENO: result: $FIGDecodeDelegate" >&5 |
| 43398 | $as_echo "$FIGDecodeDelegate" >&6; } |
| 43399 | else |
| 43400 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43401 | $as_echo "no" >&6; } |
| 43402 | fi |
| 43403 | |
| 43404 | |
| 43405 | # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args. |
| 43406 | set dummy "$ConvertDelegateDefault"; ac_word=$2 |
| 43407 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43408 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43409 | if test "${ac_cv_path_ConvertDelegate+set}" = set; then |
| 43410 | $as_echo_n "(cached) " >&6 |
| 43411 | else |
| 43412 | case $ConvertDelegate in |
| 43413 | [\\/]* | ?:[\\/]*) |
| 43414 | ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path. |
| 43415 | ;; |
| 43416 | *) |
| 43417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43418 | for as_dir in $PATH |
| 43419 | do |
| 43420 | IFS=$as_save_IFS |
| 43421 | test -z "$as_dir" && as_dir=. |
| 43422 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43423 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43424 | ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43425 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43426 | break 2 |
| 43427 | fi |
| 43428 | done |
| 43429 | done |
| 43430 | IFS=$as_save_IFS |
| 43431 | |
| 43432 | test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault"" |
| 43433 | ;; |
| 43434 | esac |
| 43435 | fi |
| 43436 | ConvertDelegate=$ac_cv_path_ConvertDelegate |
| 43437 | if test -n "$ConvertDelegate"; then |
| 43438 | { $as_echo "$as_me:$LINENO: result: $ConvertDelegate" >&5 |
| 43439 | $as_echo "$ConvertDelegate" >&6; } |
| 43440 | else |
| 43441 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43442 | $as_echo "no" >&6; } |
| 43443 | fi |
| 43444 | |
| 43445 | |
| 43446 | # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args. |
| 43447 | set dummy "$DisplayDelegateDefault"; ac_word=$2 |
| 43448 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43449 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43450 | if test "${ac_cv_path_DisplayDelegate+set}" = set; then |
| 43451 | $as_echo_n "(cached) " >&6 |
| 43452 | else |
| 43453 | case $DisplayDelegate in |
| 43454 | [\\/]* | ?:[\\/]*) |
| 43455 | ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path. |
| 43456 | ;; |
| 43457 | *) |
| 43458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43459 | for as_dir in $PATH |
| 43460 | do |
| 43461 | IFS=$as_save_IFS |
| 43462 | test -z "$as_dir" && as_dir=. |
| 43463 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43464 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43465 | ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43466 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43467 | break 2 |
| 43468 | fi |
| 43469 | done |
| 43470 | done |
| 43471 | IFS=$as_save_IFS |
| 43472 | |
| 43473 | test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault"" |
| 43474 | ;; |
| 43475 | esac |
| 43476 | fi |
| 43477 | DisplayDelegate=$ac_cv_path_DisplayDelegate |
| 43478 | if test -n "$DisplayDelegate"; then |
| 43479 | { $as_echo "$as_me:$LINENO: result: $DisplayDelegate" >&5 |
| 43480 | $as_echo "$DisplayDelegate" >&6; } |
| 43481 | else |
| 43482 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43483 | $as_echo "no" >&6; } |
| 43484 | fi |
| 43485 | |
| 43486 | |
| 43487 | # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args. |
| 43488 | set dummy "$MogrifyDelegateDefault"; ac_word=$2 |
| 43489 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43490 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43491 | if test "${ac_cv_path_MogrifyDelegate+set}" = set; then |
| 43492 | $as_echo_n "(cached) " >&6 |
| 43493 | else |
| 43494 | case $MogrifyDelegate in |
| 43495 | [\\/]* | ?:[\\/]*) |
| 43496 | ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path. |
| 43497 | ;; |
| 43498 | *) |
| 43499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43500 | for as_dir in $PATH |
| 43501 | do |
| 43502 | IFS=$as_save_IFS |
| 43503 | test -z "$as_dir" && as_dir=. |
| 43504 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43505 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43506 | ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43507 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43508 | break 2 |
| 43509 | fi |
| 43510 | done |
| 43511 | done |
| 43512 | IFS=$as_save_IFS |
| 43513 | |
| 43514 | test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault"" |
| 43515 | ;; |
| 43516 | esac |
| 43517 | fi |
| 43518 | MogrifyDelegate=$ac_cv_path_MogrifyDelegate |
| 43519 | if test -n "$MogrifyDelegate"; then |
| 43520 | { $as_echo "$as_me:$LINENO: result: $MogrifyDelegate" >&5 |
| 43521 | $as_echo "$MogrifyDelegate" >&6; } |
| 43522 | else |
| 43523 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43524 | $as_echo "no" >&6; } |
| 43525 | fi |
| 43526 | |
| 43527 | |
| 43528 | # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args. |
| 43529 | set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2 |
| 43530 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43531 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43532 | if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then |
| 43533 | $as_echo_n "(cached) " >&6 |
| 43534 | else |
| 43535 | case $GnuplotDecodeDelegate in |
| 43536 | [\\/]* | ?:[\\/]*) |
| 43537 | ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path. |
| 43538 | ;; |
| 43539 | *) |
| 43540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43541 | for as_dir in $PATH |
| 43542 | do |
| 43543 | IFS=$as_save_IFS |
| 43544 | test -z "$as_dir" && as_dir=. |
| 43545 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43546 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43547 | ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43548 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43549 | break 2 |
| 43550 | fi |
| 43551 | done |
| 43552 | done |
| 43553 | IFS=$as_save_IFS |
| 43554 | |
| 43555 | test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault"" |
| 43556 | ;; |
| 43557 | esac |
| 43558 | fi |
| 43559 | GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate |
| 43560 | if test -n "$GnuplotDecodeDelegate"; then |
| 43561 | { $as_echo "$as_me:$LINENO: result: $GnuplotDecodeDelegate" >&5 |
| 43562 | $as_echo "$GnuplotDecodeDelegate" >&6; } |
| 43563 | else |
| 43564 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43565 | $as_echo "no" >&6; } |
| 43566 | fi |
| 43567 | |
| 43568 | |
| 43569 | # Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args. |
| 43570 | set dummy "$HDRDecodeDelegateDefault"; ac_word=$2 |
| 43571 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43572 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43573 | if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then |
| 43574 | $as_echo_n "(cached) " >&6 |
| 43575 | else |
| 43576 | case $HDRDecodeDelegate in |
| 43577 | [\\/]* | ?:[\\/]*) |
| 43578 | ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path. |
| 43579 | ;; |
| 43580 | *) |
| 43581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43582 | for as_dir in $PATH |
| 43583 | do |
| 43584 | IFS=$as_save_IFS |
| 43585 | test -z "$as_dir" && as_dir=. |
| 43586 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43587 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43588 | ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43589 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43590 | break 2 |
| 43591 | fi |
| 43592 | done |
| 43593 | done |
| 43594 | IFS=$as_save_IFS |
| 43595 | |
| 43596 | test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault"" |
| 43597 | ;; |
| 43598 | esac |
| 43599 | fi |
| 43600 | HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate |
| 43601 | if test -n "$HDRDecodeDelegate"; then |
| 43602 | { $as_echo "$as_me:$LINENO: result: $HDRDecodeDelegate" >&5 |
| 43603 | $as_echo "$HDRDecodeDelegate" >&6; } |
| 43604 | else |
| 43605 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43606 | $as_echo "no" >&6; } |
| 43607 | fi |
| 43608 | |
| 43609 | |
| 43610 | # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args. |
| 43611 | set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2 |
| 43612 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43613 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43614 | if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then |
| 43615 | $as_echo_n "(cached) " >&6 |
| 43616 | else |
| 43617 | case $HPGLDecodeDelegate in |
| 43618 | [\\/]* | ?:[\\/]*) |
| 43619 | ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path. |
| 43620 | ;; |
| 43621 | *) |
| 43622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43623 | for as_dir in $PATH |
| 43624 | do |
| 43625 | IFS=$as_save_IFS |
| 43626 | test -z "$as_dir" && as_dir=. |
| 43627 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43628 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43629 | ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43630 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43631 | break 2 |
| 43632 | fi |
| 43633 | done |
| 43634 | done |
| 43635 | IFS=$as_save_IFS |
| 43636 | |
| 43637 | test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault"" |
| 43638 | ;; |
| 43639 | esac |
| 43640 | fi |
| 43641 | HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate |
| 43642 | if test -n "$HPGLDecodeDelegate"; then |
| 43643 | { $as_echo "$as_me:$LINENO: result: $HPGLDecodeDelegate" >&5 |
| 43644 | $as_echo "$HPGLDecodeDelegate" >&6; } |
| 43645 | else |
| 43646 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43647 | $as_echo "no" >&6; } |
| 43648 | fi |
| 43649 | |
| 43650 | |
| 43651 | # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args. |
| 43652 | set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2 |
| 43653 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43654 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43655 | if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then |
| 43656 | $as_echo_n "(cached) " >&6 |
| 43657 | else |
| 43658 | case $HTMLDecodeDelegate in |
| 43659 | [\\/]* | ?:[\\/]*) |
| 43660 | ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path. |
| 43661 | ;; |
| 43662 | *) |
| 43663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43664 | for as_dir in $PATH |
| 43665 | do |
| 43666 | IFS=$as_save_IFS |
| 43667 | test -z "$as_dir" && as_dir=. |
| 43668 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43669 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43670 | ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43671 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43672 | break 2 |
| 43673 | fi |
| 43674 | done |
| 43675 | done |
| 43676 | IFS=$as_save_IFS |
| 43677 | |
| 43678 | test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault"" |
| 43679 | ;; |
| 43680 | esac |
| 43681 | fi |
| 43682 | HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate |
| 43683 | if test -n "$HTMLDecodeDelegate"; then |
| 43684 | { $as_echo "$as_me:$LINENO: result: $HTMLDecodeDelegate" >&5 |
| 43685 | $as_echo "$HTMLDecodeDelegate" >&6; } |
| 43686 | else |
| 43687 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43688 | $as_echo "no" >&6; } |
| 43689 | fi |
| 43690 | |
| 43691 | |
| 43692 | # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args. |
| 43693 | set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2 |
| 43694 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43695 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43696 | if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then |
| 43697 | $as_echo_n "(cached) " >&6 |
| 43698 | else |
| 43699 | case $ILBMDecodeDelegate in |
| 43700 | [\\/]* | ?:[\\/]*) |
| 43701 | ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path. |
| 43702 | ;; |
| 43703 | *) |
| 43704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43705 | for as_dir in $PATH |
| 43706 | do |
| 43707 | IFS=$as_save_IFS |
| 43708 | test -z "$as_dir" && as_dir=. |
| 43709 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43710 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43711 | ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43712 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43713 | break 2 |
| 43714 | fi |
| 43715 | done |
| 43716 | done |
| 43717 | IFS=$as_save_IFS |
| 43718 | |
| 43719 | test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault"" |
| 43720 | ;; |
| 43721 | esac |
| 43722 | fi |
| 43723 | ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate |
| 43724 | if test -n "$ILBMDecodeDelegate"; then |
| 43725 | { $as_echo "$as_me:$LINENO: result: $ILBMDecodeDelegate" >&5 |
| 43726 | $as_echo "$ILBMDecodeDelegate" >&6; } |
| 43727 | else |
| 43728 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43729 | $as_echo "no" >&6; } |
| 43730 | fi |
| 43731 | |
| 43732 | |
| 43733 | # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args. |
| 43734 | set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2 |
| 43735 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43736 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43737 | if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then |
| 43738 | $as_echo_n "(cached) " >&6 |
| 43739 | else |
| 43740 | case $ILBMEncodeDelegate in |
| 43741 | [\\/]* | ?:[\\/]*) |
| 43742 | ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path. |
| 43743 | ;; |
| 43744 | *) |
| 43745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43746 | for as_dir in $PATH |
| 43747 | do |
| 43748 | IFS=$as_save_IFS |
| 43749 | test -z "$as_dir" && as_dir=. |
| 43750 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43751 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43752 | ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43753 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43754 | break 2 |
| 43755 | fi |
| 43756 | done |
| 43757 | done |
| 43758 | IFS=$as_save_IFS |
| 43759 | |
| 43760 | test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault"" |
| 43761 | ;; |
| 43762 | esac |
| 43763 | fi |
| 43764 | ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate |
| 43765 | if test -n "$ILBMEncodeDelegate"; then |
| 43766 | { $as_echo "$as_me:$LINENO: result: $ILBMEncodeDelegate" >&5 |
| 43767 | $as_echo "$ILBMEncodeDelegate" >&6; } |
| 43768 | else |
| 43769 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43770 | $as_echo "no" >&6; } |
| 43771 | fi |
| 43772 | |
| 43773 | |
| 43774 | # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args. |
| 43775 | set dummy "$LPDelegateDefault"; ac_word=$2 |
| 43776 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43777 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43778 | if test "${ac_cv_path_LPDelegate+set}" = set; then |
| 43779 | $as_echo_n "(cached) " >&6 |
| 43780 | else |
| 43781 | case $LPDelegate in |
| 43782 | [\\/]* | ?:[\\/]*) |
| 43783 | ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path. |
| 43784 | ;; |
| 43785 | *) |
| 43786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43787 | for as_dir in $PATH |
| 43788 | do |
| 43789 | IFS=$as_save_IFS |
| 43790 | test -z "$as_dir" && as_dir=. |
| 43791 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43792 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43793 | ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43794 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43795 | break 2 |
| 43796 | fi |
| 43797 | done |
| 43798 | done |
| 43799 | IFS=$as_save_IFS |
| 43800 | |
| 43801 | test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no" |
| 43802 | ;; |
| 43803 | esac |
| 43804 | fi |
| 43805 | LPDelegate=$ac_cv_path_LPDelegate |
| 43806 | if test -n "$LPDelegate"; then |
| 43807 | { $as_echo "$as_me:$LINENO: result: $LPDelegate" >&5 |
| 43808 | $as_echo "$LPDelegate" >&6; } |
| 43809 | else |
| 43810 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43811 | $as_echo "no" >&6; } |
| 43812 | fi |
| 43813 | |
| 43814 | |
| 43815 | # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args. |
| 43816 | set dummy "$LPRDelegateDefault"; ac_word=$2 |
| 43817 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43818 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43819 | if test "${ac_cv_path_LPRDelegate+set}" = set; then |
| 43820 | $as_echo_n "(cached) " >&6 |
| 43821 | else |
| 43822 | case $LPRDelegate in |
| 43823 | [\\/]* | ?:[\\/]*) |
| 43824 | ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path. |
| 43825 | ;; |
| 43826 | *) |
| 43827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43828 | for as_dir in $PATH |
| 43829 | do |
| 43830 | IFS=$as_save_IFS |
| 43831 | test -z "$as_dir" && as_dir=. |
| 43832 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43833 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43834 | ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43835 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43836 | break 2 |
| 43837 | fi |
| 43838 | done |
| 43839 | done |
| 43840 | IFS=$as_save_IFS |
| 43841 | |
| 43842 | test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault"" |
| 43843 | ;; |
| 43844 | esac |
| 43845 | fi |
| 43846 | LPRDelegate=$ac_cv_path_LPRDelegate |
| 43847 | if test -n "$LPRDelegate"; then |
| 43848 | { $as_echo "$as_me:$LINENO: result: $LPRDelegate" >&5 |
| 43849 | $as_echo "$LPRDelegate" >&6; } |
| 43850 | else |
| 43851 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43852 | $as_echo "no" >&6; } |
| 43853 | fi |
| 43854 | |
| 43855 | |
| 43856 | # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args. |
| 43857 | set dummy "$LZWDecodeDelegateDefault"; ac_word=$2 |
| 43858 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43859 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43860 | if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then |
| 43861 | $as_echo_n "(cached) " >&6 |
| 43862 | else |
| 43863 | case $LZWDecodeDelegate in |
| 43864 | [\\/]* | ?:[\\/]*) |
| 43865 | ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path. |
| 43866 | ;; |
| 43867 | *) |
| 43868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43869 | for as_dir in $PATH |
| 43870 | do |
| 43871 | IFS=$as_save_IFS |
| 43872 | test -z "$as_dir" && as_dir=. |
| 43873 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43874 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43875 | ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43876 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43877 | break 2 |
| 43878 | fi |
| 43879 | done |
| 43880 | done |
| 43881 | IFS=$as_save_IFS |
| 43882 | |
| 43883 | test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault"" |
| 43884 | ;; |
| 43885 | esac |
| 43886 | fi |
| 43887 | LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate |
| 43888 | if test -n "$LZWDecodeDelegate"; then |
| 43889 | { $as_echo "$as_me:$LINENO: result: $LZWDecodeDelegate" >&5 |
| 43890 | $as_echo "$LZWDecodeDelegate" >&6; } |
| 43891 | else |
| 43892 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43893 | $as_echo "no" >&6; } |
| 43894 | fi |
| 43895 | |
| 43896 | |
| 43897 | # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args. |
| 43898 | set dummy "$LZWEncodeDelegateDefault"; ac_word=$2 |
| 43899 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43900 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43901 | if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then |
| 43902 | $as_echo_n "(cached) " >&6 |
| 43903 | else |
| 43904 | case $LZWEncodeDelegate in |
| 43905 | [\\/]* | ?:[\\/]*) |
| 43906 | ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path. |
| 43907 | ;; |
| 43908 | *) |
| 43909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43910 | for as_dir in $PATH |
| 43911 | do |
| 43912 | IFS=$as_save_IFS |
| 43913 | test -z "$as_dir" && as_dir=. |
| 43914 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43915 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43916 | ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43917 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43918 | break 2 |
| 43919 | fi |
| 43920 | done |
| 43921 | done |
| 43922 | IFS=$as_save_IFS |
| 43923 | |
| 43924 | test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault"" |
| 43925 | ;; |
| 43926 | esac |
| 43927 | fi |
| 43928 | LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate |
| 43929 | if test -n "$LZWEncodeDelegate"; then |
| 43930 | { $as_echo "$as_me:$LINENO: result: $LZWEncodeDelegate" >&5 |
| 43931 | $as_echo "$LZWEncodeDelegate" >&6; } |
| 43932 | else |
| 43933 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43934 | $as_echo "no" >&6; } |
| 43935 | fi |
| 43936 | |
| 43937 | |
| 43938 | # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args. |
| 43939 | set dummy "$LaunchDelegateDefault"; ac_word=$2 |
| 43940 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43941 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43942 | if test "${ac_cv_path_LaunchDelegate+set}" = set; then |
| 43943 | $as_echo_n "(cached) " >&6 |
| 43944 | else |
| 43945 | case $LaunchDelegate in |
| 43946 | [\\/]* | ?:[\\/]*) |
| 43947 | ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path. |
| 43948 | ;; |
| 43949 | *) |
| 43950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43951 | for as_dir in $PATH |
| 43952 | do |
| 43953 | IFS=$as_save_IFS |
| 43954 | test -z "$as_dir" && as_dir=. |
| 43955 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43956 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43957 | ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43958 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 43959 | break 2 |
| 43960 | fi |
| 43961 | done |
| 43962 | done |
| 43963 | IFS=$as_save_IFS |
| 43964 | |
| 43965 | test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault"" |
| 43966 | ;; |
| 43967 | esac |
| 43968 | fi |
| 43969 | LaunchDelegate=$ac_cv_path_LaunchDelegate |
| 43970 | if test -n "$LaunchDelegate"; then |
| 43971 | { $as_echo "$as_me:$LINENO: result: $LaunchDelegate" >&5 |
| 43972 | $as_echo "$LaunchDelegate" >&6; } |
| 43973 | else |
| 43974 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 43975 | $as_echo "no" >&6; } |
| 43976 | fi |
| 43977 | |
| 43978 | |
| 43979 | # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args. |
| 43980 | set dummy "$MANDelegateDefault"; ac_word=$2 |
| 43981 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 43982 | $as_echo_n "checking for $ac_word... " >&6; } |
| 43983 | if test "${ac_cv_path_MANDelegate+set}" = set; then |
| 43984 | $as_echo_n "(cached) " >&6 |
| 43985 | else |
| 43986 | case $MANDelegate in |
| 43987 | [\\/]* | ?:[\\/]*) |
| 43988 | ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path. |
| 43989 | ;; |
| 43990 | *) |
| 43991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43992 | for as_dir in $PATH |
| 43993 | do |
| 43994 | IFS=$as_save_IFS |
| 43995 | test -z "$as_dir" && as_dir=. |
| 43996 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 43997 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 43998 | ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 43999 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 44000 | break 2 |
| 44001 | fi |
| 44002 | done |
| 44003 | done |
| 44004 | IFS=$as_save_IFS |
| 44005 | |
| 44006 | test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault"" |
| 44007 | ;; |
| 44008 | esac |
| 44009 | fi |
| 44010 | MANDelegate=$ac_cv_path_MANDelegate |
| 44011 | if test -n "$MANDelegate"; then |
| 44012 | { $as_echo "$as_me:$LINENO: result: $MANDelegate" >&5 |
| 44013 | $as_echo "$MANDelegate" >&6; } |
| 44014 | else |
| 44015 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 44016 | $as_echo "no" >&6; } |
| 44017 | fi |
| 44018 | |
| 44019 | |
| 44020 | # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args. |
| 44021 | set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2 |
| 44022 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 44023 | $as_echo_n "checking for $ac_word... " >&6; } |
| 44024 | if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then |
| 44025 | $as_echo_n "(cached) " >&6 |
| 44026 | else |
| 44027 | case $MPEGDecodeDelegate in |
| 44028 | [\\/]* | ?:[\\/]*) |
| 44029 | ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path. |
| 44030 | ;; |
| 44031 | *) |
| 44032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 44033 | for as_dir in $PATH |
| 44034 | do |
| 44035 | IFS=$as_save_IFS |
| 44036 | test -z "$as_dir" && as_dir=. |
| 44037 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 44038 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 44039 | ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 44040 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 44041 | break 2 |
| 44042 | fi |
| 44043 | done |
| 44044 | done |
| 44045 | IFS=$as_save_IFS |
| 44046 | |
| 44047 | test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault"" |
| 44048 | ;; |
| 44049 | esac |
| 44050 | fi |
| 44051 | MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate |
| 44052 | if test -n "$MPEGDecodeDelegate"; then |
| 44053 | { $as_echo "$as_me:$LINENO: result: $MPEGDecodeDelegate" >&5 |
| 44054 | $as_echo "$MPEGDecodeDelegate" >&6; } |
| 44055 | else |
| 44056 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 44057 | $as_echo "no" >&6; } |
| 44058 | fi |
| 44059 | |
| 44060 | |
| 44061 | # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args. |
| 44062 | set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2 |
| 44063 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 44064 | $as_echo_n "checking for $ac_word... " >&6; } |
| 44065 | if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then |
| 44066 | $as_echo_n "(cached) " >&6 |
| 44067 | else |
| 44068 | case $MPEGEncodeDelegate in |
| 44069 | [\\/]* | ?:[\\/]*) |
| 44070 | ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path. |
| 44071 | ;; |
| 44072 | *) |
| 44073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 44074 | for as_dir in $PATH |
| 44075 | do |
| 44076 | IFS=$as_save_IFS |
| 44077 | test -z "$as_dir" && as_dir=. |
| 44078 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 44079 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 44080 | ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 44081 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 44082 | break 2 |
| 44083 | fi |
| 44084 | done |
| 44085 | done |
| 44086 | IFS=$as_save_IFS |
| 44087 | |
| 44088 | test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault"" |
| 44089 | ;; |
| 44090 | esac |
| 44091 | fi |
| 44092 | MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate |
| 44093 | if test -n "$MPEGEncodeDelegate"; then |
| 44094 | { $as_echo "$as_me:$LINENO: result: $MPEGEncodeDelegate" >&5 |
| 44095 | $as_echo "$MPEGEncodeDelegate" >&6; } |
| 44096 | else |
| 44097 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 44098 | $as_echo "no" >&6; } |
| 44099 | fi |
| 44100 | |
| 44101 | |
| 44102 | # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args. |
| 44103 | set dummy "$MVDelegateDefault"; ac_word=$2 |
| 44104 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 44105 | $as_echo_n "checking for $ac_word... " >&6; } |
| 44106 | if test "${ac_cv_path_MVDelegate+set}" = set; then |
| 44107 | $as_echo_n "(cached) " >&6 |
| 44108 | else |
| 44109 | case $MVDelegate in |
| 44110 | [\\/]* | ?:[\\/]*) |
| 44111 | ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path. |
| 44112 | ;; |
| 44113 | *) |
| 44114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 44115 | for as_dir in $PATH |
| 44116 | do |
| 44117 | IFS=$as_save_IFS |
| 44118 | test -z "$as_dir" && as_dir=. |
| 44119 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 44120 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 44121 | ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 44122 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 44123 | break 2 |
| 44124 | fi |
| 44125 | done |
| 44126 | done |
| 44127 | IFS=$as_save_IFS |
| 44128 | |
| 44129 | test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault"" |
| 44130 | ;; |
| 44131 | esac |
| 44132 | fi |
| 44133 | MVDelegate=$ac_cv_path_MVDelegate |
| 44134 | if test -n "$MVDelegate"; then |
| 44135 | { $as_echo "$as_me:$LINENO: result: $MVDelegate" >&5 |
| 44136 | $as_echo "$MVDelegate" >&6; } |
| 44137 | else |
| 44138 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 44139 | $as_echo "no" >&6; } |
| 44140 | fi |
| 44141 | |
| 44142 | |
| 44143 | # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args. |
| 44144 | set dummy "$PCLDelegateDefault"; ac_word=$2 |
| 44145 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 44146 | $as_echo_n "checking for $ac_word... " >&6; } |
| 44147 | if test "${ac_cv_path_PCLDelegate+set}" = set; then |
| 44148 | $as_echo_n "(cached) " >&6 |
| 44149 | else |
| 44150 | case $PCLDelegate in |
| 44151 | [\\/]* | ?:[\\/]*) |
| 44152 | ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path. |
| 44153 | ;; |
| 44154 | *) |
| 44155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 44156 | for as_dir in $PATH |
| 44157 | do |
| 44158 | IFS=$as_save_IFS |
| 44159 | test -z "$as_dir" && as_dir=. |
| 44160 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 44161 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 44162 | ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 44163 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 44164 | break 2 |
| 44165 | fi |
| 44166 | done |
| 44167 | done |
| 44168 | IFS=$as_save_IFS |
| 44169 | |
| 44170 | test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault"" |
| 44171 | ;; |
| 44172 | esac |
| 44173 | fi |
| 44174 | PCLDelegate=$ac_cv_path_PCLDelegate |
| 44175 | if test -n "$PCLDelegate"; then |
| 44176 | { $as_echo "$as_me:$LINENO: result: $PCLDelegate" >&5 |
| 44177 | $as_echo "$PCLDelegate" >&6; } |
| 44178 | else |
| 44179 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 44180 | $as_echo "no" >&6; } |
| 44181 | fi |
| 44182 | |
| 44183 | |
| 44184 | # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args. |
| 44185 | set dummy "$PGPDecodeDelegateDefault"; ac_word=$2 |
| 44186 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 44187 | $as_echo_n "checking for $ac_word... " >&6; } |
| 44188 | if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then |
| 44189 | $as_echo_n "(cached) " >&6 |
| 44190 | else |
| 44191 | case $PGPDecodeDelegate in |
| 44192 | [\\/]* | ?:[\\/]*) |
| 44193 | ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path. |
| 44194 | ;; |
| 44195 | *) |
| 44196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 44197 | for as_dir in $PATH |
| 44198 | do |
| 44199 | IFS=$as_save_IFS |
| 44200 | test -z "$as_dir" && as_dir=. |
| 44201 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 44202 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 44203 | ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 44204 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 44205 | break 2 |
| 44206 | fi |
| 44207 | done |
| 44208 | done |
| 44209 | IFS=$as_save_IFS |
| 44210 | |
| 44211 | test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault"" |
| 44212 | ;; |
| 44213 | esac |
| 44214 | fi |
| 44215 | PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate |
| 44216 | if test -n "$PGPDecodeDelegate"; then |
| 44217 | { $as_echo "$as_me:$LINENO: result: $PGPDecodeDelegate" >&5 |
| 44218 | $as_echo "$PGPDecodeDelegate" >&6; } |
| 44219 | else |
| 44220 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 44221 | $as_echo "no" >&6; } |
| 44222 | fi |
| 44223 | |
| 44224 | |
| 44225 | # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args. |
| 44226 | set dummy "$POVDelegateDefault"; ac_word=$2 |
| 44227 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 44228 | $as_echo_n "checking for $ac_word... " >&6; } |
| 44229 | if test "${ac_cv_path_POVDelegate+set}" = set; then |
| 44230 | $as_echo_n "(cached) " >&6 |
| 44231 | else |
| 44232 | case $POVDelegate in |
| 44233 | [\\/]* | ?:[\\/]*) |
| 44234 | ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path. |
| 44235 | ;; |
| 44236 | *) |
| 44237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 44238 | for as_dir in $PATH |
| 44239 | do |
| 44240 | IFS=$as_save_IFS |
| 44241 | test -z "$as_dir" && as_dir=. |
| 44242 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 44243 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 44244 | ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 44245 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 44246 | break 2 |
| 44247 | fi |
| 44248 | done |
| 44249 | done |
| 44250 | IFS=$as_save_IFS |
| 44251 | |
| 44252 | test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault"" |
| 44253 | ;; |
| 44254 | esac |
| 44255 | fi |
| 44256 | POVDelegate=$ac_cv_path_POVDelegate |
| 44257 | if test -n "$POVDelegate"; then |
| 44258 | { $as_echo "$as_me:$LINENO: result: $POVDelegate" >&5 |
| 44259 | $as_echo "$POVDelegate" >&6; } |
| 44260 | else |
| 44261 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 44262 | $as_echo "no" >&6; } |
| 44263 | fi |
| 44264 | |
| 44265 | |
| 44266 | for ac_prog in gsx gsc "$PSDelegateDefault" |
| 44267 | do |
| 44268 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 44269 | set dummy $ac_prog; ac_word=$2 |
| 44270 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 44271 | $as_echo_n "checking for $ac_word... " >&6; } |
| 44272 | if test "${ac_cv_path_PSDelegate+set}" = set; then |
| 44273 | $as_echo_n "(cached) " >&6 |
| 44274 | else |
| 44275 | case $PSDelegate in |
| 44276 | [\\/]* | ?:[\\/]*) |
| 44277 | ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path. |
| 44278 | ;; |
| 44279 | *) |
| 44280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 44281 | for as_dir in $PATH |
| 44282 | do |
| 44283 | IFS=$as_save_IFS |
| 44284 | test -z "$as_dir" && as_dir=. |
| 44285 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 44286 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 44287 | ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 44288 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 44289 | break 2 |
| 44290 | fi |
| 44291 | done |
| 44292 | done |
| 44293 | IFS=$as_save_IFS |
| 44294 | |
| 44295 | ;; |
| 44296 | esac |
| 44297 | fi |
| 44298 | PSDelegate=$ac_cv_path_PSDelegate |
| 44299 | if test -n "$PSDelegate"; then |
| 44300 | { $as_echo "$as_me:$LINENO: result: $PSDelegate" >&5 |
| 44301 | $as_echo "$PSDelegate" >&6; } |
| 44302 | else |
| 44303 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 44304 | $as_echo "no" >&6; } |
| 44305 | fi |
| 44306 | |
| 44307 | |
| 44308 | test -n "$PSDelegate" && break |
| 44309 | done |
| 44310 | test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault"" |
| 44311 | |
| 44312 | # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args. |
| 44313 | set dummy "$RLEEncodeDelegateDefault"; ac_word=$2 |
| 44314 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 44315 | $as_echo_n "checking for $ac_word... " >&6; } |
| 44316 | if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then |
| 44317 | $as_echo_n "(cached) " >&6 |
| 44318 | else |
| 44319 | case $RLEEncodeDelegate in |
| 44320 | [\\/]* | ?:[\\/]*) |
| 44321 | ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path. |
| 44322 | ;; |
| 44323 | *) |
| 44324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 44325 | for as_dir in $PATH |
| 44326 | do |
| 44327 | IFS=$as_save_IFS |
| 44328 | test -z "$as_dir" && as_dir=. |
| 44329 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 44330 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 44331 | ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 44332 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 44333 | break 2 |
| 44334 | fi |
| 44335 | done |
| 44336 | done |
| 44337 | IFS=$as_save_IFS |
| 44338 | |
| 44339 | test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault"" |
| 44340 | ;; |
| 44341 | esac |
| 44342 | fi |
| 44343 | RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate |
| 44344 | if test -n "$RLEEncodeDelegate"; then |
| 44345 | { $as_echo "$as_me:$LINENO: result: $RLEEncodeDelegate" >&5 |
| 44346 | $as_echo "$RLEEncodeDelegate" >&6; } |
| 44347 | else |
| 44348 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 44349 | $as_echo "no" >&6; } |
| 44350 | fi |
| 44351 | |
| 44352 | |
| 44353 | # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args. |
| 44354 | set dummy "$RMDelegateDefault"; ac_word=$2 |
| 44355 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 44356 | $as_echo_n "checking for $ac_word... " >&6; } |
| 44357 | if test "${ac_cv_path_RMDelegate+set}" = set; then |
| 44358 | $as_echo_n "(cached) " >&6 |
| 44359 | else |
| 44360 | case $RMDelegate in |
| 44361 | [\\/]* | ?:[\\/]*) |
| 44362 | ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path. |
| 44363 | ;; |
| 44364 | *) |
| 44365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 44366 | for as_dir in $PATH |
| 44367 | do |
| 44368 | IFS=$as_save_IFS |
| 44369 | test -z "$as_dir" && as_dir=. |
| 44370 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 44371 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 44372 | ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 44373 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 44374 | break 2 |
| 44375 | fi |
| 44376 | done |
| 44377 | done |
| 44378 | IFS=$as_save_IFS |
| 44379 | |
| 44380 | test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault"" |
| 44381 | ;; |
| 44382 | esac |
| 44383 | fi |
| 44384 | RMDelegate=$ac_cv_path_RMDelegate |
| 44385 | if test -n "$RMDelegate"; then |
| 44386 | { $as_echo "$as_me:$LINENO: result: $RMDelegate" >&5 |
| 44387 | $as_echo "$RMDelegate" >&6; } |
| 44388 | else |
| 44389 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 44390 | $as_echo "no" >&6; } |
| 44391 | fi |
| 44392 | |
| 44393 | |
| 44394 | # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args. |
| 44395 | set dummy "$SCANDecodeDelegateDefault"; ac_word=$2 |
| 44396 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 44397 | $as_echo_n "checking for $ac_word... " >&6; } |
| 44398 | if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then |
| 44399 | $as_echo_n "(cached) " >&6 |
| 44400 | else |
| 44401 | case $SCANDecodeDelegate in |
| 44402 | [\\/]* | ?:[\\/]*) |
| 44403 | ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path. |
| 44404 | ;; |
| 44405 | *) |
| 44406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 44407 | for as_dir in $PATH |
| 44408 | do |
| 44409 | IFS=$as_save_IFS |
| 44410 | test -z "$as_dir" && as_dir=. |
| 44411 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 44412 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 44413 | ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 44414 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 44415 | break 2 |
| 44416 | fi |
| 44417 | done |
| 44418 | done |
| 44419 | IFS=$as_save_IFS |
| 44420 | |
| 44421 | test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault"" |
| 44422 | ;; |
| 44423 | esac |
| 44424 | fi |
| 44425 | SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate |
| 44426 | if test -n "$SCANDecodeDelegate"; then |
| 44427 | { $as_echo "$as_me:$LINENO: result: $SCANDecodeDelegate" >&5 |
| 44428 | $as_echo "$SCANDecodeDelegate" >&6; } |
| 44429 | else |
| 44430 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 44431 | $as_echo "no" >&6; } |
| 44432 | fi |
| 44433 | |
| 44434 | |
| 44435 | # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args. |
| 44436 | set dummy "$TXTDelegateDefault"; ac_word=$2 |
| 44437 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 44438 | $as_echo_n "checking for $ac_word... " >&6; } |
| 44439 | if test "${ac_cv_path_TXTDelegate+set}" = set; then |
| 44440 | $as_echo_n "(cached) " >&6 |
| 44441 | else |
| 44442 | case $TXTDelegate in |
| 44443 | [\\/]* | ?:[\\/]*) |
| 44444 | ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path. |
| 44445 | ;; |
| 44446 | *) |
| 44447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 44448 | for as_dir in $PATH |
| 44449 | do |
| 44450 | IFS=$as_save_IFS |
| 44451 | test -z "$as_dir" && as_dir=. |
| 44452 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 44453 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 44454 | ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 44455 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 44456 | break 2 |
| 44457 | fi |
| 44458 | done |
| 44459 | done |
| 44460 | IFS=$as_save_IFS |
| 44461 | |
| 44462 | test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault"" |
| 44463 | ;; |
| 44464 | esac |
| 44465 | fi |
| 44466 | TXTDelegate=$ac_cv_path_TXTDelegate |
| 44467 | if test -n "$TXTDelegate"; then |
| 44468 | { $as_echo "$as_me:$LINENO: result: $TXTDelegate" >&5 |
| 44469 | $as_echo "$TXTDelegate" >&6; } |
| 44470 | else |
| 44471 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 44472 | $as_echo "no" >&6; } |
| 44473 | fi |
| 44474 | |
| 44475 | |
| 44476 | # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args. |
| 44477 | set dummy "$WMFDecodeDelegateDefault"; ac_word=$2 |
| 44478 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 44479 | $as_echo_n "checking for $ac_word... " >&6; } |
| 44480 | if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then |
| 44481 | $as_echo_n "(cached) " >&6 |
| 44482 | else |
| 44483 | case $WMFDecodeDelegate in |
| 44484 | [\\/]* | ?:[\\/]*) |
| 44485 | ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path. |
| 44486 | ;; |
| 44487 | *) |
| 44488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 44489 | for as_dir in $PATH |
| 44490 | do |
| 44491 | IFS=$as_save_IFS |
| 44492 | test -z "$as_dir" && as_dir=. |
| 44493 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 44494 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 44495 | ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 44496 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 44497 | break 2 |
| 44498 | fi |
| 44499 | done |
| 44500 | done |
| 44501 | IFS=$as_save_IFS |
| 44502 | |
| 44503 | test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault"" |
| 44504 | ;; |
| 44505 | esac |
| 44506 | fi |
| 44507 | WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate |
| 44508 | if test -n "$WMFDecodeDelegate"; then |
| 44509 | { $as_echo "$as_me:$LINENO: result: $WMFDecodeDelegate" >&5 |
| 44510 | $as_echo "$WMFDecodeDelegate" >&6; } |
| 44511 | else |
| 44512 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 44513 | $as_echo "no" >&6; } |
| 44514 | fi |
| 44515 | |
| 44516 | |
| 44517 | # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args. |
| 44518 | set dummy "$WWWDecodeDelegateDefault"; ac_word=$2 |
| 44519 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 44520 | $as_echo_n "checking for $ac_word... " >&6; } |
| 44521 | if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then |
| 44522 | $as_echo_n "(cached) " >&6 |
| 44523 | else |
| 44524 | case $WWWDecodeDelegate in |
| 44525 | [\\/]* | ?:[\\/]*) |
| 44526 | ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path. |
| 44527 | ;; |
| 44528 | *) |
| 44529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 44530 | for as_dir in $PATH |
| 44531 | do |
| 44532 | IFS=$as_save_IFS |
| 44533 | test -z "$as_dir" && as_dir=. |
| 44534 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 44535 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 44536 | ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 44537 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 44538 | break 2 |
| 44539 | fi |
| 44540 | done |
| 44541 | done |
| 44542 | IFS=$as_save_IFS |
| 44543 | |
| 44544 | test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault"" |
| 44545 | ;; |
| 44546 | esac |
| 44547 | fi |
| 44548 | WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate |
| 44549 | if test -n "$WWWDecodeDelegate"; then |
| 44550 | { $as_echo "$as_me:$LINENO: result: $WWWDecodeDelegate" >&5 |
| 44551 | $as_echo "$WWWDecodeDelegate" >&6; } |
| 44552 | else |
| 44553 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 44554 | $as_echo "no" >&6; } |
| 44555 | fi |
| 44556 | |
| 44557 | |
| 44558 | # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args. |
| 44559 | set dummy "$XPSDelegateDefault"; ac_word=$2 |
| 44560 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 44561 | $as_echo_n "checking for $ac_word... " >&6; } |
| 44562 | if test "${ac_cv_path_XPSDelegate+set}" = set; then |
| 44563 | $as_echo_n "(cached) " >&6 |
| 44564 | else |
| 44565 | case $XPSDelegate in |
| 44566 | [\\/]* | ?:[\\/]*) |
| 44567 | ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path. |
| 44568 | ;; |
| 44569 | *) |
| 44570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 44571 | for as_dir in $PATH |
| 44572 | do |
| 44573 | IFS=$as_save_IFS |
| 44574 | test -z "$as_dir" && as_dir=. |
| 44575 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 44576 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 44577 | ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 44578 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 44579 | break 2 |
| 44580 | fi |
| 44581 | done |
| 44582 | done |
| 44583 | IFS=$as_save_IFS |
| 44584 | |
| 44585 | test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault"" |
| 44586 | ;; |
| 44587 | esac |
| 44588 | fi |
| 44589 | XPSDelegate=$ac_cv_path_XPSDelegate |
| 44590 | if test -n "$XPSDelegate"; then |
| 44591 | { $as_echo "$as_me:$LINENO: result: $XPSDelegate" >&5 |
| 44592 | $as_echo "$XPSDelegate" >&6; } |
| 44593 | else |
| 44594 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 44595 | $as_echo "no" >&6; } |
| 44596 | fi |
| 44597 | |
| 44598 | |
| 44599 | # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args. |
| 44600 | set dummy "$ZipDelegateDefault"; ac_word=$2 |
| 44601 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 44602 | $as_echo_n "checking for $ac_word... " >&6; } |
| 44603 | if test "${ac_cv_path_ZipDelegate+set}" = set; then |
| 44604 | $as_echo_n "(cached) " >&6 |
| 44605 | else |
| 44606 | case $ZipDelegate in |
| 44607 | [\\/]* | ?:[\\/]*) |
| 44608 | ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path. |
| 44609 | ;; |
| 44610 | *) |
| 44611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 44612 | for as_dir in $PATH |
| 44613 | do |
| 44614 | IFS=$as_save_IFS |
| 44615 | test -z "$as_dir" && as_dir=. |
| 44616 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 44617 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 44618 | ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 44619 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 44620 | break 2 |
| 44621 | fi |
| 44622 | done |
| 44623 | done |
| 44624 | IFS=$as_save_IFS |
| 44625 | |
| 44626 | test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault"" |
| 44627 | ;; |
| 44628 | esac |
| 44629 | fi |
| 44630 | ZipDelegate=$ac_cv_path_ZipDelegate |
| 44631 | if test -n "$ZipDelegate"; then |
| 44632 | { $as_echo "$as_me:$LINENO: result: $ZipDelegate" >&5 |
| 44633 | $as_echo "$ZipDelegate" >&6; } |
| 44634 | else |
| 44635 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 44636 | $as_echo "no" >&6; } |
| 44637 | fi |
| 44638 | |
| 44639 | |
| 44640 | |
| 44641 | # Prefer lpr to lp; lp needs options tacked on. |
| 44642 | if test "$LPRDelegate" != no; then |
| 44643 | PrintDelegate="$LPRDelegate" |
| 44644 | else |
| 44645 | PrintDelegate="$LPDelegate -c -s" |
| 44646 | fi |
| 44647 | |
| 44648 | |
| 44649 | # Installed ImageMagick utiltity paths |
| 44650 | ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}" |
| 44651 | DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}" |
| 44652 | MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}" |
| 44653 | |
| 44654 | # Set delegate booleans |
| 44655 | have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi |
| 44656 | have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi |
| 44657 | have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi |
| 44658 | have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi |
| 44659 | have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi |
| 44660 | have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi |
| 44661 | have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi |
| 44662 | have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi |
| 44663 | have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi |
| 44664 | have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi |
| 44665 | have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi |
| 44666 | |
| 44667 | # |
| 44668 | # Test for font directories |
| 44669 | # |
| 44670 | type_include_files='' |
| 44671 | |
| 44672 | # Windows |
| 44673 | windows_font_dir='' |
| 44674 | if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then |
| 44675 | windows_font_dir="${with_windows_font_dir}/" |
| 44676 | fi |
| 44677 | if test -n "$windows_font_dir"; then |
| 44678 | if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then |
| 44679 | windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/' |
| 44680 | fi |
| 44681 | if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then |
| 44682 | windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/' |
| 44683 | fi |
| 44684 | if test -f '/usr/share/fonts/msttcore/arial.ttf'; then |
| 44685 | windows_font_dir='/usr/share/fonts/msttcore/truetype/' |
| 44686 | fi |
| 44687 | fi |
| 44688 | if test -n "$windows_font_dir"; then |
| 44689 | type_include_files="$type_include_files "'<include file="type-windows.xml" />' |
| 44690 | fi |
| 44691 | |
| 44692 | |
| 44693 | # Ghostscript |
| 44694 | { $as_echo "$as_me:$LINENO: checking for Ghostscript fonts directory" >&5 |
| 44695 | $as_echo_n "checking for Ghostscript fonts directory... " >&6; } |
| 44696 | ghostscript_font_dir='' |
| 44697 | if test "${with_gs_font_dir}" != 'default'; then |
| 44698 | ghostscript_font_dir="${with_gs_font_dir}/" |
| 44699 | else |
| 44700 | if test "${native_win32_build}" = 'yes'; then |
| 44701 | # Native Windows Build |
| 44702 | for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do |
| 44703 | if test -f "${font_dir}a010013l.pfb"; then |
| 44704 | ghostscript_font_dir="$font_dir" |
| 44705 | break 1 |
| 44706 | fi |
| 44707 | done |
| 44708 | if test "${PSDelegate}" != 'gswin32c'; then |
| 44709 | ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\" |
| 44710 | fi |
| 44711 | else |
| 44712 | # Linux / Mac OS X / Unix Build |
| 44713 | for font_dir in "${prefix}/share/ghostscript/fonts/" '/usr/share/fonts/default/Type1/' '/usr/share/ghostscript/fonts/' '/usr/share/fonts/ghostscript/' '/usr/share/fonts/type1/gsfonts/' '/opt/local/share/ghostscript/fonts/' '/sw/share/ghostscript/fonts/' '/System/Library/Frameworks/Ghostscript.framework/Resources/fonts/'; do |
| 44714 | if test -f "${font_dir}a010013l.pfb"; then |
| 44715 | ghostscript_font_dir="${font_dir}" |
| 44716 | break 1 |
| 44717 | fi |
| 44718 | done |
| 44719 | if test "${ghostscript_font_dir}x" = 'x'; then |
| 44720 | if test "$PSDelegate" != 'gs'; then |
| 44721 | ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/" |
| 44722 | fi |
| 44723 | fi |
| 44724 | fi |
| 44725 | fi |
| 44726 | if test "${ghostscript_font_dir}x" != 'x'; then |
| 44727 | type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />' |
| 44728 | { $as_echo "$as_me:$LINENO: result: $ghostscript_font_dir" >&5 |
| 44729 | $as_echo "$ghostscript_font_dir" >&6; } |
| 44730 | else |
| 44731 | { $as_echo "$as_me:$LINENO: result: not found!" >&5 |
| 44732 | $as_echo "not found!" >&6; }; |
| 44733 | fi |
| 44734 | |
| 44735 | case "${build_os}" in |
| 44736 | mingw* ) |
| 44737 | PSDelegate=`$WinPathScript "$PSDelegate" 1` |
| 44738 | ;; |
| 44739 | esac |
| 44740 | |
| 44741 | |
| 44742 | |
| 44743 | # |
| 44744 | # Handle case where user doesn't want frozen paths |
| 44745 | # |
| 44746 | if test "$with_frozenpaths" != 'yes'; then |
| 44747 | # Re-set delegate definitions to default (no paths) |
| 44748 | AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault" |
| 44749 | AVIDecodeDelegate="$AVIDecodeDelegateDefault" |
| 44750 | BlenderDecodeDelegate="$BlenderDecodeDelegateDefault" |
| 44751 | BZIPDelegate="$BZIPDelegateDefault" |
| 44752 | BrowseDelegate="$BrowseDelegateDefault" |
| 44753 | CGMDecodeDelegate="$CGMDecodeDelegateDefault" |
| 44754 | CatDelegate="$CatDelegateDefault" |
| 44755 | ConvertDelegate="$ConvertDelegateDefault" |
| 44756 | GVCDecodeDelegate="$GVCDecodeDelegateDefault" |
| 44757 | DVIDecodeDelegate="$DVIDecodeDelegateDefault" |
| 44758 | EchoDelegate="$EchoDelegateDefault" |
| 44759 | EditorDelegate="$EditorDelegateDefault" |
| 44760 | FIGDecodeDelegate="$FIGDecodeDelegateDefault" |
| 44761 | GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault" |
| 44762 | HPGLDecodeDelegate="$HPGLDecodeDelegateDefault" |
| 44763 | HTMLDecodeDelegate="$HTMLDecodeDelegateDefault" |
| 44764 | ILBMDecodeDelegate="$ILBMDecodeDelegateDefault" |
| 44765 | ILBMEncodeDelegate="$ILBMEncodeDelegateDefault" |
| 44766 | LPDelegate="$LPDelegateDefault" |
| 44767 | LZWDecodeDelegate="$LZWDecodeDelegateDefault" |
| 44768 | LZWEncodeDelegate="$LZWEncodeDelegateDefault" |
| 44769 | LaunchDelegate="$LaunchDelegateDefault" |
| 44770 | MANDelegate="$MANDelegateDefault" |
| 44771 | MPEGDecodeDelegate="$MPEGDecodeDelegateDefault" |
| 44772 | MPEGEncodeDelegate="$MPEGEncodeDelegateDefault" |
| 44773 | MVDelegate="$MVDelegateDefault" |
| 44774 | MogrifyDelegate="$MogrifyDelegateDefault" |
| 44775 | PCLDelegate="$PCLDelegateDefault" |
| 44776 | PGPDecodeDelegate="$PGPDecodeDelegateDefault" |
| 44777 | POVDelegate="$POVDelegateDefault" |
| 44778 | PSDelegate="$PSDelegateDefault" |
| 44779 | HDRDecodeDelegate="$HDRDecodeDelegateDefault" |
| 44780 | RLEEncodeDelegate="$RLEEncodeDelegateDefault" |
| 44781 | RMDelegate="$RMDelegateDefault" |
| 44782 | SCANDecodeDelegate="$SCANDecodeDelegateDefault" |
| 44783 | ShowImageDelegate="$ShowImageDelegateDefault" |
| 44784 | TXTDelegate="$TXTDelegateDefault" |
| 44785 | WMFDecodeDelegate="$WMFDecodeDelegateDefault" |
| 44786 | WWWDecodeDelegate="$WWWDecodeDelegateDefault" |
| 44787 | XPSDelegate="$XPSDelegateDefault" |
| 44788 | ZipDelegate="$ZipDelegateDefault" |
| 44789 | fi |
| 44790 | |
| 44791 | # Delegate substitutions |
| 44792 | |
| 44793 | |
| 44794 | |
| 44795 | |
| 44796 | |
| 44797 | |
| 44798 | |
| 44799 | |
| 44800 | |
| 44801 | |
| 44802 | |
| 44803 | |
| 44804 | |
| 44805 | |
| 44806 | |
| 44807 | |
| 44808 | |
| 44809 | |
| 44810 | |
| 44811 | |
| 44812 | |
| 44813 | |
| 44814 | |
| 44815 | |
| 44816 | |
| 44817 | |
| 44818 | |
| 44819 | |
| 44820 | |
| 44821 | |
| 44822 | |
| 44823 | |
| 44824 | |
| 44825 | |
| 44826 | |
| 44827 | |
| 44828 | |
| 44829 | |
| 44830 | |
| 44831 | |
| 44832 | |
| 44833 | |
| 44834 | # |
| 44835 | # RPM support. |
| 44836 | # |
| 44837 | RPM='' |
| 44838 | for ac_prog in gnutar gtar tar |
| 44839 | do |
| 44840 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 44841 | set dummy $ac_prog; ac_word=$2 |
| 44842 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 44843 | $as_echo_n "checking for $ac_word... " >&6; } |
| 44844 | if test "${ac_cv_prog_TAR+set}" = set; then |
| 44845 | $as_echo_n "(cached) " >&6 |
| 44846 | else |
| 44847 | if test -n "$TAR"; then |
| 44848 | ac_cv_prog_TAR="$TAR" # Let the user override the test. |
| 44849 | else |
| 44850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 44851 | for as_dir in $PATH |
| 44852 | do |
| 44853 | IFS=$as_save_IFS |
| 44854 | test -z "$as_dir" && as_dir=. |
| 44855 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 44856 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 44857 | ac_cv_prog_TAR="$ac_prog" |
| 44858 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 44859 | break 2 |
| 44860 | fi |
| 44861 | done |
| 44862 | done |
| 44863 | IFS=$as_save_IFS |
| 44864 | |
| 44865 | fi |
| 44866 | fi |
| 44867 | TAR=$ac_cv_prog_TAR |
| 44868 | if test -n "$TAR"; then |
| 44869 | { $as_echo "$as_me:$LINENO: result: $TAR" >&5 |
| 44870 | $as_echo "$TAR" >&6; } |
| 44871 | else |
| 44872 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 44873 | $as_echo "no" >&6; } |
| 44874 | fi |
| 44875 | |
| 44876 | |
| 44877 | test -n "$TAR" && break |
| 44878 | done |
| 44879 | |
| 44880 | for ac_prog in perl |
| 44881 | do |
| 44882 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 44883 | set dummy $ac_prog; ac_word=$2 |
| 44884 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 44885 | $as_echo_n "checking for $ac_word... " >&6; } |
| 44886 | if test "${ac_cv_prog_PERL+set}" = set; then |
| 44887 | $as_echo_n "(cached) " >&6 |
| 44888 | else |
| 44889 | if test -n "$PERL"; then |
| 44890 | ac_cv_prog_PERL="$PERL" # Let the user override the test. |
| 44891 | else |
| 44892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 44893 | for as_dir in $PATH |
| 44894 | do |
| 44895 | IFS=$as_save_IFS |
| 44896 | test -z "$as_dir" && as_dir=. |
| 44897 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 44898 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 44899 | ac_cv_prog_PERL="$ac_prog" |
| 44900 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 44901 | break 2 |
| 44902 | fi |
| 44903 | done |
| 44904 | done |
| 44905 | IFS=$as_save_IFS |
| 44906 | |
| 44907 | fi |
| 44908 | fi |
| 44909 | PERL=$ac_cv_prog_PERL |
| 44910 | if test -n "$PERL"; then |
| 44911 | { $as_echo "$as_me:$LINENO: result: $PERL" >&5 |
| 44912 | $as_echo "$PERL" >&6; } |
| 44913 | else |
| 44914 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 44915 | $as_echo "no" >&6; } |
| 44916 | fi |
| 44917 | |
| 44918 | |
| 44919 | test -n "$PERL" && break |
| 44920 | done |
| 44921 | |
| 44922 | for ac_prog in rpmbuild rpm |
| 44923 | do |
| 44924 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 44925 | set dummy $ac_prog; ac_word=$2 |
| 44926 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 44927 | $as_echo_n "checking for $ac_word... " >&6; } |
| 44928 | if test "${ac_cv_prog_RPM+set}" = set; then |
| 44929 | $as_echo_n "(cached) " >&6 |
| 44930 | else |
| 44931 | if test -n "$RPM"; then |
| 44932 | ac_cv_prog_RPM="$RPM" # Let the user override the test. |
| 44933 | else |
| 44934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 44935 | for as_dir in $PATH |
| 44936 | do |
| 44937 | IFS=$as_save_IFS |
| 44938 | test -z "$as_dir" && as_dir=. |
| 44939 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 44940 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 44941 | ac_cv_prog_RPM="$ac_prog" |
| 44942 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 44943 | break 2 |
| 44944 | fi |
| 44945 | done |
| 44946 | done |
| 44947 | IFS=$as_save_IFS |
| 44948 | |
| 44949 | fi |
| 44950 | fi |
| 44951 | RPM=$ac_cv_prog_RPM |
| 44952 | if test -n "$RPM"; then |
| 44953 | { $as_echo "$as_me:$LINENO: result: $RPM" >&5 |
| 44954 | $as_echo "$RPM" >&6; } |
| 44955 | else |
| 44956 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 44957 | $as_echo "no" >&6; } |
| 44958 | fi |
| 44959 | |
| 44960 | |
| 44961 | test -n "$RPM" && break |
| 44962 | done |
| 44963 | |
| 44964 | |
| 44965 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} |
| 44966 | |
| 44967 | |
| 44968 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 44969 | |
| 44970 | |
| 44971 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} |
| 44972 | |
| 44973 | |
| 44974 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 44975 | |
| 44976 | |
| 44977 | if test "x$RPM" != "x" ; then |
| 44978 | RPM_DELEGATE_TRUE= |
| 44979 | RPM_DELEGATE_FALSE='#' |
| 44980 | else |
| 44981 | RPM_DELEGATE_TRUE='#' |
| 44982 | RPM_DELEGATE_FALSE= |
| 44983 | fi |
| 44984 | |
| 44985 | |
| 44986 | # |
| 44987 | # 7ZIP support (http://p7zip.sourceforge.net/) |
| 44988 | # |
| 44989 | P7ZIP='' |
| 44990 | for ac_prog in 7za |
| 44991 | do |
| 44992 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 44993 | set dummy $ac_prog; ac_word=$2 |
| 44994 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 44995 | $as_echo_n "checking for $ac_word... " >&6; } |
| 44996 | if test "${ac_cv_prog_P7ZIP+set}" = set; then |
| 44997 | $as_echo_n "(cached) " >&6 |
| 44998 | else |
| 44999 | if test -n "$P7ZIP"; then |
| 45000 | ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test. |
| 45001 | else |
| 45002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 45003 | for as_dir in $PATH |
| 45004 | do |
| 45005 | IFS=$as_save_IFS |
| 45006 | test -z "$as_dir" && as_dir=. |
| 45007 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 45008 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 45009 | ac_cv_prog_P7ZIP="$ac_prog" |
| 45010 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 45011 | break 2 |
| 45012 | fi |
| 45013 | done |
| 45014 | done |
| 45015 | IFS=$as_save_IFS |
| 45016 | |
| 45017 | fi |
| 45018 | fi |
| 45019 | P7ZIP=$ac_cv_prog_P7ZIP |
| 45020 | if test -n "$P7ZIP"; then |
| 45021 | { $as_echo "$as_me:$LINENO: result: $P7ZIP" >&5 |
| 45022 | $as_echo "$P7ZIP" >&6; } |
| 45023 | else |
| 45024 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 45025 | $as_echo "no" >&6; } |
| 45026 | fi |
| 45027 | |
| 45028 | |
| 45029 | test -n "$P7ZIP" && break |
| 45030 | done |
| 45031 | |
| 45032 | |
| 45033 | if test "x$P7ZIP" != "x" ; then |
| 45034 | P7ZIP_DELEGATE_TRUE= |
| 45035 | P7ZIP_DELEGATE_FALSE='#' |
| 45036 | else |
| 45037 | P7ZIP_DELEGATE_TRUE='#' |
| 45038 | P7ZIP_DELEGATE_FALSE= |
| 45039 | fi |
| 45040 | |
| 45041 | |
| 45042 | # |
| 45043 | # ZIP support (http://www.info-zip.org/Zip.html) |
| 45044 | # |
| 45045 | ZIP='' |
| 45046 | for ac_prog in zip |
| 45047 | do |
| 45048 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 45049 | set dummy $ac_prog; ac_word=$2 |
| 45050 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 45051 | $as_echo_n "checking for $ac_word... " >&6; } |
| 45052 | if test "${ac_cv_prog_ZIP+set}" = set; then |
| 45053 | $as_echo_n "(cached) " >&6 |
| 45054 | else |
| 45055 | if test -n "$ZIP"; then |
| 45056 | ac_cv_prog_ZIP="$ZIP" # Let the user override the test. |
| 45057 | else |
| 45058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 45059 | for as_dir in $PATH |
| 45060 | do |
| 45061 | IFS=$as_save_IFS |
| 45062 | test -z "$as_dir" && as_dir=. |
| 45063 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 45064 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 45065 | ac_cv_prog_ZIP="$ac_prog" |
| 45066 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 45067 | break 2 |
| 45068 | fi |
| 45069 | done |
| 45070 | done |
| 45071 | IFS=$as_save_IFS |
| 45072 | |
| 45073 | fi |
| 45074 | fi |
| 45075 | ZIP=$ac_cv_prog_ZIP |
| 45076 | if test -n "$ZIP"; then |
| 45077 | { $as_echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 45078 | $as_echo "$ZIP" >&6; } |
| 45079 | else |
| 45080 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 45081 | $as_echo "no" >&6; } |
| 45082 | fi |
| 45083 | |
| 45084 | |
| 45085 | test -n "$ZIP" && break |
| 45086 | done |
| 45087 | |
| 45088 | |
| 45089 | if test "x$ZIP" != "x" ; then |
| 45090 | ZIP_DELEGATE_TRUE= |
| 45091 | ZIP_DELEGATE_FALSE='#' |
| 45092 | else |
| 45093 | ZIP_DELEGATE_TRUE='#' |
| 45094 | ZIP_DELEGATE_FALSE= |
| 45095 | fi |
| 45096 | |
| 45097 | |
| 45098 | # |
| 45099 | # GhostPCL related configuration. |
| 45100 | # |
| 45101 | PCLColorDevice=ppmraw |
| 45102 | PCLCMYKDevice=bmpsep8 |
| 45103 | PCLMonoDevice=pbmraw |
| 45104 | if test -z "$PCLVersion"; then |
| 45105 | PCLVersion='unknown' |
| 45106 | fi |
| 45107 | if test $have_pcl = 'yes'; then |
| 45108 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 45109 | $as_echo "-------------------------------------------------------------" >&6; } |
| 45110 | { $as_echo "$as_me:$LINENO: checking for PCL" >&5 |
| 45111 | $as_echo_n "checking for PCL... " >&6; } |
| 45112 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 45113 | $as_echo "" >&6; } |
| 45114 | # PCLColorDevice |
| 45115 | { $as_echo "$as_me:$LINENO: checking for pcl color device" >&5 |
| 45116 | $as_echo_n "checking for pcl color device... " >&6; } |
| 45117 | if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 45118 | : |
| 45119 | else |
| 45120 | PCLColorDevice=ppmraw |
| 45121 | fi |
| 45122 | { $as_echo "$as_me:$LINENO: result: $PCLColorDevice" >&5 |
| 45123 | $as_echo "$PCLColorDevice" >&6; } |
| 45124 | |
| 45125 | # PCLCMYKDevice |
| 45126 | { $as_echo "$as_me:$LINENO: checking for pcl CMYK device" >&5 |
| 45127 | $as_echo_n "checking for pcl CMYK device... " >&6; } |
| 45128 | if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 45129 | : |
| 45130 | else |
| 45131 | PCLCMYKDevice=$PCLColorDevice |
| 45132 | fi |
| 45133 | { $as_echo "$as_me:$LINENO: result: $PCLCMYKDevice" >&5 |
| 45134 | $as_echo "$PCLCMYKDevice" >&6; } |
| 45135 | |
| 45136 | # PCLMonoDevice |
| 45137 | { $as_echo "$as_me:$LINENO: checking for pcl mono device" >&5 |
| 45138 | $as_echo_n "checking for pcl mono device... " >&6; } |
| 45139 | if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 45140 | : |
| 45141 | else |
| 45142 | PCLMonoDevice=$PCLColorDevice |
| 45143 | fi |
| 45144 | { $as_echo "$as_me:$LINENO: result: $PCLMonoDevice" >&5 |
| 45145 | $as_echo "$PCLMonoDevice" >&6; } |
| 45146 | fi |
| 45147 | |
| 45148 | |
| 45149 | |
| 45150 | |
| 45151 | |
| 45152 | |
| 45153 | # |
| 45154 | # GhostXPS related configuration. |
| 45155 | # |
| 45156 | XPSColorDevice=ppmraw |
| 45157 | XPSCMYKDevice=bmpsep8 |
| 45158 | XPSMonoDevice=pbmraw |
| 45159 | if test -z "$XPSVersion"; then |
| 45160 | XPSVersion='unknown' |
| 45161 | fi |
| 45162 | if test $have_xps = 'yes'; then |
| 45163 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 45164 | $as_echo "-------------------------------------------------------------" >&6; } |
| 45165 | { $as_echo "$as_me:$LINENO: checking for XPS" >&5 |
| 45166 | $as_echo_n "checking for XPS... " >&6; } |
| 45167 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 45168 | $as_echo "" >&6; } |
| 45169 | # XPSColorDevice |
| 45170 | { $as_echo "$as_me:$LINENO: checking for xps color device" >&5 |
| 45171 | $as_echo_n "checking for xps color device... " >&6; } |
| 45172 | if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 45173 | : |
| 45174 | else |
| 45175 | XPSColorDevice=ppmraw |
| 45176 | fi |
| 45177 | { $as_echo "$as_me:$LINENO: result: $XPSColorDevice" >&5 |
| 45178 | $as_echo "$XPSColorDevice" >&6; } |
| 45179 | |
| 45180 | # XPSCMYKDevice |
| 45181 | { $as_echo "$as_me:$LINENO: checking for xps CMYK device" >&5 |
| 45182 | $as_echo_n "checking for xps CMYK device... " >&6; } |
| 45183 | if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 45184 | : |
| 45185 | else |
| 45186 | XPSCMYKDevice=$XPSColorDevice |
| 45187 | fi |
| 45188 | { $as_echo "$as_me:$LINENO: result: $XPSCMYKDevice" >&5 |
| 45189 | $as_echo "$XPSCMYKDevice" >&6; } |
| 45190 | |
| 45191 | # XPSMonoDevice |
| 45192 | { $as_echo "$as_me:$LINENO: checking for xps mono device" >&5 |
| 45193 | $as_echo_n "checking for xps mono device... " >&6; } |
| 45194 | if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 45195 | : |
| 45196 | else |
| 45197 | XPSMonoDevice=$XPSColorDevice |
| 45198 | fi |
| 45199 | { $as_echo "$as_me:$LINENO: result: $XPSMonoDevice" >&5 |
| 45200 | $as_echo "$XPSMonoDevice" >&6; } |
| 45201 | fi |
| 45202 | |
| 45203 | |
| 45204 | |
| 45205 | |
| 45206 | |
| 45207 | |
| 45208 | # |
| 45209 | # Ghostscript related configuration. |
| 45210 | # |
| 45211 | if test "$have_png" = 'yes'; then |
| 45212 | GSAlphaDevice=pngalpha |
| 45213 | else |
| 45214 | GSAlphaDevice=pnmraw |
| 45215 | fi |
| 45216 | GSColorDevice=pnmraw |
| 45217 | GSCMYKDevice=pam |
| 45218 | GSMonoDevice=pbmraw |
| 45219 | GSPDFDevice=pdfwrite |
| 45220 | GSPSDevice=pswrite |
| 45221 | GSEPSDevice=epswrite |
| 45222 | GSVersion='unknown' |
| 45223 | if test $have_gs = 'yes'; then |
| 45224 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 45225 | $as_echo "-------------------------------------------------------------" >&6; } |
| 45226 | { $as_echo "$as_me:$LINENO: checking for Ghostscript" >&5 |
| 45227 | $as_echo_n "checking for Ghostscript... " >&6; } |
| 45228 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 45229 | $as_echo "" >&6; } |
| 45230 | { $as_echo "$as_me:$LINENO: checking for Ghostscript version" >&5 |
| 45231 | $as_echo_n "checking for Ghostscript version... " >&6; } |
| 45232 | if GSVersion=`$PSDelegate --version`; then |
| 45233 | : |
| 45234 | else |
| 45235 | GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'` |
| 45236 | fi |
| 45237 | { $as_echo "$as_me:$LINENO: result: $GSVersion" >&5 |
| 45238 | $as_echo "$GSVersion" >&6; } |
| 45239 | |
| 45240 | # GSAlphaDevice |
| 45241 | { $as_echo "$as_me:$LINENO: checking for gs alpha device" >&5 |
| 45242 | $as_echo_n "checking for gs alpha device... " >&6; } |
| 45243 | if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 45244 | : |
| 45245 | else |
| 45246 | GSAlphaDevice=pnmraw |
| 45247 | fi |
| 45248 | { $as_echo "$as_me:$LINENO: result: $GSAlphaDevice" >&5 |
| 45249 | $as_echo "$GSAlphaDevice" >&6; } |
| 45250 | |
| 45251 | # GSColorDevice |
| 45252 | { $as_echo "$as_me:$LINENO: checking for gs color device" >&5 |
| 45253 | $as_echo_n "checking for gs color device... " >&6; } |
| 45254 | if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 45255 | : |
| 45256 | else |
| 45257 | GSColorDevice=pnmraw |
| 45258 | fi |
| 45259 | { $as_echo "$as_me:$LINENO: result: $GSColorDevice" >&5 |
| 45260 | $as_echo "$GSColorDevice" >&6; } |
| 45261 | |
| 45262 | # GSCMYKDevice |
| 45263 | { $as_echo "$as_me:$LINENO: checking for gs CMYK device" >&5 |
| 45264 | $as_echo_n "checking for gs CMYK device... " >&6; } |
| 45265 | if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 45266 | : |
| 45267 | else |
| 45268 | GSCMYKDevice=bmpsep8 |
| 45269 | fi |
| 45270 | { $as_echo "$as_me:$LINENO: result: $GSCMYKDevice" >&5 |
| 45271 | $as_echo "$GSCMYKDevice" >&6; } |
| 45272 | |
| 45273 | # GSMonoDevice |
| 45274 | { $as_echo "$as_me:$LINENO: checking for gs mono device" >&5 |
| 45275 | $as_echo_n "checking for gs mono device... " >&6; } |
| 45276 | if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 45277 | : |
| 45278 | else |
| 45279 | GSMonoDevice=$GSColorDevice |
| 45280 | fi |
| 45281 | { $as_echo "$as_me:$LINENO: result: $GSMonoDevice" >&5 |
| 45282 | $as_echo "$GSMonoDevice" >&6; } |
| 45283 | |
| 45284 | # GSPDFDevice |
| 45285 | { $as_echo "$as_me:$LINENO: checking for gs PDF writing device" >&5 |
| 45286 | $as_echo_n "checking for gs PDF writing device... " >&6; } |
| 45287 | if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 45288 | : |
| 45289 | else |
| 45290 | GSPDFDevice=nodevice |
| 45291 | fi |
| 45292 | { $as_echo "$as_me:$LINENO: result: $GSPDFDevice" >&5 |
| 45293 | $as_echo "$GSPDFDevice" >&6; } |
| 45294 | |
| 45295 | # GSPSDevice |
| 45296 | { $as_echo "$as_me:$LINENO: checking for gs PS writing device" >&5 |
| 45297 | $as_echo_n "checking for gs PS writing device... " >&6; } |
| 45298 | if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 45299 | : |
| 45300 | else |
| 45301 | GSPSDevice=nodevice |
| 45302 | fi |
| 45303 | { $as_echo "$as_me:$LINENO: result: $GSPSDevice" >&5 |
| 45304 | $as_echo "$GSPSDevice" >&6; } |
| 45305 | |
| 45306 | # GSEPSDevice |
| 45307 | { $as_echo "$as_me:$LINENO: checking for gs EPS writing device" >&5 |
| 45308 | $as_echo_n "checking for gs EPS writing device... " >&6; } |
| 45309 | if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 45310 | : |
| 45311 | else |
| 45312 | GSEPSDevice=nodevice |
| 45313 | fi |
| 45314 | { $as_echo "$as_me:$LINENO: result: $GSEPSDevice" >&5 |
| 45315 | $as_echo "$GSEPSDevice" >&6; } |
| 45316 | fi |
| 45317 | |
| 45318 | |
| 45319 | |
| 45320 | |
| 45321 | |
| 45322 | |
| 45323 | |
| 45324 | |
| 45325 | |
| 45326 | |
| 45327 | # |
| 45328 | # PerlMagick-related configuration |
| 45329 | # |
| 45330 | |
| 45331 | # Look for PERL if PerlMagick requested |
| 45332 | # If name/path of desired PERL interpreter is specified, look for that one first |
| 45333 | have_perl='no' |
| 45334 | if test "$with_perl" != 'no'; then |
| 45335 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 45336 | $as_echo "-------------------------------------------------------------" >&6; } |
| 45337 | { $as_echo "$as_me:$LINENO: checking for Perl" >&5 |
| 45338 | $as_echo_n "checking for Perl... " >&6; } |
| 45339 | { $as_echo "$as_me:$LINENO: result: " >&5 |
| 45340 | $as_echo "" >&6; } |
| 45341 | if test "$with_perl" != 'yes'; then |
| 45342 | { $as_echo "$as_me:$LINENO: checking for perl" >&5 |
| 45343 | $as_echo_n "checking for perl... " >&6; } |
| 45344 | if test "${ac_cv_path_PERL+set}" = set; then |
| 45345 | $as_echo_n "(cached) " >&6 |
| 45346 | else |
| 45347 | ac_cv_path_PERL="$with_perl" |
| 45348 | fi |
| 45349 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_PERL" >&5 |
| 45350 | $as_echo "$ac_cv_path_PERL" >&6; }; |
| 45351 | PERL=$ac_cv_path_PERL |
| 45352 | have_perl="$ac_cv_path_PERL" |
| 45353 | else |
| 45354 | for ac_prog in perl perl5 |
| 45355 | do |
| 45356 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 45357 | set dummy $ac_prog; ac_word=$2 |
| 45358 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 45359 | $as_echo_n "checking for $ac_word... " >&6; } |
| 45360 | if test "${ac_cv_path_PERL+set}" = set; then |
| 45361 | $as_echo_n "(cached) " >&6 |
| 45362 | else |
| 45363 | case $PERL in |
| 45364 | [\\/]* | ?:[\\/]*) |
| 45365 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 45366 | ;; |
| 45367 | *) |
| 45368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 45369 | for as_dir in $PATH |
| 45370 | do |
| 45371 | IFS=$as_save_IFS |
| 45372 | test -z "$as_dir" && as_dir=. |
| 45373 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 45374 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 45375 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 45376 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 45377 | break 2 |
| 45378 | fi |
| 45379 | done |
| 45380 | done |
| 45381 | IFS=$as_save_IFS |
| 45382 | |
| 45383 | ;; |
| 45384 | esac |
| 45385 | fi |
| 45386 | PERL=$ac_cv_path_PERL |
| 45387 | if test -n "$PERL"; then |
| 45388 | { $as_echo "$as_me:$LINENO: result: $PERL" >&5 |
| 45389 | $as_echo "$PERL" >&6; } |
| 45390 | else |
| 45391 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 45392 | $as_echo "no" >&6; } |
| 45393 | fi |
| 45394 | |
| 45395 | |
| 45396 | test -n "$PERL" && break |
| 45397 | done |
| 45398 | if test "$ac_cv_path_PERL"; then |
| 45399 | have_perl="$ac_cv_path_PERL" |
| 45400 | fi |
| 45401 | fi |
| 45402 | fi |
| 45403 | |
| 45404 | with_perl_static='no' |
| 45405 | with_perl_dynamic='no' |
| 45406 | if test "$have_perl" != 'no'; then |
| 45407 | if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then |
| 45408 | with_perl_static='yes' |
| 45409 | fi |
| 45410 | if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then |
| 45411 | with_perl_dynamic='yes' |
| 45412 | fi |
| 45413 | # Is PERL's MakeMaker new enough to support DESTDIR? |
| 45414 | # Make sure we have perl |
| 45415 | if test -z "$PERL"; then |
| 45416 | # Extract the first word of "perl", so it can be a program name with args. |
| 45417 | set dummy perl; ac_word=$2 |
| 45418 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 45419 | $as_echo_n "checking for $ac_word... " >&6; } |
| 45420 | if test "${ac_cv_prog_PERL+set}" = set; then |
| 45421 | $as_echo_n "(cached) " >&6 |
| 45422 | else |
| 45423 | if test -n "$PERL"; then |
| 45424 | ac_cv_prog_PERL="$PERL" # Let the user override the test. |
| 45425 | else |
| 45426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 45427 | for as_dir in $PATH |
| 45428 | do |
| 45429 | IFS=$as_save_IFS |
| 45430 | test -z "$as_dir" && as_dir=. |
| 45431 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 45432 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 45433 | ac_cv_prog_PERL="perl" |
| 45434 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 45435 | break 2 |
| 45436 | fi |
| 45437 | done |
| 45438 | done |
| 45439 | IFS=$as_save_IFS |
| 45440 | |
| 45441 | fi |
| 45442 | fi |
| 45443 | PERL=$ac_cv_prog_PERL |
| 45444 | if test -n "$PERL"; then |
| 45445 | { $as_echo "$as_me:$LINENO: result: $PERL" >&5 |
| 45446 | $as_echo "$PERL" >&6; } |
| 45447 | else |
| 45448 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 45449 | $as_echo "no" >&6; } |
| 45450 | fi |
| 45451 | |
| 45452 | |
| 45453 | fi |
| 45454 | |
| 45455 | # Check if version of Perl is sufficient |
| 45456 | ac_perl_version="5.8.1" |
| 45457 | |
| 45458 | if test "x$PERL" != "x"; then |
| 45459 | { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5 |
| 45460 | $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; } |
| 45461 | # NB: It would be nice to log the error if there is one, but we cannot rely |
| 45462 | # on autoconf internals |
| 45463 | $PERL -e "use $ac_perl_version;" > /dev/null 2>&1 |
| 45464 | if test $? -ne 0; then |
| 45465 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
| 45466 | $as_echo "no" >&6; }; |
| 45467 | PERL_SUPPORTS_DESTDIR='no' |
| 45468 | else |
| 45469 | { $as_echo "$as_me:$LINENO: result: ok" >&5 |
| 45470 | $as_echo "ok" >&6; }; |
| 45471 | PERL_SUPPORTS_DESTDIR='yes' |
| 45472 | fi |
| 45473 | else |
| 45474 | { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5 |
| 45475 | $as_echo "$as_me: WARNING: could not find perl" >&2;} |
| 45476 | fi |
| 45477 | |
| 45478 | fi |
| 45479 | if test "$have_perl" != 'no'; then |
| 45480 | WITH_PERL_TRUE= |
| 45481 | WITH_PERL_FALSE='#' |
| 45482 | else |
| 45483 | WITH_PERL_TRUE='#' |
| 45484 | WITH_PERL_FALSE= |
| 45485 | fi |
| 45486 | |
| 45487 | if test $with_perl_static = 'yes'; then |
| 45488 | WITH_PERL_STATIC_TRUE= |
| 45489 | WITH_PERL_STATIC_FALSE='#' |
| 45490 | else |
| 45491 | WITH_PERL_STATIC_TRUE='#' |
| 45492 | WITH_PERL_STATIC_FALSE= |
| 45493 | fi |
| 45494 | |
| 45495 | if test $with_perl_dynamic = 'yes'; then |
| 45496 | WITH_PERL_DYNAMIC_TRUE= |
| 45497 | WITH_PERL_DYNAMIC_FALSE='#' |
| 45498 | else |
| 45499 | WITH_PERL_DYNAMIC_TRUE='#' |
| 45500 | WITH_PERL_DYNAMIC_FALSE= |
| 45501 | fi |
| 45502 | |
| 45503 | |
| 45504 | |
| 45505 | # Determine path to pick up MagickCore library from for use with building PerlMagick |
| 45506 | MAGICKCORE_PATH="${LIB_DIR}" |
| 45507 | if test $with_perl_static = 'yes'; then |
| 45508 | # Find out where libtool hides its uninstalled libraries (as libtool_objdir) |
| 45509 | libtool_objdir=$objdir |
| 45510 | |
| 45511 | # Linker search path to library, followed by -lMagickCore |
| 45512 | MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}" |
| 45513 | fi |
| 45514 | |
| 45515 | |
| 45516 | # Create a simple string containing format names for all delegate libraries |
| 45517 | DELEGATES='' |
| 45518 | if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi |
| 45519 | if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi |
| 45520 | if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi |
| 45521 | if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi |
| 45522 | if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi |
| 45523 | if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi |
| 45524 | if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi |
| 45525 | if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi |
| 45526 | if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi |
| 45527 | if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi |
| 45528 | if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi |
| 45529 | if test "$have_jpeg" = 'yes'; then |
| 45530 | DELEGATES="$DELEGATES jpeg"; |
| 45531 | if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi |
| 45532 | fi |
| 45533 | if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi |
| 45534 | if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi |
| 45535 | if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi |
| 45536 | if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi |
| 45537 | if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi |
| 45538 | if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi |
| 45539 | if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi |
| 45540 | if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi |
| 45541 | if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi |
| 45542 | if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi |
| 45543 | if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi |
| 45544 | if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi |
| 45545 | |
| 45546 | |
| 45547 | |
| 45548 | # |
| 45549 | # Handle special compiler flags |
| 45550 | # |
| 45551 | |
| 45552 | # Add '-p' if prof source profiling support enabled |
| 45553 | if test "$enable_prof" = 'yes'; then |
| 45554 | CFLAGS="-p $CFLAGS" |
| 45555 | CXXFLAGS="-p $CXXFLAGS" |
| 45556 | LDFLAGS="-p $LDFLAGS" |
| 45557 | fi |
| 45558 | |
| 45559 | # Add '-pg' if gprof source profiling support enabled |
| 45560 | if test "$enable_gprof" = 'yes'; then |
| 45561 | CFLAGS="-pg $CFLAGS" |
| 45562 | CXXFLAGS="-pg $CXXFLAGS" |
| 45563 | LDFLAGS="-pg $LDFLAGS" |
| 45564 | fi |
| 45565 | |
| 45566 | # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled |
| 45567 | # This is a gcc-specific feature |
| 45568 | if test "$enable_gcov" = 'yes'; then |
| 45569 | |
| 45570 | { $as_echo "$as_me:$LINENO: checking for _gcov_init in -lgcov" >&5 |
| 45571 | $as_echo_n "checking for _gcov_init in -lgcov... " >&6; } |
| 45572 | if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then |
| 45573 | $as_echo_n "(cached) " >&6 |
| 45574 | else |
| 45575 | ac_check_lib_save_LIBS=$LIBS |
| 45576 | LIBS="-lgcov $LIBS" |
| 45577 | cat >conftest.$ac_ext <<_ACEOF |
| 45578 | /* confdefs.h. */ |
| 45579 | _ACEOF |
| 45580 | cat confdefs.h >>conftest.$ac_ext |
| 45581 | cat >>conftest.$ac_ext <<_ACEOF |
| 45582 | /* end confdefs.h. */ |
| 45583 | |
| 45584 | /* Override any GCC internal prototype to avoid an error. |
| 45585 | Use char because int might match the return type of a GCC |
| 45586 | builtin and then its argument prototype would still apply. */ |
| 45587 | #ifdef __cplusplus |
| 45588 | extern "C" |
| 45589 | #endif |
| 45590 | char _gcov_init (); |
| 45591 | int |
| 45592 | main () |
| 45593 | { |
| 45594 | return _gcov_init (); |
| 45595 | ; |
| 45596 | return 0; |
| 45597 | } |
| 45598 | _ACEOF |
| 45599 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 45600 | if { (ac_try="$ac_link" |
| 45601 | case "(($ac_try" in |
| 45602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 45603 | *) ac_try_echo=$ac_try;; |
| 45604 | esac |
| 45605 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 45606 | $as_echo "$ac_try_echo") >&5 |
| 45607 | (eval "$ac_link") 2>conftest.er1 |
| 45608 | ac_status=$? |
| 45609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 45610 | rm -f conftest.er1 |
| 45611 | cat conftest.err >&5 |
| 45612 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 45613 | (exit $ac_status); } && { |
| 45614 | test -z "$ac_c_werror_flag" || |
| 45615 | test ! -s conftest.err |
| 45616 | } && test -s conftest$ac_exeext && { |
| 45617 | test "$cross_compiling" = yes || |
| 45618 | $as_test_x conftest$ac_exeext |
| 45619 | }; then |
| 45620 | ac_cv_lib_gcov__gcov_init=yes |
| 45621 | else |
| 45622 | $as_echo "$as_me: failed program was:" >&5 |
| 45623 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 45624 | |
| 45625 | ac_cv_lib_gcov__gcov_init=no |
| 45626 | fi |
| 45627 | |
| 45628 | rm -rf conftest.dSYM |
| 45629 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 45630 | conftest$ac_exeext conftest.$ac_ext |
| 45631 | LIBS=$ac_check_lib_save_LIBS |
| 45632 | fi |
| 45633 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gcov__gcov_init" >&5 |
| 45634 | $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; } |
| 45635 | if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then |
| 45636 | cat >>confdefs.h <<_ACEOF |
| 45637 | #define HAVE_LIBGCOV 1 |
| 45638 | _ACEOF |
| 45639 | |
| 45640 | LIBS="-lgcov $LIBS" |
| 45641 | |
| 45642 | fi |
| 45643 | |
| 45644 | |
| 45645 | { $as_echo "$as_me:$LINENO: checking for __gcov_init in -lgcov" >&5 |
| 45646 | $as_echo_n "checking for __gcov_init in -lgcov... " >&6; } |
| 45647 | if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then |
| 45648 | $as_echo_n "(cached) " >&6 |
| 45649 | else |
| 45650 | ac_check_lib_save_LIBS=$LIBS |
| 45651 | LIBS="-lgcov $LIBS" |
| 45652 | cat >conftest.$ac_ext <<_ACEOF |
| 45653 | /* confdefs.h. */ |
| 45654 | _ACEOF |
| 45655 | cat confdefs.h >>conftest.$ac_ext |
| 45656 | cat >>conftest.$ac_ext <<_ACEOF |
| 45657 | /* end confdefs.h. */ |
| 45658 | |
| 45659 | /* Override any GCC internal prototype to avoid an error. |
| 45660 | Use char because int might match the return type of a GCC |
| 45661 | builtin and then its argument prototype would still apply. */ |
| 45662 | #ifdef __cplusplus |
| 45663 | extern "C" |
| 45664 | #endif |
| 45665 | char __gcov_init (); |
| 45666 | int |
| 45667 | main () |
| 45668 | { |
| 45669 | return __gcov_init (); |
| 45670 | ; |
| 45671 | return 0; |
| 45672 | } |
| 45673 | _ACEOF |
| 45674 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 45675 | if { (ac_try="$ac_link" |
| 45676 | case "(($ac_try" in |
| 45677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 45678 | *) ac_try_echo=$ac_try;; |
| 45679 | esac |
| 45680 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 45681 | $as_echo "$ac_try_echo") >&5 |
| 45682 | (eval "$ac_link") 2>conftest.er1 |
| 45683 | ac_status=$? |
| 45684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 45685 | rm -f conftest.er1 |
| 45686 | cat conftest.err >&5 |
| 45687 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 45688 | (exit $ac_status); } && { |
| 45689 | test -z "$ac_c_werror_flag" || |
| 45690 | test ! -s conftest.err |
| 45691 | } && test -s conftest$ac_exeext && { |
| 45692 | test "$cross_compiling" = yes || |
| 45693 | $as_test_x conftest$ac_exeext |
| 45694 | }; then |
| 45695 | ac_cv_lib_gcov___gcov_init=yes |
| 45696 | else |
| 45697 | $as_echo "$as_me: failed program was:" >&5 |
| 45698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 45699 | |
| 45700 | ac_cv_lib_gcov___gcov_init=no |
| 45701 | fi |
| 45702 | |
| 45703 | rm -rf conftest.dSYM |
| 45704 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 45705 | conftest$ac_exeext conftest.$ac_ext |
| 45706 | LIBS=$ac_check_lib_save_LIBS |
| 45707 | fi |
| 45708 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gcov___gcov_init" >&5 |
| 45709 | $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; } |
| 45710 | if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then |
| 45711 | cat >>confdefs.h <<_ACEOF |
| 45712 | #define HAVE_LIBGCOV 1 |
| 45713 | _ACEOF |
| 45714 | |
| 45715 | LIBS="-lgcov $LIBS" |
| 45716 | |
| 45717 | fi |
| 45718 | |
| 45719 | case "$target_os" in |
| 45720 | darwin*) |
| 45721 | OSX_GCOV_LDFLAG="-Wl,-single_module" |
| 45722 | ;; |
| 45723 | *) |
| 45724 | OSX_GCOV_LDFLAG="" |
| 45725 | ;; |
| 45726 | esac |
| 45727 | |
| 45728 | CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS" |
| 45729 | CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS" |
| 45730 | LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS" |
| 45731 | fi |
| 45732 | |
| 45733 | # |
| 45734 | # Build library dependency list for libMagickCore |
| 45735 | # |
| 45736 | |
| 45737 | MAGICK_LIBLTDL='' # Libltdl for build |
| 45738 | MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build |
| 45739 | MAGICK_LTDLDEPS='' # extra libltdl dependencies |
| 45740 | if test "$with_ltdl" != 'no' |
| 45741 | then |
| 45742 | if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then |
| 45743 | MAGICK_API_LIBLTDL='-lltdl' |
| 45744 | fi |
| 45745 | MAGICK_LIBLTDL=${LIBLTDL} |
| 45746 | MAGICK_LTDLDEPS=${LTDLDEPS} |
| 45747 | fi |
| 45748 | |
| 45749 | |
| 45750 | |
| 45751 | if test "$with_modules" != 'no'; then |
| 45752 | MAGICK_DEP_LIBS="$LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $THREAD_LIBS" |
| 45753 | else |
| 45754 | MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $BZLIB_LIBS $OPENEXR_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $THREAD_LIBS" |
| 45755 | fi |
| 45756 | |
| 45757 | |
| 45758 | # |
| 45759 | # Remove extraneous spaces from output variables (asthetic) |
| 45760 | # |
| 45761 | X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'` |
| 45762 | X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'` |
| 45763 | X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'` |
| 45764 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'` |
| 45765 | |
| 45766 | CC=`echo $CC | sed -e 's/ */ /g'` |
| 45767 | CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'` |
| 45768 | CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'` |
| 45769 | CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'` |
| 45770 | DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'` |
| 45771 | DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'` |
| 45772 | LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'` |
| 45773 | TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'` |
| 45774 | MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'` |
| 45775 | #LIBS=`echo $LIBS | sed -e 's/ */ /g'` |
| 45776 | |
| 45777 | # Pass only user-provided LIBS as "global" libraries |
| 45778 | LIBS=$USER_LIBS |
| 45779 | |
| 45780 | #AC_SUBST(CPPFLAGS) |
| 45781 | |
| 45782 | #AC_SUBST(LDFLAGS) |
| 45783 | #AC_SUBST(X_PRE_LIBS) |
| 45784 | #AC_SUBST(X_LIBS) |
| 45785 | #AC_SUBST(X_EXTRA_LIBS) |
| 45786 | |
| 45787 | MAGICK_CFLAGS=$CFLAGS |
| 45788 | MAGICK_CXXFLAGS="$CXXFLAGS" |
| 45789 | MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'` |
| 45790 | MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'` |
| 45791 | MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS" |
| 45792 | MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL" |
| 45793 | |
| 45794 | |
| 45795 | |
| 45796 | |
| 45797 | |
| 45798 | |
| 45799 | |
| 45800 | |
| 45801 | # Set configured scripts to executable. |
| 45802 | ac_config_commands="$ac_config_commands default" |
| 45803 | |
| 45804 | ac_config_commands="$ac_config_commands MagickCore-config.in" |
| 45805 | |
| 45806 | ac_config_commands="$ac_config_commands Magick-config.in" |
| 45807 | |
| 45808 | ac_config_commands="$ac_config_commands MagickWand-config.in" |
| 45809 | |
| 45810 | ac_config_commands="$ac_config_commands Wand-config.in" |
| 45811 | |
| 45812 | ac_config_commands="$ac_config_commands Magick++-config.in" |
| 45813 | |
| 45814 | ac_config_commands="$ac_config_commands PerlMagick/check.sh.in" |
| 45815 | |
| 45816 | |
| 45817 | { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5 |
| 45818 | $as_echo "-------------------------------------------------------------" >&6; } |
| 45819 | { $as_echo "$as_me:$LINENO: result: Update ImageMagick configuration" >&5 |
| 45820 | $as_echo "Update ImageMagick configuration" >&6; } |
| 45821 | cat >confcache <<\_ACEOF |
| 45822 | # This file is a shell script that caches the results of configure |
| 45823 | # tests run on this system so they can be shared between configure |
| 45824 | # scripts and configure runs, see configure's option --config-cache. |
| 45825 | # It is not useful on other systems. If it contains results you don't |
| 45826 | # want to keep, you may remove or edit it. |
| 45827 | # |
| 45828 | # config.status only pays attention to the cache file if you give it |
| 45829 | # the --recheck option to rerun configure. |
| 45830 | # |
| 45831 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 45832 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 45833 | # following values. |
| 45834 | |
| 45835 | _ACEOF |
| 45836 | |
| 45837 | # The following way of writing the cache mishandles newlines in values, |
| 45838 | # but we know of no workaround that is simple, portable, and efficient. |
| 45839 | # So, we kill variables containing newlines. |
| 45840 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 45841 | # and sets the high bit in the cache file unless we assign to the vars. |
| 45842 | ( |
| 45843 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 45844 | eval ac_val=\$$ac_var |
| 45845 | case $ac_val in #( |
| 45846 | *${as_nl}*) |
| 45847 | case $ac_var in #( |
| 45848 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 |
| 45849 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 45850 | esac |
| 45851 | case $ac_var in #( |
| 45852 | _ | IFS | as_nl) ;; #( |
| 45853 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 45854 | *) $as_unset $ac_var ;; |
| 45855 | esac ;; |
| 45856 | esac |
| 45857 | done |
| 45858 | |
| 45859 | (set) 2>&1 | |
| 45860 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 45861 | *${as_nl}ac_space=\ *) |
| 45862 | # `set' does not quote correctly, so add quotes (double-quote |
| 45863 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 45864 | sed -n \ |
| 45865 | "s/'/'\\\\''/g; |
| 45866 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 45867 | ;; #( |
| 45868 | *) |
| 45869 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 45870 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 45871 | ;; |
| 45872 | esac | |
| 45873 | sort |
| 45874 | ) | |
| 45875 | sed ' |
| 45876 | /^ac_cv_env_/b end |
| 45877 | t clear |
| 45878 | :clear |
| 45879 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 45880 | t end |
| 45881 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 45882 | :end' >>confcache |
| 45883 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 45884 | if test -w "$cache_file"; then |
| 45885 | test "x$cache_file" != "x/dev/null" && |
| 45886 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 45887 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 45888 | cat confcache >$cache_file |
| 45889 | else |
| 45890 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 45891 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 45892 | fi |
| 45893 | fi |
| 45894 | rm -f confcache |
| 45895 | |
| 45896 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 45897 | # Let make expand exec_prefix. |
| 45898 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 45899 | |
| 45900 | DEFS=-DHAVE_CONFIG_H |
| 45901 | |
| 45902 | ac_libobjs= |
| 45903 | ac_ltlibobjs= |
| 45904 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 45905 | # 1. Remove the extension, and $U if already installed. |
| 45906 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 45907 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 45908 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 45909 | # will be set to the directory where LIBOBJS objects are built. |
| 45910 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 45911 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
| 45912 | done |
| 45913 | LIBOBJS=$ac_libobjs |
| 45914 | |
| 45915 | LTLIBOBJS=$ac_ltlibobjs |
| 45916 | |
| 45917 | |
| 45918 | if test -n "$EXEEXT"; then |
| 45919 | am__EXEEXT_TRUE= |
| 45920 | am__EXEEXT_FALSE='#' |
| 45921 | else |
| 45922 | am__EXEEXT_TRUE='#' |
| 45923 | am__EXEEXT_FALSE= |
| 45924 | fi |
| 45925 | |
| 45926 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 45927 | { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 45928 | Usually this means the macro was only invoked conditionally." >&5 |
| 45929 | $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 45930 | Usually this means the macro was only invoked conditionally." >&2;} |
| 45931 | { (exit 1); exit 1; }; } |
| 45932 | fi |
| 45933 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 45934 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 45935 | Usually this means the macro was only invoked conditionally." >&5 |
| 45936 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 45937 | Usually this means the macro was only invoked conditionally." >&2;} |
| 45938 | { (exit 1); exit 1; }; } |
| 45939 | fi |
| 45940 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 45941 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
| 45942 | Usually this means the macro was only invoked conditionally." >&5 |
| 45943 | $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
| 45944 | Usually this means the macro was only invoked conditionally." >&2;} |
| 45945 | { (exit 1); exit 1; }; } |
| 45946 | fi |
| 45947 | if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then |
| 45948 | { { $as_echo "$as_me:$LINENO: error: conditional \"WINGDI32_DELEGATE\" was never defined. |
| 45949 | Usually this means the macro was only invoked conditionally." >&5 |
| 45950 | $as_echo "$as_me: error: conditional \"WINGDI32_DELEGATE\" was never defined. |
| 45951 | Usually this means the macro was only invoked conditionally." >&2;} |
| 45952 | { (exit 1); exit 1; }; } |
| 45953 | fi |
| 45954 | if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then |
| 45955 | { { $as_echo "$as_me:$LINENO: error: conditional \"WIN32_NATIVE_BUILD\" was never defined. |
| 45956 | Usually this means the macro was only invoked conditionally." >&5 |
| 45957 | $as_echo "$as_me: error: conditional \"WIN32_NATIVE_BUILD\" was never defined. |
| 45958 | Usually this means the macro was only invoked conditionally." >&2;} |
| 45959 | { (exit 1); exit 1; }; } |
| 45960 | fi |
| 45961 | if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then |
| 45962 | { { $as_echo "$as_me:$LINENO: error: conditional \"CYGWIN_BUILD\" was never defined. |
| 45963 | Usually this means the macro was only invoked conditionally." >&5 |
| 45964 | $as_echo "$as_me: error: conditional \"CYGWIN_BUILD\" was never defined. |
| 45965 | Usually this means the macro was only invoked conditionally." >&2;} |
| 45966 | { (exit 1); exit 1; }; } |
| 45967 | fi |
| 45968 | if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then |
| 45969 | { { $as_echo "$as_me:$LINENO: error: conditional \"USING_CL\" was never defined. |
| 45970 | Usually this means the macro was only invoked conditionally." >&5 |
| 45971 | $as_echo "$as_me: error: conditional \"USING_CL\" was never defined. |
| 45972 | Usually this means the macro was only invoked conditionally." >&2;} |
| 45973 | { (exit 1); exit 1; }; } |
| 45974 | fi |
| 45975 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 45976 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
| 45977 | Usually this means the macro was only invoked conditionally." >&5 |
| 45978 | $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
| 45979 | Usually this means the macro was only invoked conditionally." >&2;} |
| 45980 | { (exit 1); exit 1; }; } |
| 45981 | fi |
| 45982 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 45983 | { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 45984 | Usually this means the macro was only invoked conditionally." >&5 |
| 45985 | $as_echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 45986 | Usually this means the macro was only invoked conditionally." >&2;} |
| 45987 | { (exit 1); exit 1; }; } |
| 45988 | fi |
| 45989 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 45990 | { { $as_echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 45991 | Usually this means the macro was only invoked conditionally." >&5 |
| 45992 | $as_echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 45993 | Usually this means the macro was only invoked conditionally." >&2;} |
| 45994 | { (exit 1); exit 1; }; } |
| 45995 | fi |
| 45996 | LT_CONFIG_H=config/config.h |
| 45997 | |
| 45998 | _ltdl_libobjs= |
| 45999 | _ltdl_ltlibobjs= |
| 46000 | if test -n "$_LT_LIBOBJS"; then |
| 46001 | # Remove the extension. |
| 46002 | _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' |
| 46003 | for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do |
| 46004 | _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" |
| 46005 | _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" |
| 46006 | done |
| 46007 | fi |
| 46008 | ltdl_LIBOBJS=$_ltdl_libobjs |
| 46009 | |
| 46010 | ltdl_LTLIBOBJS=$_ltdl_ltlibobjs |
| 46011 | |
| 46012 | |
| 46013 | if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then |
| 46014 | { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_MODULES\" was never defined. |
| 46015 | Usually this means the macro was only invoked conditionally." >&5 |
| 46016 | $as_echo "$as_me: error: conditional \"WITH_MODULES\" was never defined. |
| 46017 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46018 | { (exit 1); exit 1; }; } |
| 46019 | fi |
| 46020 | if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then |
| 46021 | { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_LTDL\" was never defined. |
| 46022 | Usually this means the macro was only invoked conditionally." >&5 |
| 46023 | $as_echo "$as_me: error: conditional \"WITH_LTDL\" was never defined. |
| 46024 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46025 | { (exit 1); exit 1; }; } |
| 46026 | fi |
| 46027 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 46028 | { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 46029 | Usually this means the macro was only invoked conditionally." >&5 |
| 46030 | $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
| 46031 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46032 | { (exit 1); exit 1; }; } |
| 46033 | fi |
| 46034 | |
| 46035 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 46036 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
| 46037 | Usually this means the macro was only invoked conditionally." >&5 |
| 46038 | $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
| 46039 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46040 | { (exit 1); exit 1; }; } |
| 46041 | fi |
| 46042 | if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then |
| 46043 | { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined. |
| 46044 | Usually this means the macro was only invoked conditionally." >&5 |
| 46045 | $as_echo "$as_me: error: conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined. |
| 46046 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46047 | { (exit 1); exit 1; }; } |
| 46048 | fi |
| 46049 | if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then |
| 46050 | { { $as_echo "$as_me:$LINENO: error: conditional \"HasUMEM\" was never defined. |
| 46051 | Usually this means the macro was only invoked conditionally." >&5 |
| 46052 | $as_echo "$as_me: error: conditional \"HasUMEM\" was never defined. |
| 46053 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46054 | { (exit 1); exit 1; }; } |
| 46055 | fi |
| 46056 | if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then |
| 46057 | { { $as_echo "$as_me:$LINENO: error: conditional \"BZLIB_DELEGATE\" was never defined. |
| 46058 | Usually this means the macro was only invoked conditionally." >&5 |
| 46059 | $as_echo "$as_me: error: conditional \"BZLIB_DELEGATE\" was never defined. |
| 46060 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46061 | { (exit 1); exit 1; }; } |
| 46062 | fi |
| 46063 | if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then |
| 46064 | { { $as_echo "$as_me:$LINENO: error: conditional \"X11_DELEGATE\" was never defined. |
| 46065 | Usually this means the macro was only invoked conditionally." >&5 |
| 46066 | $as_echo "$as_me: error: conditional \"X11_DELEGATE\" was never defined. |
| 46067 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46068 | { (exit 1); exit 1; }; } |
| 46069 | fi |
| 46070 | if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then |
| 46071 | { { $as_echo "$as_me:$LINENO: error: conditional \"ZLIB_DELEGATE\" was never defined. |
| 46072 | Usually this means the macro was only invoked conditionally." >&5 |
| 46073 | $as_echo "$as_me: error: conditional \"ZLIB_DELEGATE\" was never defined. |
| 46074 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46075 | { (exit 1); exit 1; }; } |
| 46076 | fi |
| 46077 | if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then |
| 46078 | { { $as_echo "$as_me:$LINENO: error: conditional \"AUTOTRACE_DELEGATE\" was never defined. |
| 46079 | Usually this means the macro was only invoked conditionally." >&5 |
| 46080 | $as_echo "$as_me: error: conditional \"AUTOTRACE_DELEGATE\" was never defined. |
| 46081 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46082 | { (exit 1); exit 1; }; } |
| 46083 | fi |
| 46084 | if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then |
| 46085 | { { $as_echo "$as_me:$LINENO: error: conditional \"DPS_DELEGATE\" was never defined. |
| 46086 | Usually this means the macro was only invoked conditionally." >&5 |
| 46087 | $as_echo "$as_me: error: conditional \"DPS_DELEGATE\" was never defined. |
| 46088 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46089 | { (exit 1); exit 1; }; } |
| 46090 | fi |
| 46091 | if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then |
| 46092 | { { $as_echo "$as_me:$LINENO: error: conditional \"DJVU_DELEGATE\" was never defined. |
| 46093 | Usually this means the macro was only invoked conditionally." >&5 |
| 46094 | $as_echo "$as_me: error: conditional \"DJVU_DELEGATE\" was never defined. |
| 46095 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46096 | { (exit 1); exit 1; }; } |
| 46097 | fi |
| 46098 | if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then |
| 46099 | { { $as_echo "$as_me:$LINENO: error: conditional \"FFTW_DELEGATE\" was never defined. |
| 46100 | Usually this means the macro was only invoked conditionally." >&5 |
| 46101 | $as_echo "$as_me: error: conditional \"FFTW_DELEGATE\" was never defined. |
| 46102 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46103 | { (exit 1); exit 1; }; } |
| 46104 | fi |
| 46105 | if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then |
| 46106 | { { $as_echo "$as_me:$LINENO: error: conditional \"FPX_DELEGATE\" was never defined. |
| 46107 | Usually this means the macro was only invoked conditionally." >&5 |
| 46108 | $as_echo "$as_me: error: conditional \"FPX_DELEGATE\" was never defined. |
| 46109 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46110 | { (exit 1); exit 1; }; } |
| 46111 | fi |
| 46112 | if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then |
| 46113 | { { $as_echo "$as_me:$LINENO: error: conditional \"FONTCONFIG_DELEGATE\" was never defined. |
| 46114 | Usually this means the macro was only invoked conditionally." >&5 |
| 46115 | $as_echo "$as_me: error: conditional \"FONTCONFIG_DELEGATE\" was never defined. |
| 46116 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46117 | { (exit 1); exit 1; }; } |
| 46118 | fi |
| 46119 | if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then |
| 46120 | { { $as_echo "$as_me:$LINENO: error: conditional \"FREETYPE_DELEGATE\" was never defined. |
| 46121 | Usually this means the macro was only invoked conditionally." >&5 |
| 46122 | $as_echo "$as_me: error: conditional \"FREETYPE_DELEGATE\" was never defined. |
| 46123 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46124 | { (exit 1); exit 1; }; } |
| 46125 | fi |
| 46126 | if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then |
| 46127 | { { $as_echo "$as_me:$LINENO: error: conditional \"GS_DELEGATE\" was never defined. |
| 46128 | Usually this means the macro was only invoked conditionally." >&5 |
| 46129 | $as_echo "$as_me: error: conditional \"GS_DELEGATE\" was never defined. |
| 46130 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46131 | { (exit 1); exit 1; }; } |
| 46132 | fi |
| 46133 | if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then |
| 46134 | { { $as_echo "$as_me:$LINENO: error: conditional \"GVC_DELEGATE\" was never defined. |
| 46135 | Usually this means the macro was only invoked conditionally." >&5 |
| 46136 | $as_echo "$as_me: error: conditional \"GVC_DELEGATE\" was never defined. |
| 46137 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46138 | { (exit 1); exit 1; }; } |
| 46139 | fi |
| 46140 | if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then |
| 46141 | { { $as_echo "$as_me:$LINENO: error: conditional \"JBIG_DELEGATE\" was never defined. |
| 46142 | Usually this means the macro was only invoked conditionally." >&5 |
| 46143 | $as_echo "$as_me: error: conditional \"JBIG_DELEGATE\" was never defined. |
| 46144 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46145 | { (exit 1); exit 1; }; } |
| 46146 | fi |
| 46147 | if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then |
| 46148 | { { $as_echo "$as_me:$LINENO: error: conditional \"JPEG_DELEGATE\" was never defined. |
| 46149 | Usually this means the macro was only invoked conditionally." >&5 |
| 46150 | $as_echo "$as_me: error: conditional \"JPEG_DELEGATE\" was never defined. |
| 46151 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46152 | { (exit 1); exit 1; }; } |
| 46153 | fi |
| 46154 | if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then |
| 46155 | { { $as_echo "$as_me:$LINENO: error: conditional \"JP2_DELEGATE\" was never defined. |
| 46156 | Usually this means the macro was only invoked conditionally." >&5 |
| 46157 | $as_echo "$as_me: error: conditional \"JP2_DELEGATE\" was never defined. |
| 46158 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46159 | { (exit 1); exit 1; }; } |
| 46160 | fi |
| 46161 | if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then |
| 46162 | { { $as_echo "$as_me:$LINENO: error: conditional \"LCMS_DELEGATE\" was never defined. |
| 46163 | Usually this means the macro was only invoked conditionally." >&5 |
| 46164 | $as_echo "$as_me: error: conditional \"LCMS_DELEGATE\" was never defined. |
| 46165 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46166 | { (exit 1); exit 1; }; } |
| 46167 | fi |
| 46168 | if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then |
| 46169 | { { $as_echo "$as_me:$LINENO: error: conditional \"LQR_DELEGATE\" was never defined. |
| 46170 | Usually this means the macro was only invoked conditionally." >&5 |
| 46171 | $as_echo "$as_me: error: conditional \"LQR_DELEGATE\" was never defined. |
| 46172 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46173 | { (exit 1); exit 1; }; } |
| 46174 | fi |
| 46175 | if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then |
| 46176 | { { $as_echo "$as_me:$LINENO: error: conditional \"OPENEXR_DELEGATE\" was never defined. |
| 46177 | Usually this means the macro was only invoked conditionally." >&5 |
| 46178 | $as_echo "$as_me: error: conditional \"OPENEXR_DELEGATE\" was never defined. |
| 46179 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46180 | { (exit 1); exit 1; }; } |
| 46181 | fi |
| 46182 | if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then |
| 46183 | { { $as_echo "$as_me:$LINENO: error: conditional \"PNG_DELEGATE\" was never defined. |
| 46184 | Usually this means the macro was only invoked conditionally." >&5 |
| 46185 | $as_echo "$as_me: error: conditional \"PNG_DELEGATE\" was never defined. |
| 46186 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46187 | { (exit 1); exit 1; }; } |
| 46188 | fi |
| 46189 | if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then |
| 46190 | { { $as_echo "$as_me:$LINENO: error: conditional \"RSVG_DELEGATE\" was never defined. |
| 46191 | Usually this means the macro was only invoked conditionally." >&5 |
| 46192 | $as_echo "$as_me: error: conditional \"RSVG_DELEGATE\" was never defined. |
| 46193 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46194 | { (exit 1); exit 1; }; } |
| 46195 | fi |
| 46196 | if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then |
| 46197 | { { $as_echo "$as_me:$LINENO: error: conditional \"CAIRO_DELEGATE\" was never defined. |
| 46198 | Usually this means the macro was only invoked conditionally." >&5 |
| 46199 | $as_echo "$as_me: error: conditional \"CAIRO_DELEGATE\" was never defined. |
| 46200 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46201 | { (exit 1); exit 1; }; } |
| 46202 | fi |
| 46203 | if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then |
| 46204 | { { $as_echo "$as_me:$LINENO: error: conditional \"TIFF_DELEGATE\" was never defined. |
| 46205 | Usually this means the macro was only invoked conditionally." >&5 |
| 46206 | $as_echo "$as_me: error: conditional \"TIFF_DELEGATE\" was never defined. |
| 46207 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46208 | { (exit 1); exit 1; }; } |
| 46209 | fi |
| 46210 | if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then |
| 46211 | { { $as_echo "$as_me:$LINENO: error: conditional \"WMF_DELEGATE\" was never defined. |
| 46212 | Usually this means the macro was only invoked conditionally." >&5 |
| 46213 | $as_echo "$as_me: error: conditional \"WMF_DELEGATE\" was never defined. |
| 46214 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46215 | { (exit 1); exit 1; }; } |
| 46216 | fi |
| 46217 | if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then |
| 46218 | { { $as_echo "$as_me:$LINENO: error: conditional \"XML_DELEGATE\" was never defined. |
| 46219 | Usually this means the macro was only invoked conditionally." >&5 |
| 46220 | $as_echo "$as_me: error: conditional \"XML_DELEGATE\" was never defined. |
| 46221 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46222 | { (exit 1); exit 1; }; } |
| 46223 | fi |
| 46224 | if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then |
| 46225 | { { $as_echo "$as_me:$LINENO: error: conditional \"RPM_DELEGATE\" was never defined. |
| 46226 | Usually this means the macro was only invoked conditionally." >&5 |
| 46227 | $as_echo "$as_me: error: conditional \"RPM_DELEGATE\" was never defined. |
| 46228 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46229 | { (exit 1); exit 1; }; } |
| 46230 | fi |
| 46231 | if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then |
| 46232 | { { $as_echo "$as_me:$LINENO: error: conditional \"P7ZIP_DELEGATE\" was never defined. |
| 46233 | Usually this means the macro was only invoked conditionally." >&5 |
| 46234 | $as_echo "$as_me: error: conditional \"P7ZIP_DELEGATE\" was never defined. |
| 46235 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46236 | { (exit 1); exit 1; }; } |
| 46237 | fi |
| 46238 | if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then |
| 46239 | { { $as_echo "$as_me:$LINENO: error: conditional \"ZIP_DELEGATE\" was never defined. |
| 46240 | Usually this means the macro was only invoked conditionally." >&5 |
| 46241 | $as_echo "$as_me: error: conditional \"ZIP_DELEGATE\" was never defined. |
| 46242 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46243 | { (exit 1); exit 1; }; } |
| 46244 | fi |
| 46245 | if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then |
| 46246 | { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL\" was never defined. |
| 46247 | Usually this means the macro was only invoked conditionally." >&5 |
| 46248 | $as_echo "$as_me: error: conditional \"WITH_PERL\" was never defined. |
| 46249 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46250 | { (exit 1); exit 1; }; } |
| 46251 | fi |
| 46252 | if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then |
| 46253 | { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL_STATIC\" was never defined. |
| 46254 | Usually this means the macro was only invoked conditionally." >&5 |
| 46255 | $as_echo "$as_me: error: conditional \"WITH_PERL_STATIC\" was never defined. |
| 46256 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46257 | { (exit 1); exit 1; }; } |
| 46258 | fi |
| 46259 | if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then |
| 46260 | { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL_DYNAMIC\" was never defined. |
| 46261 | Usually this means the macro was only invoked conditionally." >&5 |
| 46262 | $as_echo "$as_me: error: conditional \"WITH_PERL_DYNAMIC\" was never defined. |
| 46263 | Usually this means the macro was only invoked conditionally." >&2;} |
| 46264 | { (exit 1); exit 1; }; } |
| 46265 | fi |
| 46266 | |
| 46267 | : ${CONFIG_STATUS=./config.status} |
| 46268 | ac_write_fail=0 |
| 46269 | ac_clean_files_save=$ac_clean_files |
| 46270 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 46271 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 46272 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 46273 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 46274 | #! $SHELL |
| 46275 | # Generated by $as_me. |
| 46276 | # Run this file to recreate the current configuration. |
| 46277 | # Compiler output produced by configure, useful for debugging |
| 46278 | # configure, is in config.log if it exists. |
| 46279 | |
| 46280 | debug=false |
| 46281 | ac_cs_recheck=false |
| 46282 | ac_cs_silent=false |
| 46283 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 46284 | _ACEOF |
| 46285 | |
| 46286 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 46287 | ## --------------------- ## |
| 46288 | ## M4sh Initialization. ## |
| 46289 | ## --------------------- ## |
| 46290 | |
| 46291 | # Be more Bourne compatible |
| 46292 | DUALCASE=1; export DUALCASE # for MKS sh |
| 46293 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 46294 | emulate sh |
| 46295 | NULLCMD=: |
| 46296 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 46297 | # is contrary to our usage. Disable this feature. |
| 46298 | alias -g '${1+"$@"}'='"$@"' |
| 46299 | setopt NO_GLOB_SUBST |
| 46300 | else |
| 46301 | case `(set -o) 2>/dev/null` in |
| 46302 | *posix*) set -o posix ;; |
| 46303 | esac |
| 46304 | |
| 46305 | fi |
| 46306 | |
| 46307 | |
| 46308 | |
| 46309 | |
| 46310 | # PATH needs CR |
| 46311 | # Avoid depending upon Character Ranges. |
| 46312 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 46313 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 46314 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 46315 | as_cr_digits='0123456789' |
| 46316 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 46317 | |
| 46318 | as_nl=' |
| 46319 | ' |
| 46320 | export as_nl |
| 46321 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 46322 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 46323 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 46324 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 46325 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 46326 | as_echo='printf %s\n' |
| 46327 | as_echo_n='printf %s' |
| 46328 | else |
| 46329 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 46330 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 46331 | as_echo_n='/usr/ucb/echo -n' |
| 46332 | else |
| 46333 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 46334 | as_echo_n_body='eval |
| 46335 | arg=$1; |
| 46336 | case $arg in |
| 46337 | *"$as_nl"*) |
| 46338 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 46339 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 46340 | esac; |
| 46341 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 46342 | ' |
| 46343 | export as_echo_n_body |
| 46344 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 46345 | fi |
| 46346 | export as_echo_body |
| 46347 | as_echo='sh -c $as_echo_body as_echo' |
| 46348 | fi |
| 46349 | |
| 46350 | # The user is always right. |
| 46351 | if test "${PATH_SEPARATOR+set}" != set; then |
| 46352 | PATH_SEPARATOR=: |
| 46353 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 46354 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 46355 | PATH_SEPARATOR=';' |
| 46356 | } |
| 46357 | fi |
| 46358 | |
| 46359 | # Support unset when possible. |
| 46360 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 46361 | as_unset=unset |
| 46362 | else |
| 46363 | as_unset=false |
| 46364 | fi |
| 46365 | |
| 46366 | |
| 46367 | # IFS |
| 46368 | # We need space, tab and new line, in precisely that order. Quoting is |
| 46369 | # there to prevent editors from complaining about space-tab. |
| 46370 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 46371 | # splitting by setting IFS to empty value.) |
| 46372 | IFS=" "" $as_nl" |
| 46373 | |
| 46374 | # Find who we are. Look in the path if we contain no directory separator. |
| 46375 | case $0 in |
| 46376 | *[\\/]* ) as_myself=$0 ;; |
| 46377 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 46378 | for as_dir in $PATH |
| 46379 | do |
| 46380 | IFS=$as_save_IFS |
| 46381 | test -z "$as_dir" && as_dir=. |
| 46382 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 46383 | done |
| 46384 | IFS=$as_save_IFS |
| 46385 | |
| 46386 | ;; |
| 46387 | esac |
| 46388 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 46389 | # in which case we are not to be found in the path. |
| 46390 | if test "x$as_myself" = x; then |
| 46391 | as_myself=$0 |
| 46392 | fi |
| 46393 | if test ! -f "$as_myself"; then |
| 46394 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 46395 | { (exit 1); exit 1; } |
| 46396 | fi |
| 46397 | |
| 46398 | # Work around bugs in pre-3.0 UWIN ksh. |
| 46399 | for as_var in ENV MAIL MAILPATH |
| 46400 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 46401 | done |
| 46402 | PS1='$ ' |
| 46403 | PS2='> ' |
| 46404 | PS4='+ ' |
| 46405 | |
| 46406 | # NLS nuisances. |
| 46407 | LC_ALL=C |
| 46408 | export LC_ALL |
| 46409 | LANGUAGE=C |
| 46410 | export LANGUAGE |
| 46411 | |
| 46412 | # Required to use basename. |
| 46413 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 46414 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 46415 | as_expr=expr |
| 46416 | else |
| 46417 | as_expr=false |
| 46418 | fi |
| 46419 | |
| 46420 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 46421 | as_basename=basename |
| 46422 | else |
| 46423 | as_basename=false |
| 46424 | fi |
| 46425 | |
| 46426 | |
| 46427 | # Name of the executable. |
| 46428 | as_me=`$as_basename -- "$0" || |
| 46429 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 46430 | X"$0" : 'X\(//\)$' \| \ |
| 46431 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 46432 | $as_echo X/"$0" | |
| 46433 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 46434 | s//\1/ |
| 46435 | q |
| 46436 | } |
| 46437 | /^X\/\(\/\/\)$/{ |
| 46438 | s//\1/ |
| 46439 | q |
| 46440 | } |
| 46441 | /^X\/\(\/\).*/{ |
| 46442 | s//\1/ |
| 46443 | q |
| 46444 | } |
| 46445 | s/.*/./; q'` |
| 46446 | |
| 46447 | # CDPATH. |
| 46448 | $as_unset CDPATH |
| 46449 | |
| 46450 | |
| 46451 | |
| 46452 | as_lineno_1=$LINENO |
| 46453 | as_lineno_2=$LINENO |
| 46454 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 46455 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 46456 | |
| 46457 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 46458 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 46459 | # line-number line after each line using $LINENO; the second 'sed' |
| 46460 | # does the real work. The second script uses 'N' to pair each |
| 46461 | # line-number line with the line containing $LINENO, and appends |
| 46462 | # trailing '-' during substitution so that $LINENO is not a special |
| 46463 | # case at line end. |
| 46464 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 46465 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 46466 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 46467 | sed -n ' |
| 46468 | p |
| 46469 | /[$]LINENO/= |
| 46470 | ' <$as_myself | |
| 46471 | sed ' |
| 46472 | s/[$]LINENO.*/&-/ |
| 46473 | t lineno |
| 46474 | b |
| 46475 | :lineno |
| 46476 | N |
| 46477 | :loop |
| 46478 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 46479 | t loop |
| 46480 | s/-\n.*// |
| 46481 | ' >$as_me.lineno && |
| 46482 | chmod +x "$as_me.lineno" || |
| 46483 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 46484 | { (exit 1); exit 1; }; } |
| 46485 | |
| 46486 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 46487 | # (the dirname of $[0] is not the place where we might find the |
| 46488 | # original and so on. Autoconf is especially sensitive to this). |
| 46489 | . "./$as_me.lineno" |
| 46490 | # Exit status is that of the last command. |
| 46491 | exit |
| 46492 | } |
| 46493 | |
| 46494 | |
| 46495 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 46496 | as_dirname=dirname |
| 46497 | else |
| 46498 | as_dirname=false |
| 46499 | fi |
| 46500 | |
| 46501 | ECHO_C= ECHO_N= ECHO_T= |
| 46502 | case `echo -n x` in |
| 46503 | -n*) |
| 46504 | case `echo 'x\c'` in |
| 46505 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 46506 | *) ECHO_C='\c';; |
| 46507 | esac;; |
| 46508 | *) |
| 46509 | ECHO_N='-n';; |
| 46510 | esac |
| 46511 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 46512 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 46513 | as_expr=expr |
| 46514 | else |
| 46515 | as_expr=false |
| 46516 | fi |
| 46517 | |
| 46518 | rm -f conf$$ conf$$.exe conf$$.file |
| 46519 | if test -d conf$$.dir; then |
| 46520 | rm -f conf$$.dir/conf$$.file |
| 46521 | else |
| 46522 | rm -f conf$$.dir |
| 46523 | mkdir conf$$.dir 2>/dev/null |
| 46524 | fi |
| 46525 | if (echo >conf$$.file) 2>/dev/null; then |
| 46526 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 46527 | as_ln_s='ln -s' |
| 46528 | # ... but there are two gotchas: |
| 46529 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 46530 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 46531 | # In both cases, we have to default to `cp -p'. |
| 46532 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 46533 | as_ln_s='cp -p' |
| 46534 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 46535 | as_ln_s=ln |
| 46536 | else |
| 46537 | as_ln_s='cp -p' |
| 46538 | fi |
| 46539 | else |
| 46540 | as_ln_s='cp -p' |
| 46541 | fi |
| 46542 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 46543 | rmdir conf$$.dir 2>/dev/null |
| 46544 | |
| 46545 | if mkdir -p . 2>/dev/null; then |
| 46546 | as_mkdir_p=: |
| 46547 | else |
| 46548 | test -d ./-p && rmdir ./-p |
| 46549 | as_mkdir_p=false |
| 46550 | fi |
| 46551 | |
| 46552 | if test -x / >/dev/null 2>&1; then |
| 46553 | as_test_x='test -x' |
| 46554 | else |
| 46555 | if ls -dL / >/dev/null 2>&1; then |
| 46556 | as_ls_L_option=L |
| 46557 | else |
| 46558 | as_ls_L_option= |
| 46559 | fi |
| 46560 | as_test_x=' |
| 46561 | eval sh -c '\'' |
| 46562 | if test -d "$1"; then |
| 46563 | test -d "$1/."; |
| 46564 | else |
| 46565 | case $1 in |
| 46566 | -*)set "./$1";; |
| 46567 | esac; |
| 46568 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 46569 | ???[sx]*):;;*)false;;esac;fi |
| 46570 | '\'' sh |
| 46571 | ' |
| 46572 | fi |
| 46573 | as_executable_p=$as_test_x |
| 46574 | |
| 46575 | # Sed expression to map a string onto a valid CPP name. |
| 46576 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 46577 | |
| 46578 | # Sed expression to map a string onto a valid variable name. |
| 46579 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 46580 | |
| 46581 | |
| 46582 | exec 6>&1 |
| 46583 | |
| 46584 | # Save the log message, to keep $[0] and so on meaningful, and to |
| 46585 | # report actual input values of CONFIG_FILES etc. instead of their |
| 46586 | # values after options handling. |
| 46587 | ac_log=" |
| 46588 | This file was extended by ImageMagick $as_me 6.5.5, which was |
| 46589 | generated by GNU Autoconf 2.63. Invocation command line was |
| 46590 | |
| 46591 | CONFIG_FILES = $CONFIG_FILES |
| 46592 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 46593 | CONFIG_LINKS = $CONFIG_LINKS |
| 46594 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 46595 | $ $0 $@ |
| 46596 | |
| 46597 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 46598 | " |
| 46599 | |
| 46600 | _ACEOF |
| 46601 | |
| 46602 | case $ac_config_files in *" |
| 46603 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 46604 | esac |
| 46605 | |
| 46606 | case $ac_config_headers in *" |
| 46607 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 46608 | esac |
| 46609 | |
| 46610 | |
| 46611 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 46612 | # Files that config.status was made for. |
| 46613 | config_files="$ac_config_files" |
| 46614 | config_headers="$ac_config_headers" |
| 46615 | config_commands="$ac_config_commands" |
| 46616 | |
| 46617 | _ACEOF |
| 46618 | |
| 46619 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 46620 | ac_cs_usage="\ |
| 46621 | \`$as_me' instantiates files from templates according to the |
| 46622 | current configuration. |
| 46623 | |
| 46624 | Usage: $0 [OPTION]... [FILE]... |
| 46625 | |
| 46626 | -h, --help print this help, then exit |
| 46627 | -V, --version print version number and configuration settings, then exit |
| 46628 | -q, --quiet, --silent |
| 46629 | do not print progress messages |
| 46630 | -d, --debug don't remove temporary files |
| 46631 | --recheck update $as_me by reconfiguring in the same conditions |
| 46632 | --file=FILE[:TEMPLATE] |
| 46633 | instantiate the configuration file FILE |
| 46634 | --header=FILE[:TEMPLATE] |
| 46635 | instantiate the configuration header FILE |
| 46636 | |
| 46637 | Configuration files: |
| 46638 | $config_files |
| 46639 | |
| 46640 | Configuration headers: |
| 46641 | $config_headers |
| 46642 | |
| 46643 | Configuration commands: |
| 46644 | $config_commands |
| 46645 | |
| 46646 | Report bugs to <bug-autoconf@gnu.org>." |
| 46647 | |
| 46648 | _ACEOF |
| 46649 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 46650 | ac_cs_version="\\ |
| 46651 | ImageMagick config.status 6.5.5 |
| 46652 | configured by $0, generated by GNU Autoconf 2.63, |
| 46653 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
| 46654 | |
| 46655 | Copyright (C) 2008 Free Software Foundation, Inc. |
| 46656 | This config.status script is free software; the Free Software Foundation |
| 46657 | gives unlimited permission to copy, distribute and modify it." |
| 46658 | |
| 46659 | ac_pwd='$ac_pwd' |
| 46660 | srcdir='$srcdir' |
| 46661 | INSTALL='$INSTALL' |
| 46662 | MKDIR_P='$MKDIR_P' |
| 46663 | AWK='$AWK' |
| 46664 | test -n "\$AWK" || AWK=awk |
| 46665 | _ACEOF |
| 46666 | |
| 46667 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 46668 | # The default lists apply if the user does not specify any file. |
| 46669 | ac_need_defaults=: |
| 46670 | while test $# != 0 |
| 46671 | do |
| 46672 | case $1 in |
| 46673 | --*=*) |
| 46674 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 46675 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 46676 | ac_shift=: |
| 46677 | ;; |
| 46678 | *) |
| 46679 | ac_option=$1 |
| 46680 | ac_optarg=$2 |
| 46681 | ac_shift=shift |
| 46682 | ;; |
| 46683 | esac |
| 46684 | |
| 46685 | case $ac_option in |
| 46686 | # Handling of the options. |
| 46687 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 46688 | ac_cs_recheck=: ;; |
| 46689 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 46690 | $as_echo "$ac_cs_version"; exit ;; |
| 46691 | --debug | --debu | --deb | --de | --d | -d ) |
| 46692 | debug=: ;; |
| 46693 | --file | --fil | --fi | --f ) |
| 46694 | $ac_shift |
| 46695 | case $ac_optarg in |
| 46696 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 46697 | esac |
| 46698 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
| 46699 | ac_need_defaults=false;; |
| 46700 | --header | --heade | --head | --hea ) |
| 46701 | $ac_shift |
| 46702 | case $ac_optarg in |
| 46703 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 46704 | esac |
| 46705 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" |
| 46706 | ac_need_defaults=false;; |
| 46707 | --he | --h) |
| 46708 | # Conflict between --help and --header |
| 46709 | { $as_echo "$as_me: error: ambiguous option: $1 |
| 46710 | Try \`$0 --help' for more information." >&2 |
| 46711 | { (exit 1); exit 1; }; };; |
| 46712 | --help | --hel | -h ) |
| 46713 | $as_echo "$ac_cs_usage"; exit ;; |
| 46714 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 46715 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 46716 | ac_cs_silent=: ;; |
| 46717 | |
| 46718 | # This is an error. |
| 46719 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
| 46720 | Try \`$0 --help' for more information." >&2 |
| 46721 | { (exit 1); exit 1; }; } ;; |
| 46722 | |
| 46723 | *) ac_config_targets="$ac_config_targets $1" |
| 46724 | ac_need_defaults=false ;; |
| 46725 | |
| 46726 | esac |
| 46727 | shift |
| 46728 | done |
| 46729 | |
| 46730 | ac_configure_extra_args= |
| 46731 | |
| 46732 | if $ac_cs_silent; then |
| 46733 | exec 6>/dev/null |
| 46734 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 46735 | fi |
| 46736 | |
| 46737 | _ACEOF |
| 46738 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 46739 | if \$ac_cs_recheck; then |
| 46740 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 46741 | shift |
| 46742 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 46743 | CONFIG_SHELL='$SHELL' |
| 46744 | export CONFIG_SHELL |
| 46745 | exec "\$@" |
| 46746 | fi |
| 46747 | |
| 46748 | _ACEOF |
| 46749 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 46750 | exec 5>>config.log |
| 46751 | { |
| 46752 | echo |
| 46753 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 46754 | ## Running $as_me. ## |
| 46755 | _ASBOX |
| 46756 | $as_echo "$ac_log" |
| 46757 | } >&5 |
| 46758 | |
| 46759 | _ACEOF |
| 46760 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 46761 | # |
| 46762 | # INIT-COMMANDS |
| 46763 | # |
| 46764 | PACKAGE="$PACKAGE" |
| 46765 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 46766 | |
| 46767 | |
| 46768 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 46769 | # if CDPATH is set. |
| 46770 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 46771 | |
| 46772 | sed_quote_subst='$sed_quote_subst' |
| 46773 | double_quote_subst='$double_quote_subst' |
| 46774 | delay_variable_subst='$delay_variable_subst' |
| 46775 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' |
| 46776 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' |
| 46777 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 46778 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 46779 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 46780 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' |
| 46781 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 46782 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' |
| 46783 | AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' |
| 46784 | DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
| 46785 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
| 46786 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
| 46787 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 46788 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
| 46789 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' |
| 46790 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 46791 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' |
| 46792 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 46793 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 46794 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' |
| 46795 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 46796 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' |
| 46797 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' |
| 46798 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' |
| 46799 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' |
| 46800 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' |
| 46801 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' |
| 46802 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' |
| 46803 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' |
| 46804 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 46805 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 46806 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
| 46807 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' |
| 46808 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' |
| 46809 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 46810 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' |
| 46811 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' |
| 46812 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 46813 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 46814 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 46815 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' |
| 46816 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 46817 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' |
| 46818 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' |
| 46819 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' |
| 46820 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' |
| 46821 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' |
| 46822 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 46823 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
| 46824 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' |
| 46825 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' |
| 46826 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' |
| 46827 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 46828 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' |
| 46829 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' |
| 46830 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 46831 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' |
| 46832 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' |
| 46833 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
| 46834 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' |
| 46835 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' |
| 46836 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
| 46837 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' |
| 46838 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
| 46839 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 46840 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 46841 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' |
| 46842 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' |
| 46843 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 46844 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 46845 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' |
| 46846 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 46847 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 46848 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 46849 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 46850 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 46851 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 46852 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 46853 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 46854 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 46855 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 46856 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 46857 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' |
| 46858 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' |
| 46859 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' |
| 46860 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' |
| 46861 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 46862 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' |
| 46863 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 46864 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' |
| 46865 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 46866 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' |
| 46867 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 46868 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 46869 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 46870 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 46871 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 46872 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' |
| 46873 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 46874 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 46875 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' |
| 46876 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 46877 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 46878 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 46879 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 46880 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 46881 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 46882 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 46883 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 46884 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 46885 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' |
| 46886 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' |
| 46887 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 46888 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 46889 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' |
| 46890 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' |
| 46891 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' |
| 46892 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 46893 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 46894 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 46895 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' |
| 46896 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
| 46897 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
| 46898 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' |
| 46899 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' |
| 46900 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 46901 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46902 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46903 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46904 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46905 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46906 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46907 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46908 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46909 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46910 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46911 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46912 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46913 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46914 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46915 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46916 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46917 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46918 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46919 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46920 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46921 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46922 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46923 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46924 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46925 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46926 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46927 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46928 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46929 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46930 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46931 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46932 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46933 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46934 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46935 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46936 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46937 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46938 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46939 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46940 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46941 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46942 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46943 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46944 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46945 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46946 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46947 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 46948 | |
| 46949 | LTCC='$LTCC' |
| 46950 | LTCFLAGS='$LTCFLAGS' |
| 46951 | compiler='$compiler_DEFAULT' |
| 46952 | |
| 46953 | # Quote evaled strings. |
| 46954 | for var in SED \ |
| 46955 | GREP \ |
| 46956 | EGREP \ |
| 46957 | FGREP \ |
| 46958 | LD \ |
| 46959 | NM \ |
| 46960 | LN_S \ |
| 46961 | lt_SP2NL \ |
| 46962 | lt_NL2SP \ |
| 46963 | reload_flag \ |
| 46964 | deplibs_check_method \ |
| 46965 | file_magic_cmd \ |
| 46966 | AR \ |
| 46967 | AR_FLAGS \ |
| 46968 | STRIP \ |
| 46969 | RANLIB \ |
| 46970 | CC \ |
| 46971 | CFLAGS \ |
| 46972 | compiler \ |
| 46973 | lt_cv_sys_global_symbol_pipe \ |
| 46974 | lt_cv_sys_global_symbol_to_cdecl \ |
| 46975 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 46976 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 46977 | SHELL \ |
| 46978 | ECHO \ |
| 46979 | lt_prog_compiler_no_builtin_flag \ |
| 46980 | lt_prog_compiler_wl \ |
| 46981 | lt_prog_compiler_pic \ |
| 46982 | lt_prog_compiler_static \ |
| 46983 | lt_cv_prog_compiler_c_o \ |
| 46984 | need_locks \ |
| 46985 | DSYMUTIL \ |
| 46986 | NMEDIT \ |
| 46987 | LIPO \ |
| 46988 | OTOOL \ |
| 46989 | OTOOL64 \ |
| 46990 | shrext_cmds \ |
| 46991 | export_dynamic_flag_spec \ |
| 46992 | whole_archive_flag_spec \ |
| 46993 | compiler_needs_object \ |
| 46994 | with_gnu_ld \ |
| 46995 | allow_undefined_flag \ |
| 46996 | no_undefined_flag \ |
| 46997 | hardcode_libdir_flag_spec \ |
| 46998 | hardcode_libdir_flag_spec_ld \ |
| 46999 | hardcode_libdir_separator \ |
| 47000 | fix_srcfile_path \ |
| 47001 | exclude_expsyms \ |
| 47002 | include_expsyms \ |
| 47003 | file_list_spec \ |
| 47004 | variables_saved_for_relink \ |
| 47005 | libname_spec \ |
| 47006 | library_names_spec \ |
| 47007 | soname_spec \ |
| 47008 | finish_eval \ |
| 47009 | old_striplib \ |
| 47010 | striplib \ |
| 47011 | compiler_lib_search_dirs \ |
| 47012 | predep_objects \ |
| 47013 | postdep_objects \ |
| 47014 | predeps \ |
| 47015 | postdeps \ |
| 47016 | compiler_lib_search_path \ |
| 47017 | LD_CXX \ |
| 47018 | compiler_CXX \ |
| 47019 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 47020 | lt_prog_compiler_wl_CXX \ |
| 47021 | lt_prog_compiler_pic_CXX \ |
| 47022 | lt_prog_compiler_static_CXX \ |
| 47023 | lt_cv_prog_compiler_c_o_CXX \ |
| 47024 | export_dynamic_flag_spec_CXX \ |
| 47025 | whole_archive_flag_spec_CXX \ |
| 47026 | compiler_needs_object_CXX \ |
| 47027 | with_gnu_ld_CXX \ |
| 47028 | allow_undefined_flag_CXX \ |
| 47029 | no_undefined_flag_CXX \ |
| 47030 | hardcode_libdir_flag_spec_CXX \ |
| 47031 | hardcode_libdir_flag_spec_ld_CXX \ |
| 47032 | hardcode_libdir_separator_CXX \ |
| 47033 | fix_srcfile_path_CXX \ |
| 47034 | exclude_expsyms_CXX \ |
| 47035 | include_expsyms_CXX \ |
| 47036 | file_list_spec_CXX \ |
| 47037 | compiler_lib_search_dirs_CXX \ |
| 47038 | predep_objects_CXX \ |
| 47039 | postdep_objects_CXX \ |
| 47040 | predeps_CXX \ |
| 47041 | postdeps_CXX \ |
| 47042 | compiler_lib_search_path_CXX; do |
| 47043 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 47044 | *[\\\\\\\`\\"\\\$]*) |
| 47045 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 47046 | ;; |
| 47047 | *) |
| 47048 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 47049 | ;; |
| 47050 | esac |
| 47051 | done |
| 47052 | |
| 47053 | # Double-quote double-evaled strings. |
| 47054 | for var in reload_cmds \ |
| 47055 | old_postinstall_cmds \ |
| 47056 | old_postuninstall_cmds \ |
| 47057 | old_archive_cmds \ |
| 47058 | extract_expsyms_cmds \ |
| 47059 | old_archive_from_new_cmds \ |
| 47060 | old_archive_from_expsyms_cmds \ |
| 47061 | archive_cmds \ |
| 47062 | archive_expsym_cmds \ |
| 47063 | module_cmds \ |
| 47064 | module_expsym_cmds \ |
| 47065 | export_symbols_cmds \ |
| 47066 | prelink_cmds \ |
| 47067 | postinstall_cmds \ |
| 47068 | postuninstall_cmds \ |
| 47069 | finish_cmds \ |
| 47070 | sys_lib_search_path_spec \ |
| 47071 | sys_lib_dlsearch_path_spec \ |
| 47072 | old_archive_cmds_CXX \ |
| 47073 | old_archive_from_new_cmds_CXX \ |
| 47074 | old_archive_from_expsyms_cmds_CXX \ |
| 47075 | archive_cmds_CXX \ |
| 47076 | archive_expsym_cmds_CXX \ |
| 47077 | module_cmds_CXX \ |
| 47078 | module_expsym_cmds_CXX \ |
| 47079 | export_symbols_cmds_CXX \ |
| 47080 | prelink_cmds_CXX; do |
| 47081 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 47082 | *[\\\\\\\`\\"\\\$]*) |
| 47083 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 47084 | ;; |
| 47085 | *) |
| 47086 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 47087 | ;; |
| 47088 | esac |
| 47089 | done |
| 47090 | |
| 47091 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
| 47092 | case \$lt_ECHO in |
| 47093 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` |
| 47094 | ;; |
| 47095 | esac |
| 47096 | |
| 47097 | ac_aux_dir='$ac_aux_dir' |
| 47098 | xsi_shell='$xsi_shell' |
| 47099 | lt_shell_append='$lt_shell_append' |
| 47100 | |
| 47101 | # See if we are running on zsh, and set the options which allow our |
| 47102 | # commands through without removal of \ escapes INIT. |
| 47103 | if test -n "\${ZSH_VERSION+set}" ; then |
| 47104 | setopt NO_GLOB_SUBST |
| 47105 | fi |
| 47106 | |
| 47107 | |
| 47108 | PACKAGE='$PACKAGE' |
| 47109 | VERSION='$VERSION' |
| 47110 | TIMESTAMP='$TIMESTAMP' |
| 47111 | RM='$RM' |
| 47112 | ofile='$ofile' |
| 47113 | |
| 47114 | |
| 47115 | |
| 47116 | |
| 47117 | |
| 47118 | |
| 47119 | _ACEOF |
| 47120 | |
| 47121 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 47122 | |
| 47123 | # Handling of arguments. |
| 47124 | for ac_config_target in $ac_config_targets |
| 47125 | do |
| 47126 | case $ac_config_target in |
| 47127 | "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;; |
| 47128 | "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;; |
| 47129 | "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;; |
| 47130 | "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;; |
| 47131 | "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;; |
| 47132 | "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;; |
| 47133 | "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;; |
| 47134 | "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;; |
| 47135 | "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;; |
| 47136 | "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;; |
| 47137 | "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;; |
| 47138 | "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;; |
| 47139 | "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;; |
| 47140 | "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;; |
| 47141 | "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;; |
| 47142 | "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;; |
| 47143 | "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;; |
| 47144 | "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;; |
| 47145 | "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;; |
| 47146 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 47147 | "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;; |
| 47148 | "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;; |
| 47149 | "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;; |
| 47150 | "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;; |
| 47151 | "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;; |
| 47152 | "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;; |
| 47153 | "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;; |
| 47154 | "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;; |
| 47155 | "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;; |
| 47156 | "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;; |
| 47157 | "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;; |
| 47158 | "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;; |
| 47159 | "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;; |
| 47160 | "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;; |
| 47161 | "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;; |
| 47162 | "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;; |
| 47163 | "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;; |
| 47164 | "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;; |
| 47165 | "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;; |
| 47166 | "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;; |
| 47167 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 47168 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 47169 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
| 47170 | "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;; |
| 47171 | "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;; |
| 47172 | "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;; |
| 47173 | "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;; |
| 47174 | "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;; |
| 47175 | "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;; |
| 47176 | |
| 47177 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 47178 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 47179 | { (exit 1); exit 1; }; };; |
| 47180 | esac |
| 47181 | done |
| 47182 | |
| 47183 | |
| 47184 | # If the user did not use the arguments to specify the items to instantiate, |
| 47185 | # then the envvar interface is used. Set only those that are not. |
| 47186 | # We use the long form for the default assignment because of an extremely |
| 47187 | # bizarre bug on SunOS 4.1.3. |
| 47188 | if $ac_need_defaults; then |
| 47189 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 47190 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 47191 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 47192 | fi |
| 47193 | |
| 47194 | # Have a temporary directory for convenience. Make it in the build tree |
| 47195 | # simply because there is no reason against having it here, and in addition, |
| 47196 | # creating and moving files from /tmp can sometimes cause problems. |
| 47197 | # Hook for its removal unless debugging. |
| 47198 | # Note that there is a small window in which the directory will not be cleaned: |
| 47199 | # after its creation but before its name has been assigned to `$tmp'. |
| 47200 | $debug || |
| 47201 | { |
| 47202 | tmp= |
| 47203 | trap 'exit_status=$? |
| 47204 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 47205 | ' 0 |
| 47206 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 47207 | } |
| 47208 | # Create a (secure) tmp directory for tmp files. |
| 47209 | |
| 47210 | { |
| 47211 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 47212 | test -n "$tmp" && test -d "$tmp" |
| 47213 | } || |
| 47214 | { |
| 47215 | tmp=./conf$$-$RANDOM |
| 47216 | (umask 077 && mkdir "$tmp") |
| 47217 | } || |
| 47218 | { |
| 47219 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
| 47220 | { (exit 1); exit 1; } |
| 47221 | } |
| 47222 | |
| 47223 | # Set up the scripts for CONFIG_FILES section. |
| 47224 | # No need to generate them if there are no CONFIG_FILES. |
| 47225 | # This happens for instance with `./config.status config.h'. |
| 47226 | if test -n "$CONFIG_FILES"; then |
| 47227 | |
| 47228 | |
| 47229 | ac_cr='
' |
| 47230 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 47231 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 47232 | ac_cs_awk_cr='\\r' |
| 47233 | else |
| 47234 | ac_cs_awk_cr=$ac_cr |
| 47235 | fi |
| 47236 | |
| 47237 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
| 47238 | _ACEOF |
| 47239 | |
| 47240 | |
| 47241 | { |
| 47242 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 47243 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 47244 | echo "_ACEOF" |
| 47245 | } >conf$$subs.sh || |
| 47246 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 47247 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 47248 | { (exit 1); exit 1; }; } |
| 47249 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
| 47250 | ac_delim='%!_!# ' |
| 47251 | for ac_last_try in false false false false false :; do |
| 47252 | . ./conf$$subs.sh || |
| 47253 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 47254 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 47255 | { (exit 1); exit 1; }; } |
| 47256 | |
| 47257 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 47258 | if test $ac_delim_n = $ac_delim_num; then |
| 47259 | break |
| 47260 | elif $ac_last_try; then |
| 47261 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 47262 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 47263 | { (exit 1); exit 1; }; } |
| 47264 | else |
| 47265 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 47266 | fi |
| 47267 | done |
| 47268 | rm -f conf$$subs.sh |
| 47269 | |
| 47270 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 47271 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
| 47272 | _ACEOF |
| 47273 | sed -n ' |
| 47274 | h |
| 47275 | s/^/S["/; s/!.*/"]=/ |
| 47276 | p |
| 47277 | g |
| 47278 | s/^[^!]*!// |
| 47279 | :repl |
| 47280 | t repl |
| 47281 | s/'"$ac_delim"'$// |
| 47282 | t delim |
| 47283 | :nl |
| 47284 | h |
| 47285 | s/\(.\{148\}\).*/\1/ |
| 47286 | t more1 |
| 47287 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 47288 | p |
| 47289 | n |
| 47290 | b repl |
| 47291 | :more1 |
| 47292 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 47293 | p |
| 47294 | g |
| 47295 | s/.\{148\}// |
| 47296 | t nl |
| 47297 | :delim |
| 47298 | h |
| 47299 | s/\(.\{148\}\).*/\1/ |
| 47300 | t more2 |
| 47301 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 47302 | p |
| 47303 | b |
| 47304 | :more2 |
| 47305 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 47306 | p |
| 47307 | g |
| 47308 | s/.\{148\}// |
| 47309 | t delim |
| 47310 | ' <conf$$subs.awk | sed ' |
| 47311 | /^[^""]/{ |
| 47312 | N |
| 47313 | s/\n// |
| 47314 | } |
| 47315 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 47316 | rm -f conf$$subs.awk |
| 47317 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 47318 | _ACAWK |
| 47319 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 47320 | for (key in S) S_is_set[key] = 1 |
| 47321 | FS = "" |
| 47322 | |
| 47323 | } |
| 47324 | { |
| 47325 | line = $ 0 |
| 47326 | nfields = split(line, field, "@") |
| 47327 | substed = 0 |
| 47328 | len = length(field[1]) |
| 47329 | for (i = 2; i < nfields; i++) { |
| 47330 | key = field[i] |
| 47331 | keylen = length(key) |
| 47332 | if (S_is_set[key]) { |
| 47333 | value = S[key] |
| 47334 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 47335 | len += length(value) + length(field[++i]) |
| 47336 | substed = 1 |
| 47337 | } else |
| 47338 | len += 1 + keylen |
| 47339 | } |
| 47340 | |
| 47341 | print line |
| 47342 | } |
| 47343 | |
| 47344 | _ACAWK |
| 47345 | _ACEOF |
| 47346 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 47347 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 47348 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 47349 | else |
| 47350 | cat |
| 47351 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 47352 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
| 47353 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} |
| 47354 | { (exit 1); exit 1; }; } |
| 47355 | _ACEOF |
| 47356 | |
| 47357 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 47358 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 47359 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 47360 | # (actually we leave an empty line to preserve line numbers). |
| 47361 | if test "x$srcdir" = x.; then |
| 47362 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 47363 | s/:*\$(srcdir):*/:/ |
| 47364 | s/:*\${srcdir}:*/:/ |
| 47365 | s/:*@srcdir@:*/:/ |
| 47366 | s/^\([^=]*=[ ]*\):*/\1/ |
| 47367 | s/:*$// |
| 47368 | s/^[^=]*=[ ]*$// |
| 47369 | }' |
| 47370 | fi |
| 47371 | |
| 47372 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 47373 | fi # test -n "$CONFIG_FILES" |
| 47374 | |
| 47375 | # Set up the scripts for CONFIG_HEADERS section. |
| 47376 | # No need to generate them if there are no CONFIG_HEADERS. |
| 47377 | # This happens for instance with `./config.status Makefile'. |
| 47378 | if test -n "$CONFIG_HEADERS"; then |
| 47379 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 47380 | BEGIN { |
| 47381 | _ACEOF |
| 47382 | |
| 47383 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 47384 | # here-document in config.status, that substitutes the proper values into |
| 47385 | # config.h.in to produce config.h. |
| 47386 | |
| 47387 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 47388 | # handling of long lines. |
| 47389 | ac_delim='%!_!# ' |
| 47390 | for ac_last_try in false false :; do |
| 47391 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 47392 | if test -z "$ac_t"; then |
| 47393 | break |
| 47394 | elif $ac_last_try; then |
| 47395 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 |
| 47396 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} |
| 47397 | { (exit 1); exit 1; }; } |
| 47398 | else |
| 47399 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 47400 | fi |
| 47401 | done |
| 47402 | |
| 47403 | # For the awk script, D is an array of macro values keyed by name, |
| 47404 | # likewise P contains macro parameters if any. Preserve backslash |
| 47405 | # newline sequences. |
| 47406 | |
| 47407 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 47408 | sed -n ' |
| 47409 | s/.\{148\}/&'"$ac_delim"'/g |
| 47410 | t rset |
| 47411 | :rset |
| 47412 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 47413 | t def |
| 47414 | d |
| 47415 | :def |
| 47416 | s/\\$// |
| 47417 | t bsnl |
| 47418 | s/["\\]/\\&/g |
| 47419 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 47420 | D["\1"]=" \3"/p |
| 47421 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 47422 | d |
| 47423 | :bsnl |
| 47424 | s/["\\]/\\&/g |
| 47425 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 47426 | D["\1"]=" \3\\\\\\n"\\/p |
| 47427 | t cont |
| 47428 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 47429 | t cont |
| 47430 | d |
| 47431 | :cont |
| 47432 | n |
| 47433 | s/.\{148\}/&'"$ac_delim"'/g |
| 47434 | t clear |
| 47435 | :clear |
| 47436 | s/\\$// |
| 47437 | t bsnlc |
| 47438 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 47439 | d |
| 47440 | :bsnlc |
| 47441 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 47442 | b cont |
| 47443 | ' <confdefs.h | sed ' |
| 47444 | s/'"$ac_delim"'/"\\\ |
| 47445 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 47446 | |
| 47447 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 47448 | for (key in D) D_is_set[key] = 1 |
| 47449 | FS = "" |
| 47450 | } |
| 47451 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 47452 | line = \$ 0 |
| 47453 | split(line, arg, " ") |
| 47454 | if (arg[1] == "#") { |
| 47455 | defundef = arg[2] |
| 47456 | mac1 = arg[3] |
| 47457 | } else { |
| 47458 | defundef = substr(arg[1], 2) |
| 47459 | mac1 = arg[2] |
| 47460 | } |
| 47461 | split(mac1, mac2, "(") #) |
| 47462 | macro = mac2[1] |
| 47463 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 47464 | if (D_is_set[macro]) { |
| 47465 | # Preserve the white space surrounding the "#". |
| 47466 | print prefix "define", macro P[macro] D[macro] |
| 47467 | next |
| 47468 | } else { |
| 47469 | # Replace #undef with comments. This is necessary, for example, |
| 47470 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 47471 | # on some systems where configure will not decide to define it. |
| 47472 | if (defundef == "undef") { |
| 47473 | print "/*", prefix defundef, macro, "*/" |
| 47474 | next |
| 47475 | } |
| 47476 | } |
| 47477 | } |
| 47478 | { print } |
| 47479 | _ACAWK |
| 47480 | _ACEOF |
| 47481 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 47482 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 |
| 47483 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} |
| 47484 | { (exit 1); exit 1; }; } |
| 47485 | fi # test -n "$CONFIG_HEADERS" |
| 47486 | |
| 47487 | |
| 47488 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 47489 | shift |
| 47490 | for ac_tag |
| 47491 | do |
| 47492 | case $ac_tag in |
| 47493 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 47494 | esac |
| 47495 | case $ac_mode$ac_tag in |
| 47496 | :[FHL]*:*);; |
| 47497 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 |
| 47498 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} |
| 47499 | { (exit 1); exit 1; }; };; |
| 47500 | :[FH]-) ac_tag=-:-;; |
| 47501 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 47502 | esac |
| 47503 | ac_save_IFS=$IFS |
| 47504 | IFS=: |
| 47505 | set x $ac_tag |
| 47506 | IFS=$ac_save_IFS |
| 47507 | shift |
| 47508 | ac_file=$1 |
| 47509 | shift |
| 47510 | |
| 47511 | case $ac_mode in |
| 47512 | :L) ac_source=$1;; |
| 47513 | :[FH]) |
| 47514 | ac_file_inputs= |
| 47515 | for ac_f |
| 47516 | do |
| 47517 | case $ac_f in |
| 47518 | -) ac_f="$tmp/stdin";; |
| 47519 | *) # Look for the file first in the build tree, then in the source tree |
| 47520 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 47521 | # because $ac_f cannot contain `:'. |
| 47522 | test -f "$ac_f" || |
| 47523 | case $ac_f in |
| 47524 | [\\/$]*) false;; |
| 47525 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 47526 | esac || |
| 47527 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 47528 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 47529 | { (exit 1); exit 1; }; };; |
| 47530 | esac |
| 47531 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 47532 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
| 47533 | done |
| 47534 | |
| 47535 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 47536 | # use $as_me), people would be surprised to read: |
| 47537 | # /* config.h. Generated by config.status. */ |
| 47538 | configure_input='Generated from '` |
| 47539 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 47540 | `' by configure.' |
| 47541 | if test x"$ac_file" != x-; then |
| 47542 | configure_input="$ac_file. $configure_input" |
| 47543 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 47544 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 47545 | fi |
| 47546 | # Neutralize special characters interpreted by sed in replacement strings. |
| 47547 | case $configure_input in #( |
| 47548 | *\&* | *\|* | *\\* ) |
| 47549 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 47550 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 47551 | *) ac_sed_conf_input=$configure_input;; |
| 47552 | esac |
| 47553 | |
| 47554 | case $ac_tag in |
| 47555 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 47556 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 47557 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 47558 | { (exit 1); exit 1; }; } ;; |
| 47559 | esac |
| 47560 | ;; |
| 47561 | esac |
| 47562 | |
| 47563 | ac_dir=`$as_dirname -- "$ac_file" || |
| 47564 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 47565 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 47566 | X"$ac_file" : 'X\(//\)$' \| \ |
| 47567 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 47568 | $as_echo X"$ac_file" | |
| 47569 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 47570 | s//\1/ |
| 47571 | q |
| 47572 | } |
| 47573 | /^X\(\/\/\)[^/].*/{ |
| 47574 | s//\1/ |
| 47575 | q |
| 47576 | } |
| 47577 | /^X\(\/\/\)$/{ |
| 47578 | s//\1/ |
| 47579 | q |
| 47580 | } |
| 47581 | /^X\(\/\).*/{ |
| 47582 | s//\1/ |
| 47583 | q |
| 47584 | } |
| 47585 | s/.*/./; q'` |
| 47586 | { as_dir="$ac_dir" |
| 47587 | case $as_dir in #( |
| 47588 | -*) as_dir=./$as_dir;; |
| 47589 | esac |
| 47590 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 47591 | as_dirs= |
| 47592 | while :; do |
| 47593 | case $as_dir in #( |
| 47594 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 47595 | *) as_qdir=$as_dir;; |
| 47596 | esac |
| 47597 | as_dirs="'$as_qdir' $as_dirs" |
| 47598 | as_dir=`$as_dirname -- "$as_dir" || |
| 47599 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 47600 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 47601 | X"$as_dir" : 'X\(//\)$' \| \ |
| 47602 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 47603 | $as_echo X"$as_dir" | |
| 47604 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 47605 | s//\1/ |
| 47606 | q |
| 47607 | } |
| 47608 | /^X\(\/\/\)[^/].*/{ |
| 47609 | s//\1/ |
| 47610 | q |
| 47611 | } |
| 47612 | /^X\(\/\/\)$/{ |
| 47613 | s//\1/ |
| 47614 | q |
| 47615 | } |
| 47616 | /^X\(\/\).*/{ |
| 47617 | s//\1/ |
| 47618 | q |
| 47619 | } |
| 47620 | s/.*/./; q'` |
| 47621 | test -d "$as_dir" && break |
| 47622 | done |
| 47623 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 47624 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 47625 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 47626 | { (exit 1); exit 1; }; }; } |
| 47627 | ac_builddir=. |
| 47628 | |
| 47629 | case "$ac_dir" in |
| 47630 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 47631 | *) |
| 47632 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 47633 | # A ".." for each directory in $ac_dir_suffix. |
| 47634 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 47635 | case $ac_top_builddir_sub in |
| 47636 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 47637 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 47638 | esac ;; |
| 47639 | esac |
| 47640 | ac_abs_top_builddir=$ac_pwd |
| 47641 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 47642 | # for backward compatibility: |
| 47643 | ac_top_builddir=$ac_top_build_prefix |
| 47644 | |
| 47645 | case $srcdir in |
| 47646 | .) # We are building in place. |
| 47647 | ac_srcdir=. |
| 47648 | ac_top_srcdir=$ac_top_builddir_sub |
| 47649 | ac_abs_top_srcdir=$ac_pwd ;; |
| 47650 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 47651 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 47652 | ac_top_srcdir=$srcdir |
| 47653 | ac_abs_top_srcdir=$srcdir ;; |
| 47654 | *) # Relative name. |
| 47655 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 47656 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 47657 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 47658 | esac |
| 47659 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 47660 | |
| 47661 | |
| 47662 | case $ac_mode in |
| 47663 | :F) |
| 47664 | # |
| 47665 | # CONFIG_FILE |
| 47666 | # |
| 47667 | |
| 47668 | case $INSTALL in |
| 47669 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 47670 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 47671 | esac |
| 47672 | ac_MKDIR_P=$MKDIR_P |
| 47673 | case $MKDIR_P in |
| 47674 | [\\/$]* | ?:[\\/]* ) ;; |
| 47675 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 47676 | esac |
| 47677 | _ACEOF |
| 47678 | |
| 47679 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 47680 | # If the template does not know about datarootdir, expand it. |
| 47681 | # FIXME: This hack should be removed a few years after 2.60. |
| 47682 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 47683 | |
| 47684 | ac_sed_dataroot=' |
| 47685 | /datarootdir/ { |
| 47686 | p |
| 47687 | q |
| 47688 | } |
| 47689 | /@datadir@/p |
| 47690 | /@docdir@/p |
| 47691 | /@infodir@/p |
| 47692 | /@localedir@/p |
| 47693 | /@mandir@/p |
| 47694 | ' |
| 47695 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 47696 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 47697 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 47698 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 47699 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 47700 | _ACEOF |
| 47701 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 47702 | ac_datarootdir_hack=' |
| 47703 | s&@datadir@&$datadir&g |
| 47704 | s&@docdir@&$docdir&g |
| 47705 | s&@infodir@&$infodir&g |
| 47706 | s&@localedir@&$localedir&g |
| 47707 | s&@mandir@&$mandir&g |
| 47708 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 47709 | esac |
| 47710 | _ACEOF |
| 47711 | |
| 47712 | # Neutralize VPATH when `$srcdir' = `.'. |
| 47713 | # Shell code in configure.ac might set extrasub. |
| 47714 | # FIXME: do we really want to maintain this feature? |
| 47715 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 47716 | ac_sed_extra="$ac_vpsub |
| 47717 | $extrasub |
| 47718 | _ACEOF |
| 47719 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 47720 | :t |
| 47721 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 47722 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 47723 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 47724 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 47725 | s&@srcdir@&$ac_srcdir&;t t |
| 47726 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 47727 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 47728 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 47729 | s&@builddir@&$ac_builddir&;t t |
| 47730 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 47731 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 47732 | s&@INSTALL@&$ac_INSTALL&;t t |
| 47733 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 47734 | $ac_datarootdir_hack |
| 47735 | " |
| 47736 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 47737 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 47738 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 47739 | { (exit 1); exit 1; }; } |
| 47740 | |
| 47741 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 47742 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 47743 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 47744 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 47745 | which seems to be undefined. Please make sure it is defined." >&5 |
| 47746 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 47747 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 47748 | |
| 47749 | rm -f "$tmp/stdin" |
| 47750 | case $ac_file in |
| 47751 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 47752 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 47753 | esac \ |
| 47754 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 47755 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 47756 | { (exit 1); exit 1; }; } |
| 47757 | ;; |
| 47758 | :H) |
| 47759 | # |
| 47760 | # CONFIG_HEADER |
| 47761 | # |
| 47762 | if test x"$ac_file" != x-; then |
| 47763 | { |
| 47764 | $as_echo "/* $configure_input */" \ |
| 47765 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 47766 | } >"$tmp/config.h" \ |
| 47767 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 47768 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 47769 | { (exit 1); exit 1; }; } |
| 47770 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 47771 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 47772 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 47773 | else |
| 47774 | rm -f "$ac_file" |
| 47775 | mv "$tmp/config.h" "$ac_file" \ |
| 47776 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 47777 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 47778 | { (exit 1); exit 1; }; } |
| 47779 | fi |
| 47780 | else |
| 47781 | $as_echo "/* $configure_input */" \ |
| 47782 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 47783 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 |
| 47784 | $as_echo "$as_me: error: could not create -" >&2;} |
| 47785 | { (exit 1); exit 1; }; } |
| 47786 | fi |
| 47787 | # Compute "$ac_file"'s index in $config_headers. |
| 47788 | _am_arg="$ac_file" |
| 47789 | _am_stamp_count=1 |
| 47790 | for _am_header in $config_headers :; do |
| 47791 | case $_am_header in |
| 47792 | $_am_arg | $_am_arg:* ) |
| 47793 | break ;; |
| 47794 | * ) |
| 47795 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 47796 | esac |
| 47797 | done |
| 47798 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 47799 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 47800 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 47801 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 47802 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 47803 | $as_echo X"$_am_arg" | |
| 47804 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 47805 | s//\1/ |
| 47806 | q |
| 47807 | } |
| 47808 | /^X\(\/\/\)[^/].*/{ |
| 47809 | s//\1/ |
| 47810 | q |
| 47811 | } |
| 47812 | /^X\(\/\/\)$/{ |
| 47813 | s//\1/ |
| 47814 | q |
| 47815 | } |
| 47816 | /^X\(\/\).*/{ |
| 47817 | s//\1/ |
| 47818 | q |
| 47819 | } |
| 47820 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 47821 | ;; |
| 47822 | |
| 47823 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 47824 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 47825 | ;; |
| 47826 | esac |
| 47827 | |
| 47828 | |
| 47829 | case $ac_file$ac_mode in |
| 47830 | "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h` |
| 47831 | ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` |
| 47832 | ac_prefix_conf_PKG=`echo MagickCore` |
| 47833 | ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` |
| 47834 | ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` |
| 47835 | ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` |
| 47836 | if test ".$ac_prefix_conf_INP" = "."; then |
| 47837 | for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue |
| 47838 | case "$ac_file" in |
| 47839 | *.h) ac_prefix_conf_INP=$ac_file ;; |
| 47840 | *) |
| 47841 | esac |
| 47842 | test ".$ac_prefix_conf_INP" != "." && break |
| 47843 | done |
| 47844 | fi |
| 47845 | if test ".$ac_prefix_conf_INP" = "."; then |
| 47846 | case "$ac_prefix_conf_OUT" in |
| 47847 | */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` |
| 47848 | ;; |
| 47849 | *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` |
| 47850 | ;; |
| 47851 | *) ac_prefix_conf_INP=config.h |
| 47852 | ;; |
| 47853 | esac |
| 47854 | fi |
| 47855 | if test -z "$ac_prefix_conf_PKG" ; then |
| 47856 | { { $as_echo "$as_me:$LINENO: error: no prefix for _PREFIX_PKG_CONFIG_H" >&5 |
| 47857 | $as_echo "$as_me: error: no prefix for _PREFIX_PKG_CONFIG_H" >&2;} |
| 47858 | { (exit 1); exit 1; }; } |
| 47859 | else |
| 47860 | if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then |
| 47861 | ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" |
| 47862 | fi fi |
| 47863 | { $as_echo "$as_me:$LINENO: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 |
| 47864 | $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} |
| 47865 | if test -f $ac_prefix_conf_INP ; then |
| 47866 | echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix |
| 47867 | echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix |
| 47868 | echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix |
| 47869 | echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix |
| 47870 | echo "#endif/" >>conftest.prefix |
| 47871 | echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix |
| 47872 | echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix |
| 47873 | echo "#endif/" >> conftest.prefix |
| 47874 | # now executing _script on _DEF input to create _OUT output file |
| 47875 | echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h |
| 47876 | echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h |
| 47877 | echo ' ' >>$tmp/pconfig.h |
| 47878 | echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h |
| 47879 | |
| 47880 | sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h |
| 47881 | echo ' ' >>$tmp/pconfig.h |
| 47882 | echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h |
| 47883 | echo "#endif" >>$tmp/pconfig.h |
| 47884 | if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then |
| 47885 | { $as_echo "$as_me:$LINENO: $ac_prefix_conf_OUT is unchanged" >&5 |
| 47886 | $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} |
| 47887 | else |
| 47888 | ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || |
| 47889 | $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 47890 | X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ |
| 47891 | X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ |
| 47892 | X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || |
| 47893 | $as_echo X"$ac_prefix_conf_OUT" | |
| 47894 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 47895 | s//\1/ |
| 47896 | q |
| 47897 | } |
| 47898 | /^X\(\/\/\)[^/].*/{ |
| 47899 | s//\1/ |
| 47900 | q |
| 47901 | } |
| 47902 | /^X\(\/\/\)$/{ |
| 47903 | s//\1/ |
| 47904 | q |
| 47905 | } |
| 47906 | /^X\(\/\).*/{ |
| 47907 | s//\1/ |
| 47908 | q |
| 47909 | } |
| 47910 | s/.*/./; q'` |
| 47911 | { as_dir="$ac_dir" |
| 47912 | case $as_dir in #( |
| 47913 | -*) as_dir=./$as_dir;; |
| 47914 | esac |
| 47915 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 47916 | as_dirs= |
| 47917 | while :; do |
| 47918 | case $as_dir in #( |
| 47919 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 47920 | *) as_qdir=$as_dir;; |
| 47921 | esac |
| 47922 | as_dirs="'$as_qdir' $as_dirs" |
| 47923 | as_dir=`$as_dirname -- "$as_dir" || |
| 47924 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 47925 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 47926 | X"$as_dir" : 'X\(//\)$' \| \ |
| 47927 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 47928 | $as_echo X"$as_dir" | |
| 47929 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 47930 | s//\1/ |
| 47931 | q |
| 47932 | } |
| 47933 | /^X\(\/\/\)[^/].*/{ |
| 47934 | s//\1/ |
| 47935 | q |
| 47936 | } |
| 47937 | /^X\(\/\/\)$/{ |
| 47938 | s//\1/ |
| 47939 | q |
| 47940 | } |
| 47941 | /^X\(\/\).*/{ |
| 47942 | s//\1/ |
| 47943 | q |
| 47944 | } |
| 47945 | s/.*/./; q'` |
| 47946 | test -d "$as_dir" && break |
| 47947 | done |
| 47948 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 47949 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 47950 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 47951 | { (exit 1); exit 1; }; }; } |
| 47952 | rm -f "$ac_prefix_conf_OUT" |
| 47953 | mv $tmp/pconfig.h "$ac_prefix_conf_OUT" |
| 47954 | fi |
| 47955 | cp conftest.prefix _configs.sed |
| 47956 | else |
| 47957 | { { $as_echo "$as_me:$LINENO: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&5 |
| 47958 | $as_echo "$as_me: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&2;} |
| 47959 | { (exit 1); exit 1; }; } |
| 47960 | fi |
| 47961 | rm -f conftest.* |
| 47962 | fi |
| 47963 | ;; |
| 47964 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 47965 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 47966 | # are listed without --file. Let's play safe and only enable the eval |
| 47967 | # if we detect the quoting. |
| 47968 | case $CONFIG_FILES in |
| 47969 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 47970 | *) set x $CONFIG_FILES ;; |
| 47971 | esac |
| 47972 | shift |
| 47973 | for mf |
| 47974 | do |
| 47975 | # Strip MF so we end up with the name of the file. |
| 47976 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 47977 | # Check whether this is an Automake generated Makefile or not. |
| 47978 | # We used to match only the files named `Makefile.in', but |
| 47979 | # some people rename them; so instead we look at the file content. |
| 47980 | # Grep'ing the first line is not enough: some people post-process |
| 47981 | # each Makefile.in and add a new line on top of each file to say so. |
| 47982 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 47983 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 47984 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 47985 | dirpart=`$as_dirname -- "$mf" || |
| 47986 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 47987 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 47988 | X"$mf" : 'X\(//\)$' \| \ |
| 47989 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 47990 | $as_echo X"$mf" | |
| 47991 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 47992 | s//\1/ |
| 47993 | q |
| 47994 | } |
| 47995 | /^X\(\/\/\)[^/].*/{ |
| 47996 | s//\1/ |
| 47997 | q |
| 47998 | } |
| 47999 | /^X\(\/\/\)$/{ |
| 48000 | s//\1/ |
| 48001 | q |
| 48002 | } |
| 48003 | /^X\(\/\).*/{ |
| 48004 | s//\1/ |
| 48005 | q |
| 48006 | } |
| 48007 | s/.*/./; q'` |
| 48008 | else |
| 48009 | continue |
| 48010 | fi |
| 48011 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 48012 | # from the Makefile without running `make'. |
| 48013 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 48014 | test -z "$DEPDIR" && continue |
| 48015 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 48016 | test -z "am__include" && continue |
| 48017 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 48018 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 48019 | U=`sed -n 's/^U = //p' < "$mf"` |
| 48020 | # Find all dependency output files, they are included files with |
| 48021 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 48022 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 48023 | # expansion. |
| 48024 | for file in `sed -n " |
| 48025 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 48026 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 48027 | # Make sure the directory exists. |
| 48028 | test -f "$dirpart/$file" && continue |
| 48029 | fdir=`$as_dirname -- "$file" || |
| 48030 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 48031 | X"$file" : 'X\(//\)[^/]' \| \ |
| 48032 | X"$file" : 'X\(//\)$' \| \ |
| 48033 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 48034 | $as_echo X"$file" | |
| 48035 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 48036 | s//\1/ |
| 48037 | q |
| 48038 | } |
| 48039 | /^X\(\/\/\)[^/].*/{ |
| 48040 | s//\1/ |
| 48041 | q |
| 48042 | } |
| 48043 | /^X\(\/\/\)$/{ |
| 48044 | s//\1/ |
| 48045 | q |
| 48046 | } |
| 48047 | /^X\(\/\).*/{ |
| 48048 | s//\1/ |
| 48049 | q |
| 48050 | } |
| 48051 | s/.*/./; q'` |
| 48052 | { as_dir=$dirpart/$fdir |
| 48053 | case $as_dir in #( |
| 48054 | -*) as_dir=./$as_dir;; |
| 48055 | esac |
| 48056 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 48057 | as_dirs= |
| 48058 | while :; do |
| 48059 | case $as_dir in #( |
| 48060 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 48061 | *) as_qdir=$as_dir;; |
| 48062 | esac |
| 48063 | as_dirs="'$as_qdir' $as_dirs" |
| 48064 | as_dir=`$as_dirname -- "$as_dir" || |
| 48065 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 48066 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 48067 | X"$as_dir" : 'X\(//\)$' \| \ |
| 48068 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 48069 | $as_echo X"$as_dir" | |
| 48070 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 48071 | s//\1/ |
| 48072 | q |
| 48073 | } |
| 48074 | /^X\(\/\/\)[^/].*/{ |
| 48075 | s//\1/ |
| 48076 | q |
| 48077 | } |
| 48078 | /^X\(\/\/\)$/{ |
| 48079 | s//\1/ |
| 48080 | q |
| 48081 | } |
| 48082 | /^X\(\/\).*/{ |
| 48083 | s//\1/ |
| 48084 | q |
| 48085 | } |
| 48086 | s/.*/./; q'` |
| 48087 | test -d "$as_dir" && break |
| 48088 | done |
| 48089 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 48090 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 48091 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 48092 | { (exit 1); exit 1; }; }; } |
| 48093 | # echo "creating $dirpart/$file" |
| 48094 | echo '# dummy' > "$dirpart/$file" |
| 48095 | done |
| 48096 | done |
| 48097 | } |
| 48098 | ;; |
| 48099 | "libtool":C) |
| 48100 | |
| 48101 | # See if we are running on zsh, and set the options which allow our |
| 48102 | # commands through without removal of \ escapes. |
| 48103 | if test -n "${ZSH_VERSION+set}" ; then |
| 48104 | setopt NO_GLOB_SUBST |
| 48105 | fi |
| 48106 | |
| 48107 | cfgfile="${ofile}T" |
| 48108 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 48109 | $RM "$cfgfile" |
| 48110 | |
| 48111 | cat <<_LT_EOF >> "$cfgfile" |
| 48112 | #! $SHELL |
| 48113 | |
| 48114 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 48115 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 48116 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 48117 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 48118 | # |
| 48119 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 48120 | # 2006, 2007, 2008 Free Software Foundation, Inc. |
| 48121 | # Written by Gordon Matzigkeit, 1996 |
| 48122 | # |
| 48123 | # This file is part of GNU Libtool. |
| 48124 | # |
| 48125 | # GNU Libtool is free software; you can redistribute it and/or |
| 48126 | # modify it under the terms of the GNU General Public License as |
| 48127 | # published by the Free Software Foundation; either version 2 of |
| 48128 | # the License, or (at your option) any later version. |
| 48129 | # |
| 48130 | # As a special exception to the GNU General Public License, |
| 48131 | # if you distribute this file as part of a program or library that |
| 48132 | # is built using GNU Libtool, you may include this file under the |
| 48133 | # same distribution terms that you use for the rest of that program. |
| 48134 | # |
| 48135 | # GNU Libtool is distributed in the hope that it will be useful, |
| 48136 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 48137 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 48138 | # GNU General Public License for more details. |
| 48139 | # |
| 48140 | # You should have received a copy of the GNU General Public License |
| 48141 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 48142 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 48143 | # obtained by writing to the Free Software Foundation, Inc., |
| 48144 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 48145 | |
| 48146 | |
| 48147 | # The names of the tagged configurations supported by this script. |
| 48148 | available_tags="CXX " |
| 48149 | |
| 48150 | # ### BEGIN LIBTOOL CONFIG |
| 48151 | |
| 48152 | # A sed program that does not truncate output. |
| 48153 | SED=$lt_SED |
| 48154 | |
| 48155 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 48156 | Xsed="\$SED -e 1s/^X//" |
| 48157 | |
| 48158 | # A grep program that handles long lines. |
| 48159 | GREP=$lt_GREP |
| 48160 | |
| 48161 | # An ERE matcher. |
| 48162 | EGREP=$lt_EGREP |
| 48163 | |
| 48164 | # A literal string matcher. |
| 48165 | FGREP=$lt_FGREP |
| 48166 | |
| 48167 | # Which release of libtool.m4 was used? |
| 48168 | macro_version=$macro_version |
| 48169 | macro_revision=$macro_revision |
| 48170 | |
| 48171 | # Assembler program. |
| 48172 | AS=$AS |
| 48173 | |
| 48174 | # DLL creation program. |
| 48175 | DLLTOOL=$DLLTOOL |
| 48176 | |
| 48177 | # Object dumper program. |
| 48178 | OBJDUMP=$OBJDUMP |
| 48179 | |
| 48180 | # Whether or not to build shared libraries. |
| 48181 | build_libtool_libs=$enable_shared |
| 48182 | |
| 48183 | # Whether or not to build static libraries. |
| 48184 | build_old_libs=$enable_static |
| 48185 | |
| 48186 | # What type of objects to build. |
| 48187 | pic_mode=$pic_mode |
| 48188 | |
| 48189 | # Whether or not to optimize for fast installation. |
| 48190 | fast_install=$enable_fast_install |
| 48191 | |
| 48192 | # The host system. |
| 48193 | host_alias=$host_alias |
| 48194 | host=$host |
| 48195 | host_os=$host_os |
| 48196 | |
| 48197 | # The build system. |
| 48198 | build_alias=$build_alias |
| 48199 | build=$build |
| 48200 | build_os=$build_os |
| 48201 | |
| 48202 | # A BSD- or MS-compatible name lister. |
| 48203 | NM=$lt_NM |
| 48204 | |
| 48205 | # Whether we need soft or hard links. |
| 48206 | LN_S=$lt_LN_S |
| 48207 | |
| 48208 | # What is the maximum length of a command? |
| 48209 | max_cmd_len=$max_cmd_len |
| 48210 | |
| 48211 | # Object file suffix (normally "o"). |
| 48212 | objext=$ac_objext |
| 48213 | |
| 48214 | # Executable file suffix (normally ""). |
| 48215 | exeext=$exeext |
| 48216 | |
| 48217 | # whether the shell understands "unset". |
| 48218 | lt_unset=$lt_unset |
| 48219 | |
| 48220 | # turn spaces into newlines. |
| 48221 | SP2NL=$lt_lt_SP2NL |
| 48222 | |
| 48223 | # turn newlines into spaces. |
| 48224 | NL2SP=$lt_lt_NL2SP |
| 48225 | |
| 48226 | # How to create reloadable object files. |
| 48227 | reload_flag=$lt_reload_flag |
| 48228 | reload_cmds=$lt_reload_cmds |
| 48229 | |
| 48230 | # Method to check whether dependent libraries are shared objects. |
| 48231 | deplibs_check_method=$lt_deplibs_check_method |
| 48232 | |
| 48233 | # Command to use when deplibs_check_method == "file_magic". |
| 48234 | file_magic_cmd=$lt_file_magic_cmd |
| 48235 | |
| 48236 | # The archiver. |
| 48237 | AR=$lt_AR |
| 48238 | AR_FLAGS=$lt_AR_FLAGS |
| 48239 | |
| 48240 | # A symbol stripping program. |
| 48241 | STRIP=$lt_STRIP |
| 48242 | |
| 48243 | # Commands used to install an old-style archive. |
| 48244 | RANLIB=$lt_RANLIB |
| 48245 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 48246 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 48247 | |
| 48248 | # A C compiler. |
| 48249 | LTCC=$lt_CC |
| 48250 | |
| 48251 | # LTCC compiler flags. |
| 48252 | LTCFLAGS=$lt_CFLAGS |
| 48253 | |
| 48254 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 48255 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 48256 | |
| 48257 | # Transform the output of nm in a proper C declaration. |
| 48258 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 48259 | |
| 48260 | # Transform the output of nm in a C name address pair. |
| 48261 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 48262 | |
| 48263 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 48264 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 48265 | |
| 48266 | # The name of the directory that contains temporary libtool files. |
| 48267 | objdir=$objdir |
| 48268 | |
| 48269 | # Shell to use when invoking shell scripts. |
| 48270 | SHELL=$lt_SHELL |
| 48271 | |
| 48272 | # An echo program that does not interpret backslashes. |
| 48273 | ECHO=$lt_ECHO |
| 48274 | |
| 48275 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 48276 | MAGIC_CMD=$MAGIC_CMD |
| 48277 | |
| 48278 | # Must we lock files when doing compilation? |
| 48279 | need_locks=$lt_need_locks |
| 48280 | |
| 48281 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 48282 | DSYMUTIL=$lt_DSYMUTIL |
| 48283 | |
| 48284 | # Tool to change global to local symbols on Mac OS X. |
| 48285 | NMEDIT=$lt_NMEDIT |
| 48286 | |
| 48287 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 48288 | LIPO=$lt_LIPO |
| 48289 | |
| 48290 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 48291 | OTOOL=$lt_OTOOL |
| 48292 | |
| 48293 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 48294 | OTOOL64=$lt_OTOOL64 |
| 48295 | |
| 48296 | # Old archive suffix (normally "a"). |
| 48297 | libext=$libext |
| 48298 | |
| 48299 | # Shared library suffix (normally ".so"). |
| 48300 | shrext_cmds=$lt_shrext_cmds |
| 48301 | |
| 48302 | # The commands to extract the exported symbol list from a shared archive. |
| 48303 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 48304 | |
| 48305 | # Variables whose values should be saved in libtool wrapper scripts and |
| 48306 | # restored at link time. |
| 48307 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 48308 | |
| 48309 | # Do we need the "lib" prefix for modules? |
| 48310 | need_lib_prefix=$need_lib_prefix |
| 48311 | |
| 48312 | # Do we need a version for libraries? |
| 48313 | need_version=$need_version |
| 48314 | |
| 48315 | # Library versioning type. |
| 48316 | version_type=$version_type |
| 48317 | |
| 48318 | # Shared library runtime path variable. |
| 48319 | runpath_var=$runpath_var |
| 48320 | |
| 48321 | # Shared library path variable. |
| 48322 | shlibpath_var=$shlibpath_var |
| 48323 | |
| 48324 | # Is shlibpath searched before the hard-coded library search path? |
| 48325 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 48326 | |
| 48327 | # Format of library name prefix. |
| 48328 | libname_spec=$lt_libname_spec |
| 48329 | |
| 48330 | # List of archive names. First name is the real one, the rest are links. |
| 48331 | # The last name is the one that the linker finds with -lNAME |
| 48332 | library_names_spec=$lt_library_names_spec |
| 48333 | |
| 48334 | # The coded name of the library, if different from the real name. |
| 48335 | soname_spec=$lt_soname_spec |
| 48336 | |
| 48337 | # Command to use after installation of a shared archive. |
| 48338 | postinstall_cmds=$lt_postinstall_cmds |
| 48339 | |
| 48340 | # Command to use after uninstallation of a shared archive. |
| 48341 | postuninstall_cmds=$lt_postuninstall_cmds |
| 48342 | |
| 48343 | # Commands used to finish a libtool library installation in a directory. |
| 48344 | finish_cmds=$lt_finish_cmds |
| 48345 | |
| 48346 | # As "finish_cmds", except a single script fragment to be evaled but |
| 48347 | # not shown. |
| 48348 | finish_eval=$lt_finish_eval |
| 48349 | |
| 48350 | # Whether we should hardcode library paths into libraries. |
| 48351 | hardcode_into_libs=$hardcode_into_libs |
| 48352 | |
| 48353 | # Compile-time system search path for libraries. |
| 48354 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 48355 | |
| 48356 | # Run-time system search path for libraries. |
| 48357 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 48358 | |
| 48359 | # Whether dlopen is supported. |
| 48360 | dlopen_support=$enable_dlopen |
| 48361 | |
| 48362 | # Whether dlopen of programs is supported. |
| 48363 | dlopen_self=$enable_dlopen_self |
| 48364 | |
| 48365 | # Whether dlopen of statically linked programs is supported. |
| 48366 | dlopen_self_static=$enable_dlopen_self_static |
| 48367 | |
| 48368 | # Commands to strip libraries. |
| 48369 | old_striplib=$lt_old_striplib |
| 48370 | striplib=$lt_striplib |
| 48371 | |
| 48372 | |
| 48373 | # The linker used to build libraries. |
| 48374 | LD=$lt_LD |
| 48375 | |
| 48376 | # Commands used to build an old-style archive. |
| 48377 | old_archive_cmds=$lt_old_archive_cmds |
| 48378 | |
| 48379 | # A language specific compiler. |
| 48380 | CC=$lt_compiler |
| 48381 | |
| 48382 | # Is the compiler the GNU compiler? |
| 48383 | with_gcc=$GCC |
| 48384 | |
| 48385 | # Compiler flag to turn off builtin functions. |
| 48386 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 48387 | |
| 48388 | # How to pass a linker flag through the compiler. |
| 48389 | wl=$lt_lt_prog_compiler_wl |
| 48390 | |
| 48391 | # Additional compiler flags for building library objects. |
| 48392 | pic_flag=$lt_lt_prog_compiler_pic |
| 48393 | |
| 48394 | # Compiler flag to prevent dynamic linking. |
| 48395 | link_static_flag=$lt_lt_prog_compiler_static |
| 48396 | |
| 48397 | # Does compiler simultaneously support -c and -o options? |
| 48398 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 48399 | |
| 48400 | # Whether or not to add -lc for building shared libraries. |
| 48401 | build_libtool_need_lc=$archive_cmds_need_lc |
| 48402 | |
| 48403 | # Whether or not to disallow shared libs when runtime libs are static. |
| 48404 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 48405 | |
| 48406 | # Compiler flag to allow reflexive dlopens. |
| 48407 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 48408 | |
| 48409 | # Compiler flag to generate shared objects directly from archives. |
| 48410 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 48411 | |
| 48412 | # Whether the compiler copes with passing no objects directly. |
| 48413 | compiler_needs_object=$lt_compiler_needs_object |
| 48414 | |
| 48415 | # Create an old-style archive from a shared archive. |
| 48416 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 48417 | |
| 48418 | # Create a temporary old-style archive to link instead of a shared archive. |
| 48419 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 48420 | |
| 48421 | # Commands used to build a shared archive. |
| 48422 | archive_cmds=$lt_archive_cmds |
| 48423 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 48424 | |
| 48425 | # Commands used to build a loadable module if different from building |
| 48426 | # a shared archive. |
| 48427 | module_cmds=$lt_module_cmds |
| 48428 | module_expsym_cmds=$lt_module_expsym_cmds |
| 48429 | |
| 48430 | # Whether we are building with GNU ld or not. |
| 48431 | with_gnu_ld=$lt_with_gnu_ld |
| 48432 | |
| 48433 | # Flag that allows shared libraries with undefined symbols to be built. |
| 48434 | allow_undefined_flag=$lt_allow_undefined_flag |
| 48435 | |
| 48436 | # Flag that enforces no undefined symbols. |
| 48437 | no_undefined_flag=$lt_no_undefined_flag |
| 48438 | |
| 48439 | # Flag to hardcode \$libdir into a binary during linking. |
| 48440 | # This must work even if \$libdir does not exist |
| 48441 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 48442 | |
| 48443 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 48444 | # during linking. This must work even if \$libdir does not exist. |
| 48445 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 48446 | |
| 48447 | # Whether we need a single "-rpath" flag with a separated argument. |
| 48448 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 48449 | |
| 48450 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 48451 | # DIR into the resulting binary. |
| 48452 | hardcode_direct=$hardcode_direct |
| 48453 | |
| 48454 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 48455 | # DIR into the resulting binary and the resulting library dependency is |
| 48456 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 48457 | # library is relocated. |
| 48458 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 48459 | |
| 48460 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 48461 | # into the resulting binary. |
| 48462 | hardcode_minus_L=$hardcode_minus_L |
| 48463 | |
| 48464 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 48465 | # into the resulting binary. |
| 48466 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 48467 | |
| 48468 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 48469 | # into the library and all subsequent libraries and executables linked |
| 48470 | # against it. |
| 48471 | hardcode_automatic=$hardcode_automatic |
| 48472 | |
| 48473 | # Set to yes if linker adds runtime paths of dependent libraries |
| 48474 | # to runtime path list. |
| 48475 | inherit_rpath=$inherit_rpath |
| 48476 | |
| 48477 | # Whether libtool must link a program against all its dependency libraries. |
| 48478 | link_all_deplibs=$link_all_deplibs |
| 48479 | |
| 48480 | # Fix the shell variable \$srcfile for the compiler. |
| 48481 | fix_srcfile_path=$lt_fix_srcfile_path |
| 48482 | |
| 48483 | # Set to "yes" if exported symbols are required. |
| 48484 | always_export_symbols=$always_export_symbols |
| 48485 | |
| 48486 | # The commands to list exported symbols. |
| 48487 | export_symbols_cmds=$lt_export_symbols_cmds |
| 48488 | |
| 48489 | # Symbols that should not be listed in the preloaded symbols. |
| 48490 | exclude_expsyms=$lt_exclude_expsyms |
| 48491 | |
| 48492 | # Symbols that must always be exported. |
| 48493 | include_expsyms=$lt_include_expsyms |
| 48494 | |
| 48495 | # Commands necessary for linking programs (against libraries) with templates. |
| 48496 | prelink_cmds=$lt_prelink_cmds |
| 48497 | |
| 48498 | # Specify filename containing input files. |
| 48499 | file_list_spec=$lt_file_list_spec |
| 48500 | |
| 48501 | # How to hardcode a shared library path into an executable. |
| 48502 | hardcode_action=$hardcode_action |
| 48503 | |
| 48504 | # The directories searched by this compiler when creating a shared library. |
| 48505 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 48506 | |
| 48507 | # Dependencies to place before and after the objects being linked to |
| 48508 | # create a shared library. |
| 48509 | predep_objects=$lt_predep_objects |
| 48510 | postdep_objects=$lt_postdep_objects |
| 48511 | predeps=$lt_predeps |
| 48512 | postdeps=$lt_postdeps |
| 48513 | |
| 48514 | # The library search path used internally by the compiler when linking |
| 48515 | # a shared library. |
| 48516 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 48517 | |
| 48518 | # ### END LIBTOOL CONFIG |
| 48519 | |
| 48520 | _LT_EOF |
| 48521 | |
| 48522 | case $host_os in |
| 48523 | aix3*) |
| 48524 | cat <<\_LT_EOF >> "$cfgfile" |
| 48525 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 48526 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 48527 | # vanish in a puff of smoke. |
| 48528 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 48529 | COLLECT_NAMES= |
| 48530 | export COLLECT_NAMES |
| 48531 | fi |
| 48532 | _LT_EOF |
| 48533 | ;; |
| 48534 | esac |
| 48535 | |
| 48536 | |
| 48537 | ltmain="$ac_aux_dir/ltmain.sh" |
| 48538 | |
| 48539 | |
| 48540 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 48541 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 48542 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 48543 | # is reportedly fixed, but why not run on old versions too? |
| 48544 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
| 48545 | || (rm -f "$cfgfile"; exit 1) |
| 48546 | |
| 48547 | case $xsi_shell in |
| 48548 | yes) |
| 48549 | cat << \_LT_EOF >> "$cfgfile" |
| 48550 | |
| 48551 | # func_dirname file append nondir_replacement |
| 48552 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 48553 | # otherwise set result to NONDIR_REPLACEMENT. |
| 48554 | func_dirname () |
| 48555 | { |
| 48556 | case ${1} in |
| 48557 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 48558 | * ) func_dirname_result="${3}" ;; |
| 48559 | esac |
| 48560 | } |
| 48561 | |
| 48562 | # func_basename file |
| 48563 | func_basename () |
| 48564 | { |
| 48565 | func_basename_result="${1##*/}" |
| 48566 | } |
| 48567 | |
| 48568 | # func_dirname_and_basename file append nondir_replacement |
| 48569 | # perform func_basename and func_dirname in a single function |
| 48570 | # call: |
| 48571 | # dirname: Compute the dirname of FILE. If nonempty, |
| 48572 | # add APPEND to the result, otherwise set result |
| 48573 | # to NONDIR_REPLACEMENT. |
| 48574 | # value returned in "$func_dirname_result" |
| 48575 | # basename: Compute filename of FILE. |
| 48576 | # value retuned in "$func_basename_result" |
| 48577 | # Implementation must be kept synchronized with func_dirname |
| 48578 | # and func_basename. For efficiency, we do not delegate to |
| 48579 | # those functions but instead duplicate the functionality here. |
| 48580 | func_dirname_and_basename () |
| 48581 | { |
| 48582 | case ${1} in |
| 48583 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 48584 | * ) func_dirname_result="${3}" ;; |
| 48585 | esac |
| 48586 | func_basename_result="${1##*/}" |
| 48587 | } |
| 48588 | |
| 48589 | # func_stripname prefix suffix name |
| 48590 | # strip PREFIX and SUFFIX off of NAME. |
| 48591 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 48592 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 48593 | # dot (in which case that matches only a dot). |
| 48594 | func_stripname () |
| 48595 | { |
| 48596 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 48597 | # positional parameters, so assign one to ordinary parameter first. |
| 48598 | func_stripname_result=${3} |
| 48599 | func_stripname_result=${func_stripname_result#"${1}"} |
| 48600 | func_stripname_result=${func_stripname_result%"${2}"} |
| 48601 | } |
| 48602 | |
| 48603 | # func_opt_split |
| 48604 | func_opt_split () |
| 48605 | { |
| 48606 | func_opt_split_opt=${1%%=*} |
| 48607 | func_opt_split_arg=${1#*=} |
| 48608 | } |
| 48609 | |
| 48610 | # func_lo2o object |
| 48611 | func_lo2o () |
| 48612 | { |
| 48613 | case ${1} in |
| 48614 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 48615 | *) func_lo2o_result=${1} ;; |
| 48616 | esac |
| 48617 | } |
| 48618 | |
| 48619 | # func_xform libobj-or-source |
| 48620 | func_xform () |
| 48621 | { |
| 48622 | func_xform_result=${1%.*}.lo |
| 48623 | } |
| 48624 | |
| 48625 | # func_arith arithmetic-term... |
| 48626 | func_arith () |
| 48627 | { |
| 48628 | func_arith_result=$(( $* )) |
| 48629 | } |
| 48630 | |
| 48631 | # func_len string |
| 48632 | # STRING may not start with a hyphen. |
| 48633 | func_len () |
| 48634 | { |
| 48635 | func_len_result=${#1} |
| 48636 | } |
| 48637 | |
| 48638 | _LT_EOF |
| 48639 | ;; |
| 48640 | *) # Bourne compatible functions. |
| 48641 | cat << \_LT_EOF >> "$cfgfile" |
| 48642 | |
| 48643 | # func_dirname file append nondir_replacement |
| 48644 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 48645 | # otherwise set result to NONDIR_REPLACEMENT. |
| 48646 | func_dirname () |
| 48647 | { |
| 48648 | # Extract subdirectory from the argument. |
| 48649 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
| 48650 | if test "X$func_dirname_result" = "X${1}"; then |
| 48651 | func_dirname_result="${3}" |
| 48652 | else |
| 48653 | func_dirname_result="$func_dirname_result${2}" |
| 48654 | fi |
| 48655 | } |
| 48656 | |
| 48657 | # func_basename file |
| 48658 | func_basename () |
| 48659 | { |
| 48660 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
| 48661 | } |
| 48662 | |
| 48663 | |
| 48664 | # func_stripname prefix suffix name |
| 48665 | # strip PREFIX and SUFFIX off of NAME. |
| 48666 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 48667 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 48668 | # dot (in which case that matches only a dot). |
| 48669 | # func_strip_suffix prefix name |
| 48670 | func_stripname () |
| 48671 | { |
| 48672 | case ${2} in |
| 48673 | .*) func_stripname_result=`$ECHO "X${3}" \ |
| 48674 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
| 48675 | *) func_stripname_result=`$ECHO "X${3}" \ |
| 48676 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
| 48677 | esac |
| 48678 | } |
| 48679 | |
| 48680 | # sed scripts: |
| 48681 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
| 48682 | my_sed_long_arg='1s/^-[^=]*=//' |
| 48683 | |
| 48684 | # func_opt_split |
| 48685 | func_opt_split () |
| 48686 | { |
| 48687 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
| 48688 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
| 48689 | } |
| 48690 | |
| 48691 | # func_lo2o object |
| 48692 | func_lo2o () |
| 48693 | { |
| 48694 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
| 48695 | } |
| 48696 | |
| 48697 | # func_xform libobj-or-source |
| 48698 | func_xform () |
| 48699 | { |
| 48700 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` |
| 48701 | } |
| 48702 | |
| 48703 | # func_arith arithmetic-term... |
| 48704 | func_arith () |
| 48705 | { |
| 48706 | func_arith_result=`expr "$@"` |
| 48707 | } |
| 48708 | |
| 48709 | # func_len string |
| 48710 | # STRING may not start with a hyphen. |
| 48711 | func_len () |
| 48712 | { |
| 48713 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
| 48714 | } |
| 48715 | |
| 48716 | _LT_EOF |
| 48717 | esac |
| 48718 | |
| 48719 | case $lt_shell_append in |
| 48720 | yes) |
| 48721 | cat << \_LT_EOF >> "$cfgfile" |
| 48722 | |
| 48723 | # func_append var value |
| 48724 | # Append VALUE to the end of shell variable VAR. |
| 48725 | func_append () |
| 48726 | { |
| 48727 | eval "$1+=\$2" |
| 48728 | } |
| 48729 | _LT_EOF |
| 48730 | ;; |
| 48731 | *) |
| 48732 | cat << \_LT_EOF >> "$cfgfile" |
| 48733 | |
| 48734 | # func_append var value |
| 48735 | # Append VALUE to the end of shell variable VAR. |
| 48736 | func_append () |
| 48737 | { |
| 48738 | eval "$1=\$$1\$2" |
| 48739 | } |
| 48740 | |
| 48741 | _LT_EOF |
| 48742 | ;; |
| 48743 | esac |
| 48744 | |
| 48745 | |
| 48746 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
| 48747 | || (rm -f "$cfgfile"; exit 1) |
| 48748 | |
| 48749 | mv -f "$cfgfile" "$ofile" || |
| 48750 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 48751 | chmod +x "$ofile" |
| 48752 | |
| 48753 | |
| 48754 | cat <<_LT_EOF >> "$ofile" |
| 48755 | |
| 48756 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 48757 | |
| 48758 | # The linker used to build libraries. |
| 48759 | LD=$lt_LD_CXX |
| 48760 | |
| 48761 | # Commands used to build an old-style archive. |
| 48762 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 48763 | |
| 48764 | # A language specific compiler. |
| 48765 | CC=$lt_compiler_CXX |
| 48766 | |
| 48767 | # Is the compiler the GNU compiler? |
| 48768 | with_gcc=$GCC_CXX |
| 48769 | |
| 48770 | # Compiler flag to turn off builtin functions. |
| 48771 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 48772 | |
| 48773 | # How to pass a linker flag through the compiler. |
| 48774 | wl=$lt_lt_prog_compiler_wl_CXX |
| 48775 | |
| 48776 | # Additional compiler flags for building library objects. |
| 48777 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 48778 | |
| 48779 | # Compiler flag to prevent dynamic linking. |
| 48780 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 48781 | |
| 48782 | # Does compiler simultaneously support -c and -o options? |
| 48783 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 48784 | |
| 48785 | # Whether or not to add -lc for building shared libraries. |
| 48786 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 48787 | |
| 48788 | # Whether or not to disallow shared libs when runtime libs are static. |
| 48789 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 48790 | |
| 48791 | # Compiler flag to allow reflexive dlopens. |
| 48792 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 48793 | |
| 48794 | # Compiler flag to generate shared objects directly from archives. |
| 48795 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 48796 | |
| 48797 | # Whether the compiler copes with passing no objects directly. |
| 48798 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 48799 | |
| 48800 | # Create an old-style archive from a shared archive. |
| 48801 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 48802 | |
| 48803 | # Create a temporary old-style archive to link instead of a shared archive. |
| 48804 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 48805 | |
| 48806 | # Commands used to build a shared archive. |
| 48807 | archive_cmds=$lt_archive_cmds_CXX |
| 48808 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 48809 | |
| 48810 | # Commands used to build a loadable module if different from building |
| 48811 | # a shared archive. |
| 48812 | module_cmds=$lt_module_cmds_CXX |
| 48813 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 48814 | |
| 48815 | # Whether we are building with GNU ld or not. |
| 48816 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 48817 | |
| 48818 | # Flag that allows shared libraries with undefined symbols to be built. |
| 48819 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 48820 | |
| 48821 | # Flag that enforces no undefined symbols. |
| 48822 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 48823 | |
| 48824 | # Flag to hardcode \$libdir into a binary during linking. |
| 48825 | # This must work even if \$libdir does not exist |
| 48826 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 48827 | |
| 48828 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 48829 | # during linking. This must work even if \$libdir does not exist. |
| 48830 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 48831 | |
| 48832 | # Whether we need a single "-rpath" flag with a separated argument. |
| 48833 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 48834 | |
| 48835 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 48836 | # DIR into the resulting binary. |
| 48837 | hardcode_direct=$hardcode_direct_CXX |
| 48838 | |
| 48839 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 48840 | # DIR into the resulting binary and the resulting library dependency is |
| 48841 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 48842 | # library is relocated. |
| 48843 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 48844 | |
| 48845 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 48846 | # into the resulting binary. |
| 48847 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 48848 | |
| 48849 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 48850 | # into the resulting binary. |
| 48851 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 48852 | |
| 48853 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 48854 | # into the library and all subsequent libraries and executables linked |
| 48855 | # against it. |
| 48856 | hardcode_automatic=$hardcode_automatic_CXX |
| 48857 | |
| 48858 | # Set to yes if linker adds runtime paths of dependent libraries |
| 48859 | # to runtime path list. |
| 48860 | inherit_rpath=$inherit_rpath_CXX |
| 48861 | |
| 48862 | # Whether libtool must link a program against all its dependency libraries. |
| 48863 | link_all_deplibs=$link_all_deplibs_CXX |
| 48864 | |
| 48865 | # Fix the shell variable \$srcfile for the compiler. |
| 48866 | fix_srcfile_path=$lt_fix_srcfile_path_CXX |
| 48867 | |
| 48868 | # Set to "yes" if exported symbols are required. |
| 48869 | always_export_symbols=$always_export_symbols_CXX |
| 48870 | |
| 48871 | # The commands to list exported symbols. |
| 48872 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 48873 | |
| 48874 | # Symbols that should not be listed in the preloaded symbols. |
| 48875 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 48876 | |
| 48877 | # Symbols that must always be exported. |
| 48878 | include_expsyms=$lt_include_expsyms_CXX |
| 48879 | |
| 48880 | # Commands necessary for linking programs (against libraries) with templates. |
| 48881 | prelink_cmds=$lt_prelink_cmds_CXX |
| 48882 | |
| 48883 | # Specify filename containing input files. |
| 48884 | file_list_spec=$lt_file_list_spec_CXX |
| 48885 | |
| 48886 | # How to hardcode a shared library path into an executable. |
| 48887 | hardcode_action=$hardcode_action_CXX |
| 48888 | |
| 48889 | # The directories searched by this compiler when creating a shared library. |
| 48890 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 48891 | |
| 48892 | # Dependencies to place before and after the objects being linked to |
| 48893 | # create a shared library. |
| 48894 | predep_objects=$lt_predep_objects_CXX |
| 48895 | postdep_objects=$lt_postdep_objects_CXX |
| 48896 | predeps=$lt_predeps_CXX |
| 48897 | postdeps=$lt_postdeps_CXX |
| 48898 | |
| 48899 | # The library search path used internally by the compiler when linking |
| 48900 | # a shared library. |
| 48901 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 48902 | |
| 48903 | # ### END LIBTOOL TAG CONFIG: CXX |
| 48904 | _LT_EOF |
| 48905 | |
| 48906 | ;; |
| 48907 | "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;; |
| 48908 | "Magick-config.in":C) chmod +x magick/Magick-config ;; |
| 48909 | "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;; |
| 48910 | "Wand-config.in":C) chmod +x wand/Wand-config ;; |
| 48911 | "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;; |
| 48912 | "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;; |
| 48913 | |
| 48914 | esac |
| 48915 | done # for ac_tag |
| 48916 | |
| 48917 | |
| 48918 | { (exit 0); exit 0; } |
| 48919 | _ACEOF |
| 48920 | chmod +x $CONFIG_STATUS |
| 48921 | ac_clean_files=$ac_clean_files_save |
| 48922 | |
| 48923 | test $ac_write_fail = 0 || |
| 48924 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
| 48925 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
| 48926 | { (exit 1); exit 1; }; } |
| 48927 | |
| 48928 | |
| 48929 | # configure is writing to config.log, and then calls config.status. |
| 48930 | # config.status does its own redirection, appending to config.log. |
| 48931 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 48932 | # by configure, so config.status won't be able to write to it; its |
| 48933 | # output is simply discarded. So we exec the FD to /dev/null, |
| 48934 | # effectively closing config.log, so it can be properly (re)opened and |
| 48935 | # appended to by config.status. When coming back to configure, we |
| 48936 | # need to make the FD available again. |
| 48937 | if test "$no_create" != yes; then |
| 48938 | ac_cs_success=: |
| 48939 | ac_config_status_args= |
| 48940 | test "$silent" = yes && |
| 48941 | ac_config_status_args="$ac_config_status_args --quiet" |
| 48942 | exec 5>/dev/null |
| 48943 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 48944 | exec 5>>config.log |
| 48945 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 48946 | # would make configure fail if this is the last instruction. |
| 48947 | $ac_cs_success || { (exit 1); exit 1; } |
| 48948 | fi |
| 48949 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 48950 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 48951 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 48952 | fi |
| 48953 | |
| 48954 | |
| 48955 | rm -f magick-version |
| 48956 | |
| 48957 | result_ghostscript_font_dir='none' |
| 48958 | if test "${ghostscript_font_dir}x" != 'x'; then |
| 48959 | result_ghostscript_font_dir=$ghostscript_font_dir |
| 48960 | fi |
| 48961 | |
| 48962 | result_windows_font_dir='none' |
| 48963 | if test "${windows_font_dir}x" != 'x'; then |
| 48964 | result_windows_font_dir=${windows_font_dir} |
| 48965 | fi |
| 48966 | |
| 48967 | { $as_echo "$as_me:$LINENO: result: |
| 48968 | ImageMagick is configured as follows. Please verify that this configuration |
| 48969 | matches your expectations. |
| 48970 | |
| 48971 | Host system type: $host |
| 48972 | Build system type: $build |
| 48973 | |
| 48974 | Option Value |
| 48975 | ------------------------------------------------------------------------------- |
| 48976 | Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs |
| 48977 | Static libraries --enable-static=$enable_static $libtool_build_static_libs |
| 48978 | Module support --with-modules=$with_modules $with_modules |
| 48979 | GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld |
| 48980 | Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth |
| 48981 | High Dynamic Range Imagery |
| 48982 | --enable-hdri=$enable_hdri $enable_hdri |
| 48983 | |
| 48984 | Delegate Configuration: |
| 48985 | BZLIB --with-bzlib=$with_bzlib $have_bzlib |
| 48986 | Autotrace --with-autotrace=$with_autotrace $have_autotrace |
| 48987 | DJVU --with-djvu=$with_djvu $have_djvu |
| 48988 | DPS --with-dps=$with_dps $have_dps |
| 48989 | FFTW --with-fftw=$with_fftw $have_fftw |
| 48990 | FlashPIX --with-fpx=$with_fpx $have_fpx |
| 48991 | FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig |
| 48992 | FreeType --with-freetype=$with_freetype $have_freetype |
| 48993 | GhostPCL None $PCLDelegate ($PCLVersion) |
| 48994 | GhostXPS None $XPSDelegate ($XPSVersion) |
| 48995 | Ghostscript None $PSDelegate ($GSVersion) |
| 48996 | Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir |
| 48997 | Ghostscript lib --with-gslib=$with_gslib $have_gslib |
| 48998 | Graphviz --with-gvc=$with_gvc $have_gvc |
| 48999 | JBIG --with-jbig=$with_jbig $have_jbig |
| 49000 | JPEG v1 --with-jpeg=$with_jpeg $have_jpeg |
| 49001 | JPEG-2000 --with-jp2=$with_jp2 $have_jp2 |
| 49002 | LCMS --with-lcms=$with_lcms $have_lcms |
| 49003 | LQR --with-lqr=$with_lqr $have_lqr |
| 49004 | Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus |
| 49005 | OpenEXR --with-openexr=$with_openexr $have_openexr |
| 49006 | PERL --with-perl=$with_perl $have_perl |
| 49007 | PNG --with-png=$with_png $have_png |
| 49008 | RSVG --with-rsvg=$with_rsvg $have_rsvg |
| 49009 | TIFF --with-tiff=$with_tiff $have_tiff |
| 49010 | Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir |
| 49011 | WMF --with-wmf=$with_wmf $have_wmf |
| 49012 | X11 --with-x=$with_x $have_x |
| 49013 | XML --with-xml=$with_xml $have_xml |
| 49014 | ZLIB --with-zlib=$with_zlib $have_zlib |
| 49015 | |
| 49016 | X11 Configuration: |
| 49017 | X_CFLAGS = $X_CFLAGS |
| 49018 | X_PRE_LIBS = $X_PRE_LIBS |
| 49019 | X_LIBS = $X_LIBS |
| 49020 | X_EXTRA_LIBS = $X_EXTRA_LIBS |
| 49021 | |
| 49022 | Options used to compile and link: |
| 49023 | PREFIX = $PREFIX_DIR |
| 49024 | EXEC-PREFIX = $EXEC_PREFIX_DIR |
| 49025 | VERSION = $PACKAGE_VERSION |
| 49026 | CC = $CC |
| 49027 | CFLAGS = $CFLAGS |
| 49028 | MAGICK_CFLAGS = $MAGICK_CFLAGS |
| 49029 | CPPFLAGS = $MAGICK_CPPFLAGS |
| 49030 | PCFLAGS = $MAGICK_PCFLAGS |
| 49031 | DEFS = $DEFS |
| 49032 | LDFLAGS = $LDFLAGS |
| 49033 | MAGICK_LDFLAGS = $MAGICK_LDFLAGS |
| 49034 | LIBS = $MAGICK_LIBS |
| 49035 | CXX = $CXX |
| 49036 | CXXFLAGS = $CXXFLAGS |
| 49037 | " >&5 |
| 49038 | $as_echo " |
| 49039 | ImageMagick is configured as follows. Please verify that this configuration |
| 49040 | matches your expectations. |
| 49041 | |
| 49042 | Host system type: $host |
| 49043 | Build system type: $build |
| 49044 | |
| 49045 | Option Value |
| 49046 | ------------------------------------------------------------------------------- |
| 49047 | Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs |
| 49048 | Static libraries --enable-static=$enable_static $libtool_build_static_libs |
| 49049 | Module support --with-modules=$with_modules $with_modules |
| 49050 | GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld |
| 49051 | Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth |
| 49052 | High Dynamic Range Imagery |
| 49053 | --enable-hdri=$enable_hdri $enable_hdri |
| 49054 | |
| 49055 | Delegate Configuration: |
| 49056 | BZLIB --with-bzlib=$with_bzlib $have_bzlib |
| 49057 | Autotrace --with-autotrace=$with_autotrace $have_autotrace |
| 49058 | DJVU --with-djvu=$with_djvu $have_djvu |
| 49059 | DPS --with-dps=$with_dps $have_dps |
| 49060 | FFTW --with-fftw=$with_fftw $have_fftw |
| 49061 | FlashPIX --with-fpx=$with_fpx $have_fpx |
| 49062 | FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig |
| 49063 | FreeType --with-freetype=$with_freetype $have_freetype |
| 49064 | GhostPCL None $PCLDelegate ($PCLVersion) |
| 49065 | GhostXPS None $XPSDelegate ($XPSVersion) |
| 49066 | Ghostscript None $PSDelegate ($GSVersion) |
| 49067 | Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir |
| 49068 | Ghostscript lib --with-gslib=$with_gslib $have_gslib |
| 49069 | Graphviz --with-gvc=$with_gvc $have_gvc |
| 49070 | JBIG --with-jbig=$with_jbig $have_jbig |
| 49071 | JPEG v1 --with-jpeg=$with_jpeg $have_jpeg |
| 49072 | JPEG-2000 --with-jp2=$with_jp2 $have_jp2 |
| 49073 | LCMS --with-lcms=$with_lcms $have_lcms |
| 49074 | LQR --with-lqr=$with_lqr $have_lqr |
| 49075 | Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus |
| 49076 | OpenEXR --with-openexr=$with_openexr $have_openexr |
| 49077 | PERL --with-perl=$with_perl $have_perl |
| 49078 | PNG --with-png=$with_png $have_png |
| 49079 | RSVG --with-rsvg=$with_rsvg $have_rsvg |
| 49080 | TIFF --with-tiff=$with_tiff $have_tiff |
| 49081 | Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir |
| 49082 | WMF --with-wmf=$with_wmf $have_wmf |
| 49083 | X11 --with-x=$with_x $have_x |
| 49084 | XML --with-xml=$with_xml $have_xml |
| 49085 | ZLIB --with-zlib=$with_zlib $have_zlib |
| 49086 | |
| 49087 | X11 Configuration: |
| 49088 | X_CFLAGS = $X_CFLAGS |
| 49089 | X_PRE_LIBS = $X_PRE_LIBS |
| 49090 | X_LIBS = $X_LIBS |
| 49091 | X_EXTRA_LIBS = $X_EXTRA_LIBS |
| 49092 | |
| 49093 | Options used to compile and link: |
| 49094 | PREFIX = $PREFIX_DIR |
| 49095 | EXEC-PREFIX = $EXEC_PREFIX_DIR |
| 49096 | VERSION = $PACKAGE_VERSION |
| 49097 | CC = $CC |
| 49098 | CFLAGS = $CFLAGS |
| 49099 | MAGICK_CFLAGS = $MAGICK_CFLAGS |
| 49100 | CPPFLAGS = $MAGICK_CPPFLAGS |
| 49101 | PCFLAGS = $MAGICK_PCFLAGS |
| 49102 | DEFS = $DEFS |
| 49103 | LDFLAGS = $LDFLAGS |
| 49104 | MAGICK_LDFLAGS = $MAGICK_LDFLAGS |
| 49105 | LIBS = $MAGICK_LIBS |
| 49106 | CXX = $CXX |
| 49107 | CXXFLAGS = $CXXFLAGS |
| 49108 | " >&6; } |