1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for ImageMagick 7.0.2-5. 4 # 5 # Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9 # 10 # 11 # This configure script is free software; the Free Software Foundation 12 # gives unlimited permission to copy, distribute and modify it. 13 ## -------------------- ## 14 ## M4sh Initialization. ## 15 ## -------------------- ## 16 17 # Be more Bourne compatible 18 DUALCASE=1; export DUALCASE # for MKS sh 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26 else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32 esac 33 fi 34 35 36 as_nl=' 37 ' 38 export as_nl 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43 # Prefer a ksh shell builtin over an external printf program on Solaris, 44 # but without wasting forks for bash or zsh. 45 if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49 elif (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 84 # IFS 85 # We need space, tab and new line, in precisely that order. Quoting is 86 # there to prevent editors from complaining about space-tab. 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 88 # splitting by setting IFS to empty value.) 89 IFS=" "" $as_nl" 90 91 # Find who we are. Look in the path if we contain no directory separator. 92 as_myself= 93 case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96 for as_dir in $PATH 97 do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as `sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 # Unset variables that we do not need and which cause bugs (e.g. in 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118 # suppresses any "Segmentation fault" message there. '((' could 119 # trigger a bug in pdksh 5.2.14. 120 for as_var in BASH_ENV ENV MAIL MAILPATH 121 do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123 done 124 PS1='$ ' 125 PS2='> ' 126 PS4='+ ' 127 128 # NLS nuisances. 129 LC_ALL=C 130 export LC_ALL 131 LANGUAGE=C 132 export LANGUAGE 133 134 # CDPATH. 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137 # Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142 # neutralization value for shells without unset; and this also 143 # works around shells that cannot unset nonexistent variables. 144 # Preserve -v and -x to the replacement shell. 145 BASH_ENV=/dev/null 146 ENV=/dev/null 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148 case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153 esac 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155 # Admittedly, this is quite paranoid, since all the known shells bail 156 # out after a failed `exec'. 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158 as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162 if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170 else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176 esac 177 fi 178 " 179 as_required="as_fn_return () { (exit \$1); } 180 as_fn_success () { as_fn_return 0; } 181 as_fn_failure () { as_fn_return 1; } 182 as_fn_ret_success () { return 0; } 183 as_fn_ret_failure () { return 1; } 184 185 exitcode=0 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192 else 193 exitcode=1; echo positional parameters were not saved. 194 fi 195 test x\$exitcode = x0 || exit 1 196 test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212 else 213 as_have_required=no 214 fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217 else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219 as_found=false 220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221 do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235 fi 236 fi 237 done;; 238 esac 239 as_found=false 240 done 241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244 fi; } 245 IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251 # neutralization value for shells without unset; and this also 252 # works around shells that cannot unset nonexistent variables. 253 # Preserve -v and -x to the replacement shell. 254 BASH_ENV=/dev/null 255 ENV=/dev/null 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257 case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262 esac 263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264 # Admittedly, this is quite paranoid, since all the known shells bail 265 # out after a failed `exec'. 266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267 exit 255 268 fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and 278 $0: https://github.com/ImageMagick/ImageMagick/issues about 279 $0: your system, including any error possibly output before 280 $0: this message. Then install a modern shell, or manually 281 $0: run the script under such a shell if you do have one." 282 fi 283 exit 1 284 fi 285 fi 286 fi 287 SHELL=${CONFIG_SHELL-/bin/sh} 288 export SHELL 289 # Unset more variables known to interfere with behavior of common tools. 290 CLICOLOR_FORCE= GREP_OPTIONS= 291 unset CLICOLOR_FORCE GREP_OPTIONS 292 293 ## --------------------- ## 294 ## M4sh Shell Functions. ## 295 ## --------------------- ## 296 # as_fn_unset VAR 297 # --------------- 298 # Portably unset VAR. 299 as_fn_unset () 300 { 301 { eval $1=; unset $1;} 302 } 303 as_unset=as_fn_unset 304 305 # as_fn_set_status STATUS 306 # ----------------------- 307 # Set $? to STATUS, without forking. 308 as_fn_set_status () 309 { 310 return $1 311 } # as_fn_set_status 312 313 # as_fn_exit STATUS 314 # ----------------- 315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316 as_fn_exit () 317 { 318 set +e 319 as_fn_set_status $1 320 exit $1 321 } # as_fn_exit 322 323 # as_fn_mkdir_p 324 # ------------- 325 # Create "$as_dir" as a directory, including parents if necessary. 326 as_fn_mkdir_p () 327 { 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345 $as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369 } # as_fn_mkdir_p 370 371 # as_fn_executable_p FILE 372 # ----------------------- 373 # Test if FILE is an executable regular file. 374 as_fn_executable_p () 375 { 376 test -f "$1" && test -x "$1" 377 } # as_fn_executable_p 378 # as_fn_append VAR VALUE 379 # ---------------------- 380 # Append the text in VALUE to the end of the definition contained in VAR. Take 381 # advantage of any shell optimizations that allow amortized linear growth over 382 # repeated appends, instead of the typical quadratic growth present in naive 383 # implementations. 384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389 else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394 fi # as_fn_append 395 396 # as_fn_arith ARG... 397 # ------------------ 398 # Perform arithmetic evaluation on the ARGs, and store the result in the 399 # global $as_val. Take advantage of shells that can avoid forks. The arguments 400 # must be portable across $(()) and expr. 401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406 else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411 fi # as_fn_arith 412 413 414 # as_fn_error STATUS ERROR [LINENO LOG_FD] 415 # ---------------------------------------- 416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418 # script with STATUS, using 1 if that was 0. 419 as_fn_error () 420 { 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428 } # as_fn_error 429 430 if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433 else 434 as_expr=false 435 fi 436 437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439 else 440 as_basename=false 441 fi 442 443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445 else 446 as_dirname=false 447 fi 448 449 as_me=`$as_basename -- "$0" || 450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453 $as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468 # Avoid depending upon Character Ranges. 469 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472 as_cr_digits='0123456789' 473 as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509 } 510 511 ECHO_C= ECHO_N= ECHO_T= 512 case `echo -n x` in #((((( 513 -n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520 *) 521 ECHO_N='-n';; 522 esac 523 524 rm -f conf$$ conf$$.exe conf$$.file 525 if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527 else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530 fi 531 if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545 else 546 as_ln_s='cp -pR' 547 fi 548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549 rmdir conf$$.dir 2>/dev/null 550 551 if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553 else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556 fi 557 558 as_test_x='test -x' 559 as_executable_p=as_fn_executable_p 560 561 # Sed expression to map a string onto a valid CPP name. 562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564 # Sed expression to map a string onto a valid variable name. 565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567 SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570 test -n "$DJDIR" || exec 7<&0 </dev/null 571 exec 6>&1 572 573 # Name of the host. 574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575 # so uname gets run too. 576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578 # 579 # Initializations. 580 # 581 ac_default_prefix=/usr/local 582 ac_clean_files= 583 ac_config_libobj_dir=. 584 LIBOBJS= 585 cross_compiling=no 586 subdirs= 587 MFLAGS= 588 MAKEFLAGS= 589 590 # Identity of this package. 591 PACKAGE_NAME='ImageMagick' 592 PACKAGE_TARNAME='ImageMagick' 593 PACKAGE_VERSION='7.0.2-5' 594 PACKAGE_STRING='ImageMagick 7.0.2-5' 595 PACKAGE_BUGREPORT='https://github.com/ImageMagick/ImageMagick/issues' 596 PACKAGE_URL='http://www.imagemagick.org' 597 598 ac_unique_file="MagickCore/MagickCore.h" 599 # Factoring default headers for most tests. 600 ac_includes_default="\ 601 #include <stdio.h> 602 #ifdef HAVE_SYS_TYPES_H 603 # include <sys/types.h> 604 #endif 605 #ifdef HAVE_SYS_STAT_H 606 # include <sys/stat.h> 607 #endif 608 #ifdef STDC_HEADERS 609 # include <stdlib.h> 610 # include <stddef.h> 611 #else 612 # ifdef HAVE_STDLIB_H 613 # include <stdlib.h> 614 # endif 615 #endif 616 #ifdef HAVE_STRING_H 617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618 # include <memory.h> 619 # endif 620 # include <string.h> 621 #endif 622 #ifdef HAVE_STRINGS_H 623 # include <strings.h> 624 #endif 625 #ifdef HAVE_INTTYPES_H 626 # include <inttypes.h> 627 #endif 628 #ifdef HAVE_STDINT_H 629 # include <stdint.h> 630 #endif 631 #ifdef HAVE_UNISTD_H 632 # include <unistd.h> 633 #endif" 634 635 ac_header_list= 636 ac_subst_vars='am__EXEEXT_FALSE 637 am__EXEEXT_TRUE 638 LTLIBOBJS 639 MAGICK_LIBS 640 MAGICK_LDFLAGS 641 MAGICK_PCFLAGS 642 MAGICK_CPPFLAGS 643 MAGICK_CXXFLAGS 644 MAGICK_CFLAGS 645 MAGICK_DEP_LIBS 646 OSX_GCOV_LDFLAG 647 MAGICK_FEATURES 648 MAGICK_DELEGATES 649 MAGICKCORE_PATH 650 PERL_SUPPORTS_DESTDIR 651 WITH_PERL_DYNAMIC_FALSE 652 WITH_PERL_DYNAMIC_TRUE 653 WITH_PERL_STATIC_FALSE 654 WITH_PERL_STATIC_TRUE 655 WITH_PERL_FALSE 656 WITH_PERL_TRUE 657 PERL_VERSION 658 GSVersion 659 GSPSDevice 660 GSPDFDevice 661 GSMonoDevice 662 GSEPSDevice 663 GSColorDevice 664 GSCMYKDevice 665 GSAlphaDevice 666 XPSVersion 667 XPSCMYKDevice 668 XPSColorDevice 669 XPSMonoDevice 670 PCLVersion 671 PCLCMYKDevice 672 PCLColorDevice 673 PCLMonoDevice 674 ZIP_DELEGATE_FALSE 675 ZIP_DELEGATE_TRUE 676 ZIP 677 P7ZIP_DELEGATE_FALSE 678 P7ZIP_DELEGATE_TRUE 679 P7ZIP 680 RPM_DELEGATE_FALSE 681 RPM_DELEGATE_TRUE 682 RPM 683 PERL 684 TAR 685 ShowImageDelegate 686 type_include_files 687 windows_font_dir 688 ghostscript_font_dir 689 dejavu_font_dir 690 apple_font_dir 691 PrintDelegate 692 XPSDelegate 693 WWWDecodeDelegate 694 WebPEncodeDelegate 695 WebPDecodeDelegate 696 UniconvertorDelegate 697 SVGDecodeDelegate 698 RSVGDecodeDelegate 699 RMDelegate 700 PSDelegate 701 PCLDelegate 702 MVDelegate 703 MrSIDDecodeDelegate 704 MPEGEncodeDelegate 705 MPEGDecodeDelegate 706 MogrifyDelegate 707 LaunchDelegate 708 LPRDelegate 709 LPDelegate 710 JXREncodeDelegate 711 JXRDecodeDelegate 712 ILBMEncodeDelegate 713 ILBMDecodeDelegate 714 HTMLDecodeDelegate 715 HPGLDecodeDelegate 716 GVCDecodeDelegate 717 EditorDelegate 718 DisplayDelegate 719 ConvertDelegate 720 DVIDecodeDelegate 721 DOCDecodeDelegate 722 DNGDecodeDelegate 723 BrowseDelegate 724 BlenderDecodeDelegate 725 BPGEncodeDelegate 726 BPGDecodeDelegate 727 SHAREARCH_PATH 728 SHAREARCH_RELATIVE_PATH 729 SHAREARCH_DIRNAME 730 SHAREARCH_BASEDIRNAME 731 SHARE_PATH 732 CONFIGURE_PATH 733 INSTALL_DOC_FALSE 734 INSTALL_DOC_TRUE 735 DOCUMENTATION_PATH 736 FILTER_PATH 737 FILTER_DIRNAME 738 CODER_PATH 739 CODER_DIRNAME 740 MODULES_PATH 741 MODULES_RELATIVE_PATH 742 MODULES_DIRNAME 743 MODULES_BASEDIRNAME 744 LIB_BIN_DIR_PATH 745 LIB_BIN_DIR_RELATIVE_PATH 746 LIB_BIN_DIR 747 LIB_BIN_BASEDIRNAME 748 LIBRARY_PATH 749 EXECUTABLE_PATH 750 INCLUDEARCH_PATH 751 INCLUDE_PATH 752 PERLMAINCC 753 XML_DELEGATE_FALSE 754 XML_DELEGATE_TRUE 755 XML_LIBS 756 XML_CFLAGS 757 WMF_LIBS 758 WMF_CFLAGS 759 WMF_DELEGATE_FALSE 760 WMF_DELEGATE_TRUE 761 WEBP_LIBS 762 WEBP_DELEGATE_FALSE 763 WEBP_DELEGATE_TRUE 764 TIFF_LIBS 765 TIFF_DELEGATE_FALSE 766 TIFF_DELEGATE_TRUE 767 CAIRO_DELEGATE_FALSE 768 CAIRO_DELEGATE_TRUE 769 RSVG_DELEGATE_FALSE 770 RSVG_DELEGATE_TRUE 771 CAIRO_SVG_LIBS 772 CAIRO_SVG_CFLAGS 773 RSVG_LIBS 774 RSVG_CFLAGS 775 PNG_DELEGATE_FALSE 776 PNG_DELEGATE_TRUE 777 PNG_LIBS 778 PNG_CFLAGS 779 PANGOCAIRO_DELEGATE_FALSE 780 PANGOCAIRO_DELEGATE_TRUE 781 PANGO_DELEGATE_FALSE 782 PANGO_DELEGATE_TRUE 783 PANGO_LIBS 784 PANGO_CFLAGS 785 OPENEXR_DELEGATE_FALSE 786 OPENEXR_DELEGATE_TRUE 787 OPENEXR_LIBS 788 OPENEXR_CFLAGS 789 LZMA_DELEGATE_FALSE 790 LZMA_DELEGATE_TRUE 791 LZMA_LIBS 792 LZMA_CFLAGS 793 LQR_DELEGATE_FALSE 794 LQR_DELEGATE_TRUE 795 LQR_LIBS 796 LQR_CFLAGS 797 LIBOPENJP2_DELEGATE_FALSE 798 LIBOPENJP2_DELEGATE_TRUE 799 LIBOPENJP2_LIBS 800 LIBOPENJP2_CFLAGS 801 LCMS_LIBS 802 LCMS_CFLAGS 803 LCMS_DELEGATE_FALSE 804 LCMS_DELEGATE_TRUE 805 LCMS2_LIBS 806 LCMS2_CFLAGS 807 JPEG_LIBS 808 JPEG_DELEGATE_FALSE 809 JPEG_DELEGATE_TRUE 810 JBIG_LIBS 811 JBIG_DELEGATE_FALSE 812 JBIG_DELEGATE_TRUE 813 GVC_DELEGATE_FALSE 814 GVC_DELEGATE_TRUE 815 GVC_LIBS 816 GVC_CFLAGS 817 GS_LIBS 818 GS_DELEGATE_FALSE 819 GS_DELEGATE_TRUE 820 RAQM_DELEGATE_FALSE 821 RAQM_DELEGATE_TRUE 822 RAQM_LIBS 823 RAQM_CFLAGS 824 FREETYPE_DELEGATE_FALSE 825 FREETYPE_DELEGATE_TRUE 826 FREETYPE_LIBS 827 FREETYPE_CFLAGS 828 FONTCONFIG_DELEGATE_FALSE 829 FONTCONFIG_DELEGATE_TRUE 830 FONTCONFIG_LIBS 831 FONTCONFIG_CFLAGS 832 DJVU_LIBS 833 DJVU_CFLAGS 834 DJVU_DELEGATE_FALSE 835 DJVU_DELEGATE_TRUE 836 ddjvuapi_LIBS 837 ddjvuapi_CFLAGS 838 FPX_LIBS 839 FPX_DELEGATE_FALSE 840 FPX_DELEGATE_TRUE 841 FLIF_LIBS 842 FLIF_DELEGATE_FALSE 843 FLIF_DELEGATE_TRUE 844 FFTW_LIBS 845 FFTW_CFLAGS 846 FFTW_DELEGATE_FALSE 847 FFTW_DELEGATE_TRUE 848 fftw3_LIBS 849 fftw3_CFLAGS 850 DPS_LIBS 851 DPS_DELEGATE_FALSE 852 DPS_DELEGATE_TRUE 853 AUTOTRACE_DELEGATE_FALSE 854 AUTOTRACE_DELEGATE_TRUE 855 AUTOTRACE_LIBS 856 AUTOTRACE_CFLAGS 857 LIB_DL 858 WITH_LTDL_FALSE 859 WITH_LTDL_TRUE 860 ZLIB_DELEGATE_FALSE 861 ZLIB_DELEGATE_TRUE 862 ZLIB_LIBS 863 ZLIB_CFLAGS 864 XEXT_LIBS 865 X11_LIBS 866 X11_DELEGATE_FALSE 867 X11_DELEGATE_TRUE 868 X_EXTRA_LIBS 869 X_LIBS 870 X_PRE_LIBS 871 X_CFLAGS 872 XMKMF 873 BZLIB_LIBS 874 BZLIB_DELEGATE_FALSE 875 BZLIB_DELEGATE_TRUE 876 CCMALLOCDelegate 877 UMEM_LIBS 878 HasUMEM_FALSE 879 HasUMEM_TRUE 880 JEMALLOC_LIBS 881 HasJEMALLOC_FALSE 882 HasJEMALLOC_TRUE 883 GOMP_LIBS 884 WITH_MAGICK_PLUS_PLUS_FALSE 885 WITH_MAGICK_PLUS_PLUS_TRUE 886 OPENMP_CXXFLAGS 887 MATH_LIBS 888 POW_LIB 889 LIBOBJS 890 UINTPTR_F 891 UINTPTR_T 892 UINTMAX_F 893 UINTMAX_T 894 UINT64_F 895 UINT64_T 896 INT64_F 897 INT64_T 898 UINT32_F 899 UINT32_T 900 INT32_F 901 INT32_T 902 UINT16_T 903 INT16_T 904 UINT8_T 905 INT8_T 906 LIBRARY_EXTRA_CPPFLAGS 907 MODULE_EXTRA_CPPFLAGS 908 LIBSTDCLDFLAGS 909 PERL_MAKE_OPTIONS 910 MAGICK_LT_RELEASE_OPTS 911 MAGICK_ABI_SUFFIX 912 QUANTUM_DEPTH 913 LEGACY_SUPPORT_FALSE 914 LEGACY_SUPPORT_TRUE 915 MAINT 916 MAINTAINER_MODE_FALSE 917 MAINTAINER_MODE_TRUE 918 MAGICK_HDRI 919 WITH_MODULES_FALSE 920 WITH_MODULES_TRUE 921 WITH_SHARED_LIBS_FALSE 922 WITH_SHARED_LIBS_TRUE 923 LIBTOOL_DEPS 924 CXXCPP 925 LT_SYS_LIBRARY_PATH 926 OTOOL64 927 OTOOL 928 LIPO 929 NMEDIT 930 DSYMUTIL 931 MANIFEST_TOOL 932 RANLIB 933 NM 934 ac_ct_DUMPBIN 935 DUMPBIN 936 LIBTOOL 937 OBJDUMP 938 DLLTOOL 939 AS 940 LFS_CPPFLAGS 941 CL_LIBS 942 CL_CFLAGS 943 OPENMP_CFLAGS 944 THREAD_LIBS 945 PTHREAD_CFLAGS 946 PTHREAD_LIBS 947 PTHREAD_CC 948 ax_pthread_config 949 pkgconfigdir 950 SHAREARCH_DIR 951 INCLUDEARCH_DIR 952 WinPathScript 953 USING_CL_FALSE 954 USING_CL_TRUE 955 CYGWIN_BUILD_FALSE 956 CYGWIN_BUILD_TRUE 957 WIN32_NATIVE_BUILD_FALSE 958 WIN32_NATIVE_BUILD_TRUE 959 WINGDI32_DELEGATE_FALSE 960 WINGDI32_DELEGATE_TRUE 961 GDI32_LIBS 962 HAVE_LD_VERSION_SCRIPT_FALSE 963 HAVE_LD_VERSION_SCRIPT_TRUE 964 WARN_SCANNERFLAGS 965 WARN_LDFLAGS 966 WARN_CXXFLAGS 967 WARN_CFLAGS 968 PKG_CONFIG_LIBDIR 969 PKG_CONFIG_PATH 970 PKG_CONFIG 971 PRTDIAG 972 LN_S 973 LD 974 FGREP 975 SED 976 am__fastdepCXX_FALSE 977 am__fastdepCXX_TRUE 978 CXXDEPMODE 979 ac_ct_CXX 980 CXXFLAGS 981 CXX 982 ac_ct_AR 983 AR 984 EGREP 985 GREP 986 CPP 987 am__fastdepCC_FALSE 988 am__fastdepCC_TRUE 989 CCDEPMODE 990 am__nodep 991 AMDEPBACKSLASH 992 AMDEP_FALSE 993 AMDEP_TRUE 994 am__quote 995 am__include 996 DEPDIR 997 OBJEXT 998 EXEEXT 999 ac_ct_CC 1000 CPPFLAGS 1001 LDFLAGS 1002 CFLAGS 1003 CC 1004 DIRSEP 1005 MAGICK_FILTER_MODULE_PATH 1006 MAGICK_CONFIGURE_BUILD_PATH 1007 MAGICK_CONFIGURE_SRC_PATH 1008 MAGICK_CODER_MODULE_PATH 1009 MAN_DIR 1010 INFO_DIR 1011 PERSISTINCLUDE_DIR 1012 INCLUDE_DIR 1013 LIB_DIR 1014 LOCALSTATE_DIR 1015 SHAREDSTATE_DIR 1016 SYSCONF_DIR 1017 DOC_DIR 1018 DATA_DIR 1019 LIBEXEC_DIR 1020 SBIN_DIR 1021 BIN_DIR 1022 EXEC_PREFIX_DIR 1023 PREFIX_DIR 1024 CONFIG_STATUS_DEPENDENCIES 1025 MAGICKPP_LIB_VERSION_TEXT 1026 MAGICKPP_LIB_VERSION 1027 MAGICK_LIB_VERSION_NUMBER 1028 MAGICK_LIB_VERSION_TEXT 1029 MAGICK_LIB_VERSION 1030 PACKAGE_VERSION_ADDENDUM 1031 PACKAGE_RELEASE_DATE 1032 PACKAGE_LIB_VERSION_NUMBER 1033 PACKAGE_LIB_VERSION 1034 PACKAGE_CHANGE_DATE 1035 PACKAGE_RELEASE 1036 PACKAGE_PERL_VERSION 1037 MAGICKPP_LIBRARY_VERSION_INFO 1038 MAGICKPP_LIBRARY_CURRENT_MIN 1039 MAGICKPP_LIBRARY_AGE 1040 MAGICKPP_LIBRARY_REVISION 1041 MAGICKPP_LIBRARY_CURRENT 1042 MAGICK_LIBRARY_VERSION_INFO 1043 MAGICK_LIBRARY_CURRENT_MIN 1044 MAGICK_LIBRARY_AGE 1045 MAGICK_LIBRARY_REVISION 1046 MAGICK_LIBRARY_CURRENT 1047 MAGICK_GIT_REVISION 1048 MAGICK_VERSION 1049 MAGICK_PATCHLEVEL_VERSION 1050 MAGICK_MICRO_VERSION 1051 MAGICK_MINOR_VERSION 1052 MAGICK_MAJOR_VERSION 1053 MAGICK_TARGET_OS 1054 MAGICK_TARGET_VENDOR 1055 MAGICK_TARGET_CPU 1056 CONFIGURE_ARGS 1057 DISTCHECK_CONFIG_FLAGS 1058 AM_BACKSLASH 1059 AM_DEFAULT_VERBOSITY 1060 AM_DEFAULT_V 1061 AM_V 1062 am__untar 1063 am__tar 1064 AMTAR 1065 am__leading_dot 1066 SET_MAKE 1067 AWK 1068 mkdir_p 1069 MKDIR_P 1070 INSTALL_STRIP_PROGRAM 1071 STRIP 1072 install_sh 1073 MAKEINFO 1074 AUTOHEADER 1075 AUTOMAKE 1076 AUTOCONF 1077 ACLOCAL 1078 VERSION 1079 PACKAGE 1080 CYGPATH_W 1081 am__isrc 1082 INSTALL_DATA 1083 INSTALL_SCRIPT 1084 INSTALL_PROGRAM 1085 target_os 1086 target_vendor 1087 target_cpu 1088 target 1089 host_os 1090 host_vendor 1091 host_cpu 1092 host 1093 build_os 1094 build_vendor 1095 build_cpu 1096 build 1097 target_alias 1098 host_alias 1099 build_alias 1100 LIBS 1101 ECHO_T 1102 ECHO_N 1103 ECHO_C 1104 DEFS 1105 mandir 1106 localedir 1107 libdir 1108 psdir 1109 pdfdir 1110 dvidir 1111 htmldir 1112 infodir 1113 docdir 1114 oldincludedir 1115 includedir 1116 localstatedir 1117 sharedstatedir 1118 sysconfdir 1119 datadir 1120 datarootdir 1121 libexecdir 1122 sbindir 1123 bindir 1124 program_transform_name 1125 prefix 1126 exec_prefix 1127 PACKAGE_URL 1128 PACKAGE_BUGREPORT 1129 PACKAGE_STRING 1130 PACKAGE_VERSION 1131 PACKAGE_TARNAME 1132 PACKAGE_NAME 1133 PATH_SEPARATOR 1134 SHELL' 1135 ac_subst_files='' 1136 ac_user_opts=' 1137 enable_option_checking 1138 enable_silent_rules 1139 enable_reproducible_build 1140 enable_dependency_tracking 1141 with_gnu_ld 1142 with_dmalloc 1143 with_gcc_arch 1144 enable_compile_warnings 1145 enable_Werror 1146 enable_ld_version_script 1147 enable_bounds_checking 1148 enable_osx_universal_binary 1149 with_includearch_dir 1150 with_sharearch_dir 1151 with_pkgconfigdir 1152 with_threads 1153 enable_openmp 1154 enable_opencl 1155 enable_largefile 1156 enable_shared 1157 enable_static 1158 with_pic 1159 enable_fast_install 1160 with_aix_soname 1161 with_sysroot 1162 enable_libtool_lock 1163 with_modules 1164 enable_delegate_build 1165 enable_deprecated 1166 enable_installed 1167 enable_cipher 1168 enable_zero_configuration 1169 enable_hdri 1170 enable_pipes 1171 enable_assert 1172 enable_maintainer_mode 1173 enable_hugepages 1174 enable_ccmalloc 1175 enable_efence 1176 enable_prof 1177 enable_gprof 1178 enable_gcov 1179 with_method_prefix 1180 enable_legacy_support 1181 with_quantum_depth 1182 with_cache 1183 with_frozenpaths 1184 with_magick_plus_plus 1185 with_package_release_name 1186 with_perl 1187 with_perl_options 1188 with_jemalloc 1189 with_umem 1190 with_libstdc 1191 with_bzlib 1192 with_x 1193 with_zlib 1194 with_apple_font_dir 1195 with_autotrace 1196 with_dps 1197 with_dejavu_font_dir 1198 with_fftw 1199 with_flif 1200 with_fpx 1201 with_djvu 1202 with_fontconfig 1203 with_freetype 1204 with_raqm 1205 with_gslib 1206 with_fontpath 1207 with_gs_font_dir 1208 with_gvc 1209 with_jbig 1210 with_jpeg 1211 with_lcms 1212 with_openjp2 1213 with_lqr 1214 with_lzma 1215 with_openexr 1216 with_pango 1217 with_png 1218 with_rsvg 1219 with_tiff 1220 with_webp 1221 with_windows_font_dir 1222 with_wmf 1223 with_xml 1224 enable_docs 1225 ' 1226 ac_precious_vars='build_alias 1227 host_alias 1228 target_alias 1229 CC 1230 CFLAGS 1231 LDFLAGS 1232 LIBS 1233 CPPFLAGS 1234 CPP 1235 CXX 1236 CXXFLAGS 1237 CCC 1238 PKG_CONFIG 1239 PKG_CONFIG_PATH 1240 PKG_CONFIG_LIBDIR 1241 LT_SYS_LIBRARY_PATH 1242 CXXCPP 1243 XMKMF 1244 ZLIB_CFLAGS 1245 ZLIB_LIBS 1246 AUTOTRACE_CFLAGS 1247 AUTOTRACE_LIBS 1248 fftw3_CFLAGS 1249 fftw3_LIBS 1250 ddjvuapi_CFLAGS 1251 ddjvuapi_LIBS 1252 FONTCONFIG_CFLAGS 1253 FONTCONFIG_LIBS 1254 FREETYPE_CFLAGS 1255 FREETYPE_LIBS 1256 RAQM_CFLAGS 1257 RAQM_LIBS 1258 GVC_CFLAGS 1259 GVC_LIBS 1260 LCMS2_CFLAGS 1261 LCMS2_LIBS 1262 LIBOPENJP2_CFLAGS 1263 LIBOPENJP2_LIBS 1264 LQR_CFLAGS 1265 LQR_LIBS 1266 LZMA_CFLAGS 1267 LZMA_LIBS 1268 OPENEXR_CFLAGS 1269 OPENEXR_LIBS 1270 PANGO_CFLAGS 1271 PANGO_LIBS 1272 PNG_CFLAGS 1273 PNG_LIBS 1274 RSVG_CFLAGS 1275 RSVG_LIBS 1276 CAIRO_SVG_CFLAGS 1277 CAIRO_SVG_LIBS 1278 XML_CFLAGS 1279 XML_LIBS' 1280 1281 1282 # Initialize some variables set by options. 1283 ac_init_help= 1284 ac_init_version=false 1285 ac_unrecognized_opts= 1286 ac_unrecognized_sep= 1287 # The variables have the same names as the options, with 1288 # dashes changed to underlines. 1289 cache_file=/dev/null 1290 exec_prefix=NONE 1291 no_create= 1292 no_recursion= 1293 prefix=NONE 1294 program_prefix=NONE 1295 program_suffix=NONE 1296 program_transform_name=s,x,x, 1297 silent= 1298 site= 1299 srcdir= 1300 verbose= 1301 x_includes=NONE 1302 x_libraries=NONE 1303 1304 # Installation directory options. 1305 # These are left unexpanded so users can "make install exec_prefix=/foo" 1306 # and all the variables that are supposed to be based on exec_prefix 1307 # by default will actually change. 1308 # Use braces instead of parens because sh, perl, etc. also accept them. 1309 # (The list follows the same order as the GNU Coding Standards.) 1310 bindir='${exec_prefix}/bin' 1311 sbindir='${exec_prefix}/sbin' 1312 libexecdir='${exec_prefix}/libexec' 1313 datarootdir='${prefix}/share' 1314 datadir='${datarootdir}' 1315 sysconfdir='${prefix}/etc' 1316 sharedstatedir='${prefix}/com' 1317 localstatedir='${prefix}/var' 1318 includedir='${prefix}/include' 1319 oldincludedir='/usr/include' 1320 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1321 infodir='${datarootdir}/info' 1322 htmldir='${docdir}' 1323 dvidir='${docdir}' 1324 pdfdir='${docdir}' 1325 psdir='${docdir}' 1326 libdir='${exec_prefix}/lib' 1327 localedir='${datarootdir}/locale' 1328 mandir='${datarootdir}/man' 1329 1330 ac_prev= 1331 ac_dashdash= 1332 for ac_option 1333 do 1334 # If the previous option needs an argument, assign it. 1335 if test -n "$ac_prev"; then 1336 eval $ac_prev=\$ac_option 1337 ac_prev= 1338 continue 1339 fi 1340 1341 case $ac_option in 1342 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1343 *=) ac_optarg= ;; 1344 *) ac_optarg=yes ;; 1345 esac 1346 1347 # Accept the important Cygnus configure options, so we can diagnose typos. 1348 1349 case $ac_dashdash$ac_option in 1350 --) 1351 ac_dashdash=yes ;; 1352 1353 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1354 ac_prev=bindir ;; 1355 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1356 bindir=$ac_optarg ;; 1357 1358 -build | --build | --buil | --bui | --bu) 1359 ac_prev=build_alias ;; 1360 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1361 build_alias=$ac_optarg ;; 1362 1363 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1364 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1365 ac_prev=cache_file ;; 1366 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1367 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1368 cache_file=$ac_optarg ;; 1369 1370 --config-cache | -C) 1371 cache_file=config.cache ;; 1372 1373 -datadir | --datadir | --datadi | --datad) 1374 ac_prev=datadir ;; 1375 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1376 datadir=$ac_optarg ;; 1377 1378 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1379 | --dataroo | --dataro | --datar) 1380 ac_prev=datarootdir ;; 1381 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1382 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1383 datarootdir=$ac_optarg ;; 1384 1385 -disable-* | --disable-*) 1386 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1387 # Reject names that are not valid shell variable names. 1388 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1389 as_fn_error $? "invalid feature name: $ac_useropt" 1390 ac_useropt_orig=$ac_useropt 1391 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1392 case $ac_user_opts in 1393 *" 1394 "enable_$ac_useropt" 1395 "*) ;; 1396 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1397 ac_unrecognized_sep=', ';; 1398 esac 1399 eval enable_$ac_useropt=no ;; 1400 1401 -docdir | --docdir | --docdi | --doc | --do) 1402 ac_prev=docdir ;; 1403 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1404 docdir=$ac_optarg ;; 1405 1406 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1407 ac_prev=dvidir ;; 1408 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1409 dvidir=$ac_optarg ;; 1410 1411 -enable-* | --enable-*) 1412 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1413 # Reject names that are not valid shell variable names. 1414 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1415 as_fn_error $? "invalid feature name: $ac_useropt" 1416 ac_useropt_orig=$ac_useropt 1417 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1418 case $ac_user_opts in 1419 *" 1420 "enable_$ac_useropt" 1421 "*) ;; 1422 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1423 ac_unrecognized_sep=', ';; 1424 esac 1425 eval enable_$ac_useropt=\$ac_optarg ;; 1426 1427 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1428 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1429 | --exec | --exe | --ex) 1430 ac_prev=exec_prefix ;; 1431 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1432 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1433 | --exec=* | --exe=* | --ex=*) 1434 exec_prefix=$ac_optarg ;; 1435 1436 -gas | --gas | --ga | --g) 1437 # Obsolete; use --with-gas. 1438 with_gas=yes ;; 1439 1440 -help | --help | --hel | --he | -h) 1441 ac_init_help=long ;; 1442 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1443 ac_init_help=recursive ;; 1444 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1445 ac_init_help=short ;; 1446 1447 -host | --host | --hos | --ho) 1448 ac_prev=host_alias ;; 1449 -host=* | --host=* | --hos=* | --ho=*) 1450 host_alias=$ac_optarg ;; 1451 1452 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1453 ac_prev=htmldir ;; 1454 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1455 | --ht=*) 1456 htmldir=$ac_optarg ;; 1457 1458 -includedir | --includedir | --includedi | --included | --include \ 1459 | --includ | --inclu | --incl | --inc) 1460 ac_prev=includedir ;; 1461 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1462 | --includ=* | --inclu=* | --incl=* | --inc=*) 1463 includedir=$ac_optarg ;; 1464 1465 -infodir | --infodir | --infodi | --infod | --info | --inf) 1466 ac_prev=infodir ;; 1467 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1468 infodir=$ac_optarg ;; 1469 1470 -libdir | --libdir | --libdi | --libd) 1471 ac_prev=libdir ;; 1472 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1473 libdir=$ac_optarg ;; 1474 1475 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1476 | --libexe | --libex | --libe) 1477 ac_prev=libexecdir ;; 1478 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1479 | --libexe=* | --libex=* | --libe=*) 1480 libexecdir=$ac_optarg ;; 1481 1482 -localedir | --localedir | --localedi | --localed | --locale) 1483 ac_prev=localedir ;; 1484 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1485 localedir=$ac_optarg ;; 1486 1487 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1488 | --localstate | --localstat | --localsta | --localst | --locals) 1489 ac_prev=localstatedir ;; 1490 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1491 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1492 localstatedir=$ac_optarg ;; 1493 1494 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1495 ac_prev=mandir ;; 1496 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1497 mandir=$ac_optarg ;; 1498 1499 -nfp | --nfp | --nf) 1500 # Obsolete; use --without-fp. 1501 with_fp=no ;; 1502 1503 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1504 | --no-cr | --no-c | -n) 1505 no_create=yes ;; 1506 1507 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1508 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1509 no_recursion=yes ;; 1510 1511 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1512 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1513 | --oldin | --oldi | --old | --ol | --o) 1514 ac_prev=oldincludedir ;; 1515 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1516 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1517 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1518 oldincludedir=$ac_optarg ;; 1519 1520 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1521 ac_prev=prefix ;; 1522 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1523 prefix=$ac_optarg ;; 1524 1525 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1526 | --program-pre | --program-pr | --program-p) 1527 ac_prev=program_prefix ;; 1528 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1529 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1530 program_prefix=$ac_optarg ;; 1531 1532 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1533 | --program-suf | --program-su | --program-s) 1534 ac_prev=program_suffix ;; 1535 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1536 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1537 program_suffix=$ac_optarg ;; 1538 1539 -program-transform-name | --program-transform-name \ 1540 | --program-transform-nam | --program-transform-na \ 1541 | --program-transform-n | --program-transform- \ 1542 | --program-transform | --program-transfor \ 1543 | --program-transfo | --program-transf \ 1544 | --program-trans | --program-tran \ 1545 | --progr-tra | --program-tr | --program-t) 1546 ac_prev=program_transform_name ;; 1547 -program-transform-name=* | --program-transform-name=* \ 1548 | --program-transform-nam=* | --program-transform-na=* \ 1549 | --program-transform-n=* | --program-transform-=* \ 1550 | --program-transform=* | --program-transfor=* \ 1551 | --program-transfo=* | --program-transf=* \ 1552 | --program-trans=* | --program-tran=* \ 1553 | --progr-tra=* | --program-tr=* | --program-t=*) 1554 program_transform_name=$ac_optarg ;; 1555 1556 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1557 ac_prev=pdfdir ;; 1558 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1559 pdfdir=$ac_optarg ;; 1560 1561 -psdir | --psdir | --psdi | --psd | --ps) 1562 ac_prev=psdir ;; 1563 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1564 psdir=$ac_optarg ;; 1565 1566 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1567 | -silent | --silent | --silen | --sile | --sil) 1568 silent=yes ;; 1569 1570 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1571 ac_prev=sbindir ;; 1572 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1573 | --sbi=* | --sb=*) 1574 sbindir=$ac_optarg ;; 1575 1576 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1577 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1578 | --sharedst | --shareds | --shared | --share | --shar \ 1579 | --sha | --sh) 1580 ac_prev=sharedstatedir ;; 1581 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1582 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1583 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1584 | --sha=* | --sh=*) 1585 sharedstatedir=$ac_optarg ;; 1586 1587 -site | --site | --sit) 1588 ac_prev=site ;; 1589 -site=* | --site=* | --sit=*) 1590 site=$ac_optarg ;; 1591 1592 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1593 ac_prev=srcdir ;; 1594 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1595 srcdir=$ac_optarg ;; 1596 1597 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1598 | --syscon | --sysco | --sysc | --sys | --sy) 1599 ac_prev=sysconfdir ;; 1600 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1601 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1602 sysconfdir=$ac_optarg ;; 1603 1604 -target | --target | --targe | --targ | --tar | --ta | --t) 1605 ac_prev=target_alias ;; 1606 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1607 target_alias=$ac_optarg ;; 1608 1609 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1610 verbose=yes ;; 1611 1612 -version | --version | --versio | --versi | --vers | -V) 1613 ac_init_version=: ;; 1614 1615 -with-* | --with-*) 1616 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1617 # Reject names that are not valid shell variable names. 1618 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1619 as_fn_error $? "invalid package name: $ac_useropt" 1620 ac_useropt_orig=$ac_useropt 1621 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1622 case $ac_user_opts in 1623 *" 1624 "with_$ac_useropt" 1625 "*) ;; 1626 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1627 ac_unrecognized_sep=', ';; 1628 esac 1629 eval with_$ac_useropt=\$ac_optarg ;; 1630 1631 -without-* | --without-*) 1632 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1633 # Reject names that are not valid shell variable names. 1634 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1635 as_fn_error $? "invalid package name: $ac_useropt" 1636 ac_useropt_orig=$ac_useropt 1637 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1638 case $ac_user_opts in 1639 *" 1640 "with_$ac_useropt" 1641 "*) ;; 1642 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1643 ac_unrecognized_sep=', ';; 1644 esac 1645 eval with_$ac_useropt=no ;; 1646 1647 --x) 1648 # Obsolete; use --with-x. 1649 with_x=yes ;; 1650 1651 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1652 | --x-incl | --x-inc | --x-in | --x-i) 1653 ac_prev=x_includes ;; 1654 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1655 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1656 x_includes=$ac_optarg ;; 1657 1658 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1659 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1660 ac_prev=x_libraries ;; 1661 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1662 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1663 x_libraries=$ac_optarg ;; 1664 1665 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1666 Try \`$0 --help' for more information" 1667 ;; 1668 1669 *=*) 1670 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1671 # Reject names that are not valid shell variable names. 1672 case $ac_envvar in #( 1673 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1674 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1675 esac 1676 eval $ac_envvar=\$ac_optarg 1677 export $ac_envvar ;; 1678 1679 *) 1680 # FIXME: should be removed in autoconf 3.0. 1681 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1682 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1683 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1684 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1685 ;; 1686 1687 esac 1688 done 1689 1690 if test -n "$ac_prev"; then 1691 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1692 as_fn_error $? "missing argument to $ac_option" 1693 fi 1694 1695 if test -n "$ac_unrecognized_opts"; then 1696 case $enable_option_checking in 1697 no) ;; 1698 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1699 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1700 esac 1701 fi 1702 1703 # Check all directory arguments for consistency. 1704 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1705 datadir sysconfdir sharedstatedir localstatedir includedir \ 1706 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1707 libdir localedir mandir 1708 do 1709 eval ac_val=\$$ac_var 1710 # Remove trailing slashes. 1711 case $ac_val in 1712 */ ) 1713 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1714 eval $ac_var=\$ac_val;; 1715 esac 1716 # Be sure to have absolute directory names. 1717 case $ac_val in 1718 [\\/$]* | ?:[\\/]* ) continue;; 1719 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1720 esac 1721 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1722 done 1723 1724 # There might be people who depend on the old broken behavior: `$host' 1725 # used to hold the argument of --host etc. 1726 # FIXME: To remove some day. 1727 build=$build_alias 1728 host=$host_alias 1729 target=$target_alias 1730 1731 # FIXME: To remove some day. 1732 if test "x$host_alias" != x; then 1733 if test "x$build_alias" = x; then 1734 cross_compiling=maybe 1735 elif test "x$build_alias" != "x$host_alias"; then 1736 cross_compiling=yes 1737 fi 1738 fi 1739 1740 ac_tool_prefix= 1741 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1742 1743 test "$silent" = yes && exec 6>/dev/null 1744 1745 1746 ac_pwd=`pwd` && test -n "$ac_pwd" && 1747 ac_ls_di=`ls -di .` && 1748 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1749 as_fn_error $? "working directory cannot be determined" 1750 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1751 as_fn_error $? "pwd does not report name of working directory" 1752 1753 1754 # Find the source files, if location was not specified. 1755 if test -z "$srcdir"; then 1756 ac_srcdir_defaulted=yes 1757 # Try the directory containing this script, then the parent directory. 1758 ac_confdir=`$as_dirname -- "$as_myself" || 1759 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1760 X"$as_myself" : 'X\(//\)[^/]' \| \ 1761 X"$as_myself" : 'X\(//\)$' \| \ 1762 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1763 $as_echo X"$as_myself" | 1764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1765 s//\1/ 1766 q 1767 } 1768 /^X\(\/\/\)[^/].*/{ 1769 s//\1/ 1770 q 1771 } 1772 /^X\(\/\/\)$/{ 1773 s//\1/ 1774 q 1775 } 1776 /^X\(\/\).*/{ 1777 s//\1/ 1778 q 1779 } 1780 s/.*/./; q'` 1781 srcdir=$ac_confdir 1782 if test ! -r "$srcdir/$ac_unique_file"; then 1783 srcdir=.. 1784 fi 1785 else 1786 ac_srcdir_defaulted=no 1787 fi 1788 if test ! -r "$srcdir/$ac_unique_file"; then 1789 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1790 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1791 fi 1792 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1793 ac_abs_confdir=`( 1794 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1795 pwd)` 1796 # When building in place, set srcdir=. 1797 if test "$ac_abs_confdir" = "$ac_pwd"; then 1798 srcdir=. 1799 fi 1800 # Remove unnecessary trailing slashes from srcdir. 1801 # Double slashes in file names in object file debugging info 1802 # mess up M-x gdb in Emacs. 1803 case $srcdir in 1804 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1805 esac 1806 for ac_var in $ac_precious_vars; do 1807 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1808 eval ac_env_${ac_var}_value=\$${ac_var} 1809 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1810 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1811 done 1812 1813 # 1814 # Report the --help message. 1815 # 1816 if test "$ac_init_help" = "long"; then 1817 # Omit some internal or obsolete options to make the list less imposing. 1818 # This message is too long to be a string in the A/UX 3.1 sh. 1819 cat <<_ACEOF 1820 \`configure' configures ImageMagick 7.0.2-5 to adapt to many kinds of systems. 1821 1822 Usage: $0 [OPTION]... [VAR=VALUE]... 1823 1824 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1825 VAR=VALUE. See below for descriptions of some of the useful variables. 1826 1827 Defaults for the options are specified in brackets. 1828 1829 Configuration: 1830 -h, --help display this help and exit 1831 --help=short display options specific to this package 1832 --help=recursive display the short help of all the included packages 1833 -V, --version display version information and exit 1834 -q, --quiet, --silent do not print \`checking ...' messages 1835 --cache-file=FILE cache test results in FILE [disabled] 1836 -C, --config-cache alias for \`--cache-file=config.cache' 1837 -n, --no-create do not create output files 1838 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1839 1840 Installation directories: 1841 --prefix=PREFIX install architecture-independent files in PREFIX 1842 [$ac_default_prefix] 1843 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1844 [PREFIX] 1845 1846 By default, \`make install' will install all the files in 1847 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1848 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1849 for instance \`--prefix=\$HOME'. 1850 1851 For better control, use the options below. 1852 1853 Fine tuning of the installation directories: 1854 --bindir=DIR user executables [EPREFIX/bin] 1855 --sbindir=DIR system admin executables [EPREFIX/sbin] 1856 --libexecdir=DIR program executables [EPREFIX/libexec] 1857 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1858 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1859 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1860 --libdir=DIR object code libraries [EPREFIX/lib] 1861 --includedir=DIR C header files [PREFIX/include] 1862 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1863 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1864 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1865 --infodir=DIR info documentation [DATAROOTDIR/info] 1866 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1867 --mandir=DIR man documentation [DATAROOTDIR/man] 1868 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick] 1869 --htmldir=DIR html documentation [DOCDIR] 1870 --dvidir=DIR dvi documentation [DOCDIR] 1871 --pdfdir=DIR pdf documentation [DOCDIR] 1872 --psdir=DIR ps documentation [DOCDIR] 1873 _ACEOF 1874 1875 cat <<\_ACEOF 1876 1877 Program names: 1878 --program-prefix=PREFIX prepend PREFIX to installed program names 1879 --program-suffix=SUFFIX append SUFFIX to installed program names 1880 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1881 1882 X features: 1883 --x-includes=DIR X include files are in DIR 1884 --x-libraries=DIR X library files are in DIR 1885 1886 System types: 1887 --build=BUILD configure for building on BUILD [guessed] 1888 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1889 --target=TARGET configure for building compilers for TARGET [HOST] 1890 _ACEOF 1891 fi 1892 1893 if test -n "$ac_init_help"; then 1894 case $ac_init_help in 1895 short | recursive ) echo "Configuration of ImageMagick 7.0.2-5:";; 1896 esac 1897 cat <<\_ACEOF 1898 1899 Optional Features: 1900 --disable-option-checking ignore unrecognized --enable/--with options 1901 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1902 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1903 --enable-silent-rules less verbose build output (undo: "make V=1") 1904 --disable-silent-rules verbose build output (undo: "make V=0") 1905 --enable-reproducible-build 1906 enable reproducible build 1907 --enable-dependency-tracking 1908 do not reject slow dependency extractors 1909 --disable-dependency-tracking 1910 speeds up one-time build 1911 --enable-compile-warnings=[no/yes/error] 1912 Enable compiler warnings and errors 1913 --disable-Werror Unconditionally make all compiler warnings non-fatal 1914 --enable-ld-version-script 1915 enable linker version script (default is enabled 1916 when possible) 1917 --enable-bounds-checking 1918 enable run-time bounds-checking 1919 --enable-osx-universal-binary 1920 build universal binary on OS X [[default=no]] 1921 --disable-openmp do not use OpenMP 1922 --enable-opencl enable OpenCL support 1923 --disable-largefile omit support for large files 1924 --enable-shared[=PKGS] build shared libraries [default=yes] 1925 --enable-static[=PKGS] build static libraries [default=yes] 1926 --enable-fast-install[=PKGS] 1927 optimize for fast installation [default=yes] 1928 --disable-libtool-lock avoid locking (might break parallel builds) 1929 --enable-delegate-build look for delegate libraries in build directory 1930 --disable-deprecated exclude deprecated methods in MagickCore and 1931 MagickWand APIs 1932 --disable-installed Formally install ImageMagick under PREFIX 1933 --disable-cipher disable enciphering and deciphering image pixels 1934 --enable-zero-configuration 1935 enable self-contained, embeddable, 1936 zero-configuration ImageMagick 1937 --enable-hdri accurately represent the wide range of intensity 1938 levels found in real scenes 1939 --enable-pipes enable pipes (|) in filenames 1940 --disable-assert disable assert() statements in build 1941 --enable-maintainer-mode 1942 enable make rules and dependencies not useful (and 1943 sometimes confusing) to the casual installer 1944 --enable-hugepages enable 'huge pages' support 1945 --enable-ccmalloc enable 'ccmalloc' memory debug support 1946 --enable-efence enable 'efence' memory debug support 1947 --enable-prof enable 'prof' profiling support 1948 --enable-gprof enable 'gprof' profiling support 1949 --enable-gcov enable 'gcov' profiling support 1950 --enable-legacy-support install legacy command-line utilities (default disabled) 1951 --disable-assert turn off assertions 1952 --disable-docs disable building of documentation 1953 1954 Optional Packages: 1955 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1956 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1957 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1958 --with-dmalloc use dmalloc, as in http://www.dmalloc.com 1959 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune, 1960 instead of guessing 1961 --includearch-dir=DIR ARCH specific include directory 1962 --sharearch-dir=DIR ARCH specific config directory 1963 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig] 1964 --without-threads disable threads support 1965 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1966 both] 1967 --with-aix-soname=aix|svr4|both 1968 shared library versioning (aka "SONAME") variant to 1969 provide on AIX, [default=aix]. 1970 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1971 compiler's sysroot if not specified). 1972 --with-modules enable building dynamically loadable modules 1973 --with-method-prefix=PREFIX 1974 prefix MagickCore API methods 1975 --with-quantum-depth=DEPTH 1976 number of bits in a pixel quantum (default 16) 1977 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available 1978 memory) 1979 --with-frozenpaths freeze delegate paths 1980 --without-magick-plus-plus 1981 disable build/install of Magick++ 1982 --with-package-release-name=NAME 1983 encode this name into the shared library 1984 --with-perl enable build/install of PerlMagick 1985 --with-perl-options=OPTIONS 1986 options to pass on command-line when generating 1987 PerlMagick build file 1988 --with-jemalloc enable jemalloc memory allocation library support 1989 --with-umem enable umem memory allocation library support 1990 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++) 1991 --without-bzlib disable BZLIB support 1992 --with-x use the X Window System 1993 --without-zlib disable ZLIB support 1994 --with-apple-font-dir=DIR 1995 Apple font directory 1996 --with-autotrace enable autotrace support 1997 --without-dps disable Display Postscript support 1998 --with-dejavu-font-dir=DIR 1999 DejaVu font directory 2000 --without-fftw disable FFTW support 2001 --without-flif disable FLIF support 2002 --without-fpx disable FlashPIX support 2003 --without-djvu disable DjVu support 2004 --without-fontconfig disable fontconfig support 2005 --without-freetype disable Freetype support 2006 --without-raqm disable Raqm support 2007 --with-gslib enable Ghostscript library support 2008 --with-fontpath=DIR prepend to default font search path 2009 --with-gs-font-dir=DIR Ghostscript font directory 2010 --with-gvc enable GVC support 2011 --without-jbig disable JBIG support 2012 --without-jpeg disable JPEG support 2013 --without-lcms disable lcms (v1.1X) support 2014 --without-openjp2 disable OpenJP2 support 2015 --without-lqr disable Liquid Rescale support 2016 --without-lzma disable LZMA support 2017 --without-openexr disable OpenEXR support 2018 --without-pango disable PANGO support 2019 --without-png disable PNG support 2020 --with-rsvg enable RSVG support 2021 --without-tiff disable TIFF support 2022 --without-webp disable WEBP support 2023 --with-windows-font-dir=DIR 2024 Windows font directory 2025 --with-wmf enable WMF support 2026 --without-xml disable XML support 2027 2028 Some influential environment variables: 2029 CC C compiler command 2030 CFLAGS C compiler flags 2031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2032 nonstandard directory <lib dir> 2033 LIBS libraries to pass to the linker, e.g. -l<library> 2034 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2035 you have headers in a nonstandard directory <include dir> 2036 CPP C preprocessor 2037 CXX C++ compiler command 2038 CXXFLAGS C++ compiler flags 2039 PKG_CONFIG path to pkg-config utility 2040 PKG_CONFIG_PATH 2041 directories to add to pkg-config's search path 2042 PKG_CONFIG_LIBDIR 2043 path overriding pkg-config's built-in search path 2044 LT_SYS_LIBRARY_PATH 2045 User-defined run-time library search path. 2046 CXXCPP C++ preprocessor 2047 XMKMF Path to xmkmf, Makefile generator for X Window System 2048 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config 2049 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config 2050 AUTOTRACE_CFLAGS 2051 C compiler flags for AUTOTRACE, overriding pkg-config 2052 AUTOTRACE_LIBS 2053 linker flags for AUTOTRACE, overriding pkg-config 2054 fftw3_CFLAGS 2055 C compiler flags for fftw3, overriding pkg-config 2056 fftw3_LIBS linker flags for fftw3, overriding pkg-config 2057 ddjvuapi_CFLAGS 2058 C compiler flags for ddjvuapi, overriding pkg-config 2059 ddjvuapi_LIBS 2060 linker flags for ddjvuapi, overriding pkg-config 2061 FONTCONFIG_CFLAGS 2062 C compiler flags for FONTCONFIG, overriding pkg-config 2063 FONTCONFIG_LIBS 2064 linker flags for FONTCONFIG, overriding pkg-config 2065 FREETYPE_CFLAGS 2066 C compiler flags for FREETYPE, overriding pkg-config 2067 FREETYPE_LIBS 2068 linker flags for FREETYPE, overriding pkg-config 2069 RAQM_CFLAGS C compiler flags for RAQM, overriding pkg-config 2070 RAQM_LIBS linker flags for RAQM, overriding pkg-config 2071 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config 2072 GVC_LIBS linker flags for GVC, overriding pkg-config 2073 LCMS2_CFLAGS 2074 C compiler flags for LCMS2, overriding pkg-config 2075 LCMS2_LIBS linker flags for LCMS2, overriding pkg-config 2076 LIBOPENJP2_CFLAGS 2077 C compiler flags for LIBOPENJP2, overriding pkg-config 2078 LIBOPENJP2_LIBS 2079 linker flags for LIBOPENJP2, overriding pkg-config 2080 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config 2081 LQR_LIBS linker flags for LQR, overriding pkg-config 2082 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config 2083 LZMA_LIBS linker flags for LZMA, overriding pkg-config 2084 OPENEXR_CFLAGS 2085 C compiler flags for OPENEXR, overriding pkg-config 2086 OPENEXR_LIBS 2087 linker flags for OPENEXR, overriding pkg-config 2088 PANGO_CFLAGS 2089 C compiler flags for PANGO, overriding pkg-config 2090 PANGO_LIBS linker flags for PANGO, overriding pkg-config 2091 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2092 PNG_LIBS linker flags for PNG, overriding pkg-config 2093 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config 2094 RSVG_LIBS linker flags for RSVG, overriding pkg-config 2095 CAIRO_SVG_CFLAGS 2096 C compiler flags for CAIRO_SVG, overriding pkg-config 2097 CAIRO_SVG_LIBS 2098 linker flags for CAIRO_SVG, overriding pkg-config 2099 XML_CFLAGS C compiler flags for XML, overriding pkg-config 2100 XML_LIBS linker flags for XML, overriding pkg-config 2101 2102 Use these variables to override the choices made by `configure' or to help 2103 it to find libraries and programs with nonstandard names/locations. 2104 2105 Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>. 2106 ImageMagick home page: <http://www.imagemagick.org>. 2107 _ACEOF 2108 ac_status=$? 2109 fi 2110 2111 if test "$ac_init_help" = "recursive"; then 2112 # If there are subdirs, report their specific --help. 2113 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2114 test -d "$ac_dir" || 2115 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2116 continue 2117 ac_builddir=. 2118 2119 case "$ac_dir" in 2120 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2121 *) 2122 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2123 # A ".." for each directory in $ac_dir_suffix. 2124 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2125 case $ac_top_builddir_sub in 2126 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2127 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2128 esac ;; 2129 esac 2130 ac_abs_top_builddir=$ac_pwd 2131 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2132 # for backward compatibility: 2133 ac_top_builddir=$ac_top_build_prefix 2134 2135 case $srcdir in 2136 .) # We are building in place. 2137 ac_srcdir=. 2138 ac_top_srcdir=$ac_top_builddir_sub 2139 ac_abs_top_srcdir=$ac_pwd ;; 2140 [\\/]* | ?:[\\/]* ) # Absolute name. 2141 ac_srcdir=$srcdir$ac_dir_suffix; 2142 ac_top_srcdir=$srcdir 2143 ac_abs_top_srcdir=$srcdir ;; 2144 *) # Relative name. 2145 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2146 ac_top_srcdir=$ac_top_build_prefix$srcdir 2147 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2148 esac 2149 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2150 2151 cd "$ac_dir" || { ac_status=$?; continue; } 2152 # Check for guested configure. 2153 if test -f "$ac_srcdir/configure.gnu"; then 2154 echo && 2155 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2156 elif test -f "$ac_srcdir/configure"; then 2157 echo && 2158 $SHELL "$ac_srcdir/configure" --help=recursive 2159 else 2160 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2161 fi || ac_status=$? 2162 cd "$ac_pwd" || { ac_status=$?; break; } 2163 done 2164 fi 2165 2166 test -n "$ac_init_help" && exit $ac_status 2167 if $ac_init_version; then 2168 cat <<\_ACEOF 2169 ImageMagick configure 7.0.2-5 2170 generated by GNU Autoconf 2.69 2171 2172 Copyright (C) 2012 Free Software Foundation, Inc. 2173 This configure script is free software; the Free Software Foundation 2174 gives unlimited permission to copy, distribute and modify it. 2175 _ACEOF 2176 exit 2177 fi 2178 2179 ## ------------------------ ## 2180 ## Autoconf initialization. ## 2181 ## ------------------------ ## 2182 2183 # ac_fn_c_try_compile LINENO 2184 # -------------------------- 2185 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2186 ac_fn_c_try_compile () 2187 { 2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2189 rm -f conftest.$ac_objext 2190 if { { ac_try="$ac_compile" 2191 case "(($ac_try" in 2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2193 *) ac_try_echo=$ac_try;; 2194 esac 2195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2196 $as_echo "$ac_try_echo"; } >&5 2197 (eval "$ac_compile") 2>conftest.err 2198 ac_status=$? 2199 if test -s conftest.err; then 2200 grep -v '^ *+' conftest.err >conftest.er1 2201 cat conftest.er1 >&5 2202 mv -f conftest.er1 conftest.err 2203 fi 2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2205 test $ac_status = 0; } && { 2206 test -z "$ac_c_werror_flag" || 2207 test ! -s conftest.err 2208 } && test -s conftest.$ac_objext; then : 2209 ac_retval=0 2210 else 2211 $as_echo "$as_me: failed program was:" >&5 2212 sed 's/^/| /' conftest.$ac_ext >&5 2213 2214 ac_retval=1 2215 fi 2216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2217 as_fn_set_status $ac_retval 2218 2219 } # ac_fn_c_try_compile 2220 2221 # ac_fn_c_try_cpp LINENO 2222 # ---------------------- 2223 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2224 ac_fn_c_try_cpp () 2225 { 2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2227 if { { ac_try="$ac_cpp conftest.$ac_ext" 2228 case "(($ac_try" in 2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2230 *) ac_try_echo=$ac_try;; 2231 esac 2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2233 $as_echo "$ac_try_echo"; } >&5 2234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2235 ac_status=$? 2236 if test -s conftest.err; then 2237 grep -v '^ *+' conftest.err >conftest.er1 2238 cat conftest.er1 >&5 2239 mv -f conftest.er1 conftest.err 2240 fi 2241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2242 test $ac_status = 0; } > conftest.i && { 2243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2244 test ! -s conftest.err 2245 }; then : 2246 ac_retval=0 2247 else 2248 $as_echo "$as_me: failed program was:" >&5 2249 sed 's/^/| /' conftest.$ac_ext >&5 2250 2251 ac_retval=1 2252 fi 2253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2254 as_fn_set_status $ac_retval 2255 2256 } # ac_fn_c_try_cpp 2257 2258 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2259 # ------------------------------------------------------- 2260 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2261 # the include files in INCLUDES and setting the cache variable VAR 2262 # accordingly. 2263 ac_fn_c_check_header_mongrel () 2264 { 2265 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2266 if eval \${$3+:} false; then : 2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2268 $as_echo_n "checking for $2... " >&6; } 2269 if eval \${$3+:} false; then : 2270 $as_echo_n "(cached) " >&6 2271 fi 2272 eval ac_res=\$$3 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2274 $as_echo "$ac_res" >&6; } 2275 else 2276 # Is the header compilable? 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2278 $as_echo_n "checking $2 usability... " >&6; } 2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2280 /* end confdefs.h. */ 2281 $4 2282 #include <$2> 2283 _ACEOF 2284 if ac_fn_c_try_compile "$LINENO"; then : 2285 ac_header_compiler=yes 2286 else 2287 ac_header_compiler=no 2288 fi 2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2291 $as_echo "$ac_header_compiler" >&6; } 2292 2293 # Is the header present? 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2295 $as_echo_n "checking $2 presence... " >&6; } 2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2297 /* end confdefs.h. */ 2298 #include <$2> 2299 _ACEOF 2300 if ac_fn_c_try_cpp "$LINENO"; then : 2301 ac_header_preproc=yes 2302 else 2303 ac_header_preproc=no 2304 fi 2305 rm -f conftest.err conftest.i conftest.$ac_ext 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2307 $as_echo "$ac_header_preproc" >&6; } 2308 2309 # So? What about this header? 2310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2311 yes:no: ) 2312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2313 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2315 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2316 ;; 2317 no:yes:* ) 2318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2319 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2321 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2323 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2325 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2327 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2328 ( $as_echo "## ---------------------------------------------------------------- ## 2329 ## Report this to https://github.com/ImageMagick/ImageMagick/issues ## 2330 ## ---------------------------------------------------------------- ##" 2331 ) | sed "s/^/$as_me: WARNING: /" >&2 2332 ;; 2333 esac 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2335 $as_echo_n "checking for $2... " >&6; } 2336 if eval \${$3+:} false; then : 2337 $as_echo_n "(cached) " >&6 2338 else 2339 eval "$3=\$ac_header_compiler" 2340 fi 2341 eval ac_res=\$$3 2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2343 $as_echo "$ac_res" >&6; } 2344 fi 2345 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2346 2347 } # ac_fn_c_check_header_mongrel 2348 2349 # ac_fn_c_try_run LINENO 2350 # ---------------------- 2351 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2352 # that executables *can* be run. 2353 ac_fn_c_try_run () 2354 { 2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2356 if { { ac_try="$ac_link" 2357 case "(($ac_try" in 2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2359 *) ac_try_echo=$ac_try;; 2360 esac 2361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2362 $as_echo "$ac_try_echo"; } >&5 2363 (eval "$ac_link") 2>&5 2364 ac_status=$? 2365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2366 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2367 { { case "(($ac_try" in 2368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2369 *) ac_try_echo=$ac_try;; 2370 esac 2371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2372 $as_echo "$ac_try_echo"; } >&5 2373 (eval "$ac_try") 2>&5 2374 ac_status=$? 2375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2376 test $ac_status = 0; }; }; then : 2377 ac_retval=0 2378 else 2379 $as_echo "$as_me: program exited with status $ac_status" >&5 2380 $as_echo "$as_me: failed program was:" >&5 2381 sed 's/^/| /' conftest.$ac_ext >&5 2382 2383 ac_retval=$ac_status 2384 fi 2385 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2386 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2387 as_fn_set_status $ac_retval 2388 2389 } # ac_fn_c_try_run 2390 2391 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2392 # ------------------------------------------------------- 2393 # Tests whether HEADER exists and can be compiled using the include files in 2394 # INCLUDES, setting the cache variable VAR accordingly. 2395 ac_fn_c_check_header_compile () 2396 { 2397 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2399 $as_echo_n "checking for $2... " >&6; } 2400 if eval \${$3+:} false; then : 2401 $as_echo_n "(cached) " >&6 2402 else 2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2404 /* end confdefs.h. */ 2405 $4 2406 #include <$2> 2407 _ACEOF 2408 if ac_fn_c_try_compile "$LINENO"; then : 2409 eval "$3=yes" 2410 else 2411 eval "$3=no" 2412 fi 2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2414 fi 2415 eval ac_res=\$$3 2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2417 $as_echo "$ac_res" >&6; } 2418 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2419 2420 } # ac_fn_c_check_header_compile 2421 2422 # ac_fn_cxx_try_compile LINENO 2423 # ---------------------------- 2424 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2425 ac_fn_cxx_try_compile () 2426 { 2427 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2428 rm -f conftest.$ac_objext 2429 if { { ac_try="$ac_compile" 2430 case "(($ac_try" in 2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2432 *) ac_try_echo=$ac_try;; 2433 esac 2434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2435 $as_echo "$ac_try_echo"; } >&5 2436 (eval "$ac_compile") 2>conftest.err 2437 ac_status=$? 2438 if test -s conftest.err; then 2439 grep -v '^ *+' conftest.err >conftest.er1 2440 cat conftest.er1 >&5 2441 mv -f conftest.er1 conftest.err 2442 fi 2443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2444 test $ac_status = 0; } && { 2445 test -z "$ac_cxx_werror_flag" || 2446 test ! -s conftest.err 2447 } && test -s conftest.$ac_objext; then : 2448 ac_retval=0 2449 else 2450 $as_echo "$as_me: failed program was:" >&5 2451 sed 's/^/| /' conftest.$ac_ext >&5 2452 2453 ac_retval=1 2454 fi 2455 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2456 as_fn_set_status $ac_retval 2457 2458 } # ac_fn_cxx_try_compile 2459 2460 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2461 # -------------------------------------------- 2462 # Tries to find the compile-time value of EXPR in a program that includes 2463 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2464 # computed 2465 ac_fn_c_compute_int () 2466 { 2467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2468 if test "$cross_compiling" = yes; then 2469 # Depending upon the size, compute the lo and hi bounds. 2470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2471 /* end confdefs.h. */ 2472 $4 2473 int 2474 main () 2475 { 2476 static int test_array [1 - 2 * !(($2) >= 0)]; 2477 test_array [0] = 0; 2478 return test_array [0]; 2479 2480 ; 2481 return 0; 2482 } 2483 _ACEOF 2484 if ac_fn_c_try_compile "$LINENO"; then : 2485 ac_lo=0 ac_mid=0 2486 while :; do 2487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2488 /* end confdefs.h. */ 2489 $4 2490 int 2491 main () 2492 { 2493 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2494 test_array [0] = 0; 2495 return test_array [0]; 2496 2497 ; 2498 return 0; 2499 } 2500 _ACEOF 2501 if ac_fn_c_try_compile "$LINENO"; then : 2502 ac_hi=$ac_mid; break 2503 else 2504 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2505 if test $ac_lo -le $ac_mid; then 2506 ac_lo= ac_hi= 2507 break 2508 fi 2509 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2510 fi 2511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2512 done 2513 else 2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2515 /* end confdefs.h. */ 2516 $4 2517 int 2518 main () 2519 { 2520 static int test_array [1 - 2 * !(($2) < 0)]; 2521 test_array [0] = 0; 2522 return test_array [0]; 2523 2524 ; 2525 return 0; 2526 } 2527 _ACEOF 2528 if ac_fn_c_try_compile "$LINENO"; then : 2529 ac_hi=-1 ac_mid=-1 2530 while :; do 2531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2532 /* end confdefs.h. */ 2533 $4 2534 int 2535 main () 2536 { 2537 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2538 test_array [0] = 0; 2539 return test_array [0]; 2540 2541 ; 2542 return 0; 2543 } 2544 _ACEOF 2545 if ac_fn_c_try_compile "$LINENO"; then : 2546 ac_lo=$ac_mid; break 2547 else 2548 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2549 if test $ac_mid -le $ac_hi; then 2550 ac_lo= ac_hi= 2551 break 2552 fi 2553 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2554 fi 2555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2556 done 2557 else 2558 ac_lo= ac_hi= 2559 fi 2560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2561 fi 2562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2563 # Binary search between lo and hi bounds. 2564 while test "x$ac_lo" != "x$ac_hi"; do 2565 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2567 /* end confdefs.h. */ 2568 $4 2569 int 2570 main () 2571 { 2572 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2573 test_array [0] = 0; 2574 return test_array [0]; 2575 2576 ; 2577 return 0; 2578 } 2579 _ACEOF 2580 if ac_fn_c_try_compile "$LINENO"; then : 2581 ac_hi=$ac_mid 2582 else 2583 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2584 fi 2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2586 done 2587 case $ac_lo in #(( 2588 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2589 '') ac_retval=1 ;; 2590 esac 2591 else 2592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2593 /* end confdefs.h. */ 2594 $4 2595 static long int longval () { return $2; } 2596 static unsigned long int ulongval () { return $2; } 2597 #include <stdio.h> 2598 #include <stdlib.h> 2599 int 2600 main () 2601 { 2602 2603 FILE *f = fopen ("conftest.val", "w"); 2604 if (! f) 2605 return 1; 2606 if (($2) < 0) 2607 { 2608 long int i = longval (); 2609 if (i != ($2)) 2610 return 1; 2611 fprintf (f, "%ld", i); 2612 } 2613 else 2614 { 2615 unsigned long int i = ulongval (); 2616 if (i != ($2)) 2617 return 1; 2618 fprintf (f, "%lu", i); 2619 } 2620 /* Do not output a trailing newline, as this causes \r\n confusion 2621 on some platforms. */ 2622 return ferror (f) || fclose (f) != 0; 2623 2624 ; 2625 return 0; 2626 } 2627 _ACEOF 2628 if ac_fn_c_try_run "$LINENO"; then : 2629 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2630 else 2631 ac_retval=1 2632 fi 2633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2634 conftest.$ac_objext conftest.beam conftest.$ac_ext 2635 rm -f conftest.val 2636 2637 fi 2638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2639 as_fn_set_status $ac_retval 2640 2641 } # ac_fn_c_compute_int 2642 2643 # ac_fn_c_try_link LINENO 2644 # ----------------------- 2645 # Try to link conftest.$ac_ext, and return whether this succeeded. 2646 ac_fn_c_try_link () 2647 { 2648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2649 rm -f conftest.$ac_objext conftest$ac_exeext 2650 if { { ac_try="$ac_link" 2651 case "(($ac_try" in 2652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2653 *) ac_try_echo=$ac_try;; 2654 esac 2655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2656 $as_echo "$ac_try_echo"; } >&5 2657 (eval "$ac_link") 2>conftest.err 2658 ac_status=$? 2659 if test -s conftest.err; then 2660 grep -v '^ *+' conftest.err >conftest.er1 2661 cat conftest.er1 >&5 2662 mv -f conftest.er1 conftest.err 2663 fi 2664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2665 test $ac_status = 0; } && { 2666 test -z "$ac_c_werror_flag" || 2667 test ! -s conftest.err 2668 } && test -s conftest$ac_exeext && { 2669 test "$cross_compiling" = yes || 2670 test -x conftest$ac_exeext 2671 }; then : 2672 ac_retval=0 2673 else 2674 $as_echo "$as_me: failed program was:" >&5 2675 sed 's/^/| /' conftest.$ac_ext >&5 2676 2677 ac_retval=1 2678 fi 2679 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2680 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2681 # interfere with the next link command; also delete a directory that is 2682 # left behind by Apple's compiler. We do this before executing the actions. 2683 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2685 as_fn_set_status $ac_retval 2686 2687 } # ac_fn_c_try_link 2688 2689 # ac_fn_c_check_func LINENO FUNC VAR 2690 # ---------------------------------- 2691 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2692 ac_fn_c_check_func () 2693 { 2694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2696 $as_echo_n "checking for $2... " >&6; } 2697 if eval \${$3+:} false; then : 2698 $as_echo_n "(cached) " >&6 2699 else 2700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2701 /* end confdefs.h. */ 2702 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2703 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2704 #define $2 innocuous_$2 2705 2706 /* System header to define __stub macros and hopefully few prototypes, 2707 which can conflict with char $2 (); below. 2708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2709 <limits.h> exists even on freestanding compilers. */ 2710 2711 #ifdef __STDC__ 2712 # include <limits.h> 2713 #else 2714 # include <assert.h> 2715 #endif 2716 2717 #undef $2 2718 2719 /* Override any GCC internal prototype to avoid an error. 2720 Use char because int might match the return type of a GCC 2721 builtin and then its argument prototype would still apply. */ 2722 #ifdef __cplusplus 2723 extern "C" 2724 #endif 2725 char $2 (); 2726 /* The GNU C library defines this for functions which it implements 2727 to always fail with ENOSYS. Some functions are actually named 2728 something starting with __ and the normal name is an alias. */ 2729 #if defined __stub_$2 || defined __stub___$2 2730 choke me 2731 #endif 2732 2733 int 2734 main () 2735 { 2736 return $2 (); 2737 ; 2738 return 0; 2739 } 2740 _ACEOF 2741 if ac_fn_c_try_link "$LINENO"; then : 2742 eval "$3=yes" 2743 else 2744 eval "$3=no" 2745 fi 2746 rm -f core conftest.err conftest.$ac_objext \ 2747 conftest$ac_exeext conftest.$ac_ext 2748 fi 2749 eval ac_res=\$$3 2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2751 $as_echo "$ac_res" >&6; } 2752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2753 2754 } # ac_fn_c_check_func 2755 2756 # ac_fn_cxx_try_cpp LINENO 2757 # ------------------------ 2758 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2759 ac_fn_cxx_try_cpp () 2760 { 2761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2762 if { { ac_try="$ac_cpp conftest.$ac_ext" 2763 case "(($ac_try" in 2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2765 *) ac_try_echo=$ac_try;; 2766 esac 2767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2768 $as_echo "$ac_try_echo"; } >&5 2769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2770 ac_status=$? 2771 if test -s conftest.err; then 2772 grep -v '^ *+' conftest.err >conftest.er1 2773 cat conftest.er1 >&5 2774 mv -f conftest.er1 conftest.err 2775 fi 2776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2777 test $ac_status = 0; } > conftest.i && { 2778 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2779 test ! -s conftest.err 2780 }; then : 2781 ac_retval=0 2782 else 2783 $as_echo "$as_me: failed program was:" >&5 2784 sed 's/^/| /' conftest.$ac_ext >&5 2785 2786 ac_retval=1 2787 fi 2788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2789 as_fn_set_status $ac_retval 2790 2791 } # ac_fn_cxx_try_cpp 2792 2793 # ac_fn_cxx_try_link LINENO 2794 # ------------------------- 2795 # Try to link conftest.$ac_ext, and return whether this succeeded. 2796 ac_fn_cxx_try_link () 2797 { 2798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2799 rm -f conftest.$ac_objext conftest$ac_exeext 2800 if { { ac_try="$ac_link" 2801 case "(($ac_try" in 2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2803 *) ac_try_echo=$ac_try;; 2804 esac 2805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2806 $as_echo "$ac_try_echo"; } >&5 2807 (eval "$ac_link") 2>conftest.err 2808 ac_status=$? 2809 if test -s conftest.err; then 2810 grep -v '^ *+' conftest.err >conftest.er1 2811 cat conftest.er1 >&5 2812 mv -f conftest.er1 conftest.err 2813 fi 2814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2815 test $ac_status = 0; } && { 2816 test -z "$ac_cxx_werror_flag" || 2817 test ! -s conftest.err 2818 } && test -s conftest$ac_exeext && { 2819 test "$cross_compiling" = yes || 2820 test -x conftest$ac_exeext 2821 }; then : 2822 ac_retval=0 2823 else 2824 $as_echo "$as_me: failed program was:" >&5 2825 sed 's/^/| /' conftest.$ac_ext >&5 2826 2827 ac_retval=1 2828 fi 2829 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2830 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2831 # interfere with the next link command; also delete a directory that is 2832 # left behind by Apple's compiler. We do this before executing the actions. 2833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2835 as_fn_set_status $ac_retval 2836 2837 } # ac_fn_cxx_try_link 2838 2839 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2840 # ------------------------------------------- 2841 # Tests whether TYPE exists after having included INCLUDES, setting cache 2842 # variable VAR accordingly. 2843 ac_fn_c_check_type () 2844 { 2845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2847 $as_echo_n "checking for $2... " >&6; } 2848 if eval \${$3+:} false; then : 2849 $as_echo_n "(cached) " >&6 2850 else 2851 eval "$3=no" 2852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2853 /* end confdefs.h. */ 2854 $4 2855 int 2856 main () 2857 { 2858 if (sizeof ($2)) 2859 return 0; 2860 ; 2861 return 0; 2862 } 2863 _ACEOF 2864 if ac_fn_c_try_compile "$LINENO"; then : 2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2866 /* end confdefs.h. */ 2867 $4 2868 int 2869 main () 2870 { 2871 if (sizeof (($2))) 2872 return 0; 2873 ; 2874 return 0; 2875 } 2876 _ACEOF 2877 if ac_fn_c_try_compile "$LINENO"; then : 2878 2879 else 2880 eval "$3=yes" 2881 fi 2882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2883 fi 2884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2885 fi 2886 eval ac_res=\$$3 2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2888 $as_echo "$ac_res" >&6; } 2889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2890 2891 } # ac_fn_c_check_type 2892 2893 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2894 # ---------------------------------------------------- 2895 # Tries to find if the field MEMBER exists in type AGGR, after including 2896 # INCLUDES, setting cache variable VAR accordingly. 2897 ac_fn_c_check_member () 2898 { 2899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2901 $as_echo_n "checking for $2.$3... " >&6; } 2902 if eval \${$4+:} false; then : 2903 $as_echo_n "(cached) " >&6 2904 else 2905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2906 /* end confdefs.h. */ 2907 $5 2908 int 2909 main () 2910 { 2911 static $2 ac_aggr; 2912 if (ac_aggr.$3) 2913 return 0; 2914 ; 2915 return 0; 2916 } 2917 _ACEOF 2918 if ac_fn_c_try_compile "$LINENO"; then : 2919 eval "$4=yes" 2920 else 2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2922 /* end confdefs.h. */ 2923 $5 2924 int 2925 main () 2926 { 2927 static $2 ac_aggr; 2928 if (sizeof ac_aggr.$3) 2929 return 0; 2930 ; 2931 return 0; 2932 } 2933 _ACEOF 2934 if ac_fn_c_try_compile "$LINENO"; then : 2935 eval "$4=yes" 2936 else 2937 eval "$4=no" 2938 fi 2939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2940 fi 2941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2942 fi 2943 eval ac_res=\$$4 2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2945 $as_echo "$ac_res" >&6; } 2946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2947 2948 } # ac_fn_c_check_member 2949 2950 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2951 # --------------------------------------------- 2952 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2953 # accordingly. 2954 ac_fn_c_check_decl () 2955 { 2956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2957 as_decl_name=`echo $2|sed 's/ *(.*//'` 2958 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2960 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2961 if eval \${$3+:} false; then : 2962 $as_echo_n "(cached) " >&6 2963 else 2964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2965 /* end confdefs.h. */ 2966 $4 2967 int 2968 main () 2969 { 2970 #ifndef $as_decl_name 2971 #ifdef __cplusplus 2972 (void) $as_decl_use; 2973 #else 2974 (void) $as_decl_name; 2975 #endif 2976 #endif 2977 2978 ; 2979 return 0; 2980 } 2981 _ACEOF 2982 if ac_fn_c_try_compile "$LINENO"; then : 2983 eval "$3=yes" 2984 else 2985 eval "$3=no" 2986 fi 2987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2988 fi 2989 eval ac_res=\$$3 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2991 $as_echo "$ac_res" >&6; } 2992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2993 2994 } # ac_fn_c_check_decl 2995 2996 # ac_fn_c_find_intX_t LINENO BITS VAR 2997 # ----------------------------------- 2998 # Finds a signed integer type with width BITS, setting cache variable VAR 2999 # accordingly. 3000 ac_fn_c_find_intX_t () 3001 { 3002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 3004 $as_echo_n "checking for int$2_t... " >&6; } 3005 if eval \${$3+:} false; then : 3006 $as_echo_n "(cached) " >&6 3007 else 3008 eval "$3=no" 3009 # Order is important - never check a type that is potentially smaller 3010 # than half of the expected target width. 3011 for ac_type in int$2_t 'int' 'long int' \ 3012 'long long int' 'short int' 'signed char'; do 3013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3014 /* end confdefs.h. */ 3015 $ac_includes_default 3016 enum { N = $2 / 2 - 1 }; 3017 int 3018 main () 3019 { 3020 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 3021 test_array [0] = 0; 3022 return test_array [0]; 3023 3024 ; 3025 return 0; 3026 } 3027 _ACEOF 3028 if ac_fn_c_try_compile "$LINENO"; then : 3029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3030 /* end confdefs.h. */ 3031 $ac_includes_default 3032 enum { N = $2 / 2 - 1 }; 3033 int 3034 main () 3035 { 3036 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 3037 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 3038 test_array [0] = 0; 3039 return test_array [0]; 3040 3041 ; 3042 return 0; 3043 } 3044 _ACEOF 3045 if ac_fn_c_try_compile "$LINENO"; then : 3046 3047 else 3048 case $ac_type in #( 3049 int$2_t) : 3050 eval "$3=yes" ;; #( 3051 *) : 3052 eval "$3=\$ac_type" ;; 3053 esac 3054 fi 3055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3056 fi 3057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3058 if eval test \"x\$"$3"\" = x"no"; then : 3059 3060 else 3061 break 3062 fi 3063 done 3064 fi 3065 eval ac_res=\$$3 3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3067 $as_echo "$ac_res" >&6; } 3068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3069 3070 } # ac_fn_c_find_intX_t 3071 3072 # ac_fn_c_find_uintX_t LINENO BITS VAR 3073 # ------------------------------------ 3074 # Finds an unsigned integer type with width BITS, setting cache variable VAR 3075 # accordingly. 3076 ac_fn_c_find_uintX_t () 3077 { 3078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 3080 $as_echo_n "checking for uint$2_t... " >&6; } 3081 if eval \${$3+:} false; then : 3082 $as_echo_n "(cached) " >&6 3083 else 3084 eval "$3=no" 3085 # Order is important - never check a type that is potentially smaller 3086 # than half of the expected target width. 3087 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 3088 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 3089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3090 /* end confdefs.h. */ 3091 $ac_includes_default 3092 int 3093 main () 3094 { 3095 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 3096 test_array [0] = 0; 3097 return test_array [0]; 3098 3099 ; 3100 return 0; 3101 } 3102 _ACEOF 3103 if ac_fn_c_try_compile "$LINENO"; then : 3104 case $ac_type in #( 3105 uint$2_t) : 3106 eval "$3=yes" ;; #( 3107 *) : 3108 eval "$3=\$ac_type" ;; 3109 esac 3110 fi 3111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3112 if eval test \"x\$"$3"\" = x"no"; then : 3113 3114 else 3115 break 3116 fi 3117 done 3118 fi 3119 eval ac_res=\$$3 3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3121 $as_echo "$ac_res" >&6; } 3122 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3123 3124 } # ac_fn_c_find_uintX_t 3125 3126 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 3127 # --------------------------------------------------------- 3128 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 3129 # the include files in INCLUDES and setting the cache variable VAR 3130 # accordingly. 3131 ac_fn_cxx_check_header_mongrel () 3132 { 3133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3134 if eval \${$3+:} false; then : 3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3136 $as_echo_n "checking for $2... " >&6; } 3137 if eval \${$3+:} false; then : 3138 $as_echo_n "(cached) " >&6 3139 fi 3140 eval ac_res=\$$3 3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3142 $as_echo "$ac_res" >&6; } 3143 else 3144 # Is the header compilable? 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 3146 $as_echo_n "checking $2 usability... " >&6; } 3147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3148 /* end confdefs.h. */ 3149 $4 3150 #include <$2> 3151 _ACEOF 3152 if ac_fn_cxx_try_compile "$LINENO"; then : 3153 ac_header_compiler=yes 3154 else 3155 ac_header_compiler=no 3156 fi 3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 3159 $as_echo "$ac_header_compiler" >&6; } 3160 3161 # Is the header present? 3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 3163 $as_echo_n "checking $2 presence... " >&6; } 3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3165 /* end confdefs.h. */ 3166 #include <$2> 3167 _ACEOF 3168 if ac_fn_cxx_try_cpp "$LINENO"; then : 3169 ac_header_preproc=yes 3170 else 3171 ac_header_preproc=no 3172 fi 3173 rm -f conftest.err conftest.i conftest.$ac_ext 3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 3175 $as_echo "$ac_header_preproc" >&6; } 3176 3177 # So? What about this header? 3178 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 3179 yes:no: ) 3180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 3181 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 3182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 3183 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 3184 ;; 3185 no:yes:* ) 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 3187 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 3188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 3189 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 3191 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 3192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 3193 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 3194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 3195 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 3196 ( $as_echo "## ---------------------------------------------------------------- ## 3197 ## Report this to https://github.com/ImageMagick/ImageMagick/issues ## 3198 ## ---------------------------------------------------------------- ##" 3199 ) | sed "s/^/$as_me: WARNING: /" >&2 3200 ;; 3201 esac 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3203 $as_echo_n "checking for $2... " >&6; } 3204 if eval \${$3+:} false; then : 3205 $as_echo_n "(cached) " >&6 3206 else 3207 eval "$3=\$ac_header_compiler" 3208 fi 3209 eval ac_res=\$$3 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3211 $as_echo "$ac_res" >&6; } 3212 fi 3213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3214 3215 } # ac_fn_cxx_check_header_mongrel 3216 cat >config.log <<_ACEOF 3217 This file contains any messages produced by compilers while 3218 running configure, to aid debugging if configure makes a mistake. 3219 3220 It was created by ImageMagick $as_me 7.0.2-5, which was 3221 generated by GNU Autoconf 2.69. Invocation command line was 3222 3223 $ $0 $@ 3224 3225 _ACEOF 3226 exec 5>>config.log 3227 { 3228 cat <<_ASUNAME 3229 ## --------- ## 3230 ## Platform. ## 3231 ## --------- ## 3232 3233 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3234 uname -m = `(uname -m) 2>/dev/null || echo unknown` 3235 uname -r = `(uname -r) 2>/dev/null || echo unknown` 3236 uname -s = `(uname -s) 2>/dev/null || echo unknown` 3237 uname -v = `(uname -v) 2>/dev/null || echo unknown` 3238 3239 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3240 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3241 3242 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3243 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3244 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3245 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3246 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3247 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3248 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3249 3250 _ASUNAME 3251 3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3253 for as_dir in $PATH 3254 do 3255 IFS=$as_save_IFS 3256 test -z "$as_dir" && as_dir=. 3257 $as_echo "PATH: $as_dir" 3258 done 3259 IFS=$as_save_IFS 3260 3261 } >&5 3262 3263 cat >&5 <<_ACEOF 3264 3265 3266 ## ----------- ## 3267 ## Core tests. ## 3268 ## ----------- ## 3269 3270 _ACEOF 3271 3272 3273 # Keep a trace of the command line. 3274 # Strip out --no-create and --no-recursion so they do not pile up. 3275 # Strip out --silent because we don't want to record it for future runs. 3276 # Also quote any args containing shell meta-characters. 3277 # Make two passes to allow for proper duplicate-argument suppression. 3278 ac_configure_args= 3279 ac_configure_args0= 3280 ac_configure_args1= 3281 ac_must_keep_next=false 3282 for ac_pass in 1 2 3283 do 3284 for ac_arg 3285 do 3286 case $ac_arg in 3287 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3289 | -silent | --silent | --silen | --sile | --sil) 3290 continue ;; 3291 *\'*) 3292 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3293 esac 3294 case $ac_pass in 3295 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3296 2) 3297 as_fn_append ac_configure_args1 " '$ac_arg'" 3298 if test $ac_must_keep_next = true; then 3299 ac_must_keep_next=false # Got value, back to normal. 3300 else 3301 case $ac_arg in 3302 *=* | --config-cache | -C | -disable-* | --disable-* \ 3303 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3304 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3305 | -with-* | --with-* | -without-* | --without-* | --x) 3306 case "$ac_configure_args0 " in 3307 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3308 esac 3309 ;; 3310 -* ) ac_must_keep_next=true ;; 3311 esac 3312 fi 3313 as_fn_append ac_configure_args " '$ac_arg'" 3314 ;; 3315 esac 3316 done 3317 done 3318 { ac_configure_args0=; unset ac_configure_args0;} 3319 { ac_configure_args1=; unset ac_configure_args1;} 3320 3321 # When interrupted or exit'd, cleanup temporary files, and complete 3322 # config.log. We remove comments because anyway the quotes in there 3323 # would cause problems or look ugly. 3324 # WARNING: Use '\'' to represent an apostrophe within the trap. 3325 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3326 trap 'exit_status=$? 3327 # Save into config.log some information that might help in debugging. 3328 { 3329 echo 3330 3331 $as_echo "## ---------------- ## 3332 ## Cache variables. ## 3333 ## ---------------- ##" 3334 echo 3335 # The following way of writing the cache mishandles newlines in values, 3336 ( 3337 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3338 eval ac_val=\$$ac_var 3339 case $ac_val in #( 3340 *${as_nl}*) 3341 case $ac_var in #( 3342 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3343 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3344 esac 3345 case $ac_var in #( 3346 _ | IFS | as_nl) ;; #( 3347 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3348 *) { eval $ac_var=; unset $ac_var;} ;; 3349 esac ;; 3350 esac 3351 done 3352 (set) 2>&1 | 3353 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3354 *${as_nl}ac_space=\ *) 3355 sed -n \ 3356 "s/'\''/'\''\\\\'\'''\''/g; 3357 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3358 ;; #( 3359 *) 3360 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3361 ;; 3362 esac | 3363 sort 3364 ) 3365 echo 3366 3367 $as_echo "## ----------------- ## 3368 ## Output variables. ## 3369 ## ----------------- ##" 3370 echo 3371 for ac_var in $ac_subst_vars 3372 do 3373 eval ac_val=\$$ac_var 3374 case $ac_val in 3375 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3376 esac 3377 $as_echo "$ac_var='\''$ac_val'\''" 3378 done | sort 3379 echo 3380 3381 if test -n "$ac_subst_files"; then 3382 $as_echo "## ------------------- ## 3383 ## File substitutions. ## 3384 ## ------------------- ##" 3385 echo 3386 for ac_var in $ac_subst_files 3387 do 3388 eval ac_val=\$$ac_var 3389 case $ac_val in 3390 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3391 esac 3392 $as_echo "$ac_var='\''$ac_val'\''" 3393 done | sort 3394 echo 3395 fi 3396 3397 if test -s confdefs.h; then 3398 $as_echo "## ----------- ## 3399 ## confdefs.h. ## 3400 ## ----------- ##" 3401 echo 3402 cat confdefs.h 3403 echo 3404 fi 3405 test "$ac_signal" != 0 && 3406 $as_echo "$as_me: caught signal $ac_signal" 3407 $as_echo "$as_me: exit $exit_status" 3408 } >&5 3409 rm -f core *.core core.conftest.* && 3410 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3411 exit $exit_status 3412 ' 0 3413 for ac_signal in 1 2 13 15; do 3414 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3415 done 3416 ac_signal=0 3417 3418 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3419 rm -f -r conftest* confdefs.h 3420 3421 $as_echo "/* confdefs.h */" > confdefs.h 3422 3423 # Predefined preprocessor variables. 3424 3425 cat >>confdefs.h <<_ACEOF 3426 #define PACKAGE_NAME "$PACKAGE_NAME" 3427 _ACEOF 3428 3429 cat >>confdefs.h <<_ACEOF 3430 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3431 _ACEOF 3432 3433 cat >>confdefs.h <<_ACEOF 3434 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3435 _ACEOF 3436 3437 cat >>confdefs.h <<_ACEOF 3438 #define PACKAGE_STRING "$PACKAGE_STRING" 3439 _ACEOF 3440 3441 cat >>confdefs.h <<_ACEOF 3442 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3443 _ACEOF 3444 3445 cat >>confdefs.h <<_ACEOF 3446 #define PACKAGE_URL "$PACKAGE_URL" 3447 _ACEOF 3448 3449 3450 # Let the site file select an alternate cache file if it wants to. 3451 # Prefer an explicitly selected file to automatically selected ones. 3452 ac_site_file1=NONE 3453 ac_site_file2=NONE 3454 if test -n "$CONFIG_SITE"; then 3455 # We do not want a PATH search for config.site. 3456 case $CONFIG_SITE in #(( 3457 -*) ac_site_file1=./$CONFIG_SITE;; 3458 */*) ac_site_file1=$CONFIG_SITE;; 3459 *) ac_site_file1=./$CONFIG_SITE;; 3460 esac 3461 elif test "x$prefix" != xNONE; then 3462 ac_site_file1=$prefix/share/config.site 3463 ac_site_file2=$prefix/etc/config.site 3464 else 3465 ac_site_file1=$ac_default_prefix/share/config.site 3466 ac_site_file2=$ac_default_prefix/etc/config.site 3467 fi 3468 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3469 do 3470 test "x$ac_site_file" = xNONE && continue 3471 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3472 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3473 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3474 sed 's/^/| /' "$ac_site_file" >&5 3475 . "$ac_site_file" \ 3476 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3478 as_fn_error $? "failed to load site script $ac_site_file 3479 See \`config.log' for more details" "$LINENO" 5; } 3480 fi 3481 done 3482 3483 if test -r "$cache_file"; then 3484 # Some versions of bash will fail to source /dev/null (special files 3485 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3486 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3487 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3488 $as_echo "$as_me: loading cache $cache_file" >&6;} 3489 case $cache_file in 3490 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3491 *) . "./$cache_file";; 3492 esac 3493 fi 3494 else 3495 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3496 $as_echo "$as_me: creating cache $cache_file" >&6;} 3497 >$cache_file 3498 fi 3499 3500 as_fn_append ac_header_list " stdlib.h" 3501 as_fn_append ac_header_list " unistd.h" 3502 as_fn_append ac_header_list " sys/param.h" 3503 # Check that the precious variables saved in the cache have kept the same 3504 # value. 3505 ac_cache_corrupted=false 3506 for ac_var in $ac_precious_vars; do 3507 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3508 eval ac_new_set=\$ac_env_${ac_var}_set 3509 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3510 eval ac_new_val=\$ac_env_${ac_var}_value 3511 case $ac_old_set,$ac_new_set in 3512 set,) 3513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3514 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3515 ac_cache_corrupted=: ;; 3516 ,set) 3517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3518 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3519 ac_cache_corrupted=: ;; 3520 ,);; 3521 *) 3522 if test "x$ac_old_val" != "x$ac_new_val"; then 3523 # differences in whitespace do not lead to failure. 3524 ac_old_val_w=`echo x $ac_old_val` 3525 ac_new_val_w=`echo x $ac_new_val` 3526 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3528 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3529 ac_cache_corrupted=: 3530 else 3531 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3532 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3533 eval $ac_var=\$ac_old_val 3534 fi 3535 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3536 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3537 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3538 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3539 fi;; 3540 esac 3541 # Pass precious variables to config.status. 3542 if test "$ac_new_set" = set; then 3543 case $ac_new_val in 3544 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3545 *) ac_arg=$ac_var=$ac_new_val ;; 3546 esac 3547 case " $ac_configure_args " in 3548 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3549 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3550 esac 3551 fi 3552 done 3553 if $ac_cache_corrupted; then 3554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3557 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3558 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3559 fi 3560 ## -------------------- ## 3561 ## Main body of script. ## 3562 ## -------------------- ## 3563 3564 ac_ext=c 3565 ac_cpp='$CPP $CPPFLAGS' 3566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3568 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3569 3570 3571 3572 ac_aux_dir= 3573 for ac_dir in config "$srcdir"/config; do 3574 if test -f "$ac_dir/install-sh"; then 3575 ac_aux_dir=$ac_dir 3576 ac_install_sh="$ac_aux_dir/install-sh -c" 3577 break 3578 elif test -f "$ac_dir/install.sh"; then 3579 ac_aux_dir=$ac_dir 3580 ac_install_sh="$ac_aux_dir/install.sh -c" 3581 break 3582 elif test -f "$ac_dir/shtool"; then 3583 ac_aux_dir=$ac_dir 3584 ac_install_sh="$ac_aux_dir/shtool install -c" 3585 break 3586 fi 3587 done 3588 if test -z "$ac_aux_dir"; then 3589 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 3590 fi 3591 3592 # These three variables are undocumented and unsupported, 3593 # and are intended to be withdrawn in a future Autoconf release. 3594 # They can cause serious problems if a builder's source tree is in a directory 3595 # whose full name contains unusual characters. 3596 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3597 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3598 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3599 3600 3601 3602 3603 ac_config_headers="$ac_config_headers config/config.h" 3604 3605 3606 ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h" 3607 3608 # Make sure we can run config.sub. 3609 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3610 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3611 3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3613 $as_echo_n "checking build system type... " >&6; } 3614 if ${ac_cv_build+:} false; then : 3615 $as_echo_n "(cached) " >&6 3616 else 3617 ac_build_alias=$build_alias 3618 test "x$ac_build_alias" = x && 3619 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3620 test "x$ac_build_alias" = x && 3621 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3622 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3623 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3624 3625 fi 3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3627 $as_echo "$ac_cv_build" >&6; } 3628 case $ac_cv_build in 3629 *-*-*) ;; 3630 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3631 esac 3632 build=$ac_cv_build 3633 ac_save_IFS=$IFS; IFS='-' 3634 set x $ac_cv_build 3635 shift 3636 build_cpu=$1 3637 build_vendor=$2 3638 shift; shift 3639 # Remember, the first character of IFS is used to create $*, 3640 # except with old shells: 3641 build_os=$* 3642 IFS=$ac_save_IFS 3643 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3644 3645 3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3647 $as_echo_n "checking host system type... " >&6; } 3648 if ${ac_cv_host+:} false; then : 3649 $as_echo_n "(cached) " >&6 3650 else 3651 if test "x$host_alias" = x; then 3652 ac_cv_host=$ac_cv_build 3653 else 3654 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3655 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3656 fi 3657 3658 fi 3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3660 $as_echo "$ac_cv_host" >&6; } 3661 case $ac_cv_host in 3662 *-*-*) ;; 3663 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3664 esac 3665 host=$ac_cv_host 3666 ac_save_IFS=$IFS; IFS='-' 3667 set x $ac_cv_host 3668 shift 3669 host_cpu=$1 3670 host_vendor=$2 3671 shift; shift 3672 # Remember, the first character of IFS is used to create $*, 3673 # except with old shells: 3674 host_os=$* 3675 IFS=$ac_save_IFS 3676 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3677 3678 3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3680 $as_echo_n "checking target system type... " >&6; } 3681 if ${ac_cv_target+:} false; then : 3682 $as_echo_n "(cached) " >&6 3683 else 3684 if test "x$target_alias" = x; then 3685 ac_cv_target=$ac_cv_host 3686 else 3687 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3688 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 3689 fi 3690 3691 fi 3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3693 $as_echo "$ac_cv_target" >&6; } 3694 case $ac_cv_target in 3695 *-*-*) ;; 3696 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 3697 esac 3698 target=$ac_cv_target 3699 ac_save_IFS=$IFS; IFS='-' 3700 set x $ac_cv_target 3701 shift 3702 target_cpu=$1 3703 target_vendor=$2 3704 shift; shift 3705 # Remember, the first character of IFS is used to create $*, 3706 # except with old shells: 3707 target_os=$* 3708 IFS=$ac_save_IFS 3709 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3710 3711 3712 # The aliases save the names the user supplied, while $host etc. 3713 # will get canonicalized. 3714 test -n "$target_alias" && 3715 test "$program_prefix$program_suffix$program_transform_name" = \ 3716 NONENONEs,x,x, && 3717 program_prefix=${target_alias}- 3718 3719 3720 am__api_version='1.15' 3721 3722 # Find a good install program. We prefer a C program (faster), 3723 # so one script is as good as another. But avoid the broken or 3724 # incompatible versions: 3725 # SysV /etc/install, /usr/sbin/install 3726 # SunOS /usr/etc/install 3727 # IRIX /sbin/install 3728 # AIX /bin/install 3729 # AmigaOS /C/install, which installs bootblocks on floppy discs 3730 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3731 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3732 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3733 # OS/2's system install, which has a completely different semantic 3734 # ./install, which can be erroneously created by make from ./install.sh. 3735 # Reject install programs that cannot install multiple files. 3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3737 $as_echo_n "checking for a BSD-compatible install... " >&6; } 3738 if test -z "$INSTALL"; then 3739 if ${ac_cv_path_install+:} false; then : 3740 $as_echo_n "(cached) " >&6 3741 else 3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3743 for as_dir in $PATH 3744 do 3745 IFS=$as_save_IFS 3746 test -z "$as_dir" && as_dir=. 3747 # Account for people who put trailing slashes in PATH elements. 3748 case $as_dir/ in #(( 3749 ./ | .// | /[cC]/* | \ 3750 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3751 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3752 /usr/ucb/* ) ;; 3753 *) 3754 # OSF1 and SCO ODT 3.0 have their own names for install. 3755 # Don't use installbsd from OSF since it installs stuff as root 3756 # by default. 3757 for ac_prog in ginstall scoinst install; do 3758 for ac_exec_ext in '' $ac_executable_extensions; do 3759 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3760 if test $ac_prog = install && 3761 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3762 # AIX install. It has an incompatible calling convention. 3763 : 3764 elif test $ac_prog = install && 3765 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3766 # program-specific install script used by HP pwplus--don't use. 3767 : 3768 else 3769 rm -rf conftest.one conftest.two conftest.dir 3770 echo one > conftest.one 3771 echo two > conftest.two 3772 mkdir conftest.dir 3773 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3774 test -s conftest.one && test -s conftest.two && 3775 test -s conftest.dir/conftest.one && 3776 test -s conftest.dir/conftest.two 3777 then 3778 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3779 break 3 3780 fi 3781 fi 3782 fi 3783 done 3784 done 3785 ;; 3786 esac 3787 3788 done 3789 IFS=$as_save_IFS 3790 3791 rm -rf conftest.one conftest.two conftest.dir 3792 3793 fi 3794 if test "${ac_cv_path_install+set}" = set; then 3795 INSTALL=$ac_cv_path_install 3796 else 3797 # As a last resort, use the slow shell script. Don't cache a 3798 # value for INSTALL within a source directory, because that will 3799 # break other packages using the cache if that directory is 3800 # removed, or if the value is a relative name. 3801 INSTALL=$ac_install_sh 3802 fi 3803 fi 3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3805 $as_echo "$INSTALL" >&6; } 3806 3807 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3808 # It thinks the first close brace ends the variable substitution. 3809 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3810 3811 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3812 3813 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3814 3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3816 $as_echo_n "checking whether build environment is sane... " >&6; } 3817 # Reject unsafe characters in $srcdir or the absolute working directory 3818 # name. Accept space and tab only in the latter. 3819 am_lf=' 3820 ' 3821 case `pwd` in 3822 *[\\\"\#\$\&\'\`$am_lf]*) 3823 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3824 esac 3825 case $srcdir in 3826 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3827 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3828 esac 3829 3830 # Do 'set' in a subshell so we don't clobber the current shell's 3831 # arguments. Must try -L first in case configure is actually a 3832 # symlink; some systems play weird games with the mod time of symlinks 3833 # (eg FreeBSD returns the mod time of the symlink's containing 3834 # directory). 3835 if ( 3836 am_has_slept=no 3837 for am_try in 1 2; do 3838 echo "timestamp, slept: $am_has_slept" > conftest.file 3839 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3840 if test "$*" = "X"; then 3841 # -L didn't work. 3842 set X `ls -t "$srcdir/configure" conftest.file` 3843 fi 3844 if test "$*" != "X $srcdir/configure conftest.file" \ 3845 && test "$*" != "X conftest.file $srcdir/configure"; then 3846 3847 # If neither matched, then we have a broken ls. This can happen 3848 # if, for instance, CONFIG_SHELL is bash and it inherits a 3849 # broken ls alias from the environment. This has actually 3850 # happened. Such a system could not be considered "sane". 3851 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3852 alias in your environment" "$LINENO" 5 3853 fi 3854 if test "$2" = conftest.file || test $am_try -eq 2; then 3855 break 3856 fi 3857 # Just in case. 3858 sleep 1 3859 am_has_slept=yes 3860 done 3861 test "$2" = conftest.file 3862 ) 3863 then 3864 # Ok. 3865 : 3866 else 3867 as_fn_error $? "newly created file is older than distributed files! 3868 Check your system clock" "$LINENO" 5 3869 fi 3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3871 $as_echo "yes" >&6; } 3872 # If we didn't sleep, we still need to ensure time stamps of config.status and 3873 # generated files are strictly newer. 3874 am_sleep_pid= 3875 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3876 ( sleep 1 ) & 3877 am_sleep_pid=$! 3878 fi 3879 3880 rm -f conftest.file 3881 3882 test "$program_prefix" != NONE && 3883 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3884 # Use a double $ so make ignores it. 3885 test "$program_suffix" != NONE && 3886 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3887 # Double any \ or $. 3888 # By default was `s,x,x', remove it if useless. 3889 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3890 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3891 3892 # Expand $ac_aux_dir to an absolute path. 3893 am_aux_dir=`cd "$ac_aux_dir" && pwd` 3894 3895 if test x"${MISSING+set}" != xset; then 3896 case $am_aux_dir in 3897 *\ * | *\ *) 3898 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3899 *) 3900 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3901 esac 3902 fi 3903 # Use eval to expand $SHELL 3904 if eval "$MISSING --is-lightweight"; then 3905 am_missing_run="$MISSING " 3906 else 3907 am_missing_run= 3908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3909 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3910 fi 3911 3912 if test x"${install_sh+set}" != xset; then 3913 case $am_aux_dir in 3914 *\ * | *\ *) 3915 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3916 *) 3917 install_sh="\${SHELL} $am_aux_dir/install-sh" 3918 esac 3919 fi 3920 3921 # Installed binaries are usually stripped using 'strip' when the user 3922 # run "make install-strip". However 'strip' might not be the right 3923 # tool to use in cross-compilation environments, therefore Automake 3924 # will honor the 'STRIP' environment variable to overrule this program. 3925 if test "$cross_compiling" != no; then 3926 if test -n "$ac_tool_prefix"; then 3927 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3928 set dummy ${ac_tool_prefix}strip; ac_word=$2 3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3930 $as_echo_n "checking for $ac_word... " >&6; } 3931 if ${ac_cv_prog_STRIP+:} false; then : 3932 $as_echo_n "(cached) " >&6 3933 else 3934 if test -n "$STRIP"; then 3935 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3936 else 3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3938 for as_dir in $PATH 3939 do 3940 IFS=$as_save_IFS 3941 test -z "$as_dir" && as_dir=. 3942 for ac_exec_ext in '' $ac_executable_extensions; do 3943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3944 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3946 break 2 3947 fi 3948 done 3949 done 3950 IFS=$as_save_IFS 3951 3952 fi 3953 fi 3954 STRIP=$ac_cv_prog_STRIP 3955 if test -n "$STRIP"; then 3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3957 $as_echo "$STRIP" >&6; } 3958 else 3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3960 $as_echo "no" >&6; } 3961 fi 3962 3963 3964 fi 3965 if test -z "$ac_cv_prog_STRIP"; then 3966 ac_ct_STRIP=$STRIP 3967 # Extract the first word of "strip", so it can be a program name with args. 3968 set dummy strip; ac_word=$2 3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3970 $as_echo_n "checking for $ac_word... " >&6; } 3971 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3972 $as_echo_n "(cached) " >&6 3973 else 3974 if test -n "$ac_ct_STRIP"; then 3975 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3976 else 3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3978 for as_dir in $PATH 3979 do 3980 IFS=$as_save_IFS 3981 test -z "$as_dir" && as_dir=. 3982 for ac_exec_ext in '' $ac_executable_extensions; do 3983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3984 ac_cv_prog_ac_ct_STRIP="strip" 3985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3986 break 2 3987 fi 3988 done 3989 done 3990 IFS=$as_save_IFS 3991 3992 fi 3993 fi 3994 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3995 if test -n "$ac_ct_STRIP"; then 3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3997 $as_echo "$ac_ct_STRIP" >&6; } 3998 else 3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4000 $as_echo "no" >&6; } 4001 fi 4002 4003 if test "x$ac_ct_STRIP" = x; then 4004 STRIP=":" 4005 else 4006 case $cross_compiling:$ac_tool_warned in 4007 yes:) 4008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4010 ac_tool_warned=yes ;; 4011 esac 4012 STRIP=$ac_ct_STRIP 4013 fi 4014 else 4015 STRIP="$ac_cv_prog_STRIP" 4016 fi 4017 4018 fi 4019 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4020 4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4022 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4023 if test -z "$MKDIR_P"; then 4024 if ${ac_cv_path_mkdir+:} false; then : 4025 $as_echo_n "(cached) " >&6 4026 else 4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4028 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4029 do 4030 IFS=$as_save_IFS 4031 test -z "$as_dir" && as_dir=. 4032 for ac_prog in mkdir gmkdir; do 4033 for ac_exec_ext in '' $ac_executable_extensions; do 4034 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4035 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4036 'mkdir (GNU coreutils) '* | \ 4037 'mkdir (coreutils) '* | \ 4038 'mkdir (fileutils) '4.1*) 4039 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4040 break 3;; 4041 esac 4042 done 4043 done 4044 done 4045 IFS=$as_save_IFS 4046 4047 fi 4048 4049 test -d ./--version && rmdir ./--version 4050 if test "${ac_cv_path_mkdir+set}" = set; then 4051 MKDIR_P="$ac_cv_path_mkdir -p" 4052 else 4053 # As a last resort, use the slow shell script. Don't cache a 4054 # value for MKDIR_P within a source directory, because that will 4055 # break other packages using the cache if that directory is 4056 # removed, or if the value is a relative name. 4057 MKDIR_P="$ac_install_sh -d" 4058 fi 4059 fi 4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4061 $as_echo "$MKDIR_P" >&6; } 4062 4063 for ac_prog in gawk mawk nawk awk 4064 do 4065 # Extract the first word of "$ac_prog", so it can be a program name with args. 4066 set dummy $ac_prog; ac_word=$2 4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4068 $as_echo_n "checking for $ac_word... " >&6; } 4069 if ${ac_cv_prog_AWK+:} false; then : 4070 $as_echo_n "(cached) " >&6 4071 else 4072 if test -n "$AWK"; then 4073 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4074 else 4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4076 for as_dir in $PATH 4077 do 4078 IFS=$as_save_IFS 4079 test -z "$as_dir" && as_dir=. 4080 for ac_exec_ext in '' $ac_executable_extensions; do 4081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4082 ac_cv_prog_AWK="$ac_prog" 4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4084 break 2 4085 fi 4086 done 4087 done 4088 IFS=$as_save_IFS 4089 4090 fi 4091 fi 4092 AWK=$ac_cv_prog_AWK 4093 if test -n "$AWK"; then 4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4095 $as_echo "$AWK" >&6; } 4096 else 4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4098 $as_echo "no" >&6; } 4099 fi 4100 4101 4102 test -n "$AWK" && break 4103 done 4104 4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4106 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4107 set x ${MAKE-make} 4108 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4109 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4110 $as_echo_n "(cached) " >&6 4111 else 4112 cat >conftest.make <<\_ACEOF 4113 SHELL = /bin/sh 4114 all: 4115 @echo '@@@%%%=$(MAKE)=@@@%%%' 4116 _ACEOF 4117 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4118 case `${MAKE-make} -f conftest.make 2>/dev/null` in 4119 *@@@%%%=?*=@@@%%%*) 4120 eval ac_cv_prog_make_${ac_make}_set=yes;; 4121 *) 4122 eval ac_cv_prog_make_${ac_make}_set=no;; 4123 esac 4124 rm -f conftest.make 4125 fi 4126 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4128 $as_echo "yes" >&6; } 4129 SET_MAKE= 4130 else 4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4132 $as_echo "no" >&6; } 4133 SET_MAKE="MAKE=${MAKE-make}" 4134 fi 4135 4136 rm -rf .tst 2>/dev/null 4137 mkdir .tst 2>/dev/null 4138 if test -d .tst; then 4139 am__leading_dot=. 4140 else 4141 am__leading_dot=_ 4142 fi 4143 rmdir .tst 2>/dev/null 4144 4145 # Check whether --enable-silent-rules was given. 4146 if test "${enable_silent_rules+set}" = set; then : 4147 enableval=$enable_silent_rules; 4148 fi 4149 4150 case $enable_silent_rules in # ((( 4151 yes) AM_DEFAULT_VERBOSITY=0;; 4152 no) AM_DEFAULT_VERBOSITY=1;; 4153 *) AM_DEFAULT_VERBOSITY=1;; 4154 esac 4155 am_make=${MAKE-make} 4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4157 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4158 if ${am_cv_make_support_nested_variables+:} false; then : 4159 $as_echo_n "(cached) " >&6 4160 else 4161 if $as_echo 'TRUE=$(BAR$(V)) 4162 BAR0=false 4163 BAR1=true 4164 V=1 4165 am__doit: 4166 @$(TRUE) 4167 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4168 am_cv_make_support_nested_variables=yes 4169 else 4170 am_cv_make_support_nested_variables=no 4171 fi 4172 fi 4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4174 $as_echo "$am_cv_make_support_nested_variables" >&6; } 4175 if test $am_cv_make_support_nested_variables = yes; then 4176 AM_V='$(V)' 4177 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4178 else 4179 AM_V=$AM_DEFAULT_VERBOSITY 4180 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4181 fi 4182 AM_BACKSLASH='\' 4183 4184 if test "`cd $srcdir && pwd`" != "`pwd`"; then 4185 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4186 # is not polluted with repeated "-I." 4187 am__isrc=' -I$(srcdir)' 4188 # test to see if srcdir already configured 4189 if test -f $srcdir/config.status; then 4190 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4191 fi 4192 fi 4193 4194 # test whether we have cygpath 4195 if test -z "$CYGPATH_W"; then 4196 if (cygpath --version) >/dev/null 2>/dev/null; then 4197 CYGPATH_W='cygpath -w' 4198 else 4199 CYGPATH_W=echo 4200 fi 4201 fi 4202 4203 4204 # Define the identity of the package. 4205 PACKAGE='ImageMagick' 4206 VERSION='7.0.2-5' 4207 4208 4209 cat >>confdefs.h <<_ACEOF 4210 #define PACKAGE "$PACKAGE" 4211 _ACEOF 4212 4213 4214 cat >>confdefs.h <<_ACEOF 4215 #define VERSION "$VERSION" 4216 _ACEOF 4217 4218 # Some tools Automake needs. 4219 4220 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4221 4222 4223 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4224 4225 4226 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4227 4228 4229 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4230 4231 4232 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4233 4234 # For better backward compatibility. To be removed once Automake 1.9.x 4235 # dies out for good. For more background, see: 4236 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4237 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4238 mkdir_p='$(MKDIR_P)' 4239 4240 # We need awk for the "check" target (and possibly the TAP driver). The 4241 # system "awk" is bad on some platforms. 4242 # Always define AMTAR for backward compatibility. Yes, it's still used 4243 # in the wild :-( We should find a proper way to deprecate it ... 4244 AMTAR='$${TAR-tar}' 4245 4246 4247 # We'll loop over all known methods to create a tar archive until one works. 4248 _am_tools='gnutar plaintar pax cpio none' 4249 4250 # The POSIX 1988 'ustar' format is defined with fixed-size fields. 4251 # There is notably a 21 bits limit for the UID and the GID. In fact, 4252 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 4253 # and bug#13588). 4254 am_max_uid=2097151 # 2^21 - 1 4255 am_max_gid=$am_max_uid 4256 # The $UID and $GID variables are not portable, so we need to resort 4257 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 4258 # below are definitely unexpected, so allow the users to see them 4259 # (that is, avoid stderr redirection). 4260 am_uid=`id -u || echo unknown` 4261 am_gid=`id -g || echo unknown` 4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 4263 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 4264 if test $am_uid -le $am_max_uid; then 4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4266 $as_echo "yes" >&6; } 4267 else 4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4269 $as_echo "no" >&6; } 4270 _am_tools=none 4271 fi 4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 4273 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 4274 if test $am_gid -le $am_max_gid; then 4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4276 $as_echo "yes" >&6; } 4277 else 4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4279 $as_echo "no" >&6; } 4280 _am_tools=none 4281 fi 4282 4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 4284 $as_echo_n "checking how to create a ustar tar archive... " >&6; } 4285 4286 # Go ahead even if we have the value already cached. We do so because we 4287 # need to set the values for the 'am__tar' and 'am__untar' variables. 4288 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 4289 4290 for _am_tool in $_am_tools; do 4291 case $_am_tool in 4292 gnutar) 4293 for _am_tar in tar gnutar gtar; do 4294 { echo "$as_me:$LINENO: $_am_tar --version" >&5 4295 ($_am_tar --version) >&5 2>&5 4296 ac_status=$? 4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4298 (exit $ac_status); } && break 4299 done 4300 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 4301 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 4302 am__untar="$_am_tar -xf -" 4303 ;; 4304 plaintar) 4305 # Must skip GNU tar: if it does not support --format= it doesn't create 4306 # ustar tarball either. 4307 (tar --version) >/dev/null 2>&1 && continue 4308 am__tar='tar chf - "$$tardir"' 4309 am__tar_='tar chf - "$tardir"' 4310 am__untar='tar xf -' 4311 ;; 4312 pax) 4313 am__tar='pax -L -x ustar -w "$$tardir"' 4314 am__tar_='pax -L -x ustar -w "$tardir"' 4315 am__untar='pax -r' 4316 ;; 4317 cpio) 4318 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 4319 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 4320 am__untar='cpio -i -H ustar -d' 4321 ;; 4322 none) 4323 am__tar=false 4324 am__tar_=false 4325 am__untar=false 4326 ;; 4327 esac 4328 4329 # If the value was cached, stop now. We just wanted to have am__tar 4330 # and am__untar set. 4331 test -n "${am_cv_prog_tar_ustar}" && break 4332 4333 # tar/untar a dummy directory, and stop if the command works. 4334 rm -rf conftest.dir 4335 mkdir conftest.dir 4336 echo GrepMe > conftest.dir/file 4337 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 4338 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 4339 ac_status=$? 4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4341 (exit $ac_status); } 4342 rm -rf conftest.dir 4343 if test -s conftest.tar; then 4344 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 4345 ($am__untar <conftest.tar) >&5 2>&5 4346 ac_status=$? 4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4348 (exit $ac_status); } 4349 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 4350 (cat conftest.dir/file) >&5 2>&5 4351 ac_status=$? 4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4353 (exit $ac_status); } 4354 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 4355 fi 4356 done 4357 rm -rf conftest.dir 4358 4359 if ${am_cv_prog_tar_ustar+:} false; then : 4360 $as_echo_n "(cached) " >&6 4361 else 4362 am_cv_prog_tar_ustar=$_am_tool 4363 fi 4364 4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 4366 $as_echo "$am_cv_prog_tar_ustar" >&6; } 4367 4368 4369 4370 4371 4372 4373 # POSIX will say in a future version that running "rm -f" with no argument 4374 # is OK; and we want to be able to make that assumption in our Makefile 4375 # recipes. So use an aggressive probe to check that the usage we want is 4376 # actually supported "in the wild" to an acceptable degree. 4377 # See automake bug#10828. 4378 # To make any issue more visible, cause the running configure to be aborted 4379 # by default if the 'rm' program in use doesn't match our expectations; the 4380 # user can still override this though. 4381 if rm -f && rm -fr && rm -rf; then : OK; else 4382 cat >&2 <<'END' 4383 Oops! 4384 4385 Your 'rm' program seems unable to run without file operands specified 4386 on the command line, even when the '-f' option is present. This is contrary 4387 to the behaviour of most rm programs out there, and not conforming with 4388 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4389 4390 Please tell bug-automake@gnu.org about your system, including the value 4391 of your $PATH and any error possibly output before this message. This 4392 can help us improve future automake versions. 4393 4394 END 4395 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4396 echo 'Configuration will proceed anyway, since you have set the' >&2 4397 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4398 echo >&2 4399 else 4400 cat >&2 <<'END' 4401 Aborting the configuration process, to ensure you take notice of the issue. 4402 4403 You can download and install GNU coreutils to get an 'rm' implementation 4404 that behaves properly: <http://www.gnu.org/software/coreutils/>. 4405 4406 If you want to complete the configuration process using your problematic 4407 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4408 to "yes", and re-run configure. 4409 4410 END 4411 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4412 fi 4413 fi 4414 4415 # Check whether --enable-silent-rules was given. 4416 if test "${enable_silent_rules+set}" = set; then : 4417 enableval=$enable_silent_rules; 4418 fi 4419 4420 case $enable_silent_rules in # ((( 4421 yes) AM_DEFAULT_VERBOSITY=0;; 4422 no) AM_DEFAULT_VERBOSITY=1;; 4423 *) AM_DEFAULT_VERBOSITY=0;; 4424 esac 4425 am_make=${MAKE-make} 4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4427 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4428 if ${am_cv_make_support_nested_variables+:} false; then : 4429 $as_echo_n "(cached) " >&6 4430 else 4431 if $as_echo 'TRUE=$(BAR$(V)) 4432 BAR0=false 4433 BAR1=true 4434 V=1 4435 am__doit: 4436 @$(TRUE) 4437 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4438 am_cv_make_support_nested_variables=yes 4439 else 4440 am_cv_make_support_nested_variables=no 4441 fi 4442 fi 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4444 $as_echo "$am_cv_make_support_nested_variables" >&6; } 4445 if test $am_cv_make_support_nested_variables = yes; then 4446 AM_V='$(V)' 4447 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4448 else 4449 AM_V=$AM_DEFAULT_VERBOSITY 4450 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4451 fi 4452 AM_BACKSLASH='\' 4453 4454 4455 # 4456 # Save initial user-tunable values 4457 # 4458 USER_LIBS=$LIBS 4459 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do 4460 eval isset=\${$var+set} 4461 if test "$isset" = 'set'; then 4462 eval val=$`echo $var` 4463 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' " 4464 fi 4465 done 4466 4467 4468 CONFIGURE_ARGS="$0 ${ac_configure_args}" 4469 4470 4471 # Check whether --enable-reproducible-build was given. 4472 if test "${enable_reproducible_build+set}" = set; then : 4473 enableval=$enable_reproducible_build; enable_reproducible_build=$enableval 4474 else 4475 enable_reproducible_build='no' 4476 fi 4477 4478 4479 # Source file containing package/library versioning information. 4480 . ${srcdir}/version.sh 4481 4482 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}" 4483 4484 MAGICK_TARGET_CPU=$host_cpu 4485 4486 4487 cat >>confdefs.h <<_ACEOF 4488 #define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU 4489 _ACEOF 4490 4491 4492 MAGICK_TARGET_VENDOR=$host_vendor 4493 4494 4495 cat >>confdefs.h <<_ACEOF 4496 #define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR 4497 _ACEOF 4498 4499 4500 MAGICK_TARGET_OS=$host_os 4501 4502 4503 cat >>confdefs.h <<_ACEOF 4504 #define MAGICK_TARGET_OS $MAGICK_TARGET_OS 4505 _ACEOF 4506 4507 4508 4509 # Substitute versioning 4510 MAGICK_MAJOR_VERSION=7 4511 4512 MAGICK_MINOR_VERSION=0 4513 4514 MAGICK_MICRO_VERSION=2 4515 4516 MAGICK_PATCHLEVEL_VERSION=5 4517 4518 MAGICK_VERSION=7.0.2-5 4519 4520 MAGICK_GIT_REVISION=18594:4c16bb8:20160711 4521 4522 4523 # Substitute library versioning 4524 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE` 4525 4526 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE 4527 4528 4529 MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE` 4530 4531 MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE 4532 4533 4534 if test X$enable_reproducible_build = Xyes; then : 4535 PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_REPRODUCIBLE 4536 elif PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_RAW; then : 4537 4538 fi 4539 4540 4541 # Ensure that make can run correctly 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4543 $as_echo_n "checking whether build environment is sane... " >&6; } 4544 # Reject unsafe characters in $srcdir or the absolute working directory 4545 # name. Accept space and tab only in the latter. 4546 am_lf=' 4547 ' 4548 case `pwd` in 4549 *[\\\"\#\$\&\'\`$am_lf]*) 4550 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4551 esac 4552 case $srcdir in 4553 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4554 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4555 esac 4556 4557 # Do 'set' in a subshell so we don't clobber the current shell's 4558 # arguments. Must try -L first in case configure is actually a 4559 # symlink; some systems play weird games with the mod time of symlinks 4560 # (eg FreeBSD returns the mod time of the symlink's containing 4561 # directory). 4562 if ( 4563 am_has_slept=no 4564 for am_try in 1 2; do 4565 echo "timestamp, slept: $am_has_slept" > conftest.file 4566 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4567 if test "$*" = "X"; then 4568 # -L didn't work. 4569 set X `ls -t "$srcdir/configure" conftest.file` 4570 fi 4571 if test "$*" != "X $srcdir/configure conftest.file" \ 4572 && test "$*" != "X conftest.file $srcdir/configure"; then 4573 4574 # If neither matched, then we have a broken ls. This can happen 4575 # if, for instance, CONFIG_SHELL is bash and it inherits a 4576 # broken ls alias from the environment. This has actually 4577 # happened. Such a system could not be considered "sane". 4578 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4579 alias in your environment" "$LINENO" 5 4580 fi 4581 if test "$2" = conftest.file || test $am_try -eq 2; then 4582 break 4583 fi 4584 # Just in case. 4585 sleep 1 4586 am_has_slept=yes 4587 done 4588 test "$2" = conftest.file 4589 ) 4590 then 4591 # Ok. 4592 : 4593 else 4594 as_fn_error $? "newly created file is older than distributed files! 4595 Check your system clock" "$LINENO" 5 4596 fi 4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4598 $as_echo "yes" >&6; } 4599 # If we didn't sleep, we still need to ensure time stamps of config.status and 4600 # generated files are strictly newer. 4601 am_sleep_pid= 4602 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4603 ( sleep 1 ) & 4604 am_sleep_pid=$! 4605 fi 4606 4607 rm -f conftest.file 4608 4609 4610 # versioning of library 4611 MAGICK_LIB_VERSION="0x" 4612 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then 4613 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 4614 fi 4615 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT} 4616 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then 4617 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 4618 fi 4619 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE} 4620 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then 4621 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 4622 fi 4623 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION} 4624 4625 4626 # Definition used to define MagickLibVersionText in version.h 4627 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}" 4628 4629 4630 # Definition used to define MagickLibVersionNumber in version.h 4631 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}" 4632 4633 4634 MAGICKPP_LIB_VERSION="0x" 4635 if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then 4636 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0 4637 fi 4638 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT} 4639 if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then 4640 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0 4641 fi 4642 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE} 4643 if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then 4644 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0 4645 fi 4646 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION} 4647 4648 4649 # Definition used to define MagickLibVersionText in version.h 4650 MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}" 4651 4652 4653 # Definition used to define MagickLibVersionNumber in version.h 4654 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}" 4655 4656 4657 4658 4659 # Regenerate config.status if ChangeLog or version.sh is updated. 4660 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh' 4661 4662 4663 PERLMAINCC=$CC 4664 4665 MAGICK_CFLAGS='' 4666 MAGICK_CPPFLAGS=$CPPFLAGS_USER 4667 MAGICK_PCFLAGS=$CPPFLAGS_USER 4668 MAGICK_LDFLAGS='' 4669 MAGICK_LIBS='' 4670 MAGICK_FEATURES='' 4671 4672 # 4673 # Evaluate shell variable equivalents to Makefile directory variables 4674 # 4675 if test "x$prefix" = xNONE; then 4676 prefix=$ac_default_prefix 4677 fi 4678 # Let make expand exec_prefix. 4679 if test "x$exec_prefix" = xNONE; then 4680 exec_prefix='${prefix}' 4681 fi 4682 4683 # 4684 eval "eval PREFIX_DIR=${prefix}" 4685 4686 eval "eval EXEC_PREFIX_DIR=${exec_prefix}" 4687 4688 eval "eval BIN_DIR=$bindir" 4689 4690 eval "eval SBIN_DIR=$sbindir" 4691 4692 eval "eval LIBEXEC_DIR=$libexecdir" 4693 4694 eval "eval DATA_DIR=$datadir" 4695 4696 eval "eval DOC_DIR=$datadir/doc" 4697 4698 eval "eval SYSCONF_DIR=$sysconfdir" 4699 4700 eval "eval SHAREDSTATE_DIR=$sharedstatedir" 4701 4702 eval "eval LOCALSTATE_DIR=$localstatedir" 4703 4704 eval "eval LIB_DIR=$libdir" 4705 4706 eval "eval INCLUDE_DIR=$includedir" 4707 4708 eval "eval PERSISTINCLUDE_DIR=$oldincludedir" 4709 4710 eval "eval INFO_DIR=$infodir" 4711 4712 eval "eval MAN_DIR=$mandir" 4713 4714 4715 # Get full paths to source and build directories 4716 srcdirfull="`cd $srcdir && pwd`" 4717 builddir="`pwd`" 4718 4719 # 4720 # Compute variables useful for running uninstalled software. 4721 # 4722 MAGICK_CODER_MODULE_PATH="${builddir}/coders" 4723 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config" 4724 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config" 4725 MAGICK_FILTER_MODULE_PATH="${builddir}/filters" 4726 DIRSEP=':' 4727 case "${build_os}" in 4728 mingw* ) 4729 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0` 4730 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0` 4731 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0` 4732 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0` 4733 DIRSEP=';' 4734 ;; 4735 esac 4736 case "${host_os}" in 4737 mingw* ) 4738 DIRSEP=';' 4739 ;; 4740 esac 4741 4742 4743 4744 4745 4746 4747 4748 # 4749 # Enable OS features. 4750 # 4751 DEPDIR="${am__leading_dot}deps" 4752 4753 ac_config_commands="$ac_config_commands depfiles" 4754 4755 4756 am_make=${MAKE-make} 4757 cat > confinc << 'END' 4758 am__doit: 4759 @echo this is the am__doit target 4760 .PHONY: am__doit 4761 END 4762 # If we don't find an include directive, just comment out the code. 4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4764 $as_echo_n "checking for style of include used by $am_make... " >&6; } 4765 am__include="#" 4766 am__quote= 4767 _am_result=none 4768 # First try GNU make style include. 4769 echo "include confinc" > confmf 4770 # Ignore all kinds of additional output from 'make'. 4771 case `$am_make -s -f confmf 2> /dev/null` in #( 4772 *the\ am__doit\ target*) 4773 am__include=include 4774 am__quote= 4775 _am_result=GNU 4776 ;; 4777 esac 4778 # Now try BSD make style include. 4779 if test "$am__include" = "#"; then 4780 echo '.include "confinc"' > confmf 4781 case `$am_make -s -f confmf 2> /dev/null` in #( 4782 *the\ am__doit\ target*) 4783 am__include=.include 4784 am__quote="\"" 4785 _am_result=BSD 4786 ;; 4787 esac 4788 fi 4789 4790 4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4792 $as_echo "$_am_result" >&6; } 4793 rm -f confinc confmf 4794 4795 # Check whether --enable-dependency-tracking was given. 4796 if test "${enable_dependency_tracking+set}" = set; then : 4797 enableval=$enable_dependency_tracking; 4798 fi 4799 4800 if test "x$enable_dependency_tracking" != xno; then 4801 am_depcomp="$ac_aux_dir/depcomp" 4802 AMDEPBACKSLASH='\' 4803 am__nodep='_no' 4804 fi 4805 if test "x$enable_dependency_tracking" != xno; then 4806 AMDEP_TRUE= 4807 AMDEP_FALSE='#' 4808 else 4809 AMDEP_TRUE='#' 4810 AMDEP_FALSE= 4811 fi 4812 4813 4814 ac_ext=c 4815 ac_cpp='$CPP $CPPFLAGS' 4816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4818 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4819 if test -n "$ac_tool_prefix"; then 4820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4821 set dummy ${ac_tool_prefix}gcc; ac_word=$2 4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4823 $as_echo_n "checking for $ac_word... " >&6; } 4824 if ${ac_cv_prog_CC+:} false; then : 4825 $as_echo_n "(cached) " >&6 4826 else 4827 if test -n "$CC"; then 4828 ac_cv_prog_CC="$CC" # Let the user override the test. 4829 else 4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4831 for as_dir in $PATH 4832 do 4833 IFS=$as_save_IFS 4834 test -z "$as_dir" && as_dir=. 4835 for ac_exec_ext in '' $ac_executable_extensions; do 4836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4837 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4839 break 2 4840 fi 4841 done 4842 done 4843 IFS=$as_save_IFS 4844 4845 fi 4846 fi 4847 CC=$ac_cv_prog_CC 4848 if test -n "$CC"; then 4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4850 $as_echo "$CC" >&6; } 4851 else 4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4853 $as_echo "no" >&6; } 4854 fi 4855 4856 4857 fi 4858 if test -z "$ac_cv_prog_CC"; then 4859 ac_ct_CC=$CC 4860 # Extract the first word of "gcc", so it can be a program name with args. 4861 set dummy gcc; ac_word=$2 4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4863 $as_echo_n "checking for $ac_word... " >&6; } 4864 if ${ac_cv_prog_ac_ct_CC+:} false; then : 4865 $as_echo_n "(cached) " >&6 4866 else 4867 if test -n "$ac_ct_CC"; then 4868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4869 else 4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4871 for as_dir in $PATH 4872 do 4873 IFS=$as_save_IFS 4874 test -z "$as_dir" && as_dir=. 4875 for ac_exec_ext in '' $ac_executable_extensions; do 4876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4877 ac_cv_prog_ac_ct_CC="gcc" 4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4879 break 2 4880 fi 4881 done 4882 done 4883 IFS=$as_save_IFS 4884 4885 fi 4886 fi 4887 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4888 if test -n "$ac_ct_CC"; then 4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4890 $as_echo "$ac_ct_CC" >&6; } 4891 else 4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4893 $as_echo "no" >&6; } 4894 fi 4895 4896 if test "x$ac_ct_CC" = x; then 4897 CC="" 4898 else 4899 case $cross_compiling:$ac_tool_warned in 4900 yes:) 4901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4903 ac_tool_warned=yes ;; 4904 esac 4905 CC=$ac_ct_CC 4906 fi 4907 else 4908 CC="$ac_cv_prog_CC" 4909 fi 4910 4911 if test -z "$CC"; then 4912 if test -n "$ac_tool_prefix"; then 4913 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4914 set dummy ${ac_tool_prefix}cc; ac_word=$2 4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4916 $as_echo_n "checking for $ac_word... " >&6; } 4917 if ${ac_cv_prog_CC+:} false; then : 4918 $as_echo_n "(cached) " >&6 4919 else 4920 if test -n "$CC"; then 4921 ac_cv_prog_CC="$CC" # Let the user override the test. 4922 else 4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4924 for as_dir in $PATH 4925 do 4926 IFS=$as_save_IFS 4927 test -z "$as_dir" && as_dir=. 4928 for ac_exec_ext in '' $ac_executable_extensions; do 4929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4930 ac_cv_prog_CC="${ac_tool_prefix}cc" 4931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4932 break 2 4933 fi 4934 done 4935 done 4936 IFS=$as_save_IFS 4937 4938 fi 4939 fi 4940 CC=$ac_cv_prog_CC 4941 if test -n "$CC"; then 4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4943 $as_echo "$CC" >&6; } 4944 else 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4946 $as_echo "no" >&6; } 4947 fi 4948 4949 4950 fi 4951 fi 4952 if test -z "$CC"; then 4953 # Extract the first word of "cc", so it can be a program name with args. 4954 set dummy cc; ac_word=$2 4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4956 $as_echo_n "checking for $ac_word... " >&6; } 4957 if ${ac_cv_prog_CC+:} false; then : 4958 $as_echo_n "(cached) " >&6 4959 else 4960 if test -n "$CC"; then 4961 ac_cv_prog_CC="$CC" # Let the user override the test. 4962 else 4963 ac_prog_rejected=no 4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4965 for as_dir in $PATH 4966 do 4967 IFS=$as_save_IFS 4968 test -z "$as_dir" && as_dir=. 4969 for ac_exec_ext in '' $ac_executable_extensions; do 4970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4971 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4972 ac_prog_rejected=yes 4973 continue 4974 fi 4975 ac_cv_prog_CC="cc" 4976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4977 break 2 4978 fi 4979 done 4980 done 4981 IFS=$as_save_IFS 4982 4983 if test $ac_prog_rejected = yes; then 4984 # We found a bogon in the path, so make sure we never use it. 4985 set dummy $ac_cv_prog_CC 4986 shift 4987 if test $# != 0; then 4988 # We chose a different compiler from the bogus one. 4989 # However, it has the same basename, so the bogon will be chosen 4990 # first if we set CC to just the basename; use the full file name. 4991 shift 4992 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4993 fi 4994 fi 4995 fi 4996 fi 4997 CC=$ac_cv_prog_CC 4998 if test -n "$CC"; then 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5000 $as_echo "$CC" >&6; } 5001 else 5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5003 $as_echo "no" >&6; } 5004 fi 5005 5006 5007 fi 5008 if test -z "$CC"; then 5009 if test -n "$ac_tool_prefix"; then 5010 for ac_prog in cl.exe 5011 do 5012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5015 $as_echo_n "checking for $ac_word... " >&6; } 5016 if ${ac_cv_prog_CC+:} false; then : 5017 $as_echo_n "(cached) " >&6 5018 else 5019 if test -n "$CC"; then 5020 ac_cv_prog_CC="$CC" # Let the user override the test. 5021 else 5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5023 for as_dir in $PATH 5024 do 5025 IFS=$as_save_IFS 5026 test -z "$as_dir" && as_dir=. 5027 for ac_exec_ext in '' $ac_executable_extensions; do 5028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5029 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5031 break 2 5032 fi 5033 done 5034 done 5035 IFS=$as_save_IFS 5036 5037 fi 5038 fi 5039 CC=$ac_cv_prog_CC 5040 if test -n "$CC"; then 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5042 $as_echo "$CC" >&6; } 5043 else 5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5045 $as_echo "no" >&6; } 5046 fi 5047 5048 5049 test -n "$CC" && break 5050 done 5051 fi 5052 if test -z "$CC"; then 5053 ac_ct_CC=$CC 5054 for ac_prog in cl.exe 5055 do 5056 # Extract the first word of "$ac_prog", so it can be a program name with args. 5057 set dummy $ac_prog; ac_word=$2 5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5059 $as_echo_n "checking for $ac_word... " >&6; } 5060 if ${ac_cv_prog_ac_ct_CC+:} false; then : 5061 $as_echo_n "(cached) " >&6 5062 else 5063 if test -n "$ac_ct_CC"; then 5064 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5065 else 5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5067 for as_dir in $PATH 5068 do 5069 IFS=$as_save_IFS 5070 test -z "$as_dir" && as_dir=. 5071 for ac_exec_ext in '' $ac_executable_extensions; do 5072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5073 ac_cv_prog_ac_ct_CC="$ac_prog" 5074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5075 break 2 5076 fi 5077 done 5078 done 5079 IFS=$as_save_IFS 5080 5081 fi 5082 fi 5083 ac_ct_CC=$ac_cv_prog_ac_ct_CC 5084 if test -n "$ac_ct_CC"; then 5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5086 $as_echo "$ac_ct_CC" >&6; } 5087 else 5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5089 $as_echo "no" >&6; } 5090 fi 5091 5092 5093 test -n "$ac_ct_CC" && break 5094 done 5095 5096 if test "x$ac_ct_CC" = x; then 5097 CC="" 5098 else 5099 case $cross_compiling:$ac_tool_warned in 5100 yes:) 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5103 ac_tool_warned=yes ;; 5104 esac 5105 CC=$ac_ct_CC 5106 fi 5107 fi 5108 5109 fi 5110 5111 5112 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5114 as_fn_error $? "no acceptable C compiler found in \$PATH 5115 See \`config.log' for more details" "$LINENO" 5; } 5116 5117 # Provide some information about the compiler. 5118 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5119 set X $ac_compile 5120 ac_compiler=$2 5121 for ac_option in --version -v -V -qversion; do 5122 { { ac_try="$ac_compiler $ac_option >&5" 5123 case "(($ac_try" in 5124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5125 *) ac_try_echo=$ac_try;; 5126 esac 5127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5128 $as_echo "$ac_try_echo"; } >&5 5129 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5130 ac_status=$? 5131 if test -s conftest.err; then 5132 sed '10a\ 5133 ... rest of stderr output deleted ... 5134 10q' conftest.err >conftest.er1 5135 cat conftest.er1 >&5 5136 fi 5137 rm -f conftest.er1 conftest.err 5138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5139 test $ac_status = 0; } 5140 done 5141 5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5143 /* end confdefs.h. */ 5144 5145 int 5146 main () 5147 { 5148 5149 ; 5150 return 0; 5151 } 5152 _ACEOF 5153 ac_clean_files_save=$ac_clean_files 5154 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 5155 # Try to create an executable without -o first, disregard a.out. 5156 # It will help us diagnose broken compilers, and finding out an intuition 5157 # of exeext. 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 5159 $as_echo_n "checking whether the C compiler works... " >&6; } 5160 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 5161 5162 # The possible output files: 5163 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 5164 5165 ac_rmfiles= 5166 for ac_file in $ac_files 5167 do 5168 case $ac_file in 5169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5170 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 5171 esac 5172 done 5173 rm -f $ac_rmfiles 5174 5175 if { { ac_try="$ac_link_default" 5176 case "(($ac_try" in 5177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5178 *) ac_try_echo=$ac_try;; 5179 esac 5180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5181 $as_echo "$ac_try_echo"; } >&5 5182 (eval "$ac_link_default") 2>&5 5183 ac_status=$? 5184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5185 test $ac_status = 0; }; then : 5186 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 5187 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 5188 # in a Makefile. We should not override ac_cv_exeext if it was cached, 5189 # so that the user can short-circuit this test for compilers unknown to 5190 # Autoconf. 5191 for ac_file in $ac_files '' 5192 do 5193 test -f "$ac_file" || continue 5194 case $ac_file in 5195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 5196 ;; 5197 [ab].out ) 5198 # We found the default executable, but exeext='' is most 5199 # certainly right. 5200 break;; 5201 *.* ) 5202 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 5203 then :; else 5204 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5205 fi 5206 # We set ac_cv_exeext here because the later test for it is not 5207 # safe: cross compilers may not add the suffix if given an `-o' 5208 # argument, so we may need to know it at that point already. 5209 # Even if this section looks crufty: it has the advantage of 5210 # actually working. 5211 break;; 5212 * ) 5213 break;; 5214 esac 5215 done 5216 test "$ac_cv_exeext" = no && ac_cv_exeext= 5217 5218 else 5219 ac_file='' 5220 fi 5221 if test -z "$ac_file"; then : 5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5223 $as_echo "no" >&6; } 5224 $as_echo "$as_me: failed program was:" >&5 5225 sed 's/^/| /' conftest.$ac_ext >&5 5226 5227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5229 as_fn_error 77 "C compiler cannot create executables 5230 See \`config.log' for more details" "$LINENO" 5; } 5231 else 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5233 $as_echo "yes" >&6; } 5234 fi 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5236 $as_echo_n "checking for C compiler default output file name... " >&6; } 5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5238 $as_echo "$ac_file" >&6; } 5239 ac_exeext=$ac_cv_exeext 5240 5241 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 5242 ac_clean_files=$ac_clean_files_save 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 5244 $as_echo_n "checking for suffix of executables... " >&6; } 5245 if { { ac_try="$ac_link" 5246 case "(($ac_try" in 5247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5248 *) ac_try_echo=$ac_try;; 5249 esac 5250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5251 $as_echo "$ac_try_echo"; } >&5 5252 (eval "$ac_link") 2>&5 5253 ac_status=$? 5254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5255 test $ac_status = 0; }; then : 5256 # If both `conftest.exe' and `conftest' are `present' (well, observable) 5257 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 5258 # work properly (i.e., refer to `conftest.exe'), while it won't with 5259 # `rm'. 5260 for ac_file in conftest.exe conftest conftest.*; do 5261 test -f "$ac_file" || continue 5262 case $ac_file in 5263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5264 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5265 break;; 5266 * ) break;; 5267 esac 5268 done 5269 else 5270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5272 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 5273 See \`config.log' for more details" "$LINENO" 5; } 5274 fi 5275 rm -f conftest conftest$ac_cv_exeext 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 5277 $as_echo "$ac_cv_exeext" >&6; } 5278 5279 rm -f conftest.$ac_ext 5280 EXEEXT=$ac_cv_exeext 5281 ac_exeext=$EXEEXT 5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5283 /* end confdefs.h. */ 5284 #include <stdio.h> 5285 int 5286 main () 5287 { 5288 FILE *f = fopen ("conftest.out", "w"); 5289 return ferror (f) || fclose (f) != 0; 5290 5291 ; 5292 return 0; 5293 } 5294 _ACEOF 5295 ac_clean_files="$ac_clean_files conftest.out" 5296 # Check that the compiler produces executables we can run. If not, either 5297 # the compiler is broken, or we cross compile. 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 5299 $as_echo_n "checking whether we are cross compiling... " >&6; } 5300 if test "$cross_compiling" != yes; then 5301 { { ac_try="$ac_link" 5302 case "(($ac_try" in 5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5304 *) ac_try_echo=$ac_try;; 5305 esac 5306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5307 $as_echo "$ac_try_echo"; } >&5 5308 (eval "$ac_link") 2>&5 5309 ac_status=$? 5310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5311 test $ac_status = 0; } 5312 if { ac_try='./conftest$ac_cv_exeext' 5313 { { case "(($ac_try" in 5314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5315 *) ac_try_echo=$ac_try;; 5316 esac 5317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5318 $as_echo "$ac_try_echo"; } >&5 5319 (eval "$ac_try") 2>&5 5320 ac_status=$? 5321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5322 test $ac_status = 0; }; }; then 5323 cross_compiling=no 5324 else 5325 if test "$cross_compiling" = maybe; then 5326 cross_compiling=yes 5327 else 5328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5330 as_fn_error $? "cannot run C compiled programs. 5331 If you meant to cross compile, use \`--host'. 5332 See \`config.log' for more details" "$LINENO" 5; } 5333 fi 5334 fi 5335 fi 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 5337 $as_echo "$cross_compiling" >&6; } 5338 5339 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 5340 ac_clean_files=$ac_clean_files_save 5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5342 $as_echo_n "checking for suffix of object files... " >&6; } 5343 if ${ac_cv_objext+:} false; then : 5344 $as_echo_n "(cached) " >&6 5345 else 5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5347 /* end confdefs.h. */ 5348 5349 int 5350 main () 5351 { 5352 5353 ; 5354 return 0; 5355 } 5356 _ACEOF 5357 rm -f conftest.o conftest.obj 5358 if { { ac_try="$ac_compile" 5359 case "(($ac_try" in 5360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5361 *) ac_try_echo=$ac_try;; 5362 esac 5363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5364 $as_echo "$ac_try_echo"; } >&5 5365 (eval "$ac_compile") 2>&5 5366 ac_status=$? 5367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5368 test $ac_status = 0; }; then : 5369 for ac_file in conftest.o conftest.obj conftest.*; do 5370 test -f "$ac_file" || continue; 5371 case $ac_file in 5372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5373 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5374 break;; 5375 esac 5376 done 5377 else 5378 $as_echo "$as_me: failed program was:" >&5 5379 sed 's/^/| /' conftest.$ac_ext >&5 5380 5381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5383 as_fn_error $? "cannot compute suffix of object files: cannot compile 5384 See \`config.log' for more details" "$LINENO" 5; } 5385 fi 5386 rm -f conftest.$ac_cv_objext conftest.$ac_ext 5387 fi 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5389 $as_echo "$ac_cv_objext" >&6; } 5390 OBJEXT=$ac_cv_objext 5391 ac_objext=$OBJEXT 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5393 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5394 if ${ac_cv_c_compiler_gnu+:} false; then : 5395 $as_echo_n "(cached) " >&6 5396 else 5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5398 /* end confdefs.h. */ 5399 5400 int 5401 main () 5402 { 5403 #ifndef __GNUC__ 5404 choke me 5405 #endif 5406 5407 ; 5408 return 0; 5409 } 5410 _ACEOF 5411 if ac_fn_c_try_compile "$LINENO"; then : 5412 ac_compiler_gnu=yes 5413 else 5414 ac_compiler_gnu=no 5415 fi 5416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5417 ac_cv_c_compiler_gnu=$ac_compiler_gnu 5418 5419 fi 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5421 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 5422 if test $ac_compiler_gnu = yes; then 5423 GCC=yes 5424 else 5425 GCC= 5426 fi 5427 ac_test_CFLAGS=${CFLAGS+set} 5428 ac_save_CFLAGS=$CFLAGS 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5430 $as_echo_n "checking whether $CC accepts -g... " >&6; } 5431 if ${ac_cv_prog_cc_g+:} false; then : 5432 $as_echo_n "(cached) " >&6 5433 else 5434 ac_save_c_werror_flag=$ac_c_werror_flag 5435 ac_c_werror_flag=yes 5436 ac_cv_prog_cc_g=no 5437 CFLAGS="-g" 5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5439 /* end confdefs.h. */ 5440 5441 int 5442 main () 5443 { 5444 5445 ; 5446 return 0; 5447 } 5448 _ACEOF 5449 if ac_fn_c_try_compile "$LINENO"; then : 5450 ac_cv_prog_cc_g=yes 5451 else 5452 CFLAGS="" 5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5454 /* end confdefs.h. */ 5455 5456 int 5457 main () 5458 { 5459 5460 ; 5461 return 0; 5462 } 5463 _ACEOF 5464 if ac_fn_c_try_compile "$LINENO"; then : 5465 5466 else 5467 ac_c_werror_flag=$ac_save_c_werror_flag 5468 CFLAGS="-g" 5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5470 /* end confdefs.h. */ 5471 5472 int 5473 main () 5474 { 5475 5476 ; 5477 return 0; 5478 } 5479 _ACEOF 5480 if ac_fn_c_try_compile "$LINENO"; then : 5481 ac_cv_prog_cc_g=yes 5482 fi 5483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5484 fi 5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5486 fi 5487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5488 ac_c_werror_flag=$ac_save_c_werror_flag 5489 fi 5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5491 $as_echo "$ac_cv_prog_cc_g" >&6; } 5492 if test "$ac_test_CFLAGS" = set; then 5493 CFLAGS=$ac_save_CFLAGS 5494 elif test $ac_cv_prog_cc_g = yes; then 5495 if test "$GCC" = yes; then 5496 CFLAGS="-g -O2" 5497 else 5498 CFLAGS="-g" 5499 fi 5500 else 5501 if test "$GCC" = yes; then 5502 CFLAGS="-O2" 5503 else 5504 CFLAGS= 5505 fi 5506 fi 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5508 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5509 if ${ac_cv_prog_cc_c89+:} false; then : 5510 $as_echo_n "(cached) " >&6 5511 else 5512 ac_cv_prog_cc_c89=no 5513 ac_save_CC=$CC 5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5515 /* end confdefs.h. */ 5516 #include <stdarg.h> 5517 #include <stdio.h> 5518 struct stat; 5519 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5520 struct buf { int x; }; 5521 FILE * (*rcsopen) (struct buf *, struct stat *, int); 5522 static char *e (p, i) 5523 char **p; 5524 int i; 5525 { 5526 return p[i]; 5527 } 5528 static char *f (char * (*g) (char **, int), char **p, ...) 5529 { 5530 char *s; 5531 va_list v; 5532 va_start (v,p); 5533 s = g (p, va_arg (v,int)); 5534 va_end (v); 5535 return s; 5536 } 5537 5538 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5539 function prototypes and stuff, but not '\xHH' hex character constants. 5540 These don't provoke an error unfortunately, instead are silently treated 5541 as 'x'. The following induces an error, until -std is added to get 5542 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5543 array size at least. It's necessary to write '\x00'==0 to get something 5544 that's true only with -std. */ 5545 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5546 5547 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5548 inside strings and character constants. */ 5549 #define FOO(x) 'x' 5550 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5551 5552 int test (int i, double x); 5553 struct s1 {int (*f) (int a);}; 5554 struct s2 {int (*f) (double a);}; 5555 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5556 int argc; 5557 char **argv; 5558 int 5559 main () 5560 { 5561 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5562 ; 5563 return 0; 5564 } 5565 _ACEOF 5566 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5567 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5568 do 5569 CC="$ac_save_CC $ac_arg" 5570 if ac_fn_c_try_compile "$LINENO"; then : 5571 ac_cv_prog_cc_c89=$ac_arg 5572 fi 5573 rm -f core conftest.err conftest.$ac_objext 5574 test "x$ac_cv_prog_cc_c89" != "xno" && break 5575 done 5576 rm -f conftest.$ac_ext 5577 CC=$ac_save_CC 5578 5579 fi 5580 # AC_CACHE_VAL 5581 case "x$ac_cv_prog_cc_c89" in 5582 x) 5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5584 $as_echo "none needed" >&6; } ;; 5585 xno) 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5587 $as_echo "unsupported" >&6; } ;; 5588 *) 5589 CC="$CC $ac_cv_prog_cc_c89" 5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5591 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5592 esac 5593 if test "x$ac_cv_prog_cc_c89" != xno; then : 5594 5595 fi 5596 5597 ac_ext=c 5598 ac_cpp='$CPP $CPPFLAGS' 5599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5601 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5602 5603 ac_ext=c 5604 ac_cpp='$CPP $CPPFLAGS' 5605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5607 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5609 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5610 if ${am_cv_prog_cc_c_o+:} false; then : 5611 $as_echo_n "(cached) " >&6 5612 else 5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5614 /* end confdefs.h. */ 5615 5616 int 5617 main () 5618 { 5619 5620 ; 5621 return 0; 5622 } 5623 _ACEOF 5624 # Make sure it works both with $CC and with simple cc. 5625 # Following AC_PROG_CC_C_O, we do the test twice because some 5626 # compilers refuse to overwrite an existing .o file with -o, 5627 # though they will create one. 5628 am_cv_prog_cc_c_o=yes 5629 for am_i in 1 2; do 5630 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5631 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5632 ac_status=$? 5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5634 (exit $ac_status); } \ 5635 && test -f conftest2.$ac_objext; then 5636 : OK 5637 else 5638 am_cv_prog_cc_c_o=no 5639 break 5640 fi 5641 done 5642 rm -f core conftest* 5643 unset am_i 5644 fi 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5646 $as_echo "$am_cv_prog_cc_c_o" >&6; } 5647 if test "$am_cv_prog_cc_c_o" != yes; then 5648 # Losing compiler, so override with the script. 5649 # FIXME: It is wrong to rewrite CC. 5650 # But if we don't then we get into trouble of one sort or another. 5651 # A longer-term fix would be to have automake use am__CC in this case, 5652 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5653 CC="$am_aux_dir/compile $CC" 5654 fi 5655 ac_ext=c 5656 ac_cpp='$CPP $CPPFLAGS' 5657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5659 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5660 5661 5662 depcc="$CC" am_compiler_list= 5663 5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5665 $as_echo_n "checking dependency style of $depcc... " >&6; } 5666 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5667 $as_echo_n "(cached) " >&6 5668 else 5669 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5670 # We make a subdir and do the tests there. Otherwise we can end up 5671 # making bogus files that we don't know about and never remove. For 5672 # instance it was reported that on HP-UX the gcc test will end up 5673 # making a dummy file named 'D' -- because '-MD' means "put the output 5674 # in D". 5675 rm -rf conftest.dir 5676 mkdir conftest.dir 5677 # Copy depcomp to subdir because otherwise we won't find it if we're 5678 # using a relative directory. 5679 cp "$am_depcomp" conftest.dir 5680 cd conftest.dir 5681 # We will build objects and dependencies in a subdirectory because 5682 # it helps to detect inapplicable dependency modes. For instance 5683 # both Tru64's cc and ICC support -MD to output dependencies as a 5684 # side effect of compilation, but ICC will put the dependencies in 5685 # the current directory while Tru64 will put them in the object 5686 # directory. 5687 mkdir sub 5688 5689 am_cv_CC_dependencies_compiler_type=none 5690 if test "$am_compiler_list" = ""; then 5691 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5692 fi 5693 am__universal=false 5694 case " $depcc " in #( 5695 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5696 esac 5697 5698 for depmode in $am_compiler_list; do 5699 # Setup a source with many dependencies, because some compilers 5700 # like to wrap large dependency lists on column 80 (with \), and 5701 # we should not choose a depcomp mode which is confused by this. 5702 # 5703 # We need to recreate these files for each test, as the compiler may 5704 # overwrite some of them when testing with obscure command lines. 5705 # This happens at least with the AIX C compiler. 5706 : > sub/conftest.c 5707 for i in 1 2 3 4 5 6; do 5708 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5709 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5710 # Solaris 10 /bin/sh. 5711 echo '/* dummy */' > sub/conftst$i.h 5712 done 5713 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5714 5715 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5716 # mode. It turns out that the SunPro C++ compiler does not properly 5717 # handle '-M -o', and we need to detect this. Also, some Intel 5718 # versions had trouble with output in subdirs. 5719 am__obj=sub/conftest.${OBJEXT-o} 5720 am__minus_obj="-o $am__obj" 5721 case $depmode in 5722 gcc) 5723 # This depmode causes a compiler race in universal mode. 5724 test "$am__universal" = false || continue 5725 ;; 5726 nosideeffect) 5727 # After this tag, mechanisms are not by side-effect, so they'll 5728 # only be used when explicitly requested. 5729 if test "x$enable_dependency_tracking" = xyes; then 5730 continue 5731 else 5732 break 5733 fi 5734 ;; 5735 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5736 # This compiler won't grok '-c -o', but also, the minuso test has 5737 # not run yet. These depmodes are late enough in the game, and 5738 # so weak that their functioning should not be impacted. 5739 am__obj=conftest.${OBJEXT-o} 5740 am__minus_obj= 5741 ;; 5742 none) break ;; 5743 esac 5744 if depmode=$depmode \ 5745 source=sub/conftest.c object=$am__obj \ 5746 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5747 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5748 >/dev/null 2>conftest.err && 5749 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5750 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5751 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5752 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5753 # icc doesn't choke on unknown options, it will just issue warnings 5754 # or remarks (even with -Werror). So we grep stderr for any message 5755 # that says an option was ignored or not supported. 5756 # When given -MP, icc 7.0 and 7.1 complain thusly: 5757 # icc: Command line warning: ignoring option '-M'; no argument required 5758 # The diagnosis changed in icc 8.0: 5759 # icc: Command line remark: option '-MP' not supported 5760 if (grep 'ignoring option' conftest.err || 5761 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5762 am_cv_CC_dependencies_compiler_type=$depmode 5763 break 5764 fi 5765 fi 5766 done 5767 5768 cd .. 5769 rm -rf conftest.dir 5770 else 5771 am_cv_CC_dependencies_compiler_type=none 5772 fi 5773 5774 fi 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5776 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5777 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5778 5779 if 5780 test "x$enable_dependency_tracking" != xno \ 5781 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5782 am__fastdepCC_TRUE= 5783 am__fastdepCC_FALSE='#' 5784 else 5785 am__fastdepCC_TRUE='#' 5786 am__fastdepCC_FALSE= 5787 fi 5788 5789 5790 5791 ac_ext=c 5792 ac_cpp='$CPP $CPPFLAGS' 5793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5795 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5797 $as_echo_n "checking how to run the C preprocessor... " >&6; } 5798 # On Suns, sometimes $CPP names a directory. 5799 if test -n "$CPP" && test -d "$CPP"; then 5800 CPP= 5801 fi 5802 if test -z "$CPP"; then 5803 if ${ac_cv_prog_CPP+:} false; then : 5804 $as_echo_n "(cached) " >&6 5805 else 5806 # Double quotes because CPP needs to be expanded 5807 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5808 do 5809 ac_preproc_ok=false 5810 for ac_c_preproc_warn_flag in '' yes 5811 do 5812 # Use a header file that comes with gcc, so configuring glibc 5813 # with a fresh cross-compiler works. 5814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5815 # <limits.h> exists even on freestanding compilers. 5816 # On the NeXT, cc -E runs the code through the compiler's parser, 5817 # not just through cpp. "Syntax error" is here to catch this case. 5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5819 /* end confdefs.h. */ 5820 #ifdef __STDC__ 5821 # include <limits.h> 5822 #else 5823 # include <assert.h> 5824 #endif 5825 Syntax error 5826 _ACEOF 5827 if ac_fn_c_try_cpp "$LINENO"; then : 5828 5829 else 5830 # Broken: fails on valid input. 5831 continue 5832 fi 5833 rm -f conftest.err conftest.i conftest.$ac_ext 5834 5835 # OK, works on sane cases. Now check whether nonexistent headers 5836 # can be detected and how. 5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5838 /* end confdefs.h. */ 5839 #include <ac_nonexistent.h> 5840 _ACEOF 5841 if ac_fn_c_try_cpp "$LINENO"; then : 5842 # Broken: success on invalid input. 5843 continue 5844 else 5845 # Passes both tests. 5846 ac_preproc_ok=: 5847 break 5848 fi 5849 rm -f conftest.err conftest.i conftest.$ac_ext 5850 5851 done 5852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5853 rm -f conftest.i conftest.err conftest.$ac_ext 5854 if $ac_preproc_ok; then : 5855 break 5856 fi 5857 5858 done 5859 ac_cv_prog_CPP=$CPP 5860 5861 fi 5862 CPP=$ac_cv_prog_CPP 5863 else 5864 ac_cv_prog_CPP=$CPP 5865 fi 5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5867 $as_echo "$CPP" >&6; } 5868 ac_preproc_ok=false 5869 for ac_c_preproc_warn_flag in '' yes 5870 do 5871 # Use a header file that comes with gcc, so configuring glibc 5872 # with a fresh cross-compiler works. 5873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5874 # <limits.h> exists even on freestanding compilers. 5875 # On the NeXT, cc -E runs the code through the compiler's parser, 5876 # not just through cpp. "Syntax error" is here to catch this case. 5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5878 /* end confdefs.h. */ 5879 #ifdef __STDC__ 5880 # include <limits.h> 5881 #else 5882 # include <assert.h> 5883 #endif 5884 Syntax error 5885 _ACEOF 5886 if ac_fn_c_try_cpp "$LINENO"; then : 5887 5888 else 5889 # Broken: fails on valid input. 5890 continue 5891 fi 5892 rm -f conftest.err conftest.i conftest.$ac_ext 5893 5894 # OK, works on sane cases. Now check whether nonexistent headers 5895 # can be detected and how. 5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5897 /* end confdefs.h. */ 5898 #include <ac_nonexistent.h> 5899 _ACEOF 5900 if ac_fn_c_try_cpp "$LINENO"; then : 5901 # Broken: success on invalid input. 5902 continue 5903 else 5904 # Passes both tests. 5905 ac_preproc_ok=: 5906 break 5907 fi 5908 rm -f conftest.err conftest.i conftest.$ac_ext 5909 5910 done 5911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5912 rm -f conftest.i conftest.err conftest.$ac_ext 5913 if $ac_preproc_ok; then : 5914 5915 else 5916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5918 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5919 See \`config.log' for more details" "$LINENO" 5; } 5920 fi 5921 5922 ac_ext=c 5923 ac_cpp='$CPP $CPPFLAGS' 5924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5926 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5927 5928 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5930 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5931 if ${ac_cv_path_GREP+:} false; then : 5932 $as_echo_n "(cached) " >&6 5933 else 5934 if test -z "$GREP"; then 5935 ac_path_GREP_found=false 5936 # Loop through the user's path and test for each of PROGNAME-LIST 5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5939 do 5940 IFS=$as_save_IFS 5941 test -z "$as_dir" && as_dir=. 5942 for ac_prog in grep ggrep; do 5943 for ac_exec_ext in '' $ac_executable_extensions; do 5944 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5945 as_fn_executable_p "$ac_path_GREP" || continue 5946 # Check for GNU ac_path_GREP and select it if it is found. 5947 # Check for GNU $ac_path_GREP 5948 case `"$ac_path_GREP" --version 2>&1` in 5949 *GNU*) 5950 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5951 *) 5952 ac_count=0 5953 $as_echo_n 0123456789 >"conftest.in" 5954 while : 5955 do 5956 cat "conftest.in" "conftest.in" >"conftest.tmp" 5957 mv "conftest.tmp" "conftest.in" 5958 cp "conftest.in" "conftest.nl" 5959 $as_echo 'GREP' >> "conftest.nl" 5960 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5962 as_fn_arith $ac_count + 1 && ac_count=$as_val 5963 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5964 # Best one so far, save it but keep looking for a better one 5965 ac_cv_path_GREP="$ac_path_GREP" 5966 ac_path_GREP_max=$ac_count 5967 fi 5968 # 10*(2^10) chars as input seems more than enough 5969 test $ac_count -gt 10 && break 5970 done 5971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5972 esac 5973 5974 $ac_path_GREP_found && break 3 5975 done 5976 done 5977 done 5978 IFS=$as_save_IFS 5979 if test -z "$ac_cv_path_GREP"; then 5980 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5981 fi 5982 else 5983 ac_cv_path_GREP=$GREP 5984 fi 5985 5986 fi 5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5988 $as_echo "$ac_cv_path_GREP" >&6; } 5989 GREP="$ac_cv_path_GREP" 5990 5991 5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5993 $as_echo_n "checking for egrep... " >&6; } 5994 if ${ac_cv_path_EGREP+:} false; then : 5995 $as_echo_n "(cached) " >&6 5996 else 5997 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5998 then ac_cv_path_EGREP="$GREP -E" 5999 else 6000 if test -z "$EGREP"; then 6001 ac_path_EGREP_found=false 6002 # Loop through the user's path and test for each of PROGNAME-LIST 6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6004 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6005 do 6006 IFS=$as_save_IFS 6007 test -z "$as_dir" && as_dir=. 6008 for ac_prog in egrep; do 6009 for ac_exec_ext in '' $ac_executable_extensions; do 6010 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6011 as_fn_executable_p "$ac_path_EGREP" || continue 6012 # Check for GNU ac_path_EGREP and select it if it is found. 6013 # Check for GNU $ac_path_EGREP 6014 case `"$ac_path_EGREP" --version 2>&1` in 6015 *GNU*) 6016 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6017 *) 6018 ac_count=0 6019 $as_echo_n 0123456789 >"conftest.in" 6020 while : 6021 do 6022 cat "conftest.in" "conftest.in" >"conftest.tmp" 6023 mv "conftest.tmp" "conftest.in" 6024 cp "conftest.in" "conftest.nl" 6025 $as_echo 'EGREP' >> "conftest.nl" 6026 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6028 as_fn_arith $ac_count + 1 && ac_count=$as_val 6029 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6030 # Best one so far, save it but keep looking for a better one 6031 ac_cv_path_EGREP="$ac_path_EGREP" 6032 ac_path_EGREP_max=$ac_count 6033 fi 6034 # 10*(2^10) chars as input seems more than enough 6035 test $ac_count -gt 10 && break 6036 done 6037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6038 esac 6039 6040 $ac_path_EGREP_found && break 3 6041 done 6042 done 6043 done 6044 IFS=$as_save_IFS 6045 if test -z "$ac_cv_path_EGREP"; then 6046 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6047 fi 6048 else 6049 ac_cv_path_EGREP=$EGREP 6050 fi 6051 6052 fi 6053 fi 6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6055 $as_echo "$ac_cv_path_EGREP" >&6; } 6056 EGREP="$ac_cv_path_EGREP" 6057 6058 6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6060 $as_echo_n "checking for ANSI C header files... " >&6; } 6061 if ${ac_cv_header_stdc+:} false; then : 6062 $as_echo_n "(cached) " >&6 6063 else 6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6065 /* end confdefs.h. */ 6066 #include <stdlib.h> 6067 #include <stdarg.h> 6068 #include <string.h> 6069 #include <float.h> 6070 6071 int 6072 main () 6073 { 6074 6075 ; 6076 return 0; 6077 } 6078 _ACEOF 6079 if ac_fn_c_try_compile "$LINENO"; then : 6080 ac_cv_header_stdc=yes 6081 else 6082 ac_cv_header_stdc=no 6083 fi 6084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6085 6086 if test $ac_cv_header_stdc = yes; then 6087 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6089 /* end confdefs.h. */ 6090 #include <string.h> 6091 6092 _ACEOF 6093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6094 $EGREP "memchr" >/dev/null 2>&1; then : 6095 6096 else 6097 ac_cv_header_stdc=no 6098 fi 6099 rm -f conftest* 6100 6101 fi 6102 6103 if test $ac_cv_header_stdc = yes; then 6104 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6106 /* end confdefs.h. */ 6107 #include <stdlib.h> 6108 6109 _ACEOF 6110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6111 $EGREP "free" >/dev/null 2>&1; then : 6112 6113 else 6114 ac_cv_header_stdc=no 6115 fi 6116 rm -f conftest* 6117 6118 fi 6119 6120 if test $ac_cv_header_stdc = yes; then 6121 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6122 if test "$cross_compiling" = yes; then : 6123 : 6124 else 6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6126 /* end confdefs.h. */ 6127 #include <ctype.h> 6128 #include <stdlib.h> 6129 #if ((' ' & 0x0FF) == 0x020) 6130 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6131 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6132 #else 6133 # define ISLOWER(c) \ 6134 (('a' <= (c) && (c) <= 'i') \ 6135 || ('j' <= (c) && (c) <= 'r') \ 6136 || ('s' <= (c) && (c) <= 'z')) 6137 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6138 #endif 6139 6140 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6141 int 6142 main () 6143 { 6144 int i; 6145 for (i = 0; i < 256; i++) 6146 if (XOR (islower (i), ISLOWER (i)) 6147 || toupper (i) != TOUPPER (i)) 6148 return 2; 6149 return 0; 6150 } 6151 _ACEOF 6152 if ac_fn_c_try_run "$LINENO"; then : 6153 6154 else 6155 ac_cv_header_stdc=no 6156 fi 6157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6158 conftest.$ac_objext conftest.beam conftest.$ac_ext 6159 fi 6160 6161 fi 6162 fi 6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6164 $as_echo "$ac_cv_header_stdc" >&6; } 6165 if test $ac_cv_header_stdc = yes; then 6166 6167 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 6168 6169 fi 6170 6171 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 6172 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6173 inttypes.h stdint.h unistd.h 6174 do : 6175 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6176 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6177 " 6178 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6179 cat >>confdefs.h <<_ACEOF 6180 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6181 _ACEOF 6182 6183 fi 6184 6185 done 6186 6187 6188 6189 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 6190 if test "x$ac_cv_header_minix_config_h" = xyes; then : 6191 MINIX=yes 6192 else 6193 MINIX= 6194 fi 6195 6196 6197 if test "$MINIX" = yes; then 6198 6199 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 6200 6201 6202 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 6203 6204 6205 $as_echo "#define _MINIX 1" >>confdefs.h 6206 6207 fi 6208 6209 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 6211 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 6212 if ${ac_cv_safe_to_define___extensions__+:} false; then : 6213 $as_echo_n "(cached) " >&6 6214 else 6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6216 /* end confdefs.h. */ 6217 6218 # define __EXTENSIONS__ 1 6219 $ac_includes_default 6220 int 6221 main () 6222 { 6223 6224 ; 6225 return 0; 6226 } 6227 _ACEOF 6228 if ac_fn_c_try_compile "$LINENO"; then : 6229 ac_cv_safe_to_define___extensions__=yes 6230 else 6231 ac_cv_safe_to_define___extensions__=no 6232 fi 6233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6234 fi 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 6236 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 6237 test $ac_cv_safe_to_define___extensions__ = yes && 6238 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 6239 6240 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 6241 6242 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 6243 6244 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 6245 6246 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 6247 6248 6249 6250 # ============================================================================== 6251 # Find required base packages 6252 # ============================================================================== 6253 if test -n "$ac_tool_prefix"; then 6254 for ac_prog in ar lib "link -lib" 6255 do 6256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6257 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6259 $as_echo_n "checking for $ac_word... " >&6; } 6260 if ${ac_cv_prog_AR+:} false; then : 6261 $as_echo_n "(cached) " >&6 6262 else 6263 if test -n "$AR"; then 6264 ac_cv_prog_AR="$AR" # Let the user override the test. 6265 else 6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6267 for as_dir in $PATH 6268 do 6269 IFS=$as_save_IFS 6270 test -z "$as_dir" && as_dir=. 6271 for ac_exec_ext in '' $ac_executable_extensions; do 6272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6273 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6275 break 2 6276 fi 6277 done 6278 done 6279 IFS=$as_save_IFS 6280 6281 fi 6282 fi 6283 AR=$ac_cv_prog_AR 6284 if test -n "$AR"; then 6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6286 $as_echo "$AR" >&6; } 6287 else 6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6289 $as_echo "no" >&6; } 6290 fi 6291 6292 6293 test -n "$AR" && break 6294 done 6295 fi 6296 if test -z "$AR"; then 6297 ac_ct_AR=$AR 6298 for ac_prog in ar lib "link -lib" 6299 do 6300 # Extract the first word of "$ac_prog", so it can be a program name with args. 6301 set dummy $ac_prog; ac_word=$2 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6303 $as_echo_n "checking for $ac_word... " >&6; } 6304 if ${ac_cv_prog_ac_ct_AR+:} false; then : 6305 $as_echo_n "(cached) " >&6 6306 else 6307 if test -n "$ac_ct_AR"; then 6308 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6309 else 6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6311 for as_dir in $PATH 6312 do 6313 IFS=$as_save_IFS 6314 test -z "$as_dir" && as_dir=. 6315 for ac_exec_ext in '' $ac_executable_extensions; do 6316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6317 ac_cv_prog_ac_ct_AR="$ac_prog" 6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6319 break 2 6320 fi 6321 done 6322 done 6323 IFS=$as_save_IFS 6324 6325 fi 6326 fi 6327 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6328 if test -n "$ac_ct_AR"; then 6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6330 $as_echo "$ac_ct_AR" >&6; } 6331 else 6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6333 $as_echo "no" >&6; } 6334 fi 6335 6336 6337 test -n "$ac_ct_AR" && break 6338 done 6339 6340 if test "x$ac_ct_AR" = x; then 6341 AR="false" 6342 else 6343 case $cross_compiling:$ac_tool_warned in 6344 yes:) 6345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6347 ac_tool_warned=yes ;; 6348 esac 6349 AR=$ac_ct_AR 6350 fi 6351 fi 6352 6353 : ${AR=ar} 6354 6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 6356 $as_echo_n "checking the archiver ($AR) interface... " >&6; } 6357 if ${am_cv_ar_interface+:} false; then : 6358 $as_echo_n "(cached) " >&6 6359 else 6360 ac_ext=c 6361 ac_cpp='$CPP $CPPFLAGS' 6362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6364 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6365 6366 am_cv_ar_interface=ar 6367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6368 /* end confdefs.h. */ 6369 int some_variable = 0; 6370 _ACEOF 6371 if ac_fn_c_try_compile "$LINENO"; then : 6372 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 6373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6374 (eval $am_ar_try) 2>&5 6375 ac_status=$? 6376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6377 test $ac_status = 0; } 6378 if test "$ac_status" -eq 0; then 6379 am_cv_ar_interface=ar 6380 else 6381 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 6382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6383 (eval $am_ar_try) 2>&5 6384 ac_status=$? 6385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6386 test $ac_status = 0; } 6387 if test "$ac_status" -eq 0; then 6388 am_cv_ar_interface=lib 6389 else 6390 am_cv_ar_interface=unknown 6391 fi 6392 fi 6393 rm -f conftest.lib libconftest.a 6394 6395 fi 6396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6397 ac_ext=c 6398 ac_cpp='$CPP $CPPFLAGS' 6399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6401 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6402 6403 fi 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 6405 $as_echo "$am_cv_ar_interface" >&6; } 6406 6407 case $am_cv_ar_interface in 6408 ar) 6409 ;; 6410 lib) 6411 # Microsoft lib, so override with the ar-lib wrapper script. 6412 # FIXME: It is wrong to rewrite AR. 6413 # But if we don't then we get into trouble of one sort or another. 6414 # A longer-term fix would be to have automake use am__AR in this case, 6415 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 6416 # similar. 6417 AR="$am_aux_dir/ar-lib $AR" 6418 ;; 6419 unknown) 6420 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 6421 ;; 6422 esac 6423 6424 ac_ext=c 6425 ac_cpp='$CPP $CPPFLAGS' 6426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6428 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6429 if test -n "$ac_tool_prefix"; then 6430 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 6431 set dummy ${ac_tool_prefix}gcc; ac_word=$2 6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6433 $as_echo_n "checking for $ac_word... " >&6; } 6434 if ${ac_cv_prog_CC+:} false; then : 6435 $as_echo_n "(cached) " >&6 6436 else 6437 if test -n "$CC"; then 6438 ac_cv_prog_CC="$CC" # Let the user override the test. 6439 else 6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6441 for as_dir in $PATH 6442 do 6443 IFS=$as_save_IFS 6444 test -z "$as_dir" && as_dir=. 6445 for ac_exec_ext in '' $ac_executable_extensions; do 6446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6447 ac_cv_prog_CC="${ac_tool_prefix}gcc" 6448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6449 break 2 6450 fi 6451 done 6452 done 6453 IFS=$as_save_IFS 6454 6455 fi 6456 fi 6457 CC=$ac_cv_prog_CC 6458 if test -n "$CC"; then 6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6460 $as_echo "$CC" >&6; } 6461 else 6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6463 $as_echo "no" >&6; } 6464 fi 6465 6466 6467 fi 6468 if test -z "$ac_cv_prog_CC"; then 6469 ac_ct_CC=$CC 6470 # Extract the first word of "gcc", so it can be a program name with args. 6471 set dummy gcc; ac_word=$2 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6473 $as_echo_n "checking for $ac_word... " >&6; } 6474 if ${ac_cv_prog_ac_ct_CC+:} false; then : 6475 $as_echo_n "(cached) " >&6 6476 else 6477 if test -n "$ac_ct_CC"; then 6478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 6479 else 6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6481 for as_dir in $PATH 6482 do 6483 IFS=$as_save_IFS 6484 test -z "$as_dir" && as_dir=. 6485 for ac_exec_ext in '' $ac_executable_extensions; do 6486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6487 ac_cv_prog_ac_ct_CC="gcc" 6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6489 break 2 6490 fi 6491 done 6492 done 6493 IFS=$as_save_IFS 6494 6495 fi 6496 fi 6497 ac_ct_CC=$ac_cv_prog_ac_ct_CC 6498 if test -n "$ac_ct_CC"; then 6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 6500 $as_echo "$ac_ct_CC" >&6; } 6501 else 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6503 $as_echo "no" >&6; } 6504 fi 6505 6506 if test "x$ac_ct_CC" = x; then 6507 CC="" 6508 else 6509 case $cross_compiling:$ac_tool_warned in 6510 yes:) 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6513 ac_tool_warned=yes ;; 6514 esac 6515 CC=$ac_ct_CC 6516 fi 6517 else 6518 CC="$ac_cv_prog_CC" 6519 fi 6520 6521 if test -z "$CC"; then 6522 if test -n "$ac_tool_prefix"; then 6523 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 6524 set dummy ${ac_tool_prefix}cc; ac_word=$2 6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6526 $as_echo_n "checking for $ac_word... " >&6; } 6527 if ${ac_cv_prog_CC+:} false; then : 6528 $as_echo_n "(cached) " >&6 6529 else 6530 if test -n "$CC"; then 6531 ac_cv_prog_CC="$CC" # Let the user override the test. 6532 else 6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6534 for as_dir in $PATH 6535 do 6536 IFS=$as_save_IFS 6537 test -z "$as_dir" && as_dir=. 6538 for ac_exec_ext in '' $ac_executable_extensions; do 6539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6540 ac_cv_prog_CC="${ac_tool_prefix}cc" 6541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6542 break 2 6543 fi 6544 done 6545 done 6546 IFS=$as_save_IFS 6547 6548 fi 6549 fi 6550 CC=$ac_cv_prog_CC 6551 if test -n "$CC"; then 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6553 $as_echo "$CC" >&6; } 6554 else 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6556 $as_echo "no" >&6; } 6557 fi 6558 6559 6560 fi 6561 fi 6562 if test -z "$CC"; then 6563 # Extract the first word of "cc", so it can be a program name with args. 6564 set dummy cc; ac_word=$2 6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6566 $as_echo_n "checking for $ac_word... " >&6; } 6567 if ${ac_cv_prog_CC+:} false; then : 6568 $as_echo_n "(cached) " >&6 6569 else 6570 if test -n "$CC"; then 6571 ac_cv_prog_CC="$CC" # Let the user override the test. 6572 else 6573 ac_prog_rejected=no 6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6575 for as_dir in $PATH 6576 do 6577 IFS=$as_save_IFS 6578 test -z "$as_dir" && as_dir=. 6579 for ac_exec_ext in '' $ac_executable_extensions; do 6580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6581 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 6582 ac_prog_rejected=yes 6583 continue 6584 fi 6585 ac_cv_prog_CC="cc" 6586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6587 break 2 6588 fi 6589 done 6590 done 6591 IFS=$as_save_IFS 6592 6593 if test $ac_prog_rejected = yes; then 6594 # We found a bogon in the path, so make sure we never use it. 6595 set dummy $ac_cv_prog_CC 6596 shift 6597 if test $# != 0; then 6598 # We chose a different compiler from the bogus one. 6599 # However, it has the same basename, so the bogon will be chosen 6600 # first if we set CC to just the basename; use the full file name. 6601 shift 6602 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 6603 fi 6604 fi 6605 fi 6606 fi 6607 CC=$ac_cv_prog_CC 6608 if test -n "$CC"; then 6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6610 $as_echo "$CC" >&6; } 6611 else 6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6613 $as_echo "no" >&6; } 6614 fi 6615 6616 6617 fi 6618 if test -z "$CC"; then 6619 if test -n "$ac_tool_prefix"; then 6620 for ac_prog in cl.exe 6621 do 6622 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6623 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6625 $as_echo_n "checking for $ac_word... " >&6; } 6626 if ${ac_cv_prog_CC+:} false; then : 6627 $as_echo_n "(cached) " >&6 6628 else 6629 if test -n "$CC"; then 6630 ac_cv_prog_CC="$CC" # Let the user override the test. 6631 else 6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6633 for as_dir in $PATH 6634 do 6635 IFS=$as_save_IFS 6636 test -z "$as_dir" && as_dir=. 6637 for ac_exec_ext in '' $ac_executable_extensions; do 6638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6639 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6641 break 2 6642 fi 6643 done 6644 done 6645 IFS=$as_save_IFS 6646 6647 fi 6648 fi 6649 CC=$ac_cv_prog_CC 6650 if test -n "$CC"; then 6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6652 $as_echo "$CC" >&6; } 6653 else 6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6655 $as_echo "no" >&6; } 6656 fi 6657 6658 6659 test -n "$CC" && break 6660 done 6661 fi 6662 if test -z "$CC"; then 6663 ac_ct_CC=$CC 6664 for ac_prog in cl.exe 6665 do 6666 # Extract the first word of "$ac_prog", so it can be a program name with args. 6667 set dummy $ac_prog; ac_word=$2 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6669 $as_echo_n "checking for $ac_word... " >&6; } 6670 if ${ac_cv_prog_ac_ct_CC+:} false; then : 6671 $as_echo_n "(cached) " >&6 6672 else 6673 if test -n "$ac_ct_CC"; then 6674 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 6675 else 6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6677 for as_dir in $PATH 6678 do 6679 IFS=$as_save_IFS 6680 test -z "$as_dir" && as_dir=. 6681 for ac_exec_ext in '' $ac_executable_extensions; do 6682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6683 ac_cv_prog_ac_ct_CC="$ac_prog" 6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6685 break 2 6686 fi 6687 done 6688 done 6689 IFS=$as_save_IFS 6690 6691 fi 6692 fi 6693 ac_ct_CC=$ac_cv_prog_ac_ct_CC 6694 if test -n "$ac_ct_CC"; then 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 6696 $as_echo "$ac_ct_CC" >&6; } 6697 else 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6699 $as_echo "no" >&6; } 6700 fi 6701 6702 6703 test -n "$ac_ct_CC" && break 6704 done 6705 6706 if test "x$ac_ct_CC" = x; then 6707 CC="" 6708 else 6709 case $cross_compiling:$ac_tool_warned in 6710 yes:) 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6713 ac_tool_warned=yes ;; 6714 esac 6715 CC=$ac_ct_CC 6716 fi 6717 fi 6718 6719 fi 6720 6721 6722 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6724 as_fn_error $? "no acceptable C compiler found in \$PATH 6725 See \`config.log' for more details" "$LINENO" 5; } 6726 6727 # Provide some information about the compiler. 6728 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 6729 set X $ac_compile 6730 ac_compiler=$2 6731 for ac_option in --version -v -V -qversion; do 6732 { { ac_try="$ac_compiler $ac_option >&5" 6733 case "(($ac_try" in 6734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6735 *) ac_try_echo=$ac_try;; 6736 esac 6737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6738 $as_echo "$ac_try_echo"; } >&5 6739 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6740 ac_status=$? 6741 if test -s conftest.err; then 6742 sed '10a\ 6743 ... rest of stderr output deleted ... 6744 10q' conftest.err >conftest.er1 6745 cat conftest.er1 >&5 6746 fi 6747 rm -f conftest.er1 conftest.err 6748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6749 test $ac_status = 0; } 6750 done 6751 6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 6753 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 6754 if ${ac_cv_c_compiler_gnu+:} false; then : 6755 $as_echo_n "(cached) " >&6 6756 else 6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6758 /* end confdefs.h. */ 6759 6760 int 6761 main () 6762 { 6763 #ifndef __GNUC__ 6764 choke me 6765 #endif 6766 6767 ; 6768 return 0; 6769 } 6770 _ACEOF 6771 if ac_fn_c_try_compile "$LINENO"; then : 6772 ac_compiler_gnu=yes 6773 else 6774 ac_compiler_gnu=no 6775 fi 6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6777 ac_cv_c_compiler_gnu=$ac_compiler_gnu 6778 6779 fi 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 6781 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 6782 if test $ac_compiler_gnu = yes; then 6783 GCC=yes 6784 else 6785 GCC= 6786 fi 6787 ac_test_CFLAGS=${CFLAGS+set} 6788 ac_save_CFLAGS=$CFLAGS 6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 6790 $as_echo_n "checking whether $CC accepts -g... " >&6; } 6791 if ${ac_cv_prog_cc_g+:} false; then : 6792 $as_echo_n "(cached) " >&6 6793 else 6794 ac_save_c_werror_flag=$ac_c_werror_flag 6795 ac_c_werror_flag=yes 6796 ac_cv_prog_cc_g=no 6797 CFLAGS="-g" 6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6799 /* end confdefs.h. */ 6800 6801 int 6802 main () 6803 { 6804 6805 ; 6806 return 0; 6807 } 6808 _ACEOF 6809 if ac_fn_c_try_compile "$LINENO"; then : 6810 ac_cv_prog_cc_g=yes 6811 else 6812 CFLAGS="" 6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6814 /* end confdefs.h. */ 6815 6816 int 6817 main () 6818 { 6819 6820 ; 6821 return 0; 6822 } 6823 _ACEOF 6824 if ac_fn_c_try_compile "$LINENO"; then : 6825 6826 else 6827 ac_c_werror_flag=$ac_save_c_werror_flag 6828 CFLAGS="-g" 6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6830 /* end confdefs.h. */ 6831 6832 int 6833 main () 6834 { 6835 6836 ; 6837 return 0; 6838 } 6839 _ACEOF 6840 if ac_fn_c_try_compile "$LINENO"; then : 6841 ac_cv_prog_cc_g=yes 6842 fi 6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6844 fi 6845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6846 fi 6847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6848 ac_c_werror_flag=$ac_save_c_werror_flag 6849 fi 6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 6851 $as_echo "$ac_cv_prog_cc_g" >&6; } 6852 if test "$ac_test_CFLAGS" = set; then 6853 CFLAGS=$ac_save_CFLAGS 6854 elif test $ac_cv_prog_cc_g = yes; then 6855 if test "$GCC" = yes; then 6856 CFLAGS="-g -O2" 6857 else 6858 CFLAGS="-g" 6859 fi 6860 else 6861 if test "$GCC" = yes; then 6862 CFLAGS="-O2" 6863 else 6864 CFLAGS= 6865 fi 6866 fi 6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 6868 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 6869 if ${ac_cv_prog_cc_c89+:} false; then : 6870 $as_echo_n "(cached) " >&6 6871 else 6872 ac_cv_prog_cc_c89=no 6873 ac_save_CC=$CC 6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6875 /* end confdefs.h. */ 6876 #include <stdarg.h> 6877 #include <stdio.h> 6878 struct stat; 6879 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6880 struct buf { int x; }; 6881 FILE * (*rcsopen) (struct buf *, struct stat *, int); 6882 static char *e (p, i) 6883 char **p; 6884 int i; 6885 { 6886 return p[i]; 6887 } 6888 static char *f (char * (*g) (char **, int), char **p, ...) 6889 { 6890 char *s; 6891 va_list v; 6892 va_start (v,p); 6893 s = g (p, va_arg (v,int)); 6894 va_end (v); 6895 return s; 6896 } 6897 6898 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6899 function prototypes and stuff, but not '\xHH' hex character constants. 6900 These don't provoke an error unfortunately, instead are silently treated 6901 as 'x'. The following induces an error, until -std is added to get 6902 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6903 array size at least. It's necessary to write '\x00'==0 to get something 6904 that's true only with -std. */ 6905 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6906 6907 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6908 inside strings and character constants. */ 6909 #define FOO(x) 'x' 6910 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6911 6912 int test (int i, double x); 6913 struct s1 {int (*f) (int a);}; 6914 struct s2 {int (*f) (double a);}; 6915 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6916 int argc; 6917 char **argv; 6918 int 6919 main () 6920 { 6921 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6922 ; 6923 return 0; 6924 } 6925 _ACEOF 6926 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6927 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6928 do 6929 CC="$ac_save_CC $ac_arg" 6930 if ac_fn_c_try_compile "$LINENO"; then : 6931 ac_cv_prog_cc_c89=$ac_arg 6932 fi 6933 rm -f core conftest.err conftest.$ac_objext 6934 test "x$ac_cv_prog_cc_c89" != "xno" && break 6935 done 6936 rm -f conftest.$ac_ext 6937 CC=$ac_save_CC 6938 6939 fi 6940 # AC_CACHE_VAL 6941 case "x$ac_cv_prog_cc_c89" in 6942 x) 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6944 $as_echo "none needed" >&6; } ;; 6945 xno) 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6947 $as_echo "unsupported" >&6; } ;; 6948 *) 6949 CC="$CC $ac_cv_prog_cc_c89" 6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6951 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 6952 esac 6953 if test "x$ac_cv_prog_cc_c89" != xno; then : 6954 6955 fi 6956 6957 ac_ext=c 6958 ac_cpp='$CPP $CPPFLAGS' 6959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6961 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6962 6963 ac_ext=c 6964 ac_cpp='$CPP $CPPFLAGS' 6965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6967 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 6969 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 6970 if ${am_cv_prog_cc_c_o+:} false; then : 6971 $as_echo_n "(cached) " >&6 6972 else 6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6974 /* end confdefs.h. */ 6975 6976 int 6977 main () 6978 { 6979 6980 ; 6981 return 0; 6982 } 6983 _ACEOF 6984 # Make sure it works both with $CC and with simple cc. 6985 # Following AC_PROG_CC_C_O, we do the test twice because some 6986 # compilers refuse to overwrite an existing .o file with -o, 6987 # though they will create one. 6988 am_cv_prog_cc_c_o=yes 6989 for am_i in 1 2; do 6990 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 6991 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 6992 ac_status=$? 6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6994 (exit $ac_status); } \ 6995 && test -f conftest2.$ac_objext; then 6996 : OK 6997 else 6998 am_cv_prog_cc_c_o=no 6999 break 7000 fi 7001 done 7002 rm -f core conftest* 7003 unset am_i 7004 fi 7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 7006 $as_echo "$am_cv_prog_cc_c_o" >&6; } 7007 if test "$am_cv_prog_cc_c_o" != yes; then 7008 # Losing compiler, so override with the script. 7009 # FIXME: It is wrong to rewrite CC. 7010 # But if we don't then we get into trouble of one sort or another. 7011 # A longer-term fix would be to have automake use am__CC in this case, 7012 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 7013 CC="$am_aux_dir/compile $CC" 7014 fi 7015 ac_ext=c 7016 ac_cpp='$CPP $CPPFLAGS' 7017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7019 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7020 7021 7022 depcc="$CC" am_compiler_list= 7023 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 7025 $as_echo_n "checking dependency style of $depcc... " >&6; } 7026 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 7027 $as_echo_n "(cached) " >&6 7028 else 7029 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7030 # We make a subdir and do the tests there. Otherwise we can end up 7031 # making bogus files that we don't know about and never remove. For 7032 # instance it was reported that on HP-UX the gcc test will end up 7033 # making a dummy file named 'D' -- because '-MD' means "put the output 7034 # in D". 7035 rm -rf conftest.dir 7036 mkdir conftest.dir 7037 # Copy depcomp to subdir because otherwise we won't find it if we're 7038 # using a relative directory. 7039 cp "$am_depcomp" conftest.dir 7040 cd conftest.dir 7041 # We will build objects and dependencies in a subdirectory because 7042 # it helps to detect inapplicable dependency modes. For instance 7043 # both Tru64's cc and ICC support -MD to output dependencies as a 7044 # side effect of compilation, but ICC will put the dependencies in 7045 # the current directory while Tru64 will put them in the object 7046 # directory. 7047 mkdir sub 7048 7049 am_cv_CC_dependencies_compiler_type=none 7050 if test "$am_compiler_list" = ""; then 7051 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7052 fi 7053 am__universal=false 7054 case " $depcc " in #( 7055 *\ -arch\ *\ -arch\ *) am__universal=true ;; 7056 esac 7057 7058 for depmode in $am_compiler_list; do 7059 # Setup a source with many dependencies, because some compilers 7060 # like to wrap large dependency lists on column 80 (with \), and 7061 # we should not choose a depcomp mode which is confused by this. 7062 # 7063 # We need to recreate these files for each test, as the compiler may 7064 # overwrite some of them when testing with obscure command lines. 7065 # This happens at least with the AIX C compiler. 7066 : > sub/conftest.c 7067 for i in 1 2 3 4 5 6; do 7068 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7069 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 7070 # Solaris 10 /bin/sh. 7071 echo '/* dummy */' > sub/conftst$i.h 7072 done 7073 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7074 7075 # We check with '-c' and '-o' for the sake of the "dashmstdout" 7076 # mode. It turns out that the SunPro C++ compiler does not properly 7077 # handle '-M -o', and we need to detect this. Also, some Intel 7078 # versions had trouble with output in subdirs. 7079 am__obj=sub/conftest.${OBJEXT-o} 7080 am__minus_obj="-o $am__obj" 7081 case $depmode in 7082 gcc) 7083 # This depmode causes a compiler race in universal mode. 7084 test "$am__universal" = false || continue 7085 ;; 7086 nosideeffect) 7087 # After this tag, mechanisms are not by side-effect, so they'll 7088 # only be used when explicitly requested. 7089 if test "x$enable_dependency_tracking" = xyes; then 7090 continue 7091 else 7092 break 7093 fi 7094 ;; 7095 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 7096 # This compiler won't grok '-c -o', but also, the minuso test has 7097 # not run yet. These depmodes are late enough in the game, and 7098 # so weak that their functioning should not be impacted. 7099 am__obj=conftest.${OBJEXT-o} 7100 am__minus_obj= 7101 ;; 7102 none) break ;; 7103 esac 7104 if depmode=$depmode \ 7105 source=sub/conftest.c object=$am__obj \ 7106 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7107 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7108 >/dev/null 2>conftest.err && 7109 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7110 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7111 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7112 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7113 # icc doesn't choke on unknown options, it will just issue warnings 7114 # or remarks (even with -Werror). So we grep stderr for any message 7115 # that says an option was ignored or not supported. 7116 # When given -MP, icc 7.0 and 7.1 complain thusly: 7117 # icc: Command line warning: ignoring option '-M'; no argument required 7118 # The diagnosis changed in icc 8.0: 7119 # icc: Command line remark: option '-MP' not supported 7120 if (grep 'ignoring option' conftest.err || 7121 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7122 am_cv_CC_dependencies_compiler_type=$depmode 7123 break 7124 fi 7125 fi 7126 done 7127 7128 cd .. 7129 rm -rf conftest.dir 7130 else 7131 am_cv_CC_dependencies_compiler_type=none 7132 fi 7133 7134 fi 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 7136 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 7137 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 7138 7139 if 7140 test "x$enable_dependency_tracking" != xno \ 7141 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 7142 am__fastdepCC_TRUE= 7143 am__fastdepCC_FALSE='#' 7144 else 7145 am__fastdepCC_TRUE='#' 7146 am__fastdepCC_FALSE= 7147 fi 7148 7149 7150 ac_ext=cpp 7151 ac_cpp='$CXXCPP $CPPFLAGS' 7152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7155 if test -z "$CXX"; then 7156 if test -n "$CCC"; then 7157 CXX=$CCC 7158 else 7159 if test -n "$ac_tool_prefix"; then 7160 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7161 do 7162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7163 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7165 $as_echo_n "checking for $ac_word... " >&6; } 7166 if ${ac_cv_prog_CXX+:} false; then : 7167 $as_echo_n "(cached) " >&6 7168 else 7169 if test -n "$CXX"; then 7170 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7171 else 7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7173 for as_dir in $PATH 7174 do 7175 IFS=$as_save_IFS 7176 test -z "$as_dir" && as_dir=. 7177 for ac_exec_ext in '' $ac_executable_extensions; do 7178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7179 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7181 break 2 7182 fi 7183 done 7184 done 7185 IFS=$as_save_IFS 7186 7187 fi 7188 fi 7189 CXX=$ac_cv_prog_CXX 7190 if test -n "$CXX"; then 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 7192 $as_echo "$CXX" >&6; } 7193 else 7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7195 $as_echo "no" >&6; } 7196 fi 7197 7198 7199 test -n "$CXX" && break 7200 done 7201 fi 7202 if test -z "$CXX"; then 7203 ac_ct_CXX=$CXX 7204 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7205 do 7206 # Extract the first word of "$ac_prog", so it can be a program name with args. 7207 set dummy $ac_prog; ac_word=$2 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7209 $as_echo_n "checking for $ac_word... " >&6; } 7210 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 7211 $as_echo_n "(cached) " >&6 7212 else 7213 if test -n "$ac_ct_CXX"; then 7214 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7215 else 7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7217 for as_dir in $PATH 7218 do 7219 IFS=$as_save_IFS 7220 test -z "$as_dir" && as_dir=. 7221 for ac_exec_ext in '' $ac_executable_extensions; do 7222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7223 ac_cv_prog_ac_ct_CXX="$ac_prog" 7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7225 break 2 7226 fi 7227 done 7228 done 7229 IFS=$as_save_IFS 7230 7231 fi 7232 fi 7233 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7234 if test -n "$ac_ct_CXX"; then 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 7236 $as_echo "$ac_ct_CXX" >&6; } 7237 else 7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7239 $as_echo "no" >&6; } 7240 fi 7241 7242 7243 test -n "$ac_ct_CXX" && break 7244 done 7245 7246 if test "x$ac_ct_CXX" = x; then 7247 CXX="g++" 7248 else 7249 case $cross_compiling:$ac_tool_warned in 7250 yes:) 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7253 ac_tool_warned=yes ;; 7254 esac 7255 CXX=$ac_ct_CXX 7256 fi 7257 fi 7258 7259 fi 7260 fi 7261 # Provide some information about the compiler. 7262 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 7263 set X $ac_compile 7264 ac_compiler=$2 7265 for ac_option in --version -v -V -qversion; do 7266 { { ac_try="$ac_compiler $ac_option >&5" 7267 case "(($ac_try" in 7268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7269 *) ac_try_echo=$ac_try;; 7270 esac 7271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7272 $as_echo "$ac_try_echo"; } >&5 7273 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 7274 ac_status=$? 7275 if test -s conftest.err; then 7276 sed '10a\ 7277 ... rest of stderr output deleted ... 7278 10q' conftest.err >conftest.er1 7279 cat conftest.er1 >&5 7280 fi 7281 rm -f conftest.er1 conftest.err 7282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7283 test $ac_status = 0; } 7284 done 7285 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 7287 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 7288 if ${ac_cv_cxx_compiler_gnu+:} false; then : 7289 $as_echo_n "(cached) " >&6 7290 else 7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7292 /* end confdefs.h. */ 7293 7294 int 7295 main () 7296 { 7297 #ifndef __GNUC__ 7298 choke me 7299 #endif 7300 7301 ; 7302 return 0; 7303 } 7304 _ACEOF 7305 if ac_fn_cxx_try_compile "$LINENO"; then : 7306 ac_compiler_gnu=yes 7307 else 7308 ac_compiler_gnu=no 7309 fi 7310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7311 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7312 7313 fi 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 7315 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 7316 if test $ac_compiler_gnu = yes; then 7317 GXX=yes 7318 else 7319 GXX= 7320 fi 7321 ac_test_CXXFLAGS=${CXXFLAGS+set} 7322 ac_save_CXXFLAGS=$CXXFLAGS 7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 7324 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 7325 if ${ac_cv_prog_cxx_g+:} false; then : 7326 $as_echo_n "(cached) " >&6 7327 else 7328 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 7329 ac_cxx_werror_flag=yes 7330 ac_cv_prog_cxx_g=no 7331 CXXFLAGS="-g" 7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7333 /* end confdefs.h. */ 7334 7335 int 7336 main () 7337 { 7338 7339 ; 7340 return 0; 7341 } 7342 _ACEOF 7343 if ac_fn_cxx_try_compile "$LINENO"; then : 7344 ac_cv_prog_cxx_g=yes 7345 else 7346 CXXFLAGS="" 7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7348 /* end confdefs.h. */ 7349 7350 int 7351 main () 7352 { 7353 7354 ; 7355 return 0; 7356 } 7357 _ACEOF 7358 if ac_fn_cxx_try_compile "$LINENO"; then : 7359 7360 else 7361 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7362 CXXFLAGS="-g" 7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7364 /* end confdefs.h. */ 7365 7366 int 7367 main () 7368 { 7369 7370 ; 7371 return 0; 7372 } 7373 _ACEOF 7374 if ac_fn_cxx_try_compile "$LINENO"; then : 7375 ac_cv_prog_cxx_g=yes 7376 fi 7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7378 fi 7379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7380 fi 7381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7382 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7383 fi 7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 7385 $as_echo "$ac_cv_prog_cxx_g" >&6; } 7386 if test "$ac_test_CXXFLAGS" = set; then 7387 CXXFLAGS=$ac_save_CXXFLAGS 7388 elif test $ac_cv_prog_cxx_g = yes; then 7389 if test "$GXX" = yes; then 7390 CXXFLAGS="-g -O2" 7391 else 7392 CXXFLAGS="-g" 7393 fi 7394 else 7395 if test "$GXX" = yes; then 7396 CXXFLAGS="-O2" 7397 else 7398 CXXFLAGS= 7399 fi 7400 fi 7401 ac_ext=c 7402 ac_cpp='$CPP $CPPFLAGS' 7403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7405 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7406 7407 depcc="$CXX" am_compiler_list= 7408 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 7410 $as_echo_n "checking dependency style of $depcc... " >&6; } 7411 if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 7412 $as_echo_n "(cached) " >&6 7413 else 7414 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7415 # We make a subdir and do the tests there. Otherwise we can end up 7416 # making bogus files that we don't know about and never remove. For 7417 # instance it was reported that on HP-UX the gcc test will end up 7418 # making a dummy file named 'D' -- because '-MD' means "put the output 7419 # in D". 7420 rm -rf conftest.dir 7421 mkdir conftest.dir 7422 # Copy depcomp to subdir because otherwise we won't find it if we're 7423 # using a relative directory. 7424 cp "$am_depcomp" conftest.dir 7425 cd conftest.dir 7426 # We will build objects and dependencies in a subdirectory because 7427 # it helps to detect inapplicable dependency modes. For instance 7428 # both Tru64's cc and ICC support -MD to output dependencies as a 7429 # side effect of compilation, but ICC will put the dependencies in 7430 # the current directory while Tru64 will put them in the object 7431 # directory. 7432 mkdir sub 7433 7434 am_cv_CXX_dependencies_compiler_type=none 7435 if test "$am_compiler_list" = ""; then 7436 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7437 fi 7438 am__universal=false 7439 case " $depcc " in #( 7440 *\ -arch\ *\ -arch\ *) am__universal=true ;; 7441 esac 7442 7443 for depmode in $am_compiler_list; do 7444 # Setup a source with many dependencies, because some compilers 7445 # like to wrap large dependency lists on column 80 (with \), and 7446 # we should not choose a depcomp mode which is confused by this. 7447 # 7448 # We need to recreate these files for each test, as the compiler may 7449 # overwrite some of them when testing with obscure command lines. 7450 # This happens at least with the AIX C compiler. 7451 : > sub/conftest.c 7452 for i in 1 2 3 4 5 6; do 7453 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7454 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 7455 # Solaris 10 /bin/sh. 7456 echo '/* dummy */' > sub/conftst$i.h 7457 done 7458 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7459 7460 # We check with '-c' and '-o' for the sake of the "dashmstdout" 7461 # mode. It turns out that the SunPro C++ compiler does not properly 7462 # handle '-M -o', and we need to detect this. Also, some Intel 7463 # versions had trouble with output in subdirs. 7464 am__obj=sub/conftest.${OBJEXT-o} 7465 am__minus_obj="-o $am__obj" 7466 case $depmode in 7467 gcc) 7468 # This depmode causes a compiler race in universal mode. 7469 test "$am__universal" = false || continue 7470 ;; 7471 nosideeffect) 7472 # After this tag, mechanisms are not by side-effect, so they'll 7473 # only be used when explicitly requested. 7474 if test "x$enable_dependency_tracking" = xyes; then 7475 continue 7476 else 7477 break 7478 fi 7479 ;; 7480 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 7481 # This compiler won't grok '-c -o', but also, the minuso test has 7482 # not run yet. These depmodes are late enough in the game, and 7483 # so weak that their functioning should not be impacted. 7484 am__obj=conftest.${OBJEXT-o} 7485 am__minus_obj= 7486 ;; 7487 none) break ;; 7488 esac 7489 if depmode=$depmode \ 7490 source=sub/conftest.c object=$am__obj \ 7491 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7492 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7493 >/dev/null 2>conftest.err && 7494 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7495 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7496 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7497 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7498 # icc doesn't choke on unknown options, it will just issue warnings 7499 # or remarks (even with -Werror). So we grep stderr for any message 7500 # that says an option was ignored or not supported. 7501 # When given -MP, icc 7.0 and 7.1 complain thusly: 7502 # icc: Command line warning: ignoring option '-M'; no argument required 7503 # The diagnosis changed in icc 8.0: 7504 # icc: Command line remark: option '-MP' not supported 7505 if (grep 'ignoring option' conftest.err || 7506 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7507 am_cv_CXX_dependencies_compiler_type=$depmode 7508 break 7509 fi 7510 fi 7511 done 7512 7513 cd .. 7514 rm -rf conftest.dir 7515 else 7516 am_cv_CXX_dependencies_compiler_type=none 7517 fi 7518 7519 fi 7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 7521 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 7522 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7523 7524 if 7525 test "x$enable_dependency_tracking" != xno \ 7526 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7527 am__fastdepCXX_TRUE= 7528 am__fastdepCXX_FALSE='#' 7529 else 7530 am__fastdepCXX_TRUE='#' 7531 am__fastdepCXX_FALSE= 7532 fi 7533 7534 7535 case $ac_cv_prog_cc_stdc in #( 7536 no) : 7537 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 7538 *) : 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 7540 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 7541 if ${ac_cv_prog_cc_c99+:} false; then : 7542 $as_echo_n "(cached) " >&6 7543 else 7544 ac_cv_prog_cc_c99=no 7545 ac_save_CC=$CC 7546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7547 /* end confdefs.h. */ 7548 #include <stdarg.h> 7549 #include <stdbool.h> 7550 #include <stdlib.h> 7551 #include <wchar.h> 7552 #include <stdio.h> 7553 7554 // Check varargs macros. These examples are taken from C99 6.10.3.5. 7555 #define debug(...) fprintf (stderr, __VA_ARGS__) 7556 #define showlist(...) puts (#__VA_ARGS__) 7557 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 7558 static void 7559 test_varargs_macros (void) 7560 { 7561 int x = 1234; 7562 int y = 5678; 7563 debug ("Flag"); 7564 debug ("X = %d\n", x); 7565 showlist (The first, second, and third items.); 7566 report (x>y, "x is %d but y is %d", x, y); 7567 } 7568 7569 // Check long long types. 7570 #define BIG64 18446744073709551615ull 7571 #define BIG32 4294967295ul 7572 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 7573 #if !BIG_OK 7574 your preprocessor is broken; 7575 #endif 7576 #if BIG_OK 7577 #else 7578 your preprocessor is broken; 7579 #endif 7580 static long long int bignum = -9223372036854775807LL; 7581 static unsigned long long int ubignum = BIG64; 7582 7583 struct incomplete_array 7584 { 7585 int datasize; 7586 double data[]; 7587 }; 7588 7589 struct named_init { 7590 int number; 7591 const wchar_t *name; 7592 double average; 7593 }; 7594 7595 typedef const char *ccp; 7596 7597 static inline int 7598 test_restrict (ccp restrict text) 7599 { 7600 // See if C++-style comments work. 7601 // Iterate through items via the restricted pointer. 7602 // Also check for declarations in for loops. 7603 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 7604 continue; 7605 return 0; 7606 } 7607 7608 // Check varargs and va_copy. 7609 static void 7610 test_varargs (const char *format, ...) 7611 { 7612 va_list args; 7613 va_start (args, format); 7614 va_list args_copy; 7615 va_copy (args_copy, args); 7616 7617 const char *str; 7618 int number; 7619 float fnumber; 7620 7621 while (*format) 7622 { 7623 switch (*format++) 7624 { 7625 case 's': // string 7626 str = va_arg (args_copy, const char *); 7627 break; 7628 case 'd': // int 7629 number = va_arg (args_copy, int); 7630 break; 7631 case 'f': // float 7632 fnumber = va_arg (args_copy, double); 7633 break; 7634 default: 7635 break; 7636 } 7637 } 7638 va_end (args_copy); 7639 va_end (args); 7640 } 7641 7642 int 7643 main () 7644 { 7645 7646 // Check bool. 7647 _Bool success = false; 7648 7649 // Check restrict. 7650 if (test_restrict ("String literal") == 0) 7651 success = true; 7652 char *restrict newvar = "Another string"; 7653 7654 // Check varargs. 7655 test_varargs ("s, d' f .", "string", 65, 34.234); 7656 test_varargs_macros (); 7657 7658 // Check flexible array members. 7659 struct incomplete_array *ia = 7660 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 7661 ia->datasize = 10; 7662 for (int i = 0; i < ia->datasize; ++i) 7663 ia->data[i] = i * 1.234; 7664 7665 // Check named initializers. 7666 struct named_init ni = { 7667 .number = 34, 7668 .name = L"Test wide string", 7669 .average = 543.34343, 7670 }; 7671 7672 ni.number = 58; 7673 7674 int dynamic_array[ni.number]; 7675 dynamic_array[ni.number - 1] = 543; 7676 7677 // work around unused variable warnings 7678 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 7679 || dynamic_array[ni.number - 1] != 543); 7680 7681 ; 7682 return 0; 7683 } 7684 _ACEOF 7685 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 7686 do 7687 CC="$ac_save_CC $ac_arg" 7688 if ac_fn_c_try_compile "$LINENO"; then : 7689 ac_cv_prog_cc_c99=$ac_arg 7690 fi 7691 rm -f core conftest.err conftest.$ac_objext 7692 test "x$ac_cv_prog_cc_c99" != "xno" && break 7693 done 7694 rm -f conftest.$ac_ext 7695 CC=$ac_save_CC 7696 7697 fi 7698 # AC_CACHE_VAL 7699 case "x$ac_cv_prog_cc_c99" in 7700 x) 7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7702 $as_echo "none needed" >&6; } ;; 7703 xno) 7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7705 $as_echo "unsupported" >&6; } ;; 7706 *) 7707 CC="$CC $ac_cv_prog_cc_c99" 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 7709 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 7710 esac 7711 if test "x$ac_cv_prog_cc_c99" != xno; then : 7712 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 7713 else 7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 7715 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 7716 if ${ac_cv_prog_cc_c89+:} false; then : 7717 $as_echo_n "(cached) " >&6 7718 else 7719 ac_cv_prog_cc_c89=no 7720 ac_save_CC=$CC 7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7722 /* end confdefs.h. */ 7723 #include <stdarg.h> 7724 #include <stdio.h> 7725 struct stat; 7726 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 7727 struct buf { int x; }; 7728 FILE * (*rcsopen) (struct buf *, struct stat *, int); 7729 static char *e (p, i) 7730 char **p; 7731 int i; 7732 { 7733 return p[i]; 7734 } 7735 static char *f (char * (*g) (char **, int), char **p, ...) 7736 { 7737 char *s; 7738 va_list v; 7739 va_start (v,p); 7740 s = g (p, va_arg (v,int)); 7741 va_end (v); 7742 return s; 7743 } 7744 7745 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 7746 function prototypes and stuff, but not '\xHH' hex character constants. 7747 These don't provoke an error unfortunately, instead are silently treated 7748 as 'x'. The following induces an error, until -std is added to get 7749 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 7750 array size at least. It's necessary to write '\x00'==0 to get something 7751 that's true only with -std. */ 7752 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 7753 7754 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 7755 inside strings and character constants. */ 7756 #define FOO(x) 'x' 7757 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 7758 7759 int test (int i, double x); 7760 struct s1 {int (*f) (int a);}; 7761 struct s2 {int (*f) (double a);}; 7762 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 7763 int argc; 7764 char **argv; 7765 int 7766 main () 7767 { 7768 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 7769 ; 7770 return 0; 7771 } 7772 _ACEOF 7773 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 7774 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 7775 do 7776 CC="$ac_save_CC $ac_arg" 7777 if ac_fn_c_try_compile "$LINENO"; then : 7778 ac_cv_prog_cc_c89=$ac_arg 7779 fi 7780 rm -f core conftest.err conftest.$ac_objext 7781 test "x$ac_cv_prog_cc_c89" != "xno" && break 7782 done 7783 rm -f conftest.$ac_ext 7784 CC=$ac_save_CC 7785 7786 fi 7787 # AC_CACHE_VAL 7788 case "x$ac_cv_prog_cc_c89" in 7789 x) 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7791 $as_echo "none needed" >&6; } ;; 7792 xno) 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7794 $as_echo "unsupported" >&6; } ;; 7795 *) 7796 CC="$CC $ac_cv_prog_cc_c89" 7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 7798 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 7799 esac 7800 if test "x$ac_cv_prog_cc_c89" != xno; then : 7801 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 7802 else 7803 ac_cv_prog_cc_stdc=no 7804 fi 7805 7806 fi 7807 ;; 7808 esac 7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 7810 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 7811 if ${ac_cv_prog_cc_stdc+:} false; then : 7812 $as_echo_n "(cached) " >&6 7813 fi 7814 7815 case $ac_cv_prog_cc_stdc in #( 7816 no) : 7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7818 $as_echo "unsupported" >&6; } ;; #( 7819 '') : 7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7821 $as_echo "none needed" >&6; } ;; #( 7822 *) : 7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 7824 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 7825 esac 7826 7827 ac_ext=c 7828 ac_cpp='$CPP $CPPFLAGS' 7829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7831 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7833 $as_echo_n "checking how to run the C preprocessor... " >&6; } 7834 # On Suns, sometimes $CPP names a directory. 7835 if test -n "$CPP" && test -d "$CPP"; then 7836 CPP= 7837 fi 7838 if test -z "$CPP"; then 7839 if ${ac_cv_prog_CPP+:} false; then : 7840 $as_echo_n "(cached) " >&6 7841 else 7842 # Double quotes because CPP needs to be expanded 7843 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7844 do 7845 ac_preproc_ok=false 7846 for ac_c_preproc_warn_flag in '' yes 7847 do 7848 # Use a header file that comes with gcc, so configuring glibc 7849 # with a fresh cross-compiler works. 7850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7851 # <limits.h> exists even on freestanding compilers. 7852 # On the NeXT, cc -E runs the code through the compiler's parser, 7853 # not just through cpp. "Syntax error" is here to catch this case. 7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7855 /* end confdefs.h. */ 7856 #ifdef __STDC__ 7857 # include <limits.h> 7858 #else 7859 # include <assert.h> 7860 #endif 7861 Syntax error 7862 _ACEOF 7863 if ac_fn_c_try_cpp "$LINENO"; then : 7864 7865 else 7866 # Broken: fails on valid input. 7867 continue 7868 fi 7869 rm -f conftest.err conftest.i conftest.$ac_ext 7870 7871 # OK, works on sane cases. Now check whether nonexistent headers 7872 # can be detected and how. 7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7874 /* end confdefs.h. */ 7875 #include <ac_nonexistent.h> 7876 _ACEOF 7877 if ac_fn_c_try_cpp "$LINENO"; then : 7878 # Broken: success on invalid input. 7879 continue 7880 else 7881 # Passes both tests. 7882 ac_preproc_ok=: 7883 break 7884 fi 7885 rm -f conftest.err conftest.i conftest.$ac_ext 7886 7887 done 7888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7889 rm -f conftest.i conftest.err conftest.$ac_ext 7890 if $ac_preproc_ok; then : 7891 break 7892 fi 7893 7894 done 7895 ac_cv_prog_CPP=$CPP 7896 7897 fi 7898 CPP=$ac_cv_prog_CPP 7899 else 7900 ac_cv_prog_CPP=$CPP 7901 fi 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7903 $as_echo "$CPP" >&6; } 7904 ac_preproc_ok=false 7905 for ac_c_preproc_warn_flag in '' yes 7906 do 7907 # Use a header file that comes with gcc, so configuring glibc 7908 # with a fresh cross-compiler works. 7909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7910 # <limits.h> exists even on freestanding compilers. 7911 # On the NeXT, cc -E runs the code through the compiler's parser, 7912 # not just through cpp. "Syntax error" is here to catch this case. 7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7914 /* end confdefs.h. */ 7915 #ifdef __STDC__ 7916 # include <limits.h> 7917 #else 7918 # include <assert.h> 7919 #endif 7920 Syntax error 7921 _ACEOF 7922 if ac_fn_c_try_cpp "$LINENO"; then : 7923 7924 else 7925 # Broken: fails on valid input. 7926 continue 7927 fi 7928 rm -f conftest.err conftest.i conftest.$ac_ext 7929 7930 # OK, works on sane cases. Now check whether nonexistent headers 7931 # can be detected and how. 7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7933 /* end confdefs.h. */ 7934 #include <ac_nonexistent.h> 7935 _ACEOF 7936 if ac_fn_c_try_cpp "$LINENO"; then : 7937 # Broken: success on invalid input. 7938 continue 7939 else 7940 # Passes both tests. 7941 ac_preproc_ok=: 7942 break 7943 fi 7944 rm -f conftest.err conftest.i conftest.$ac_ext 7945 7946 done 7947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7948 rm -f conftest.i conftest.err conftest.$ac_ext 7949 if $ac_preproc_ok; then : 7950 7951 else 7952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7954 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7955 See \`config.log' for more details" "$LINENO" 5; } 7956 fi 7957 7958 ac_ext=c 7959 ac_cpp='$CPP $CPPFLAGS' 7960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7962 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7963 7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7965 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 7966 if ${ac_cv_path_SED+:} false; then : 7967 $as_echo_n "(cached) " >&6 7968 else 7969 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7970 for ac_i in 1 2 3 4 5 6 7; do 7971 ac_script="$ac_script$as_nl$ac_script" 7972 done 7973 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7974 { ac_script=; unset ac_script;} 7975 if test -z "$SED"; then 7976 ac_path_SED_found=false 7977 # Loop through the user's path and test for each of PROGNAME-LIST 7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7979 for as_dir in $PATH 7980 do 7981 IFS=$as_save_IFS 7982 test -z "$as_dir" && as_dir=. 7983 for ac_prog in sed gsed; do 7984 for ac_exec_ext in '' $ac_executable_extensions; do 7985 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7986 as_fn_executable_p "$ac_path_SED" || continue 7987 # Check for GNU ac_path_SED and select it if it is found. 7988 # Check for GNU $ac_path_SED 7989 case `"$ac_path_SED" --version 2>&1` in 7990 *GNU*) 7991 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7992 *) 7993 ac_count=0 7994 $as_echo_n 0123456789 >"conftest.in" 7995 while : 7996 do 7997 cat "conftest.in" "conftest.in" >"conftest.tmp" 7998 mv "conftest.tmp" "conftest.in" 7999 cp "conftest.in" "conftest.nl" 8000 $as_echo '' >> "conftest.nl" 8001 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 8002 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8003 as_fn_arith $ac_count + 1 && ac_count=$as_val 8004 if test $ac_count -gt ${ac_path_SED_max-0}; then 8005 # Best one so far, save it but keep looking for a better one 8006 ac_cv_path_SED="$ac_path_SED" 8007 ac_path_SED_max=$ac_count 8008 fi 8009 # 10*(2^10) chars as input seems more than enough 8010 test $ac_count -gt 10 && break 8011 done 8012 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8013 esac 8014 8015 $ac_path_SED_found && break 3 8016 done 8017 done 8018 done 8019 IFS=$as_save_IFS 8020 if test -z "$ac_cv_path_SED"; then 8021 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 8022 fi 8023 else 8024 ac_cv_path_SED=$SED 8025 fi 8026 8027 fi 8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 8029 $as_echo "$ac_cv_path_SED" >&6; } 8030 SED="$ac_cv_path_SED" 8031 rm -f conftest.sed 8032 8033 test -z "$SED" && SED=sed 8034 Xsed="$SED -e 1s/^X//" 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 8047 $as_echo_n "checking for fgrep... " >&6; } 8048 if ${ac_cv_path_FGREP+:} false; then : 8049 $as_echo_n "(cached) " >&6 8050 else 8051 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 8052 then ac_cv_path_FGREP="$GREP -F" 8053 else 8054 if test -z "$FGREP"; then 8055 ac_path_FGREP_found=false 8056 # Loop through the user's path and test for each of PROGNAME-LIST 8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8058 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8059 do 8060 IFS=$as_save_IFS 8061 test -z "$as_dir" && as_dir=. 8062 for ac_prog in fgrep; do 8063 for ac_exec_ext in '' $ac_executable_extensions; do 8064 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 8065 as_fn_executable_p "$ac_path_FGREP" || continue 8066 # Check for GNU ac_path_FGREP and select it if it is found. 8067 # Check for GNU $ac_path_FGREP 8068 case `"$ac_path_FGREP" --version 2>&1` in 8069 *GNU*) 8070 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 8071 *) 8072 ac_count=0 8073 $as_echo_n 0123456789 >"conftest.in" 8074 while : 8075 do 8076 cat "conftest.in" "conftest.in" >"conftest.tmp" 8077 mv "conftest.tmp" "conftest.in" 8078 cp "conftest.in" "conftest.nl" 8079 $as_echo 'FGREP' >> "conftest.nl" 8080 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 8081 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8082 as_fn_arith $ac_count + 1 && ac_count=$as_val 8083 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 8084 # Best one so far, save it but keep looking for a better one 8085 ac_cv_path_FGREP="$ac_path_FGREP" 8086 ac_path_FGREP_max=$ac_count 8087 fi 8088 # 10*(2^10) chars as input seems more than enough 8089 test $ac_count -gt 10 && break 8090 done 8091 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8092 esac 8093 8094 $ac_path_FGREP_found && break 3 8095 done 8096 done 8097 done 8098 IFS=$as_save_IFS 8099 if test -z "$ac_cv_path_FGREP"; then 8100 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8101 fi 8102 else 8103 ac_cv_path_FGREP=$FGREP 8104 fi 8105 8106 fi 8107 fi 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 8109 $as_echo "$ac_cv_path_FGREP" >&6; } 8110 FGREP="$ac_cv_path_FGREP" 8111 8112 8113 test -z "$GREP" && GREP=grep 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8132 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 8133 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 8134 8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 8136 $as_echo_n "checking how to print strings... " >&6; } 8137 # Test print first, because it will be a builtin if present. 8138 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 8139 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 8140 ECHO='print -r --' 8141 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 8142 ECHO='printf %s\n' 8143 else 8144 # Use this function as a fallback that always works. 8145 func_fallback_echo () 8146 { 8147 eval 'cat <<_LTECHO_EOF 8148 $1 8149 _LTECHO_EOF' 8150 } 8151 ECHO='func_fallback_echo' 8152 fi 8153 8154 # func_echo_all arg... 8155 # Invoke $ECHO with all args, space-separated. 8156 func_echo_all () 8157 { 8158 $ECHO "" 8159 } 8160 8161 case $ECHO in 8162 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 8163 $as_echo "printf" >&6; } ;; 8164 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 8165 $as_echo "print -r" >&6; } ;; 8166 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 8167 $as_echo "cat" >&6; } ;; 8168 esac 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 # Check whether --with-gnu-ld was given. 8186 if test "${with_gnu_ld+set}" = set; then : 8187 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 8188 else 8189 with_gnu_ld=no 8190 fi 8191 8192 ac_prog=ld 8193 if test yes = "$GCC"; then 8194 # Check if gcc -print-prog-name=ld gives a path. 8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 8196 $as_echo_n "checking for ld used by $CC... " >&6; } 8197 case $host in 8198 *-*-mingw*) 8199 # gcc leaves a trailing carriage return, which upsets mingw 8200 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8201 *) 8202 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8203 esac 8204 case $ac_prog in 8205 # Accept absolute paths. 8206 [\\/]* | ?:[\\/]*) 8207 re_direlt='/[^/][^/]*/\.\./' 8208 # Canonicalize the pathname of ld 8209 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 8210 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 8211 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 8212 done 8213 test -z "$LD" && LD=$ac_prog 8214 ;; 8215 "") 8216 # If it fails, then pretend we aren't using GCC. 8217 ac_prog=ld 8218 ;; 8219 *) 8220 # If it is relative, then search for the first ld in PATH. 8221 with_gnu_ld=unknown 8222 ;; 8223 esac 8224 elif test yes = "$with_gnu_ld"; then 8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8226 $as_echo_n "checking for GNU ld... " >&6; } 8227 else 8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8229 $as_echo_n "checking for non-GNU ld... " >&6; } 8230 fi 8231 if ${lt_cv_path_LD+:} false; then : 8232 $as_echo_n "(cached) " >&6 8233 else 8234 if test -z "$LD"; then 8235 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8236 for ac_dir in $PATH; do 8237 IFS=$lt_save_ifs 8238 test -z "$ac_dir" && ac_dir=. 8239 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8240 lt_cv_path_LD=$ac_dir/$ac_prog 8241 # Check to see if the program is GNU ld. I'd rather use --version, 8242 # but apparently some variants of GNU ld only accept -v. 8243 # Break only if it was the GNU/non-GNU ld that we prefer. 8244 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8245 *GNU* | *'with BFD'*) 8246 test no != "$with_gnu_ld" && break 8247 ;; 8248 *) 8249 test yes != "$with_gnu_ld" && break 8250 ;; 8251 esac 8252 fi 8253 done 8254 IFS=$lt_save_ifs 8255 else 8256 lt_cv_path_LD=$LD # Let the user override the test with a path. 8257 fi 8258 fi 8259 8260 LD=$lt_cv_path_LD 8261 if test -n "$LD"; then 8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8263 $as_echo "$LD" >&6; } 8264 else 8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8266 $as_echo "no" >&6; } 8267 fi 8268 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8270 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 8271 if ${lt_cv_prog_gnu_ld+:} false; then : 8272 $as_echo_n "(cached) " >&6 8273 else 8274 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8275 case `$LD -v 2>&1 </dev/null` in 8276 *GNU* | *'with BFD'*) 8277 lt_cv_prog_gnu_ld=yes 8278 ;; 8279 *) 8280 lt_cv_prog_gnu_ld=no 8281 ;; 8282 esac 8283 fi 8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 8285 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 8286 with_gnu_ld=$lt_cv_prog_gnu_ld 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 8298 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 8299 if ${ac_cv_prog_cc_c99+:} false; then : 8300 $as_echo_n "(cached) " >&6 8301 else 8302 ac_cv_prog_cc_c99=no 8303 ac_save_CC=$CC 8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8305 /* end confdefs.h. */ 8306 #include <stdarg.h> 8307 #include <stdbool.h> 8308 #include <stdlib.h> 8309 #include <wchar.h> 8310 #include <stdio.h> 8311 8312 // Check varargs macros. These examples are taken from C99 6.10.3.5. 8313 #define debug(...) fprintf (stderr, __VA_ARGS__) 8314 #define showlist(...) puts (#__VA_ARGS__) 8315 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 8316 static void 8317 test_varargs_macros (void) 8318 { 8319 int x = 1234; 8320 int y = 5678; 8321 debug ("Flag"); 8322 debug ("X = %d\n", x); 8323 showlist (The first, second, and third items.); 8324 report (x>y, "x is %d but y is %d", x, y); 8325 } 8326 8327 // Check long long types. 8328 #define BIG64 18446744073709551615ull 8329 #define BIG32 4294967295ul 8330 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 8331 #if !BIG_OK 8332 your preprocessor is broken; 8333 #endif 8334 #if BIG_OK 8335 #else 8336 your preprocessor is broken; 8337 #endif 8338 static long long int bignum = -9223372036854775807LL; 8339 static unsigned long long int ubignum = BIG64; 8340 8341 struct incomplete_array 8342 { 8343 int datasize; 8344 double data[]; 8345 }; 8346 8347 struct named_init { 8348 int number; 8349 const wchar_t *name; 8350 double average; 8351 }; 8352 8353 typedef const char *ccp; 8354 8355 static inline int 8356 test_restrict (ccp restrict text) 8357 { 8358 // See if C++-style comments work. 8359 // Iterate through items via the restricted pointer. 8360 // Also check for declarations in for loops. 8361 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 8362 continue; 8363 return 0; 8364 } 8365 8366 // Check varargs and va_copy. 8367 static void 8368 test_varargs (const char *format, ...) 8369 { 8370 va_list args; 8371 va_start (args, format); 8372 va_list args_copy; 8373 va_copy (args_copy, args); 8374 8375 const char *str; 8376 int number; 8377 float fnumber; 8378 8379 while (*format) 8380 { 8381 switch (*format++) 8382 { 8383 case 's': // string 8384 str = va_arg (args_copy, const char *); 8385 break; 8386 case 'd': // int 8387 number = va_arg (args_copy, int); 8388 break; 8389 case 'f': // float 8390 fnumber = va_arg (args_copy, double); 8391 break; 8392 default: 8393 break; 8394 } 8395 } 8396 va_end (args_copy); 8397 va_end (args); 8398 } 8399 8400 int 8401 main () 8402 { 8403 8404 // Check bool. 8405 _Bool success = false; 8406 8407 // Check restrict. 8408 if (test_restrict ("String literal") == 0) 8409 success = true; 8410 char *restrict newvar = "Another string"; 8411 8412 // Check varargs. 8413 test_varargs ("s, d' f .", "string", 65, 34.234); 8414 test_varargs_macros (); 8415 8416 // Check flexible array members. 8417 struct incomplete_array *ia = 8418 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 8419 ia->datasize = 10; 8420 for (int i = 0; i < ia->datasize; ++i) 8421 ia->data[i] = i * 1.234; 8422 8423 // Check named initializers. 8424 struct named_init ni = { 8425 .number = 34, 8426 .name = L"Test wide string", 8427 .average = 543.34343, 8428 }; 8429 8430 ni.number = 58; 8431 8432 int dynamic_array[ni.number]; 8433 dynamic_array[ni.number - 1] = 543; 8434 8435 // work around unused variable warnings 8436 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 8437 || dynamic_array[ni.number - 1] != 543); 8438 8439 ; 8440 return 0; 8441 } 8442 _ACEOF 8443 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 8444 do 8445 CC="$ac_save_CC $ac_arg" 8446 if ac_fn_c_try_compile "$LINENO"; then : 8447 ac_cv_prog_cc_c99=$ac_arg 8448 fi 8449 rm -f core conftest.err conftest.$ac_objext 8450 test "x$ac_cv_prog_cc_c99" != "xno" && break 8451 done 8452 rm -f conftest.$ac_ext 8453 CC=$ac_save_CC 8454 8455 fi 8456 # AC_CACHE_VAL 8457 case "x$ac_cv_prog_cc_c99" in 8458 x) 8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 8460 $as_echo "none needed" >&6; } ;; 8461 xno) 8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 8463 $as_echo "unsupported" >&6; } ;; 8464 *) 8465 CC="$CC $ac_cv_prog_cc_c99" 8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 8467 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 8468 esac 8469 if test "x$ac_cv_prog_cc_c99" != xno; then : 8470 8471 fi 8472 8473 8474 8475 ac_ext=c 8476 ac_cpp='$CPP $CPPFLAGS' 8477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8479 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8480 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 8482 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; } 8483 if ${ac_cv_cflags_warn_all+:} false; then : 8484 $as_echo_n "(cached) " >&6 8485 else 8486 ac_cv_cflags_warn_all="no, unknown" 8487 ac_save_CFLAGS="$CFLAGS" 8488 for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" # 8489 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8491 /* end confdefs.h. */ 8492 8493 int 8494 main () 8495 { 8496 8497 ; 8498 return 0; 8499 } 8500 _ACEOF 8501 if ac_fn_c_try_compile "$LINENO"; then : 8502 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 8503 fi 8504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8505 done 8506 CFLAGS="$ac_save_CFLAGS" 8507 8508 fi 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 8510 $as_echo "$ac_cv_cflags_warn_all" >&6; } 8511 8512 8513 case ".$ac_cv_cflags_warn_all" in 8514 .ok|.ok,*) ;; 8515 .|.no|.no,*) ;; 8516 *) 8517 if ${CFLAGS+:} false; then : 8518 8519 case " $CFLAGS " in #( 8520 *" $ac_cv_cflags_warn_all "*) : 8521 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5 8522 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5 8523 ac_status=$? 8524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8525 test $ac_status = 0; } ;; #( 8526 *) : 8527 8528 as_fn_append CFLAGS " $ac_cv_cflags_warn_all" 8529 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 8530 (: CFLAGS="$CFLAGS") 2>&5 8531 ac_status=$? 8532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8533 test $ac_status = 0; } 8534 ;; 8535 esac 8536 8537 else 8538 8539 CFLAGS=$ac_cv_cflags_warn_all 8540 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 8541 (: CFLAGS="$CFLAGS") 2>&5 8542 ac_status=$? 8543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8544 test $ac_status = 0; } 8545 8546 fi 8547 ;; 8548 esac 8549 8550 ac_ext=c 8551 ac_cpp='$CPP $CPPFLAGS' 8552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8554 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8555 8556 8557 8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 8559 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 8560 set x ${MAKE-make} 8561 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 8562 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 8563 $as_echo_n "(cached) " >&6 8564 else 8565 cat >conftest.make <<\_ACEOF 8566 SHELL = /bin/sh 8567 all: 8568 @echo '@@@%%%=$(MAKE)=@@@%%%' 8569 _ACEOF 8570 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 8571 case `${MAKE-make} -f conftest.make 2>/dev/null` in 8572 *@@@%%%=?*=@@@%%%*) 8573 eval ac_cv_prog_make_${ac_make}_set=yes;; 8574 *) 8575 eval ac_cv_prog_make_${ac_make}_set=no;; 8576 esac 8577 rm -f conftest.make 8578 fi 8579 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8581 $as_echo "yes" >&6; } 8582 SET_MAKE= 8583 else 8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8585 $as_echo "no" >&6; } 8586 SET_MAKE="MAKE=${MAKE-make}" 8587 fi 8588 8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8590 $as_echo_n "checking whether ln -s works... " >&6; } 8591 LN_S=$as_ln_s 8592 if test "$LN_S" = "ln -s"; then 8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8594 $as_echo "yes" >&6; } 8595 else 8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8597 $as_echo "no, using $LN_S" >&6; } 8598 fi 8599 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 8601 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 8602 if ${ac_cv_path_SED+:} false; then : 8603 $as_echo_n "(cached) " >&6 8604 else 8605 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 8606 for ac_i in 1 2 3 4 5 6 7; do 8607 ac_script="$ac_script$as_nl$ac_script" 8608 done 8609 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 8610 { ac_script=; unset ac_script;} 8611 if test -z "$SED"; then 8612 ac_path_SED_found=false 8613 # Loop through the user's path and test for each of PROGNAME-LIST 8614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8615 for as_dir in $PATH 8616 do 8617 IFS=$as_save_IFS 8618 test -z "$as_dir" && as_dir=. 8619 for ac_prog in sed gsed; do 8620 for ac_exec_ext in '' $ac_executable_extensions; do 8621 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 8622 as_fn_executable_p "$ac_path_SED" || continue 8623 # Check for GNU ac_path_SED and select it if it is found. 8624 # Check for GNU $ac_path_SED 8625 case `"$ac_path_SED" --version 2>&1` in 8626 *GNU*) 8627 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 8628 *) 8629 ac_count=0 8630 $as_echo_n 0123456789 >"conftest.in" 8631 while : 8632 do 8633 cat "conftest.in" "conftest.in" >"conftest.tmp" 8634 mv "conftest.tmp" "conftest.in" 8635 cp "conftest.in" "conftest.nl" 8636 $as_echo '' >> "conftest.nl" 8637 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 8638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8639 as_fn_arith $ac_count + 1 && ac_count=$as_val 8640 if test $ac_count -gt ${ac_path_SED_max-0}; then 8641 # Best one so far, save it but keep looking for a better one 8642 ac_cv_path_SED="$ac_path_SED" 8643 ac_path_SED_max=$ac_count 8644 fi 8645 # 10*(2^10) chars as input seems more than enough 8646 test $ac_count -gt 10 && break 8647 done 8648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8649 esac 8650 8651 $ac_path_SED_found && break 3 8652 done 8653 done 8654 done 8655 IFS=$as_save_IFS 8656 if test -z "$ac_cv_path_SED"; then 8657 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 8658 fi 8659 else 8660 ac_cv_path_SED=$SED 8661 fi 8662 8663 fi 8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 8665 $as_echo "$ac_cv_path_SED" >&6; } 8666 SED="$ac_cv_path_SED" 8667 rm -f conftest.sed 8668 8669 for ac_prog in gawk mawk nawk awk 8670 do 8671 # Extract the first word of "$ac_prog", so it can be a program name with args. 8672 set dummy $ac_prog; ac_word=$2 8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8674 $as_echo_n "checking for $ac_word... " >&6; } 8675 if ${ac_cv_prog_AWK+:} false; then : 8676 $as_echo_n "(cached) " >&6 8677 else 8678 if test -n "$AWK"; then 8679 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8680 else 8681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8682 for as_dir in $PATH 8683 do 8684 IFS=$as_save_IFS 8685 test -z "$as_dir" && as_dir=. 8686 for ac_exec_ext in '' $ac_executable_extensions; do 8687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8688 ac_cv_prog_AWK="$ac_prog" 8689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8690 break 2 8691 fi 8692 done 8693 done 8694 IFS=$as_save_IFS 8695 8696 fi 8697 fi 8698 AWK=$ac_cv_prog_AWK 8699 if test -n "$AWK"; then 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8701 $as_echo "$AWK" >&6; } 8702 else 8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8704 $as_echo "no" >&6; } 8705 fi 8706 8707 8708 test -n "$AWK" && break 8709 done 8710 8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5 8712 $as_echo_n "checking if malloc debugging is wanted... " >&6; } 8713 8714 # Check whether --with-dmalloc was given. 8715 if test "${with_dmalloc+set}" = set; then : 8716 withval=$with_dmalloc; if test "$withval" = yes; then 8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8718 $as_echo "yes" >&6; } 8719 8720 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h 8721 8722 LIBS="$LIBS -ldmalloc" 8723 LDFLAGS="$LDFLAGS -g" 8724 else 8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8726 $as_echo "no" >&6; } 8727 fi 8728 else 8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8730 $as_echo "no" >&6; } 8731 fi 8732 8733 8734 8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 8736 $as_echo_n "checking for __attribute__... " >&6; } 8737 if ${ax_cv___attribute__+:} false; then : 8738 $as_echo_n "(cached) " >&6 8739 else 8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8741 /* end confdefs.h. */ 8742 #include <stdlib.h> 8743 static void foo(void) __attribute__ ((unused)); 8744 static void 8745 foo(void) { 8746 exit(1); 8747 } 8748 8749 int 8750 main () 8751 { 8752 8753 ; 8754 return 0; 8755 } 8756 _ACEOF 8757 if ac_fn_c_try_compile "$LINENO"; then : 8758 ax_cv___attribute__=yes 8759 else 8760 ax_cv___attribute__=no 8761 8762 fi 8763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8764 8765 fi 8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5 8767 $as_echo "$ax_cv___attribute__" >&6; } 8768 if test "$ax_cv___attribute__" = "yes"; then 8769 8770 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h 8771 8772 fi 8773 8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 8775 $as_echo_n "checking for C compiler vendor... " >&6; } 8776 if ${ax_cv_c_compiler_vendor+:} false; then : 8777 $as_echo_n "(cached) " >&6 8778 else 8779 # note: don't check for gcc first since some other compilers define __GNUC__ 8780 vendors="intel: __ICC,__ECC,__INTEL_COMPILER 8781 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ 8782 pathscale: __PATHCC__,__PATHSCALE__ 8783 clang: __clang__ 8784 cray: _CRAYC 8785 fujitsu: __FUJITSU 8786 gnu: __GNUC__ 8787 sun: __SUNPRO_C,__SUNPRO_CC 8788 hp: __HP_cc,__HP_aCC 8789 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER 8790 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__ 8791 comeau: __COMO__ 8792 kai: __KCC 8793 lcc: __LCC__ 8794 sgi: __sgi,sgi 8795 microsoft: _MSC_VER 8796 metrowerks: __MWERKS__ 8797 watcom: __WATCOMC__ 8798 portland: __PGI 8799 tcc: __TINYC__ 8800 unknown: UNKNOWN" 8801 for ventest in $vendors; do 8802 case $ventest in 8803 *:) vendor=$ventest; continue ;; 8804 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;; 8805 esac 8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8807 /* end confdefs.h. */ 8808 8809 int 8810 main () 8811 { 8812 8813 #if !($vencpp) 8814 thisisanerror; 8815 #endif 8816 8817 ; 8818 return 0; 8819 } 8820 _ACEOF 8821 if ac_fn_c_try_compile "$LINENO"; then : 8822 break 8823 fi 8824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8825 done 8826 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` 8827 8828 fi 8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 8830 $as_echo "$ax_cv_c_compiler_vendor" >&6; } 8831 8832 8833 8834 8835 8836 8837 8838 # Check whether --with-gcc-arch was given. 8839 if test "${with_gcc_arch+set}" = set; then : 8840 withval=$with_gcc_arch; ax_gcc_arch=$withval 8841 else 8842 ax_gcc_arch=yes 8843 fi 8844 8845 8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5 8847 $as_echo_n "checking for gcc architecture flag... " >&6; } 8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 8849 $as_echo "" >&6; } 8850 if ${ax_cv_gcc_archflag+:} false; then : 8851 $as_echo_n "(cached) " >&6 8852 else 8853 8854 ax_cv_gcc_archflag="unknown" 8855 8856 if test "$GCC" = yes; then 8857 8858 if test "x$ax_gcc_arch" = xyes; then 8859 ax_gcc_arch="" 8860 if test "$cross_compiling" = no; then 8861 case $host_cpu in 8862 i[3456]86*|x86_64*|amd64*) # use cpuid codes 8863 8864 ac_ext=c 8865 ac_cpp='$CPP $CPPFLAGS' 8866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8868 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8869 8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5 8871 $as_echo_n "checking for x86 cpuid 0 output... " >&6; } 8872 if ${ax_cv_gcc_x86_cpuid_0+:} false; then : 8873 $as_echo_n "(cached) " >&6 8874 else 8875 if test "$cross_compiling" = yes; then : 8876 ax_cv_gcc_x86_cpuid_0=unknown 8877 else 8878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8879 /* end confdefs.h. */ 8880 #include <stdio.h> 8881 int 8882 main () 8883 { 8884 8885 int op = 0, level = 0, eax, ebx, ecx, edx; 8886 FILE *f; 8887 __asm__ __volatile__ ("cpuid" 8888 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 8889 : "a" (op), "2" (level)); 8890 8891 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 8892 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 8893 fclose(f); 8894 return 0; 8895 8896 ; 8897 return 0; 8898 } 8899 _ACEOF 8900 if ac_fn_c_try_run "$LINENO"; then : 8901 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid 8902 else 8903 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid 8904 fi 8905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8906 conftest.$ac_objext conftest.beam conftest.$ac_ext 8907 fi 8908 8909 fi 8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5 8911 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; } 8912 ac_ext=c 8913 ac_cpp='$CPP $CPPFLAGS' 8914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8916 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8917 8918 8919 8920 8921 ac_ext=c 8922 ac_cpp='$CPP $CPPFLAGS' 8923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8925 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8926 8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5 8928 $as_echo_n "checking for x86 cpuid 1 output... " >&6; } 8929 if ${ax_cv_gcc_x86_cpuid_1+:} false; then : 8930 $as_echo_n "(cached) " >&6 8931 else 8932 if test "$cross_compiling" = yes; then : 8933 ax_cv_gcc_x86_cpuid_1=unknown 8934 else 8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8936 /* end confdefs.h. */ 8937 #include <stdio.h> 8938 int 8939 main () 8940 { 8941 8942 int op = 1, level = 0, eax, ebx, ecx, edx; 8943 FILE *f; 8944 __asm__ __volatile__ ("cpuid" 8945 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 8946 : "a" (op), "2" (level)); 8947 8948 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 8949 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 8950 fclose(f); 8951 return 0; 8952 8953 ; 8954 return 0; 8955 } 8956 _ACEOF 8957 if ac_fn_c_try_run "$LINENO"; then : 8958 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid 8959 else 8960 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid 8961 fi 8962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8963 conftest.$ac_objext conftest.beam conftest.$ac_ext 8964 fi 8965 8966 fi 8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5 8968 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; } 8969 ac_ext=c 8970 ac_cpp='$CPP $CPPFLAGS' 8971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8973 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8974 8975 8976 8977 case $ax_cv_gcc_x86_cpuid_0 in 8978 *:756e6547:6c65746e:49656e69) # Intel 8979 case $ax_cv_gcc_x86_cpuid_1 in 8980 *5[4578]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;; 8981 *5[123]?:*:*:*) ax_gcc_arch=pentium ;; 8982 *0?61?:*:*:*|?61?:*:*:*|61?:*:*:*) ax_gcc_arch=pentiumpro ;; 8983 *0?6[356]?:*:*:*|?6[356]?:*:*:*|6[356]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; 8984 *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; 8985 *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;; 8986 *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) ax_gcc_arch="yonah pentium-m pentium3 pentiumpro" ;; 8987 *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;; 8988 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;; 8989 *1?6[aef]?:*:*:*|*2?6e?:*:*:*) ax_gcc_arch="nehalem corei7 core2 pentium-m pentium3 pentiumpro" ;; 8990 *2?6[5cf]?:*:*:*) ax_gcc_arch="westmere corei7 core2 pentium-m pentium3 pentiumpro" ;; 8991 *2?6[ad]?:*:*:*) ax_gcc_arch="sandybridge corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;; 8992 *3?6[ae]?:*:*:*) ax_gcc_arch="ivybridge core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;; 8993 *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) ax_gcc_arch="haswell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;; 8994 *3?6d?:*:*:*) ax_gcc_arch="broadwell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;; 8995 *1?6c?:*:*:*|*2?6[67]?:*:*:*|*3?6[56]?:*:*:*) ax_gcc_arch="bonnell atom core2 pentium-m pentium3 pentiumpro" ;; 8996 *3?67?:*:*:*|*[45]?6[ad]?:*:*:*) ax_gcc_arch="silvermont atom core2 pentium-m pentium3 pentiumpro" ;; 8997 *000?f[012]?:*:*:*|?f[012]?:*:*:*|f[012]?:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;; 8998 *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) ax_gcc_arch="nocona prescott pentium4 pentiumpro" ;; 8999 # fallback 9000 *5??:*:*:*) ax_gcc_arch=pentium ;; 9001 *??6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;; 9002 *6??:*:*:*) ax_gcc_arch=pentiumpro ;; 9003 *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;; 9004 esac ;; 9005 *:68747541:444d4163:69746e65) # AMD 9006 case $ax_cv_gcc_x86_cpuid_1 in 9007 *5[67]?:*:*:*) ax_gcc_arch=k6 ;; 9008 *5[8]?:*:*:*) ax_gcc_arch="k6-2 k6" ;; 9009 *5[9d]?:*:*:*) ax_gcc_arch="k6-3 k6" ;; 9010 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;; 9011 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;; 9012 *6[678a]?:*:*:*) ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;; 9013 *000?f[4578bcef]?:*:*:*|?f[4578bcef]?:*:*:*|f[4578bcef]?:*:*:*|*001?f[4578bcf]?:*:*:*|1?f[4578bcf]?:*:*:*) ax_gcc_arch="athlon64 k8" ;; 9014 *002?f[13457bcf]?:*:*:*|2?f[13457bcf]?:*:*:*|*004?f[138bcf]?:*:*:*|4?f[138bcf]?:*:*:*|*005?f[df]?:*:*:*|5?f[df]?:*:*:*|*006?f[8bcf]?:*:*:*|6?f[8bcf]?:*:*:*|*007?f[cf]?:*:*:*|7?f[cf]?:*:*:*|*00c?f1?:*:*:*|c?f1?:*:*:*|*020?f3?:*:*:*|20?f3?:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;; 9015 *010?f[245689a]?:*:*:*|10?f[245689a]?:*:*:*|*030?f1?:*:*:*|30?f1?:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;; 9016 *050?f[12]?:*:*:*|50?f[12]?:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;; 9017 *060?f1?:*:*:*|60?f1?:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;; 9018 *060?f2?:*:*:*|60?f2?:*:*:*|*061?f[03]?:*:*:*|61?f[03]?:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;; 9019 *063?f0?:*:*:*|63?f0?:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;; 9020 *07[03]?f0?:*:*:*|7[03]?f0?:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;; 9021 # fallback 9022 *0[13]??f??:*:*:*|[13]??f??:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;; 9023 *020?f??:*:*:*|20?f??:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;; 9024 *05??f??:*:*:*|5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;; 9025 *060?f??:*:*:*|60?f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;; 9026 *061?f??:*:*:*|61?f??:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;; 9027 *06??f??:*:*:*|6??f??:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;; 9028 *070?f??:*:*:*|70?f??:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;; 9029 *???f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;; 9030 esac ;; 9031 *:746e6543:736c7561:48727561) # IDT / VIA (Centaur) 9032 case $ax_cv_gcc_x86_cpuid_1 in 9033 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;; 9034 *5[89]?:*:*:*) ax_gcc_arch=winchip2 ;; 9035 *66?:*:*:*) ax_gcc_arch=winchip2 ;; 9036 *6[78]?:*:*:*) ax_gcc_arch=c3 ;; 9037 *6[9adf]?:*:*:*) ax_gcc_arch="c3-2 c3" ;; 9038 esac ;; 9039 esac 9040 if test x"$ax_gcc_arch" = x; then # fallback 9041 case $host_cpu in 9042 i586*) ax_gcc_arch=pentium ;; 9043 i686*) ax_gcc_arch=pentiumpro ;; 9044 esac 9045 fi 9046 ;; 9047 9048 sparc*) 9049 # Extract the first word of "prtdiag", so it can be a program name with args. 9050 set dummy prtdiag; ac_word=$2 9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9052 $as_echo_n "checking for $ac_word... " >&6; } 9053 if ${ac_cv_path_PRTDIAG+:} false; then : 9054 $as_echo_n "(cached) " >&6 9055 else 9056 case $PRTDIAG in 9057 [\\/]* | ?:[\\/]*) 9058 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path. 9059 ;; 9060 *) 9061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9062 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/" 9063 for as_dir in $as_dummy 9064 do 9065 IFS=$as_save_IFS 9066 test -z "$as_dir" && as_dir=. 9067 for ac_exec_ext in '' $ac_executable_extensions; do 9068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9069 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext" 9070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9071 break 2 9072 fi 9073 done 9074 done 9075 IFS=$as_save_IFS 9076 9077 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag" 9078 ;; 9079 esac 9080 fi 9081 PRTDIAG=$ac_cv_path_PRTDIAG 9082 if test -n "$PRTDIAG"; then 9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5 9084 $as_echo "$PRTDIAG" >&6; } 9085 else 9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9087 $as_echo "no" >&6; } 9088 fi 9089 9090 9091 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null` 9092 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters` 9093 case $cputype in 9094 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;; 9095 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;; 9096 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;; 9097 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;; 9098 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;; 9099 *cypress*) ax_gcc_arch=cypress ;; 9100 esac ;; 9101 9102 alphaev5) ax_gcc_arch=ev5 ;; 9103 alphaev56) ax_gcc_arch=ev56 ;; 9104 alphapca56) ax_gcc_arch="pca56 ev56" ;; 9105 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;; 9106 alphaev6) ax_gcc_arch=ev6 ;; 9107 alphaev67) ax_gcc_arch=ev67 ;; 9108 alphaev68) ax_gcc_arch="ev68 ev67" ;; 9109 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;; 9110 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;; 9111 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;; 9112 9113 powerpc*) 9114 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | $SED 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null` 9115 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'` 9116 case $cputype in 9117 *750*) ax_gcc_arch="750 G3" ;; 9118 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;; 9119 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;; 9120 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;; 9121 *970*) ax_gcc_arch="970 G5 power4";; 9122 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";; 9123 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";; 9124 603ev|8240) ax_gcc_arch="$cputype 603e 603";; 9125 *) ax_gcc_arch=$cputype ;; 9126 esac 9127 ax_gcc_arch="$ax_gcc_arch powerpc" 9128 ;; 9129 esac 9130 fi # not cross-compiling 9131 fi # guess arch 9132 9133 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then 9134 if test "xyes" = xyes; then # if we require portable code 9135 flag_prefixes="-mtune=" 9136 if test "x$ax_cv_c_compiler_vendor" = xclang; then flag_prefixes="-march="; fi 9137 # -mcpu=$arch and m$arch generate nonportable code on every arch except 9138 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr. 9139 case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac 9140 else 9141 flag_prefixes="-march= -mcpu= -m" 9142 fi 9143 for flag_prefix in $flag_prefixes; do 9144 for arch in $ax_gcc_arch; do 9145 flag="$flag_prefix$arch" 9146 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 9148 $as_echo_n "checking whether C compiler accepts $flag... " >&6; } 9149 if eval \${$as_CACHEVAR+:} false; then : 9150 $as_echo_n "(cached) " >&6 9151 else 9152 9153 ax_check_save_flags=$CFLAGS 9154 CFLAGS="$CFLAGS $flag" 9155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9156 /* end confdefs.h. */ 9157 9158 int 9159 main () 9160 { 9161 9162 ; 9163 return 0; 9164 } 9165 _ACEOF 9166 if ac_fn_c_try_compile "$LINENO"; then : 9167 eval "$as_CACHEVAR=yes" 9168 else 9169 eval "$as_CACHEVAR=no" 9170 fi 9171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9172 CFLAGS=$ax_check_save_flags 9173 fi 9174 eval ac_res=\$$as_CACHEVAR 9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9176 $as_echo "$ac_res" >&6; } 9177 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 9178 if test "x$ax_cv_c_compiler_vendor" = xclang; then 9179 if test "xyes" = xyes; then 9180 if test "x$flag" = "x-march=$arch"; then flag=-mtune=$arch; fi 9181 fi 9182 fi; ax_cv_gcc_archflag=$flag; break 9183 else 9184 : 9185 fi 9186 9187 done 9188 test "x$ax_cv_gcc_archflag" = xunknown || break 9189 done 9190 fi 9191 9192 fi # $GCC=yes 9193 9194 fi 9195 9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5 9197 $as_echo_n "checking for gcc architecture flag... " >&6; } 9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5 9199 $as_echo "$ax_cv_gcc_archflag" >&6; } 9200 if test "x$ax_cv_gcc_archflag" = xunknown; then 9201 : 9202 else 9203 CFLAGS="$CFLAGS $ax_cv_gcc_archflag" 9204 fi 9205 9206 9207 9208 9209 9210 9211 9212 9213 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 9214 if test -n "$ac_tool_prefix"; then 9215 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 9216 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9218 $as_echo_n "checking for $ac_word... " >&6; } 9219 if ${ac_cv_path_PKG_CONFIG+:} false; then : 9220 $as_echo_n "(cached) " >&6 9221 else 9222 case $PKG_CONFIG in 9223 [\\/]* | ?:[\\/]*) 9224 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9225 ;; 9226 *) 9227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9228 for as_dir in $PATH 9229 do 9230 IFS=$as_save_IFS 9231 test -z "$as_dir" && as_dir=. 9232 for ac_exec_ext in '' $ac_executable_extensions; do 9233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9234 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9236 break 2 9237 fi 9238 done 9239 done 9240 IFS=$as_save_IFS 9241 9242 ;; 9243 esac 9244 fi 9245 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9246 if test -n "$PKG_CONFIG"; then 9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9248 $as_echo "$PKG_CONFIG" >&6; } 9249 else 9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9251 $as_echo "no" >&6; } 9252 fi 9253 9254 9255 fi 9256 if test -z "$ac_cv_path_PKG_CONFIG"; then 9257 ac_pt_PKG_CONFIG=$PKG_CONFIG 9258 # Extract the first word of "pkg-config", so it can be a program name with args. 9259 set dummy pkg-config; ac_word=$2 9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9261 $as_echo_n "checking for $ac_word... " >&6; } 9262 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 9263 $as_echo_n "(cached) " >&6 9264 else 9265 case $ac_pt_PKG_CONFIG in 9266 [\\/]* | ?:[\\/]*) 9267 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 9268 ;; 9269 *) 9270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9271 for as_dir in $PATH 9272 do 9273 IFS=$as_save_IFS 9274 test -z "$as_dir" && as_dir=. 9275 for ac_exec_ext in '' $ac_executable_extensions; do 9276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9277 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9279 break 2 9280 fi 9281 done 9282 done 9283 IFS=$as_save_IFS 9284 9285 ;; 9286 esac 9287 fi 9288 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 9289 if test -n "$ac_pt_PKG_CONFIG"; then 9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 9291 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 9292 else 9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9294 $as_echo "no" >&6; } 9295 fi 9296 9297 if test "x$ac_pt_PKG_CONFIG" = x; then 9298 PKG_CONFIG="" 9299 else 9300 case $cross_compiling:$ac_tool_warned in 9301 yes:) 9302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9304 ac_tool_warned=yes ;; 9305 esac 9306 PKG_CONFIG=$ac_pt_PKG_CONFIG 9307 fi 9308 else 9309 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 9310 fi 9311 9312 fi 9313 if test -n "$PKG_CONFIG"; then 9314 _pkg_min_version=0.20 9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 9316 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 9317 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9319 $as_echo "yes" >&6; } 9320 else 9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9322 $as_echo "no" >&6; } 9323 PKG_CONFIG="" 9324 fi 9325 fi 9326 9327 9328 9329 # Test for 64-bit build. 9330 # The cast to long int works around a bug in the HP C Compiler 9331 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9332 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9333 # This bug is HP SR number 8606223364. 9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 9335 $as_echo_n "checking size of size_t... " >&6; } 9336 if ${ac_cv_sizeof_size_t+:} false; then : 9337 $as_echo_n "(cached) " >&6 9338 else 9339 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 9340 9341 else 9342 if test "$ac_cv_type_size_t" = yes; then 9343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9345 as_fn_error 77 "cannot compute sizeof (size_t) 9346 See \`config.log' for more details" "$LINENO" 5; } 9347 else 9348 ac_cv_sizeof_size_t=0 9349 fi 9350 fi 9351 9352 fi 9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 9354 $as_echo "$ac_cv_sizeof_size_t" >&6; } 9355 9356 9357 9358 cat >>confdefs.h <<_ACEOF 9359 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 9360 _ACEOF 9361 9362 9363 9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 9365 $as_echo_n "checking for C compiler vendor... " >&6; } 9366 if ${ax_cv_c_compiler_vendor+:} false; then : 9367 $as_echo_n "(cached) " >&6 9368 else 9369 # note: don't check for gcc first since some other compilers define __GNUC__ 9370 vendors="intel: __ICC,__ECC,__INTEL_COMPILER 9371 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ 9372 pathscale: __PATHCC__,__PATHSCALE__ 9373 clang: __clang__ 9374 cray: _CRAYC 9375 fujitsu: __FUJITSU 9376 gnu: __GNUC__ 9377 sun: __SUNPRO_C,__SUNPRO_CC 9378 hp: __HP_cc,__HP_aCC 9379 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER 9380 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__ 9381 comeau: __COMO__ 9382 kai: __KCC 9383 lcc: __LCC__ 9384 sgi: __sgi,sgi 9385 microsoft: _MSC_VER 9386 metrowerks: __MWERKS__ 9387 watcom: __WATCOMC__ 9388 portland: __PGI 9389 tcc: __TINYC__ 9390 unknown: UNKNOWN" 9391 for ventest in $vendors; do 9392 case $ventest in 9393 *:) vendor=$ventest; continue ;; 9394 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;; 9395 esac 9396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9397 /* end confdefs.h. */ 9398 9399 int 9400 main () 9401 { 9402 9403 #if !($vencpp) 9404 thisisanerror; 9405 #endif 9406 9407 ; 9408 return 0; 9409 } 9410 _ACEOF 9411 if ac_fn_c_try_compile "$LINENO"; then : 9412 break 9413 fi 9414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9415 done 9416 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` 9417 9418 fi 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 9420 $as_echo "$ax_cv_c_compiler_vendor" >&6; } 9421 9422 9423 9424 # C support is enabled by default. 9425 9426 9427 # Only enable C++ support if AC_PROG_CXX is called. The redefinition of 9428 # AC_PROG_CXX is so that a fatal error is emitted if this macro is called 9429 # before AC_PROG_CXX, which would otherwise cause no C++ warnings to be 9430 # checked. 9431 9432 9433 9434 9435 9436 # Default value for IS-RELEASE is $ax_is_release 9437 ax_compiler_flags_is_release=$ax_is_release 9438 9439 # Check whether --enable-compile-warnings was given. 9440 if test "${enable_compile_warnings+set}" = set; then : 9441 enableval=$enable_compile_warnings; 9442 else 9443 if test "$ax_compiler_flags_is_release" = "yes"; then : 9444 enable_compile_warnings="yes" 9445 else 9446 enable_compile_warnings="error" 9447 fi 9448 fi 9449 9450 # Check whether --enable-Werror was given. 9451 if test "${enable_Werror+set}" = set; then : 9452 enableval=$enable_Werror; 9453 else 9454 enable_Werror=maybe 9455 fi 9456 9457 9458 # Return the user's chosen warning level 9459 if test "$enable_Werror" = "no" -a \ 9460 "$enable_compile_warnings" = "error"; then : 9461 9462 enable_compile_warnings="yes" 9463 9464 fi 9465 9466 ax_enable_compile_warnings=$enable_compile_warnings 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 # Variable names 9478 9479 9480 ac_ext=c 9481 ac_cpp='$CPP $CPPFLAGS' 9482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9484 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9485 9486 9487 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad 9488 # flags, otherwise they are always appended to the warn_cflags variable, and 9489 # Clang warns on them for every compilation unit. 9490 # If this is passed to GCC, it will explode, so the flag must be enabled 9491 # conditionally. 9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5 9493 $as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; } 9494 if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then : 9495 $as_echo_n "(cached) " >&6 9496 else 9497 9498 ax_check_save_flags=$CFLAGS 9499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9501 /* end confdefs.h. */ 9502 9503 int 9504 main () 9505 { 9506 9507 ; 9508 return 0; 9509 } 9510 _ACEOF 9511 if ac_fn_c_try_compile "$LINENO"; then : 9512 ax_cv_check_cflags___Werror_unknown_warning_option=yes 9513 else 9514 ax_cv_check_cflags___Werror_unknown_warning_option=no 9515 fi 9516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9517 CFLAGS=$ax_check_save_flags 9518 fi 9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5 9520 $as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; } 9521 if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then : 9522 9523 ax_compiler_flags_test="-Werror=unknown-warning-option" 9524 9525 else 9526 9527 ax_compiler_flags_test="" 9528 9529 fi 9530 9531 9532 # Base flags 9533 9534 9535 9536 9537 for flag in -fno-strict-aliasing ; do 9538 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 9540 $as_echo_n "checking whether C compiler accepts $flag... " >&6; } 9541 if eval \${$as_CACHEVAR+:} false; then : 9542 $as_echo_n "(cached) " >&6 9543 else 9544 9545 ax_check_save_flags=$CFLAGS 9546 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9548 /* end confdefs.h. */ 9549 9550 int 9551 main () 9552 { 9553 9554 ; 9555 return 0; 9556 } 9557 _ACEOF 9558 if ac_fn_c_try_compile "$LINENO"; then : 9559 eval "$as_CACHEVAR=yes" 9560 else 9561 eval "$as_CACHEVAR=no" 9562 fi 9563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9564 CFLAGS=$ax_check_save_flags 9565 fi 9566 eval ac_res=\$$as_CACHEVAR 9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9568 $as_echo "$ac_res" >&6; } 9569 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 9570 9571 if ${WARN_CFLAGS+:} false; then : 9572 9573 case " $WARN_CFLAGS " in #( 9574 *" $flag "*) : 9575 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5 9576 (: WARN_CFLAGS already contains $flag) 2>&5 9577 ac_status=$? 9578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9579 test $ac_status = 0; } ;; #( 9580 *) : 9581 9582 as_fn_append WARN_CFLAGS " $flag" 9583 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 9584 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 9585 ac_status=$? 9586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9587 test $ac_status = 0; } 9588 ;; 9589 esac 9590 9591 else 9592 9593 WARN_CFLAGS=$flag 9594 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 9595 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 9596 ac_status=$? 9597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9598 test $ac_status = 0; } 9599 9600 fi 9601 9602 else 9603 : 9604 fi 9605 9606 done 9607 9608 9609 if test "$ax_enable_compile_warnings" != "no"; then : 9610 9611 # "yes" flags 9612 9613 9614 9615 9616 for flag in -Wall -Wextra -Wundef -Wnested-externs -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wdeclaration-after-statement -Wformat=2 -Wold-style-definition -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wredundant-decls -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wimplicit-function-declaration -Wreturn-type -Wswitch-enum -Wswitch-default ; do 9617 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 9619 $as_echo_n "checking whether C compiler accepts $flag... " >&6; } 9620 if eval \${$as_CACHEVAR+:} false; then : 9621 $as_echo_n "(cached) " >&6 9622 else 9623 9624 ax_check_save_flags=$CFLAGS 9625 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9627 /* end confdefs.h. */ 9628 9629 int 9630 main () 9631 { 9632 9633 ; 9634 return 0; 9635 } 9636 _ACEOF 9637 if ac_fn_c_try_compile "$LINENO"; then : 9638 eval "$as_CACHEVAR=yes" 9639 else 9640 eval "$as_CACHEVAR=no" 9641 fi 9642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9643 CFLAGS=$ax_check_save_flags 9644 fi 9645 eval ac_res=\$$as_CACHEVAR 9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9647 $as_echo "$ac_res" >&6; } 9648 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 9649 9650 if ${WARN_CFLAGS+:} false; then : 9651 9652 case " $WARN_CFLAGS " in #( 9653 *" $flag "*) : 9654 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5 9655 (: WARN_CFLAGS already contains $flag) 2>&5 9656 ac_status=$? 9657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9658 test $ac_status = 0; } ;; #( 9659 *) : 9660 9661 as_fn_append WARN_CFLAGS " $flag" 9662 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 9663 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 9664 ac_status=$? 9665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9666 test $ac_status = 0; } 9667 ;; 9668 esac 9669 9670 else 9671 9672 WARN_CFLAGS=$flag 9673 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 9674 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 9675 ac_status=$? 9676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9677 test $ac_status = 0; } 9678 9679 fi 9680 9681 else 9682 : 9683 fi 9684 9685 done 9686 9687 9688 fi 9689 if test "$ax_enable_compile_warnings" = "error"; then : 9690 9691 # "error" flags; -Werror has to be appended unconditionally because 9692 # it's not possible to test for 9693 # 9694 # suggest-attribute=format is disabled because it gives too many false 9695 # positives 9696 9697 if ${WARN_CFLAGS+:} false; then : 9698 9699 case " $WARN_CFLAGS " in #( 9700 *" -Werror "*) : 9701 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains -Werror"; } >&5 9702 (: WARN_CFLAGS already contains -Werror) 2>&5 9703 ac_status=$? 9704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9705 test $ac_status = 0; } ;; #( 9706 *) : 9707 9708 as_fn_append WARN_CFLAGS " -Werror" 9709 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 9710 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 9711 ac_status=$? 9712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9713 test $ac_status = 0; } 9714 ;; 9715 esac 9716 9717 else 9718 9719 WARN_CFLAGS=-Werror 9720 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 9721 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 9722 ac_status=$? 9723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9724 test $ac_status = 0; } 9725 9726 fi 9727 9728 9729 9730 9731 9732 9733 for flag in -Wno-suggest-attribute=format ; do 9734 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 9736 $as_echo_n "checking whether C compiler accepts $flag... " >&6; } 9737 if eval \${$as_CACHEVAR+:} false; then : 9738 $as_echo_n "(cached) " >&6 9739 else 9740 9741 ax_check_save_flags=$CFLAGS 9742 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9744 /* end confdefs.h. */ 9745 9746 int 9747 main () 9748 { 9749 9750 ; 9751 return 0; 9752 } 9753 _ACEOF 9754 if ac_fn_c_try_compile "$LINENO"; then : 9755 eval "$as_CACHEVAR=yes" 9756 else 9757 eval "$as_CACHEVAR=no" 9758 fi 9759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9760 CFLAGS=$ax_check_save_flags 9761 fi 9762 eval ac_res=\$$as_CACHEVAR 9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9764 $as_echo "$ac_res" >&6; } 9765 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 9766 9767 if ${WARN_CFLAGS+:} false; then : 9768 9769 case " $WARN_CFLAGS " in #( 9770 *" $flag "*) : 9771 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5 9772 (: WARN_CFLAGS already contains $flag) 2>&5 9773 ac_status=$? 9774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9775 test $ac_status = 0; } ;; #( 9776 *) : 9777 9778 as_fn_append WARN_CFLAGS " $flag" 9779 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 9780 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 9781 ac_status=$? 9782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9783 test $ac_status = 0; } 9784 ;; 9785 esac 9786 9787 else 9788 9789 WARN_CFLAGS=$flag 9790 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 9791 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 9792 ac_status=$? 9793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9794 test $ac_status = 0; } 9795 9796 fi 9797 9798 else 9799 : 9800 fi 9801 9802 done 9803 9804 9805 fi 9806 9807 # In the flags below, when disabling specific flags, always add *both* 9808 # -Wno-foo and -Wno-error=foo. This fixes the situation where (for example) 9809 # we enable -Werror, disable a flag, and a build bot passes CFLAGS=-Wall, 9810 # which effectively turns that flag back on again as an error. 9811 for flag in $WARN_CFLAGS; do 9812 case $flag in #( 9813 -Wno-*=*) : 9814 ;; #( 9815 -Wno-*) : 9816 9817 9818 9819 9820 9821 for flag in -Wno-error=$($as_echo $flag | $SED 's/^-Wno-//'); do 9822 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 9824 $as_echo_n "checking whether C compiler accepts $flag... " >&6; } 9825 if eval \${$as_CACHEVAR+:} false; then : 9826 $as_echo_n "(cached) " >&6 9827 else 9828 9829 ax_check_save_flags=$CFLAGS 9830 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9832 /* end confdefs.h. */ 9833 9834 int 9835 main () 9836 { 9837 9838 ; 9839 return 0; 9840 } 9841 _ACEOF 9842 if ac_fn_c_try_compile "$LINENO"; then : 9843 eval "$as_CACHEVAR=yes" 9844 else 9845 eval "$as_CACHEVAR=no" 9846 fi 9847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9848 CFLAGS=$ax_check_save_flags 9849 fi 9850 eval ac_res=\$$as_CACHEVAR 9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9852 $as_echo "$ac_res" >&6; } 9853 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 9854 9855 if ${WARN_CFLAGS+:} false; then : 9856 9857 case " $WARN_CFLAGS " in #( 9858 *" $flag "*) : 9859 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5 9860 (: WARN_CFLAGS already contains $flag) 2>&5 9861 ac_status=$? 9862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9863 test $ac_status = 0; } ;; #( 9864 *) : 9865 9866 as_fn_append WARN_CFLAGS " $flag" 9867 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 9868 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 9869 ac_status=$? 9870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9871 test $ac_status = 0; } 9872 ;; 9873 esac 9874 9875 else 9876 9877 WARN_CFLAGS=$flag 9878 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 9879 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 9880 ac_status=$? 9881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9882 test $ac_status = 0; } 9883 9884 fi 9885 9886 else 9887 : 9888 fi 9889 9890 done 9891 9892 ;; #( 9893 *) : 9894 ;; 9895 esac 9896 done 9897 9898 ac_ext=c 9899 ac_cpp='$CPP $CPPFLAGS' 9900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9902 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9903 9904 9905 # Substitute the variables 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 # Variable names 9918 9919 9920 ac_ext=cpp 9921 ac_cpp='$CXXCPP $CPPFLAGS' 9922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9925 9926 9927 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad 9928 # flags, otherwise they are always appended to the warn_cxxflags variable, 9929 # and Clang warns on them for every compilation unit. 9930 # If this is passed to GCC, it will explode, so the flag must be enabled 9931 # conditionally. 9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Werror=unknown-warning-option" >&5 9933 $as_echo_n "checking whether C++ compiler accepts -Werror=unknown-warning-option... " >&6; } 9934 if ${ax_cv_check_cxxflags___Werror_unknown_warning_option+:} false; then : 9935 $as_echo_n "(cached) " >&6 9936 else 9937 9938 ax_check_save_flags=$CXXFLAGS 9939 CXXFLAGS="$CXXFLAGS -Werror=unknown-warning-option" 9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9941 /* end confdefs.h. */ 9942 9943 int 9944 main () 9945 { 9946 9947 ; 9948 return 0; 9949 } 9950 _ACEOF 9951 if ac_fn_cxx_try_compile "$LINENO"; then : 9952 ax_cv_check_cxxflags___Werror_unknown_warning_option=yes 9953 else 9954 ax_cv_check_cxxflags___Werror_unknown_warning_option=no 9955 fi 9956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9957 CXXFLAGS=$ax_check_save_flags 9958 fi 9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Werror_unknown_warning_option" >&5 9960 $as_echo "$ax_cv_check_cxxflags___Werror_unknown_warning_option" >&6; } 9961 if test "x$ax_cv_check_cxxflags___Werror_unknown_warning_option" = xyes; then : 9962 9963 ax_compiler_flags_test="-Werror=unknown-warning-option" 9964 9965 else 9966 9967 ax_compiler_flags_test="" 9968 9969 fi 9970 9971 9972 # Base flags 9973 9974 9975 9976 9977 for flag in -fno-strict-aliasing ; do 9978 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 9980 $as_echo_n "checking whether C++ compiler accepts $flag... " >&6; } 9981 if eval \${$as_CACHEVAR+:} false; then : 9982 $as_echo_n "(cached) " >&6 9983 else 9984 9985 ax_check_save_flags=$CXXFLAGS 9986 CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag" 9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9988 /* end confdefs.h. */ 9989 9990 int 9991 main () 9992 { 9993 9994 ; 9995 return 0; 9996 } 9997 _ACEOF 9998 if ac_fn_cxx_try_compile "$LINENO"; then : 9999 eval "$as_CACHEVAR=yes" 10000 else 10001 eval "$as_CACHEVAR=no" 10002 fi 10003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10004 CXXFLAGS=$ax_check_save_flags 10005 fi 10006 eval ac_res=\$$as_CACHEVAR 10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10008 $as_echo "$ac_res" >&6; } 10009 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 10010 10011 if ${WARN_CXXFLAGS+:} false; then : 10012 10013 case " $WARN_CXXFLAGS " in #( 10014 *" $flag "*) : 10015 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5 10016 (: WARN_CXXFLAGS already contains $flag) 2>&5 10017 ac_status=$? 10018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10019 test $ac_status = 0; } ;; #( 10020 *) : 10021 10022 as_fn_append WARN_CXXFLAGS " $flag" 10023 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 10024 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 10025 ac_status=$? 10026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10027 test $ac_status = 0; } 10028 ;; 10029 esac 10030 10031 else 10032 10033 WARN_CXXFLAGS=$flag 10034 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 10035 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 10036 ac_status=$? 10037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10038 test $ac_status = 0; } 10039 10040 fi 10041 10042 else 10043 : 10044 fi 10045 10046 done 10047 10048 10049 if test "$ax_enable_compile_warnings" != "no"; then : 10050 10051 # "yes" flags 10052 10053 10054 10055 10056 for flag in -Wall -Wextra -Wundef -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2 -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wredundant-decls -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wreturn-type -Wno-overloaded-virtual -Wswitch-enum -Wswitch-default ; do 10057 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 10059 $as_echo_n "checking whether C++ compiler accepts $flag... " >&6; } 10060 if eval \${$as_CACHEVAR+:} false; then : 10061 $as_echo_n "(cached) " >&6 10062 else 10063 10064 ax_check_save_flags=$CXXFLAGS 10065 CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag" 10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10067 /* end confdefs.h. */ 10068 10069 int 10070 main () 10071 { 10072 10073 ; 10074 return 0; 10075 } 10076 _ACEOF 10077 if ac_fn_cxx_try_compile "$LINENO"; then : 10078 eval "$as_CACHEVAR=yes" 10079 else 10080 eval "$as_CACHEVAR=no" 10081 fi 10082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10083 CXXFLAGS=$ax_check_save_flags 10084 fi 10085 eval ac_res=\$$as_CACHEVAR 10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10087 $as_echo "$ac_res" >&6; } 10088 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 10089 10090 if ${WARN_CXXFLAGS+:} false; then : 10091 10092 case " $WARN_CXXFLAGS " in #( 10093 *" $flag "*) : 10094 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5 10095 (: WARN_CXXFLAGS already contains $flag) 2>&5 10096 ac_status=$? 10097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10098 test $ac_status = 0; } ;; #( 10099 *) : 10100 10101 as_fn_append WARN_CXXFLAGS " $flag" 10102 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 10103 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 10104 ac_status=$? 10105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10106 test $ac_status = 0; } 10107 ;; 10108 esac 10109 10110 else 10111 10112 WARN_CXXFLAGS=$flag 10113 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 10114 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 10115 ac_status=$? 10116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10117 test $ac_status = 0; } 10118 10119 fi 10120 10121 else 10122 : 10123 fi 10124 10125 done 10126 10127 10128 fi 10129 if test "$ax_enable_compile_warnings" = "error"; then : 10130 10131 # "error" flags; -Werror has to be appended unconditionally because 10132 # it's not possible to test for 10133 # 10134 # suggest-attribute=format is disabled because it gives too many false 10135 # positives 10136 10137 if ${WARN_CXXFLAGS+:} false; then : 10138 10139 case " $WARN_CXXFLAGS " in #( 10140 *" -Werror "*) : 10141 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains -Werror"; } >&5 10142 (: WARN_CXXFLAGS already contains -Werror) 2>&5 10143 ac_status=$? 10144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10145 test $ac_status = 0; } ;; #( 10146 *) : 10147 10148 as_fn_append WARN_CXXFLAGS " -Werror" 10149 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 10150 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 10151 ac_status=$? 10152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10153 test $ac_status = 0; } 10154 ;; 10155 esac 10156 10157 else 10158 10159 WARN_CXXFLAGS=-Werror 10160 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 10161 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 10162 ac_status=$? 10163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10164 test $ac_status = 0; } 10165 10166 fi 10167 10168 10169 10170 10171 10172 10173 for flag in -Wno-suggest-attribute=format ; do 10174 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 10176 $as_echo_n "checking whether C++ compiler accepts $flag... " >&6; } 10177 if eval \${$as_CACHEVAR+:} false; then : 10178 $as_echo_n "(cached) " >&6 10179 else 10180 10181 ax_check_save_flags=$CXXFLAGS 10182 CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag" 10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10184 /* end confdefs.h. */ 10185 10186 int 10187 main () 10188 { 10189 10190 ; 10191 return 0; 10192 } 10193 _ACEOF 10194 if ac_fn_cxx_try_compile "$LINENO"; then : 10195 eval "$as_CACHEVAR=yes" 10196 else 10197 eval "$as_CACHEVAR=no" 10198 fi 10199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10200 CXXFLAGS=$ax_check_save_flags 10201 fi 10202 eval ac_res=\$$as_CACHEVAR 10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10204 $as_echo "$ac_res" >&6; } 10205 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 10206 10207 if ${WARN_CXXFLAGS+:} false; then : 10208 10209 case " $WARN_CXXFLAGS " in #( 10210 *" $flag "*) : 10211 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5 10212 (: WARN_CXXFLAGS already contains $flag) 2>&5 10213 ac_status=$? 10214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10215 test $ac_status = 0; } ;; #( 10216 *) : 10217 10218 as_fn_append WARN_CXXFLAGS " $flag" 10219 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 10220 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 10221 ac_status=$? 10222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10223 test $ac_status = 0; } 10224 ;; 10225 esac 10226 10227 else 10228 10229 WARN_CXXFLAGS=$flag 10230 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 10231 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 10232 ac_status=$? 10233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10234 test $ac_status = 0; } 10235 10236 fi 10237 10238 else 10239 : 10240 fi 10241 10242 done 10243 10244 10245 fi 10246 10247 # In the flags below, when disabling specific flags, always add *both* 10248 # -Wno-foo and -Wno-error=foo. This fixes the situation where (for example) 10249 # we enable -Werror, disable a flag, and a build bot passes CXXFLAGS=-Wall, 10250 # which effectively turns that flag back on again as an error. 10251 for flag in $WARN_CXXFLAGS; do 10252 case $flag in #( 10253 -Wno-*=*) : 10254 ;; #( 10255 -Wno-*) : 10256 10257 10258 10259 10260 10261 for flag in -Wno-error=$($as_echo $flag | $SED 's/^-Wno-//'); do 10262 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 10264 $as_echo_n "checking whether C++ compiler accepts $flag... " >&6; } 10265 if eval \${$as_CACHEVAR+:} false; then : 10266 $as_echo_n "(cached) " >&6 10267 else 10268 10269 ax_check_save_flags=$CXXFLAGS 10270 CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag" 10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10272 /* end confdefs.h. */ 10273 10274 int 10275 main () 10276 { 10277 10278 ; 10279 return 0; 10280 } 10281 _ACEOF 10282 if ac_fn_cxx_try_compile "$LINENO"; then : 10283 eval "$as_CACHEVAR=yes" 10284 else 10285 eval "$as_CACHEVAR=no" 10286 fi 10287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10288 CXXFLAGS=$ax_check_save_flags 10289 fi 10290 eval ac_res=\$$as_CACHEVAR 10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10292 $as_echo "$ac_res" >&6; } 10293 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 10294 10295 if ${WARN_CXXFLAGS+:} false; then : 10296 10297 case " $WARN_CXXFLAGS " in #( 10298 *" $flag "*) : 10299 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5 10300 (: WARN_CXXFLAGS already contains $flag) 2>&5 10301 ac_status=$? 10302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10303 test $ac_status = 0; } ;; #( 10304 *) : 10305 10306 as_fn_append WARN_CXXFLAGS " $flag" 10307 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 10308 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 10309 ac_status=$? 10310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10311 test $ac_status = 0; } 10312 ;; 10313 esac 10314 10315 else 10316 10317 WARN_CXXFLAGS=$flag 10318 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 10319 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 10320 ac_status=$? 10321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10322 test $ac_status = 0; } 10323 10324 fi 10325 10326 else 10327 : 10328 fi 10329 10330 done 10331 10332 ;; #( 10333 *) : 10334 ;; 10335 esac 10336 done 10337 10338 ac_ext=c 10339 ac_cpp='$CPP $CPPFLAGS' 10340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10342 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10343 10344 10345 # Substitute the variables 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 # Variable names 10357 10358 10359 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad 10360 # flags, otherwise they are always appended to the warn_ldflags variable, 10361 # and Clang warns on them for every compilation unit. 10362 # If this is passed to GCC, it will explode, so the flag must be enabled 10363 # conditionally. 10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5 10365 $as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; } 10366 if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then : 10367 $as_echo_n "(cached) " >&6 10368 else 10369 10370 ax_check_save_flags=$CFLAGS 10371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10373 /* end confdefs.h. */ 10374 10375 int 10376 main () 10377 { 10378 10379 ; 10380 return 0; 10381 } 10382 _ACEOF 10383 if ac_fn_c_try_compile "$LINENO"; then : 10384 ax_cv_check_cflags___Werror_unknown_warning_option=yes 10385 else 10386 ax_cv_check_cflags___Werror_unknown_warning_option=no 10387 fi 10388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10389 CFLAGS=$ax_check_save_flags 10390 fi 10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5 10392 $as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; } 10393 if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then : 10394 10395 ax_compiler_flags_test="-Werror=unknown-warning-option" 10396 10397 else 10398 10399 ax_compiler_flags_test="" 10400 10401 fi 10402 10403 10404 # Base flags 10405 10406 10407 10408 10409 for flag in -Wl,--no-as-needed ; do 10410 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 10412 $as_echo_n "checking whether the linker accepts $flag... " >&6; } 10413 if eval \${$as_CACHEVAR+:} false; then : 10414 $as_echo_n "(cached) " >&6 10415 else 10416 10417 ax_check_save_flags=$LDFLAGS 10418 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag" 10419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10420 /* end confdefs.h. */ 10421 10422 int 10423 main () 10424 { 10425 10426 ; 10427 return 0; 10428 } 10429 _ACEOF 10430 if ac_fn_c_try_link "$LINENO"; then : 10431 eval "$as_CACHEVAR=yes" 10432 else 10433 eval "$as_CACHEVAR=no" 10434 fi 10435 rm -f core conftest.err conftest.$ac_objext \ 10436 conftest$ac_exeext conftest.$ac_ext 10437 LDFLAGS=$ax_check_save_flags 10438 fi 10439 eval ac_res=\$$as_CACHEVAR 10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10441 $as_echo "$ac_res" >&6; } 10442 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 10443 10444 if ${WARN_LDFLAGS+:} false; then : 10445 10446 case " $WARN_LDFLAGS " in #( 10447 *" $flag "*) : 10448 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5 10449 (: WARN_LDFLAGS already contains $flag) 2>&5 10450 ac_status=$? 10451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10452 test $ac_status = 0; } ;; #( 10453 *) : 10454 10455 as_fn_append WARN_LDFLAGS " $flag" 10456 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 10457 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 10458 ac_status=$? 10459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10460 test $ac_status = 0; } 10461 ;; 10462 esac 10463 10464 else 10465 10466 WARN_LDFLAGS=$flag 10467 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 10468 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 10469 ac_status=$? 10470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10471 test $ac_status = 0; } 10472 10473 fi 10474 10475 else 10476 : 10477 fi 10478 10479 done 10480 10481 10482 if test "$ax_enable_compile_warnings" != "no"; then : 10483 10484 # "yes" flags 10485 10486 10487 10488 10489 for flag in ; do 10490 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 10492 $as_echo_n "checking whether the linker accepts $flag... " >&6; } 10493 if eval \${$as_CACHEVAR+:} false; then : 10494 $as_echo_n "(cached) " >&6 10495 else 10496 10497 ax_check_save_flags=$LDFLAGS 10498 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag" 10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10500 /* end confdefs.h. */ 10501 10502 int 10503 main () 10504 { 10505 10506 ; 10507 return 0; 10508 } 10509 _ACEOF 10510 if ac_fn_c_try_link "$LINENO"; then : 10511 eval "$as_CACHEVAR=yes" 10512 else 10513 eval "$as_CACHEVAR=no" 10514 fi 10515 rm -f core conftest.err conftest.$ac_objext \ 10516 conftest$ac_exeext conftest.$ac_ext 10517 LDFLAGS=$ax_check_save_flags 10518 fi 10519 eval ac_res=\$$as_CACHEVAR 10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10521 $as_echo "$ac_res" >&6; } 10522 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 10523 10524 if ${WARN_LDFLAGS+:} false; then : 10525 10526 case " $WARN_LDFLAGS " in #( 10527 *" $flag "*) : 10528 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5 10529 (: WARN_LDFLAGS already contains $flag) 2>&5 10530 ac_status=$? 10531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10532 test $ac_status = 0; } ;; #( 10533 *) : 10534 10535 as_fn_append WARN_LDFLAGS " $flag" 10536 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 10537 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 10538 ac_status=$? 10539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10540 test $ac_status = 0; } 10541 ;; 10542 esac 10543 10544 else 10545 10546 WARN_LDFLAGS=$flag 10547 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 10548 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 10549 ac_status=$? 10550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10551 test $ac_status = 0; } 10552 10553 fi 10554 10555 else 10556 : 10557 fi 10558 10559 done 10560 10561 10562 fi 10563 if test "$ax_enable_compile_warnings" = "error"; then : 10564 10565 # "error" flags; -Werror has to be appended unconditionally because 10566 # it's not possible to test for 10567 # 10568 # suggest-attribute=format is disabled because it gives too many false 10569 # positives 10570 10571 10572 10573 10574 for flag in -Wl,--fatal-warnings ; do 10575 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 10577 $as_echo_n "checking whether the linker accepts $flag... " >&6; } 10578 if eval \${$as_CACHEVAR+:} false; then : 10579 $as_echo_n "(cached) " >&6 10580 else 10581 10582 ax_check_save_flags=$LDFLAGS 10583 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag" 10584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10585 /* end confdefs.h. */ 10586 10587 int 10588 main () 10589 { 10590 10591 ; 10592 return 0; 10593 } 10594 _ACEOF 10595 if ac_fn_c_try_link "$LINENO"; then : 10596 eval "$as_CACHEVAR=yes" 10597 else 10598 eval "$as_CACHEVAR=no" 10599 fi 10600 rm -f core conftest.err conftest.$ac_objext \ 10601 conftest$ac_exeext conftest.$ac_ext 10602 LDFLAGS=$ax_check_save_flags 10603 fi 10604 eval ac_res=\$$as_CACHEVAR 10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10606 $as_echo "$ac_res" >&6; } 10607 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 10608 10609 if ${WARN_LDFLAGS+:} false; then : 10610 10611 case " $WARN_LDFLAGS " in #( 10612 *" $flag "*) : 10613 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5 10614 (: WARN_LDFLAGS already contains $flag) 2>&5 10615 ac_status=$? 10616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10617 test $ac_status = 0; } ;; #( 10618 *) : 10619 10620 as_fn_append WARN_LDFLAGS " $flag" 10621 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 10622 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 10623 ac_status=$? 10624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10625 test $ac_status = 0; } 10626 ;; 10627 esac 10628 10629 else 10630 10631 WARN_LDFLAGS=$flag 10632 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 10633 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 10634 ac_status=$? 10635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10636 test $ac_status = 0; } 10637 10638 fi 10639 10640 else 10641 : 10642 fi 10643 10644 done 10645 10646 10647 fi 10648 10649 # Substitute the variables 10650 10651 10652 10653 10654 10655 10656 # Variable names 10657 10658 10659 # Base flags 10660 10661 if ${WARN_SCANNERFLAGS+:} false; then : 10662 10663 case " $WARN_SCANNERFLAGS " in #( 10664 *" "*) : 10665 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains "; } >&5 10666 (: WARN_SCANNERFLAGS already contains ) 2>&5 10667 ac_status=$? 10668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10669 test $ac_status = 0; } ;; #( 10670 *) : 10671 10672 as_fn_append WARN_SCANNERFLAGS " " 10673 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 10674 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 10675 ac_status=$? 10676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10677 test $ac_status = 0; } 10678 ;; 10679 esac 10680 10681 else 10682 10683 WARN_SCANNERFLAGS= 10684 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 10685 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 10686 ac_status=$? 10687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10688 test $ac_status = 0; } 10689 10690 fi 10691 10692 10693 if test "$ax_enable_compile_warnings" != "no"; then : 10694 10695 # "yes" flags 10696 10697 if ${WARN_SCANNERFLAGS+:} false; then : 10698 10699 case " $WARN_SCANNERFLAGS " in #( 10700 *" --warn-all "*) : 10701 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains --warn-all "; } >&5 10702 (: WARN_SCANNERFLAGS already contains --warn-all ) 2>&5 10703 ac_status=$? 10704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10705 test $ac_status = 0; } ;; #( 10706 *) : 10707 10708 as_fn_append WARN_SCANNERFLAGS " --warn-all " 10709 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 10710 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 10711 ac_status=$? 10712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10713 test $ac_status = 0; } 10714 ;; 10715 esac 10716 10717 else 10718 10719 WARN_SCANNERFLAGS= --warn-all 10720 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 10721 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 10722 ac_status=$? 10723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10724 test $ac_status = 0; } 10725 10726 fi 10727 10728 10729 fi 10730 if test "$ax_enable_compile_warnings" = "error"; then : 10731 10732 # "error" flags 10733 10734 if ${WARN_SCANNERFLAGS+:} false; then : 10735 10736 case " $WARN_SCANNERFLAGS " in #( 10737 *" --warn-error "*) : 10738 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains --warn-error "; } >&5 10739 (: WARN_SCANNERFLAGS already contains --warn-error ) 2>&5 10740 ac_status=$? 10741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10742 test $ac_status = 0; } ;; #( 10743 *) : 10744 10745 as_fn_append WARN_SCANNERFLAGS " --warn-error " 10746 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 10747 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 10748 ac_status=$? 10749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10750 test $ac_status = 0; } 10751 ;; 10752 esac 10753 10754 else 10755 10756 WARN_SCANNERFLAGS= --warn-error 10757 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 10758 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 10759 ac_status=$? 10760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10761 test $ac_status = 0; } 10762 10763 fi 10764 10765 10766 fi 10767 10768 # Substitute the variables 10769 10770 10771 10772 # The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro 10773 # compiler. 10774 if test "$ax_cv_c_compiler_vendor" != "sun"; then 10775 ac_ext=c 10776 ac_cpp='$CPP $CPPFLAGS' 10777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10779 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10780 10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 10782 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; } 10783 if ${ac_cv_cflags_warn_all+:} false; then : 10784 $as_echo_n "(cached) " >&6 10785 else 10786 ac_cv_cflags_warn_all="no, unknown" 10787 ac_save_CFLAGS="$CFLAGS" 10788 for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" # 10789 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10791 /* end confdefs.h. */ 10792 10793 int 10794 main () 10795 { 10796 10797 ; 10798 return 0; 10799 } 10800 _ACEOF 10801 if ac_fn_c_try_compile "$LINENO"; then : 10802 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 10803 fi 10804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10805 done 10806 CFLAGS="$ac_save_CFLAGS" 10807 10808 fi 10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 10810 $as_echo "$ac_cv_cflags_warn_all" >&6; } 10811 10812 10813 case ".$ac_cv_cflags_warn_all" in 10814 .ok|.ok,*) ;; 10815 .|.no|.no,*) ;; 10816 *) 10817 if ${CFLAGS+:} false; then : 10818 10819 case " $CFLAGS " in #( 10820 *" $ac_cv_cflags_warn_all "*) : 10821 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5 10822 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5 10823 ac_status=$? 10824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10825 test $ac_status = 0; } ;; #( 10826 *) : 10827 10828 as_fn_append CFLAGS " $ac_cv_cflags_warn_all" 10829 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 10830 (: CFLAGS="$CFLAGS") 2>&5 10831 ac_status=$? 10832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10833 test $ac_status = 0; } 10834 ;; 10835 esac 10836 10837 else 10838 10839 CFLAGS=$ac_cv_cflags_warn_all 10840 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 10841 (: CFLAGS="$CFLAGS") 2>&5 10842 ac_status=$? 10843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10844 test $ac_status = 0; } 10845 10846 fi 10847 ;; 10848 esac 10849 10850 ac_ext=c 10851 ac_cpp='$CPP $CPPFLAGS' 10852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10854 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10855 10856 10857 fi 10858 10859 if test "x$GCC" = "xyes"; then 10860 CFLAGS="$CFLAGS -fexceptions" 10861 touch local.exp 10862 else 10863 cat > local.exp <<EOF 10864 set CC_FOR_TARGET "$CC" 10865 EOF 10866 fi 10867 10868 # Check for linker script support 10869 10870 # Check whether --enable-ld-version-script was given. 10871 if test "${enable_ld_version_script+set}" = set; then : 10872 enableval=$enable_ld_version_script; have_ld_version_script=$enableval 10873 fi 10874 10875 if test -z "$have_ld_version_script"; then 10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5 10877 $as_echo_n "checking if LD -Wl,--version-script works... " >&6; } 10878 save_LDFLAGS="$LDFLAGS" 10879 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" 10880 cat > conftest.map <<EOF 10881 foo 10882 EOF 10883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10884 /* end confdefs.h. */ 10885 10886 int 10887 main () 10888 { 10889 10890 ; 10891 return 0; 10892 } 10893 _ACEOF 10894 if ac_fn_c_try_link "$LINENO"; then : 10895 accepts_syntax_errors=yes 10896 else 10897 accepts_syntax_errors=no 10898 fi 10899 rm -f core conftest.err conftest.$ac_objext \ 10900 conftest$ac_exeext conftest.$ac_ext 10901 if test "$accepts_syntax_errors" = no; then 10902 cat > conftest.map <<EOF 10903 VERS_1 { 10904 global: sym; 10905 }; 10906 10907 VERS_2 { 10908 global: sym; 10909 } VERS_1; 10910 EOF 10911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10912 /* end confdefs.h. */ 10913 10914 int 10915 main () 10916 { 10917 10918 ; 10919 return 0; 10920 } 10921 _ACEOF 10922 if ac_fn_c_try_link "$LINENO"; then : 10923 have_ld_version_script=yes 10924 else 10925 have_ld_version_script=no 10926 fi 10927 rm -f core conftest.err conftest.$ac_objext \ 10928 conftest$ac_exeext conftest.$ac_ext 10929 else 10930 have_ld_version_script=no 10931 fi 10932 rm -f conftest.map 10933 LDFLAGS="$save_LDFLAGS" 10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5 10935 $as_echo "$have_ld_version_script" >&6; } 10936 fi 10937 if test "$have_ld_version_script" = "yes"; then 10938 HAVE_LD_VERSION_SCRIPT_TRUE= 10939 HAVE_LD_VERSION_SCRIPT_FALSE='#' 10940 else 10941 HAVE_LD_VERSION_SCRIPT_TRUE='#' 10942 HAVE_LD_VERSION_SCRIPT_FALSE= 10943 fi 10944 10945 10946 10947 # 10948 # Enable run-time checking. 10949 # 10950 # Check whether --enable-bounds-checking was given. 10951 if test "${enable_bounds_checking+set}" = set; then : 10952 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval 10953 else 10954 enable_bounds_checking='no' 10955 fi 10956 10957 10958 if test "$enable_bounds_checking" = yes; then 10959 10960 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h 10961 10962 fi 10963 10964 # 10965 # Tests for Windows 10966 # 10967 10968 10969 10970 GDI32_LIBS='' 10971 native_win32_build='no' 10972 cygwin_build='no' 10973 case "${host_os}" in 10974 cygwin* ) 10975 cygwin_build='yes' 10976 GDI32_LIBS='-lgdi32' 10977 ;; 10978 mingw* ) 10979 native_win32_build='yes' 10980 GDI32_LIBS='-lgdi32' 10981 ;; 10982 esac 10983 if test "${GDI32_LIBS}x" != 'x'; then 10984 10985 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h 10986 10987 fi 10988 10989 if test "${GDI32_LIBS}x" != 'x' ; then 10990 WINGDI32_DELEGATE_TRUE= 10991 WINGDI32_DELEGATE_FALSE='#' 10992 else 10993 WINGDI32_DELEGATE_TRUE='#' 10994 WINGDI32_DELEGATE_FALSE= 10995 fi 10996 10997 if test "${native_win32_build}" = 'yes' ; then 10998 WIN32_NATIVE_BUILD_TRUE= 10999 WIN32_NATIVE_BUILD_FALSE='#' 11000 else 11001 WIN32_NATIVE_BUILD_TRUE='#' 11002 WIN32_NATIVE_BUILD_FALSE= 11003 fi 11004 11005 if test "${cygwin_build}" = 'yes' ; then 11006 CYGWIN_BUILD_TRUE= 11007 CYGWIN_BUILD_FALSE='#' 11008 else 11009 CYGWIN_BUILD_TRUE='#' 11010 CYGWIN_BUILD_FALSE= 11011 fi 11012 11013 if test "x${CC}" = 'xcl.exe' ; then 11014 USING_CL_TRUE= 11015 USING_CL_FALSE='#' 11016 else 11017 USING_CL_TRUE='#' 11018 USING_CL_FALSE= 11019 fi 11020 11021 11022 WinPathScript="${srcdirfull}/winpath.sh" 11023 11024 11025 # 11026 # Compiler flags tweaks 11027 # 11028 if test "${GCC}" != "yes"; then 11029 case "${host}" in 11030 *-*-hpux* ) 11031 # aCC: HP ANSI C++ B3910B A.03.34 11032 CFLAGS="${CFLAGS} -Wp,-H30000" 11033 if test -n "${CXXFLAGS}"; then 11034 CXXFLAGS='-AA' 11035 else 11036 CXXFLAGS="${CXXFLAGS} -AA" 11037 fi 11038 ;; 11039 *-dec-osf5.* ) 11040 # Compaq alphaev68-dec-osf5.1 compiler 11041 if test -n "${CXXFLAGS}"; then 11042 CXXFLAGS='-std strict_ansi -noimplicit_include' 11043 else 11044 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include" 11045 fi 11046 esac 11047 fi 11048 11049 # Check for lazy-loading. 11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5 11051 $as_echo_n "checking for linker lazyload option... " >&6; } 11052 if ${im_cv_ld_lazyload+:} false; then : 11053 $as_echo_n "(cached) " >&6 11054 else 11055 11056 im_cv_ld_lazyload='none' 11057 case "${host}" in 11058 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? ) 11059 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then 11060 im_cv_ld_lazyload='-Wl,-zlazyload' 11061 fi 11062 ;; 11063 esac 11064 11065 fi 11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5 11067 $as_echo "$im_cv_ld_lazyload" >&6; } 11068 if test "${im_cv_ld_lazyload}" != 'none' ; then 11069 if test -z "${LDFLAGS}" ; then 11070 LDFLAGS="${im_cv_ld_lazyload}" 11071 else 11072 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}" 11073 fi 11074 fi 11075 11076 case "$host" in 11077 *darwin* | *-macos10*) 11078 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0" 11079 # Check whether --enable-osx-universal-binary was given. 11080 if test "${enable_osx_universal_binary+set}" = set; then : 11081 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}" 11082 else 11083 build_osxuniversal=no 11084 fi 11085 11086 11087 if test "${build_osxuniversal}" != no ; then 11088 if test "$enable_dependency_tracking" != no ; then 11089 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking. 11090 Please re-run configure with these options: 11091 --disable-dependency-tracking --enable-osx-universal-binary 11092 " "$LINENO" 5 11093 fi 11094 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" 11095 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" 11096 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" 11097 fi 11098 ;; 11099 esac 11100 11101 # 11102 # ARCH specific include directory 11103 # 11104 11105 # Check whether --with-includearch-dir was given. 11106 if test "${with_includearch_dir+set}" = set; then : 11107 withval=$with_includearch_dir; includearch_dir=$withval 11108 else 11109 includearch_dir=$INCLUDE_DIR 11110 fi 11111 11112 11113 eval "eval INCLUDEARCH_DIR=$includearch_dir" 11114 11115 11116 # 11117 # ARCH specific configuration directory 11118 # 11119 11120 # Check whether --with-sharearch-dir was given. 11121 if test "${with_sharearch_dir+set}" = set; then : 11122 withval=$with_sharearch_dir; sharearch_dir=$withval 11123 else 11124 sharearch_dir="${LIB_DIR}" 11125 fi 11126 11127 11128 eval "eval SHAREARCH_DIR=$sharearch_dir" 11129 11130 11131 # Path to the pkgconfig folder 11132 11133 # Check whether --with-pkgconfigdir was given. 11134 if test "${with_pkgconfigdir+set}" = set; then : 11135 withval=$with_pkgconfigdir; pkgconfigdir="$withval" 11136 else 11137 pkgconfigdir='${libdir}/pkgconfig' 11138 fi 11139 11140 11141 11142 # 11143 # Enable support for threads 11144 # 11145 # Find Posix threads library 11146 # 11147 11148 # Check whether --with-threads was given. 11149 if test "${with_threads+set}" = set; then : 11150 withval=$with_threads; with_threads=$withval 11151 else 11152 with_threads='yes' 11153 fi 11154 11155 11156 THREAD_LIBS='' 11157 have_threads=no 11158 if test "$with_threads" != 'no'; then 11159 11160 11161 ac_ext=c 11162 ac_cpp='$CPP $CPPFLAGS' 11163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11165 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11166 11167 ax_pthread_ok=no 11168 11169 # We used to check for pthread.h first, but this fails if pthread.h 11170 # requires special compiler flags (e.g. on True64 or Sequent). 11171 # It gets checked for in the link test anyway. 11172 11173 # First of all, check if the user has set any of the PTHREAD_LIBS, 11174 # etcetera environment variables, and if threads linking works using 11175 # them: 11176 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 11177 save_CFLAGS="$CFLAGS" 11178 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 11179 save_LIBS="$LIBS" 11180 LIBS="$PTHREAD_LIBS $LIBS" 11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 11182 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 11183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11184 /* end confdefs.h. */ 11185 11186 /* Override any GCC internal prototype to avoid an error. 11187 Use char because int might match the return type of a GCC 11188 builtin and then its argument prototype would still apply. */ 11189 #ifdef __cplusplus 11190 extern "C" 11191 #endif 11192 char pthread_join (); 11193 int 11194 main () 11195 { 11196 return pthread_join (); 11197 ; 11198 return 0; 11199 } 11200 _ACEOF 11201 if ac_fn_c_try_link "$LINENO"; then : 11202 ax_pthread_ok=yes 11203 fi 11204 rm -f core conftest.err conftest.$ac_objext \ 11205 conftest$ac_exeext conftest.$ac_ext 11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 11207 $as_echo "$ax_pthread_ok" >&6; } 11208 if test x"$ax_pthread_ok" = xno; then 11209 PTHREAD_LIBS="" 11210 PTHREAD_CFLAGS="" 11211 fi 11212 LIBS="$save_LIBS" 11213 CFLAGS="$save_CFLAGS" 11214 fi 11215 11216 # We must check for the threads library under a number of different 11217 # names; the ordering is very important because some systems 11218 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the 11219 # libraries is broken (non-POSIX). 11220 11221 # Create a list of thread flags to try. Items starting with a "-" are 11222 # C compiler flags, and other items are library names, except for "none" 11223 # which indicates that we try without any flags at all, and "pthread-config" 11224 # which is a program returning the flags for the Pth emulation library. 11225 11226 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 11227 11228 # The ordering *is* (sometimes) important. Some notes on the 11229 # individual items follow: 11230 11231 # pthreads: AIX (must check this before -lpthread) 11232 # none: in case threads are in libc; should be tried before -Kthread and 11233 # other compiler flags to prevent continual compiler warnings 11234 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 11235 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 11236 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 11237 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 11238 # -pthreads: Solaris/gcc 11239 # -mthreads: Mingw32/gcc, Lynx/gcc 11240 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 11241 # doesn't hurt to check since this sometimes defines pthreads too; 11242 # also defines -D_REENTRANT) 11243 # ... -mt is also the pthreads flag for HP/aCC 11244 # pthread: Linux, etcetera 11245 # --thread-safe: KAI C++ 11246 # pthread-config: use pthread-config program (for GNU Pth library) 11247 11248 case ${host_os} in 11249 solaris*) 11250 11251 # On Solaris (at least, for some versions), libc contains stubbed 11252 # (non-functional) versions of the pthreads routines, so link-based 11253 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 11254 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 11255 # a function called by this macro, so we could check for that, but 11256 # who knows whether they'll stub that too in a future libc.) So, 11257 # we'll just look for -pthreads and -lpthread first: 11258 11259 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 11260 ;; 11261 11262 darwin*) 11263 ax_pthread_flags="-pthread $ax_pthread_flags" 11264 ;; 11265 esac 11266 11267 # Clang doesn't consider unrecognized options an error unless we specify 11268 # -Werror. We throw in some extra Clang-specific options to ensure that 11269 # this doesn't happen for GCC, which also accepts -Werror. 11270 11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 11272 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; } 11273 save_CFLAGS="$CFLAGS" 11274 ax_pthread_extra_flags="-Werror" 11275 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 11276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11277 /* end confdefs.h. */ 11278 int foo(void); 11279 int 11280 main () 11281 { 11282 foo() 11283 ; 11284 return 0; 11285 } 11286 _ACEOF 11287 if ac_fn_c_try_compile "$LINENO"; then : 11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11289 $as_echo "yes" >&6; } 11290 else 11291 ax_pthread_extra_flags= 11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11293 $as_echo "no" >&6; } 11294 fi 11295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11296 CFLAGS="$save_CFLAGS" 11297 11298 if test x"$ax_pthread_ok" = xno; then 11299 for flag in $ax_pthread_flags; do 11300 11301 case $flag in 11302 none) 11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 11304 $as_echo_n "checking whether pthreads work without any flags... " >&6; } 11305 ;; 11306 11307 -*) 11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 11309 $as_echo_n "checking whether pthreads work with $flag... " >&6; } 11310 PTHREAD_CFLAGS="$flag" 11311 ;; 11312 11313 pthread-config) 11314 # Extract the first word of "pthread-config", so it can be a program name with args. 11315 set dummy pthread-config; ac_word=$2 11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11317 $as_echo_n "checking for $ac_word... " >&6; } 11318 if ${ac_cv_prog_ax_pthread_config+:} false; then : 11319 $as_echo_n "(cached) " >&6 11320 else 11321 if test -n "$ax_pthread_config"; then 11322 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 11323 else 11324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11325 for as_dir in $PATH 11326 do 11327 IFS=$as_save_IFS 11328 test -z "$as_dir" && as_dir=. 11329 for ac_exec_ext in '' $ac_executable_extensions; do 11330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11331 ac_cv_prog_ax_pthread_config="yes" 11332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11333 break 2 11334 fi 11335 done 11336 done 11337 IFS=$as_save_IFS 11338 11339 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 11340 fi 11341 fi 11342 ax_pthread_config=$ac_cv_prog_ax_pthread_config 11343 if test -n "$ax_pthread_config"; then 11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 11345 $as_echo "$ax_pthread_config" >&6; } 11346 else 11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11348 $as_echo "no" >&6; } 11349 fi 11350 11351 11352 if test x"$ax_pthread_config" = xno; then continue; fi 11353 PTHREAD_CFLAGS="`pthread-config --cflags`" 11354 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 11355 ;; 11356 11357 *) 11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 11359 $as_echo_n "checking for the pthreads library -l$flag... " >&6; } 11360 PTHREAD_LIBS="-l$flag" 11361 ;; 11362 esac 11363 11364 save_LIBS="$LIBS" 11365 save_CFLAGS="$CFLAGS" 11366 LIBS="$PTHREAD_LIBS $LIBS" 11367 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 11368 11369 # Check for various functions. We must include pthread.h, 11370 # since some functions may be macros. (On the Sequent, we 11371 # need a special flag -Kthread to make this header compile.) 11372 # We check for pthread_join because it is in -lpthread on IRIX 11373 # while pthread_create is in libc. We check for pthread_attr_init 11374 # due to DEC craziness with -lpthreads. We check for 11375 # pthread_cleanup_push because it is one of the few pthread 11376 # functions on Solaris that doesn't have a non-functional libc stub. 11377 # We try pthread_create on general principles. 11378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11379 /* end confdefs.h. */ 11380 #include <pthread.h> 11381 static void routine(void *a) { a = 0; } 11382 static void *start_routine(void *a) { return a; } 11383 int 11384 main () 11385 { 11386 pthread_t th; pthread_attr_t attr; 11387 pthread_create(&th, 0, start_routine, 0); 11388 pthread_join(th, 0); 11389 pthread_attr_init(&attr); 11390 pthread_cleanup_push(routine, 0); 11391 pthread_cleanup_pop(0) /* ; */ 11392 ; 11393 return 0; 11394 } 11395 _ACEOF 11396 if ac_fn_c_try_link "$LINENO"; then : 11397 ax_pthread_ok=yes 11398 fi 11399 rm -f core conftest.err conftest.$ac_objext \ 11400 conftest$ac_exeext conftest.$ac_ext 11401 11402 LIBS="$save_LIBS" 11403 CFLAGS="$save_CFLAGS" 11404 11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 11406 $as_echo "$ax_pthread_ok" >&6; } 11407 if test "x$ax_pthread_ok" = xyes; then 11408 break; 11409 fi 11410 11411 PTHREAD_LIBS="" 11412 PTHREAD_CFLAGS="" 11413 done 11414 fi 11415 11416 # Various other checks: 11417 if test "x$ax_pthread_ok" = xyes; then 11418 save_LIBS="$LIBS" 11419 LIBS="$PTHREAD_LIBS $LIBS" 11420 save_CFLAGS="$CFLAGS" 11421 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 11422 11423 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 11425 $as_echo_n "checking for joinable pthread attribute... " >&6; } 11426 attr_name=unknown 11427 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 11428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11429 /* end confdefs.h. */ 11430 #include <pthread.h> 11431 int 11432 main () 11433 { 11434 int attr = $attr; return attr /* ; */ 11435 ; 11436 return 0; 11437 } 11438 _ACEOF 11439 if ac_fn_c_try_link "$LINENO"; then : 11440 attr_name=$attr; break 11441 fi 11442 rm -f core conftest.err conftest.$ac_objext \ 11443 conftest$ac_exeext conftest.$ac_ext 11444 done 11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 11446 $as_echo "$attr_name" >&6; } 11447 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 11448 11449 cat >>confdefs.h <<_ACEOF 11450 #define PTHREAD_CREATE_JOINABLE $attr_name 11451 _ACEOF 11452 11453 fi 11454 11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 11456 $as_echo_n "checking if more special flags are required for pthreads... " >&6; } 11457 flag=no 11458 case ${host_os} in 11459 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 11460 osf* | hpux*) flag="-D_REENTRANT";; 11461 solaris*) 11462 if test "$GCC" = "yes"; then 11463 flag="-D_REENTRANT" 11464 else 11465 # TODO: What about Clang on Solaris? 11466 flag="-mt -D_REENTRANT" 11467 fi 11468 ;; 11469 esac 11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 11471 $as_echo "$flag" >&6; } 11472 if test "x$flag" != xno; then 11473 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 11474 fi 11475 11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 11477 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 11478 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 11479 $as_echo_n "(cached) " >&6 11480 else 11481 11482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11483 /* end confdefs.h. */ 11484 #include <pthread.h> 11485 int 11486 main () 11487 { 11488 int i = PTHREAD_PRIO_INHERIT; 11489 ; 11490 return 0; 11491 } 11492 _ACEOF 11493 if ac_fn_c_try_link "$LINENO"; then : 11494 ax_cv_PTHREAD_PRIO_INHERIT=yes 11495 else 11496 ax_cv_PTHREAD_PRIO_INHERIT=no 11497 fi 11498 rm -f core conftest.err conftest.$ac_objext \ 11499 conftest$ac_exeext conftest.$ac_ext 11500 11501 fi 11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 11503 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 11504 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 11505 11506 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 11507 11508 fi 11509 11510 LIBS="$save_LIBS" 11511 CFLAGS="$save_CFLAGS" 11512 11513 # More AIX lossage: compile with *_r variant 11514 if test "x$GCC" != xyes; then 11515 case $host_os in 11516 aix*) 11517 case "x/$CC" in #( 11518 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 11519 #handle absolute path differently from PATH based program lookup 11520 case "x$CC" in #( 11521 x/*) : 11522 if as_fn_executable_p ${CC}_r; then : 11523 PTHREAD_CC="${CC}_r" 11524 fi ;; #( 11525 *) : 11526 for ac_prog in ${CC}_r 11527 do 11528 # Extract the first word of "$ac_prog", so it can be a program name with args. 11529 set dummy $ac_prog; ac_word=$2 11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11531 $as_echo_n "checking for $ac_word... " >&6; } 11532 if ${ac_cv_prog_PTHREAD_CC+:} false; then : 11533 $as_echo_n "(cached) " >&6 11534 else 11535 if test -n "$PTHREAD_CC"; then 11536 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 11537 else 11538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11539 for as_dir in $PATH 11540 do 11541 IFS=$as_save_IFS 11542 test -z "$as_dir" && as_dir=. 11543 for ac_exec_ext in '' $ac_executable_extensions; do 11544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11545 ac_cv_prog_PTHREAD_CC="$ac_prog" 11546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11547 break 2 11548 fi 11549 done 11550 done 11551 IFS=$as_save_IFS 11552 11553 fi 11554 fi 11555 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 11556 if test -n "$PTHREAD_CC"; then 11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 11558 $as_echo "$PTHREAD_CC" >&6; } 11559 else 11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11561 $as_echo "no" >&6; } 11562 fi 11563 11564 11565 test -n "$PTHREAD_CC" && break 11566 done 11567 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 11568 ;; 11569 esac ;; #( 11570 *) : 11571 ;; 11572 esac 11573 ;; 11574 esac 11575 fi 11576 fi 11577 11578 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 11579 11580 11581 11582 11583 11584 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 11585 if test x"$ax_pthread_ok" = xyes; then 11586 11587 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 11588 11589 : 11590 else 11591 ax_pthread_ok=no 11592 11593 fi 11594 ac_ext=c 11595 ac_cpp='$CPP $CPPFLAGS' 11596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11598 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11599 11600 11601 if test "$ax_pthread_ok" = yes; then 11602 have_threads=yes 11603 DEF_THREAD="$PTHREAD_CFLAGS" 11604 CFLAGS="$CFLAGS $DEF_THREAD" 11605 CXXFLAGS="$CXXFLAGS $DEF_THREAD" 11606 THREAD_LIBS="$PTHREAD_LIBS" 11607 if test "$CC" != "$PTHREAD_CC"; then 11608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5 11609 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;} 11610 CC="$PTHREAD_CC" 11611 fi 11612 11613 $as_echo "#define THREAD_SUPPORT 1" >>confdefs.h 11614 11615 fi 11616 fi 11617 LIBS="$LIBS $THREAD_LIBS" 11618 11619 11620 # Enable support for OpenMP 11621 if test "$have_threads" != 'yes'; then 11622 ac_cv_prog_c_openmp=unsupported 11623 fi 11624 11625 OPENMP_CFLAGS= 11626 # Check whether --enable-openmp was given. 11627 if test "${enable_openmp+set}" = set; then : 11628 enableval=$enable_openmp; 11629 fi 11630 11631 if test "$enable_openmp" != no; then 11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5 11633 $as_echo_n "checking for $CC option to support OpenMP... " >&6; } 11634 if ${ac_cv_prog_c_openmp+:} false; then : 11635 $as_echo_n "(cached) " >&6 11636 else 11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11638 /* end confdefs.h. */ 11639 11640 #ifndef _OPENMP 11641 choke me 11642 #endif 11643 #include <omp.h> 11644 int main () { return omp_get_num_threads (); } 11645 11646 _ACEOF 11647 if ac_fn_c_try_link "$LINENO"; then : 11648 ac_cv_prog_c_openmp='none needed' 11649 else 11650 ac_cv_prog_c_openmp='unsupported' 11651 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \ 11652 -Popenmp --openmp; do 11653 ac_save_CFLAGS=$CFLAGS 11654 CFLAGS="$CFLAGS $ac_option" 11655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11656 /* end confdefs.h. */ 11657 11658 #ifndef _OPENMP 11659 choke me 11660 #endif 11661 #include <omp.h> 11662 int main () { return omp_get_num_threads (); } 11663 11664 _ACEOF 11665 if ac_fn_c_try_link "$LINENO"; then : 11666 ac_cv_prog_c_openmp=$ac_option 11667 fi 11668 rm -f core conftest.err conftest.$ac_objext \ 11669 conftest$ac_exeext conftest.$ac_ext 11670 CFLAGS=$ac_save_CFLAGS 11671 if test "$ac_cv_prog_c_openmp" != unsupported; then 11672 break 11673 fi 11674 done 11675 fi 11676 rm -f core conftest.err conftest.$ac_objext \ 11677 conftest$ac_exeext conftest.$ac_ext 11678 fi 11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5 11680 $as_echo "$ac_cv_prog_c_openmp" >&6; } 11681 case $ac_cv_prog_c_openmp in #( 11682 "none needed" | unsupported) 11683 ;; #( 11684 *) 11685 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;; 11686 esac 11687 fi 11688 11689 11690 CFLAGS="$OPENMP_CFLAGS $CFLAGS" 11691 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS" 11692 11693 if test "$enable_openmp" != no; then 11694 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then 11695 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES" 11696 fi 11697 fi 11698 11699 # Enable support for OpenCL 11700 11701 11702 ac_ext=c 11703 ac_cpp='$CPP $CPPFLAGS' 11704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11706 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11707 11708 ax_pthread_ok=no 11709 11710 # We used to check for pthread.h first, but this fails if pthread.h 11711 # requires special compiler flags (e.g. on True64 or Sequent). 11712 # It gets checked for in the link test anyway. 11713 11714 # First of all, check if the user has set any of the PTHREAD_LIBS, 11715 # etcetera environment variables, and if threads linking works using 11716 # them: 11717 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 11718 save_CFLAGS="$CFLAGS" 11719 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 11720 save_LIBS="$LIBS" 11721 LIBS="$PTHREAD_LIBS $LIBS" 11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 11723 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11725 /* end confdefs.h. */ 11726 11727 /* Override any GCC internal prototype to avoid an error. 11728 Use char because int might match the return type of a GCC 11729 builtin and then its argument prototype would still apply. */ 11730 #ifdef __cplusplus 11731 extern "C" 11732 #endif 11733 char pthread_join (); 11734 int 11735 main () 11736 { 11737 return pthread_join (); 11738 ; 11739 return 0; 11740 } 11741 _ACEOF 11742 if ac_fn_c_try_link "$LINENO"; then : 11743 ax_pthread_ok=yes 11744 fi 11745 rm -f core conftest.err conftest.$ac_objext \ 11746 conftest$ac_exeext conftest.$ac_ext 11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 11748 $as_echo "$ax_pthread_ok" >&6; } 11749 if test x"$ax_pthread_ok" = xno; then 11750 PTHREAD_LIBS="" 11751 PTHREAD_CFLAGS="" 11752 fi 11753 LIBS="$save_LIBS" 11754 CFLAGS="$save_CFLAGS" 11755 fi 11756 11757 # We must check for the threads library under a number of different 11758 # names; the ordering is very important because some systems 11759 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the 11760 # libraries is broken (non-POSIX). 11761 11762 # Create a list of thread flags to try. Items starting with a "-" are 11763 # C compiler flags, and other items are library names, except for "none" 11764 # which indicates that we try without any flags at all, and "pthread-config" 11765 # which is a program returning the flags for the Pth emulation library. 11766 11767 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 11768 11769 # The ordering *is* (sometimes) important. Some notes on the 11770 # individual items follow: 11771 11772 # pthreads: AIX (must check this before -lpthread) 11773 # none: in case threads are in libc; should be tried before -Kthread and 11774 # other compiler flags to prevent continual compiler warnings 11775 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 11776 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 11777 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 11778 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 11779 # -pthreads: Solaris/gcc 11780 # -mthreads: Mingw32/gcc, Lynx/gcc 11781 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 11782 # doesn't hurt to check since this sometimes defines pthreads too; 11783 # also defines -D_REENTRANT) 11784 # ... -mt is also the pthreads flag for HP/aCC 11785 # pthread: Linux, etcetera 11786 # --thread-safe: KAI C++ 11787 # pthread-config: use pthread-config program (for GNU Pth library) 11788 11789 case ${host_os} in 11790 solaris*) 11791 11792 # On Solaris (at least, for some versions), libc contains stubbed 11793 # (non-functional) versions of the pthreads routines, so link-based 11794 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 11795 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 11796 # a function called by this macro, so we could check for that, but 11797 # who knows whether they'll stub that too in a future libc.) So, 11798 # we'll just look for -pthreads and -lpthread first: 11799 11800 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 11801 ;; 11802 11803 darwin*) 11804 ax_pthread_flags="-pthread $ax_pthread_flags" 11805 ;; 11806 esac 11807 11808 # Clang doesn't consider unrecognized options an error unless we specify 11809 # -Werror. We throw in some extra Clang-specific options to ensure that 11810 # this doesn't happen for GCC, which also accepts -Werror. 11811 11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 11813 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; } 11814 save_CFLAGS="$CFLAGS" 11815 ax_pthread_extra_flags="-Werror" 11816 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 11817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11818 /* end confdefs.h. */ 11819 int foo(void); 11820 int 11821 main () 11822 { 11823 foo() 11824 ; 11825 return 0; 11826 } 11827 _ACEOF 11828 if ac_fn_c_try_compile "$LINENO"; then : 11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11830 $as_echo "yes" >&6; } 11831 else 11832 ax_pthread_extra_flags= 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11834 $as_echo "no" >&6; } 11835 fi 11836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11837 CFLAGS="$save_CFLAGS" 11838 11839 if test x"$ax_pthread_ok" = xno; then 11840 for flag in $ax_pthread_flags; do 11841 11842 case $flag in 11843 none) 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 11845 $as_echo_n "checking whether pthreads work without any flags... " >&6; } 11846 ;; 11847 11848 -*) 11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 11850 $as_echo_n "checking whether pthreads work with $flag... " >&6; } 11851 PTHREAD_CFLAGS="$flag" 11852 ;; 11853 11854 pthread-config) 11855 # Extract the first word of "pthread-config", so it can be a program name with args. 11856 set dummy pthread-config; ac_word=$2 11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11858 $as_echo_n "checking for $ac_word... " >&6; } 11859 if ${ac_cv_prog_ax_pthread_config+:} false; then : 11860 $as_echo_n "(cached) " >&6 11861 else 11862 if test -n "$ax_pthread_config"; then 11863 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 11864 else 11865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11866 for as_dir in $PATH 11867 do 11868 IFS=$as_save_IFS 11869 test -z "$as_dir" && as_dir=. 11870 for ac_exec_ext in '' $ac_executable_extensions; do 11871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11872 ac_cv_prog_ax_pthread_config="yes" 11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11874 break 2 11875 fi 11876 done 11877 done 11878 IFS=$as_save_IFS 11879 11880 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 11881 fi 11882 fi 11883 ax_pthread_config=$ac_cv_prog_ax_pthread_config 11884 if test -n "$ax_pthread_config"; then 11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 11886 $as_echo "$ax_pthread_config" >&6; } 11887 else 11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11889 $as_echo "no" >&6; } 11890 fi 11891 11892 11893 if test x"$ax_pthread_config" = xno; then continue; fi 11894 PTHREAD_CFLAGS="`pthread-config --cflags`" 11895 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 11896 ;; 11897 11898 *) 11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 11900 $as_echo_n "checking for the pthreads library -l$flag... " >&6; } 11901 PTHREAD_LIBS="-l$flag" 11902 ;; 11903 esac 11904 11905 save_LIBS="$LIBS" 11906 save_CFLAGS="$CFLAGS" 11907 LIBS="$PTHREAD_LIBS $LIBS" 11908 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 11909 11910 # Check for various functions. We must include pthread.h, 11911 # since some functions may be macros. (On the Sequent, we 11912 # need a special flag -Kthread to make this header compile.) 11913 # We check for pthread_join because it is in -lpthread on IRIX 11914 # while pthread_create is in libc. We check for pthread_attr_init 11915 # due to DEC craziness with -lpthreads. We check for 11916 # pthread_cleanup_push because it is one of the few pthread 11917 # functions on Solaris that doesn't have a non-functional libc stub. 11918 # We try pthread_create on general principles. 11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11920 /* end confdefs.h. */ 11921 #include <pthread.h> 11922 static void routine(void *a) { a = 0; } 11923 static void *start_routine(void *a) { return a; } 11924 int 11925 main () 11926 { 11927 pthread_t th; pthread_attr_t attr; 11928 pthread_create(&th, 0, start_routine, 0); 11929 pthread_join(th, 0); 11930 pthread_attr_init(&attr); 11931 pthread_cleanup_push(routine, 0); 11932 pthread_cleanup_pop(0) /* ; */ 11933 ; 11934 return 0; 11935 } 11936 _ACEOF 11937 if ac_fn_c_try_link "$LINENO"; then : 11938 ax_pthread_ok=yes 11939 fi 11940 rm -f core conftest.err conftest.$ac_objext \ 11941 conftest$ac_exeext conftest.$ac_ext 11942 11943 LIBS="$save_LIBS" 11944 CFLAGS="$save_CFLAGS" 11945 11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 11947 $as_echo "$ax_pthread_ok" >&6; } 11948 if test "x$ax_pthread_ok" = xyes; then 11949 break; 11950 fi 11951 11952 PTHREAD_LIBS="" 11953 PTHREAD_CFLAGS="" 11954 done 11955 fi 11956 11957 # Various other checks: 11958 if test "x$ax_pthread_ok" = xyes; then 11959 save_LIBS="$LIBS" 11960 LIBS="$PTHREAD_LIBS $LIBS" 11961 save_CFLAGS="$CFLAGS" 11962 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 11963 11964 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 11966 $as_echo_n "checking for joinable pthread attribute... " >&6; } 11967 attr_name=unknown 11968 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 11969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11970 /* end confdefs.h. */ 11971 #include <pthread.h> 11972 int 11973 main () 11974 { 11975 int attr = $attr; return attr /* ; */ 11976 ; 11977 return 0; 11978 } 11979 _ACEOF 11980 if ac_fn_c_try_link "$LINENO"; then : 11981 attr_name=$attr; break 11982 fi 11983 rm -f core conftest.err conftest.$ac_objext \ 11984 conftest$ac_exeext conftest.$ac_ext 11985 done 11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 11987 $as_echo "$attr_name" >&6; } 11988 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 11989 11990 cat >>confdefs.h <<_ACEOF 11991 #define PTHREAD_CREATE_JOINABLE $attr_name 11992 _ACEOF 11993 11994 fi 11995 11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 11997 $as_echo_n "checking if more special flags are required for pthreads... " >&6; } 11998 flag=no 11999 case ${host_os} in 12000 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 12001 osf* | hpux*) flag="-D_REENTRANT";; 12002 solaris*) 12003 if test "$GCC" = "yes"; then 12004 flag="-D_REENTRANT" 12005 else 12006 # TODO: What about Clang on Solaris? 12007 flag="-mt -D_REENTRANT" 12008 fi 12009 ;; 12010 esac 12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 12012 $as_echo "$flag" >&6; } 12013 if test "x$flag" != xno; then 12014 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 12015 fi 12016 12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 12018 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 12019 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 12020 $as_echo_n "(cached) " >&6 12021 else 12022 12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12024 /* end confdefs.h. */ 12025 #include <pthread.h> 12026 int 12027 main () 12028 { 12029 int i = PTHREAD_PRIO_INHERIT; 12030 ; 12031 return 0; 12032 } 12033 _ACEOF 12034 if ac_fn_c_try_link "$LINENO"; then : 12035 ax_cv_PTHREAD_PRIO_INHERIT=yes 12036 else 12037 ax_cv_PTHREAD_PRIO_INHERIT=no 12038 fi 12039 rm -f core conftest.err conftest.$ac_objext \ 12040 conftest$ac_exeext conftest.$ac_ext 12041 12042 fi 12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 12044 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 12045 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 12046 12047 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 12048 12049 fi 12050 12051 LIBS="$save_LIBS" 12052 CFLAGS="$save_CFLAGS" 12053 12054 # More AIX lossage: compile with *_r variant 12055 if test "x$GCC" != xyes; then 12056 case $host_os in 12057 aix*) 12058 case "x/$CC" in #( 12059 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 12060 #handle absolute path differently from PATH based program lookup 12061 case "x$CC" in #( 12062 x/*) : 12063 if as_fn_executable_p ${CC}_r; then : 12064 PTHREAD_CC="${CC}_r" 12065 fi ;; #( 12066 *) : 12067 for ac_prog in ${CC}_r 12068 do 12069 # Extract the first word of "$ac_prog", so it can be a program name with args. 12070 set dummy $ac_prog; ac_word=$2 12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12072 $as_echo_n "checking for $ac_word... " >&6; } 12073 if ${ac_cv_prog_PTHREAD_CC+:} false; then : 12074 $as_echo_n "(cached) " >&6 12075 else 12076 if test -n "$PTHREAD_CC"; then 12077 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 12078 else 12079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12080 for as_dir in $PATH 12081 do 12082 IFS=$as_save_IFS 12083 test -z "$as_dir" && as_dir=. 12084 for ac_exec_ext in '' $ac_executable_extensions; do 12085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12086 ac_cv_prog_PTHREAD_CC="$ac_prog" 12087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12088 break 2 12089 fi 12090 done 12091 done 12092 IFS=$as_save_IFS 12093 12094 fi 12095 fi 12096 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 12097 if test -n "$PTHREAD_CC"; then 12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 12099 $as_echo "$PTHREAD_CC" >&6; } 12100 else 12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12102 $as_echo "no" >&6; } 12103 fi 12104 12105 12106 test -n "$PTHREAD_CC" && break 12107 done 12108 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 12109 ;; 12110 esac ;; #( 12111 *) : 12112 ;; 12113 esac 12114 ;; 12115 esac 12116 fi 12117 fi 12118 12119 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 12120 12121 12122 12123 12124 12125 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 12126 if test x"$ax_pthread_ok" = xyes; then 12127 12128 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 12129 12130 : 12131 else 12132 ax_pthread_ok=no 12133 12134 fi 12135 ac_ext=c 12136 ac_cpp='$CPP $CPPFLAGS' 12137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12139 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12140 12141 12142 12143 # Check whether --enable-opencl was given. 12144 if test "${enable_opencl+set}" = set; then : 12145 enableval=$enable_opencl; enable_opencl=$enableval 12146 else 12147 enable_opencl='no' 12148 fi 12149 12150 12151 if test "$enable_opencl" = 'yes'; then 12152 ac_ext=c 12153 ac_cpp='$CPP $CPPFLAGS' 12154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12156 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12157 12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 12159 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } 12160 if ${ax_cv_c_compiler_ms+:} false; then : 12161 $as_echo_n "(cached) " >&6 12162 else 12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12164 /* end confdefs.h. */ 12165 12166 int 12167 main () 12168 { 12169 #ifndef _MSC_VER 12170 choke me 12171 #endif 12172 12173 ; 12174 return 0; 12175 } 12176 _ACEOF 12177 if ac_fn_c_try_compile "$LINENO"; then : 12178 ax_compiler_ms=yes 12179 else 12180 ax_compiler_ms=no 12181 fi 12182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12183 ax_cv_c_compiler_ms=$ax_compiler_ms 12184 12185 fi 12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 12187 $as_echo "$ax_cv_c_compiler_ms" >&6; } 12188 if test X$ax_compiler_ms = Xno; then : 12189 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm" 12190 fi 12191 12192 ax_save_CPPFLAGS=$CPPFLAGS 12193 ax_save_CL_CFLAGS=$CL_CFLAGS 12194 12195 found_opencl_header='no' 12196 CPPFLAGS="$CL_CFLAGS $CPPFLAGS" 12197 for ac_header in CL/cl.h OpenCL/cl.h 12198 do : 12199 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12200 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12201 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12202 cat >>confdefs.h <<_ACEOF 12203 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12204 _ACEOF 12205 found_opencl_header='yes' 12206 break; 12207 else 12208 found_opencl_header='no' 12209 fi 12210 12211 done 12212 12213 12214 if test X$found_opencl_header = Xno; then : 12215 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;} 12216 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;} 12217 CL_CFLAGS="-I$AMDAPPSDKROOT/include" 12218 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS" 12219 for ac_header in CL/cl.h OpenCL/cl.h 12220 do : 12221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12222 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12223 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12224 cat >>confdefs.h <<_ACEOF 12225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12226 _ACEOF 12227 found_opencl_header='yes' 12228 break; 12229 else 12230 found_opencl_header='no' 12231 fi 12232 12233 done 12234 12235 12236 fi 12237 12238 CPPFLAGS="$ax_save_CPPFLAGS" 12239 12240 for ac_header in windows.h 12241 do : 12242 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 12243 if test "x$ac_cv_header_windows_h" = xyes; then : 12244 cat >>confdefs.h <<_ACEOF 12245 #define HAVE_WINDOWS_H 1 12246 _ACEOF 12247 12248 fi 12249 12250 done 12251 12252 12253 12254 12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5 12256 $as_echo_n "checking for OpenCL library... " >&6; } 12257 if ${ax_cv_check_cl_libcl+:} false; then : 12258 $as_echo_n "(cached) " >&6 12259 else 12260 ax_cv_check_cl_libcl=no 12261 case $host_cpu in 12262 x86_64) ax_check_cl_libdir=lib64 12263 ax_check_cl_amd_libdir=x86_64 12264 ;; 12265 *) ax_check_cl_libdir=lib 12266 ax_check_cl_amd_libdir=x86 12267 ;; 12268 esac 12269 ax_save_CPPFLAGS=$CPPFLAGS 12270 CPPFLAGS="$CL_CFLAGS $CPPFLAGS" 12271 ax_save_LIBS=$LIBS 12272 LIBS="" 12273 ax_check_libs="-lOpenCL -lCL -lclparser" 12274 for ax_lib in $ax_check_libs; do 12275 if test X$ax_compiler_ms = Xyes; then : 12276 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'` 12277 else 12278 ax_try_lib=$ax_lib 12279 fi 12280 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS" 12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12282 /* end confdefs.h. */ 12283 12284 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 12285 # include <windows.h> 12286 # endif 12287 # ifdef HAVE_CL_CL_H 12288 # include <CL/cl.h> 12289 # elif defined(HAVE_OPENCL_CL_H) 12290 # include <OpenCL/cl.h> 12291 # else 12292 # error no CL.h 12293 # endif 12294 int 12295 main () 12296 { 12297 clCreateContextFromType(0,0,0,0,0) 12298 ; 12299 return 0; 12300 } 12301 _ACEOF 12302 if ac_fn_c_try_link "$LINENO"; then : 12303 ax_cv_check_cl_libcl=$ax_try_lib; break 12304 else 12305 ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS" 12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12307 /* end confdefs.h. */ 12308 12309 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 12310 # include <windows.h> 12311 # endif 12312 # ifdef HAVE_CL_CL_H 12313 # include <CL/cl.h> 12314 # elif defined(HAVE_OPENCL_CL_H) 12315 # include <OpenCL/cl.h> 12316 # else 12317 # error no CL.h 12318 # endif 12319 int 12320 main () 12321 { 12322 clCreateContextFromType(0,0,0,0,0) 12323 ; 12324 return 0; 12325 } 12326 _ACEOF 12327 if ac_fn_c_try_link "$LINENO"; then : 12328 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break 12329 else 12330 ax_check_cl_dylib_flag='-Wl,-framework,OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS" 12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12332 /* end confdefs.h. */ 12333 12334 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 12335 # include <windows.h> 12336 # endif 12337 # ifdef HAVE_CL_CL_H 12338 # include <CL/cl.h> 12339 # elif defined(HAVE_OPENCL_CL_H) 12340 # include <OpenCL/cl.h> 12341 # else 12342 # error no CL.h 12343 # endif 12344 int 12345 main () 12346 { 12347 clCreateContextFromType(0,0,0,0,0) 12348 ; 12349 return 0; 12350 } 12351 _ACEOF 12352 if ac_fn_c_try_link "$LINENO"; then : 12353 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break 12354 else 12355 ax_check_cl_amd_flags="-L$AMDAPPSDKROOT/lib/$ax_check_cl_amd_libdir" LIBS="$ax_try_lib $ax_check_cl_amd_flags $CL_LIBS $ax_save_LIBS" 12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12357 /* end confdefs.h. */ 12358 12359 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 12360 # include <windows.h> 12361 # endif 12362 # ifdef HAVE_CL_CL_H 12363 # include <CL/cl.h> 12364 # elif defined(HAVE_OPENCL_CL_H) 12365 # include <OpenCL/cl.h> 12366 # else 12367 # error no CL.h 12368 # endif 12369 int 12370 main () 12371 { 12372 clCreateContextFromType(0,0,0,0,0) 12373 ; 12374 return 0; 12375 } 12376 _ACEOF 12377 if ac_fn_c_try_link "$LINENO"; then : 12378 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break 12379 12380 fi 12381 rm -f core conftest.err conftest.$ac_objext \ 12382 conftest$ac_exeext conftest.$ac_ext 12383 12384 12385 fi 12386 rm -f core conftest.err conftest.$ac_objext \ 12387 conftest$ac_exeext conftest.$ac_ext 12388 fi 12389 rm -f core conftest.err conftest.$ac_objext \ 12390 conftest$ac_exeext conftest.$ac_ext 12391 fi 12392 rm -f core conftest.err conftest.$ac_objext \ 12393 conftest$ac_exeext conftest.$ac_ext 12394 done 12395 12396 if test "X$ax_cv_check_cl_libcl" = Xno; then : 12397 LIBS='-Wl,-framework,OpenCL' 12398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12399 /* end confdefs.h. */ 12400 12401 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 12402 # include <windows.h> 12403 # endif 12404 # ifdef HAVE_CL_CL_H 12405 # include <CL/cl.h> 12406 # elif defined(HAVE_OPENCL_CL_H) 12407 # include <OpenCL/cl.h> 12408 # else 12409 # error no CL.h 12410 # endif 12411 int 12412 main () 12413 { 12414 clCreateContextFromType(0,0,0,0,0) 12415 ; 12416 return 0; 12417 } 12418 _ACEOF 12419 if ac_fn_c_try_link "$LINENO"; then : 12420 ax_cv_check_cl_libcl=$LIBS 12421 fi 12422 rm -f core conftest.err conftest.$ac_objext \ 12423 conftest$ac_exeext conftest.$ac_ext 12424 fi 12425 12426 LIBS=$ax_save_LIBS 12427 CPPFLAGS=$ax_save_CPPFLAGS 12428 fi 12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5 12430 $as_echo "$ax_cv_check_cl_libcl" >&6; } 12431 12432 if test "X$ax_cv_check_cl_libcl" = Xno; then : 12433 no_cl=yes; CL_CFLAGS=""; CL_LIBS="" 12434 else 12435 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"; 12436 $as_echo "#define _OPENCL 1" >>confdefs.h 12437 12438 fi 12439 ac_ext=c 12440 ac_cpp='$CPP $CPPFLAGS' 12441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12443 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12444 12445 fi 12446 12447 12448 12449 #remove static link on Linux 12450 CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'` 12451 12452 12453 CFLAGS="$CL_CFLAGS $CFLAGS" 12454 CPPFLAGS="$CL_CFLAGS $CPPFLAGS" 12455 LIBS="$CL_LIBS $LIBS" 12456 12457 if test "$enable_opencl" != no; then 12458 if test "X$ax_cv_check_cl_libcl" != Xno; then : 12459 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES" 12460 fi 12461 fi 12462 12463 ######## 12464 # 12465 # Check for large file support 12466 # 12467 ######## 12468 # Check whether --enable-largefile was given. 12469 if test "${enable_largefile+set}" = set; then : 12470 enableval=$enable_largefile; 12471 fi 12472 12473 if test "$enable_largefile" != no; then 12474 12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12476 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12477 if ${ac_cv_sys_largefile_CC+:} false; then : 12478 $as_echo_n "(cached) " >&6 12479 else 12480 ac_cv_sys_largefile_CC=no 12481 if test "$GCC" != yes; then 12482 ac_save_CC=$CC 12483 while :; do 12484 # IRIX 6.2 and later do not support large files by default, 12485 # so use the C compiler's -n32 option if that helps. 12486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12487 /* end confdefs.h. */ 12488 #include <sys/types.h> 12489 /* Check that off_t can represent 2**63 - 1 correctly. 12490 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12491 since some C++ compilers masquerading as C compilers 12492 incorrectly reject 9223372036854775807. */ 12493 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12494 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12495 && LARGE_OFF_T % 2147483647 == 1) 12496 ? 1 : -1]; 12497 int 12498 main () 12499 { 12500 12501 ; 12502 return 0; 12503 } 12504 _ACEOF 12505 if ac_fn_c_try_compile "$LINENO"; then : 12506 break 12507 fi 12508 rm -f core conftest.err conftest.$ac_objext 12509 CC="$CC -n32" 12510 if ac_fn_c_try_compile "$LINENO"; then : 12511 ac_cv_sys_largefile_CC=' -n32'; break 12512 fi 12513 rm -f core conftest.err conftest.$ac_objext 12514 break 12515 done 12516 CC=$ac_save_CC 12517 rm -f conftest.$ac_ext 12518 fi 12519 fi 12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12521 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 12522 if test "$ac_cv_sys_largefile_CC" != no; then 12523 CC=$CC$ac_cv_sys_largefile_CC 12524 fi 12525 12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12527 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12528 if ${ac_cv_sys_file_offset_bits+:} false; then : 12529 $as_echo_n "(cached) " >&6 12530 else 12531 while :; do 12532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12533 /* end confdefs.h. */ 12534 #include <sys/types.h> 12535 /* Check that off_t can represent 2**63 - 1 correctly. 12536 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12537 since some C++ compilers masquerading as C compilers 12538 incorrectly reject 9223372036854775807. */ 12539 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12540 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12541 && LARGE_OFF_T % 2147483647 == 1) 12542 ? 1 : -1]; 12543 int 12544 main () 12545 { 12546 12547 ; 12548 return 0; 12549 } 12550 _ACEOF 12551 if ac_fn_c_try_compile "$LINENO"; then : 12552 ac_cv_sys_file_offset_bits=no; break 12553 fi 12554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12556 /* end confdefs.h. */ 12557 #define _FILE_OFFSET_BITS 64 12558 #include <sys/types.h> 12559 /* Check that off_t can represent 2**63 - 1 correctly. 12560 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12561 since some C++ compilers masquerading as C compilers 12562 incorrectly reject 9223372036854775807. */ 12563 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12564 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12565 && LARGE_OFF_T % 2147483647 == 1) 12566 ? 1 : -1]; 12567 int 12568 main () 12569 { 12570 12571 ; 12572 return 0; 12573 } 12574 _ACEOF 12575 if ac_fn_c_try_compile "$LINENO"; then : 12576 ac_cv_sys_file_offset_bits=64; break 12577 fi 12578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12579 ac_cv_sys_file_offset_bits=unknown 12580 break 12581 done 12582 fi 12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12584 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12585 case $ac_cv_sys_file_offset_bits in #( 12586 no | unknown) ;; 12587 *) 12588 cat >>confdefs.h <<_ACEOF 12589 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12590 _ACEOF 12591 ;; 12592 esac 12593 rm -rf conftest* 12594 if test $ac_cv_sys_file_offset_bits = unknown; then 12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12596 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12597 if ${ac_cv_sys_large_files+:} false; then : 12598 $as_echo_n "(cached) " >&6 12599 else 12600 while :; do 12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12602 /* end confdefs.h. */ 12603 #include <sys/types.h> 12604 /* Check that off_t can represent 2**63 - 1 correctly. 12605 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12606 since some C++ compilers masquerading as C compilers 12607 incorrectly reject 9223372036854775807. */ 12608 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12609 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12610 && LARGE_OFF_T % 2147483647 == 1) 12611 ? 1 : -1]; 12612 int 12613 main () 12614 { 12615 12616 ; 12617 return 0; 12618 } 12619 _ACEOF 12620 if ac_fn_c_try_compile "$LINENO"; then : 12621 ac_cv_sys_large_files=no; break 12622 fi 12623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12625 /* end confdefs.h. */ 12626 #define _LARGE_FILES 1 12627 #include <sys/types.h> 12628 /* Check that off_t can represent 2**63 - 1 correctly. 12629 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12630 since some C++ compilers masquerading as C compilers 12631 incorrectly reject 9223372036854775807. */ 12632 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12633 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12634 && LARGE_OFF_T % 2147483647 == 1) 12635 ? 1 : -1]; 12636 int 12637 main () 12638 { 12639 12640 ; 12641 return 0; 12642 } 12643 _ACEOF 12644 if ac_fn_c_try_compile "$LINENO"; then : 12645 ac_cv_sys_large_files=1; break 12646 fi 12647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12648 ac_cv_sys_large_files=unknown 12649 break 12650 done 12651 fi 12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12653 $as_echo "$ac_cv_sys_large_files" >&6; } 12654 case $ac_cv_sys_large_files in #( 12655 no | unknown) ;; 12656 *) 12657 cat >>confdefs.h <<_ACEOF 12658 #define _LARGE_FILES $ac_cv_sys_large_files 12659 _ACEOF 12660 ;; 12661 esac 12662 rm -rf conftest* 12663 fi 12664 12665 12666 fi 12667 12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 12669 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 12670 if ${ac_cv_sys_largefile_source+:} false; then : 12671 $as_echo_n "(cached) " >&6 12672 else 12673 while :; do 12674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12675 /* end confdefs.h. */ 12676 #include <sys/types.h> /* for off_t */ 12677 #include <stdio.h> 12678 int 12679 main () 12680 { 12681 int (*fp) (FILE *, off_t, int) = fseeko; 12682 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12683 ; 12684 return 0; 12685 } 12686 _ACEOF 12687 if ac_fn_c_try_link "$LINENO"; then : 12688 ac_cv_sys_largefile_source=no; break 12689 fi 12690 rm -f core conftest.err conftest.$ac_objext \ 12691 conftest$ac_exeext conftest.$ac_ext 12692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12693 /* end confdefs.h. */ 12694 #define _LARGEFILE_SOURCE 1 12695 #include <sys/types.h> /* for off_t */ 12696 #include <stdio.h> 12697 int 12698 main () 12699 { 12700 int (*fp) (FILE *, off_t, int) = fseeko; 12701 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12702 ; 12703 return 0; 12704 } 12705 _ACEOF 12706 if ac_fn_c_try_link "$LINENO"; then : 12707 ac_cv_sys_largefile_source=1; break 12708 fi 12709 rm -f core conftest.err conftest.$ac_objext \ 12710 conftest$ac_exeext conftest.$ac_ext 12711 ac_cv_sys_largefile_source=unknown 12712 break 12713 done 12714 fi 12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 12716 $as_echo "$ac_cv_sys_largefile_source" >&6; } 12717 case $ac_cv_sys_largefile_source in #( 12718 no | unknown) ;; 12719 *) 12720 cat >>confdefs.h <<_ACEOF 12721 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 12722 _ACEOF 12723 ;; 12724 esac 12725 rm -rf conftest* 12726 12727 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 12728 # in glibc 2.1.3, but that breaks too many other things. 12729 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 12730 if test $ac_cv_sys_largefile_source != unknown; then 12731 12732 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 12733 12734 fi 12735 12736 LFS_CPPFLAGS='' 12737 if test "$enable_largefile" != no; then 12738 case $ac_cv_sys_file_offset_bits in 12739 no) 12740 # nothing to do here as the host supports LFS fine 12741 ;; 12742 unknown) 12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5 12744 $as_echo_n "checking for native large file support... " >&6; } 12745 if test "$cross_compiling" = yes; then : 12746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12748 as_fn_error $? "cannot run test program while cross compiling 12749 See \`config.log' for more details" "$LINENO" 5; } 12750 else 12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12752 /* end confdefs.h. */ 12753 #include <unistd.h> 12754 main () { 12755 exit(!(sizeof(off_t) == 8)); 12756 } 12757 int 12758 main () 12759 { 12760 12761 ; 12762 return 0; 12763 } 12764 _ACEOF 12765 if ac_fn_c_try_run "$LINENO"; then : 12766 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h 12767 12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12769 $as_echo "yes" >&6; } 12770 else 12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12772 $as_echo "no" >&6; } 12773 fi 12774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12775 conftest.$ac_objext conftest.beam conftest.$ac_ext 12776 fi 12777 12778 ;; 12779 *) 12780 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" 12781 ;; 12782 esac 12783 if test "$ac_cv_sys_large_files" != 'no'; then 12784 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1" 12785 fi 12786 if test "$ac_cv_sys_largefile_source" != 'no'; then 12787 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1" 12788 fi 12789 fi 12790 12791 12792 # Configure libtool 12793 enable_dlopen=yes 12794 12795 12796 12797 case `pwd` in 12798 *\ * | *\ *) 12799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 12800 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 12801 esac 12802 12803 12804 12805 macro_version='2.4.6' 12806 macro_revision='2.4.6' 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 ltmain=$ac_aux_dir/ltmain.sh 12821 12822 # Backslashify metacharacters that are still active within 12823 # double-quoted strings. 12824 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 12825 12826 # Same as above, but do not quote variable references. 12827 double_quote_subst='s/\(["`\\]\)/\\\1/g' 12828 12829 # Sed substitution to delay expansion of an escaped shell variable in a 12830 # double_quote_subst'ed string. 12831 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 12832 12833 # Sed substitution to delay expansion of an escaped single quote. 12834 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 12835 12836 # Sed substitution to avoid accidental globbing in evaled expressions 12837 no_glob_subst='s/\*/\\\*/g' 12838 12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 12840 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 12841 if ${lt_cv_path_NM+:} false; then : 12842 $as_echo_n "(cached) " >&6 12843 else 12844 if test -n "$NM"; then 12845 # Let the user override the test. 12846 lt_cv_path_NM=$NM 12847 else 12848 lt_nm_to_check=${ac_tool_prefix}nm 12849 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 12850 lt_nm_to_check="$lt_nm_to_check nm" 12851 fi 12852 for lt_tmp_nm in $lt_nm_to_check; do 12853 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12854 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 12855 IFS=$lt_save_ifs 12856 test -z "$ac_dir" && ac_dir=. 12857 tmp_nm=$ac_dir/$lt_tmp_nm 12858 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 12859 # Check to see if the nm accepts a BSD-compat flag. 12860 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 12861 # nm: unknown option "B" ignored 12862 # Tru64's nm complains that /dev/null is an invalid object file 12863 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 12864 case $build_os in 12865 mingw*) lt_bad_file=conftest.nm/nofile ;; 12866 *) lt_bad_file=/dev/null ;; 12867 esac 12868 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 12869 *$lt_bad_file* | *'Invalid file or object type'*) 12870 lt_cv_path_NM="$tmp_nm -B" 12871 break 2 12872 ;; 12873 *) 12874 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 12875 */dev/null*) 12876 lt_cv_path_NM="$tmp_nm -p" 12877 break 2 12878 ;; 12879 *) 12880 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 12881 continue # so that we can try to find one that supports BSD flags 12882 ;; 12883 esac 12884 ;; 12885 esac 12886 fi 12887 done 12888 IFS=$lt_save_ifs 12889 done 12890 : ${lt_cv_path_NM=no} 12891 fi 12892 fi 12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 12894 $as_echo "$lt_cv_path_NM" >&6; } 12895 if test no != "$lt_cv_path_NM"; then 12896 NM=$lt_cv_path_NM 12897 else 12898 # Didn't find any BSD compatible name lister, look for dumpbin. 12899 if test -n "$DUMPBIN"; then : 12900 # Let the user override the test. 12901 else 12902 if test -n "$ac_tool_prefix"; then 12903 for ac_prog in dumpbin "link -dump" 12904 do 12905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12906 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12908 $as_echo_n "checking for $ac_word... " >&6; } 12909 if ${ac_cv_prog_DUMPBIN+:} false; then : 12910 $as_echo_n "(cached) " >&6 12911 else 12912 if test -n "$DUMPBIN"; then 12913 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 12914 else 12915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12916 for as_dir in $PATH 12917 do 12918 IFS=$as_save_IFS 12919 test -z "$as_dir" && as_dir=. 12920 for ac_exec_ext in '' $ac_executable_extensions; do 12921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12922 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 12923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12924 break 2 12925 fi 12926 done 12927 done 12928 IFS=$as_save_IFS 12929 12930 fi 12931 fi 12932 DUMPBIN=$ac_cv_prog_DUMPBIN 12933 if test -n "$DUMPBIN"; then 12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 12935 $as_echo "$DUMPBIN" >&6; } 12936 else 12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12938 $as_echo "no" >&6; } 12939 fi 12940 12941 12942 test -n "$DUMPBIN" && break 12943 done 12944 fi 12945 if test -z "$DUMPBIN"; then 12946 ac_ct_DUMPBIN=$DUMPBIN 12947 for ac_prog in dumpbin "link -dump" 12948 do 12949 # Extract the first word of "$ac_prog", so it can be a program name with args. 12950 set dummy $ac_prog; ac_word=$2 12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12952 $as_echo_n "checking for $ac_word... " >&6; } 12953 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 12954 $as_echo_n "(cached) " >&6 12955 else 12956 if test -n "$ac_ct_DUMPBIN"; then 12957 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 12958 else 12959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12960 for as_dir in $PATH 12961 do 12962 IFS=$as_save_IFS 12963 test -z "$as_dir" && as_dir=. 12964 for ac_exec_ext in '' $ac_executable_extensions; do 12965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12966 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 12967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12968 break 2 12969 fi 12970 done 12971 done 12972 IFS=$as_save_IFS 12973 12974 fi 12975 fi 12976 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 12977 if test -n "$ac_ct_DUMPBIN"; then 12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 12979 $as_echo "$ac_ct_DUMPBIN" >&6; } 12980 else 12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12982 $as_echo "no" >&6; } 12983 fi 12984 12985 12986 test -n "$ac_ct_DUMPBIN" && break 12987 done 12988 12989 if test "x$ac_ct_DUMPBIN" = x; then 12990 DUMPBIN=":" 12991 else 12992 case $cross_compiling:$ac_tool_warned in 12993 yes:) 12994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12996 ac_tool_warned=yes ;; 12997 esac 12998 DUMPBIN=$ac_ct_DUMPBIN 12999 fi 13000 fi 13001 13002 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 13003 *COFF*) 13004 DUMPBIN="$DUMPBIN -symbols -headers" 13005 ;; 13006 *) 13007 DUMPBIN=: 13008 ;; 13009 esac 13010 fi 13011 13012 if test : != "$DUMPBIN"; then 13013 NM=$DUMPBIN 13014 fi 13015 fi 13016 test -z "$NM" && NM=nm 13017 13018 13019 13020 13021 13022 13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 13024 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 13025 if ${lt_cv_nm_interface+:} false; then : 13026 $as_echo_n "(cached) " >&6 13027 else 13028 lt_cv_nm_interface="BSD nm" 13029 echo "int some_variable = 0;" > conftest.$ac_ext 13030 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 13031 (eval "$ac_compile" 2>conftest.err) 13032 cat conftest.err >&5 13033 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 13034 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 13035 cat conftest.err >&5 13036 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 13037 cat conftest.out >&5 13038 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 13039 lt_cv_nm_interface="MS dumpbin" 13040 fi 13041 rm -f conftest* 13042 fi 13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 13044 $as_echo "$lt_cv_nm_interface" >&6; } 13045 13046 # find the maximum length of command line arguments 13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 13048 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 13049 if ${lt_cv_sys_max_cmd_len+:} false; then : 13050 $as_echo_n "(cached) " >&6 13051 else 13052 i=0 13053 teststring=ABCD 13054 13055 case $build_os in 13056 msdosdjgpp*) 13057 # On DJGPP, this test can blow up pretty badly due to problems in libc 13058 # (any single argument exceeding 2000 bytes causes a buffer overrun 13059 # during glob expansion). Even if it were fixed, the result of this 13060 # check would be larger than it should be. 13061 lt_cv_sys_max_cmd_len=12288; # 12K is about right 13062 ;; 13063 13064 gnu*) 13065 # Under GNU Hurd, this test is not required because there is 13066 # no limit to the length of command line arguments. 13067 # Libtool will interpret -1 as no limit whatsoever 13068 lt_cv_sys_max_cmd_len=-1; 13069 ;; 13070 13071 cygwin* | mingw* | cegcc*) 13072 # On Win9x/ME, this test blows up -- it succeeds, but takes 13073 # about 5 minutes as the teststring grows exponentially. 13074 # Worse, since 9x/ME are not pre-emptively multitasking, 13075 # you end up with a "frozen" computer, even though with patience 13076 # the test eventually succeeds (with a max line length of 256k). 13077 # Instead, let's just punt: use the minimum linelength reported by 13078 # all of the supported platforms: 8192 (on NT/2K/XP). 13079 lt_cv_sys_max_cmd_len=8192; 13080 ;; 13081 13082 mint*) 13083 # On MiNT this can take a long time and run out of memory. 13084 lt_cv_sys_max_cmd_len=8192; 13085 ;; 13086 13087 amigaos*) 13088 # On AmigaOS with pdksh, this test takes hours, literally. 13089 # So we just punt and use a minimum line length of 8192. 13090 lt_cv_sys_max_cmd_len=8192; 13091 ;; 13092 13093 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 13094 # This has been around since 386BSD, at least. Likely further. 13095 if test -x /sbin/sysctl; then 13096 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 13097 elif test -x /usr/sbin/sysctl; then 13098 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 13099 else 13100 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 13101 fi 13102 # And add a safety zone 13103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 13104 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 13105 ;; 13106 13107 interix*) 13108 # We know the value 262144 and hardcode it with a safety zone (like BSD) 13109 lt_cv_sys_max_cmd_len=196608 13110 ;; 13111 13112 os2*) 13113 # The test takes a long time on OS/2. 13114 lt_cv_sys_max_cmd_len=8192 13115 ;; 13116 13117 osf*) 13118 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 13119 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 13120 # nice to cause kernel panics so lets avoid the loop below. 13121 # First set a reasonable default. 13122 lt_cv_sys_max_cmd_len=16384 13123 # 13124 if test -x /sbin/sysconfig; then 13125 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 13126 *1*) lt_cv_sys_max_cmd_len=-1 ;; 13127 esac 13128 fi 13129 ;; 13130 sco3.2v5*) 13131 lt_cv_sys_max_cmd_len=102400 13132 ;; 13133 sysv5* | sco5v6* | sysv4.2uw2*) 13134 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 13135 if test -n "$kargmax"; then 13136 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 13137 else 13138 lt_cv_sys_max_cmd_len=32768 13139 fi 13140 ;; 13141 *) 13142 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 13143 if test -n "$lt_cv_sys_max_cmd_len" && \ 13144 test undefined != "$lt_cv_sys_max_cmd_len"; then 13145 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 13146 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 13147 else 13148 # Make teststring a little bigger before we do anything with it. 13149 # a 1K string should be a reasonable start. 13150 for i in 1 2 3 4 5 6 7 8; do 13151 teststring=$teststring$teststring 13152 done 13153 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 13154 # If test is not a shell built-in, we'll probably end up computing a 13155 # maximum length that is only half of the actual maximum length, but 13156 # we can't tell. 13157 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 13158 = "X$teststring$teststring"; } >/dev/null 2>&1 && 13159 test 17 != "$i" # 1/2 MB should be enough 13160 do 13161 i=`expr $i + 1` 13162 teststring=$teststring$teststring 13163 done 13164 # Only check the string length outside the loop. 13165 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 13166 teststring= 13167 # Add a significant safety factor because C++ compilers can tack on 13168 # massive amounts of additional arguments before passing them to the 13169 # linker. It appears as though 1/2 is a usable value. 13170 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 13171 fi 13172 ;; 13173 esac 13174 13175 fi 13176 13177 if test -n "$lt_cv_sys_max_cmd_len"; then 13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 13179 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 13180 else 13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 13182 $as_echo "none" >&6; } 13183 fi 13184 max_cmd_len=$lt_cv_sys_max_cmd_len 13185 13186 13187 13188 13189 13190 13191 : ${CP="cp -f"} 13192 : ${MV="mv -f"} 13193 : ${RM="rm -f"} 13194 13195 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13196 lt_unset=unset 13197 else 13198 lt_unset=false 13199 fi 13200 13201 13202 13203 13204 13205 # test EBCDIC or ASCII 13206 case `echo X|tr X '\101'` in 13207 A) # ASCII based system 13208 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 13209 lt_SP2NL='tr \040 \012' 13210 lt_NL2SP='tr \015\012 \040\040' 13211 ;; 13212 *) # EBCDIC based system 13213 lt_SP2NL='tr \100 \n' 13214 lt_NL2SP='tr \r\n \100\100' 13215 ;; 13216 esac 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 13227 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 13228 if ${lt_cv_to_host_file_cmd+:} false; then : 13229 $as_echo_n "(cached) " >&6 13230 else 13231 case $host in 13232 *-*-mingw* ) 13233 case $build in 13234 *-*-mingw* ) # actually msys 13235 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 13236 ;; 13237 *-*-cygwin* ) 13238 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 13239 ;; 13240 * ) # otherwise, assume *nix 13241 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 13242 ;; 13243 esac 13244 ;; 13245 *-*-cygwin* ) 13246 case $build in 13247 *-*-mingw* ) # actually msys 13248 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 13249 ;; 13250 *-*-cygwin* ) 13251 lt_cv_to_host_file_cmd=func_convert_file_noop 13252 ;; 13253 * ) # otherwise, assume *nix 13254 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 13255 ;; 13256 esac 13257 ;; 13258 * ) # unhandled hosts (and "normal" native builds) 13259 lt_cv_to_host_file_cmd=func_convert_file_noop 13260 ;; 13261 esac 13262 13263 fi 13264 13265 to_host_file_cmd=$lt_cv_to_host_file_cmd 13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 13267 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 13268 13269 13270 13271 13272 13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 13274 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 13275 if ${lt_cv_to_tool_file_cmd+:} false; then : 13276 $as_echo_n "(cached) " >&6 13277 else 13278 #assume ordinary cross tools, or native build. 13279 lt_cv_to_tool_file_cmd=func_convert_file_noop 13280 case $host in 13281 *-*-mingw* ) 13282 case $build in 13283 *-*-mingw* ) # actually msys 13284 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 13285 ;; 13286 esac 13287 ;; 13288 esac 13289 13290 fi 13291 13292 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 13294 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 13295 13296 13297 13298 13299 13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 13301 $as_echo_n "checking for $LD option to reload object files... " >&6; } 13302 if ${lt_cv_ld_reload_flag+:} false; then : 13303 $as_echo_n "(cached) " >&6 13304 else 13305 lt_cv_ld_reload_flag='-r' 13306 fi 13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 13308 $as_echo "$lt_cv_ld_reload_flag" >&6; } 13309 reload_flag=$lt_cv_ld_reload_flag 13310 case $reload_flag in 13311 "" | " "*) ;; 13312 *) reload_flag=" $reload_flag" ;; 13313 esac 13314 reload_cmds='$LD$reload_flag -o $output$reload_objs' 13315 case $host_os in 13316 cygwin* | mingw* | pw32* | cegcc*) 13317 if test yes != "$GCC"; then 13318 reload_cmds=false 13319 fi 13320 ;; 13321 darwin*) 13322 if test yes = "$GCC"; then 13323 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 13324 else 13325 reload_cmds='$LD$reload_flag -o $output$reload_objs' 13326 fi 13327 ;; 13328 esac 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 if test -n "$ac_tool_prefix"; then 13339 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 13340 set dummy ${ac_tool_prefix}objdump; ac_word=$2 13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13342 $as_echo_n "checking for $ac_word... " >&6; } 13343 if ${ac_cv_prog_OBJDUMP+:} false; then : 13344 $as_echo_n "(cached) " >&6 13345 else 13346 if test -n "$OBJDUMP"; then 13347 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 13348 else 13349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13350 for as_dir in $PATH 13351 do 13352 IFS=$as_save_IFS 13353 test -z "$as_dir" && as_dir=. 13354 for ac_exec_ext in '' $ac_executable_extensions; do 13355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13356 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 13357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13358 break 2 13359 fi 13360 done 13361 done 13362 IFS=$as_save_IFS 13363 13364 fi 13365 fi 13366 OBJDUMP=$ac_cv_prog_OBJDUMP 13367 if test -n "$OBJDUMP"; then 13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 13369 $as_echo "$OBJDUMP" >&6; } 13370 else 13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13372 $as_echo "no" >&6; } 13373 fi 13374 13375 13376 fi 13377 if test -z "$ac_cv_prog_OBJDUMP"; then 13378 ac_ct_OBJDUMP=$OBJDUMP 13379 # Extract the first word of "objdump", so it can be a program name with args. 13380 set dummy objdump; ac_word=$2 13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13382 $as_echo_n "checking for $ac_word... " >&6; } 13383 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 13384 $as_echo_n "(cached) " >&6 13385 else 13386 if test -n "$ac_ct_OBJDUMP"; then 13387 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 13388 else 13389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13390 for as_dir in $PATH 13391 do 13392 IFS=$as_save_IFS 13393 test -z "$as_dir" && as_dir=. 13394 for ac_exec_ext in '' $ac_executable_extensions; do 13395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13396 ac_cv_prog_ac_ct_OBJDUMP="objdump" 13397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13398 break 2 13399 fi 13400 done 13401 done 13402 IFS=$as_save_IFS 13403 13404 fi 13405 fi 13406 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 13407 if test -n "$ac_ct_OBJDUMP"; then 13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 13409 $as_echo "$ac_ct_OBJDUMP" >&6; } 13410 else 13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13412 $as_echo "no" >&6; } 13413 fi 13414 13415 if test "x$ac_ct_OBJDUMP" = x; then 13416 OBJDUMP="false" 13417 else 13418 case $cross_compiling:$ac_tool_warned in 13419 yes:) 13420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13422 ac_tool_warned=yes ;; 13423 esac 13424 OBJDUMP=$ac_ct_OBJDUMP 13425 fi 13426 else 13427 OBJDUMP="$ac_cv_prog_OBJDUMP" 13428 fi 13429 13430 test -z "$OBJDUMP" && OBJDUMP=objdump 13431 13432 13433 13434 13435 13436 13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 13438 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 13439 if ${lt_cv_deplibs_check_method+:} false; then : 13440 $as_echo_n "(cached) " >&6 13441 else 13442 lt_cv_file_magic_cmd='$MAGIC_CMD' 13443 lt_cv_file_magic_test_file= 13444 lt_cv_deplibs_check_method='unknown' 13445 # Need to set the preceding variable on all platforms that support 13446 # interlibrary dependencies. 13447 # 'none' -- dependencies not supported. 13448 # 'unknown' -- same as none, but documents that we really don't know. 13449 # 'pass_all' -- all dependencies passed with no checks. 13450 # 'test_compile' -- check by making test program. 13451 # 'file_magic [[regex]]' -- check by looking for files in library path 13452 # that responds to the $file_magic_cmd with a given extended regex. 13453 # If you have 'file' or equivalent on your system and you're not sure 13454 # whether 'pass_all' will *always* work, you probably want this one. 13455 13456 case $host_os in 13457 aix[4-9]*) 13458 lt_cv_deplibs_check_method=pass_all 13459 ;; 13460 13461 beos*) 13462 lt_cv_deplibs_check_method=pass_all 13463 ;; 13464 13465 bsdi[45]*) 13466 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 13467 lt_cv_file_magic_cmd='/usr/bin/file -L' 13468 lt_cv_file_magic_test_file=/shlib/libc.so 13469 ;; 13470 13471 cygwin*) 13472 # func_win32_libid is a shell function defined in ltmain.sh 13473 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 13474 lt_cv_file_magic_cmd='func_win32_libid' 13475 ;; 13476 13477 mingw* | pw32*) 13478 # Base MSYS/MinGW do not provide the 'file' command needed by 13479 # func_win32_libid shell function, so use a weaker test based on 'objdump', 13480 # unless we find 'file', for example because we are cross-compiling. 13481 if ( file / ) >/dev/null 2>&1; then 13482 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 13483 lt_cv_file_magic_cmd='func_win32_libid' 13484 else 13485 # Keep this pattern in sync with the one in func_win32_libid. 13486 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 13487 lt_cv_file_magic_cmd='$OBJDUMP -f' 13488 fi 13489 ;; 13490 13491 cegcc*) 13492 # use the weaker test based on 'objdump'. See mingw*. 13493 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 13494 lt_cv_file_magic_cmd='$OBJDUMP -f' 13495 ;; 13496 13497 darwin* | rhapsody*) 13498 lt_cv_deplibs_check_method=pass_all 13499 ;; 13500 13501 freebsd* | dragonfly*) 13502 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 13503 case $host_cpu in 13504 i*86 ) 13505 # Not sure whether the presence of OpenBSD here was a mistake. 13506 # Let's accept both of them until this is cleared up. 13507 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 13508 lt_cv_file_magic_cmd=/usr/bin/file 13509 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 13510 ;; 13511 esac 13512 else 13513 lt_cv_deplibs_check_method=pass_all 13514 fi 13515 ;; 13516 13517 haiku*) 13518 lt_cv_deplibs_check_method=pass_all 13519 ;; 13520 13521 hpux10.20* | hpux11*) 13522 lt_cv_file_magic_cmd=/usr/bin/file 13523 case $host_cpu in 13524 ia64*) 13525 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 13526 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 13527 ;; 13528 hppa*64*) 13529 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 13530 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 13531 ;; 13532 *) 13533 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 13534 lt_cv_file_magic_test_file=/usr/lib/libc.sl 13535 ;; 13536 esac 13537 ;; 13538 13539 interix[3-9]*) 13540 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 13541 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 13542 ;; 13543 13544 irix5* | irix6* | nonstopux*) 13545 case $LD in 13546 *-32|*"-32 ") libmagic=32-bit;; 13547 *-n32|*"-n32 ") libmagic=N32;; 13548 *-64|*"-64 ") libmagic=64-bit;; 13549 *) libmagic=never-match;; 13550 esac 13551 lt_cv_deplibs_check_method=pass_all 13552 ;; 13553 13554 # This must be glibc/ELF. 13555 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13556 lt_cv_deplibs_check_method=pass_all 13557 ;; 13558 13559 netbsd*) 13560 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 13561 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 13562 else 13563 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 13564 fi 13565 ;; 13566 13567 newos6*) 13568 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 13569 lt_cv_file_magic_cmd=/usr/bin/file 13570 lt_cv_file_magic_test_file=/usr/lib/libnls.so 13571 ;; 13572 13573 *nto* | *qnx*) 13574 lt_cv_deplibs_check_method=pass_all 13575 ;; 13576 13577 openbsd* | bitrig*) 13578 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 13580 else 13581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 13582 fi 13583 ;; 13584 13585 osf3* | osf4* | osf5*) 13586 lt_cv_deplibs_check_method=pass_all 13587 ;; 13588 13589 rdos*) 13590 lt_cv_deplibs_check_method=pass_all 13591 ;; 13592 13593 solaris*) 13594 lt_cv_deplibs_check_method=pass_all 13595 ;; 13596 13597 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13598 lt_cv_deplibs_check_method=pass_all 13599 ;; 13600 13601 sysv4 | sysv4.3*) 13602 case $host_vendor in 13603 motorola) 13604 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]' 13605 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 13606 ;; 13607 ncr) 13608 lt_cv_deplibs_check_method=pass_all 13609 ;; 13610 sequent) 13611 lt_cv_file_magic_cmd='/bin/file' 13612 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 13613 ;; 13614 sni) 13615 lt_cv_file_magic_cmd='/bin/file' 13616 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 13617 lt_cv_file_magic_test_file=/lib/libc.so 13618 ;; 13619 siemens) 13620 lt_cv_deplibs_check_method=pass_all 13621 ;; 13622 pc) 13623 lt_cv_deplibs_check_method=pass_all 13624 ;; 13625 esac 13626 ;; 13627 13628 tpf*) 13629 lt_cv_deplibs_check_method=pass_all 13630 ;; 13631 os2*) 13632 lt_cv_deplibs_check_method=pass_all 13633 ;; 13634 esac 13635 13636 fi 13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 13638 $as_echo "$lt_cv_deplibs_check_method" >&6; } 13639 13640 file_magic_glob= 13641 want_nocaseglob=no 13642 if test "$build" = "$host"; then 13643 case $host_os in 13644 mingw* | pw32*) 13645 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 13646 want_nocaseglob=yes 13647 else 13648 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 13649 fi 13650 ;; 13651 esac 13652 fi 13653 13654 file_magic_cmd=$lt_cv_file_magic_cmd 13655 deplibs_check_method=$lt_cv_deplibs_check_method 13656 test -z "$deplibs_check_method" && deplibs_check_method=unknown 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 if test -n "$ac_tool_prefix"; then 13680 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 13681 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13683 $as_echo_n "checking for $ac_word... " >&6; } 13684 if ${ac_cv_prog_DLLTOOL+:} false; then : 13685 $as_echo_n "(cached) " >&6 13686 else 13687 if test -n "$DLLTOOL"; then 13688 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 13689 else 13690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13691 for as_dir in $PATH 13692 do 13693 IFS=$as_save_IFS 13694 test -z "$as_dir" && as_dir=. 13695 for ac_exec_ext in '' $ac_executable_extensions; do 13696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13697 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 13698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13699 break 2 13700 fi 13701 done 13702 done 13703 IFS=$as_save_IFS 13704 13705 fi 13706 fi 13707 DLLTOOL=$ac_cv_prog_DLLTOOL 13708 if test -n "$DLLTOOL"; then 13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 13710 $as_echo "$DLLTOOL" >&6; } 13711 else 13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13713 $as_echo "no" >&6; } 13714 fi 13715 13716 13717 fi 13718 if test -z "$ac_cv_prog_DLLTOOL"; then 13719 ac_ct_DLLTOOL=$DLLTOOL 13720 # Extract the first word of "dlltool", so it can be a program name with args. 13721 set dummy dlltool; ac_word=$2 13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13723 $as_echo_n "checking for $ac_word... " >&6; } 13724 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 13725 $as_echo_n "(cached) " >&6 13726 else 13727 if test -n "$ac_ct_DLLTOOL"; then 13728 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 13729 else 13730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13731 for as_dir in $PATH 13732 do 13733 IFS=$as_save_IFS 13734 test -z "$as_dir" && as_dir=. 13735 for ac_exec_ext in '' $ac_executable_extensions; do 13736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13737 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 13738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13739 break 2 13740 fi 13741 done 13742 done 13743 IFS=$as_save_IFS 13744 13745 fi 13746 fi 13747 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 13748 if test -n "$ac_ct_DLLTOOL"; then 13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 13750 $as_echo "$ac_ct_DLLTOOL" >&6; } 13751 else 13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13753 $as_echo "no" >&6; } 13754 fi 13755 13756 if test "x$ac_ct_DLLTOOL" = x; then 13757 DLLTOOL="false" 13758 else 13759 case $cross_compiling:$ac_tool_warned in 13760 yes:) 13761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13763 ac_tool_warned=yes ;; 13764 esac 13765 DLLTOOL=$ac_ct_DLLTOOL 13766 fi 13767 else 13768 DLLTOOL="$ac_cv_prog_DLLTOOL" 13769 fi 13770 13771 test -z "$DLLTOOL" && DLLTOOL=dlltool 13772 13773 13774 13775 13776 13777 13778 13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 13780 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 13781 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 13782 $as_echo_n "(cached) " >&6 13783 else 13784 lt_cv_sharedlib_from_linklib_cmd='unknown' 13785 13786 case $host_os in 13787 cygwin* | mingw* | pw32* | cegcc*) 13788 # two different shell functions defined in ltmain.sh; 13789 # decide which one to use based on capabilities of $DLLTOOL 13790 case `$DLLTOOL --help 2>&1` in 13791 *--identify-strict*) 13792 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 13793 ;; 13794 *) 13795 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 13796 ;; 13797 esac 13798 ;; 13799 *) 13800 # fallback: assume linklib IS sharedlib 13801 lt_cv_sharedlib_from_linklib_cmd=$ECHO 13802 ;; 13803 esac 13804 13805 fi 13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 13807 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 13808 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 13809 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 13810 13811 13812 13813 13814 13815 13816 13817 if test -n "$ac_tool_prefix"; then 13818 for ac_prog in ar 13819 do 13820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13823 $as_echo_n "checking for $ac_word... " >&6; } 13824 if ${ac_cv_prog_AR+:} false; then : 13825 $as_echo_n "(cached) " >&6 13826 else 13827 if test -n "$AR"; then 13828 ac_cv_prog_AR="$AR" # Let the user override the test. 13829 else 13830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13831 for as_dir in $PATH 13832 do 13833 IFS=$as_save_IFS 13834 test -z "$as_dir" && as_dir=. 13835 for ac_exec_ext in '' $ac_executable_extensions; do 13836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13837 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 13838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13839 break 2 13840 fi 13841 done 13842 done 13843 IFS=$as_save_IFS 13844 13845 fi 13846 fi 13847 AR=$ac_cv_prog_AR 13848 if test -n "$AR"; then 13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 13850 $as_echo "$AR" >&6; } 13851 else 13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13853 $as_echo "no" >&6; } 13854 fi 13855 13856 13857 test -n "$AR" && break 13858 done 13859 fi 13860 if test -z "$AR"; then 13861 ac_ct_AR=$AR 13862 for ac_prog in ar 13863 do 13864 # Extract the first word of "$ac_prog", so it can be a program name with args. 13865 set dummy $ac_prog; ac_word=$2 13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13867 $as_echo_n "checking for $ac_word... " >&6; } 13868 if ${ac_cv_prog_ac_ct_AR+:} false; then : 13869 $as_echo_n "(cached) " >&6 13870 else 13871 if test -n "$ac_ct_AR"; then 13872 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13873 else 13874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13875 for as_dir in $PATH 13876 do 13877 IFS=$as_save_IFS 13878 test -z "$as_dir" && as_dir=. 13879 for ac_exec_ext in '' $ac_executable_extensions; do 13880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13881 ac_cv_prog_ac_ct_AR="$ac_prog" 13882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13883 break 2 13884 fi 13885 done 13886 done 13887 IFS=$as_save_IFS 13888 13889 fi 13890 fi 13891 ac_ct_AR=$ac_cv_prog_ac_ct_AR 13892 if test -n "$ac_ct_AR"; then 13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13894 $as_echo "$ac_ct_AR" >&6; } 13895 else 13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13897 $as_echo "no" >&6; } 13898 fi 13899 13900 13901 test -n "$ac_ct_AR" && break 13902 done 13903 13904 if test "x$ac_ct_AR" = x; then 13905 AR="false" 13906 else 13907 case $cross_compiling:$ac_tool_warned in 13908 yes:) 13909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13911 ac_tool_warned=yes ;; 13912 esac 13913 AR=$ac_ct_AR 13914 fi 13915 fi 13916 13917 : ${AR=ar} 13918 : ${AR_FLAGS=cru} 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13931 $as_echo_n "checking for archiver @FILE support... " >&6; } 13932 if ${lt_cv_ar_at_file+:} false; then : 13933 $as_echo_n "(cached) " >&6 13934 else 13935 lt_cv_ar_at_file=no 13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13937 /* end confdefs.h. */ 13938 13939 int 13940 main () 13941 { 13942 13943 ; 13944 return 0; 13945 } 13946 _ACEOF 13947 if ac_fn_c_try_compile "$LINENO"; then : 13948 echo conftest.$ac_objext > conftest.lst 13949 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13951 (eval $lt_ar_try) 2>&5 13952 ac_status=$? 13953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13954 test $ac_status = 0; } 13955 if test 0 -eq "$ac_status"; then 13956 # Ensure the archiver fails upon bogus file names. 13957 rm -f conftest.$ac_objext libconftest.a 13958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13959 (eval $lt_ar_try) 2>&5 13960 ac_status=$? 13961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13962 test $ac_status = 0; } 13963 if test 0 -ne "$ac_status"; then 13964 lt_cv_ar_at_file=@ 13965 fi 13966 fi 13967 rm -f conftest.* libconftest.a 13968 13969 fi 13970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13971 13972 fi 13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13974 $as_echo "$lt_cv_ar_at_file" >&6; } 13975 13976 if test no = "$lt_cv_ar_at_file"; then 13977 archiver_list_spec= 13978 else 13979 archiver_list_spec=$lt_cv_ar_at_file 13980 fi 13981 13982 13983 13984 13985 13986 13987 13988 if test -n "$ac_tool_prefix"; then 13989 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13990 set dummy ${ac_tool_prefix}strip; ac_word=$2 13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13992 $as_echo_n "checking for $ac_word... " >&6; } 13993 if ${ac_cv_prog_STRIP+:} false; then : 13994 $as_echo_n "(cached) " >&6 13995 else 13996 if test -n "$STRIP"; then 13997 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13998 else 13999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14000 for as_dir in $PATH 14001 do 14002 IFS=$as_save_IFS 14003 test -z "$as_dir" && as_dir=. 14004 for ac_exec_ext in '' $ac_executable_extensions; do 14005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14006 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 14007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14008 break 2 14009 fi 14010 done 14011 done 14012 IFS=$as_save_IFS 14013 14014 fi 14015 fi 14016 STRIP=$ac_cv_prog_STRIP 14017 if test -n "$STRIP"; then 14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 14019 $as_echo "$STRIP" >&6; } 14020 else 14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14022 $as_echo "no" >&6; } 14023 fi 14024 14025 14026 fi 14027 if test -z "$ac_cv_prog_STRIP"; then 14028 ac_ct_STRIP=$STRIP 14029 # Extract the first word of "strip", so it can be a program name with args. 14030 set dummy strip; ac_word=$2 14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14032 $as_echo_n "checking for $ac_word... " >&6; } 14033 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 14034 $as_echo_n "(cached) " >&6 14035 else 14036 if test -n "$ac_ct_STRIP"; then 14037 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 14038 else 14039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14040 for as_dir in $PATH 14041 do 14042 IFS=$as_save_IFS 14043 test -z "$as_dir" && as_dir=. 14044 for ac_exec_ext in '' $ac_executable_extensions; do 14045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14046 ac_cv_prog_ac_ct_STRIP="strip" 14047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14048 break 2 14049 fi 14050 done 14051 done 14052 IFS=$as_save_IFS 14053 14054 fi 14055 fi 14056 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 14057 if test -n "$ac_ct_STRIP"; then 14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 14059 $as_echo "$ac_ct_STRIP" >&6; } 14060 else 14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14062 $as_echo "no" >&6; } 14063 fi 14064 14065 if test "x$ac_ct_STRIP" = x; then 14066 STRIP=":" 14067 else 14068 case $cross_compiling:$ac_tool_warned in 14069 yes:) 14070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14072 ac_tool_warned=yes ;; 14073 esac 14074 STRIP=$ac_ct_STRIP 14075 fi 14076 else 14077 STRIP="$ac_cv_prog_STRIP" 14078 fi 14079 14080 test -z "$STRIP" && STRIP=: 14081 14082 14083 14084 14085 14086 14087 if test -n "$ac_tool_prefix"; then 14088 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 14089 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14091 $as_echo_n "checking for $ac_word... " >&6; } 14092 if ${ac_cv_prog_RANLIB+:} false; then : 14093 $as_echo_n "(cached) " >&6 14094 else 14095 if test -n "$RANLIB"; then 14096 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 14097 else 14098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14099 for as_dir in $PATH 14100 do 14101 IFS=$as_save_IFS 14102 test -z "$as_dir" && as_dir=. 14103 for ac_exec_ext in '' $ac_executable_extensions; do 14104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14105 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 14106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14107 break 2 14108 fi 14109 done 14110 done 14111 IFS=$as_save_IFS 14112 14113 fi 14114 fi 14115 RANLIB=$ac_cv_prog_RANLIB 14116 if test -n "$RANLIB"; then 14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 14118 $as_echo "$RANLIB" >&6; } 14119 else 14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14121 $as_echo "no" >&6; } 14122 fi 14123 14124 14125 fi 14126 if test -z "$ac_cv_prog_RANLIB"; then 14127 ac_ct_RANLIB=$RANLIB 14128 # Extract the first word of "ranlib", so it can be a program name with args. 14129 set dummy ranlib; ac_word=$2 14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14131 $as_echo_n "checking for $ac_word... " >&6; } 14132 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 14133 $as_echo_n "(cached) " >&6 14134 else 14135 if test -n "$ac_ct_RANLIB"; then 14136 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 14137 else 14138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14139 for as_dir in $PATH 14140 do 14141 IFS=$as_save_IFS 14142 test -z "$as_dir" && as_dir=. 14143 for ac_exec_ext in '' $ac_executable_extensions; do 14144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14145 ac_cv_prog_ac_ct_RANLIB="ranlib" 14146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14147 break 2 14148 fi 14149 done 14150 done 14151 IFS=$as_save_IFS 14152 14153 fi 14154 fi 14155 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 14156 if test -n "$ac_ct_RANLIB"; then 14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 14158 $as_echo "$ac_ct_RANLIB" >&6; } 14159 else 14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14161 $as_echo "no" >&6; } 14162 fi 14163 14164 if test "x$ac_ct_RANLIB" = x; then 14165 RANLIB=":" 14166 else 14167 case $cross_compiling:$ac_tool_warned in 14168 yes:) 14169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14171 ac_tool_warned=yes ;; 14172 esac 14173 RANLIB=$ac_ct_RANLIB 14174 fi 14175 else 14176 RANLIB="$ac_cv_prog_RANLIB" 14177 fi 14178 14179 test -z "$RANLIB" && RANLIB=: 14180 14181 14182 14183 14184 14185 14186 # Determine commands to create old-style static archives. 14187 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 14188 old_postinstall_cmds='chmod 644 $oldlib' 14189 old_postuninstall_cmds= 14190 14191 if test -n "$RANLIB"; then 14192 case $host_os in 14193 bitrig* | openbsd*) 14194 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 14195 ;; 14196 *) 14197 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 14198 ;; 14199 esac 14200 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 14201 fi 14202 14203 case $host_os in 14204 darwin*) 14205 lock_old_archive_extraction=yes ;; 14206 *) 14207 lock_old_archive_extraction=no ;; 14208 esac 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 # If no C compiler was specified, use CC. 14249 LTCC=${LTCC-"$CC"} 14250 14251 # If no C compiler flags were specified, use CFLAGS. 14252 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14253 14254 # Allow CC to be a program name with arguments. 14255 compiler=$CC 14256 14257 14258 # Check for command to grab the raw symbol name followed by C symbol from nm. 14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 14260 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 14261 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 14262 $as_echo_n "(cached) " >&6 14263 else 14264 14265 # These are sane defaults that work on at least a few old systems. 14266 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 14267 14268 # Character class describing NM global symbol codes. 14269 symcode='[BCDEGRST]' 14270 14271 # Regexp to match symbols that can be accessed directly from C. 14272 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 14273 14274 # Define system-specific variables. 14275 case $host_os in 14276 aix*) 14277 symcode='[BCDT]' 14278 ;; 14279 cygwin* | mingw* | pw32* | cegcc*) 14280 symcode='[ABCDGISTW]' 14281 ;; 14282 hpux*) 14283 if test ia64 = "$host_cpu"; then 14284 symcode='[ABCDEGRST]' 14285 fi 14286 ;; 14287 irix* | nonstopux*) 14288 symcode='[BCDEGRST]' 14289 ;; 14290 osf*) 14291 symcode='[BCDEGQRST]' 14292 ;; 14293 solaris*) 14294 symcode='[BDRT]' 14295 ;; 14296 sco3.2v5*) 14297 symcode='[DT]' 14298 ;; 14299 sysv4.2uw2*) 14300 symcode='[DT]' 14301 ;; 14302 sysv5* | sco5v6* | unixware* | OpenUNIX*) 14303 symcode='[ABDT]' 14304 ;; 14305 sysv4) 14306 symcode='[DFNSTU]' 14307 ;; 14308 esac 14309 14310 # If we're using GNU nm, then use its standard symbol codes. 14311 case `$NM -V 2>&1` in 14312 *GNU* | *'with BFD'*) 14313 symcode='[ABCDGIRSTW]' ;; 14314 esac 14315 14316 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 14317 # Gets list of data symbols to import. 14318 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 14319 # Adjust the below global symbol transforms to fixup imported variables. 14320 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 14321 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 14322 lt_c_name_lib_hook="\ 14323 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 14324 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 14325 else 14326 # Disable hooks by default. 14327 lt_cv_sys_global_symbol_to_import= 14328 lt_cdecl_hook= 14329 lt_c_name_hook= 14330 lt_c_name_lib_hook= 14331 fi 14332 14333 # Transform an extracted symbol line into a proper C declaration. 14334 # Some systems (esp. on ia64) link data and code symbols differently, 14335 # so use this general approach. 14336 lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 14337 $lt_cdecl_hook\ 14338 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 14339 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 14340 14341 # Transform an extracted symbol line into symbol name and symbol address 14342 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 14343 $lt_c_name_hook\ 14344 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 14345 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 14346 14347 # Transform an extracted symbol line into symbol name with lib prefix and 14348 # symbol address. 14349 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 14350 $lt_c_name_lib_hook\ 14351 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 14352 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 14353 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 14354 14355 # Handle CRLF in mingw tool chain 14356 opt_cr= 14357 case $build_os in 14358 mingw*) 14359 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 14360 ;; 14361 esac 14362 14363 # Try without a prefix underscore, then with it. 14364 for ac_symprfx in "" "_"; do 14365 14366 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 14367 symxfrm="\\1 $ac_symprfx\\2 \\2" 14368 14369 # Write the raw and C identifiers. 14370 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 14371 # Fake it for dumpbin and say T for any non-static function, 14372 # D for any global variable and I for any imported variable. 14373 # Also find C++ and __fastcall symbols from MSVC++, 14374 # which start with @ or ?. 14375 lt_cv_sys_global_symbol_pipe="$AWK '"\ 14376 " {last_section=section; section=\$ 3};"\ 14377 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 14378 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 14379 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 14380 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 14381 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 14382 " \$ 0!~/External *\|/{next};"\ 14383 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 14384 " {if(hide[section]) next};"\ 14385 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 14386 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 14387 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 14388 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 14389 " ' prfx=^$ac_symprfx" 14390 else 14391 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 14392 fi 14393 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 14394 14395 # Check to see that the pipe works correctly. 14396 pipe_works=no 14397 14398 rm -f conftest* 14399 cat > conftest.$ac_ext <<_LT_EOF 14400 #ifdef __cplusplus 14401 extern "C" { 14402 #endif 14403 char nm_test_var; 14404 void nm_test_func(void); 14405 void nm_test_func(void){} 14406 #ifdef __cplusplus 14407 } 14408 #endif 14409 int main(){nm_test_var='a';nm_test_func();return(0);} 14410 _LT_EOF 14411 14412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14413 (eval $ac_compile) 2>&5 14414 ac_status=$? 14415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14416 test $ac_status = 0; }; then 14417 # Now try to grab the symbols. 14418 nlist=conftest.nm 14419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 14420 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 14421 ac_status=$? 14422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14423 test $ac_status = 0; } && test -s "$nlist"; then 14424 # Try sorting and uniquifying the output. 14425 if sort "$nlist" | uniq > "$nlist"T; then 14426 mv -f "$nlist"T "$nlist" 14427 else 14428 rm -f "$nlist"T 14429 fi 14430 14431 # Make sure that we snagged all the symbols we need. 14432 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 14433 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 14434 cat <<_LT_EOF > conftest.$ac_ext 14435 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 14436 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 14437 /* DATA imports from DLLs on WIN32 can't be const, because runtime 14438 relocations are performed -- see ld's documentation on pseudo-relocs. */ 14439 # define LT_DLSYM_CONST 14440 #elif defined __osf__ 14441 /* This system does not cope well with relocations in const data. */ 14442 # define LT_DLSYM_CONST 14443 #else 14444 # define LT_DLSYM_CONST const 14445 #endif 14446 14447 #ifdef __cplusplus 14448 extern "C" { 14449 #endif 14450 14451 _LT_EOF 14452 # Now generate the symbol file. 14453 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 14454 14455 cat <<_LT_EOF >> conftest.$ac_ext 14456 14457 /* The mapping between symbol names and symbols. */ 14458 LT_DLSYM_CONST struct { 14459 const char *name; 14460 void *address; 14461 } 14462 lt__PROGRAM__LTX_preloaded_symbols[] = 14463 { 14464 { "@PROGRAM@", (void *) 0 }, 14465 _LT_EOF 14466 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 14467 cat <<\_LT_EOF >> conftest.$ac_ext 14468 {0, (void *) 0} 14469 }; 14470 14471 /* This works around a problem in FreeBSD linker */ 14472 #ifdef FREEBSD_WORKAROUND 14473 static const void *lt_preloaded_setup() { 14474 return lt__PROGRAM__LTX_preloaded_symbols; 14475 } 14476 #endif 14477 14478 #ifdef __cplusplus 14479 } 14480 #endif 14481 _LT_EOF 14482 # Now try linking the two files. 14483 mv conftest.$ac_objext conftstm.$ac_objext 14484 lt_globsym_save_LIBS=$LIBS 14485 lt_globsym_save_CFLAGS=$CFLAGS 14486 LIBS=conftstm.$ac_objext 14487 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 14488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14489 (eval $ac_link) 2>&5 14490 ac_status=$? 14491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14492 test $ac_status = 0; } && test -s conftest$ac_exeext; then 14493 pipe_works=yes 14494 fi 14495 LIBS=$lt_globsym_save_LIBS 14496 CFLAGS=$lt_globsym_save_CFLAGS 14497 else 14498 echo "cannot find nm_test_func in $nlist" >&5 14499 fi 14500 else 14501 echo "cannot find nm_test_var in $nlist" >&5 14502 fi 14503 else 14504 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 14505 fi 14506 else 14507 echo "$progname: failed program was:" >&5 14508 cat conftest.$ac_ext >&5 14509 fi 14510 rm -rf conftest* conftst* 14511 14512 # Do not use the global_symbol_pipe unless it works. 14513 if test yes = "$pipe_works"; then 14514 break 14515 else 14516 lt_cv_sys_global_symbol_pipe= 14517 fi 14518 done 14519 14520 fi 14521 14522 if test -z "$lt_cv_sys_global_symbol_pipe"; then 14523 lt_cv_sys_global_symbol_to_cdecl= 14524 fi 14525 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14527 $as_echo "failed" >&6; } 14528 else 14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 14530 $as_echo "ok" >&6; } 14531 fi 14532 14533 # Response file support. 14534 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 14535 nm_file_list_spec='@' 14536 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 14537 nm_file_list_spec='@' 14538 fi 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 14577 $as_echo_n "checking for sysroot... " >&6; } 14578 14579 # Check whether --with-sysroot was given. 14580 if test "${with_sysroot+set}" = set; then : 14581 withval=$with_sysroot; 14582 else 14583 with_sysroot=no 14584 fi 14585 14586 14587 lt_sysroot= 14588 case $with_sysroot in #( 14589 yes) 14590 if test yes = "$GCC"; then 14591 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 14592 fi 14593 ;; #( 14594 /*) 14595 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 14596 ;; #( 14597 no|'') 14598 ;; #( 14599 *) 14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 14601 $as_echo "$with_sysroot" >&6; } 14602 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 14603 ;; 14604 esac 14605 14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 14607 $as_echo "${lt_sysroot:-no}" >&6; } 14608 14609 14610 14611 14612 14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 14614 $as_echo_n "checking for a working dd... " >&6; } 14615 if ${ac_cv_path_lt_DD+:} false; then : 14616 $as_echo_n "(cached) " >&6 14617 else 14618 printf 0123456789abcdef0123456789abcdef >conftest.i 14619 cat conftest.i conftest.i >conftest2.i 14620 : ${lt_DD:=$DD} 14621 if test -z "$lt_DD"; then 14622 ac_path_lt_DD_found=false 14623 # Loop through the user's path and test for each of PROGNAME-LIST 14624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14625 for as_dir in $PATH 14626 do 14627 IFS=$as_save_IFS 14628 test -z "$as_dir" && as_dir=. 14629 for ac_prog in dd; do 14630 for ac_exec_ext in '' $ac_executable_extensions; do 14631 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 14632 as_fn_executable_p "$ac_path_lt_DD" || continue 14633 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14634 cmp -s conftest.i conftest.out \ 14635 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 14636 fi 14637 $ac_path_lt_DD_found && break 3 14638 done 14639 done 14640 done 14641 IFS=$as_save_IFS 14642 if test -z "$ac_cv_path_lt_DD"; then 14643 : 14644 fi 14645 else 14646 ac_cv_path_lt_DD=$lt_DD 14647 fi 14648 14649 rm -f conftest.i conftest2.i conftest.out 14650 fi 14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 14652 $as_echo "$ac_cv_path_lt_DD" >&6; } 14653 14654 14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 14656 $as_echo_n "checking how to truncate binary pipes... " >&6; } 14657 if ${lt_cv_truncate_bin+:} false; then : 14658 $as_echo_n "(cached) " >&6 14659 else 14660 printf 0123456789abcdef0123456789abcdef >conftest.i 14661 cat conftest.i conftest.i >conftest2.i 14662 lt_cv_truncate_bin= 14663 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14664 cmp -s conftest.i conftest.out \ 14665 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 14666 fi 14667 rm -f conftest.i conftest2.i conftest.out 14668 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 14669 fi 14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 14671 $as_echo "$lt_cv_truncate_bin" >&6; } 14672 14673 14674 14675 14676 14677 14678 14679 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 14680 func_cc_basename () 14681 { 14682 for cc_temp in $*""; do 14683 case $cc_temp in 14684 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14685 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14686 \-*) ;; 14687 *) break;; 14688 esac 14689 done 14690 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14691 } 14692 14693 # Check whether --enable-libtool-lock was given. 14694 if test "${enable_libtool_lock+set}" = set; then : 14695 enableval=$enable_libtool_lock; 14696 fi 14697 14698 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 14699 14700 # Some flags need to be propagated to the compiler or linker for good 14701 # libtool support. 14702 case $host in 14703 ia64-*-hpux*) 14704 # Find out what ABI is being produced by ac_compile, and set mode 14705 # options accordingly. 14706 echo 'int i;' > conftest.$ac_ext 14707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14708 (eval $ac_compile) 2>&5 14709 ac_status=$? 14710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14711 test $ac_status = 0; }; then 14712 case `/usr/bin/file conftest.$ac_objext` in 14713 *ELF-32*) 14714 HPUX_IA64_MODE=32 14715 ;; 14716 *ELF-64*) 14717 HPUX_IA64_MODE=64 14718 ;; 14719 esac 14720 fi 14721 rm -rf conftest* 14722 ;; 14723 *-*-irix6*) 14724 # Find out what ABI is being produced by ac_compile, and set linker 14725 # options accordingly. 14726 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14728 (eval $ac_compile) 2>&5 14729 ac_status=$? 14730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14731 test $ac_status = 0; }; then 14732 if test yes = "$lt_cv_prog_gnu_ld"; then 14733 case `/usr/bin/file conftest.$ac_objext` in 14734 *32-bit*) 14735 LD="${LD-ld} -melf32bsmip" 14736 ;; 14737 *N32*) 14738 LD="${LD-ld} -melf32bmipn32" 14739 ;; 14740 *64-bit*) 14741 LD="${LD-ld} -melf64bmip" 14742 ;; 14743 esac 14744 else 14745 case `/usr/bin/file conftest.$ac_objext` in 14746 *32-bit*) 14747 LD="${LD-ld} -32" 14748 ;; 14749 *N32*) 14750 LD="${LD-ld} -n32" 14751 ;; 14752 *64-bit*) 14753 LD="${LD-ld} -64" 14754 ;; 14755 esac 14756 fi 14757 fi 14758 rm -rf conftest* 14759 ;; 14760 14761 mips64*-*linux*) 14762 # Find out what ABI is being produced by ac_compile, and set linker 14763 # options accordingly. 14764 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14766 (eval $ac_compile) 2>&5 14767 ac_status=$? 14768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14769 test $ac_status = 0; }; then 14770 emul=elf 14771 case `/usr/bin/file conftest.$ac_objext` in 14772 *32-bit*) 14773 emul="${emul}32" 14774 ;; 14775 *64-bit*) 14776 emul="${emul}64" 14777 ;; 14778 esac 14779 case `/usr/bin/file conftest.$ac_objext` in 14780 *MSB*) 14781 emul="${emul}btsmip" 14782 ;; 14783 *LSB*) 14784 emul="${emul}ltsmip" 14785 ;; 14786 esac 14787 case `/usr/bin/file conftest.$ac_objext` in 14788 *N32*) 14789 emul="${emul}n32" 14790 ;; 14791 esac 14792 LD="${LD-ld} -m $emul" 14793 fi 14794 rm -rf conftest* 14795 ;; 14796 14797 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 14798 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 14799 # Find out what ABI is being produced by ac_compile, and set linker 14800 # options accordingly. Note that the listed cases only cover the 14801 # situations where additional linker options are needed (such as when 14802 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 14803 # vice versa); the common cases where no linker options are needed do 14804 # not appear in the list. 14805 echo 'int i;' > conftest.$ac_ext 14806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14807 (eval $ac_compile) 2>&5 14808 ac_status=$? 14809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14810 test $ac_status = 0; }; then 14811 case `/usr/bin/file conftest.o` in 14812 *32-bit*) 14813 case $host in 14814 x86_64-*kfreebsd*-gnu) 14815 LD="${LD-ld} -m elf_i386_fbsd" 14816 ;; 14817 x86_64-*linux*) 14818 case `/usr/bin/file conftest.o` in 14819 *x86-64*) 14820 LD="${LD-ld} -m elf32_x86_64" 14821 ;; 14822 *) 14823 LD="${LD-ld} -m elf_i386" 14824 ;; 14825 esac 14826 ;; 14827 powerpc64le-*linux*) 14828 LD="${LD-ld} -m elf32lppclinux" 14829 ;; 14830 powerpc64-*linux*) 14831 LD="${LD-ld} -m elf32ppclinux" 14832 ;; 14833 s390x-*linux*) 14834 LD="${LD-ld} -m elf_s390" 14835 ;; 14836 sparc64-*linux*) 14837 LD="${LD-ld} -m elf32_sparc" 14838 ;; 14839 esac 14840 ;; 14841 *64-bit*) 14842 case $host in 14843 x86_64-*kfreebsd*-gnu) 14844 LD="${LD-ld} -m elf_x86_64_fbsd" 14845 ;; 14846 x86_64-*linux*) 14847 LD="${LD-ld} -m elf_x86_64" 14848 ;; 14849 powerpcle-*linux*) 14850 LD="${LD-ld} -m elf64lppc" 14851 ;; 14852 powerpc-*linux*) 14853 LD="${LD-ld} -m elf64ppc" 14854 ;; 14855 s390*-*linux*|s390*-*tpf*) 14856 LD="${LD-ld} -m elf64_s390" 14857 ;; 14858 sparc*-*linux*) 14859 LD="${LD-ld} -m elf64_sparc" 14860 ;; 14861 esac 14862 ;; 14863 esac 14864 fi 14865 rm -rf conftest* 14866 ;; 14867 14868 *-*-sco3.2v5*) 14869 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14870 SAVE_CFLAGS=$CFLAGS 14871 CFLAGS="$CFLAGS -belf" 14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14873 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 14874 if ${lt_cv_cc_needs_belf+:} false; then : 14875 $as_echo_n "(cached) " >&6 14876 else 14877 ac_ext=c 14878 ac_cpp='$CPP $CPPFLAGS' 14879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14881 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14882 14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14884 /* end confdefs.h. */ 14885 14886 int 14887 main () 14888 { 14889 14890 ; 14891 return 0; 14892 } 14893 _ACEOF 14894 if ac_fn_c_try_link "$LINENO"; then : 14895 lt_cv_cc_needs_belf=yes 14896 else 14897 lt_cv_cc_needs_belf=no 14898 fi 14899 rm -f core conftest.err conftest.$ac_objext \ 14900 conftest$ac_exeext conftest.$ac_ext 14901 ac_ext=c 14902 ac_cpp='$CPP $CPPFLAGS' 14903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14905 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14906 14907 fi 14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14909 $as_echo "$lt_cv_cc_needs_belf" >&6; } 14910 if test yes != "$lt_cv_cc_needs_belf"; then 14911 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14912 CFLAGS=$SAVE_CFLAGS 14913 fi 14914 ;; 14915 *-*solaris*) 14916 # Find out what ABI is being produced by ac_compile, and set linker 14917 # options accordingly. 14918 echo 'int i;' > conftest.$ac_ext 14919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14920 (eval $ac_compile) 2>&5 14921 ac_status=$? 14922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14923 test $ac_status = 0; }; then 14924 case `/usr/bin/file conftest.o` in 14925 *64-bit*) 14926 case $lt_cv_prog_gnu_ld in 14927 yes*) 14928 case $host in 14929 i?86-*-solaris*|x86_64-*-solaris*) 14930 LD="${LD-ld} -m elf_x86_64" 14931 ;; 14932 sparc*-*-solaris*) 14933 LD="${LD-ld} -m elf64_sparc" 14934 ;; 14935 esac 14936 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14937 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14938 LD=${LD-ld}_sol2 14939 fi 14940 ;; 14941 *) 14942 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14943 LD="${LD-ld} -64" 14944 fi 14945 ;; 14946 esac 14947 ;; 14948 esac 14949 fi 14950 rm -rf conftest* 14951 ;; 14952 esac 14953 14954 need_locks=$enable_libtool_lock 14955 14956 if test -n "$ac_tool_prefix"; then 14957 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14958 set dummy ${ac_tool_prefix}mt; ac_word=$2 14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14960 $as_echo_n "checking for $ac_word... " >&6; } 14961 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 14962 $as_echo_n "(cached) " >&6 14963 else 14964 if test -n "$MANIFEST_TOOL"; then 14965 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14966 else 14967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14968 for as_dir in $PATH 14969 do 14970 IFS=$as_save_IFS 14971 test -z "$as_dir" && as_dir=. 14972 for ac_exec_ext in '' $ac_executable_extensions; do 14973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14974 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14976 break 2 14977 fi 14978 done 14979 done 14980 IFS=$as_save_IFS 14981 14982 fi 14983 fi 14984 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14985 if test -n "$MANIFEST_TOOL"; then 14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14987 $as_echo "$MANIFEST_TOOL" >&6; } 14988 else 14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14990 $as_echo "no" >&6; } 14991 fi 14992 14993 14994 fi 14995 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14996 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14997 # Extract the first word of "mt", so it can be a program name with args. 14998 set dummy mt; ac_word=$2 14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15000 $as_echo_n "checking for $ac_word... " >&6; } 15001 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 15002 $as_echo_n "(cached) " >&6 15003 else 15004 if test -n "$ac_ct_MANIFEST_TOOL"; then 15005 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 15006 else 15007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15008 for as_dir in $PATH 15009 do 15010 IFS=$as_save_IFS 15011 test -z "$as_dir" && as_dir=. 15012 for ac_exec_ext in '' $ac_executable_extensions; do 15013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15014 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 15015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15016 break 2 15017 fi 15018 done 15019 done 15020 IFS=$as_save_IFS 15021 15022 fi 15023 fi 15024 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 15025 if test -n "$ac_ct_MANIFEST_TOOL"; then 15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 15027 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 15028 else 15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15030 $as_echo "no" >&6; } 15031 fi 15032 15033 if test "x$ac_ct_MANIFEST_TOOL" = x; then 15034 MANIFEST_TOOL=":" 15035 else 15036 case $cross_compiling:$ac_tool_warned in 15037 yes:) 15038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15040 ac_tool_warned=yes ;; 15041 esac 15042 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 15043 fi 15044 else 15045 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 15046 fi 15047 15048 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 15050 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 15051 if ${lt_cv_path_mainfest_tool+:} false; then : 15052 $as_echo_n "(cached) " >&6 15053 else 15054 lt_cv_path_mainfest_tool=no 15055 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 15056 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 15057 cat conftest.err >&5 15058 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 15059 lt_cv_path_mainfest_tool=yes 15060 fi 15061 rm -f conftest* 15062 fi 15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 15064 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 15065 if test yes != "$lt_cv_path_mainfest_tool"; then 15066 MANIFEST_TOOL=: 15067 fi 15068 15069 15070 15071 15072 15073 15074 case $host_os in 15075 rhapsody* | darwin*) 15076 if test -n "$ac_tool_prefix"; then 15077 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 15078 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15080 $as_echo_n "checking for $ac_word... " >&6; } 15081 if ${ac_cv_prog_DSYMUTIL+:} false; then : 15082 $as_echo_n "(cached) " >&6 15083 else 15084 if test -n "$DSYMUTIL"; then 15085 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 15086 else 15087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15088 for as_dir in $PATH 15089 do 15090 IFS=$as_save_IFS 15091 test -z "$as_dir" && as_dir=. 15092 for ac_exec_ext in '' $ac_executable_extensions; do 15093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15094 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 15095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15096 break 2 15097 fi 15098 done 15099 done 15100 IFS=$as_save_IFS 15101 15102 fi 15103 fi 15104 DSYMUTIL=$ac_cv_prog_DSYMUTIL 15105 if test -n "$DSYMUTIL"; then 15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 15107 $as_echo "$DSYMUTIL" >&6; } 15108 else 15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15110 $as_echo "no" >&6; } 15111 fi 15112 15113 15114 fi 15115 if test -z "$ac_cv_prog_DSYMUTIL"; then 15116 ac_ct_DSYMUTIL=$DSYMUTIL 15117 # Extract the first word of "dsymutil", so it can be a program name with args. 15118 set dummy dsymutil; ac_word=$2 15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15120 $as_echo_n "checking for $ac_word... " >&6; } 15121 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 15122 $as_echo_n "(cached) " >&6 15123 else 15124 if test -n "$ac_ct_DSYMUTIL"; then 15125 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 15126 else 15127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15128 for as_dir in $PATH 15129 do 15130 IFS=$as_save_IFS 15131 test -z "$as_dir" && as_dir=. 15132 for ac_exec_ext in '' $ac_executable_extensions; do 15133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15134 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 15135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15136 break 2 15137 fi 15138 done 15139 done 15140 IFS=$as_save_IFS 15141 15142 fi 15143 fi 15144 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 15145 if test -n "$ac_ct_DSYMUTIL"; then 15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 15147 $as_echo "$ac_ct_DSYMUTIL" >&6; } 15148 else 15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15150 $as_echo "no" >&6; } 15151 fi 15152 15153 if test "x$ac_ct_DSYMUTIL" = x; then 15154 DSYMUTIL=":" 15155 else 15156 case $cross_compiling:$ac_tool_warned in 15157 yes:) 15158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15160 ac_tool_warned=yes ;; 15161 esac 15162 DSYMUTIL=$ac_ct_DSYMUTIL 15163 fi 15164 else 15165 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 15166 fi 15167 15168 if test -n "$ac_tool_prefix"; then 15169 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 15170 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15172 $as_echo_n "checking for $ac_word... " >&6; } 15173 if ${ac_cv_prog_NMEDIT+:} false; then : 15174 $as_echo_n "(cached) " >&6 15175 else 15176 if test -n "$NMEDIT"; then 15177 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 15178 else 15179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15180 for as_dir in $PATH 15181 do 15182 IFS=$as_save_IFS 15183 test -z "$as_dir" && as_dir=. 15184 for ac_exec_ext in '' $ac_executable_extensions; do 15185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15186 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 15187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15188 break 2 15189 fi 15190 done 15191 done 15192 IFS=$as_save_IFS 15193 15194 fi 15195 fi 15196 NMEDIT=$ac_cv_prog_NMEDIT 15197 if test -n "$NMEDIT"; then 15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 15199 $as_echo "$NMEDIT" >&6; } 15200 else 15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15202 $as_echo "no" >&6; } 15203 fi 15204 15205 15206 fi 15207 if test -z "$ac_cv_prog_NMEDIT"; then 15208 ac_ct_NMEDIT=$NMEDIT 15209 # Extract the first word of "nmedit", so it can be a program name with args. 15210 set dummy nmedit; ac_word=$2 15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15212 $as_echo_n "checking for $ac_word... " >&6; } 15213 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 15214 $as_echo_n "(cached) " >&6 15215 else 15216 if test -n "$ac_ct_NMEDIT"; then 15217 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 15218 else 15219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15220 for as_dir in $PATH 15221 do 15222 IFS=$as_save_IFS 15223 test -z "$as_dir" && as_dir=. 15224 for ac_exec_ext in '' $ac_executable_extensions; do 15225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15226 ac_cv_prog_ac_ct_NMEDIT="nmedit" 15227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15228 break 2 15229 fi 15230 done 15231 done 15232 IFS=$as_save_IFS 15233 15234 fi 15235 fi 15236 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 15237 if test -n "$ac_ct_NMEDIT"; then 15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 15239 $as_echo "$ac_ct_NMEDIT" >&6; } 15240 else 15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15242 $as_echo "no" >&6; } 15243 fi 15244 15245 if test "x$ac_ct_NMEDIT" = x; then 15246 NMEDIT=":" 15247 else 15248 case $cross_compiling:$ac_tool_warned in 15249 yes:) 15250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15252 ac_tool_warned=yes ;; 15253 esac 15254 NMEDIT=$ac_ct_NMEDIT 15255 fi 15256 else 15257 NMEDIT="$ac_cv_prog_NMEDIT" 15258 fi 15259 15260 if test -n "$ac_tool_prefix"; then 15261 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 15262 set dummy ${ac_tool_prefix}lipo; ac_word=$2 15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15264 $as_echo_n "checking for $ac_word... " >&6; } 15265 if ${ac_cv_prog_LIPO+:} false; then : 15266 $as_echo_n "(cached) " >&6 15267 else 15268 if test -n "$LIPO"; then 15269 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 15270 else 15271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15272 for as_dir in $PATH 15273 do 15274 IFS=$as_save_IFS 15275 test -z "$as_dir" && as_dir=. 15276 for ac_exec_ext in '' $ac_executable_extensions; do 15277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15278 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 15279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15280 break 2 15281 fi 15282 done 15283 done 15284 IFS=$as_save_IFS 15285 15286 fi 15287 fi 15288 LIPO=$ac_cv_prog_LIPO 15289 if test -n "$LIPO"; then 15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 15291 $as_echo "$LIPO" >&6; } 15292 else 15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15294 $as_echo "no" >&6; } 15295 fi 15296 15297 15298 fi 15299 if test -z "$ac_cv_prog_LIPO"; then 15300 ac_ct_LIPO=$LIPO 15301 # Extract the first word of "lipo", so it can be a program name with args. 15302 set dummy lipo; ac_word=$2 15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15304 $as_echo_n "checking for $ac_word... " >&6; } 15305 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 15306 $as_echo_n "(cached) " >&6 15307 else 15308 if test -n "$ac_ct_LIPO"; then 15309 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 15310 else 15311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15312 for as_dir in $PATH 15313 do 15314 IFS=$as_save_IFS 15315 test -z "$as_dir" && as_dir=. 15316 for ac_exec_ext in '' $ac_executable_extensions; do 15317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15318 ac_cv_prog_ac_ct_LIPO="lipo" 15319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15320 break 2 15321 fi 15322 done 15323 done 15324 IFS=$as_save_IFS 15325 15326 fi 15327 fi 15328 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 15329 if test -n "$ac_ct_LIPO"; then 15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 15331 $as_echo "$ac_ct_LIPO" >&6; } 15332 else 15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15334 $as_echo "no" >&6; } 15335 fi 15336 15337 if test "x$ac_ct_LIPO" = x; then 15338 LIPO=":" 15339 else 15340 case $cross_compiling:$ac_tool_warned in 15341 yes:) 15342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15344 ac_tool_warned=yes ;; 15345 esac 15346 LIPO=$ac_ct_LIPO 15347 fi 15348 else 15349 LIPO="$ac_cv_prog_LIPO" 15350 fi 15351 15352 if test -n "$ac_tool_prefix"; then 15353 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 15354 set dummy ${ac_tool_prefix}otool; ac_word=$2 15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15356 $as_echo_n "checking for $ac_word... " >&6; } 15357 if ${ac_cv_prog_OTOOL+:} false; then : 15358 $as_echo_n "(cached) " >&6 15359 else 15360 if test -n "$OTOOL"; then 15361 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 15362 else 15363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15364 for as_dir in $PATH 15365 do 15366 IFS=$as_save_IFS 15367 test -z "$as_dir" && as_dir=. 15368 for ac_exec_ext in '' $ac_executable_extensions; do 15369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15370 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 15371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15372 break 2 15373 fi 15374 done 15375 done 15376 IFS=$as_save_IFS 15377 15378 fi 15379 fi 15380 OTOOL=$ac_cv_prog_OTOOL 15381 if test -n "$OTOOL"; then 15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 15383 $as_echo "$OTOOL" >&6; } 15384 else 15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15386 $as_echo "no" >&6; } 15387 fi 15388 15389 15390 fi 15391 if test -z "$ac_cv_prog_OTOOL"; then 15392 ac_ct_OTOOL=$OTOOL 15393 # Extract the first word of "otool", so it can be a program name with args. 15394 set dummy otool; ac_word=$2 15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15396 $as_echo_n "checking for $ac_word... " >&6; } 15397 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 15398 $as_echo_n "(cached) " >&6 15399 else 15400 if test -n "$ac_ct_OTOOL"; then 15401 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 15402 else 15403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15404 for as_dir in $PATH 15405 do 15406 IFS=$as_save_IFS 15407 test -z "$as_dir" && as_dir=. 15408 for ac_exec_ext in '' $ac_executable_extensions; do 15409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15410 ac_cv_prog_ac_ct_OTOOL="otool" 15411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15412 break 2 15413 fi 15414 done 15415 done 15416 IFS=$as_save_IFS 15417 15418 fi 15419 fi 15420 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 15421 if test -n "$ac_ct_OTOOL"; then 15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 15423 $as_echo "$ac_ct_OTOOL" >&6; } 15424 else 15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15426 $as_echo "no" >&6; } 15427 fi 15428 15429 if test "x$ac_ct_OTOOL" = x; then 15430 OTOOL=":" 15431 else 15432 case $cross_compiling:$ac_tool_warned in 15433 yes:) 15434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15436 ac_tool_warned=yes ;; 15437 esac 15438 OTOOL=$ac_ct_OTOOL 15439 fi 15440 else 15441 OTOOL="$ac_cv_prog_OTOOL" 15442 fi 15443 15444 if test -n "$ac_tool_prefix"; then 15445 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 15446 set dummy ${ac_tool_prefix}otool64; ac_word=$2 15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15448 $as_echo_n "checking for $ac_word... " >&6; } 15449 if ${ac_cv_prog_OTOOL64+:} false; then : 15450 $as_echo_n "(cached) " >&6 15451 else 15452 if test -n "$OTOOL64"; then 15453 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 15454 else 15455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15456 for as_dir in $PATH 15457 do 15458 IFS=$as_save_IFS 15459 test -z "$as_dir" && as_dir=. 15460 for ac_exec_ext in '' $ac_executable_extensions; do 15461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15462 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 15463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15464 break 2 15465 fi 15466 done 15467 done 15468 IFS=$as_save_IFS 15469 15470 fi 15471 fi 15472 OTOOL64=$ac_cv_prog_OTOOL64 15473 if test -n "$OTOOL64"; then 15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 15475 $as_echo "$OTOOL64" >&6; } 15476 else 15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15478 $as_echo "no" >&6; } 15479 fi 15480 15481 15482 fi 15483 if test -z "$ac_cv_prog_OTOOL64"; then 15484 ac_ct_OTOOL64=$OTOOL64 15485 # Extract the first word of "otool64", so it can be a program name with args. 15486 set dummy otool64; ac_word=$2 15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15488 $as_echo_n "checking for $ac_word... " >&6; } 15489 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 15490 $as_echo_n "(cached) " >&6 15491 else 15492 if test -n "$ac_ct_OTOOL64"; then 15493 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 15494 else 15495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15496 for as_dir in $PATH 15497 do 15498 IFS=$as_save_IFS 15499 test -z "$as_dir" && as_dir=. 15500 for ac_exec_ext in '' $ac_executable_extensions; do 15501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15502 ac_cv_prog_ac_ct_OTOOL64="otool64" 15503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15504 break 2 15505 fi 15506 done 15507 done 15508 IFS=$as_save_IFS 15509 15510 fi 15511 fi 15512 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 15513 if test -n "$ac_ct_OTOOL64"; then 15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 15515 $as_echo "$ac_ct_OTOOL64" >&6; } 15516 else 15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15518 $as_echo "no" >&6; } 15519 fi 15520 15521 if test "x$ac_ct_OTOOL64" = x; then 15522 OTOOL64=":" 15523 else 15524 case $cross_compiling:$ac_tool_warned in 15525 yes:) 15526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15528 ac_tool_warned=yes ;; 15529 esac 15530 OTOOL64=$ac_ct_OTOOL64 15531 fi 15532 else 15533 OTOOL64="$ac_cv_prog_OTOOL64" 15534 fi 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 15563 $as_echo_n "checking for -single_module linker flag... " >&6; } 15564 if ${lt_cv_apple_cc_single_mod+:} false; then : 15565 $as_echo_n "(cached) " >&6 15566 else 15567 lt_cv_apple_cc_single_mod=no 15568 if test -z "$LT_MULTI_MODULE"; then 15569 # By default we will add the -single_module flag. You can override 15570 # by either setting the environment variable LT_MULTI_MODULE 15571 # non-empty at configure time, or by adding -multi_module to the 15572 # link flags. 15573 rm -rf libconftest.dylib* 15574 echo "int foo(void){return 1;}" > conftest.c 15575 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15576 -dynamiclib -Wl,-single_module conftest.c" >&5 15577 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15578 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 15579 _lt_result=$? 15580 # If there is a non-empty error log, and "single_module" 15581 # appears in it, assume the flag caused a linker warning 15582 if test -s conftest.err && $GREP single_module conftest.err; then 15583 cat conftest.err >&5 15584 # Otherwise, if the output was created with a 0 exit code from 15585 # the compiler, it worked. 15586 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 15587 lt_cv_apple_cc_single_mod=yes 15588 else 15589 cat conftest.err >&5 15590 fi 15591 rm -rf libconftest.dylib* 15592 rm -f conftest.* 15593 fi 15594 fi 15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 15596 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 15597 15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 15599 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 15600 if ${lt_cv_ld_exported_symbols_list+:} false; then : 15601 $as_echo_n "(cached) " >&6 15602 else 15603 lt_cv_ld_exported_symbols_list=no 15604 save_LDFLAGS=$LDFLAGS 15605 echo "_main" > conftest.sym 15606 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 15607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15608 /* end confdefs.h. */ 15609 15610 int 15611 main () 15612 { 15613 15614 ; 15615 return 0; 15616 } 15617 _ACEOF 15618 if ac_fn_c_try_link "$LINENO"; then : 15619 lt_cv_ld_exported_symbols_list=yes 15620 else 15621 lt_cv_ld_exported_symbols_list=no 15622 fi 15623 rm -f core conftest.err conftest.$ac_objext \ 15624 conftest$ac_exeext conftest.$ac_ext 15625 LDFLAGS=$save_LDFLAGS 15626 15627 fi 15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 15629 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 15630 15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 15632 $as_echo_n "checking for -force_load linker flag... " >&6; } 15633 if ${lt_cv_ld_force_load+:} false; then : 15634 $as_echo_n "(cached) " >&6 15635 else 15636 lt_cv_ld_force_load=no 15637 cat > conftest.c << _LT_EOF 15638 int forced_loaded() { return 2;} 15639 _LT_EOF 15640 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 15641 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 15642 echo "$AR cru libconftest.a conftest.o" >&5 15643 $AR cru libconftest.a conftest.o 2>&5 15644 echo "$RANLIB libconftest.a" >&5 15645 $RANLIB libconftest.a 2>&5 15646 cat > conftest.c << _LT_EOF 15647 int main() { return 0;} 15648 _LT_EOF 15649 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 15650 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 15651 _lt_result=$? 15652 if test -s conftest.err && $GREP force_load conftest.err; then 15653 cat conftest.err >&5 15654 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 15655 lt_cv_ld_force_load=yes 15656 else 15657 cat conftest.err >&5 15658 fi 15659 rm -f conftest.err libconftest.a conftest conftest.c 15660 rm -rf conftest.dSYM 15661 15662 fi 15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 15664 $as_echo "$lt_cv_ld_force_load" >&6; } 15665 case $host_os in 15666 rhapsody* | darwin1.[012]) 15667 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 15668 darwin1.*) 15669 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15670 darwin*) # darwin 5.x on 15671 # if running on 10.5 or later, the deployment target defaults 15672 # to the OS version, if on x86, and 10.4, the deployment 15673 # target defaults to 10.4. Don't you love it? 15674 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 15675 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 15676 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 15677 10.[012][,.]*) 15678 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15679 10.*) 15680 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 15681 esac 15682 ;; 15683 esac 15684 if test yes = "$lt_cv_apple_cc_single_mod"; then 15685 _lt_dar_single_mod='$single_module' 15686 fi 15687 if test yes = "$lt_cv_ld_exported_symbols_list"; then 15688 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 15689 else 15690 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 15691 fi 15692 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 15693 _lt_dsymutil='~$DSYMUTIL $lib || :' 15694 else 15695 _lt_dsymutil= 15696 fi 15697 ;; 15698 esac 15699 15700 # func_munge_path_list VARIABLE PATH 15701 # ----------------------------------- 15702 # VARIABLE is name of variable containing _space_ separated list of 15703 # directories to be munged by the contents of PATH, which is string 15704 # having a format: 15705 # "DIR[:DIR]:" 15706 # string "DIR[ DIR]" will be prepended to VARIABLE 15707 # ":DIR[:DIR]" 15708 # string "DIR[ DIR]" will be appended to VARIABLE 15709 # "DIRP[:DIRP]::[DIRA:]DIRA" 15710 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15711 # "DIRA[ DIRA]" will be appended to VARIABLE 15712 # "DIR[:DIR]" 15713 # VARIABLE will be replaced by "DIR[ DIR]" 15714 func_munge_path_list () 15715 { 15716 case x$2 in 15717 x) 15718 ;; 15719 *:) 15720 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15721 ;; 15722 x:*) 15723 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15724 ;; 15725 *::*) 15726 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15727 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15728 ;; 15729 *) 15730 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15731 ;; 15732 esac 15733 } 15734 15735 for ac_header in dlfcn.h 15736 do : 15737 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 15738 " 15739 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 15740 cat >>confdefs.h <<_ACEOF 15741 #define HAVE_DLFCN_H 1 15742 _ACEOF 15743 15744 fi 15745 15746 done 15747 15748 15749 15750 func_stripname_cnf () 15751 { 15752 case $2 in 15753 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 15754 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 15755 esac 15756 } # func_stripname_cnf 15757 15758 15759 15760 15761 15762 # Set options 15763 enable_win32_dll=yes 15764 15765 case $host in 15766 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 15767 if test -n "$ac_tool_prefix"; then 15768 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 15769 set dummy ${ac_tool_prefix}as; ac_word=$2 15770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15771 $as_echo_n "checking for $ac_word... " >&6; } 15772 if ${ac_cv_prog_AS+:} false; then : 15773 $as_echo_n "(cached) " >&6 15774 else 15775 if test -n "$AS"; then 15776 ac_cv_prog_AS="$AS" # Let the user override the test. 15777 else 15778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15779 for as_dir in $PATH 15780 do 15781 IFS=$as_save_IFS 15782 test -z "$as_dir" && as_dir=. 15783 for ac_exec_ext in '' $ac_executable_extensions; do 15784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15785 ac_cv_prog_AS="${ac_tool_prefix}as" 15786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15787 break 2 15788 fi 15789 done 15790 done 15791 IFS=$as_save_IFS 15792 15793 fi 15794 fi 15795 AS=$ac_cv_prog_AS 15796 if test -n "$AS"; then 15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 15798 $as_echo "$AS" >&6; } 15799 else 15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15801 $as_echo "no" >&6; } 15802 fi 15803 15804 15805 fi 15806 if test -z "$ac_cv_prog_AS"; then 15807 ac_ct_AS=$AS 15808 # Extract the first word of "as", so it can be a program name with args. 15809 set dummy as; ac_word=$2 15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15811 $as_echo_n "checking for $ac_word... " >&6; } 15812 if ${ac_cv_prog_ac_ct_AS+:} false; then : 15813 $as_echo_n "(cached) " >&6 15814 else 15815 if test -n "$ac_ct_AS"; then 15816 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 15817 else 15818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15819 for as_dir in $PATH 15820 do 15821 IFS=$as_save_IFS 15822 test -z "$as_dir" && as_dir=. 15823 for ac_exec_ext in '' $ac_executable_extensions; do 15824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15825 ac_cv_prog_ac_ct_AS="as" 15826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15827 break 2 15828 fi 15829 done 15830 done 15831 IFS=$as_save_IFS 15832 15833 fi 15834 fi 15835 ac_ct_AS=$ac_cv_prog_ac_ct_AS 15836 if test -n "$ac_ct_AS"; then 15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 15838 $as_echo "$ac_ct_AS" >&6; } 15839 else 15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15841 $as_echo "no" >&6; } 15842 fi 15843 15844 if test "x$ac_ct_AS" = x; then 15845 AS="false" 15846 else 15847 case $cross_compiling:$ac_tool_warned in 15848 yes:) 15849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15851 ac_tool_warned=yes ;; 15852 esac 15853 AS=$ac_ct_AS 15854 fi 15855 else 15856 AS="$ac_cv_prog_AS" 15857 fi 15858 15859 if test -n "$ac_tool_prefix"; then 15860 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 15861 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15863 $as_echo_n "checking for $ac_word... " >&6; } 15864 if ${ac_cv_prog_DLLTOOL+:} false; then : 15865 $as_echo_n "(cached) " >&6 15866 else 15867 if test -n "$DLLTOOL"; then 15868 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 15869 else 15870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15871 for as_dir in $PATH 15872 do 15873 IFS=$as_save_IFS 15874 test -z "$as_dir" && as_dir=. 15875 for ac_exec_ext in '' $ac_executable_extensions; do 15876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15877 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 15878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15879 break 2 15880 fi 15881 done 15882 done 15883 IFS=$as_save_IFS 15884 15885 fi 15886 fi 15887 DLLTOOL=$ac_cv_prog_DLLTOOL 15888 if test -n "$DLLTOOL"; then 15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 15890 $as_echo "$DLLTOOL" >&6; } 15891 else 15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15893 $as_echo "no" >&6; } 15894 fi 15895 15896 15897 fi 15898 if test -z "$ac_cv_prog_DLLTOOL"; then 15899 ac_ct_DLLTOOL=$DLLTOOL 15900 # Extract the first word of "dlltool", so it can be a program name with args. 15901 set dummy dlltool; ac_word=$2 15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15903 $as_echo_n "checking for $ac_word... " >&6; } 15904 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 15905 $as_echo_n "(cached) " >&6 15906 else 15907 if test -n "$ac_ct_DLLTOOL"; then 15908 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 15909 else 15910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15911 for as_dir in $PATH 15912 do 15913 IFS=$as_save_IFS 15914 test -z "$as_dir" && as_dir=. 15915 for ac_exec_ext in '' $ac_executable_extensions; do 15916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15917 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 15918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15919 break 2 15920 fi 15921 done 15922 done 15923 IFS=$as_save_IFS 15924 15925 fi 15926 fi 15927 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 15928 if test -n "$ac_ct_DLLTOOL"; then 15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 15930 $as_echo "$ac_ct_DLLTOOL" >&6; } 15931 else 15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15933 $as_echo "no" >&6; } 15934 fi 15935 15936 if test "x$ac_ct_DLLTOOL" = x; then 15937 DLLTOOL="false" 15938 else 15939 case $cross_compiling:$ac_tool_warned in 15940 yes:) 15941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15943 ac_tool_warned=yes ;; 15944 esac 15945 DLLTOOL=$ac_ct_DLLTOOL 15946 fi 15947 else 15948 DLLTOOL="$ac_cv_prog_DLLTOOL" 15949 fi 15950 15951 if test -n "$ac_tool_prefix"; then 15952 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 15953 set dummy ${ac_tool_prefix}objdump; ac_word=$2 15954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15955 $as_echo_n "checking for $ac_word... " >&6; } 15956 if ${ac_cv_prog_OBJDUMP+:} false; then : 15957 $as_echo_n "(cached) " >&6 15958 else 15959 if test -n "$OBJDUMP"; then 15960 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 15961 else 15962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15963 for as_dir in $PATH 15964 do 15965 IFS=$as_save_IFS 15966 test -z "$as_dir" && as_dir=. 15967 for ac_exec_ext in '' $ac_executable_extensions; do 15968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15969 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 15970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15971 break 2 15972 fi 15973 done 15974 done 15975 IFS=$as_save_IFS 15976 15977 fi 15978 fi 15979 OBJDUMP=$ac_cv_prog_OBJDUMP 15980 if test -n "$OBJDUMP"; then 15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 15982 $as_echo "$OBJDUMP" >&6; } 15983 else 15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15985 $as_echo "no" >&6; } 15986 fi 15987 15988 15989 fi 15990 if test -z "$ac_cv_prog_OBJDUMP"; then 15991 ac_ct_OBJDUMP=$OBJDUMP 15992 # Extract the first word of "objdump", so it can be a program name with args. 15993 set dummy objdump; ac_word=$2 15994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15995 $as_echo_n "checking for $ac_word... " >&6; } 15996 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 15997 $as_echo_n "(cached) " >&6 15998 else 15999 if test -n "$ac_ct_OBJDUMP"; then 16000 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 16001 else 16002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16003 for as_dir in $PATH 16004 do 16005 IFS=$as_save_IFS 16006 test -z "$as_dir" && as_dir=. 16007 for ac_exec_ext in '' $ac_executable_extensions; do 16008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16009 ac_cv_prog_ac_ct_OBJDUMP="objdump" 16010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16011 break 2 16012 fi 16013 done 16014 done 16015 IFS=$as_save_IFS 16016 16017 fi 16018 fi 16019 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 16020 if test -n "$ac_ct_OBJDUMP"; then 16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 16022 $as_echo "$ac_ct_OBJDUMP" >&6; } 16023 else 16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16025 $as_echo "no" >&6; } 16026 fi 16027 16028 if test "x$ac_ct_OBJDUMP" = x; then 16029 OBJDUMP="false" 16030 else 16031 case $cross_compiling:$ac_tool_warned in 16032 yes:) 16033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16035 ac_tool_warned=yes ;; 16036 esac 16037 OBJDUMP=$ac_ct_OBJDUMP 16038 fi 16039 else 16040 OBJDUMP="$ac_cv_prog_OBJDUMP" 16041 fi 16042 16043 ;; 16044 esac 16045 16046 test -z "$AS" && AS=as 16047 16048 16049 16050 16051 16052 test -z "$DLLTOOL" && DLLTOOL=dlltool 16053 16054 16055 16056 16057 16058 test -z "$OBJDUMP" && OBJDUMP=objdump 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 # Check whether --enable-shared was given. 16069 if test "${enable_shared+set}" = set; then : 16070 enableval=$enable_shared; p=${PACKAGE-default} 16071 case $enableval in 16072 yes) enable_shared=yes ;; 16073 no) enable_shared=no ;; 16074 *) 16075 enable_shared=no 16076 # Look at the argument we got. We use all the common list separators. 16077 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16078 for pkg in $enableval; do 16079 IFS=$lt_save_ifs 16080 if test "X$pkg" = "X$p"; then 16081 enable_shared=yes 16082 fi 16083 done 16084 IFS=$lt_save_ifs 16085 ;; 16086 esac 16087 else 16088 enable_shared=yes 16089 fi 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 # Check whether --enable-static was given. 16100 if test "${enable_static+set}" = set; then : 16101 enableval=$enable_static; p=${PACKAGE-default} 16102 case $enableval in 16103 yes) enable_static=yes ;; 16104 no) enable_static=no ;; 16105 *) 16106 enable_static=no 16107 # Look at the argument we got. We use all the common list separators. 16108 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16109 for pkg in $enableval; do 16110 IFS=$lt_save_ifs 16111 if test "X$pkg" = "X$p"; then 16112 enable_static=yes 16113 fi 16114 done 16115 IFS=$lt_save_ifs 16116 ;; 16117 esac 16118 else 16119 enable_static=yes 16120 fi 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 # Check whether --with-pic was given. 16132 if test "${with_pic+set}" = set; then : 16133 withval=$with_pic; lt_p=${PACKAGE-default} 16134 case $withval in 16135 yes|no) pic_mode=$withval ;; 16136 *) 16137 pic_mode=default 16138 # Look at the argument we got. We use all the common list separators. 16139 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16140 for lt_pkg in $withval; do 16141 IFS=$lt_save_ifs 16142 if test "X$lt_pkg" = "X$lt_p"; then 16143 pic_mode=yes 16144 fi 16145 done 16146 IFS=$lt_save_ifs 16147 ;; 16148 esac 16149 else 16150 pic_mode=default 16151 fi 16152 16153 16154 16155 16156 16157 16158 16159 16160 # Check whether --enable-fast-install was given. 16161 if test "${enable_fast_install+set}" = set; then : 16162 enableval=$enable_fast_install; p=${PACKAGE-default} 16163 case $enableval in 16164 yes) enable_fast_install=yes ;; 16165 no) enable_fast_install=no ;; 16166 *) 16167 enable_fast_install=no 16168 # Look at the argument we got. We use all the common list separators. 16169 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 16170 for pkg in $enableval; do 16171 IFS=$lt_save_ifs 16172 if test "X$pkg" = "X$p"; then 16173 enable_fast_install=yes 16174 fi 16175 done 16176 IFS=$lt_save_ifs 16177 ;; 16178 esac 16179 else 16180 enable_fast_install=yes 16181 fi 16182 16183 16184 16185 16186 16187 16188 16189 16190 shared_archive_member_spec= 16191 case $host,$enable_shared in 16192 power*-*-aix[5-9]*,yes) 16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 16194 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 16195 16196 # Check whether --with-aix-soname was given. 16197 if test "${with_aix_soname+set}" = set; then : 16198 withval=$with_aix_soname; case $withval in 16199 aix|svr4|both) 16200 ;; 16201 *) 16202 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 16203 ;; 16204 esac 16205 lt_cv_with_aix_soname=$with_aix_soname 16206 else 16207 if ${lt_cv_with_aix_soname+:} false; then : 16208 $as_echo_n "(cached) " >&6 16209 else 16210 lt_cv_with_aix_soname=aix 16211 fi 16212 16213 with_aix_soname=$lt_cv_with_aix_soname 16214 fi 16215 16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 16217 $as_echo "$with_aix_soname" >&6; } 16218 if test aix != "$with_aix_soname"; then 16219 # For the AIX way of multilib, we name the shared archive member 16220 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 16221 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 16222 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 16223 # the AIX toolchain works better with OBJECT_MODE set (default 32). 16224 if test 64 = "${OBJECT_MODE-32}"; then 16225 shared_archive_member_spec=shr_64 16226 else 16227 shared_archive_member_spec=shr 16228 fi 16229 fi 16230 ;; 16231 *) 16232 with_aix_soname=aix 16233 ;; 16234 esac 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 # This can be used to rebuild libtool when needed 16246 LIBTOOL_DEPS=$ltmain 16247 16248 # Always use our own libtool. 16249 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 test -z "$LN_S" && LN_S="ln -s" 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 if test -n "${ZSH_VERSION+set}"; then 16296 setopt NO_GLOB_SUBST 16297 fi 16298 16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 16300 $as_echo_n "checking for objdir... " >&6; } 16301 if ${lt_cv_objdir+:} false; then : 16302 $as_echo_n "(cached) " >&6 16303 else 16304 rm -f .libs 2>/dev/null 16305 mkdir .libs 2>/dev/null 16306 if test -d .libs; then 16307 lt_cv_objdir=.libs 16308 else 16309 # MS-DOS does not allow filenames that begin with a dot. 16310 lt_cv_objdir=_libs 16311 fi 16312 rmdir .libs 2>/dev/null 16313 fi 16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 16315 $as_echo "$lt_cv_objdir" >&6; } 16316 objdir=$lt_cv_objdir 16317 16318 16319 16320 16321 16322 cat >>confdefs.h <<_ACEOF 16323 #define LT_OBJDIR "$lt_cv_objdir/" 16324 _ACEOF 16325 16326 16327 16328 16329 case $host_os in 16330 aix3*) 16331 # AIX sometimes has problems with the GCC collect2 program. For some 16332 # reason, if we set the COLLECT_NAMES environment variable, the problems 16333 # vanish in a puff of smoke. 16334 if test set != "${COLLECT_NAMES+set}"; then 16335 COLLECT_NAMES= 16336 export COLLECT_NAMES 16337 fi 16338 ;; 16339 esac 16340 16341 # Global variables: 16342 ofile=libtool 16343 can_build_shared=yes 16344 16345 # All known linkers require a '.a' archive for static linking (except MSVC, 16346 # which needs '.lib'). 16347 libext=a 16348 16349 with_gnu_ld=$lt_cv_prog_gnu_ld 16350 16351 old_CC=$CC 16352 old_CFLAGS=$CFLAGS 16353 16354 # Set sane defaults for various variables 16355 test -z "$CC" && CC=cc 16356 test -z "$LTCC" && LTCC=$CC 16357 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 16358 test -z "$LD" && LD=ld 16359 test -z "$ac_objext" && ac_objext=o 16360 16361 func_cc_basename $compiler 16362 cc_basename=$func_cc_basename_result 16363 16364 16365 # Only perform the check for file, if the check method requires it 16366 test -z "$MAGIC_CMD" && MAGIC_CMD=file 16367 case $deplibs_check_method in 16368 file_magic*) 16369 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 16371 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 16372 if ${lt_cv_path_MAGIC_CMD+:} false; then : 16373 $as_echo_n "(cached) " >&6 16374 else 16375 case $MAGIC_CMD in 16376 [\\/*] | ?:[\\/]*) 16377 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 16378 ;; 16379 *) 16380 lt_save_MAGIC_CMD=$MAGIC_CMD 16381 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 16382 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 16383 for ac_dir in $ac_dummy; do 16384 IFS=$lt_save_ifs 16385 test -z "$ac_dir" && ac_dir=. 16386 if test -f "$ac_dir/${ac_tool_prefix}file"; then 16387 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 16388 if test -n "$file_magic_test_file"; then 16389 case $deplibs_check_method in 16390 "file_magic "*) 16391 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 16392 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 16393 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 16394 $EGREP "$file_magic_regex" > /dev/null; then 16395 : 16396 else 16397 cat <<_LT_EOF 1>&2 16398 16399 *** Warning: the command libtool uses to detect shared libraries, 16400 *** $file_magic_cmd, produces output that libtool cannot recognize. 16401 *** The result is that libtool may fail to recognize shared libraries 16402 *** as such. This will affect the creation of libtool libraries that 16403 *** depend on shared libraries, but programs linked with such libtool 16404 *** libraries will work regardless of this problem. Nevertheless, you 16405 *** may want to report the problem to your system manager and/or to 16406 *** bug-libtool (at] gnu.org 16407 16408 _LT_EOF 16409 fi ;; 16410 esac 16411 fi 16412 break 16413 fi 16414 done 16415 IFS=$lt_save_ifs 16416 MAGIC_CMD=$lt_save_MAGIC_CMD 16417 ;; 16418 esac 16419 fi 16420 16421 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 16422 if test -n "$MAGIC_CMD"; then 16423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 16424 $as_echo "$MAGIC_CMD" >&6; } 16425 else 16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16427 $as_echo "no" >&6; } 16428 fi 16429 16430 16431 16432 16433 16434 if test -z "$lt_cv_path_MAGIC_CMD"; then 16435 if test -n "$ac_tool_prefix"; then 16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 16437 $as_echo_n "checking for file... " >&6; } 16438 if ${lt_cv_path_MAGIC_CMD+:} false; then : 16439 $as_echo_n "(cached) " >&6 16440 else 16441 case $MAGIC_CMD in 16442 [\\/*] | ?:[\\/]*) 16443 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 16444 ;; 16445 *) 16446 lt_save_MAGIC_CMD=$MAGIC_CMD 16447 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 16448 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 16449 for ac_dir in $ac_dummy; do 16450 IFS=$lt_save_ifs 16451 test -z "$ac_dir" && ac_dir=. 16452 if test -f "$ac_dir/file"; then 16453 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 16454 if test -n "$file_magic_test_file"; then 16455 case $deplibs_check_method in 16456 "file_magic "*) 16457 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 16458 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 16459 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 16460 $EGREP "$file_magic_regex" > /dev/null; then 16461 : 16462 else 16463 cat <<_LT_EOF 1>&2 16464 16465 *** Warning: the command libtool uses to detect shared libraries, 16466 *** $file_magic_cmd, produces output that libtool cannot recognize. 16467 *** The result is that libtool may fail to recognize shared libraries 16468 *** as such. This will affect the creation of libtool libraries that 16469 *** depend on shared libraries, but programs linked with such libtool 16470 *** libraries will work regardless of this problem. Nevertheless, you 16471 *** may want to report the problem to your system manager and/or to 16472 *** bug-libtool (at] gnu.org 16473 16474 _LT_EOF 16475 fi ;; 16476 esac 16477 fi 16478 break 16479 fi 16480 done 16481 IFS=$lt_save_ifs 16482 MAGIC_CMD=$lt_save_MAGIC_CMD 16483 ;; 16484 esac 16485 fi 16486 16487 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 16488 if test -n "$MAGIC_CMD"; then 16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 16490 $as_echo "$MAGIC_CMD" >&6; } 16491 else 16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16493 $as_echo "no" >&6; } 16494 fi 16495 16496 16497 else 16498 MAGIC_CMD=: 16499 fi 16500 fi 16501 16502 fi 16503 ;; 16504 esac 16505 16506 # Use C for the default configuration in the libtool script 16507 16508 lt_save_CC=$CC 16509 ac_ext=c 16510 ac_cpp='$CPP $CPPFLAGS' 16511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16513 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16514 16515 16516 # Source file extension for C test sources. 16517 ac_ext=c 16518 16519 # Object file extension for compiled C test sources. 16520 objext=o 16521 objext=$objext 16522 16523 # Code to be used in simple compile tests 16524 lt_simple_compile_test_code="int some_variable = 0;" 16525 16526 # Code to be used in simple link tests 16527 lt_simple_link_test_code='int main(){return(0);}' 16528 16529 16530 16531 16532 16533 16534 16535 # If no C compiler was specified, use CC. 16536 LTCC=${LTCC-"$CC"} 16537 16538 # If no C compiler flags were specified, use CFLAGS. 16539 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16540 16541 # Allow CC to be a program name with arguments. 16542 compiler=$CC 16543 16544 # Save the default compiler, since it gets overwritten when the other 16545 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 16546 compiler_DEFAULT=$CC 16547 16548 # save warnings/boilerplate of simple test code 16549 ac_outfile=conftest.$ac_objext 16550 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16551 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16552 _lt_compiler_boilerplate=`cat conftest.err` 16553 $RM conftest* 16554 16555 ac_outfile=conftest.$ac_objext 16556 echo "$lt_simple_link_test_code" >conftest.$ac_ext 16557 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16558 _lt_linker_boilerplate=`cat conftest.err` 16559 $RM -r conftest* 16560 16561 16562 ## CAVEAT EMPTOR: 16563 ## There is no encapsulation within the following macros, do not change 16564 ## the running order or otherwise move them around unless you know exactly 16565 ## what you are doing... 16566 if test -n "$compiler"; then 16567 16568 lt_prog_compiler_no_builtin_flag= 16569 16570 if test yes = "$GCC"; then 16571 case $cc_basename in 16572 nvcc*) 16573 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 16574 *) 16575 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 16576 esac 16577 16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16579 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16580 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 16581 $as_echo_n "(cached) " >&6 16582 else 16583 lt_cv_prog_compiler_rtti_exceptions=no 16584 ac_outfile=conftest.$ac_objext 16585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16586 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 16587 # Insert the option either (1) after the last *FLAGS variable, or 16588 # (2) before a word containing "conftest.", or (3) at the end. 16589 # Note that $ac_compile itself does not contain backslashes and begins 16590 # with a dollar sign (not a hyphen), so the echo should work correctly. 16591 # The option is referenced via a variable to avoid confusing sed. 16592 lt_compile=`echo "$ac_compile" | $SED \ 16593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16595 -e 's:$: $lt_compiler_flag:'` 16596 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16597 (eval "$lt_compile" 2>conftest.err) 16598 ac_status=$? 16599 cat conftest.err >&5 16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16601 if (exit $ac_status) && test -s "$ac_outfile"; then 16602 # The compiler can only warn and ignore the option if not recognized 16603 # So say no if there are warnings other than the usual output. 16604 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16605 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16606 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16607 lt_cv_prog_compiler_rtti_exceptions=yes 16608 fi 16609 fi 16610 $RM conftest* 16611 16612 fi 16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16614 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16615 16616 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 16617 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 16618 else 16619 : 16620 fi 16621 16622 fi 16623 16624 16625 16626 16627 16628 16629 lt_prog_compiler_wl= 16630 lt_prog_compiler_pic= 16631 lt_prog_compiler_static= 16632 16633 16634 if test yes = "$GCC"; then 16635 lt_prog_compiler_wl='-Wl,' 16636 lt_prog_compiler_static='-static' 16637 16638 case $host_os in 16639 aix*) 16640 # All AIX code is PIC. 16641 if test ia64 = "$host_cpu"; then 16642 # AIX 5 now supports IA64 processor 16643 lt_prog_compiler_static='-Bstatic' 16644 fi 16645 lt_prog_compiler_pic='-fPIC' 16646 ;; 16647 16648 amigaos*) 16649 case $host_cpu in 16650 powerpc) 16651 # see comment about AmigaOS4 .so support 16652 lt_prog_compiler_pic='-fPIC' 16653 ;; 16654 m68k) 16655 # FIXME: we need at least 68020 code to build shared libraries, but 16656 # adding the '-m68020' flag to GCC prevents building anything better, 16657 # like '-m68040'. 16658 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 16659 ;; 16660 esac 16661 ;; 16662 16663 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16664 # PIC is the default for these OSes. 16665 ;; 16666 16667 mingw* | cygwin* | pw32* | os2* | cegcc*) 16668 # This hack is so that the source file can tell whether it is being 16669 # built for inclusion in a dll (and should export symbols for example). 16670 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16671 # (--disable-auto-import) libraries 16672 lt_prog_compiler_pic='-DDLL_EXPORT' 16673 case $host_os in 16674 os2*) 16675 lt_prog_compiler_static='$wl-static' 16676 ;; 16677 esac 16678 ;; 16679 16680 darwin* | rhapsody*) 16681 # PIC is the default on this platform 16682 # Common symbols not allowed in MH_DYLIB files 16683 lt_prog_compiler_pic='-fno-common' 16684 ;; 16685 16686 haiku*) 16687 # PIC is the default for Haiku. 16688 # The "-static" flag exists, but is broken. 16689 lt_prog_compiler_static= 16690 ;; 16691 16692 hpux*) 16693 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16694 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16695 # sets the default TLS model and affects inlining. 16696 case $host_cpu in 16697 hppa*64*) 16698 # +Z the default 16699 ;; 16700 *) 16701 lt_prog_compiler_pic='-fPIC' 16702 ;; 16703 esac 16704 ;; 16705 16706 interix[3-9]*) 16707 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16708 # Instead, we relocate shared libraries at runtime. 16709 ;; 16710 16711 msdosdjgpp*) 16712 # Just because we use GCC doesn't mean we suddenly get shared libraries 16713 # on systems that don't support them. 16714 lt_prog_compiler_can_build_shared=no 16715 enable_shared=no 16716 ;; 16717 16718 *nto* | *qnx*) 16719 # QNX uses GNU C++, but need to define -shared option too, otherwise 16720 # it will coredump. 16721 lt_prog_compiler_pic='-fPIC -shared' 16722 ;; 16723 16724 sysv4*MP*) 16725 if test -d /usr/nec; then 16726 lt_prog_compiler_pic=-Kconform_pic 16727 fi 16728 ;; 16729 16730 *) 16731 lt_prog_compiler_pic='-fPIC' 16732 ;; 16733 esac 16734 16735 case $cc_basename in 16736 nvcc*) # Cuda Compiler Driver 2.2 16737 lt_prog_compiler_wl='-Xlinker ' 16738 if test -n "$lt_prog_compiler_pic"; then 16739 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 16740 fi 16741 ;; 16742 esac 16743 else 16744 # PORTME Check for flag to pass linker flags through the system compiler. 16745 case $host_os in 16746 aix*) 16747 lt_prog_compiler_wl='-Wl,' 16748 if test ia64 = "$host_cpu"; then 16749 # AIX 5 now supports IA64 processor 16750 lt_prog_compiler_static='-Bstatic' 16751 else 16752 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 16753 fi 16754 ;; 16755 16756 darwin* | rhapsody*) 16757 # PIC is the default on this platform 16758 # Common symbols not allowed in MH_DYLIB files 16759 lt_prog_compiler_pic='-fno-common' 16760 case $cc_basename in 16761 nagfor*) 16762 # NAG Fortran compiler 16763 lt_prog_compiler_wl='-Wl,-Wl,,' 16764 lt_prog_compiler_pic='-PIC' 16765 lt_prog_compiler_static='-Bstatic' 16766 ;; 16767 esac 16768 ;; 16769 16770 mingw* | cygwin* | pw32* | os2* | cegcc*) 16771 # This hack is so that the source file can tell whether it is being 16772 # built for inclusion in a dll (and should export symbols for example). 16773 lt_prog_compiler_pic='-DDLL_EXPORT' 16774 case $host_os in 16775 os2*) 16776 lt_prog_compiler_static='$wl-static' 16777 ;; 16778 esac 16779 ;; 16780 16781 hpux9* | hpux10* | hpux11*) 16782 lt_prog_compiler_wl='-Wl,' 16783 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16784 # not for PA HP-UX. 16785 case $host_cpu in 16786 hppa*64*|ia64*) 16787 # +Z the default 16788 ;; 16789 *) 16790 lt_prog_compiler_pic='+Z' 16791 ;; 16792 esac 16793 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16794 lt_prog_compiler_static='$wl-a ${wl}archive' 16795 ;; 16796 16797 irix5* | irix6* | nonstopux*) 16798 lt_prog_compiler_wl='-Wl,' 16799 # PIC (with -KPIC) is the default. 16800 lt_prog_compiler_static='-non_shared' 16801 ;; 16802 16803 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16804 case $cc_basename in 16805 # old Intel for x86_64, which still supported -KPIC. 16806 ecc*) 16807 lt_prog_compiler_wl='-Wl,' 16808 lt_prog_compiler_pic='-KPIC' 16809 lt_prog_compiler_static='-static' 16810 ;; 16811 # icc used to be incompatible with GCC. 16812 # ICC 10 doesn't accept -KPIC any more. 16813 icc* | ifort*) 16814 lt_prog_compiler_wl='-Wl,' 16815 lt_prog_compiler_pic='-fPIC' 16816 lt_prog_compiler_static='-static' 16817 ;; 16818 # Lahey Fortran 8.1. 16819 lf95*) 16820 lt_prog_compiler_wl='-Wl,' 16821 lt_prog_compiler_pic='--shared' 16822 lt_prog_compiler_static='--static' 16823 ;; 16824 nagfor*) 16825 # NAG Fortran compiler 16826 lt_prog_compiler_wl='-Wl,-Wl,,' 16827 lt_prog_compiler_pic='-PIC' 16828 lt_prog_compiler_static='-Bstatic' 16829 ;; 16830 tcc*) 16831 # Fabrice Bellard et al's Tiny C Compiler 16832 lt_prog_compiler_wl='-Wl,' 16833 lt_prog_compiler_pic='-fPIC' 16834 lt_prog_compiler_static='-static' 16835 ;; 16836 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 16837 # Portland Group compilers (*not* the Pentium gcc compiler, 16838 # which looks to be a dead project) 16839 lt_prog_compiler_wl='-Wl,' 16840 lt_prog_compiler_pic='-fpic' 16841 lt_prog_compiler_static='-Bstatic' 16842 ;; 16843 ccc*) 16844 lt_prog_compiler_wl='-Wl,' 16845 # All Alpha code is PIC. 16846 lt_prog_compiler_static='-non_shared' 16847 ;; 16848 xl* | bgxl* | bgf* | mpixl*) 16849 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 16850 lt_prog_compiler_wl='-Wl,' 16851 lt_prog_compiler_pic='-qpic' 16852 lt_prog_compiler_static='-qstaticlink' 16853 ;; 16854 *) 16855 case `$CC -V 2>&1 | sed 5q` in 16856 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 16857 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16858 lt_prog_compiler_pic='-KPIC' 16859 lt_prog_compiler_static='-Bstatic' 16860 lt_prog_compiler_wl='' 16861 ;; 16862 *Sun\ F* | *Sun*Fortran*) 16863 lt_prog_compiler_pic='-KPIC' 16864 lt_prog_compiler_static='-Bstatic' 16865 lt_prog_compiler_wl='-Qoption ld ' 16866 ;; 16867 *Sun\ C*) 16868 # Sun C 5.9 16869 lt_prog_compiler_pic='-KPIC' 16870 lt_prog_compiler_static='-Bstatic' 16871 lt_prog_compiler_wl='-Wl,' 16872 ;; 16873 *Intel*\ [CF]*Compiler*) 16874 lt_prog_compiler_wl='-Wl,' 16875 lt_prog_compiler_pic='-fPIC' 16876 lt_prog_compiler_static='-static' 16877 ;; 16878 *Portland\ Group*) 16879 lt_prog_compiler_wl='-Wl,' 16880 lt_prog_compiler_pic='-fpic' 16881 lt_prog_compiler_static='-Bstatic' 16882 ;; 16883 esac 16884 ;; 16885 esac 16886 ;; 16887 16888 newsos6) 16889 lt_prog_compiler_pic='-KPIC' 16890 lt_prog_compiler_static='-Bstatic' 16891 ;; 16892 16893 *nto* | *qnx*) 16894 # QNX uses GNU C++, but need to define -shared option too, otherwise 16895 # it will coredump. 16896 lt_prog_compiler_pic='-fPIC -shared' 16897 ;; 16898 16899 osf3* | osf4* | osf5*) 16900 lt_prog_compiler_wl='-Wl,' 16901 # All OSF/1 code is PIC. 16902 lt_prog_compiler_static='-non_shared' 16903 ;; 16904 16905 rdos*) 16906 lt_prog_compiler_static='-non_shared' 16907 ;; 16908 16909 solaris*) 16910 lt_prog_compiler_pic='-KPIC' 16911 lt_prog_compiler_static='-Bstatic' 16912 case $cc_basename in 16913 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 16914 lt_prog_compiler_wl='-Qoption ld ';; 16915 *) 16916 lt_prog_compiler_wl='-Wl,';; 16917 esac 16918 ;; 16919 16920 sunos4*) 16921 lt_prog_compiler_wl='-Qoption ld ' 16922 lt_prog_compiler_pic='-PIC' 16923 lt_prog_compiler_static='-Bstatic' 16924 ;; 16925 16926 sysv4 | sysv4.2uw2* | sysv4.3*) 16927 lt_prog_compiler_wl='-Wl,' 16928 lt_prog_compiler_pic='-KPIC' 16929 lt_prog_compiler_static='-Bstatic' 16930 ;; 16931 16932 sysv4*MP*) 16933 if test -d /usr/nec; then 16934 lt_prog_compiler_pic='-Kconform_pic' 16935 lt_prog_compiler_static='-Bstatic' 16936 fi 16937 ;; 16938 16939 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16940 lt_prog_compiler_wl='-Wl,' 16941 lt_prog_compiler_pic='-KPIC' 16942 lt_prog_compiler_static='-Bstatic' 16943 ;; 16944 16945 unicos*) 16946 lt_prog_compiler_wl='-Wl,' 16947 lt_prog_compiler_can_build_shared=no 16948 ;; 16949 16950 uts4*) 16951 lt_prog_compiler_pic='-pic' 16952 lt_prog_compiler_static='-Bstatic' 16953 ;; 16954 16955 *) 16956 lt_prog_compiler_can_build_shared=no 16957 ;; 16958 esac 16959 fi 16960 16961 case $host_os in 16962 # For platforms that do not support PIC, -DPIC is meaningless: 16963 *djgpp*) 16964 lt_prog_compiler_pic= 16965 ;; 16966 *) 16967 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 16968 ;; 16969 esac 16970 16971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16972 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16973 if ${lt_cv_prog_compiler_pic+:} false; then : 16974 $as_echo_n "(cached) " >&6 16975 else 16976 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 16977 fi 16978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 16979 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 16980 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 16981 16982 # 16983 # Check to make sure the PIC flag actually works. 16984 # 16985 if test -n "$lt_prog_compiler_pic"; then 16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 16987 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 16988 if ${lt_cv_prog_compiler_pic_works+:} false; then : 16989 $as_echo_n "(cached) " >&6 16990 else 16991 lt_cv_prog_compiler_pic_works=no 16992 ac_outfile=conftest.$ac_objext 16993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16994 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 16995 # Insert the option either (1) after the last *FLAGS variable, or 16996 # (2) before a word containing "conftest.", or (3) at the end. 16997 # Note that $ac_compile itself does not contain backslashes and begins 16998 # with a dollar sign (not a hyphen), so the echo should work correctly. 16999 # The option is referenced via a variable to avoid confusing sed. 17000 lt_compile=`echo "$ac_compile" | $SED \ 17001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17003 -e 's:$: $lt_compiler_flag:'` 17004 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17005 (eval "$lt_compile" 2>conftest.err) 17006 ac_status=$? 17007 cat conftest.err >&5 17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17009 if (exit $ac_status) && test -s "$ac_outfile"; then 17010 # The compiler can only warn and ignore the option if not recognized 17011 # So say no if there are warnings other than the usual output. 17012 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 17013 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17014 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17015 lt_cv_prog_compiler_pic_works=yes 17016 fi 17017 fi 17018 $RM conftest* 17019 17020 fi 17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 17022 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 17023 17024 if test yes = "$lt_cv_prog_compiler_pic_works"; then 17025 case $lt_prog_compiler_pic in 17026 "" | " "*) ;; 17027 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 17028 esac 17029 else 17030 lt_prog_compiler_pic= 17031 lt_prog_compiler_can_build_shared=no 17032 fi 17033 17034 fi 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 # 17047 # Check to make sure the static flag actually works. 17048 # 17049 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 17050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17051 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17052 if ${lt_cv_prog_compiler_static_works+:} false; then : 17053 $as_echo_n "(cached) " >&6 17054 else 17055 lt_cv_prog_compiler_static_works=no 17056 save_LDFLAGS=$LDFLAGS 17057 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17058 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17059 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17060 # The linker can only warn and ignore the option if not recognized 17061 # So say no if there are warnings 17062 if test -s conftest.err; then 17063 # Append any errors to the config.log. 17064 cat conftest.err 1>&5 17065 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17067 if diff conftest.exp conftest.er2 >/dev/null; then 17068 lt_cv_prog_compiler_static_works=yes 17069 fi 17070 else 17071 lt_cv_prog_compiler_static_works=yes 17072 fi 17073 fi 17074 $RM -r conftest* 17075 LDFLAGS=$save_LDFLAGS 17076 17077 fi 17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 17079 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 17080 17081 if test yes = "$lt_cv_prog_compiler_static_works"; then 17082 : 17083 else 17084 lt_prog_compiler_static= 17085 fi 17086 17087 17088 17089 17090 17091 17092 17093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17094 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17095 if ${lt_cv_prog_compiler_c_o+:} false; then : 17096 $as_echo_n "(cached) " >&6 17097 else 17098 lt_cv_prog_compiler_c_o=no 17099 $RM -r conftest 2>/dev/null 17100 mkdir conftest 17101 cd conftest 17102 mkdir out 17103 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17104 17105 lt_compiler_flag="-o out/conftest2.$ac_objext" 17106 # Insert the option either (1) after the last *FLAGS variable, or 17107 # (2) before a word containing "conftest.", or (3) at the end. 17108 # Note that $ac_compile itself does not contain backslashes and begins 17109 # with a dollar sign (not a hyphen), so the echo should work correctly. 17110 lt_compile=`echo "$ac_compile" | $SED \ 17111 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17113 -e 's:$: $lt_compiler_flag:'` 17114 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17115 (eval "$lt_compile" 2>out/conftest.err) 17116 ac_status=$? 17117 cat out/conftest.err >&5 17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17119 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17120 then 17121 # The compiler can only warn and ignore the option if not recognized 17122 # So say no if there are warnings 17123 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17124 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17125 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17126 lt_cv_prog_compiler_c_o=yes 17127 fi 17128 fi 17129 chmod u+w . 2>&5 17130 $RM conftest* 17131 # SGI C++ compiler will create directory out/ii_files/ for 17132 # template instantiation 17133 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17134 $RM out/* && rmdir out 17135 cd .. 17136 $RM -r conftest 17137 $RM conftest* 17138 17139 fi 17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 17141 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 17142 17143 17144 17145 17146 17147 17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17149 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17150 if ${lt_cv_prog_compiler_c_o+:} false; then : 17151 $as_echo_n "(cached) " >&6 17152 else 17153 lt_cv_prog_compiler_c_o=no 17154 $RM -r conftest 2>/dev/null 17155 mkdir conftest 17156 cd conftest 17157 mkdir out 17158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17159 17160 lt_compiler_flag="-o out/conftest2.$ac_objext" 17161 # Insert the option either (1) after the last *FLAGS variable, or 17162 # (2) before a word containing "conftest.", or (3) at the end. 17163 # Note that $ac_compile itself does not contain backslashes and begins 17164 # with a dollar sign (not a hyphen), so the echo should work correctly. 17165 lt_compile=`echo "$ac_compile" | $SED \ 17166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17168 -e 's:$: $lt_compiler_flag:'` 17169 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17170 (eval "$lt_compile" 2>out/conftest.err) 17171 ac_status=$? 17172 cat out/conftest.err >&5 17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17174 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17175 then 17176 # The compiler can only warn and ignore the option if not recognized 17177 # So say no if there are warnings 17178 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17179 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17180 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17181 lt_cv_prog_compiler_c_o=yes 17182 fi 17183 fi 17184 chmod u+w . 2>&5 17185 $RM conftest* 17186 # SGI C++ compiler will create directory out/ii_files/ for 17187 # template instantiation 17188 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17189 $RM out/* && rmdir out 17190 cd .. 17191 $RM -r conftest 17192 $RM conftest* 17193 17194 fi 17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 17196 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 17197 17198 17199 17200 17201 hard_links=nottested 17202 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 17203 # do not overwrite the value of need_locks provided by the user 17204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 17205 $as_echo_n "checking if we can lock with hard links... " >&6; } 17206 hard_links=yes 17207 $RM conftest* 17208 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17209 touch conftest.a 17210 ln conftest.a conftest.b 2>&5 || hard_links=no 17211 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 17213 $as_echo "$hard_links" >&6; } 17214 if test no = "$hard_links"; then 17215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 17216 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 17217 need_locks=warn 17218 fi 17219 else 17220 need_locks=no 17221 fi 17222 17223 17224 17225 17226 17227 17228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17229 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17230 17231 runpath_var= 17232 allow_undefined_flag= 17233 always_export_symbols=no 17234 archive_cmds= 17235 archive_expsym_cmds= 17236 compiler_needs_object=no 17237 enable_shared_with_static_runtimes=no 17238 export_dynamic_flag_spec= 17239 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17240 hardcode_automatic=no 17241 hardcode_direct=no 17242 hardcode_direct_absolute=no 17243 hardcode_libdir_flag_spec= 17244 hardcode_libdir_separator= 17245 hardcode_minus_L=no 17246 hardcode_shlibpath_var=unsupported 17247 inherit_rpath=no 17248 link_all_deplibs=unknown 17249 module_cmds= 17250 module_expsym_cmds= 17251 old_archive_from_new_cmds= 17252 old_archive_from_expsyms_cmds= 17253 thread_safe_flag_spec= 17254 whole_archive_flag_spec= 17255 # include_expsyms should be a list of space-separated symbols to be *always* 17256 # included in the symbol list 17257 include_expsyms= 17258 # exclude_expsyms can be an extended regexp of symbols to exclude 17259 # it will be wrapped by ' (' and ')$', so one must not match beginning or 17260 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 17261 # as well as any symbol that contains 'd'. 17262 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17263 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17264 # platforms (ab)use it in PIC code, but their linkers get confused if 17265 # the symbol is explicitly referenced. Since portable code cannot 17266 # rely on this symbol name, it's probably fine to never include it in 17267 # preloaded symbol tables. 17268 # Exclude shared library initialization/finalization symbols. 17269 extract_expsyms_cmds= 17270 17271 case $host_os in 17272 cygwin* | mingw* | pw32* | cegcc*) 17273 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17274 # When not using gcc, we currently assume that we are using 17275 # Microsoft Visual C++. 17276 if test yes != "$GCC"; then 17277 with_gnu_ld=no 17278 fi 17279 ;; 17280 interix*) 17281 # we just hope/assume this is gcc and not c89 (= MSVC++) 17282 with_gnu_ld=yes 17283 ;; 17284 openbsd* | bitrig*) 17285 with_gnu_ld=no 17286 ;; 17287 esac 17288 17289 ld_shlibs=yes 17290 17291 # On some targets, GNU ld is compatible enough with the native linker 17292 # that we're better off using the native interface for both. 17293 lt_use_gnu_ld_interface=no 17294 if test yes = "$with_gnu_ld"; then 17295 case $host_os in 17296 aix*) 17297 # The AIX port of GNU ld has always aspired to compatibility 17298 # with the native linker. However, as the warning in the GNU ld 17299 # block says, versions before 2.19.5* couldn't really create working 17300 # shared libraries, regardless of the interface used. 17301 case `$LD -v 2>&1` in 17302 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 17303 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 17304 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 17305 *) 17306 lt_use_gnu_ld_interface=yes 17307 ;; 17308 esac 17309 ;; 17310 *) 17311 lt_use_gnu_ld_interface=yes 17312 ;; 17313 esac 17314 fi 17315 17316 if test yes = "$lt_use_gnu_ld_interface"; then 17317 # If archive_cmds runs LD, not CC, wlarc should be empty 17318 wlarc='$wl' 17319 17320 # Set some defaults for GNU ld with shared library support. These 17321 # are reset later if shared libraries are not supported. Putting them 17322 # here allows them to be overridden if necessary. 17323 runpath_var=LD_RUN_PATH 17324 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17325 export_dynamic_flag_spec='$wl--export-dynamic' 17326 # ancient GNU ld didn't support --whole-archive et. al. 17327 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 17328 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 17329 else 17330 whole_archive_flag_spec= 17331 fi 17332 supports_anon_versioning=no 17333 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 17334 *GNU\ gold*) supports_anon_versioning=yes ;; 17335 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17336 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17337 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17338 *\ 2.11.*) ;; # other 2.11 versions 17339 *) supports_anon_versioning=yes ;; 17340 esac 17341 17342 # See if GNU ld supports shared libraries. 17343 case $host_os in 17344 aix[3-9]*) 17345 # On AIX/PPC, the GNU linker is very broken 17346 if test ia64 != "$host_cpu"; then 17347 ld_shlibs=no 17348 cat <<_LT_EOF 1>&2 17349 17350 *** Warning: the GNU linker, at least up to release 2.19, is reported 17351 *** to be unable to reliably create shared libraries on AIX. 17352 *** Therefore, libtool is disabling shared libraries support. If you 17353 *** really care for shared libraries, you may want to install binutils 17354 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 17355 *** You will then need to restart the configuration process. 17356 17357 _LT_EOF 17358 fi 17359 ;; 17360 17361 amigaos*) 17362 case $host_cpu in 17363 powerpc) 17364 # see comment about AmigaOS4 .so support 17365 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17366 archive_expsym_cmds='' 17367 ;; 17368 m68k) 17369 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)' 17370 hardcode_libdir_flag_spec='-L$libdir' 17371 hardcode_minus_L=yes 17372 ;; 17373 esac 17374 ;; 17375 17376 beos*) 17377 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17378 allow_undefined_flag=unsupported 17379 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 17380 # support --undefined. This deserves some investigation. FIXME 17381 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17382 else 17383 ld_shlibs=no 17384 fi 17385 ;; 17386 17387 cygwin* | mingw* | pw32* | cegcc*) 17388 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 17389 # as there is no search path for DLLs. 17390 hardcode_libdir_flag_spec='-L$libdir' 17391 export_dynamic_flag_spec='$wl--export-all-symbols' 17392 allow_undefined_flag=unsupported 17393 always_export_symbols=no 17394 enable_shared_with_static_runtimes=yes 17395 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 17396 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 17397 17398 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 17399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17400 # If the export-symbols file already is a .def file, use it as 17401 # is; otherwise, prepend EXPORTS... 17402 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 17403 cp $export_symbols $output_objdir/$soname.def; 17404 else 17405 echo EXPORTS > $output_objdir/$soname.def; 17406 cat $export_symbols >> $output_objdir/$soname.def; 17407 fi~ 17408 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17409 else 17410 ld_shlibs=no 17411 fi 17412 ;; 17413 17414 haiku*) 17415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17416 link_all_deplibs=yes 17417 ;; 17418 17419 os2*) 17420 hardcode_libdir_flag_spec='-L$libdir' 17421 hardcode_minus_L=yes 17422 allow_undefined_flag=unsupported 17423 shrext_cmds=.dll 17424 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17425 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17426 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17427 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17428 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17429 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17430 emximp -o $lib $output_objdir/$libname.def' 17431 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17432 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17433 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17434 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17435 prefix_cmds="$SED"~ 17436 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17437 prefix_cmds="$prefix_cmds -e 1d"; 17438 fi~ 17439 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17440 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17441 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17442 emximp -o $lib $output_objdir/$libname.def' 17443 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17444 enable_shared_with_static_runtimes=yes 17445 ;; 17446 17447 interix[3-9]*) 17448 hardcode_direct=no 17449 hardcode_shlibpath_var=no 17450 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17451 export_dynamic_flag_spec='$wl-E' 17452 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17453 # Instead, shared libraries are loaded at an image base (0x10000000 by 17454 # default) and relocated if they conflict, which is a slow very memory 17455 # consuming and fragmenting process. To avoid this, we pick a random, 17456 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17457 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17458 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 17459 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' 17460 ;; 17461 17462 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 17463 tmp_diet=no 17464 if test linux-dietlibc = "$host_os"; then 17465 case $cc_basename in 17466 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 17467 esac 17468 fi 17469 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 17470 && test no = "$tmp_diet" 17471 then 17472 tmp_addflag=' $pic_flag' 17473 tmp_sharedflag='-shared' 17474 case $cc_basename,$host_cpu in 17475 pgcc*) # Portland Group C compiler 17476 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 17477 tmp_addflag=' $pic_flag' 17478 ;; 17479 pgf77* | pgf90* | pgf95* | pgfortran*) 17480 # Portland Group f77 and f90 compilers 17481 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 17482 tmp_addflag=' $pic_flag -Mnomain' ;; 17483 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17484 tmp_addflag=' -i_dynamic' ;; 17485 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17486 tmp_addflag=' -i_dynamic -nofor_main' ;; 17487 ifc* | ifort*) # Intel Fortran compiler 17488 tmp_addflag=' -nofor_main' ;; 17489 lf95*) # Lahey Fortran 8.1 17490 whole_archive_flag_spec= 17491 tmp_sharedflag='--shared' ;; 17492 nagfor*) # NAGFOR 5.3 17493 tmp_sharedflag='-Wl,-shared' ;; 17494 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 17495 tmp_sharedflag='-qmkshrobj' 17496 tmp_addflag= ;; 17497 nvcc*) # Cuda Compiler Driver 2.2 17498 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 17499 compiler_needs_object=yes 17500 ;; 17501 esac 17502 case `$CC -V 2>&1 | sed 5q` in 17503 *Sun\ C*) # Sun C 5.9 17504 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 17505 compiler_needs_object=yes 17506 tmp_sharedflag='-G' ;; 17507 *Sun\ F*) # Sun Fortran 8.3 17508 tmp_sharedflag='-G' ;; 17509 esac 17510 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17511 17512 if test yes = "$supports_anon_versioning"; then 17513 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 17514 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17515 echo "local: *; };" >> $output_objdir/$libname.ver~ 17516 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 17517 fi 17518 17519 case $cc_basename in 17520 tcc*) 17521 export_dynamic_flag_spec='-rdynamic' 17522 ;; 17523 xlf* | bgf* | bgxlf* | mpixlf*) 17524 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 17525 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 17526 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17527 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 17528 if test yes = "$supports_anon_versioning"; then 17529 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 17530 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17531 echo "local: *; };" >> $output_objdir/$libname.ver~ 17532 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 17533 fi 17534 ;; 17535 esac 17536 else 17537 ld_shlibs=no 17538 fi 17539 ;; 17540 17541 netbsd*) 17542 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17543 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17544 wlarc= 17545 else 17546 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17547 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17548 fi 17549 ;; 17550 17551 solaris*) 17552 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 17553 ld_shlibs=no 17554 cat <<_LT_EOF 1>&2 17555 17556 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 17557 *** create shared libraries on Solaris systems. Therefore, libtool 17558 *** is disabling shared libraries support. We urge you to upgrade GNU 17559 *** binutils to release 2.9.1 or newer. Another option is to modify 17560 *** your PATH or compiler configuration so that the native linker is 17561 *** used, and then restart. 17562 17563 _LT_EOF 17564 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17565 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17566 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17567 else 17568 ld_shlibs=no 17569 fi 17570 ;; 17571 17572 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17573 case `$LD -v 2>&1` in 17574 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17575 ld_shlibs=no 17576 cat <<_LT_EOF 1>&2 17577 17578 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 17579 *** reliably create shared libraries on SCO systems. Therefore, libtool 17580 *** is disabling shared libraries support. We urge you to upgrade GNU 17581 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17582 *** your PATH or compiler configuration so that the native linker is 17583 *** used, and then restart. 17584 17585 _LT_EOF 17586 ;; 17587 *) 17588 # For security reasons, it is highly recommended that you always 17589 # use absolute paths for naming shared libraries, and exclude the 17590 # DT_RUNPATH tag from executables and libraries. But doing so 17591 # requires that you compile everything twice, which is a pain. 17592 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17593 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17595 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17596 else 17597 ld_shlibs=no 17598 fi 17599 ;; 17600 esac 17601 ;; 17602 17603 sunos4*) 17604 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17605 wlarc= 17606 hardcode_direct=yes 17607 hardcode_shlibpath_var=no 17608 ;; 17609 17610 *) 17611 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17612 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17613 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17614 else 17615 ld_shlibs=no 17616 fi 17617 ;; 17618 esac 17619 17620 if test no = "$ld_shlibs"; then 17621 runpath_var= 17622 hardcode_libdir_flag_spec= 17623 export_dynamic_flag_spec= 17624 whole_archive_flag_spec= 17625 fi 17626 else 17627 # PORTME fill in a description of your system's linker (not GNU ld) 17628 case $host_os in 17629 aix3*) 17630 allow_undefined_flag=unsupported 17631 always_export_symbols=yes 17632 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' 17633 # Note: this linker hardcodes the directories in LIBPATH if there 17634 # are no directories specified by -L. 17635 hardcode_minus_L=yes 17636 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 17637 # Neither direct hardcoding nor static linking is supported with a 17638 # broken collect2. 17639 hardcode_direct=unsupported 17640 fi 17641 ;; 17642 17643 aix[4-9]*) 17644 if test ia64 = "$host_cpu"; then 17645 # On IA64, the linker does run time linking by default, so we don't 17646 # have to do anything special. 17647 aix_use_runtimelinking=no 17648 exp_sym_flag='-Bexport' 17649 no_entry_flag= 17650 else 17651 # If we're using GNU nm, then we don't want the "-C" option. 17652 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 17653 # Without the "-l" option, or with the "-B" option, AIX nm treats 17654 # weak defined symbols like other global defined symbols, whereas 17655 # GNU nm marks them as "W". 17656 # While the 'weak' keyword is ignored in the Export File, we need 17657 # it in the Import File for the 'aix-soname' feature, so we have 17658 # to replace the "-B" option with "-P" for AIX nm. 17659 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17660 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 17661 else 17662 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 17663 fi 17664 aix_use_runtimelinking=no 17665 17666 # Test if we are trying to use run time linking or normal 17667 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17668 # have runtime linking enabled, and use it for executables. 17669 # For shared libraries, we enable/disable runtime linking 17670 # depending on the kind of the shared library created - 17671 # when "with_aix_soname,aix_use_runtimelinking" is: 17672 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 17673 # "aix,yes" lib.so shared, rtl:yes, for executables 17674 # lib.a static archive 17675 # "both,no" lib.so.V(shr.o) shared, rtl:yes 17676 # lib.a(lib.so.V) shared, rtl:no, for executables 17677 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 17678 # lib.a(lib.so.V) shared, rtl:no 17679 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 17680 # lib.a static archive 17681 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17682 for ld_flag in $LDFLAGS; do 17683 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 17684 aix_use_runtimelinking=yes 17685 break 17686 fi 17687 done 17688 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 17689 # With aix-soname=svr4, we create the lib.so.V shared archives only, 17690 # so we don't have lib.a shared libs to link our executables. 17691 # We have to force runtime linking in this case. 17692 aix_use_runtimelinking=yes 17693 LDFLAGS="$LDFLAGS -Wl,-brtl" 17694 fi 17695 ;; 17696 esac 17697 17698 exp_sym_flag='-bexport' 17699 no_entry_flag='-bnoentry' 17700 fi 17701 17702 # When large executables or shared objects are built, AIX ld can 17703 # have problems creating the table of contents. If linking a library 17704 # or program results in "error TOC overflow" add -mminimal-toc to 17705 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17706 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17707 17708 archive_cmds='' 17709 hardcode_direct=yes 17710 hardcode_direct_absolute=yes 17711 hardcode_libdir_separator=':' 17712 link_all_deplibs=yes 17713 file_list_spec='$wl-f,' 17714 case $with_aix_soname,$aix_use_runtimelinking in 17715 aix,*) ;; # traditional, no import file 17716 svr4,* | *,yes) # use import file 17717 # The Import File defines what to hardcode. 17718 hardcode_direct=no 17719 hardcode_direct_absolute=no 17720 ;; 17721 esac 17722 17723 if test yes = "$GCC"; then 17724 case $host_os in aix4.[012]|aix4.[012].*) 17725 # We only want to do this on AIX 4.2 and lower, the check 17726 # below for broken collect2 doesn't work under 4.3+ 17727 collect2name=`$CC -print-prog-name=collect2` 17728 if test -f "$collect2name" && 17729 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 17730 then 17731 # We have reworked collect2 17732 : 17733 else 17734 # We have old collect2 17735 hardcode_direct=unsupported 17736 # It fails to find uninstalled libraries when the uninstalled 17737 # path is not listed in the libpath. Setting hardcode_minus_L 17738 # to unsupported forces relinking 17739 hardcode_minus_L=yes 17740 hardcode_libdir_flag_spec='-L$libdir' 17741 hardcode_libdir_separator= 17742 fi 17743 ;; 17744 esac 17745 shared_flag='-shared' 17746 if test yes = "$aix_use_runtimelinking"; then 17747 shared_flag="$shared_flag "'$wl-G' 17748 fi 17749 # Need to ensure runtime linking is disabled for the traditional 17750 # shared library, or the linker may eventually find shared libraries 17751 # /with/ Import File - we do not want to mix them. 17752 shared_flag_aix='-shared' 17753 shared_flag_svr4='-shared $wl-G' 17754 else 17755 # not using gcc 17756 if test ia64 = "$host_cpu"; then 17757 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17758 # chokes on -Wl,-G. The following line is correct: 17759 shared_flag='-G' 17760 else 17761 if test yes = "$aix_use_runtimelinking"; then 17762 shared_flag='$wl-G' 17763 else 17764 shared_flag='$wl-bM:SRE' 17765 fi 17766 shared_flag_aix='$wl-bM:SRE' 17767 shared_flag_svr4='$wl-G' 17768 fi 17769 fi 17770 17771 export_dynamic_flag_spec='$wl-bexpall' 17772 # It seems that -bexpall does not export symbols beginning with 17773 # underscore (_), so it is better to generate a list of symbols to export. 17774 always_export_symbols=yes 17775 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 17776 # Warning - without using the other runtime loading flags (-brtl), 17777 # -berok will link without error, but may produce a broken library. 17778 allow_undefined_flag='-berok' 17779 # Determine the default libpath from the value encoded in an 17780 # empty executable. 17781 if test set = "${lt_cv_aix_libpath+set}"; then 17782 aix_libpath=$lt_cv_aix_libpath 17783 else 17784 if ${lt_cv_aix_libpath_+:} false; then : 17785 $as_echo_n "(cached) " >&6 17786 else 17787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17788 /* end confdefs.h. */ 17789 17790 int 17791 main () 17792 { 17793 17794 ; 17795 return 0; 17796 } 17797 _ACEOF 17798 if ac_fn_c_try_link "$LINENO"; then : 17799 17800 lt_aix_libpath_sed=' 17801 /Import File Strings/,/^$/ { 17802 /^0/ { 17803 s/^0 *\([^ ]*\) *$/\1/ 17804 p 17805 } 17806 }' 17807 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17808 # Check for a 64-bit object if we didn't find anything. 17809 if test -z "$lt_cv_aix_libpath_"; then 17810 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17811 fi 17812 fi 17813 rm -f core conftest.err conftest.$ac_objext \ 17814 conftest$ac_exeext conftest.$ac_ext 17815 if test -z "$lt_cv_aix_libpath_"; then 17816 lt_cv_aix_libpath_=/usr/lib:/lib 17817 fi 17818 17819 fi 17820 17821 aix_libpath=$lt_cv_aix_libpath_ 17822 fi 17823 17824 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17825 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 17826 else 17827 if test ia64 = "$host_cpu"; then 17828 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 17829 allow_undefined_flag="-z nodefs" 17830 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" 17831 else 17832 # Determine the default libpath from the value encoded in an 17833 # empty executable. 17834 if test set = "${lt_cv_aix_libpath+set}"; then 17835 aix_libpath=$lt_cv_aix_libpath 17836 else 17837 if ${lt_cv_aix_libpath_+:} false; then : 17838 $as_echo_n "(cached) " >&6 17839 else 17840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17841 /* end confdefs.h. */ 17842 17843 int 17844 main () 17845 { 17846 17847 ; 17848 return 0; 17849 } 17850 _ACEOF 17851 if ac_fn_c_try_link "$LINENO"; then : 17852 17853 lt_aix_libpath_sed=' 17854 /Import File Strings/,/^$/ { 17855 /^0/ { 17856 s/^0 *\([^ ]*\) *$/\1/ 17857 p 17858 } 17859 }' 17860 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17861 # Check for a 64-bit object if we didn't find anything. 17862 if test -z "$lt_cv_aix_libpath_"; then 17863 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17864 fi 17865 fi 17866 rm -f core conftest.err conftest.$ac_objext \ 17867 conftest$ac_exeext conftest.$ac_ext 17868 if test -z "$lt_cv_aix_libpath_"; then 17869 lt_cv_aix_libpath_=/usr/lib:/lib 17870 fi 17871 17872 fi 17873 17874 aix_libpath=$lt_cv_aix_libpath_ 17875 fi 17876 17877 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17878 # Warning - without using the other run time loading flags, 17879 # -berok will link without error, but may produce a broken library. 17880 no_undefined_flag=' $wl-bernotok' 17881 allow_undefined_flag=' $wl-berok' 17882 if test yes = "$with_gnu_ld"; then 17883 # We only use this code for GNU lds that support --whole-archive. 17884 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 17885 else 17886 # Exported symbols can be pulled into shared objects from archives 17887 whole_archive_flag_spec='$convenience' 17888 fi 17889 archive_cmds_need_lc=yes 17890 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 17891 # -brtl affects multiple linker settings, -berok does not and is overridden later 17892 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 17893 if test svr4 != "$with_aix_soname"; then 17894 # This is similar to how AIX traditionally builds its shared libraries. 17895 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 17896 fi 17897 if test aix != "$with_aix_soname"; then 17898 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 17899 else 17900 # used by -dlpreopen to get the symbols 17901 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 17902 fi 17903 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 17904 fi 17905 fi 17906 ;; 17907 17908 amigaos*) 17909 case $host_cpu in 17910 powerpc) 17911 # see comment about AmigaOS4 .so support 17912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17913 archive_expsym_cmds='' 17914 ;; 17915 m68k) 17916 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)' 17917 hardcode_libdir_flag_spec='-L$libdir' 17918 hardcode_minus_L=yes 17919 ;; 17920 esac 17921 ;; 17922 17923 bsdi[45]*) 17924 export_dynamic_flag_spec=-rdynamic 17925 ;; 17926 17927 cygwin* | mingw* | pw32* | cegcc*) 17928 # When not using gcc, we currently assume that we are using 17929 # Microsoft Visual C++. 17930 # hardcode_libdir_flag_spec is actually meaningless, as there is 17931 # no search path for DLLs. 17932 case $cc_basename in 17933 cl*) 17934 # Native MSVC 17935 hardcode_libdir_flag_spec=' ' 17936 allow_undefined_flag=unsupported 17937 always_export_symbols=yes 17938 file_list_spec='@' 17939 # Tell ltmain to make .lib files, not .a files. 17940 libext=lib 17941 # Tell ltmain to make .dll files, not .so files. 17942 shrext_cmds=.dll 17943 # FIXME: Setting linknames here is a bad hack. 17944 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 17945 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 17946 cp "$export_symbols" "$output_objdir/$soname.def"; 17947 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 17948 else 17949 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 17950 fi~ 17951 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 17952 linknames=' 17953 # The linker will not automatically build a static lib if we build a DLL. 17954 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 17955 enable_shared_with_static_runtimes=yes 17956 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17957 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17958 # Don't use ranlib 17959 old_postinstall_cmds='chmod 644 $oldlib' 17960 postlink_cmds='lt_outputfile="@OUTPUT@"~ 17961 lt_tool_outputfile="@TOOL_OUTPUT@"~ 17962 case $lt_outputfile in 17963 *.exe|*.EXE) ;; 17964 *) 17965 lt_outputfile=$lt_outputfile.exe 17966 lt_tool_outputfile=$lt_tool_outputfile.exe 17967 ;; 17968 esac~ 17969 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 17970 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 17971 $RM "$lt_outputfile.manifest"; 17972 fi' 17973 ;; 17974 *) 17975 # Assume MSVC wrapper 17976 hardcode_libdir_flag_spec=' ' 17977 allow_undefined_flag=unsupported 17978 # Tell ltmain to make .lib files, not .a files. 17979 libext=lib 17980 # Tell ltmain to make .dll files, not .so files. 17981 shrext_cmds=.dll 17982 # FIXME: Setting linknames here is a bad hack. 17983 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 17984 # The linker will automatically build a .lib file if we build a DLL. 17985 old_archive_from_new_cmds='true' 17986 # FIXME: Should let the user specify the lib program. 17987 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 17988 enable_shared_with_static_runtimes=yes 17989 ;; 17990 esac 17991 ;; 17992 17993 darwin* | rhapsody*) 17994 17995 17996 archive_cmds_need_lc=no 17997 hardcode_direct=no 17998 hardcode_automatic=yes 17999 hardcode_shlibpath_var=unsupported 18000 if test yes = "$lt_cv_ld_force_load"; then 18001 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 18002 18003 else 18004 whole_archive_flag_spec='' 18005 fi 18006 link_all_deplibs=yes 18007 allow_undefined_flag=$_lt_dar_allow_undefined 18008 case $cc_basename in 18009 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 18010 *) _lt_dar_can_shared=$GCC ;; 18011 esac 18012 if test yes = "$_lt_dar_can_shared"; then 18013 output_verbose_link_cmd=func_echo_all 18014 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 18015 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 18016 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" 18017 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" 18018 18019 else 18020 ld_shlibs=no 18021 fi 18022 18023 ;; 18024 18025 dgux*) 18026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18027 hardcode_libdir_flag_spec='-L$libdir' 18028 hardcode_shlibpath_var=no 18029 ;; 18030 18031 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18032 # support. Future versions do this automatically, but an explicit c++rt0.o 18033 # does not break anything, and helps significantly (at the cost of a little 18034 # extra space). 18035 freebsd2.2*) 18036 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18037 hardcode_libdir_flag_spec='-R$libdir' 18038 hardcode_direct=yes 18039 hardcode_shlibpath_var=no 18040 ;; 18041 18042 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18043 freebsd2.*) 18044 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18045 hardcode_direct=yes 18046 hardcode_minus_L=yes 18047 hardcode_shlibpath_var=no 18048 ;; 18049 18050 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18051 freebsd* | dragonfly*) 18052 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18053 hardcode_libdir_flag_spec='-R$libdir' 18054 hardcode_direct=yes 18055 hardcode_shlibpath_var=no 18056 ;; 18057 18058 hpux9*) 18059 if test yes = "$GCC"; then 18060 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 18061 else 18062 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 18063 fi 18064 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 18065 hardcode_libdir_separator=: 18066 hardcode_direct=yes 18067 18068 # hardcode_minus_L: Not really in the search PATH, 18069 # but as the default location of the library. 18070 hardcode_minus_L=yes 18071 export_dynamic_flag_spec='$wl-E' 18072 ;; 18073 18074 hpux10*) 18075 if test yes,no = "$GCC,$with_gnu_ld"; then 18076 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18077 else 18078 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18079 fi 18080 if test no = "$with_gnu_ld"; then 18081 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 18082 hardcode_libdir_separator=: 18083 hardcode_direct=yes 18084 hardcode_direct_absolute=yes 18085 export_dynamic_flag_spec='$wl-E' 18086 # hardcode_minus_L: Not really in the search PATH, 18087 # but as the default location of the library. 18088 hardcode_minus_L=yes 18089 fi 18090 ;; 18091 18092 hpux11*) 18093 if test yes,no = "$GCC,$with_gnu_ld"; then 18094 case $host_cpu in 18095 hppa*64*) 18096 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 18097 ;; 18098 ia64*) 18099 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18100 ;; 18101 *) 18102 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18103 ;; 18104 esac 18105 else 18106 case $host_cpu in 18107 hppa*64*) 18108 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 18109 ;; 18110 ia64*) 18111 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18112 ;; 18113 *) 18114 18115 # Older versions of the 11.00 compiler do not understand -b yet 18116 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 18117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 18118 $as_echo_n "checking if $CC understands -b... " >&6; } 18119 if ${lt_cv_prog_compiler__b+:} false; then : 18120 $as_echo_n "(cached) " >&6 18121 else 18122 lt_cv_prog_compiler__b=no 18123 save_LDFLAGS=$LDFLAGS 18124 LDFLAGS="$LDFLAGS -b" 18125 echo "$lt_simple_link_test_code" > conftest.$ac_ext 18126 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 18127 # The linker can only warn and ignore the option if not recognized 18128 # So say no if there are warnings 18129 if test -s conftest.err; then 18130 # Append any errors to the config.log. 18131 cat conftest.err 1>&5 18132 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 18133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18134 if diff conftest.exp conftest.er2 >/dev/null; then 18135 lt_cv_prog_compiler__b=yes 18136 fi 18137 else 18138 lt_cv_prog_compiler__b=yes 18139 fi 18140 fi 18141 $RM -r conftest* 18142 LDFLAGS=$save_LDFLAGS 18143 18144 fi 18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 18146 $as_echo "$lt_cv_prog_compiler__b" >&6; } 18147 18148 if test yes = "$lt_cv_prog_compiler__b"; then 18149 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18150 else 18151 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18152 fi 18153 18154 ;; 18155 esac 18156 fi 18157 if test no = "$with_gnu_ld"; then 18158 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 18159 hardcode_libdir_separator=: 18160 18161 case $host_cpu in 18162 hppa*64*|ia64*) 18163 hardcode_direct=no 18164 hardcode_shlibpath_var=no 18165 ;; 18166 *) 18167 hardcode_direct=yes 18168 hardcode_direct_absolute=yes 18169 export_dynamic_flag_spec='$wl-E' 18170 18171 # hardcode_minus_L: Not really in the search PATH, 18172 # but as the default location of the library. 18173 hardcode_minus_L=yes 18174 ;; 18175 esac 18176 fi 18177 ;; 18178 18179 irix5* | irix6* | nonstopux*) 18180 if test yes = "$GCC"; then 18181 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 18182 # Try to use the -exported_symbol ld option, if it does not 18183 # work, assume that -exports_file does not work either and 18184 # implicitly export all symbols. 18185 # This should be the same for all languages, so no per-tag cache variable. 18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 18187 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 18188 if ${lt_cv_irix_exported_symbol+:} false; then : 18189 $as_echo_n "(cached) " >&6 18190 else 18191 save_LDFLAGS=$LDFLAGS 18192 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 18193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18194 /* end confdefs.h. */ 18195 int foo (void) { return 0; } 18196 _ACEOF 18197 if ac_fn_c_try_link "$LINENO"; then : 18198 lt_cv_irix_exported_symbol=yes 18199 else 18200 lt_cv_irix_exported_symbol=no 18201 fi 18202 rm -f core conftest.err conftest.$ac_objext \ 18203 conftest$ac_exeext conftest.$ac_ext 18204 LDFLAGS=$save_LDFLAGS 18205 fi 18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 18207 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 18208 if test yes = "$lt_cv_irix_exported_symbol"; then 18209 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 18210 fi 18211 else 18212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 18213 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 18214 fi 18215 archive_cmds_need_lc='no' 18216 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 18217 hardcode_libdir_separator=: 18218 inherit_rpath=yes 18219 link_all_deplibs=yes 18220 ;; 18221 18222 linux*) 18223 case $cc_basename in 18224 tcc*) 18225 # Fabrice Bellard et al's Tiny C Compiler 18226 ld_shlibs=yes 18227 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18228 ;; 18229 esac 18230 ;; 18231 18232 netbsd*) 18233 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18234 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18235 else 18236 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18237 fi 18238 hardcode_libdir_flag_spec='-R$libdir' 18239 hardcode_direct=yes 18240 hardcode_shlibpath_var=no 18241 ;; 18242 18243 newsos6) 18244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18245 hardcode_direct=yes 18246 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 18247 hardcode_libdir_separator=: 18248 hardcode_shlibpath_var=no 18249 ;; 18250 18251 *nto* | *qnx*) 18252 ;; 18253 18254 openbsd* | bitrig*) 18255 if test -f /usr/libexec/ld.so; then 18256 hardcode_direct=yes 18257 hardcode_shlibpath_var=no 18258 hardcode_direct_absolute=yes 18259 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18260 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18261 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 18262 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 18263 export_dynamic_flag_spec='$wl-E' 18264 else 18265 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18266 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 18267 fi 18268 else 18269 ld_shlibs=no 18270 fi 18271 ;; 18272 18273 os2*) 18274 hardcode_libdir_flag_spec='-L$libdir' 18275 hardcode_minus_L=yes 18276 allow_undefined_flag=unsupported 18277 shrext_cmds=.dll 18278 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 18279 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 18280 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 18281 $ECHO EXPORTS >> $output_objdir/$libname.def~ 18282 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 18283 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 18284 emximp -o $lib $output_objdir/$libname.def' 18285 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 18286 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 18287 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 18288 $ECHO EXPORTS >> $output_objdir/$libname.def~ 18289 prefix_cmds="$SED"~ 18290 if test EXPORTS = "`$SED 1q $export_symbols`"; then 18291 prefix_cmds="$prefix_cmds -e 1d"; 18292 fi~ 18293 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 18294 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 18295 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 18296 emximp -o $lib $output_objdir/$libname.def' 18297 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 18298 enable_shared_with_static_runtimes=yes 18299 ;; 18300 18301 osf3*) 18302 if test yes = "$GCC"; then 18303 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 18304 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 18305 else 18306 allow_undefined_flag=' -expect_unresolved \*' 18307 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 18308 fi 18309 archive_cmds_need_lc='no' 18310 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 18311 hardcode_libdir_separator=: 18312 ;; 18313 18314 osf4* | osf5*) # as osf3* with the addition of -msym flag 18315 if test yes = "$GCC"; then 18316 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 18317 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 18318 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 18319 else 18320 allow_undefined_flag=' -expect_unresolved \*' 18321 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 18322 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~ 18323 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 18324 18325 # Both c and cxx compiler support -rpath directly 18326 hardcode_libdir_flag_spec='-rpath $libdir' 18327 fi 18328 archive_cmds_need_lc='no' 18329 hardcode_libdir_separator=: 18330 ;; 18331 18332 solaris*) 18333 no_undefined_flag=' -z defs' 18334 if test yes = "$GCC"; then 18335 wlarc='$wl' 18336 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 18337 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18338 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 18339 else 18340 case `$CC -V 2>&1` in 18341 *"Compilers 5.0"*) 18342 wlarc='' 18343 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 18344 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18345 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 18346 ;; 18347 *) 18348 wlarc='$wl' 18349 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 18350 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18351 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 18352 ;; 18353 esac 18354 fi 18355 hardcode_libdir_flag_spec='-R$libdir' 18356 hardcode_shlibpath_var=no 18357 case $host_os in 18358 solaris2.[0-5] | solaris2.[0-5].*) ;; 18359 *) 18360 # The compiler driver will combine and reorder linker options, 18361 # but understands '-z linker_flag'. GCC discards it without '$wl', 18362 # but is careful enough not to reorder. 18363 # Supported since Solaris 2.6 (maybe 2.5.1?) 18364 if test yes = "$GCC"; then 18365 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 18366 else 18367 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 18368 fi 18369 ;; 18370 esac 18371 link_all_deplibs=yes 18372 ;; 18373 18374 sunos4*) 18375 if test sequent = "$host_vendor"; then 18376 # Use $CC to link under sequent, because it throws in some extra .o 18377 # files that make .init and .fini sections work. 18378 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18379 else 18380 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18381 fi 18382 hardcode_libdir_flag_spec='-L$libdir' 18383 hardcode_direct=yes 18384 hardcode_minus_L=yes 18385 hardcode_shlibpath_var=no 18386 ;; 18387 18388 sysv4) 18389 case $host_vendor in 18390 sni) 18391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18392 hardcode_direct=yes # is this really true??? 18393 ;; 18394 siemens) 18395 ## LD is ld it makes a PLAMLIB 18396 ## CC just makes a GrossModule. 18397 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18398 reload_cmds='$CC -r -o $output$reload_objs' 18399 hardcode_direct=no 18400 ;; 18401 motorola) 18402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18403 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 18404 ;; 18405 esac 18406 runpath_var='LD_RUN_PATH' 18407 hardcode_shlibpath_var=no 18408 ;; 18409 18410 sysv4.3*) 18411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18412 hardcode_shlibpath_var=no 18413 export_dynamic_flag_spec='-Bexport' 18414 ;; 18415 18416 sysv4*MP*) 18417 if test -d /usr/nec; then 18418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18419 hardcode_shlibpath_var=no 18420 runpath_var=LD_RUN_PATH 18421 hardcode_runpath_var=yes 18422 ld_shlibs=yes 18423 fi 18424 ;; 18425 18426 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18427 no_undefined_flag='$wl-z,text' 18428 archive_cmds_need_lc=no 18429 hardcode_shlibpath_var=no 18430 runpath_var='LD_RUN_PATH' 18431 18432 if test yes = "$GCC"; then 18433 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18434 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18435 else 18436 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18437 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18438 fi 18439 ;; 18440 18441 sysv5* | sco3.2v5* | sco5v6*) 18442 # Note: We CANNOT use -z defs as we might desire, because we do not 18443 # link with -lc, and that would cause any symbols used from libc to 18444 # always be unresolved, which means just about no library would 18445 # ever link correctly. If we're not using GNU ld we use -z text 18446 # though, which does catch some bad symbols but isn't as heavy-handed 18447 # as -z defs. 18448 no_undefined_flag='$wl-z,text' 18449 allow_undefined_flag='$wl-z,nodefs' 18450 archive_cmds_need_lc=no 18451 hardcode_shlibpath_var=no 18452 hardcode_libdir_flag_spec='$wl-R,$libdir' 18453 hardcode_libdir_separator=':' 18454 link_all_deplibs=yes 18455 export_dynamic_flag_spec='$wl-Bexport' 18456 runpath_var='LD_RUN_PATH' 18457 18458 if test yes = "$GCC"; then 18459 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18460 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18461 else 18462 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18463 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18464 fi 18465 ;; 18466 18467 uts4*) 18468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18469 hardcode_libdir_flag_spec='-L$libdir' 18470 hardcode_shlibpath_var=no 18471 ;; 18472 18473 *) 18474 ld_shlibs=no 18475 ;; 18476 esac 18477 18478 if test sni = "$host_vendor"; then 18479 case $host in 18480 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 18481 export_dynamic_flag_spec='$wl-Blargedynsym' 18482 ;; 18483 esac 18484 fi 18485 fi 18486 18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 18488 $as_echo "$ld_shlibs" >&6; } 18489 test no = "$ld_shlibs" && can_build_shared=no 18490 18491 with_gnu_ld=$with_gnu_ld 18492 18493 18494 18495 18496 18497 18498 18499 18500 18501 18502 18503 18504 18505 18506 18507 # 18508 # Do we need to explicitly link libc? 18509 # 18510 case "x$archive_cmds_need_lc" in 18511 x|xyes) 18512 # Assume -lc should be added 18513 archive_cmds_need_lc=yes 18514 18515 if test yes,yes = "$GCC,$enable_shared"; then 18516 case $archive_cmds in 18517 *'~'*) 18518 # FIXME: we may have to deal with multi-command sequences. 18519 ;; 18520 '$CC '*) 18521 # Test whether the compiler implicitly links with -lc since on some 18522 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18523 # to ld, don't add -lc before -lgcc. 18524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 18525 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18526 if ${lt_cv_archive_cmds_need_lc+:} false; then : 18527 $as_echo_n "(cached) " >&6 18528 else 18529 $RM conftest* 18530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18531 18532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18533 (eval $ac_compile) 2>&5 18534 ac_status=$? 18535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18536 test $ac_status = 0; } 2>conftest.err; then 18537 soname=conftest 18538 lib=conftest 18539 libobjs=conftest.$ac_objext 18540 deplibs= 18541 wl=$lt_prog_compiler_wl 18542 pic_flag=$lt_prog_compiler_pic 18543 compiler_flags=-v 18544 linker_flags=-v 18545 verstring= 18546 output_objdir=. 18547 libname=conftest 18548 lt_save_allow_undefined_flag=$allow_undefined_flag 18549 allow_undefined_flag= 18550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 18551 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 18552 ac_status=$? 18553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18554 test $ac_status = 0; } 18555 then 18556 lt_cv_archive_cmds_need_lc=no 18557 else 18558 lt_cv_archive_cmds_need_lc=yes 18559 fi 18560 allow_undefined_flag=$lt_save_allow_undefined_flag 18561 else 18562 cat conftest.err 1>&5 18563 fi 18564 $RM conftest* 18565 18566 fi 18567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 18568 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 18569 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 18570 ;; 18571 esac 18572 fi 18573 ;; 18574 esac 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 18624 18625 18626 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 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 18693 18694 18695 18696 18697 18698 18699 18700 18701 18702 18703 18704 18705 18706 18707 18708 18709 18710 18711 18712 18713 18714 18715 18716 18717 18718 18719 18720 18721 18722 18723 18724 18725 18726 18727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 18728 $as_echo_n "checking dynamic linker characteristics... " >&6; } 18729 18730 if test yes = "$GCC"; then 18731 case $host_os in 18732 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 18733 *) lt_awk_arg='/^libraries:/' ;; 18734 esac 18735 case $host_os in 18736 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 18737 *) lt_sed_strip_eq='s|=/|/|g' ;; 18738 esac 18739 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 18740 case $lt_search_path_spec in 18741 *\;*) 18742 # if the path contains ";" then we assume it to be the separator 18743 # otherwise default to the standard path separator (i.e. ":") - it is 18744 # assumed that no part of a normal pathname contains ";" but that should 18745 # okay in the real world where ";" in dirpaths is itself problematic. 18746 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 18747 ;; 18748 *) 18749 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 18750 ;; 18751 esac 18752 # Ok, now we have the path, separated by spaces, we can step through it 18753 # and add multilib dir if necessary... 18754 lt_tmp_lt_search_path_spec= 18755 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 18756 # ...but if some path component already ends with the multilib dir we assume 18757 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 18758 case "$lt_multi_os_dir; $lt_search_path_spec " in 18759 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 18760 lt_multi_os_dir= 18761 ;; 18762 esac 18763 for lt_sys_path in $lt_search_path_spec; do 18764 if test -d "$lt_sys_path$lt_multi_os_dir"; then 18765 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 18766 elif test -n "$lt_multi_os_dir"; then 18767 test -d "$lt_sys_path" && \ 18768 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 18769 fi 18770 done 18771 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 18772 BEGIN {RS = " "; FS = "/|\n";} { 18773 lt_foo = ""; 18774 lt_count = 0; 18775 for (lt_i = NF; lt_i > 0; lt_i--) { 18776 if ($lt_i != "" && $lt_i != ".") { 18777 if ($lt_i == "..") { 18778 lt_count++; 18779 } else { 18780 if (lt_count == 0) { 18781 lt_foo = "/" $lt_i lt_foo; 18782 } else { 18783 lt_count--; 18784 } 18785 } 18786 } 18787 } 18788 if (lt_foo != "") { lt_freq[lt_foo]++; } 18789 if (lt_freq[lt_foo] == 1) { print lt_foo; } 18790 }'` 18791 # AWK program above erroneously prepends '/' to C:/dos/paths 18792 # for these hosts. 18793 case $host_os in 18794 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 18795 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 18796 esac 18797 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 18798 else 18799 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18800 fi 18801 library_names_spec= 18802 libname_spec='lib$name' 18803 soname_spec= 18804 shrext_cmds=.so 18805 postinstall_cmds= 18806 postuninstall_cmds= 18807 finish_cmds= 18808 finish_eval= 18809 shlibpath_var= 18810 shlibpath_overrides_runpath=unknown 18811 version_type=none 18812 dynamic_linker="$host_os ld.so" 18813 sys_lib_dlsearch_path_spec="/lib /usr/lib" 18814 need_lib_prefix=unknown 18815 hardcode_into_libs=no 18816 18817 # when you set need_version to no, make sure it does not cause -set_version 18818 # flags to be left without arguments 18819 need_version=unknown 18820 18821 18822 18823 case $host_os in 18824 aix3*) 18825 version_type=linux # correct to gnu/linux during the next big refactor 18826 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 18827 shlibpath_var=LIBPATH 18828 18829 # AIX 3 has no versioning support, so we append a major version to the name. 18830 soname_spec='$libname$release$shared_ext$major' 18831 ;; 18832 18833 aix[4-9]*) 18834 version_type=linux # correct to gnu/linux during the next big refactor 18835 need_lib_prefix=no 18836 need_version=no 18837 hardcode_into_libs=yes 18838 if test ia64 = "$host_cpu"; then 18839 # AIX 5 supports IA64 18840 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 18841 shlibpath_var=LD_LIBRARY_PATH 18842 else 18843 # With GCC up to 2.95.x, collect2 would create an import file 18844 # for dependence libraries. The import file would start with 18845 # the line '#! .'. This would cause the generated library to 18846 # depend on '.', always an invalid library. This was fixed in 18847 # development snapshots of GCC prior to 3.0. 18848 case $host_os in 18849 aix4 | aix4.[01] | aix4.[01].*) 18850 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18851 echo ' yes ' 18852 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 18853 : 18854 else 18855 can_build_shared=no 18856 fi 18857 ;; 18858 esac 18859 # Using Import Files as archive members, it is possible to support 18860 # filename-based versioning of shared library archives on AIX. While 18861 # this would work for both with and without runtime linking, it will 18862 # prevent static linking of such archives. So we do filename-based 18863 # shared library versioning with .so extension only, which is used 18864 # when both runtime linking and shared linking is enabled. 18865 # Unfortunately, runtime linking may impact performance, so we do 18866 # not want this to be the default eventually. Also, we use the 18867 # versioned .so libs for executables only if there is the -brtl 18868 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 18869 # To allow for filename-based versioning support, we need to create 18870 # libNAME.so.V as an archive file, containing: 18871 # *) an Import File, referring to the versioned filename of the 18872 # archive as well as the shared archive member, telling the 18873 # bitwidth (32 or 64) of that shared object, and providing the 18874 # list of exported symbols of that shared object, eventually 18875 # decorated with the 'weak' keyword 18876 # *) the shared object with the F_LOADONLY flag set, to really avoid 18877 # it being seen by the linker. 18878 # At run time we better use the real file rather than another symlink, 18879 # but for link time we create the symlink libNAME.so -> libNAME.so.V 18880 18881 case $with_aix_soname,$aix_use_runtimelinking in 18882 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 18883 # soname into executable. Probably we can add versioning support to 18884 # collect2, so additional links can be useful in future. 18885 aix,yes) # traditional libtool 18886 dynamic_linker='AIX unversionable lib.so' 18887 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18888 # instead of lib<name>.a to let people know that these are not 18889 # typical AIX shared libraries. 18890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18891 ;; 18892 aix,no) # traditional AIX only 18893 dynamic_linker='AIX lib.a(lib.so.V)' 18894 # We preserve .a as extension for shared libraries through AIX4.2 18895 # and later when we are not doing run time linking. 18896 library_names_spec='$libname$release.a $libname.a' 18897 soname_spec='$libname$release$shared_ext$major' 18898 ;; 18899 svr4,*) # full svr4 only 18900 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 18901 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18902 # We do not specify a path in Import Files, so LIBPATH fires. 18903 shlibpath_overrides_runpath=yes 18904 ;; 18905 *,yes) # both, prefer svr4 18906 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 18907 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18908 # unpreferred sharedlib libNAME.a needs extra handling 18909 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 18910 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 18911 # We do not specify a path in Import Files, so LIBPATH fires. 18912 shlibpath_overrides_runpath=yes 18913 ;; 18914 *,no) # both, prefer aix 18915 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 18916 library_names_spec='$libname$release.a $libname.a' 18917 soname_spec='$libname$release$shared_ext$major' 18918 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 18919 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 18920 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 18921 ;; 18922 esac 18923 shlibpath_var=LIBPATH 18924 fi 18925 ;; 18926 18927 amigaos*) 18928 case $host_cpu in 18929 powerpc) 18930 # Since July 2007 AmigaOS4 officially supports .so libraries. 18931 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18933 ;; 18934 m68k) 18935 library_names_spec='$libname.ixlibrary $libname.a' 18936 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18937 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 18938 ;; 18939 esac 18940 ;; 18941 18942 beos*) 18943 library_names_spec='$libname$shared_ext' 18944 dynamic_linker="$host_os ld.so" 18945 shlibpath_var=LIBRARY_PATH 18946 ;; 18947 18948 bsdi[45]*) 18949 version_type=linux # correct to gnu/linux during the next big refactor 18950 need_version=no 18951 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18952 soname_spec='$libname$release$shared_ext$major' 18953 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18954 shlibpath_var=LD_LIBRARY_PATH 18955 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18956 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18957 # the default ld.so.conf also contains /usr/contrib/lib and 18958 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18959 # libtool to hard-code these into programs 18960 ;; 18961 18962 cygwin* | mingw* | pw32* | cegcc*) 18963 version_type=windows 18964 shrext_cmds=.dll 18965 need_version=no 18966 need_lib_prefix=no 18967 18968 case $GCC,$cc_basename in 18969 yes,*) 18970 # gcc 18971 library_names_spec='$libname.dll.a' 18972 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18973 postinstall_cmds='base_file=`basename \$file`~ 18974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18975 dldir=$destdir/`dirname \$dlpath`~ 18976 test -d \$dldir || mkdir -p \$dldir~ 18977 $install_prog $dir/$dlname \$dldir/$dlname~ 18978 chmod a+x \$dldir/$dlname~ 18979 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18980 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18981 fi' 18982 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18983 dlpath=$dir/\$dldll~ 18984 $RM \$dlpath' 18985 shlibpath_overrides_runpath=yes 18986 18987 case $host_os in 18988 cygwin*) 18989 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18990 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18991 18992 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 18993 ;; 18994 mingw* | cegcc*) 18995 # MinGW DLLs use traditional 'lib' prefix 18996 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18997 ;; 18998 pw32*) 18999 # pw32 DLLs use 'pw' prefix rather than 'lib' 19000 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19001 ;; 19002 esac 19003 dynamic_linker='Win32 ld.exe' 19004 ;; 19005 19006 *,cl*) 19007 # Native MSVC 19008 libname_spec='$name' 19009 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19010 library_names_spec='$libname.dll.lib' 19011 19012 case $build_os in 19013 mingw*) 19014 sys_lib_search_path_spec= 19015 lt_save_ifs=$IFS 19016 IFS=';' 19017 for lt_path in $LIB 19018 do 19019 IFS=$lt_save_ifs 19020 # Let DOS variable expansion print the short 8.3 style file name. 19021 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 19022 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 19023 done 19024 IFS=$lt_save_ifs 19025 # Convert to MSYS style. 19026 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 19027 ;; 19028 cygwin*) 19029 # Convert to unix form, then to dos form, then back to unix form 19030 # but this time dos style (no spaces!) so that the unix form looks 19031 # like /cygdrive/c/PROGRA~1:/cygdr... 19032 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 19033 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 19034 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19035 ;; 19036 *) 19037 sys_lib_search_path_spec=$LIB 19038 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 19039 # It is most probably a Windows format PATH. 19040 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19041 else 19042 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19043 fi 19044 # FIXME: find the short name or the path components, as spaces are 19045 # common. (e.g. "Program Files" -> "PROGRA~1") 19046 ;; 19047 esac 19048 19049 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19050 postinstall_cmds='base_file=`basename \$file`~ 19051 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 19052 dldir=$destdir/`dirname \$dlpath`~ 19053 test -d \$dldir || mkdir -p \$dldir~ 19054 $install_prog $dir/$dlname \$dldir/$dlname' 19055 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19056 dlpath=$dir/\$dldll~ 19057 $RM \$dlpath' 19058 shlibpath_overrides_runpath=yes 19059 dynamic_linker='Win32 link.exe' 19060 ;; 19061 19062 *) 19063 # Assume MSVC wrapper 19064 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 19065 dynamic_linker='Win32 ld.exe' 19066 ;; 19067 esac 19068 # FIXME: first we should search . and the directory the executable is in 19069 shlibpath_var=PATH 19070 ;; 19071 19072 darwin* | rhapsody*) 19073 dynamic_linker="$host_os dyld" 19074 version_type=darwin 19075 need_lib_prefix=no 19076 need_version=no 19077 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 19078 soname_spec='$libname$release$major$shared_ext' 19079 shlibpath_overrides_runpath=yes 19080 shlibpath_var=DYLD_LIBRARY_PATH 19081 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 19082 19083 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 19084 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 19085 ;; 19086 19087 dgux*) 19088 version_type=linux # correct to gnu/linux during the next big refactor 19089 need_lib_prefix=no 19090 need_version=no 19091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19092 soname_spec='$libname$release$shared_ext$major' 19093 shlibpath_var=LD_LIBRARY_PATH 19094 ;; 19095 19096 freebsd* | dragonfly*) 19097 # DragonFly does not have aout. When/if they implement a new 19098 # versioning mechanism, adjust this. 19099 if test -x /usr/bin/objformat; then 19100 objformat=`/usr/bin/objformat` 19101 else 19102 case $host_os in 19103 freebsd[23].*) objformat=aout ;; 19104 *) objformat=elf ;; 19105 esac 19106 fi 19107 version_type=freebsd-$objformat 19108 case $version_type in 19109 freebsd-elf*) 19110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19111 soname_spec='$libname$release$shared_ext$major' 19112 need_version=no 19113 need_lib_prefix=no 19114 ;; 19115 freebsd-*) 19116 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 19117 need_version=yes 19118 ;; 19119 esac 19120 shlibpath_var=LD_LIBRARY_PATH 19121 case $host_os in 19122 freebsd2.*) 19123 shlibpath_overrides_runpath=yes 19124 ;; 19125 freebsd3.[01]* | freebsdelf3.[01]*) 19126 shlibpath_overrides_runpath=yes 19127 hardcode_into_libs=yes 19128 ;; 19129 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 19130 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 19131 shlibpath_overrides_runpath=no 19132 hardcode_into_libs=yes 19133 ;; 19134 *) # from 4.6 on, and DragonFly 19135 shlibpath_overrides_runpath=yes 19136 hardcode_into_libs=yes 19137 ;; 19138 esac 19139 ;; 19140 19141 haiku*) 19142 version_type=linux # correct to gnu/linux during the next big refactor 19143 need_lib_prefix=no 19144 need_version=no 19145 dynamic_linker="$host_os runtime_loader" 19146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19147 soname_spec='$libname$release$shared_ext$major' 19148 shlibpath_var=LIBRARY_PATH 19149 shlibpath_overrides_runpath=no 19150 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 19151 hardcode_into_libs=yes 19152 ;; 19153 19154 hpux9* | hpux10* | hpux11*) 19155 # Give a soname corresponding to the major version so that dld.sl refuses to 19156 # link against other versions. 19157 version_type=sunos 19158 need_lib_prefix=no 19159 need_version=no 19160 case $host_cpu in 19161 ia64*) 19162 shrext_cmds='.so' 19163 hardcode_into_libs=yes 19164 dynamic_linker="$host_os dld.so" 19165 shlibpath_var=LD_LIBRARY_PATH 19166 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19167 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19168 soname_spec='$libname$release$shared_ext$major' 19169 if test 32 = "$HPUX_IA64_MODE"; then 19170 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 19171 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 19172 else 19173 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 19174 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 19175 fi 19176 ;; 19177 hppa*64*) 19178 shrext_cmds='.sl' 19179 hardcode_into_libs=yes 19180 dynamic_linker="$host_os dld.sl" 19181 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 19182 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19184 soname_spec='$libname$release$shared_ext$major' 19185 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 19186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19187 ;; 19188 *) 19189 shrext_cmds='.sl' 19190 dynamic_linker="$host_os dld.sl" 19191 shlibpath_var=SHLIB_PATH 19192 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 19193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19194 soname_spec='$libname$release$shared_ext$major' 19195 ;; 19196 esac 19197 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 19198 postinstall_cmds='chmod 555 $lib' 19199 # or fails outright, so override atomically: 19200 install_override_mode=555 19201 ;; 19202 19203 interix[3-9]*) 19204 version_type=linux # correct to gnu/linux during the next big refactor 19205 need_lib_prefix=no 19206 need_version=no 19207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19208 soname_spec='$libname$release$shared_ext$major' 19209 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 19210 shlibpath_var=LD_LIBRARY_PATH 19211 shlibpath_overrides_runpath=no 19212 hardcode_into_libs=yes 19213 ;; 19214 19215 irix5* | irix6* | nonstopux*) 19216 case $host_os in 19217 nonstopux*) version_type=nonstopux ;; 19218 *) 19219 if test yes = "$lt_cv_prog_gnu_ld"; then 19220 version_type=linux # correct to gnu/linux during the next big refactor 19221 else 19222 version_type=irix 19223 fi ;; 19224 esac 19225 need_lib_prefix=no 19226 need_version=no 19227 soname_spec='$libname$release$shared_ext$major' 19228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 19229 case $host_os in 19230 irix5* | nonstopux*) 19231 libsuff= shlibsuff= 19232 ;; 19233 *) 19234 case $LD in # libtool.m4 will add one of these switches to LD 19235 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 19236 libsuff= shlibsuff= libmagic=32-bit;; 19237 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 19238 libsuff=32 shlibsuff=N32 libmagic=N32;; 19239 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 19240 libsuff=64 shlibsuff=64 libmagic=64-bit;; 19241 *) libsuff= shlibsuff= libmagic=never-match;; 19242 esac 19243 ;; 19244 esac 19245 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 19246 shlibpath_overrides_runpath=no 19247 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 19248 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 19249 hardcode_into_libs=yes 19250 ;; 19251 19252 # No shared lib support for Linux oldld, aout, or coff. 19253 linux*oldld* | linux*aout* | linux*coff*) 19254 dynamic_linker=no 19255 ;; 19256 19257 linux*android*) 19258 version_type=none # Android doesn't support versioned libraries. 19259 need_lib_prefix=no 19260 need_version=no 19261 library_names_spec='$libname$release$shared_ext' 19262 soname_spec='$libname$release$shared_ext' 19263 finish_cmds= 19264 shlibpath_var=LD_LIBRARY_PATH 19265 shlibpath_overrides_runpath=yes 19266 19267 # This implies no fast_install, which is unacceptable. 19268 # Some rework will be needed to allow for fast_install 19269 # before this can be enabled. 19270 hardcode_into_libs=yes 19271 19272 dynamic_linker='Android linker' 19273 # Don't embed -rpath directories since the linker doesn't support them. 19274 hardcode_libdir_flag_spec='-L$libdir' 19275 ;; 19276 19277 # This must be glibc/ELF. 19278 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 19279 version_type=linux # correct to gnu/linux during the next big refactor 19280 need_lib_prefix=no 19281 need_version=no 19282 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19283 soname_spec='$libname$release$shared_ext$major' 19284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 19285 shlibpath_var=LD_LIBRARY_PATH 19286 shlibpath_overrides_runpath=no 19287 19288 # Some binutils ld are patched to set DT_RUNPATH 19289 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 19290 $as_echo_n "(cached) " >&6 19291 else 19292 lt_cv_shlibpath_overrides_runpath=no 19293 save_LDFLAGS=$LDFLAGS 19294 save_libdir=$libdir 19295 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 19296 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 19297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19298 /* end confdefs.h. */ 19299 19300 int 19301 main () 19302 { 19303 19304 ; 19305 return 0; 19306 } 19307 _ACEOF 19308 if ac_fn_c_try_link "$LINENO"; then : 19309 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 19310 lt_cv_shlibpath_overrides_runpath=yes 19311 fi 19312 fi 19313 rm -f core conftest.err conftest.$ac_objext \ 19314 conftest$ac_exeext conftest.$ac_ext 19315 LDFLAGS=$save_LDFLAGS 19316 libdir=$save_libdir 19317 19318 fi 19319 19320 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 19321 19322 # This implies no fast_install, which is unacceptable. 19323 # Some rework will be needed to allow for fast_install 19324 # before this can be enabled. 19325 hardcode_into_libs=yes 19326 19327 # Add ABI-specific directories to the system library path. 19328 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 19329 19330 # Ideally, we could use ldconfig to report *all* directores which are 19331 # searched for libraries, however this is still not possible. Aside from not 19332 # being certain /sbin/ldconfig is available, command 19333 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 19334 # even though it is searched at run-time. Try to do the best guess by 19335 # appending ld.so.conf contents (and includes) to the search path. 19336 if test -f /etc/ld.so.conf; then 19337 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;s/"//g;/^$/d' | tr '\n' ' '` 19338 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 19339 fi 19340 19341 # We used to test for /lib/ld.so.1 and disable shared libraries on 19342 # powerpc, because MkLinux only supported shared libraries with the 19343 # GNU dynamic linker. Since this was broken with cross compilers, 19344 # most powerpc-linux boxes support dynamic linking these days and 19345 # people can always --disable-shared, the test was removed, and we 19346 # assume the GNU/Linux dynamic linker is in use. 19347 dynamic_linker='GNU/Linux ld.so' 19348 ;; 19349 19350 netbsd*) 19351 version_type=sunos 19352 need_lib_prefix=no 19353 need_version=no 19354 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19355 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 19356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19357 dynamic_linker='NetBSD (a.out) ld.so' 19358 else 19359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19360 soname_spec='$libname$release$shared_ext$major' 19361 dynamic_linker='NetBSD ld.elf_so' 19362 fi 19363 shlibpath_var=LD_LIBRARY_PATH 19364 shlibpath_overrides_runpath=yes 19365 hardcode_into_libs=yes 19366 ;; 19367 19368 newsos6) 19369 version_type=linux # correct to gnu/linux during the next big refactor 19370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19371 shlibpath_var=LD_LIBRARY_PATH 19372 shlibpath_overrides_runpath=yes 19373 ;; 19374 19375 *nto* | *qnx*) 19376 version_type=qnx 19377 need_lib_prefix=no 19378 need_version=no 19379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19380 soname_spec='$libname$release$shared_ext$major' 19381 shlibpath_var=LD_LIBRARY_PATH 19382 shlibpath_overrides_runpath=no 19383 hardcode_into_libs=yes 19384 dynamic_linker='ldqnx.so' 19385 ;; 19386 19387 openbsd* | bitrig*) 19388 version_type=sunos 19389 sys_lib_dlsearch_path_spec=/usr/lib 19390 need_lib_prefix=no 19391 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 19392 need_version=no 19393 else 19394 need_version=yes 19395 fi 19396 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 19397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19398 shlibpath_var=LD_LIBRARY_PATH 19399 shlibpath_overrides_runpath=yes 19400 ;; 19401 19402 os2*) 19403 libname_spec='$name' 19404 version_type=windows 19405 shrext_cmds=.dll 19406 need_version=no 19407 need_lib_prefix=no 19408 # OS/2 can only load a DLL with a base name of 8 characters or less. 19409 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 19410 v=$($ECHO $release$versuffix | tr -d .-); 19411 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 19412 $ECHO $n$v`$shared_ext' 19413 library_names_spec='${libname}_dll.$libext' 19414 dynamic_linker='OS/2 ld.exe' 19415 shlibpath_var=BEGINLIBPATH 19416 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 19417 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19418 postinstall_cmds='base_file=`basename \$file`~ 19419 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 19420 dldir=$destdir/`dirname \$dlpath`~ 19421 test -d \$dldir || mkdir -p \$dldir~ 19422 $install_prog $dir/$dlname \$dldir/$dlname~ 19423 chmod a+x \$dldir/$dlname~ 19424 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 19425 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 19426 fi' 19427 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 19428 dlpath=$dir/\$dldll~ 19429 $RM \$dlpath' 19430 ;; 19431 19432 osf3* | osf4* | osf5*) 19433 version_type=osf 19434 need_lib_prefix=no 19435 need_version=no 19436 soname_spec='$libname$release$shared_ext$major' 19437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19438 shlibpath_var=LD_LIBRARY_PATH 19439 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19441 ;; 19442 19443 rdos*) 19444 dynamic_linker=no 19445 ;; 19446 19447 solaris*) 19448 version_type=linux # correct to gnu/linux during the next big refactor 19449 need_lib_prefix=no 19450 need_version=no 19451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19452 soname_spec='$libname$release$shared_ext$major' 19453 shlibpath_var=LD_LIBRARY_PATH 19454 shlibpath_overrides_runpath=yes 19455 hardcode_into_libs=yes 19456 # ldd complains unless libraries are executable 19457 postinstall_cmds='chmod +x $lib' 19458 ;; 19459 19460 sunos4*) 19461 version_type=sunos 19462 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 19463 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19464 shlibpath_var=LD_LIBRARY_PATH 19465 shlibpath_overrides_runpath=yes 19466 if test yes = "$with_gnu_ld"; then 19467 need_lib_prefix=no 19468 fi 19469 need_version=yes 19470 ;; 19471 19472 sysv4 | sysv4.3*) 19473 version_type=linux # correct to gnu/linux during the next big refactor 19474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19475 soname_spec='$libname$release$shared_ext$major' 19476 shlibpath_var=LD_LIBRARY_PATH 19477 case $host_vendor in 19478 sni) 19479 shlibpath_overrides_runpath=no 19480 need_lib_prefix=no 19481 runpath_var=LD_RUN_PATH 19482 ;; 19483 siemens) 19484 need_lib_prefix=no 19485 ;; 19486 motorola) 19487 need_lib_prefix=no 19488 need_version=no 19489 shlibpath_overrides_runpath=no 19490 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19491 ;; 19492 esac 19493 ;; 19494 19495 sysv4*MP*) 19496 if test -d /usr/nec; then 19497 version_type=linux # correct to gnu/linux during the next big refactor 19498 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 19499 soname_spec='$libname$shared_ext.$major' 19500 shlibpath_var=LD_LIBRARY_PATH 19501 fi 19502 ;; 19503 19504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19505 version_type=sco 19506 need_lib_prefix=no 19507 need_version=no 19508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 19509 soname_spec='$libname$release$shared_ext$major' 19510 shlibpath_var=LD_LIBRARY_PATH 19511 shlibpath_overrides_runpath=yes 19512 hardcode_into_libs=yes 19513 if test yes = "$with_gnu_ld"; then 19514 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19515 else 19516 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19517 case $host_os in 19518 sco3.2v5*) 19519 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19520 ;; 19521 esac 19522 fi 19523 sys_lib_dlsearch_path_spec='/usr/lib' 19524 ;; 19525 19526 tpf*) 19527 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 19528 version_type=linux # correct to gnu/linux during the next big refactor 19529 need_lib_prefix=no 19530 need_version=no 19531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19532 shlibpath_var=LD_LIBRARY_PATH 19533 shlibpath_overrides_runpath=no 19534 hardcode_into_libs=yes 19535 ;; 19536 19537 uts4*) 19538 version_type=linux # correct to gnu/linux during the next big refactor 19539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19540 soname_spec='$libname$release$shared_ext$major' 19541 shlibpath_var=LD_LIBRARY_PATH 19542 ;; 19543 19544 *) 19545 dynamic_linker=no 19546 ;; 19547 esac 19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 19549 $as_echo "$dynamic_linker" >&6; } 19550 test no = "$dynamic_linker" && can_build_shared=no 19551 19552 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19553 if test yes = "$GCC"; then 19554 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19555 fi 19556 19557 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 19558 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 19559 fi 19560 19561 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 19562 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 19563 fi 19564 19565 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 19566 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 19567 19568 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 19569 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 19570 19571 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 19572 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 19573 19574 19575 19576 19577 19578 19579 19580 19581 19582 19583 19584 19585 19586 19587 19588 19589 19590 19591 19592 19593 19594 19595 19596 19597 19598 19599 19600 19601 19602 19603 19604 19605 19606 19607 19608 19609 19610 19611 19612 19613 19614 19615 19616 19617 19618 19619 19620 19621 19622 19623 19624 19625 19626 19627 19628 19629 19630 19631 19632 19633 19634 19635 19636 19637 19638 19639 19640 19641 19642 19643 19644 19645 19646 19647 19648 19649 19650 19651 19652 19653 19654 19655 19656 19657 19658 19659 19660 19661 19662 19663 19664 19665 19666 19667 19668 19669 19670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 19671 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 19672 hardcode_action= 19673 if test -n "$hardcode_libdir_flag_spec" || 19674 test -n "$runpath_var" || 19675 test yes = "$hardcode_automatic"; then 19676 19677 # We can hardcode non-existent directories. 19678 if test no != "$hardcode_direct" && 19679 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19680 # have to relink, otherwise we might link with an installed library 19681 # when we should be linking with a yet-to-be-installed one 19682 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 19683 test no != "$hardcode_minus_L"; then 19684 # Linking always hardcodes the temporary library directory. 19685 hardcode_action=relink 19686 else 19687 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19688 hardcode_action=immediate 19689 fi 19690 else 19691 # We cannot hardcode anything, or else we can only hardcode existing 19692 # directories. 19693 hardcode_action=unsupported 19694 fi 19695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 19696 $as_echo "$hardcode_action" >&6; } 19697 19698 if test relink = "$hardcode_action" || 19699 test yes = "$inherit_rpath"; then 19700 # Fast installation is not supported 19701 enable_fast_install=no 19702 elif test yes = "$shlibpath_overrides_runpath" || 19703 test no = "$enable_shared"; then 19704 # Fast installation is not necessary 19705 enable_fast_install=needless 19706 fi 19707 19708 19709 19710 19711 19712 19713 if test yes != "$enable_dlopen"; then 19714 enable_dlopen=unknown 19715 enable_dlopen_self=unknown 19716 enable_dlopen_self_static=unknown 19717 else 19718 lt_cv_dlopen=no 19719 lt_cv_dlopen_libs= 19720 19721 case $host_os in 19722 beos*) 19723 lt_cv_dlopen=load_add_on 19724 lt_cv_dlopen_libs= 19725 lt_cv_dlopen_self=yes 19726 ;; 19727 19728 mingw* | pw32* | cegcc*) 19729 lt_cv_dlopen=LoadLibrary 19730 lt_cv_dlopen_libs= 19731 ;; 19732 19733 cygwin*) 19734 lt_cv_dlopen=dlopen 19735 lt_cv_dlopen_libs= 19736 ;; 19737 19738 darwin*) 19739 # if libdl is installed we need to link against it 19740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19741 $as_echo_n "checking for dlopen in -ldl... " >&6; } 19742 if ${ac_cv_lib_dl_dlopen+:} false; then : 19743 $as_echo_n "(cached) " >&6 19744 else 19745 ac_check_lib_save_LIBS=$LIBS 19746 LIBS="-ldl $LIBS" 19747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19748 /* end confdefs.h. */ 19749 19750 /* Override any GCC internal prototype to avoid an error. 19751 Use char because int might match the return type of a GCC 19752 builtin and then its argument prototype would still apply. */ 19753 #ifdef __cplusplus 19754 extern "C" 19755 #endif 19756 char dlopen (); 19757 int 19758 main () 19759 { 19760 return dlopen (); 19761 ; 19762 return 0; 19763 } 19764 _ACEOF 19765 if ac_fn_c_try_link "$LINENO"; then : 19766 ac_cv_lib_dl_dlopen=yes 19767 else 19768 ac_cv_lib_dl_dlopen=no 19769 fi 19770 rm -f core conftest.err conftest.$ac_objext \ 19771 conftest$ac_exeext conftest.$ac_ext 19772 LIBS=$ac_check_lib_save_LIBS 19773 fi 19774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19775 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 19776 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 19777 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19778 else 19779 19780 lt_cv_dlopen=dyld 19781 lt_cv_dlopen_libs= 19782 lt_cv_dlopen_self=yes 19783 19784 fi 19785 19786 ;; 19787 19788 tpf*) 19789 # Don't try to run any link tests for TPF. We know it's impossible 19790 # because TPF is a cross-compiler, and we know how we open DSOs. 19791 lt_cv_dlopen=dlopen 19792 lt_cv_dlopen_libs= 19793 lt_cv_dlopen_self=no 19794 ;; 19795 19796 *) 19797 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 19798 if test "x$ac_cv_func_shl_load" = xyes; then : 19799 lt_cv_dlopen=shl_load 19800 else 19801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 19802 $as_echo_n "checking for shl_load in -ldld... " >&6; } 19803 if ${ac_cv_lib_dld_shl_load+:} false; then : 19804 $as_echo_n "(cached) " >&6 19805 else 19806 ac_check_lib_save_LIBS=$LIBS 19807 LIBS="-ldld $LIBS" 19808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19809 /* end confdefs.h. */ 19810 19811 /* Override any GCC internal prototype to avoid an error. 19812 Use char because int might match the return type of a GCC 19813 builtin and then its argument prototype would still apply. */ 19814 #ifdef __cplusplus 19815 extern "C" 19816 #endif 19817 char shl_load (); 19818 int 19819 main () 19820 { 19821 return shl_load (); 19822 ; 19823 return 0; 19824 } 19825 _ACEOF 19826 if ac_fn_c_try_link "$LINENO"; then : 19827 ac_cv_lib_dld_shl_load=yes 19828 else 19829 ac_cv_lib_dld_shl_load=no 19830 fi 19831 rm -f core conftest.err conftest.$ac_objext \ 19832 conftest$ac_exeext conftest.$ac_ext 19833 LIBS=$ac_check_lib_save_LIBS 19834 fi 19835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 19836 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 19837 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 19838 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 19839 else 19840 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 19841 if test "x$ac_cv_func_dlopen" = xyes; then : 19842 lt_cv_dlopen=dlopen 19843 else 19844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19845 $as_echo_n "checking for dlopen in -ldl... " >&6; } 19846 if ${ac_cv_lib_dl_dlopen+:} false; then : 19847 $as_echo_n "(cached) " >&6 19848 else 19849 ac_check_lib_save_LIBS=$LIBS 19850 LIBS="-ldl $LIBS" 19851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19852 /* end confdefs.h. */ 19853 19854 /* Override any GCC internal prototype to avoid an error. 19855 Use char because int might match the return type of a GCC 19856 builtin and then its argument prototype would still apply. */ 19857 #ifdef __cplusplus 19858 extern "C" 19859 #endif 19860 char dlopen (); 19861 int 19862 main () 19863 { 19864 return dlopen (); 19865 ; 19866 return 0; 19867 } 19868 _ACEOF 19869 if ac_fn_c_try_link "$LINENO"; then : 19870 ac_cv_lib_dl_dlopen=yes 19871 else 19872 ac_cv_lib_dl_dlopen=no 19873 fi 19874 rm -f core conftest.err conftest.$ac_objext \ 19875 conftest$ac_exeext conftest.$ac_ext 19876 LIBS=$ac_check_lib_save_LIBS 19877 fi 19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19879 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 19880 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 19881 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19882 else 19883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 19884 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 19885 if ${ac_cv_lib_svld_dlopen+:} false; then : 19886 $as_echo_n "(cached) " >&6 19887 else 19888 ac_check_lib_save_LIBS=$LIBS 19889 LIBS="-lsvld $LIBS" 19890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19891 /* end confdefs.h. */ 19892 19893 /* Override any GCC internal prototype to avoid an error. 19894 Use char because int might match the return type of a GCC 19895 builtin and then its argument prototype would still apply. */ 19896 #ifdef __cplusplus 19897 extern "C" 19898 #endif 19899 char dlopen (); 19900 int 19901 main () 19902 { 19903 return dlopen (); 19904 ; 19905 return 0; 19906 } 19907 _ACEOF 19908 if ac_fn_c_try_link "$LINENO"; then : 19909 ac_cv_lib_svld_dlopen=yes 19910 else 19911 ac_cv_lib_svld_dlopen=no 19912 fi 19913 rm -f core conftest.err conftest.$ac_objext \ 19914 conftest$ac_exeext conftest.$ac_ext 19915 LIBS=$ac_check_lib_save_LIBS 19916 fi 19917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 19918 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 19919 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 19920 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 19921 else 19922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 19923 $as_echo_n "checking for dld_link in -ldld... " >&6; } 19924 if ${ac_cv_lib_dld_dld_link+:} false; then : 19925 $as_echo_n "(cached) " >&6 19926 else 19927 ac_check_lib_save_LIBS=$LIBS 19928 LIBS="-ldld $LIBS" 19929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19930 /* end confdefs.h. */ 19931 19932 /* Override any GCC internal prototype to avoid an error. 19933 Use char because int might match the return type of a GCC 19934 builtin and then its argument prototype would still apply. */ 19935 #ifdef __cplusplus 19936 extern "C" 19937 #endif 19938 char dld_link (); 19939 int 19940 main () 19941 { 19942 return dld_link (); 19943 ; 19944 return 0; 19945 } 19946 _ACEOF 19947 if ac_fn_c_try_link "$LINENO"; then : 19948 ac_cv_lib_dld_dld_link=yes 19949 else 19950 ac_cv_lib_dld_dld_link=no 19951 fi 19952 rm -f core conftest.err conftest.$ac_objext \ 19953 conftest$ac_exeext conftest.$ac_ext 19954 LIBS=$ac_check_lib_save_LIBS 19955 fi 19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 19957 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 19958 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 19959 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 19960 fi 19961 19962 19963 fi 19964 19965 19966 fi 19967 19968 19969 fi 19970 19971 19972 fi 19973 19974 19975 fi 19976 19977 ;; 19978 esac 19979 19980 if test no = "$lt_cv_dlopen"; then 19981 enable_dlopen=no 19982 else 19983 enable_dlopen=yes 19984 fi 19985 19986 case $lt_cv_dlopen in 19987 dlopen) 19988 save_CPPFLAGS=$CPPFLAGS 19989 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 19990 19991 save_LDFLAGS=$LDFLAGS 19992 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 19993 19994 save_LIBS=$LIBS 19995 LIBS="$lt_cv_dlopen_libs $LIBS" 19996 19997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 19998 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 19999 if ${lt_cv_dlopen_self+:} false; then : 20000 $as_echo_n "(cached) " >&6 20001 else 20002 if test yes = "$cross_compiling"; then : 20003 lt_cv_dlopen_self=cross 20004 else 20005 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20006 lt_status=$lt_dlunknown 20007 cat > conftest.$ac_ext <<_LT_EOF 20008 #line $LINENO "configure" 20009 #include "confdefs.h" 20010 20011 #if HAVE_DLFCN_H 20012 #include <dlfcn.h> 20013 #endif 20014 20015 #include <stdio.h> 20016 20017 #ifdef RTLD_GLOBAL 20018 # define LT_DLGLOBAL RTLD_GLOBAL 20019 #else 20020 # ifdef DL_GLOBAL 20021 # define LT_DLGLOBAL DL_GLOBAL 20022 # else 20023 # define LT_DLGLOBAL 0 20024 # endif 20025 #endif 20026 20027 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20028 find out it does not work in some platform. */ 20029 #ifndef LT_DLLAZY_OR_NOW 20030 # ifdef RTLD_LAZY 20031 # define LT_DLLAZY_OR_NOW RTLD_LAZY 20032 # else 20033 # ifdef DL_LAZY 20034 # define LT_DLLAZY_OR_NOW DL_LAZY 20035 # else 20036 # ifdef RTLD_NOW 20037 # define LT_DLLAZY_OR_NOW RTLD_NOW 20038 # else 20039 # ifdef DL_NOW 20040 # define LT_DLLAZY_OR_NOW DL_NOW 20041 # else 20042 # define LT_DLLAZY_OR_NOW 0 20043 # endif 20044 # endif 20045 # endif 20046 # endif 20047 #endif 20048 20049 /* When -fvisibility=hidden is used, assume the code has been annotated 20050 correspondingly for the symbols needed. */ 20051 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 20052 int fnord () __attribute__((visibility("default"))); 20053 #endif 20054 20055 int fnord () { return 42; } 20056 int main () 20057 { 20058 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20059 int status = $lt_dlunknown; 20060 20061 if (self) 20062 { 20063 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20064 else 20065 { 20066 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20067 else puts (dlerror ()); 20068 } 20069 /* dlclose (self); */ 20070 } 20071 else 20072 puts (dlerror ()); 20073 20074 return status; 20075 } 20076 _LT_EOF 20077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 20078 (eval $ac_link) 2>&5 20079 ac_status=$? 20080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20081 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 20082 (./conftest; exit; ) >&5 2>/dev/null 20083 lt_status=$? 20084 case x$lt_status in 20085 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 20086 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 20087 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 20088 esac 20089 else : 20090 # compilation failed 20091 lt_cv_dlopen_self=no 20092 fi 20093 fi 20094 rm -fr conftest* 20095 20096 20097 fi 20098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 20099 $as_echo "$lt_cv_dlopen_self" >&6; } 20100 20101 if test yes = "$lt_cv_dlopen_self"; then 20102 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 20103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 20104 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 20105 if ${lt_cv_dlopen_self_static+:} false; then : 20106 $as_echo_n "(cached) " >&6 20107 else 20108 if test yes = "$cross_compiling"; then : 20109 lt_cv_dlopen_self_static=cross 20110 else 20111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20112 lt_status=$lt_dlunknown 20113 cat > conftest.$ac_ext <<_LT_EOF 20114 #line $LINENO "configure" 20115 #include "confdefs.h" 20116 20117 #if HAVE_DLFCN_H 20118 #include <dlfcn.h> 20119 #endif 20120 20121 #include <stdio.h> 20122 20123 #ifdef RTLD_GLOBAL 20124 # define LT_DLGLOBAL RTLD_GLOBAL 20125 #else 20126 # ifdef DL_GLOBAL 20127 # define LT_DLGLOBAL DL_GLOBAL 20128 # else 20129 # define LT_DLGLOBAL 0 20130 # endif 20131 #endif 20132 20133 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20134 find out it does not work in some platform. */ 20135 #ifndef LT_DLLAZY_OR_NOW 20136 # ifdef RTLD_LAZY 20137 # define LT_DLLAZY_OR_NOW RTLD_LAZY 20138 # else 20139 # ifdef DL_LAZY 20140 # define LT_DLLAZY_OR_NOW DL_LAZY 20141 # else 20142 # ifdef RTLD_NOW 20143 # define LT_DLLAZY_OR_NOW RTLD_NOW 20144 # else 20145 # ifdef DL_NOW 20146 # define LT_DLLAZY_OR_NOW DL_NOW 20147 # else 20148 # define LT_DLLAZY_OR_NOW 0 20149 # endif 20150 # endif 20151 # endif 20152 # endif 20153 #endif 20154 20155 /* When -fvisibility=hidden is used, assume the code has been annotated 20156 correspondingly for the symbols needed. */ 20157 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 20158 int fnord () __attribute__((visibility("default"))); 20159 #endif 20160 20161 int fnord () { return 42; } 20162 int main () 20163 { 20164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20165 int status = $lt_dlunknown; 20166 20167 if (self) 20168 { 20169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20170 else 20171 { 20172 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20173 else puts (dlerror ()); 20174 } 20175 /* dlclose (self); */ 20176 } 20177 else 20178 puts (dlerror ()); 20179 20180 return status; 20181 } 20182 _LT_EOF 20183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 20184 (eval $ac_link) 2>&5 20185 ac_status=$? 20186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20187 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 20188 (./conftest; exit; ) >&5 2>/dev/null 20189 lt_status=$? 20190 case x$lt_status in 20191 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 20192 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 20193 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 20194 esac 20195 else : 20196 # compilation failed 20197 lt_cv_dlopen_self_static=no 20198 fi 20199 fi 20200 rm -fr conftest* 20201 20202 20203 fi 20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 20205 $as_echo "$lt_cv_dlopen_self_static" >&6; } 20206 fi 20207 20208 CPPFLAGS=$save_CPPFLAGS 20209 LDFLAGS=$save_LDFLAGS 20210 LIBS=$save_LIBS 20211 ;; 20212 esac 20213 20214 case $lt_cv_dlopen_self in 20215 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 20216 *) enable_dlopen_self=unknown ;; 20217 esac 20218 20219 case $lt_cv_dlopen_self_static in 20220 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 20221 *) enable_dlopen_self_static=unknown ;; 20222 esac 20223 fi 20224 20225 20226 20227 20228 20229 20230 20231 20232 20233 20234 20235 20236 20237 20238 20239 20240 20241 striplib= 20242 old_striplib= 20243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 20244 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 20245 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 20246 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 20247 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20249 $as_echo "yes" >&6; } 20250 else 20251 # FIXME - insert some real tests, host_os isn't really good enough 20252 case $host_os in 20253 darwin*) 20254 if test -n "$STRIP"; then 20255 striplib="$STRIP -x" 20256 old_striplib="$STRIP -S" 20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20258 $as_echo "yes" >&6; } 20259 else 20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20261 $as_echo "no" >&6; } 20262 fi 20263 ;; 20264 *) 20265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20266 $as_echo "no" >&6; } 20267 ;; 20268 esac 20269 fi 20270 20271 20272 20273 20274 20275 20276 20277 20278 20279 20280 20281 20282 # Report what library types will actually be built 20283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 20284 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 20285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 20286 $as_echo "$can_build_shared" >&6; } 20287 20288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 20289 $as_echo_n "checking whether to build shared libraries... " >&6; } 20290 test no = "$can_build_shared" && enable_shared=no 20291 20292 # On AIX, shared libraries and static libraries use the same namespace, and 20293 # are all built from PIC. 20294 case $host_os in 20295 aix3*) 20296 test yes = "$enable_shared" && enable_static=no 20297 if test -n "$RANLIB"; then 20298 archive_cmds="$archive_cmds~\$RANLIB \$lib" 20299 postinstall_cmds='$RANLIB $lib' 20300 fi 20301 ;; 20302 20303 aix[4-9]*) 20304 if test ia64 != "$host_cpu"; then 20305 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 20306 yes,aix,yes) ;; # shared object as lib.so file only 20307 yes,svr4,*) ;; # shared object as lib.so archive member only 20308 yes,*) enable_static=no ;; # shared object in lib.a archive as well 20309 esac 20310 fi 20311 ;; 20312 esac 20313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 20314 $as_echo "$enable_shared" >&6; } 20315 20316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 20317 $as_echo_n "checking whether to build static libraries... " >&6; } 20318 # Make sure either enable_shared or enable_static is yes. 20319 test yes = "$enable_shared" || enable_static=yes 20320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 20321 $as_echo "$enable_static" >&6; } 20322 20323 20324 20325 20326 fi 20327 ac_ext=c 20328 ac_cpp='$CPP $CPPFLAGS' 20329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20331 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20332 20333 CC=$lt_save_CC 20334 20335 if test -n "$CXX" && ( test no != "$CXX" && 20336 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 20337 (test g++ != "$CXX"))); then 20338 ac_ext=cpp 20339 ac_cpp='$CXXCPP $CPPFLAGS' 20340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 20344 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 20345 if test -z "$CXXCPP"; then 20346 if ${ac_cv_prog_CXXCPP+:} false; then : 20347 $as_echo_n "(cached) " >&6 20348 else 20349 # Double quotes because CXXCPP needs to be expanded 20350 for CXXCPP in "$CXX -E" "/lib/cpp" 20351 do 20352 ac_preproc_ok=false 20353 for ac_cxx_preproc_warn_flag in '' yes 20354 do 20355 # Use a header file that comes with gcc, so configuring glibc 20356 # with a fresh cross-compiler works. 20357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20358 # <limits.h> exists even on freestanding compilers. 20359 # On the NeXT, cc -E runs the code through the compiler's parser, 20360 # not just through cpp. "Syntax error" is here to catch this case. 20361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20362 /* end confdefs.h. */ 20363 #ifdef __STDC__ 20364 # include <limits.h> 20365 #else 20366 # include <assert.h> 20367 #endif 20368 Syntax error 20369 _ACEOF 20370 if ac_fn_cxx_try_cpp "$LINENO"; then : 20371 20372 else 20373 # Broken: fails on valid input. 20374 continue 20375 fi 20376 rm -f conftest.err conftest.i conftest.$ac_ext 20377 20378 # OK, works on sane cases. Now check whether nonexistent headers 20379 # can be detected and how. 20380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20381 /* end confdefs.h. */ 20382 #include <ac_nonexistent.h> 20383 _ACEOF 20384 if ac_fn_cxx_try_cpp "$LINENO"; then : 20385 # Broken: success on invalid input. 20386 continue 20387 else 20388 # Passes both tests. 20389 ac_preproc_ok=: 20390 break 20391 fi 20392 rm -f conftest.err conftest.i conftest.$ac_ext 20393 20394 done 20395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20396 rm -f conftest.i conftest.err conftest.$ac_ext 20397 if $ac_preproc_ok; then : 20398 break 20399 fi 20400 20401 done 20402 ac_cv_prog_CXXCPP=$CXXCPP 20403 20404 fi 20405 CXXCPP=$ac_cv_prog_CXXCPP 20406 else 20407 ac_cv_prog_CXXCPP=$CXXCPP 20408 fi 20409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 20410 $as_echo "$CXXCPP" >&6; } 20411 ac_preproc_ok=false 20412 for ac_cxx_preproc_warn_flag in '' yes 20413 do 20414 # Use a header file that comes with gcc, so configuring glibc 20415 # with a fresh cross-compiler works. 20416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20417 # <limits.h> exists even on freestanding compilers. 20418 # On the NeXT, cc -E runs the code through the compiler's parser, 20419 # not just through cpp. "Syntax error" is here to catch this case. 20420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20421 /* end confdefs.h. */ 20422 #ifdef __STDC__ 20423 # include <limits.h> 20424 #else 20425 # include <assert.h> 20426 #endif 20427 Syntax error 20428 _ACEOF 20429 if ac_fn_cxx_try_cpp "$LINENO"; then : 20430 20431 else 20432 # Broken: fails on valid input. 20433 continue 20434 fi 20435 rm -f conftest.err conftest.i conftest.$ac_ext 20436 20437 # OK, works on sane cases. Now check whether nonexistent headers 20438 # can be detected and how. 20439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20440 /* end confdefs.h. */ 20441 #include <ac_nonexistent.h> 20442 _ACEOF 20443 if ac_fn_cxx_try_cpp "$LINENO"; then : 20444 # Broken: success on invalid input. 20445 continue 20446 else 20447 # Passes both tests. 20448 ac_preproc_ok=: 20449 break 20450 fi 20451 rm -f conftest.err conftest.i conftest.$ac_ext 20452 20453 done 20454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20455 rm -f conftest.i conftest.err conftest.$ac_ext 20456 if $ac_preproc_ok; then : 20457 20458 else 20459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20461 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 20462 See \`config.log' for more details" "$LINENO" 5; } 20463 fi 20464 20465 ac_ext=c 20466 ac_cpp='$CPP $CPPFLAGS' 20467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20469 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20470 20471 else 20472 _lt_caught_CXX_error=yes 20473 fi 20474 20475 ac_ext=cpp 20476 ac_cpp='$CXXCPP $CPPFLAGS' 20477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20480 20481 archive_cmds_need_lc_CXX=no 20482 allow_undefined_flag_CXX= 20483 always_export_symbols_CXX=no 20484 archive_expsym_cmds_CXX= 20485 compiler_needs_object_CXX=no 20486 export_dynamic_flag_spec_CXX= 20487 hardcode_direct_CXX=no 20488 hardcode_direct_absolute_CXX=no 20489 hardcode_libdir_flag_spec_CXX= 20490 hardcode_libdir_separator_CXX= 20491 hardcode_minus_L_CXX=no 20492 hardcode_shlibpath_var_CXX=unsupported 20493 hardcode_automatic_CXX=no 20494 inherit_rpath_CXX=no 20495 module_cmds_CXX= 20496 module_expsym_cmds_CXX= 20497 link_all_deplibs_CXX=unknown 20498 old_archive_cmds_CXX=$old_archive_cmds 20499 reload_flag_CXX=$reload_flag 20500 reload_cmds_CXX=$reload_cmds 20501 no_undefined_flag_CXX= 20502 whole_archive_flag_spec_CXX= 20503 enable_shared_with_static_runtimes_CXX=no 20504 20505 # Source file extension for C++ test sources. 20506 ac_ext=cpp 20507 20508 # Object file extension for compiled C++ test sources. 20509 objext=o 20510 objext_CXX=$objext 20511 20512 # No sense in running all these tests if we already determined that 20513 # the CXX compiler isn't working. Some variables (like enable_shared) 20514 # are currently assumed to apply to all compilers on this platform, 20515 # and will be corrupted by setting them based on a non-working compiler. 20516 if test yes != "$_lt_caught_CXX_error"; then 20517 # Code to be used in simple compile tests 20518 lt_simple_compile_test_code="int some_variable = 0;" 20519 20520 # Code to be used in simple link tests 20521 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 20522 20523 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 20524 20525 20526 20527 20528 20529 20530 # If no C compiler was specified, use CC. 20531 LTCC=${LTCC-"$CC"} 20532 20533 # If no C compiler flags were specified, use CFLAGS. 20534 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 20535 20536 # Allow CC to be a program name with arguments. 20537 compiler=$CC 20538 20539 20540 # save warnings/boilerplate of simple test code 20541 ac_outfile=conftest.$ac_objext 20542 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 20543 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20544 _lt_compiler_boilerplate=`cat conftest.err` 20545 $RM conftest* 20546 20547 ac_outfile=conftest.$ac_objext 20548 echo "$lt_simple_link_test_code" >conftest.$ac_ext 20549 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20550 _lt_linker_boilerplate=`cat conftest.err` 20551 $RM -r conftest* 20552 20553 20554 # Allow CC to be a program name with arguments. 20555 lt_save_CC=$CC 20556 lt_save_CFLAGS=$CFLAGS 20557 lt_save_LD=$LD 20558 lt_save_GCC=$GCC 20559 GCC=$GXX 20560 lt_save_with_gnu_ld=$with_gnu_ld 20561 lt_save_path_LD=$lt_cv_path_LD 20562 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 20563 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 20564 else 20565 $as_unset lt_cv_prog_gnu_ld 20566 fi 20567 if test -n "${lt_cv_path_LDCXX+set}"; then 20568 lt_cv_path_LD=$lt_cv_path_LDCXX 20569 else 20570 $as_unset lt_cv_path_LD 20571 fi 20572 test -z "${LDCXX+set}" || LD=$LDCXX 20573 CC=${CXX-"c++"} 20574 CFLAGS=$CXXFLAGS 20575 compiler=$CC 20576 compiler_CXX=$CC 20577 func_cc_basename $compiler 20578 cc_basename=$func_cc_basename_result 20579 20580 20581 if test -n "$compiler"; then 20582 # We don't want -fno-exception when compiling C++ code, so set the 20583 # no_builtin_flag separately 20584 if test yes = "$GXX"; then 20585 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 20586 else 20587 lt_prog_compiler_no_builtin_flag_CXX= 20588 fi 20589 20590 if test yes = "$GXX"; then 20591 # Set up default GNU C++ configuration 20592 20593 20594 20595 # Check whether --with-gnu-ld was given. 20596 if test "${with_gnu_ld+set}" = set; then : 20597 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 20598 else 20599 with_gnu_ld=no 20600 fi 20601 20602 ac_prog=ld 20603 if test yes = "$GCC"; then 20604 # Check if gcc -print-prog-name=ld gives a path. 20605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 20606 $as_echo_n "checking for ld used by $CC... " >&6; } 20607 case $host in 20608 *-*-mingw*) 20609 # gcc leaves a trailing carriage return, which upsets mingw 20610 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 20611 *) 20612 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 20613 esac 20614 case $ac_prog in 20615 # Accept absolute paths. 20616 [\\/]* | ?:[\\/]*) 20617 re_direlt='/[^/][^/]*/\.\./' 20618 # Canonicalize the pathname of ld 20619 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 20620 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 20621 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 20622 done 20623 test -z "$LD" && LD=$ac_prog 20624 ;; 20625 "") 20626 # If it fails, then pretend we aren't using GCC. 20627 ac_prog=ld 20628 ;; 20629 *) 20630 # If it is relative, then search for the first ld in PATH. 20631 with_gnu_ld=unknown 20632 ;; 20633 esac 20634 elif test yes = "$with_gnu_ld"; then 20635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 20636 $as_echo_n "checking for GNU ld... " >&6; } 20637 else 20638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 20639 $as_echo_n "checking for non-GNU ld... " >&6; } 20640 fi 20641 if ${lt_cv_path_LD+:} false; then : 20642 $as_echo_n "(cached) " >&6 20643 else 20644 if test -z "$LD"; then 20645 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 20646 for ac_dir in $PATH; do 20647 IFS=$lt_save_ifs 20648 test -z "$ac_dir" && ac_dir=. 20649 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 20650 lt_cv_path_LD=$ac_dir/$ac_prog 20651 # Check to see if the program is GNU ld. I'd rather use --version, 20652 # but apparently some variants of GNU ld only accept -v. 20653 # Break only if it was the GNU/non-GNU ld that we prefer. 20654 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 20655 *GNU* | *'with BFD'*) 20656 test no != "$with_gnu_ld" && break 20657 ;; 20658 *) 20659 test yes != "$with_gnu_ld" && break 20660 ;; 20661 esac 20662 fi 20663 done 20664 IFS=$lt_save_ifs 20665 else 20666 lt_cv_path_LD=$LD # Let the user override the test with a path. 20667 fi 20668 fi 20669 20670 LD=$lt_cv_path_LD 20671 if test -n "$LD"; then 20672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 20673 $as_echo "$LD" >&6; } 20674 else 20675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20676 $as_echo "no" >&6; } 20677 fi 20678 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 20679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 20680 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 20681 if ${lt_cv_prog_gnu_ld+:} false; then : 20682 $as_echo_n "(cached) " >&6 20683 else 20684 # I'd rather use --version here, but apparently some GNU lds only accept -v. 20685 case `$LD -v 2>&1 </dev/null` in 20686 *GNU* | *'with BFD'*) 20687 lt_cv_prog_gnu_ld=yes 20688 ;; 20689 *) 20690 lt_cv_prog_gnu_ld=no 20691 ;; 20692 esac 20693 fi 20694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 20695 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 20696 with_gnu_ld=$lt_cv_prog_gnu_ld 20697 20698 20699 20700 20701 20702 20703 20704 # Check if GNU C++ uses GNU ld as the underlying linker, since the 20705 # archiving commands below assume that GNU ld is being used. 20706 if test yes = "$with_gnu_ld"; then 20707 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 20708 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 20709 20710 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 20711 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 20712 20713 # If archive_cmds runs LD, not CC, wlarc should be empty 20714 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 20715 # investigate it a little bit more. (MM) 20716 wlarc='$wl' 20717 20718 # ancient GNU ld didn't support --whole-archive et. al. 20719 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 20720 $GREP 'no-whole-archive' > /dev/null; then 20721 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 20722 else 20723 whole_archive_flag_spec_CXX= 20724 fi 20725 else 20726 with_gnu_ld=no 20727 wlarc= 20728 20729 # A generic and very simple default shared library creation 20730 # command for GNU C++ for the case where it uses the native 20731 # linker, instead of GNU ld. If possible, this setting should 20732 # overridden to take advantage of the native linker features on 20733 # the platform it is being used on. 20734 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 20735 fi 20736 20737 # Commands to make compiler produce verbose output that lists 20738 # what "hidden" libraries, object files and flags are used when 20739 # linking a shared library. 20740 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20741 20742 else 20743 GXX=no 20744 with_gnu_ld=no 20745 wlarc= 20746 fi 20747 20748 # PORTME: fill in a description of your system's C++ link characteristics 20749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 20750 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 20751 ld_shlibs_CXX=yes 20752 case $host_os in 20753 aix3*) 20754 # FIXME: insert proper C++ library support 20755 ld_shlibs_CXX=no 20756 ;; 20757 aix[4-9]*) 20758 if test ia64 = "$host_cpu"; then 20759 # On IA64, the linker does run time linking by default, so we don't 20760 # have to do anything special. 20761 aix_use_runtimelinking=no 20762 exp_sym_flag='-Bexport' 20763 no_entry_flag= 20764 else 20765 aix_use_runtimelinking=no 20766 20767 # Test if we are trying to use run time linking or normal 20768 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 20769 # have runtime linking enabled, and use it for executables. 20770 # For shared libraries, we enable/disable runtime linking 20771 # depending on the kind of the shared library created - 20772 # when "with_aix_soname,aix_use_runtimelinking" is: 20773 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 20774 # "aix,yes" lib.so shared, rtl:yes, for executables 20775 # lib.a static archive 20776 # "both,no" lib.so.V(shr.o) shared, rtl:yes 20777 # lib.a(lib.so.V) shared, rtl:no, for executables 20778 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 20779 # lib.a(lib.so.V) shared, rtl:no 20780 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 20781 # lib.a static archive 20782 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 20783 for ld_flag in $LDFLAGS; do 20784 case $ld_flag in 20785 *-brtl*) 20786 aix_use_runtimelinking=yes 20787 break 20788 ;; 20789 esac 20790 done 20791 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 20792 # With aix-soname=svr4, we create the lib.so.V shared archives only, 20793 # so we don't have lib.a shared libs to link our executables. 20794 # We have to force runtime linking in this case. 20795 aix_use_runtimelinking=yes 20796 LDFLAGS="$LDFLAGS -Wl,-brtl" 20797 fi 20798 ;; 20799 esac 20800 20801 exp_sym_flag='-bexport' 20802 no_entry_flag='-bnoentry' 20803 fi 20804 20805 # When large executables or shared objects are built, AIX ld can 20806 # have problems creating the table of contents. If linking a library 20807 # or program results in "error TOC overflow" add -mminimal-toc to 20808 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 20809 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 20810 20811 archive_cmds_CXX='' 20812 hardcode_direct_CXX=yes 20813 hardcode_direct_absolute_CXX=yes 20814 hardcode_libdir_separator_CXX=':' 20815 link_all_deplibs_CXX=yes 20816 file_list_spec_CXX='$wl-f,' 20817 case $with_aix_soname,$aix_use_runtimelinking in 20818 aix,*) ;; # no import file 20819 svr4,* | *,yes) # use import file 20820 # The Import File defines what to hardcode. 20821 hardcode_direct_CXX=no 20822 hardcode_direct_absolute_CXX=no 20823 ;; 20824 esac 20825 20826 if test yes = "$GXX"; then 20827 case $host_os in aix4.[012]|aix4.[012].*) 20828 # We only want to do this on AIX 4.2 and lower, the check 20829 # below for broken collect2 doesn't work under 4.3+ 20830 collect2name=`$CC -print-prog-name=collect2` 20831 if test -f "$collect2name" && 20832 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 20833 then 20834 # We have reworked collect2 20835 : 20836 else 20837 # We have old collect2 20838 hardcode_direct_CXX=unsupported 20839 # It fails to find uninstalled libraries when the uninstalled 20840 # path is not listed in the libpath. Setting hardcode_minus_L 20841 # to unsupported forces relinking 20842 hardcode_minus_L_CXX=yes 20843 hardcode_libdir_flag_spec_CXX='-L$libdir' 20844 hardcode_libdir_separator_CXX= 20845 fi 20846 esac 20847 shared_flag='-shared' 20848 if test yes = "$aix_use_runtimelinking"; then 20849 shared_flag=$shared_flag' $wl-G' 20850 fi 20851 # Need to ensure runtime linking is disabled for the traditional 20852 # shared library, or the linker may eventually find shared libraries 20853 # /with/ Import File - we do not want to mix them. 20854 shared_flag_aix='-shared' 20855 shared_flag_svr4='-shared $wl-G' 20856 else 20857 # not using gcc 20858 if test ia64 = "$host_cpu"; then 20859 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 20860 # chokes on -Wl,-G. The following line is correct: 20861 shared_flag='-G' 20862 else 20863 if test yes = "$aix_use_runtimelinking"; then 20864 shared_flag='$wl-G' 20865 else 20866 shared_flag='$wl-bM:SRE' 20867 fi 20868 shared_flag_aix='$wl-bM:SRE' 20869 shared_flag_svr4='$wl-G' 20870 fi 20871 fi 20872 20873 export_dynamic_flag_spec_CXX='$wl-bexpall' 20874 # It seems that -bexpall does not export symbols beginning with 20875 # underscore (_), so it is better to generate a list of symbols to 20876 # export. 20877 always_export_symbols_CXX=yes 20878 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 20879 # Warning - without using the other runtime loading flags (-brtl), 20880 # -berok will link without error, but may produce a broken library. 20881 # The "-G" linker flag allows undefined symbols. 20882 no_undefined_flag_CXX='-bernotok' 20883 # Determine the default libpath from the value encoded in an empty 20884 # executable. 20885 if test set = "${lt_cv_aix_libpath+set}"; then 20886 aix_libpath=$lt_cv_aix_libpath 20887 else 20888 if ${lt_cv_aix_libpath__CXX+:} false; then : 20889 $as_echo_n "(cached) " >&6 20890 else 20891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20892 /* end confdefs.h. */ 20893 20894 int 20895 main () 20896 { 20897 20898 ; 20899 return 0; 20900 } 20901 _ACEOF 20902 if ac_fn_cxx_try_link "$LINENO"; then : 20903 20904 lt_aix_libpath_sed=' 20905 /Import File Strings/,/^$/ { 20906 /^0/ { 20907 s/^0 *\([^ ]*\) *$/\1/ 20908 p 20909 } 20910 }' 20911 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20912 # Check for a 64-bit object if we didn't find anything. 20913 if test -z "$lt_cv_aix_libpath__CXX"; then 20914 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20915 fi 20916 fi 20917 rm -f core conftest.err conftest.$ac_objext \ 20918 conftest$ac_exeext conftest.$ac_ext 20919 if test -z "$lt_cv_aix_libpath__CXX"; then 20920 lt_cv_aix_libpath__CXX=/usr/lib:/lib 20921 fi 20922 20923 fi 20924 20925 aix_libpath=$lt_cv_aix_libpath__CXX 20926 fi 20927 20928 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 20929 20930 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 20931 else 20932 if test ia64 = "$host_cpu"; then 20933 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 20934 allow_undefined_flag_CXX="-z nodefs" 20935 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" 20936 else 20937 # Determine the default libpath from the value encoded in an 20938 # empty executable. 20939 if test set = "${lt_cv_aix_libpath+set}"; then 20940 aix_libpath=$lt_cv_aix_libpath 20941 else 20942 if ${lt_cv_aix_libpath__CXX+:} false; then : 20943 $as_echo_n "(cached) " >&6 20944 else 20945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20946 /* end confdefs.h. */ 20947 20948 int 20949 main () 20950 { 20951 20952 ; 20953 return 0; 20954 } 20955 _ACEOF 20956 if ac_fn_cxx_try_link "$LINENO"; then : 20957 20958 lt_aix_libpath_sed=' 20959 /Import File Strings/,/^$/ { 20960 /^0/ { 20961 s/^0 *\([^ ]*\) *$/\1/ 20962 p 20963 } 20964 }' 20965 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20966 # Check for a 64-bit object if we didn't find anything. 20967 if test -z "$lt_cv_aix_libpath__CXX"; then 20968 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20969 fi 20970 fi 20971 rm -f core conftest.err conftest.$ac_objext \ 20972 conftest$ac_exeext conftest.$ac_ext 20973 if test -z "$lt_cv_aix_libpath__CXX"; then 20974 lt_cv_aix_libpath__CXX=/usr/lib:/lib 20975 fi 20976 20977 fi 20978 20979 aix_libpath=$lt_cv_aix_libpath__CXX 20980 fi 20981 20982 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 20983 # Warning - without using the other run time loading flags, 20984 # -berok will link without error, but may produce a broken library. 20985 no_undefined_flag_CXX=' $wl-bernotok' 20986 allow_undefined_flag_CXX=' $wl-berok' 20987 if test yes = "$with_gnu_ld"; then 20988 # We only use this code for GNU lds that support --whole-archive. 20989 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 20990 else 20991 # Exported symbols can be pulled into shared objects from archives 20992 whole_archive_flag_spec_CXX='$convenience' 20993 fi 20994 archive_cmds_need_lc_CXX=yes 20995 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 20996 # -brtl affects multiple linker settings, -berok does not and is overridden later 20997 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 20998 if test svr4 != "$with_aix_soname"; then 20999 # This is similar to how AIX traditionally builds its shared 21000 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 21001 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 21002 fi 21003 if test aix != "$with_aix_soname"; then 21004 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 21005 else 21006 # used by -dlpreopen to get the symbols 21007 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 21008 fi 21009 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 21010 fi 21011 fi 21012 ;; 21013 21014 beos*) 21015 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 21016 allow_undefined_flag_CXX=unsupported 21017 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 21018 # support --undefined. This deserves some investigation. FIXME 21019 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 21020 else 21021 ld_shlibs_CXX=no 21022 fi 21023 ;; 21024 21025 chorus*) 21026 case $cc_basename in 21027 *) 21028 # FIXME: insert proper C++ library support 21029 ld_shlibs_CXX=no 21030 ;; 21031 esac 21032 ;; 21033 21034 cygwin* | mingw* | pw32* | cegcc*) 21035 case $GXX,$cc_basename in 21036 ,cl* | no,cl*) 21037 # Native MSVC 21038 # hardcode_libdir_flag_spec is actually meaningless, as there is 21039 # no search path for DLLs. 21040 hardcode_libdir_flag_spec_CXX=' ' 21041 allow_undefined_flag_CXX=unsupported 21042 always_export_symbols_CXX=yes 21043 file_list_spec_CXX='@' 21044 # Tell ltmain to make .lib files, not .a files. 21045 libext=lib 21046 # Tell ltmain to make .dll files, not .so files. 21047 shrext_cmds=.dll 21048 # FIXME: Setting linknames here is a bad hack. 21049 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 21050 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 21051 cp "$export_symbols" "$output_objdir/$soname.def"; 21052 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 21053 else 21054 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 21055 fi~ 21056 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 21057 linknames=' 21058 # The linker will not automatically build a static lib if we build a DLL. 21059 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 21060 enable_shared_with_static_runtimes_CXX=yes 21061 # Don't use ranlib 21062 old_postinstall_cmds_CXX='chmod 644 $oldlib' 21063 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 21064 lt_tool_outputfile="@TOOL_OUTPUT@"~ 21065 case $lt_outputfile in 21066 *.exe|*.EXE) ;; 21067 *) 21068 lt_outputfile=$lt_outputfile.exe 21069 lt_tool_outputfile=$lt_tool_outputfile.exe 21070 ;; 21071 esac~ 21072 func_to_tool_file "$lt_outputfile"~ 21073 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 21074 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 21075 $RM "$lt_outputfile.manifest"; 21076 fi' 21077 ;; 21078 *) 21079 # g++ 21080 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 21081 # as there is no search path for DLLs. 21082 hardcode_libdir_flag_spec_CXX='-L$libdir' 21083 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 21084 allow_undefined_flag_CXX=unsupported 21085 always_export_symbols_CXX=no 21086 enable_shared_with_static_runtimes_CXX=yes 21087 21088 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 21089 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' 21090 # If the export-symbols file already is a .def file, use it as 21091 # is; otherwise, prepend EXPORTS... 21092 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 21093 cp $export_symbols $output_objdir/$soname.def; 21094 else 21095 echo EXPORTS > $output_objdir/$soname.def; 21096 cat $export_symbols >> $output_objdir/$soname.def; 21097 fi~ 21098 $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' 21099 else 21100 ld_shlibs_CXX=no 21101 fi 21102 ;; 21103 esac 21104 ;; 21105 darwin* | rhapsody*) 21106 21107 21108 archive_cmds_need_lc_CXX=no 21109 hardcode_direct_CXX=no 21110 hardcode_automatic_CXX=yes 21111 hardcode_shlibpath_var_CXX=unsupported 21112 if test yes = "$lt_cv_ld_force_load"; then 21113 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 21114 21115 else 21116 whole_archive_flag_spec_CXX='' 21117 fi 21118 link_all_deplibs_CXX=yes 21119 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 21120 case $cc_basename in 21121 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 21122 *) _lt_dar_can_shared=$GCC ;; 21123 esac 21124 if test yes = "$_lt_dar_can_shared"; then 21125 output_verbose_link_cmd=func_echo_all 21126 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" 21127 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 21128 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" 21129 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" 21130 if test yes != "$lt_cv_apple_cc_single_mod"; then 21131 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" 21132 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" 21133 fi 21134 21135 else 21136 ld_shlibs_CXX=no 21137 fi 21138 21139 ;; 21140 21141 os2*) 21142 hardcode_libdir_flag_spec_CXX='-L$libdir' 21143 hardcode_minus_L_CXX=yes 21144 allow_undefined_flag_CXX=unsupported 21145 shrext_cmds=.dll 21146 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 21147 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 21148 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 21149 $ECHO EXPORTS >> $output_objdir/$libname.def~ 21150 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 21151 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 21152 emximp -o $lib $output_objdir/$libname.def' 21153 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 21154 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 21155 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 21156 $ECHO EXPORTS >> $output_objdir/$libname.def~ 21157 prefix_cmds="$SED"~ 21158 if test EXPORTS = "`$SED 1q $export_symbols`"; then 21159 prefix_cmds="$prefix_cmds -e 1d"; 21160 fi~ 21161 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 21162 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 21163 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 21164 emximp -o $lib $output_objdir/$libname.def' 21165 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 21166 enable_shared_with_static_runtimes_CXX=yes 21167 ;; 21168 21169 dgux*) 21170 case $cc_basename in 21171 ec++*) 21172 # FIXME: insert proper C++ library support 21173 ld_shlibs_CXX=no 21174 ;; 21175 ghcx*) 21176 # Green Hills C++ Compiler 21177 # FIXME: insert proper C++ library support 21178 ld_shlibs_CXX=no 21179 ;; 21180 *) 21181 # FIXME: insert proper C++ library support 21182 ld_shlibs_CXX=no 21183 ;; 21184 esac 21185 ;; 21186 21187 freebsd2.*) 21188 # C++ shared libraries reported to be fairly broken before 21189 # switch to ELF 21190 ld_shlibs_CXX=no 21191 ;; 21192 21193 freebsd-elf*) 21194 archive_cmds_need_lc_CXX=no 21195 ;; 21196 21197 freebsd* | dragonfly*) 21198 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 21199 # conventions 21200 ld_shlibs_CXX=yes 21201 ;; 21202 21203 haiku*) 21204 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 21205 link_all_deplibs_CXX=yes 21206 ;; 21207 21208 hpux9*) 21209 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 21210 hardcode_libdir_separator_CXX=: 21211 export_dynamic_flag_spec_CXX='$wl-E' 21212 hardcode_direct_CXX=yes 21213 hardcode_minus_L_CXX=yes # Not in the search PATH, 21214 # but as the default 21215 # location of the library. 21216 21217 case $cc_basename in 21218 CC*) 21219 # FIXME: insert proper C++ library support 21220 ld_shlibs_CXX=no 21221 ;; 21222 aCC*) 21223 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 21224 # Commands to make compiler produce verbose output that lists 21225 # what "hidden" libraries, object files and flags are used when 21226 # linking a shared library. 21227 # 21228 # There doesn't appear to be a way to prevent this compiler from 21229 # explicitly linking system object files so we need to strip them 21230 # from the output so that they don't get included in the library 21231 # dependencies. 21232 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; func_echo_all "$list"' 21233 ;; 21234 *) 21235 if test yes = "$GXX"; then 21236 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 21237 else 21238 # FIXME: insert proper C++ library support 21239 ld_shlibs_CXX=no 21240 fi 21241 ;; 21242 esac 21243 ;; 21244 21245 hpux10*|hpux11*) 21246 if test no = "$with_gnu_ld"; then 21247 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 21248 hardcode_libdir_separator_CXX=: 21249 21250 case $host_cpu in 21251 hppa*64*|ia64*) 21252 ;; 21253 *) 21254 export_dynamic_flag_spec_CXX='$wl-E' 21255 ;; 21256 esac 21257 fi 21258 case $host_cpu in 21259 hppa*64*|ia64*) 21260 hardcode_direct_CXX=no 21261 hardcode_shlibpath_var_CXX=no 21262 ;; 21263 *) 21264 hardcode_direct_CXX=yes 21265 hardcode_direct_absolute_CXX=yes 21266 hardcode_minus_L_CXX=yes # Not in the search PATH, 21267 # but as the default 21268 # location of the library. 21269 ;; 21270 esac 21271 21272 case $cc_basename in 21273 CC*) 21274 # FIXME: insert proper C++ library support 21275 ld_shlibs_CXX=no 21276 ;; 21277 aCC*) 21278 case $host_cpu in 21279 hppa*64*) 21280 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21281 ;; 21282 ia64*) 21283 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21284 ;; 21285 *) 21286 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21287 ;; 21288 esac 21289 # Commands to make compiler produce verbose output that lists 21290 # what "hidden" libraries, object files and flags are used when 21291 # linking a shared library. 21292 # 21293 # There doesn't appear to be a way to prevent this compiler from 21294 # explicitly linking system object files so we need to strip them 21295 # from the output so that they don't get included in the library 21296 # dependencies. 21297 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; func_echo_all "$list"' 21298 ;; 21299 *) 21300 if test yes = "$GXX"; then 21301 if test no = "$with_gnu_ld"; then 21302 case $host_cpu in 21303 hppa*64*) 21304 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21305 ;; 21306 ia64*) 21307 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21308 ;; 21309 *) 21310 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21311 ;; 21312 esac 21313 fi 21314 else 21315 # FIXME: insert proper C++ library support 21316 ld_shlibs_CXX=no 21317 fi 21318 ;; 21319 esac 21320 ;; 21321 21322 interix[3-9]*) 21323 hardcode_direct_CXX=no 21324 hardcode_shlibpath_var_CXX=no 21325 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 21326 export_dynamic_flag_spec_CXX='$wl-E' 21327 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 21328 # Instead, shared libraries are loaded at an image base (0x10000000 by 21329 # default) and relocated if they conflict, which is a slow very memory 21330 # consuming and fragmenting process. To avoid this, we pick a random, 21331 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 21332 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 21333 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' 21334 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' 21335 ;; 21336 irix5* | irix6*) 21337 case $cc_basename in 21338 CC*) 21339 # SGI C++ 21340 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 21341 21342 # Archives containing C++ object files must be created using 21343 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 21344 # necessary to make sure instantiated templates are included 21345 # in the archive. 21346 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 21347 ;; 21348 *) 21349 if test yes = "$GXX"; then 21350 if test no = "$with_gnu_ld"; then 21351 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 21352 else 21353 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 21354 fi 21355 fi 21356 link_all_deplibs_CXX=yes 21357 ;; 21358 esac 21359 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 21360 hardcode_libdir_separator_CXX=: 21361 inherit_rpath_CXX=yes 21362 ;; 21363 21364 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 21365 case $cc_basename in 21366 KCC*) 21367 # Kuck and Associates, Inc. (KAI) C++ Compiler 21368 21369 # KCC will only create a shared library if the output file 21370 # ends with ".so" (or ".sl" for HP-UX), so rename the library 21371 # to its proper name (with version) after linking. 21372 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' 21373 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' 21374 # Commands to make compiler produce verbose output that lists 21375 # what "hidden" libraries, object files and flags are used when 21376 # linking a shared library. 21377 # 21378 # There doesn't appear to be a way to prevent this compiler from 21379 # explicitly linking system object files so we need to strip them 21380 # from the output so that they don't get included in the library 21381 # dependencies. 21382 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; func_echo_all "$list"' 21383 21384 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 21385 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 21386 21387 # Archives containing C++ object files must be created using 21388 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 21389 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 21390 ;; 21391 icpc* | ecpc* ) 21392 # Intel C++ 21393 with_gnu_ld=yes 21394 # version 8.0 and above of icpc choke on multiply defined symbols 21395 # if we add $predep_objects and $postdep_objects, however 7.1 and 21396 # earlier do not add the objects themselves. 21397 case `$CC -V 2>&1` in 21398 *"Version 7."*) 21399 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 21400 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' 21401 ;; 21402 *) # Version 8.0 or newer 21403 tmp_idyn= 21404 case $host_cpu in 21405 ia64*) tmp_idyn=' -i_dynamic';; 21406 esac 21407 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 21408 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' 21409 ;; 21410 esac 21411 archive_cmds_need_lc_CXX=no 21412 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 21413 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 21414 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 21415 ;; 21416 pgCC* | pgcpp*) 21417 # Portland Group C++ compiler 21418 case `$CC -V` in 21419 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 21420 prelink_cmds_CXX='tpldir=Template.dir~ 21421 rm -rf $tpldir~ 21422 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 21423 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 21424 old_archive_cmds_CXX='tpldir=Template.dir~ 21425 rm -rf $tpldir~ 21426 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 21427 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 21428 $RANLIB $oldlib' 21429 archive_cmds_CXX='tpldir=Template.dir~ 21430 rm -rf $tpldir~ 21431 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 21432 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 21433 archive_expsym_cmds_CXX='tpldir=Template.dir~ 21434 rm -rf $tpldir~ 21435 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 21436 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 21437 ;; 21438 *) # Version 6 and above use weak symbols 21439 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 21440 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' 21441 ;; 21442 esac 21443 21444 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 21445 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 21446 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 21447 ;; 21448 cxx*) 21449 # Compaq C++ 21450 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 21451 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' 21452 21453 runpath_var=LD_RUN_PATH 21454 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 21455 hardcode_libdir_separator_CXX=: 21456 21457 # Commands to make compiler produce verbose output that lists 21458 # what "hidden" libraries, object files and flags are used when 21459 # linking a shared library. 21460 # 21461 # There doesn't appear to be a way to prevent this compiler from 21462 # explicitly linking system object files so we need to strip them 21463 # from the output so that they don't get included in the library 21464 # dependencies. 21465 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 21466 ;; 21467 xl* | mpixl* | bgxl*) 21468 # IBM XL 8.0 on PPC, with GNU ld 21469 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 21470 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 21471 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 21472 if test yes = "$supports_anon_versioning"; then 21473 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 21474 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 21475 echo "local: *; };" >> $output_objdir/$libname.ver~ 21476 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 21477 fi 21478 ;; 21479 *) 21480 case `$CC -V 2>&1 | sed 5q` in 21481 *Sun\ C*) 21482 # Sun C++ 5.9 21483 no_undefined_flag_CXX=' -zdefs' 21484 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21485 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' 21486 hardcode_libdir_flag_spec_CXX='-R$libdir' 21487 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 21488 compiler_needs_object_CXX=yes 21489 21490 # Not sure whether something based on 21491 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 21492 # would be better. 21493 output_verbose_link_cmd='func_echo_all' 21494 21495 # Archives containing C++ object files must be created using 21496 # "CC -xar", where "CC" is the Sun C++ compiler. This is 21497 # necessary to make sure instantiated templates are included 21498 # in the archive. 21499 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 21500 ;; 21501 esac 21502 ;; 21503 esac 21504 ;; 21505 21506 lynxos*) 21507 # FIXME: insert proper C++ library support 21508 ld_shlibs_CXX=no 21509 ;; 21510 21511 m88k*) 21512 # FIXME: insert proper C++ library support 21513 ld_shlibs_CXX=no 21514 ;; 21515 21516 mvs*) 21517 case $cc_basename in 21518 cxx*) 21519 # FIXME: insert proper C++ library support 21520 ld_shlibs_CXX=no 21521 ;; 21522 *) 21523 # FIXME: insert proper C++ library support 21524 ld_shlibs_CXX=no 21525 ;; 21526 esac 21527 ;; 21528 21529 netbsd*) 21530 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 21531 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 21532 wlarc= 21533 hardcode_libdir_flag_spec_CXX='-R$libdir' 21534 hardcode_direct_CXX=yes 21535 hardcode_shlibpath_var_CXX=no 21536 fi 21537 # Workaround some broken pre-1.5 toolchains 21538 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 21539 ;; 21540 21541 *nto* | *qnx*) 21542 ld_shlibs_CXX=yes 21543 ;; 21544 21545 openbsd* | bitrig*) 21546 if test -f /usr/libexec/ld.so; then 21547 hardcode_direct_CXX=yes 21548 hardcode_shlibpath_var_CXX=no 21549 hardcode_direct_absolute_CXX=yes 21550 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 21551 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 21552 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 21553 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 21554 export_dynamic_flag_spec_CXX='$wl-E' 21555 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 21556 fi 21557 output_verbose_link_cmd=func_echo_all 21558 else 21559 ld_shlibs_CXX=no 21560 fi 21561 ;; 21562 21563 osf3* | osf4* | osf5*) 21564 case $cc_basename in 21565 KCC*) 21566 # Kuck and Associates, Inc. (KAI) C++ Compiler 21567 21568 # KCC will only create a shared library if the output file 21569 # ends with ".so" (or ".sl" for HP-UX), so rename the library 21570 # to its proper name (with version) after linking. 21571 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' 21572 21573 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 21574 hardcode_libdir_separator_CXX=: 21575 21576 # Archives containing C++ object files must be created using 21577 # the KAI C++ compiler. 21578 case $host in 21579 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 21580 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 21581 esac 21582 ;; 21583 RCC*) 21584 # Rational C++ 2.4.1 21585 # FIXME: insert proper C++ library support 21586 ld_shlibs_CXX=no 21587 ;; 21588 cxx*) 21589 case $host in 21590 osf3*) 21591 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 21592 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 21593 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 21594 ;; 21595 *) 21596 allow_undefined_flag_CXX=' -expect_unresolved \*' 21597 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 21598 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 21599 echo "-hidden">> $lib.exp~ 21600 $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 "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 21601 $RM $lib.exp' 21602 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 21603 ;; 21604 esac 21605 21606 hardcode_libdir_separator_CXX=: 21607 21608 # Commands to make compiler produce verbose output that lists 21609 # what "hidden" libraries, object files and flags are used when 21610 # linking a shared library. 21611 # 21612 # There doesn't appear to be a way to prevent this compiler from 21613 # explicitly linking system object files so we need to strip them 21614 # from the output so that they don't get included in the library 21615 # dependencies. 21616 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 21617 ;; 21618 *) 21619 if test yes,no = "$GXX,$with_gnu_ld"; then 21620 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 21621 case $host in 21622 osf3*) 21623 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 21624 ;; 21625 *) 21626 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 21627 ;; 21628 esac 21629 21630 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 21631 hardcode_libdir_separator_CXX=: 21632 21633 # Commands to make compiler produce verbose output that lists 21634 # what "hidden" libraries, object files and flags are used when 21635 # linking a shared library. 21636 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 21637 21638 else 21639 # FIXME: insert proper C++ library support 21640 ld_shlibs_CXX=no 21641 fi 21642 ;; 21643 esac 21644 ;; 21645 21646 psos*) 21647 # FIXME: insert proper C++ library support 21648 ld_shlibs_CXX=no 21649 ;; 21650 21651 sunos4*) 21652 case $cc_basename in 21653 CC*) 21654 # Sun C++ 4.x 21655 # FIXME: insert proper C++ library support 21656 ld_shlibs_CXX=no 21657 ;; 21658 lcc*) 21659 # Lucid 21660 # FIXME: insert proper C++ library support 21661 ld_shlibs_CXX=no 21662 ;; 21663 *) 21664 # FIXME: insert proper C++ library support 21665 ld_shlibs_CXX=no 21666 ;; 21667 esac 21668 ;; 21669 21670 solaris*) 21671 case $cc_basename in 21672 CC* | sunCC*) 21673 # Sun C++ 4.2, 5.x and Centerline C++ 21674 archive_cmds_need_lc_CXX=yes 21675 no_undefined_flag_CXX=' -zdefs' 21676 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21677 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21678 $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' 21679 21680 hardcode_libdir_flag_spec_CXX='-R$libdir' 21681 hardcode_shlibpath_var_CXX=no 21682 case $host_os in 21683 solaris2.[0-5] | solaris2.[0-5].*) ;; 21684 *) 21685 # The compiler driver will combine and reorder linker options, 21686 # but understands '-z linker_flag'. 21687 # Supported since Solaris 2.6 (maybe 2.5.1?) 21688 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 21689 ;; 21690 esac 21691 link_all_deplibs_CXX=yes 21692 21693 output_verbose_link_cmd='func_echo_all' 21694 21695 # Archives containing C++ object files must be created using 21696 # "CC -xar", where "CC" is the Sun C++ compiler. This is 21697 # necessary to make sure instantiated templates are included 21698 # in the archive. 21699 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 21700 ;; 21701 gcx*) 21702 # Green Hills C++ Compiler 21703 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 21704 21705 # The C++ compiler must be used to create the archive. 21706 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 21707 ;; 21708 *) 21709 # GNU C++ compiler with Solaris linker 21710 if test yes,no = "$GXX,$with_gnu_ld"; then 21711 no_undefined_flag_CXX=' $wl-z ${wl}defs' 21712 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 21713 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 21714 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21715 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 21716 21717 # Commands to make compiler produce verbose output that lists 21718 # what "hidden" libraries, object files and flags are used when 21719 # linking a shared library. 21720 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 21721 else 21722 # g++ 2.7 appears to require '-G' NOT '-shared' on this 21723 # platform. 21724 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 21725 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 21726 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 21727 21728 # Commands to make compiler produce verbose output that lists 21729 # what "hidden" libraries, object files and flags are used when 21730 # linking a shared library. 21731 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 21732 fi 21733 21734 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 21735 case $host_os in 21736 solaris2.[0-5] | solaris2.[0-5].*) ;; 21737 *) 21738 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 21739 ;; 21740 esac 21741 fi 21742 ;; 21743 esac 21744 ;; 21745 21746 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 21747 no_undefined_flag_CXX='$wl-z,text' 21748 archive_cmds_need_lc_CXX=no 21749 hardcode_shlibpath_var_CXX=no 21750 runpath_var='LD_RUN_PATH' 21751 21752 case $cc_basename in 21753 CC*) 21754 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21755 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21756 ;; 21757 *) 21758 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21759 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21760 ;; 21761 esac 21762 ;; 21763 21764 sysv5* | sco3.2v5* | sco5v6*) 21765 # Note: We CANNOT use -z defs as we might desire, because we do not 21766 # link with -lc, and that would cause any symbols used from libc to 21767 # always be unresolved, which means just about no library would 21768 # ever link correctly. If we're not using GNU ld we use -z text 21769 # though, which does catch some bad symbols but isn't as heavy-handed 21770 # as -z defs. 21771 no_undefined_flag_CXX='$wl-z,text' 21772 allow_undefined_flag_CXX='$wl-z,nodefs' 21773 archive_cmds_need_lc_CXX=no 21774 hardcode_shlibpath_var_CXX=no 21775 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 21776 hardcode_libdir_separator_CXX=':' 21777 link_all_deplibs_CXX=yes 21778 export_dynamic_flag_spec_CXX='$wl-Bexport' 21779 runpath_var='LD_RUN_PATH' 21780 21781 case $cc_basename in 21782 CC*) 21783 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21784 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21785 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 21786 '"$old_archive_cmds_CXX" 21787 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 21788 '"$reload_cmds_CXX" 21789 ;; 21790 *) 21791 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21792 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21793 ;; 21794 esac 21795 ;; 21796 21797 tandem*) 21798 case $cc_basename in 21799 NCC*) 21800 # NonStop-UX NCC 3.20 21801 # FIXME: insert proper C++ library support 21802 ld_shlibs_CXX=no 21803 ;; 21804 *) 21805 # FIXME: insert proper C++ library support 21806 ld_shlibs_CXX=no 21807 ;; 21808 esac 21809 ;; 21810 21811 vxworks*) 21812 # FIXME: insert proper C++ library support 21813 ld_shlibs_CXX=no 21814 ;; 21815 21816 *) 21817 # FIXME: insert proper C++ library support 21818 ld_shlibs_CXX=no 21819 ;; 21820 esac 21821 21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 21823 $as_echo "$ld_shlibs_CXX" >&6; } 21824 test no = "$ld_shlibs_CXX" && can_build_shared=no 21825 21826 GCC_CXX=$GXX 21827 LD_CXX=$LD 21828 21829 ## CAVEAT EMPTOR: 21830 ## There is no encapsulation within the following macros, do not change 21831 ## the running order or otherwise move them around unless you know exactly 21832 ## what you are doing... 21833 # Dependencies to place before and after the object being linked: 21834 predep_objects_CXX= 21835 postdep_objects_CXX= 21836 predeps_CXX= 21837 postdeps_CXX= 21838 compiler_lib_search_path_CXX= 21839 21840 cat > conftest.$ac_ext <<_LT_EOF 21841 class Foo 21842 { 21843 public: 21844 Foo (void) { a = 0; } 21845 private: 21846 int a; 21847 }; 21848 _LT_EOF 21849 21850 21851 _lt_libdeps_save_CFLAGS=$CFLAGS 21852 case "$CC $CFLAGS " in #( 21853 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 21854 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 21855 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 21856 esac 21857 21858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 21859 (eval $ac_compile) 2>&5 21860 ac_status=$? 21861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21862 test $ac_status = 0; }; then 21863 # Parse the compiler output and extract the necessary 21864 # objects, libraries and library flags. 21865 21866 # Sentinel used to keep track of whether or not we are before 21867 # the conftest object file. 21868 pre_test_object_deps_done=no 21869 21870 for p in `eval "$output_verbose_link_cmd"`; do 21871 case $prev$p in 21872 21873 -L* | -R* | -l*) 21874 # Some compilers place space between "-{L,R}" and the path. 21875 # Remove the space. 21876 if test x-L = "$p" || 21877 test x-R = "$p"; then 21878 prev=$p 21879 continue 21880 fi 21881 21882 # Expand the sysroot to ease extracting the directories later. 21883 if test -z "$prev"; then 21884 case $p in 21885 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 21886 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 21887 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 21888 esac 21889 fi 21890 case $p in 21891 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 21892 esac 21893 if test no = "$pre_test_object_deps_done"; then 21894 case $prev in 21895 -L | -R) 21896 # Internal compiler library paths should come after those 21897 # provided the user. The postdeps already come after the 21898 # user supplied libs so there is no need to process them. 21899 if test -z "$compiler_lib_search_path_CXX"; then 21900 compiler_lib_search_path_CXX=$prev$p 21901 else 21902 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 21903 fi 21904 ;; 21905 # The "-l" case would never come before the object being 21906 # linked, so don't bother handling this case. 21907 esac 21908 else 21909 if test -z "$postdeps_CXX"; then 21910 postdeps_CXX=$prev$p 21911 else 21912 postdeps_CXX="${postdeps_CXX} $prev$p" 21913 fi 21914 fi 21915 prev= 21916 ;; 21917 21918 *.lto.$objext) ;; # Ignore GCC LTO objects 21919 *.$objext) 21920 # This assumes that the test object file only shows up 21921 # once in the compiler output. 21922 if test "$p" = "conftest.$objext"; then 21923 pre_test_object_deps_done=yes 21924 continue 21925 fi 21926 21927 if test no = "$pre_test_object_deps_done"; then 21928 if test -z "$predep_objects_CXX"; then 21929 predep_objects_CXX=$p 21930 else 21931 predep_objects_CXX="$predep_objects_CXX $p" 21932 fi 21933 else 21934 if test -z "$postdep_objects_CXX"; then 21935 postdep_objects_CXX=$p 21936 else 21937 postdep_objects_CXX="$postdep_objects_CXX $p" 21938 fi 21939 fi 21940 ;; 21941 21942 *) ;; # Ignore the rest. 21943 21944 esac 21945 done 21946 21947 # Clean up. 21948 rm -f a.out a.exe 21949 else 21950 echo "libtool.m4: error: problem compiling CXX test program" 21951 fi 21952 21953 $RM -f confest.$objext 21954 CFLAGS=$_lt_libdeps_save_CFLAGS 21955 21956 # PORTME: override above test on systems where it is broken 21957 case $host_os in 21958 interix[3-9]*) 21959 # Interix 3.5 installs completely hosed .la files for C++, so rather than 21960 # hack all around it, let's just trust "g++" to DTRT. 21961 predep_objects_CXX= 21962 postdep_objects_CXX= 21963 postdeps_CXX= 21964 ;; 21965 esac 21966 21967 21968 case " $postdeps_CXX " in 21969 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 21970 esac 21971 compiler_lib_search_dirs_CXX= 21972 if test -n "${compiler_lib_search_path_CXX}"; then 21973 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 21974 fi 21975 21976 21977 21978 21979 21980 21981 21982 21983 21984 21985 21986 21987 21988 21989 21990 21991 21992 21993 21994 21995 21996 21997 21998 21999 22000 22001 22002 22003 22004 22005 22006 lt_prog_compiler_wl_CXX= 22007 lt_prog_compiler_pic_CXX= 22008 lt_prog_compiler_static_CXX= 22009 22010 22011 # C++ specific cases for pic, static, wl, etc. 22012 if test yes = "$GXX"; then 22013 lt_prog_compiler_wl_CXX='-Wl,' 22014 lt_prog_compiler_static_CXX='-static' 22015 22016 case $host_os in 22017 aix*) 22018 # All AIX code is PIC. 22019 if test ia64 = "$host_cpu"; then 22020 # AIX 5 now supports IA64 processor 22021 lt_prog_compiler_static_CXX='-Bstatic' 22022 fi 22023 lt_prog_compiler_pic_CXX='-fPIC' 22024 ;; 22025 22026 amigaos*) 22027 case $host_cpu in 22028 powerpc) 22029 # see comment about AmigaOS4 .so support 22030 lt_prog_compiler_pic_CXX='-fPIC' 22031 ;; 22032 m68k) 22033 # FIXME: we need at least 68020 code to build shared libraries, but 22034 # adding the '-m68020' flag to GCC prevents building anything better, 22035 # like '-m68040'. 22036 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 22037 ;; 22038 esac 22039 ;; 22040 22041 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 22042 # PIC is the default for these OSes. 22043 ;; 22044 mingw* | cygwin* | os2* | pw32* | cegcc*) 22045 # This hack is so that the source file can tell whether it is being 22046 # built for inclusion in a dll (and should export symbols for example). 22047 # Although the cygwin gcc ignores -fPIC, still need this for old-style 22048 # (--disable-auto-import) libraries 22049 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 22050 case $host_os in 22051 os2*) 22052 lt_prog_compiler_static_CXX='$wl-static' 22053 ;; 22054 esac 22055 ;; 22056 darwin* | rhapsody*) 22057 # PIC is the default on this platform 22058 # Common symbols not allowed in MH_DYLIB files 22059 lt_prog_compiler_pic_CXX='-fno-common' 22060 ;; 22061 *djgpp*) 22062 # DJGPP does not support shared libraries at all 22063 lt_prog_compiler_pic_CXX= 22064 ;; 22065 haiku*) 22066 # PIC is the default for Haiku. 22067 # The "-static" flag exists, but is broken. 22068 lt_prog_compiler_static_CXX= 22069 ;; 22070 interix[3-9]*) 22071 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 22072 # Instead, we relocate shared libraries at runtime. 22073 ;; 22074 sysv4*MP*) 22075 if test -d /usr/nec; then 22076 lt_prog_compiler_pic_CXX=-Kconform_pic 22077 fi 22078 ;; 22079 hpux*) 22080 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 22081 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 22082 # sets the default TLS model and affects inlining. 22083 case $host_cpu in 22084 hppa*64*) 22085 ;; 22086 *) 22087 lt_prog_compiler_pic_CXX='-fPIC' 22088 ;; 22089 esac 22090 ;; 22091 *qnx* | *nto*) 22092 # QNX uses GNU C++, but need to define -shared option too, otherwise 22093 # it will coredump. 22094 lt_prog_compiler_pic_CXX='-fPIC -shared' 22095 ;; 22096 *) 22097 lt_prog_compiler_pic_CXX='-fPIC' 22098 ;; 22099 esac 22100 else 22101 case $host_os in 22102 aix[4-9]*) 22103 # All AIX code is PIC. 22104 if test ia64 = "$host_cpu"; then 22105 # AIX 5 now supports IA64 processor 22106 lt_prog_compiler_static_CXX='-Bstatic' 22107 else 22108 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 22109 fi 22110 ;; 22111 chorus*) 22112 case $cc_basename in 22113 cxch68*) 22114 # Green Hills C++ Compiler 22115 # _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" 22116 ;; 22117 esac 22118 ;; 22119 mingw* | cygwin* | os2* | pw32* | cegcc*) 22120 # This hack is so that the source file can tell whether it is being 22121 # built for inclusion in a dll (and should export symbols for example). 22122 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 22123 ;; 22124 dgux*) 22125 case $cc_basename in 22126 ec++*) 22127 lt_prog_compiler_pic_CXX='-KPIC' 22128 ;; 22129 ghcx*) 22130 # Green Hills C++ Compiler 22131 lt_prog_compiler_pic_CXX='-pic' 22132 ;; 22133 *) 22134 ;; 22135 esac 22136 ;; 22137 freebsd* | dragonfly*) 22138 # FreeBSD uses GNU C++ 22139 ;; 22140 hpux9* | hpux10* | hpux11*) 22141 case $cc_basename in 22142 CC*) 22143 lt_prog_compiler_wl_CXX='-Wl,' 22144 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 22145 if test ia64 != "$host_cpu"; then 22146 lt_prog_compiler_pic_CXX='+Z' 22147 fi 22148 ;; 22149 aCC*) 22150 lt_prog_compiler_wl_CXX='-Wl,' 22151 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 22152 case $host_cpu in 22153 hppa*64*|ia64*) 22154 # +Z the default 22155 ;; 22156 *) 22157 lt_prog_compiler_pic_CXX='+Z' 22158 ;; 22159 esac 22160 ;; 22161 *) 22162 ;; 22163 esac 22164 ;; 22165 interix*) 22166 # This is c89, which is MS Visual C++ (no shared libs) 22167 # Anyone wants to do a port? 22168 ;; 22169 irix5* | irix6* | nonstopux*) 22170 case $cc_basename in 22171 CC*) 22172 lt_prog_compiler_wl_CXX='-Wl,' 22173 lt_prog_compiler_static_CXX='-non_shared' 22174 # CC pic flag -KPIC is the default. 22175 ;; 22176 *) 22177 ;; 22178 esac 22179 ;; 22180 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 22181 case $cc_basename in 22182 KCC*) 22183 # KAI C++ Compiler 22184 lt_prog_compiler_wl_CXX='--backend -Wl,' 22185 lt_prog_compiler_pic_CXX='-fPIC' 22186 ;; 22187 ecpc* ) 22188 # old Intel C++ for x86_64, which still supported -KPIC. 22189 lt_prog_compiler_wl_CXX='-Wl,' 22190 lt_prog_compiler_pic_CXX='-KPIC' 22191 lt_prog_compiler_static_CXX='-static' 22192 ;; 22193 icpc* ) 22194 # Intel C++, used to be incompatible with GCC. 22195 # ICC 10 doesn't accept -KPIC any more. 22196 lt_prog_compiler_wl_CXX='-Wl,' 22197 lt_prog_compiler_pic_CXX='-fPIC' 22198 lt_prog_compiler_static_CXX='-static' 22199 ;; 22200 pgCC* | pgcpp*) 22201 # Portland Group C++ compiler 22202 lt_prog_compiler_wl_CXX='-Wl,' 22203 lt_prog_compiler_pic_CXX='-fpic' 22204 lt_prog_compiler_static_CXX='-Bstatic' 22205 ;; 22206 cxx*) 22207 # Compaq C++ 22208 # Make sure the PIC flag is empty. It appears that all Alpha 22209 # Linux and Compaq Tru64 Unix objects are PIC. 22210 lt_prog_compiler_pic_CXX= 22211 lt_prog_compiler_static_CXX='-non_shared' 22212 ;; 22213 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 22214 # IBM XL 8.0, 9.0 on PPC and BlueGene 22215 lt_prog_compiler_wl_CXX='-Wl,' 22216 lt_prog_compiler_pic_CXX='-qpic' 22217 lt_prog_compiler_static_CXX='-qstaticlink' 22218 ;; 22219 *) 22220 case `$CC -V 2>&1 | sed 5q` in 22221 *Sun\ C*) 22222 # Sun C++ 5.9 22223 lt_prog_compiler_pic_CXX='-KPIC' 22224 lt_prog_compiler_static_CXX='-Bstatic' 22225 lt_prog_compiler_wl_CXX='-Qoption ld ' 22226 ;; 22227 esac 22228 ;; 22229 esac 22230 ;; 22231 lynxos*) 22232 ;; 22233 m88k*) 22234 ;; 22235 mvs*) 22236 case $cc_basename in 22237 cxx*) 22238 lt_prog_compiler_pic_CXX='-W c,exportall' 22239 ;; 22240 *) 22241 ;; 22242 esac 22243 ;; 22244 netbsd*) 22245 ;; 22246 *qnx* | *nto*) 22247 # QNX uses GNU C++, but need to define -shared option too, otherwise 22248 # it will coredump. 22249 lt_prog_compiler_pic_CXX='-fPIC -shared' 22250 ;; 22251 osf3* | osf4* | osf5*) 22252 case $cc_basename in 22253 KCC*) 22254 lt_prog_compiler_wl_CXX='--backend -Wl,' 22255 ;; 22256 RCC*) 22257 # Rational C++ 2.4.1 22258 lt_prog_compiler_pic_CXX='-pic' 22259 ;; 22260 cxx*) 22261 # Digital/Compaq C++ 22262 lt_prog_compiler_wl_CXX='-Wl,' 22263 # Make sure the PIC flag is empty. It appears that all Alpha 22264 # Linux and Compaq Tru64 Unix objects are PIC. 22265 lt_prog_compiler_pic_CXX= 22266 lt_prog_compiler_static_CXX='-non_shared' 22267 ;; 22268 *) 22269 ;; 22270 esac 22271 ;; 22272 psos*) 22273 ;; 22274 solaris*) 22275 case $cc_basename in 22276 CC* | sunCC*) 22277 # Sun C++ 4.2, 5.x and Centerline C++ 22278 lt_prog_compiler_pic_CXX='-KPIC' 22279 lt_prog_compiler_static_CXX='-Bstatic' 22280 lt_prog_compiler_wl_CXX='-Qoption ld ' 22281 ;; 22282 gcx*) 22283 # Green Hills C++ Compiler 22284 lt_prog_compiler_pic_CXX='-PIC' 22285 ;; 22286 *) 22287 ;; 22288 esac 22289 ;; 22290 sunos4*) 22291 case $cc_basename in 22292 CC*) 22293 # Sun C++ 4.x 22294 lt_prog_compiler_pic_CXX='-pic' 22295 lt_prog_compiler_static_CXX='-Bstatic' 22296 ;; 22297 lcc*) 22298 # Lucid 22299 lt_prog_compiler_pic_CXX='-pic' 22300 ;; 22301 *) 22302 ;; 22303 esac 22304 ;; 22305 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 22306 case $cc_basename in 22307 CC*) 22308 lt_prog_compiler_wl_CXX='-Wl,' 22309 lt_prog_compiler_pic_CXX='-KPIC' 22310 lt_prog_compiler_static_CXX='-Bstatic' 22311 ;; 22312 esac 22313 ;; 22314 tandem*) 22315 case $cc_basename in 22316 NCC*) 22317 # NonStop-UX NCC 3.20 22318 lt_prog_compiler_pic_CXX='-KPIC' 22319 ;; 22320 *) 22321 ;; 22322 esac 22323 ;; 22324 vxworks*) 22325 ;; 22326 *) 22327 lt_prog_compiler_can_build_shared_CXX=no 22328 ;; 22329 esac 22330 fi 22331 22332 case $host_os in 22333 # For platforms that do not support PIC, -DPIC is meaningless: 22334 *djgpp*) 22335 lt_prog_compiler_pic_CXX= 22336 ;; 22337 *) 22338 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 22339 ;; 22340 esac 22341 22342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 22343 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 22344 if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 22345 $as_echo_n "(cached) " >&6 22346 else 22347 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 22348 fi 22349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 22350 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 22351 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 22352 22353 # 22354 # Check to make sure the PIC flag actually works. 22355 # 22356 if test -n "$lt_prog_compiler_pic_CXX"; then 22357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 22358 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 22359 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 22360 $as_echo_n "(cached) " >&6 22361 else 22362 lt_cv_prog_compiler_pic_works_CXX=no 22363 ac_outfile=conftest.$ac_objext 22364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22365 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 22366 # Insert the option either (1) after the last *FLAGS variable, or 22367 # (2) before a word containing "conftest.", or (3) at the end. 22368 # Note that $ac_compile itself does not contain backslashes and begins 22369 # with a dollar sign (not a hyphen), so the echo should work correctly. 22370 # The option is referenced via a variable to avoid confusing sed. 22371 lt_compile=`echo "$ac_compile" | $SED \ 22372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 22373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22374 -e 's:$: $lt_compiler_flag:'` 22375 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 22376 (eval "$lt_compile" 2>conftest.err) 22377 ac_status=$? 22378 cat conftest.err >&5 22379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22380 if (exit $ac_status) && test -s "$ac_outfile"; then 22381 # The compiler can only warn and ignore the option if not recognized 22382 # So say no if there are warnings other than the usual output. 22383 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 22384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 22385 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 22386 lt_cv_prog_compiler_pic_works_CXX=yes 22387 fi 22388 fi 22389 $RM conftest* 22390 22391 fi 22392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 22393 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 22394 22395 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 22396 case $lt_prog_compiler_pic_CXX in 22397 "" | " "*) ;; 22398 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 22399 esac 22400 else 22401 lt_prog_compiler_pic_CXX= 22402 lt_prog_compiler_can_build_shared_CXX=no 22403 fi 22404 22405 fi 22406 22407 22408 22409 22410 22411 # 22412 # Check to make sure the static flag actually works. 22413 # 22414 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 22415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 22416 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 22417 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 22418 $as_echo_n "(cached) " >&6 22419 else 22420 lt_cv_prog_compiler_static_works_CXX=no 22421 save_LDFLAGS=$LDFLAGS 22422 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 22423 echo "$lt_simple_link_test_code" > conftest.$ac_ext 22424 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 22425 # The linker can only warn and ignore the option if not recognized 22426 # So say no if there are warnings 22427 if test -s conftest.err; then 22428 # Append any errors to the config.log. 22429 cat conftest.err 1>&5 22430 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 22431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 22432 if diff conftest.exp conftest.er2 >/dev/null; then 22433 lt_cv_prog_compiler_static_works_CXX=yes 22434 fi 22435 else 22436 lt_cv_prog_compiler_static_works_CXX=yes 22437 fi 22438 fi 22439 $RM -r conftest* 22440 LDFLAGS=$save_LDFLAGS 22441 22442 fi 22443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 22444 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 22445 22446 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 22447 : 22448 else 22449 lt_prog_compiler_static_CXX= 22450 fi 22451 22452 22453 22454 22455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 22456 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 22457 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 22458 $as_echo_n "(cached) " >&6 22459 else 22460 lt_cv_prog_compiler_c_o_CXX=no 22461 $RM -r conftest 2>/dev/null 22462 mkdir conftest 22463 cd conftest 22464 mkdir out 22465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22466 22467 lt_compiler_flag="-o out/conftest2.$ac_objext" 22468 # Insert the option either (1) after the last *FLAGS variable, or 22469 # (2) before a word containing "conftest.", or (3) at the end. 22470 # Note that $ac_compile itself does not contain backslashes and begins 22471 # with a dollar sign (not a hyphen), so the echo should work correctly. 22472 lt_compile=`echo "$ac_compile" | $SED \ 22473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 22474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22475 -e 's:$: $lt_compiler_flag:'` 22476 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 22477 (eval "$lt_compile" 2>out/conftest.err) 22478 ac_status=$? 22479 cat out/conftest.err >&5 22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22481 if (exit $ac_status) && test -s out/conftest2.$ac_objext 22482 then 22483 # The compiler can only warn and ignore the option if not recognized 22484 # So say no if there are warnings 22485 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 22486 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 22487 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 22488 lt_cv_prog_compiler_c_o_CXX=yes 22489 fi 22490 fi 22491 chmod u+w . 2>&5 22492 $RM conftest* 22493 # SGI C++ compiler will create directory out/ii_files/ for 22494 # template instantiation 22495 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 22496 $RM out/* && rmdir out 22497 cd .. 22498 $RM -r conftest 22499 $RM conftest* 22500 22501 fi 22502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 22503 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 22504 22505 22506 22507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 22508 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 22509 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 22510 $as_echo_n "(cached) " >&6 22511 else 22512 lt_cv_prog_compiler_c_o_CXX=no 22513 $RM -r conftest 2>/dev/null 22514 mkdir conftest 22515 cd conftest 22516 mkdir out 22517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22518 22519 lt_compiler_flag="-o out/conftest2.$ac_objext" 22520 # Insert the option either (1) after the last *FLAGS variable, or 22521 # (2) before a word containing "conftest.", or (3) at the end. 22522 # Note that $ac_compile itself does not contain backslashes and begins 22523 # with a dollar sign (not a hyphen), so the echo should work correctly. 22524 lt_compile=`echo "$ac_compile" | $SED \ 22525 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 22526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22527 -e 's:$: $lt_compiler_flag:'` 22528 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 22529 (eval "$lt_compile" 2>out/conftest.err) 22530 ac_status=$? 22531 cat out/conftest.err >&5 22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22533 if (exit $ac_status) && test -s out/conftest2.$ac_objext 22534 then 22535 # The compiler can only warn and ignore the option if not recognized 22536 # So say no if there are warnings 22537 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 22538 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 22539 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 22540 lt_cv_prog_compiler_c_o_CXX=yes 22541 fi 22542 fi 22543 chmod u+w . 2>&5 22544 $RM conftest* 22545 # SGI C++ compiler will create directory out/ii_files/ for 22546 # template instantiation 22547 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 22548 $RM out/* && rmdir out 22549 cd .. 22550 $RM -r conftest 22551 $RM conftest* 22552 22553 fi 22554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 22555 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 22556 22557 22558 22559 22560 hard_links=nottested 22561 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 22562 # do not overwrite the value of need_locks provided by the user 22563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 22564 $as_echo_n "checking if we can lock with hard links... " >&6; } 22565 hard_links=yes 22566 $RM conftest* 22567 ln conftest.a conftest.b 2>/dev/null && hard_links=no 22568 touch conftest.a 22569 ln conftest.a conftest.b 2>&5 || hard_links=no 22570 ln conftest.a conftest.b 2>/dev/null && hard_links=no 22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 22572 $as_echo "$hard_links" >&6; } 22573 if test no = "$hard_links"; then 22574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 22575 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 22576 need_locks=warn 22577 fi 22578 else 22579 need_locks=no 22580 fi 22581 22582 22583 22584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 22585 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 22586 22587 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 22588 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 22589 case $host_os in 22590 aix[4-9]*) 22591 # If we're using GNU nm, then we don't want the "-C" option. 22592 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 22593 # Without the "-l" option, or with the "-B" option, AIX nm treats 22594 # weak defined symbols like other global defined symbols, whereas 22595 # GNU nm marks them as "W". 22596 # While the 'weak' keyword is ignored in the Export File, we need 22597 # it in the Import File for the 'aix-soname' feature, so we have 22598 # to replace the "-B" option with "-P" for AIX nm. 22599 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 22600 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 22601 else 22602 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 22603 fi 22604 ;; 22605 pw32*) 22606 export_symbols_cmds_CXX=$ltdll_cmds 22607 ;; 22608 cygwin* | mingw* | cegcc*) 22609 case $cc_basename in 22610 cl*) 22611 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 22612 ;; 22613 *) 22614 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 22615 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 22616 ;; 22617 esac 22618 ;; 22619 *) 22620 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 22621 ;; 22622 esac 22623 22624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 22625 $as_echo "$ld_shlibs_CXX" >&6; } 22626 test no = "$ld_shlibs_CXX" && can_build_shared=no 22627 22628 with_gnu_ld_CXX=$with_gnu_ld 22629 22630 22631 22632 22633 22634 22635 # 22636 # Do we need to explicitly link libc? 22637 # 22638 case "x$archive_cmds_need_lc_CXX" in 22639 x|xyes) 22640 # Assume -lc should be added 22641 archive_cmds_need_lc_CXX=yes 22642 22643 if test yes,yes = "$GCC,$enable_shared"; then 22644 case $archive_cmds_CXX in 22645 *'~'*) 22646 # FIXME: we may have to deal with multi-command sequences. 22647 ;; 22648 '$CC '*) 22649 # Test whether the compiler implicitly links with -lc since on some 22650 # systems, -lgcc has to come before -lc. If gcc already passes -lc 22651 # to ld, don't add -lc before -lgcc. 22652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 22653 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 22654 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 22655 $as_echo_n "(cached) " >&6 22656 else 22657 $RM conftest* 22658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22659 22660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 22661 (eval $ac_compile) 2>&5 22662 ac_status=$? 22663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22664 test $ac_status = 0; } 2>conftest.err; then 22665 soname=conftest 22666 lib=conftest 22667 libobjs=conftest.$ac_objext 22668 deplibs= 22669 wl=$lt_prog_compiler_wl_CXX 22670 pic_flag=$lt_prog_compiler_pic_CXX 22671 compiler_flags=-v 22672 linker_flags=-v 22673 verstring= 22674 output_objdir=. 22675 libname=conftest 22676 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 22677 allow_undefined_flag_CXX= 22678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 22679 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 22680 ac_status=$? 22681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22682 test $ac_status = 0; } 22683 then 22684 lt_cv_archive_cmds_need_lc_CXX=no 22685 else 22686 lt_cv_archive_cmds_need_lc_CXX=yes 22687 fi 22688 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 22689 else 22690 cat conftest.err 1>&5 22691 fi 22692 $RM conftest* 22693 22694 fi 22695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 22696 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 22697 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 22698 ;; 22699 esac 22700 fi 22701 ;; 22702 esac 22703 22704 22705 22706 22707 22708 22709 22710 22711 22712 22713 22714 22715 22716 22717 22718 22719 22720 22721 22722 22723 22724 22725 22726 22727 22728 22729 22730 22731 22732 22733 22734 22735 22736 22737 22738 22739 22740 22741 22742 22743 22744 22745 22746 22747 22748 22749 22750 22751 22752 22753 22754 22755 22756 22757 22758 22759 22760 22761 22762 22763 22764 22765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 22766 $as_echo_n "checking dynamic linker characteristics... " >&6; } 22767 22768 library_names_spec= 22769 libname_spec='lib$name' 22770 soname_spec= 22771 shrext_cmds=.so 22772 postinstall_cmds= 22773 postuninstall_cmds= 22774 finish_cmds= 22775 finish_eval= 22776 shlibpath_var= 22777 shlibpath_overrides_runpath=unknown 22778 version_type=none 22779 dynamic_linker="$host_os ld.so" 22780 sys_lib_dlsearch_path_spec="/lib /usr/lib" 22781 need_lib_prefix=unknown 22782 hardcode_into_libs=no 22783 22784 # when you set need_version to no, make sure it does not cause -set_version 22785 # flags to be left without arguments 22786 need_version=unknown 22787 22788 22789 22790 case $host_os in 22791 aix3*) 22792 version_type=linux # correct to gnu/linux during the next big refactor 22793 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 22794 shlibpath_var=LIBPATH 22795 22796 # AIX 3 has no versioning support, so we append a major version to the name. 22797 soname_spec='$libname$release$shared_ext$major' 22798 ;; 22799 22800 aix[4-9]*) 22801 version_type=linux # correct to gnu/linux during the next big refactor 22802 need_lib_prefix=no 22803 need_version=no 22804 hardcode_into_libs=yes 22805 if test ia64 = "$host_cpu"; then 22806 # AIX 5 supports IA64 22807 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 22808 shlibpath_var=LD_LIBRARY_PATH 22809 else 22810 # With GCC up to 2.95.x, collect2 would create an import file 22811 # for dependence libraries. The import file would start with 22812 # the line '#! .'. This would cause the generated library to 22813 # depend on '.', always an invalid library. This was fixed in 22814 # development snapshots of GCC prior to 3.0. 22815 case $host_os in 22816 aix4 | aix4.[01] | aix4.[01].*) 22817 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 22818 echo ' yes ' 22819 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 22820 : 22821 else 22822 can_build_shared=no 22823 fi 22824 ;; 22825 esac 22826 # Using Import Files as archive members, it is possible to support 22827 # filename-based versioning of shared library archives on AIX. While 22828 # this would work for both with and without runtime linking, it will 22829 # prevent static linking of such archives. So we do filename-based 22830 # shared library versioning with .so extension only, which is used 22831 # when both runtime linking and shared linking is enabled. 22832 # Unfortunately, runtime linking may impact performance, so we do 22833 # not want this to be the default eventually. Also, we use the 22834 # versioned .so libs for executables only if there is the -brtl 22835 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 22836 # To allow for filename-based versioning support, we need to create 22837 # libNAME.so.V as an archive file, containing: 22838 # *) an Import File, referring to the versioned filename of the 22839 # archive as well as the shared archive member, telling the 22840 # bitwidth (32 or 64) of that shared object, and providing the 22841 # list of exported symbols of that shared object, eventually 22842 # decorated with the 'weak' keyword 22843 # *) the shared object with the F_LOADONLY flag set, to really avoid 22844 # it being seen by the linker. 22845 # At run time we better use the real file rather than another symlink, 22846 # but for link time we create the symlink libNAME.so -> libNAME.so.V 22847 22848 case $with_aix_soname,$aix_use_runtimelinking in 22849 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 22850 # soname into executable. Probably we can add versioning support to 22851 # collect2, so additional links can be useful in future. 22852 aix,yes) # traditional libtool 22853 dynamic_linker='AIX unversionable lib.so' 22854 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 22855 # instead of lib<name>.a to let people know that these are not 22856 # typical AIX shared libraries. 22857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22858 ;; 22859 aix,no) # traditional AIX only 22860 dynamic_linker='AIX lib.a(lib.so.V)' 22861 # We preserve .a as extension for shared libraries through AIX4.2 22862 # and later when we are not doing run time linking. 22863 library_names_spec='$libname$release.a $libname.a' 22864 soname_spec='$libname$release$shared_ext$major' 22865 ;; 22866 svr4,*) # full svr4 only 22867 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 22868 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 22869 # We do not specify a path in Import Files, so LIBPATH fires. 22870 shlibpath_overrides_runpath=yes 22871 ;; 22872 *,yes) # both, prefer svr4 22873 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 22874 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 22875 # unpreferred sharedlib libNAME.a needs extra handling 22876 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 22877 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 22878 # We do not specify a path in Import Files, so LIBPATH fires. 22879 shlibpath_overrides_runpath=yes 22880 ;; 22881 *,no) # both, prefer aix 22882 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 22883 library_names_spec='$libname$release.a $libname.a' 22884 soname_spec='$libname$release$shared_ext$major' 22885 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 22886 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 22887 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 22888 ;; 22889 esac 22890 shlibpath_var=LIBPATH 22891 fi 22892 ;; 22893 22894 amigaos*) 22895 case $host_cpu in 22896 powerpc) 22897 # Since July 2007 AmigaOS4 officially supports .so libraries. 22898 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 22899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22900 ;; 22901 m68k) 22902 library_names_spec='$libname.ixlibrary $libname.a' 22903 # Create ${libname}_ixlibrary.a entries in /sys/libs. 22904 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 22905 ;; 22906 esac 22907 ;; 22908 22909 beos*) 22910 library_names_spec='$libname$shared_ext' 22911 dynamic_linker="$host_os ld.so" 22912 shlibpath_var=LIBRARY_PATH 22913 ;; 22914 22915 bsdi[45]*) 22916 version_type=linux # correct to gnu/linux during the next big refactor 22917 need_version=no 22918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 22919 soname_spec='$libname$release$shared_ext$major' 22920 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 22921 shlibpath_var=LD_LIBRARY_PATH 22922 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 22923 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 22924 # the default ld.so.conf also contains /usr/contrib/lib and 22925 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 22926 # libtool to hard-code these into programs 22927 ;; 22928 22929 cygwin* | mingw* | pw32* | cegcc*) 22930 version_type=windows 22931 shrext_cmds=.dll 22932 need_version=no 22933 need_lib_prefix=no 22934 22935 case $GCC,$cc_basename in 22936 yes,*) 22937 # gcc 22938 library_names_spec='$libname.dll.a' 22939 # DLL is installed to $(libdir)/../bin by postinstall_cmds 22940 postinstall_cmds='base_file=`basename \$file`~ 22941 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 22942 dldir=$destdir/`dirname \$dlpath`~ 22943 test -d \$dldir || mkdir -p \$dldir~ 22944 $install_prog $dir/$dlname \$dldir/$dlname~ 22945 chmod a+x \$dldir/$dlname~ 22946 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 22947 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 22948 fi' 22949 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 22950 dlpath=$dir/\$dldll~ 22951 $RM \$dlpath' 22952 shlibpath_overrides_runpath=yes 22953 22954 case $host_os in 22955 cygwin*) 22956 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 22957 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22958 22959 ;; 22960 mingw* | cegcc*) 22961 # MinGW DLLs use traditional 'lib' prefix 22962 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22963 ;; 22964 pw32*) 22965 # pw32 DLLs use 'pw' prefix rather than 'lib' 22966 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22967 ;; 22968 esac 22969 dynamic_linker='Win32 ld.exe' 22970 ;; 22971 22972 *,cl*) 22973 # Native MSVC 22974 libname_spec='$name' 22975 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 22976 library_names_spec='$libname.dll.lib' 22977 22978 case $build_os in 22979 mingw*) 22980 sys_lib_search_path_spec= 22981 lt_save_ifs=$IFS 22982 IFS=';' 22983 for lt_path in $LIB 22984 do 22985 IFS=$lt_save_ifs 22986 # Let DOS variable expansion print the short 8.3 style file name. 22987 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 22988 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 22989 done 22990 IFS=$lt_save_ifs 22991 # Convert to MSYS style. 22992 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 22993 ;; 22994 cygwin*) 22995 # Convert to unix form, then to dos form, then back to unix form 22996 # but this time dos style (no spaces!) so that the unix form looks 22997 # like /cygdrive/c/PROGRA~1:/cygdr... 22998 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 22999 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 23000 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 23001 ;; 23002 *) 23003 sys_lib_search_path_spec=$LIB 23004 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 23005 # It is most probably a Windows format PATH. 23006 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 23007 else 23008 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 23009 fi 23010 # FIXME: find the short name or the path components, as spaces are 23011 # common. (e.g. "Program Files" -> "PROGRA~1") 23012 ;; 23013 esac 23014 23015 # DLL is installed to $(libdir)/../bin by postinstall_cmds 23016 postinstall_cmds='base_file=`basename \$file`~ 23017 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 23018 dldir=$destdir/`dirname \$dlpath`~ 23019 test -d \$dldir || mkdir -p \$dldir~ 23020 $install_prog $dir/$dlname \$dldir/$dlname' 23021 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 23022 dlpath=$dir/\$dldll~ 23023 $RM \$dlpath' 23024 shlibpath_overrides_runpath=yes 23025 dynamic_linker='Win32 link.exe' 23026 ;; 23027 23028 *) 23029 # Assume MSVC wrapper 23030 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 23031 dynamic_linker='Win32 ld.exe' 23032 ;; 23033 esac 23034 # FIXME: first we should search . and the directory the executable is in 23035 shlibpath_var=PATH 23036 ;; 23037 23038 darwin* | rhapsody*) 23039 dynamic_linker="$host_os dyld" 23040 version_type=darwin 23041 need_lib_prefix=no 23042 need_version=no 23043 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 23044 soname_spec='$libname$release$major$shared_ext' 23045 shlibpath_overrides_runpath=yes 23046 shlibpath_var=DYLD_LIBRARY_PATH 23047 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 23048 23049 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 23050 ;; 23051 23052 dgux*) 23053 version_type=linux # correct to gnu/linux during the next big refactor 23054 need_lib_prefix=no 23055 need_version=no 23056 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23057 soname_spec='$libname$release$shared_ext$major' 23058 shlibpath_var=LD_LIBRARY_PATH 23059 ;; 23060 23061 freebsd* | dragonfly*) 23062 # DragonFly does not have aout. When/if they implement a new 23063 # versioning mechanism, adjust this. 23064 if test -x /usr/bin/objformat; then 23065 objformat=`/usr/bin/objformat` 23066 else 23067 case $host_os in 23068 freebsd[23].*) objformat=aout ;; 23069 *) objformat=elf ;; 23070 esac 23071 fi 23072 version_type=freebsd-$objformat 23073 case $version_type in 23074 freebsd-elf*) 23075 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23076 soname_spec='$libname$release$shared_ext$major' 23077 need_version=no 23078 need_lib_prefix=no 23079 ;; 23080 freebsd-*) 23081 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 23082 need_version=yes 23083 ;; 23084 esac 23085 shlibpath_var=LD_LIBRARY_PATH 23086 case $host_os in 23087 freebsd2.*) 23088 shlibpath_overrides_runpath=yes 23089 ;; 23090 freebsd3.[01]* | freebsdelf3.[01]*) 23091 shlibpath_overrides_runpath=yes 23092 hardcode_into_libs=yes 23093 ;; 23094 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 23095 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 23096 shlibpath_overrides_runpath=no 23097 hardcode_into_libs=yes 23098 ;; 23099 *) # from 4.6 on, and DragonFly 23100 shlibpath_overrides_runpath=yes 23101 hardcode_into_libs=yes 23102 ;; 23103 esac 23104 ;; 23105 23106 haiku*) 23107 version_type=linux # correct to gnu/linux during the next big refactor 23108 need_lib_prefix=no 23109 need_version=no 23110 dynamic_linker="$host_os runtime_loader" 23111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23112 soname_spec='$libname$release$shared_ext$major' 23113 shlibpath_var=LIBRARY_PATH 23114 shlibpath_overrides_runpath=no 23115 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 23116 hardcode_into_libs=yes 23117 ;; 23118 23119 hpux9* | hpux10* | hpux11*) 23120 # Give a soname corresponding to the major version so that dld.sl refuses to 23121 # link against other versions. 23122 version_type=sunos 23123 need_lib_prefix=no 23124 need_version=no 23125 case $host_cpu in 23126 ia64*) 23127 shrext_cmds='.so' 23128 hardcode_into_libs=yes 23129 dynamic_linker="$host_os dld.so" 23130 shlibpath_var=LD_LIBRARY_PATH 23131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 23132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23133 soname_spec='$libname$release$shared_ext$major' 23134 if test 32 = "$HPUX_IA64_MODE"; then 23135 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 23136 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 23137 else 23138 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 23139 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 23140 fi 23141 ;; 23142 hppa*64*) 23143 shrext_cmds='.sl' 23144 hardcode_into_libs=yes 23145 dynamic_linker="$host_os dld.sl" 23146 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 23147 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 23148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23149 soname_spec='$libname$release$shared_ext$major' 23150 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 23151 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 23152 ;; 23153 *) 23154 shrext_cmds='.sl' 23155 dynamic_linker="$host_os dld.sl" 23156 shlibpath_var=SHLIB_PATH 23157 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 23158 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23159 soname_spec='$libname$release$shared_ext$major' 23160 ;; 23161 esac 23162 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 23163 postinstall_cmds='chmod 555 $lib' 23164 # or fails outright, so override atomically: 23165 install_override_mode=555 23166 ;; 23167 23168 interix[3-9]*) 23169 version_type=linux # correct to gnu/linux during the next big refactor 23170 need_lib_prefix=no 23171 need_version=no 23172 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23173 soname_spec='$libname$release$shared_ext$major' 23174 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 23175 shlibpath_var=LD_LIBRARY_PATH 23176 shlibpath_overrides_runpath=no 23177 hardcode_into_libs=yes 23178 ;; 23179 23180 irix5* | irix6* | nonstopux*) 23181 case $host_os in 23182 nonstopux*) version_type=nonstopux ;; 23183 *) 23184 if test yes = "$lt_cv_prog_gnu_ld"; then 23185 version_type=linux # correct to gnu/linux during the next big refactor 23186 else 23187 version_type=irix 23188 fi ;; 23189 esac 23190 need_lib_prefix=no 23191 need_version=no 23192 soname_spec='$libname$release$shared_ext$major' 23193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 23194 case $host_os in 23195 irix5* | nonstopux*) 23196 libsuff= shlibsuff= 23197 ;; 23198 *) 23199 case $LD in # libtool.m4 will add one of these switches to LD 23200 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 23201 libsuff= shlibsuff= libmagic=32-bit;; 23202 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 23203 libsuff=32 shlibsuff=N32 libmagic=N32;; 23204 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 23205 libsuff=64 shlibsuff=64 libmagic=64-bit;; 23206 *) libsuff= shlibsuff= libmagic=never-match;; 23207 esac 23208 ;; 23209 esac 23210 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 23211 shlibpath_overrides_runpath=no 23212 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 23213 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 23214 hardcode_into_libs=yes 23215 ;; 23216 23217 # No shared lib support for Linux oldld, aout, or coff. 23218 linux*oldld* | linux*aout* | linux*coff*) 23219 dynamic_linker=no 23220 ;; 23221 23222 linux*android*) 23223 version_type=none # Android doesn't support versioned libraries. 23224 need_lib_prefix=no 23225 need_version=no 23226 library_names_spec='$libname$release$shared_ext' 23227 soname_spec='$libname$release$shared_ext' 23228 finish_cmds= 23229 shlibpath_var=LD_LIBRARY_PATH 23230 shlibpath_overrides_runpath=yes 23231 23232 # This implies no fast_install, which is unacceptable. 23233 # Some rework will be needed to allow for fast_install 23234 # before this can be enabled. 23235 hardcode_into_libs=yes 23236 23237 dynamic_linker='Android linker' 23238 # Don't embed -rpath directories since the linker doesn't support them. 23239 hardcode_libdir_flag_spec_CXX='-L$libdir' 23240 ;; 23241 23242 # This must be glibc/ELF. 23243 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 23244 version_type=linux # correct to gnu/linux during the next big refactor 23245 need_lib_prefix=no 23246 need_version=no 23247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23248 soname_spec='$libname$release$shared_ext$major' 23249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 23250 shlibpath_var=LD_LIBRARY_PATH 23251 shlibpath_overrides_runpath=no 23252 23253 # Some binutils ld are patched to set DT_RUNPATH 23254 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 23255 $as_echo_n "(cached) " >&6 23256 else 23257 lt_cv_shlibpath_overrides_runpath=no 23258 save_LDFLAGS=$LDFLAGS 23259 save_libdir=$libdir 23260 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 23261 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 23262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23263 /* end confdefs.h. */ 23264 23265 int 23266 main () 23267 { 23268 23269 ; 23270 return 0; 23271 } 23272 _ACEOF 23273 if ac_fn_cxx_try_link "$LINENO"; then : 23274 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 23275 lt_cv_shlibpath_overrides_runpath=yes 23276 fi 23277 fi 23278 rm -f core conftest.err conftest.$ac_objext \ 23279 conftest$ac_exeext conftest.$ac_ext 23280 LDFLAGS=$save_LDFLAGS 23281 libdir=$save_libdir 23282 23283 fi 23284 23285 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 23286 23287 # This implies no fast_install, which is unacceptable. 23288 # Some rework will be needed to allow for fast_install 23289 # before this can be enabled. 23290 hardcode_into_libs=yes 23291 23292 # Add ABI-specific directories to the system library path. 23293 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 23294 23295 # Ideally, we could use ldconfig to report *all* directores which are 23296 # searched for libraries, however this is still not possible. Aside from not 23297 # being certain /sbin/ldconfig is available, command 23298 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 23299 # even though it is searched at run-time. Try to do the best guess by 23300 # appending ld.so.conf contents (and includes) to the search path. 23301 if test -f /etc/ld.so.conf; then 23302 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;s/"//g;/^$/d' | tr '\n' ' '` 23303 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 23304 fi 23305 23306 # We used to test for /lib/ld.so.1 and disable shared libraries on 23307 # powerpc, because MkLinux only supported shared libraries with the 23308 # GNU dynamic linker. Since this was broken with cross compilers, 23309 # most powerpc-linux boxes support dynamic linking these days and 23310 # people can always --disable-shared, the test was removed, and we 23311 # assume the GNU/Linux dynamic linker is in use. 23312 dynamic_linker='GNU/Linux ld.so' 23313 ;; 23314 23315 netbsd*) 23316 version_type=sunos 23317 need_lib_prefix=no 23318 need_version=no 23319 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 23320 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 23321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 23322 dynamic_linker='NetBSD (a.out) ld.so' 23323 else 23324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23325 soname_spec='$libname$release$shared_ext$major' 23326 dynamic_linker='NetBSD ld.elf_so' 23327 fi 23328 shlibpath_var=LD_LIBRARY_PATH 23329 shlibpath_overrides_runpath=yes 23330 hardcode_into_libs=yes 23331 ;; 23332 23333 newsos6) 23334 version_type=linux # correct to gnu/linux during the next big refactor 23335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23336 shlibpath_var=LD_LIBRARY_PATH 23337 shlibpath_overrides_runpath=yes 23338 ;; 23339 23340 *nto* | *qnx*) 23341 version_type=qnx 23342 need_lib_prefix=no 23343 need_version=no 23344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23345 soname_spec='$libname$release$shared_ext$major' 23346 shlibpath_var=LD_LIBRARY_PATH 23347 shlibpath_overrides_runpath=no 23348 hardcode_into_libs=yes 23349 dynamic_linker='ldqnx.so' 23350 ;; 23351 23352 openbsd* | bitrig*) 23353 version_type=sunos 23354 sys_lib_dlsearch_path_spec=/usr/lib 23355 need_lib_prefix=no 23356 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 23357 need_version=no 23358 else 23359 need_version=yes 23360 fi 23361 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 23362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 23363 shlibpath_var=LD_LIBRARY_PATH 23364 shlibpath_overrides_runpath=yes 23365 ;; 23366 23367 os2*) 23368 libname_spec='$name' 23369 version_type=windows 23370 shrext_cmds=.dll 23371 need_version=no 23372 need_lib_prefix=no 23373 # OS/2 can only load a DLL with a base name of 8 characters or less. 23374 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 23375 v=$($ECHO $release$versuffix | tr -d .-); 23376 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 23377 $ECHO $n$v`$shared_ext' 23378 library_names_spec='${libname}_dll.$libext' 23379 dynamic_linker='OS/2 ld.exe' 23380 shlibpath_var=BEGINLIBPATH 23381 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 23382 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 23383 postinstall_cmds='base_file=`basename \$file`~ 23384 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 23385 dldir=$destdir/`dirname \$dlpath`~ 23386 test -d \$dldir || mkdir -p \$dldir~ 23387 $install_prog $dir/$dlname \$dldir/$dlname~ 23388 chmod a+x \$dldir/$dlname~ 23389 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 23390 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 23391 fi' 23392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 23393 dlpath=$dir/\$dldll~ 23394 $RM \$dlpath' 23395 ;; 23396 23397 osf3* | osf4* | osf5*) 23398 version_type=osf 23399 need_lib_prefix=no 23400 need_version=no 23401 soname_spec='$libname$release$shared_ext$major' 23402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23403 shlibpath_var=LD_LIBRARY_PATH 23404 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 23405 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 23406 ;; 23407 23408 rdos*) 23409 dynamic_linker=no 23410 ;; 23411 23412 solaris*) 23413 version_type=linux # correct to gnu/linux during the next big refactor 23414 need_lib_prefix=no 23415 need_version=no 23416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23417 soname_spec='$libname$release$shared_ext$major' 23418 shlibpath_var=LD_LIBRARY_PATH 23419 shlibpath_overrides_runpath=yes 23420 hardcode_into_libs=yes 23421 # ldd complains unless libraries are executable 23422 postinstall_cmds='chmod +x $lib' 23423 ;; 23424 23425 sunos4*) 23426 version_type=sunos 23427 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 23428 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 23429 shlibpath_var=LD_LIBRARY_PATH 23430 shlibpath_overrides_runpath=yes 23431 if test yes = "$with_gnu_ld"; then 23432 need_lib_prefix=no 23433 fi 23434 need_version=yes 23435 ;; 23436 23437 sysv4 | sysv4.3*) 23438 version_type=linux # correct to gnu/linux during the next big refactor 23439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23440 soname_spec='$libname$release$shared_ext$major' 23441 shlibpath_var=LD_LIBRARY_PATH 23442 case $host_vendor in 23443 sni) 23444 shlibpath_overrides_runpath=no 23445 need_lib_prefix=no 23446 runpath_var=LD_RUN_PATH 23447 ;; 23448 siemens) 23449 need_lib_prefix=no 23450 ;; 23451 motorola) 23452 need_lib_prefix=no 23453 need_version=no 23454 shlibpath_overrides_runpath=no 23455 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 23456 ;; 23457 esac 23458 ;; 23459 23460 sysv4*MP*) 23461 if test -d /usr/nec; then 23462 version_type=linux # correct to gnu/linux during the next big refactor 23463 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 23464 soname_spec='$libname$shared_ext.$major' 23465 shlibpath_var=LD_LIBRARY_PATH 23466 fi 23467 ;; 23468 23469 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 23470 version_type=sco 23471 need_lib_prefix=no 23472 need_version=no 23473 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 23474 soname_spec='$libname$release$shared_ext$major' 23475 shlibpath_var=LD_LIBRARY_PATH 23476 shlibpath_overrides_runpath=yes 23477 hardcode_into_libs=yes 23478 if test yes = "$with_gnu_ld"; then 23479 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 23480 else 23481 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 23482 case $host_os in 23483 sco3.2v5*) 23484 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 23485 ;; 23486 esac 23487 fi 23488 sys_lib_dlsearch_path_spec='/usr/lib' 23489 ;; 23490 23491 tpf*) 23492 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 23493 version_type=linux # correct to gnu/linux during the next big refactor 23494 need_lib_prefix=no 23495 need_version=no 23496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23497 shlibpath_var=LD_LIBRARY_PATH 23498 shlibpath_overrides_runpath=no 23499 hardcode_into_libs=yes 23500 ;; 23501 23502 uts4*) 23503 version_type=linux # correct to gnu/linux during the next big refactor 23504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 23505 soname_spec='$libname$release$shared_ext$major' 23506 shlibpath_var=LD_LIBRARY_PATH 23507 ;; 23508 23509 *) 23510 dynamic_linker=no 23511 ;; 23512 esac 23513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 23514 $as_echo "$dynamic_linker" >&6; } 23515 test no = "$dynamic_linker" && can_build_shared=no 23516 23517 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 23518 if test yes = "$GCC"; then 23519 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 23520 fi 23521 23522 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 23523 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 23524 fi 23525 23526 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 23527 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 23528 fi 23529 23530 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 23531 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 23532 23533 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 23534 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 23535 23536 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 23537 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 23538 23539 23540 23541 23542 23543 23544 23545 23546 23547 23548 23549 23550 23551 23552 23553 23554 23555 23556 23557 23558 23559 23560 23561 23562 23563 23564 23565 23566 23567 23568 23569 23570 23571 23572 23573 23574 23575 23576 23577 23578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 23579 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 23580 hardcode_action_CXX= 23581 if test -n "$hardcode_libdir_flag_spec_CXX" || 23582 test -n "$runpath_var_CXX" || 23583 test yes = "$hardcode_automatic_CXX"; then 23584 23585 # We can hardcode non-existent directories. 23586 if test no != "$hardcode_direct_CXX" && 23587 # If the only mechanism to avoid hardcoding is shlibpath_var, we 23588 # have to relink, otherwise we might link with an installed library 23589 # when we should be linking with a yet-to-be-installed one 23590 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 23591 test no != "$hardcode_minus_L_CXX"; then 23592 # Linking always hardcodes the temporary library directory. 23593 hardcode_action_CXX=relink 23594 else 23595 # We can link without hardcoding, and we can hardcode nonexisting dirs. 23596 hardcode_action_CXX=immediate 23597 fi 23598 else 23599 # We cannot hardcode anything, or else we can only hardcode existing 23600 # directories. 23601 hardcode_action_CXX=unsupported 23602 fi 23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 23604 $as_echo "$hardcode_action_CXX" >&6; } 23605 23606 if test relink = "$hardcode_action_CXX" || 23607 test yes = "$inherit_rpath_CXX"; then 23608 # Fast installation is not supported 23609 enable_fast_install=no 23610 elif test yes = "$shlibpath_overrides_runpath" || 23611 test no = "$enable_shared"; then 23612 # Fast installation is not necessary 23613 enable_fast_install=needless 23614 fi 23615 23616 23617 23618 23619 23620 23621 23622 fi # test -n "$compiler" 23623 23624 CC=$lt_save_CC 23625 CFLAGS=$lt_save_CFLAGS 23626 LDCXX=$LD 23627 LD=$lt_save_LD 23628 GCC=$lt_save_GCC 23629 with_gnu_ld=$lt_save_with_gnu_ld 23630 lt_cv_path_LDCXX=$lt_cv_path_LD 23631 lt_cv_path_LD=$lt_save_path_LD 23632 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 23633 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 23634 fi # test yes != "$_lt_caught_CXX_error" 23635 23636 ac_ext=c 23637 ac_cpp='$CPP $CPPFLAGS' 23638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23640 ac_compiler_gnu=$ac_cv_c_compiler_gnu 23641 23642 23643 23644 23645 23646 23647 23648 23649 23650 23651 23652 23653 23654 23655 23656 ac_config_commands="$ac_config_commands libtool" 23657 23658 23659 23660 23661 # Only expand once: 23662 23663 23664 23665 23666 23667 # Check to see if building shared libraries 23668 libtool_build_shared_libs='no' 23669 if test "$enable_shared" = 'yes'; then 23670 libtool_build_shared_libs='yes' 23671 fi 23672 23673 # Check to see if building static libraries 23674 libtool_build_static_libs='no' 23675 if test "$enable_static" = 'yes'; then 23676 libtool_build_static_libs='yes' 23677 fi 23678 23679 if test "${libtool_build_shared_libs}" = 'yes'; then 23680 WITH_SHARED_LIBS_TRUE= 23681 WITH_SHARED_LIBS_FALSE='#' 23682 else 23683 WITH_SHARED_LIBS_TRUE='#' 23684 WITH_SHARED_LIBS_FALSE= 23685 fi 23686 23687 # 23688 # Enable support for building loadable modules 23689 # 23690 build_modules='no' 23691 23692 # Check whether --with-modules was given. 23693 if test "${with_modules+set}" = set; then : 23694 withval=$with_modules; with_modules=$withval 23695 else 23696 with_modules='no' 23697 fi 23698 23699 23700 # Only allow building loadable modules if we are building shared libraries 23701 if test "$with_modules" != 'no' ; then 23702 if test "$libtool_build_shared_libs" = 'no'; then 23703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5 23704 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;} 23705 build_modules='no' 23706 else 23707 build_modules='yes' 23708 fi 23709 fi 23710 if test "$build_modules" != 'no' ; then 23711 23712 $as_echo "#define BUILD_MODULES 1" >>confdefs.h 23713 23714 MAGICK_FEATURES="$MAGICK_FEATURES Modules" 23715 fi 23716 if test "$build_modules" != 'no'; then 23717 WITH_MODULES_TRUE= 23718 WITH_MODULES_FALSE='#' 23719 else 23720 WITH_MODULES_TRUE='#' 23721 WITH_MODULES_FALSE= 23722 fi 23723 23724 23725 # Enable build using delegate libraries built in subdirectories rather than installed 23726 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib) 23727 # Check whether --enable-delegate-build was given. 23728 if test "${enable_delegate_build+set}" = set; then : 23729 enableval=$enable_delegate_build; enable_delegate_build=$enableval 23730 else 23731 enable_delegate_build='no' 23732 fi 23733 23734 23735 # Check whether --enable-deprecated was given. 23736 if test "${enable_deprecated+set}" = set; then : 23737 enableval=$enable_deprecated; enable_deprecated=$enableval 23738 else 23739 enable_deprecated='no' 23740 fi 23741 23742 23743 if test "$enable_deprecated" = 'yes'; then 23744 23745 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h 23746 23747 else 23748 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated " 23749 fi 23750 23751 # Build a version of ImageMagick which operates uninstalled. 23752 # Used to build distributions located via MAGICK_HOME / executable path 23753 # Check whether --enable-installed was given. 23754 if test "${enable_installed+set}" = set; then : 23755 enableval=$enable_installed; enable_installed=$enableval 23756 else 23757 enable_installed='yes' 23758 fi 23759 23760 23761 if test "$enable_installed" = 'yes'; then 23762 23763 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h 23764 23765 else 23766 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed " 23767 fi 23768 23769 # Permit enciphering and deciphering image pixels. 23770 # Check whether --enable-cipher was given. 23771 if test "${enable_cipher+set}" = set; then : 23772 enableval=$enable_cipher; enable_cipher=$enableval 23773 else 23774 enable_cipher='yes' 23775 fi 23776 23777 23778 if test "$enable_cipher" = 'yes'; then 23779 23780 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h 23781 23782 MAGICK_FEATURES="Cipher $MAGICK_FEATURES" 23783 fi 23784 23785 # Build a zero-configuration version of ImageMagick. 23786 # Check whether --enable-zero-configuration was given. 23787 if test "${enable_zero_configuration+set}" = set; then : 23788 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval 23789 else 23790 enable_zero_configuration='no' 23791 fi 23792 23793 23794 if test "$enable_zero_configuration" = 'yes'; then 23795 23796 $as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h 23797 23798 MAGICK_FEATURES="Zero-configuration $MAGICK_FEATURES" 23799 fi 23800 23801 # Build a high dynamic range version of ImageMagick. 23802 # Check whether --enable-hdri was given. 23803 if test "${enable_hdri+set}" = set; then : 23804 enableval=$enable_hdri; enable_hdri=$enableval 23805 else 23806 enable_hdri='yes' 23807 fi 23808 23809 23810 MAGICK_HDRI="" 23811 if test "$enable_hdri" = 'yes'; then 23812 MAGICK_HDRI="HDRI" 23813 magick_hdri_enable='1'; 23814 MAGICK_FEATURES="HDRI $MAGICK_FEATURES" 23815 else 23816 magick_hdri_enable='0' 23817 fi 23818 23819 cat >>confdefs.h <<_ACEOF 23820 #define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable 23821 _ACEOF 23822 23823 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable" 23824 CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable" 23825 CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable" 23826 23827 # Enable pipes (|) in filenames. 23828 # Check whether --enable-pipes was given. 23829 if test "${enable_pipes+set}" = set; then : 23830 enableval=$enable_pipes; enable_pipes=$enableval 23831 else 23832 enable_pipes='no' 23833 fi 23834 23835 23836 if test "$enable_pipes" = 'yes'; then 23837 23838 $as_echo "#define PIPES_SUPPORT 1" >>confdefs.h 23839 23840 MAGICK_FEATURES="Pipes $MAGICK_FEATURES" 23841 fi 23842 23843 # Build a version of ImageMagick with assert statements. 23844 # Check whether --enable-assert was given. 23845 if test "${enable_assert+set}" = set; then : 23846 enableval=$enable_assert; enable_assert=$enableval 23847 else 23848 enable_assert='yes' 23849 fi 23850 23851 23852 if test "$enable_assert" = 'no'; then 23853 23854 $as_echo "#define NDEBUG 1" >>confdefs.h 23855 23856 fi 23857 23858 # Don't emit "rebuild rules" for configure, Makefile.ins, etc. 23859 23860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 23861 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 23862 # Check whether --enable-maintainer-mode was given. 23863 if test "${enable_maintainer_mode+set}" = set; then : 23864 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 23865 else 23866 USE_MAINTAINER_MODE=no 23867 fi 23868 23869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 23870 $as_echo "$USE_MAINTAINER_MODE" >&6; } 23871 if test $USE_MAINTAINER_MODE = yes; then 23872 MAINTAINER_MODE_TRUE= 23873 MAINTAINER_MODE_FALSE='#' 23874 else 23875 MAINTAINER_MODE_TRUE='#' 23876 MAINTAINER_MODE_FALSE= 23877 fi 23878 23879 MAINT=$MAINTAINER_MODE_TRUE 23880 23881 23882 23883 # Enable hugepages support 23884 # Check whether --enable-hugepages was given. 23885 if test "${enable_hugepages+set}" = set; then : 23886 enableval=$enable_hugepages; enable_hugepages=$enableval 23887 else 23888 enable_hugepages='no' 23889 fi 23890 23891 23892 # Enable ccmalloc memory debugging support 23893 # Check whether --enable-ccmalloc was given. 23894 if test "${enable_ccmalloc+set}" = set; then : 23895 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval 23896 else 23897 enable_ccmalloc='no' 23898 fi 23899 23900 23901 # Enable Electric Fence memory debugging support 23902 # Check whether --enable-efence was given. 23903 if test "${enable_efence+set}" = set; then : 23904 enableval=$enable_efence; enable_efence=$enableval 23905 else 23906 enable_efence='no' 23907 fi 23908 23909 23910 # Enable prof-based profiling support 23911 # Check whether --enable-prof was given. 23912 if test "${enable_prof+set}" = set; then : 23913 enableval=$enable_prof; enable_prof=$enableval 23914 else 23915 enable_prof='no' 23916 fi 23917 23918 23919 # Enable gprof-based profiling support 23920 # Check whether --enable-gprof was given. 23921 if test "${enable_gprof+set}" = set; then : 23922 enableval=$enable_gprof; enable_gprof=$enableval 23923 else 23924 enable_gprof='no' 23925 fi 23926 23927 23928 # Enable gcov-based profiling support 23929 # Check whether --enable-gcov was given. 23930 if test "${enable_gcov+set}" = set; then : 23931 enableval=$enable_gcov; enable_gcov=$enableval 23932 else 23933 enable_gcov='no' 23934 fi 23935 23936 23937 enable_profiling='no' 23938 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then 23939 enable_profiling='yes' 23940 if test "$libtool_build_shared_libs" = 'yes'; then 23941 echo "Warning: Can not profile code using shared libraries" 23942 fi 23943 fi 23944 23945 # Magick API method prefix 23946 23947 # Check whether --with-method-prefix was given. 23948 if test "${with_method_prefix+set}" = set; then : 23949 withval=$with_method_prefix; with_method_prefix=$withval 23950 else 23951 with_method_prefix='no' 23952 fi 23953 23954 23955 if test "$with_method_prefix" != 'no'; then 23956 23957 cat >>confdefs.h <<_ACEOF 23958 #define NAMESPACE_PREFIX $with_method_prefix 23959 _ACEOF 23960 23961 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix " 23962 fi 23963 23964 # Enable legacy support (default no) 23965 # Check whether --enable-legacy-support was given. 23966 if test "${enable_legacy_support+set}" = set; then : 23967 enableval=$enable_legacy_support; with_legacy_support=$enableval 23968 else 23969 with_legacy_support='no' 23970 fi 23971 23972 if test "$with_legacy_support" != 'no'; then 23973 LEGACY_SUPPORT_TRUE= 23974 LEGACY_SUPPORT_FALSE='#' 23975 else 23976 LEGACY_SUPPORT_TRUE='#' 23977 LEGACY_SUPPORT_FALSE= 23978 fi 23979 23980 23981 # Number of bits in a Quantum 23982 23983 # Check whether --with-quantum-depth was given. 23984 if test "${with_quantum_depth+set}" = set; then : 23985 withval=$with_quantum_depth; with_quantum_depth=$withval 23986 else 23987 with_quantum_depth=16 23988 fi 23989 23990 23991 if test "$with_quantum_depth" != '8'; then 23992 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth " 23993 fi 23994 23995 case "${with_quantum_depth}" in 23996 8 ) ;; 23997 16 ) ;; 23998 32 ) ;; 23999 64 ) ;; 24000 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;; 24001 esac 24002 QUANTUM_DEPTH="$with_quantum_depth" 24003 24004 cat >>confdefs.h <<_ACEOF 24005 #define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH 24006 _ACEOF 24007 24008 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH" 24009 CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH" 24010 CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH" 24011 24012 # define a lib suffix for abi purpose 24013 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}" 24014 if test "$enable_hdri" = 'yes'; then 24015 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}" 24016 fi 24017 24018 24019 # Set pixel cache threshold 24020 24021 # Check whether --with-cache was given. 24022 if test "${with_cache+set}" = set; then : 24023 withval=$with_cache; with_cache=$withval 24024 else 24025 with_cache='' 24026 fi 24027 24028 24029 if test "$with_cache" != ''; then 24030 24031 cat >>confdefs.h <<_ACEOF 24032 #define PixelCacheThreshold $with_cache 24033 _ACEOF 24034 24035 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache " 24036 fi 24037 24038 # Disable/Enable support for full delegate paths 24039 24040 # Check whether --with-frozenpaths was given. 24041 if test "${with_frozenpaths+set}" = set; then : 24042 withval=$with_frozenpaths; with_frozenpaths=$withval 24043 else 24044 with_frozenpaths='no' 24045 fi 24046 24047 24048 # Enable build/install of Magick++ 24049 24050 # Check whether --with-magick-plus-plus was given. 24051 if test "${with_magick_plus_plus+set}" = set; then : 24052 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval 24053 else 24054 with_magick_plus_plus='yes' 24055 fi 24056 24057 24058 # Encode the this name into the shared library. 24059 24060 # Check whether --with-package-release-name was given. 24061 if test "${with_package_release_name+set}" = set; then : 24062 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval" 24063 fi 24064 24065 24066 24067 # Disable build/install of PerlMagick. 24068 24069 # Check whether --with-perl was given. 24070 if test "${with_perl+set}" = set; then : 24071 withval=$with_perl; with_perl=$withval 24072 else 24073 with_perl='no' 24074 fi 24075 24076 24077 # Options to pass when configuring PerlMagick 24078 24079 # Check whether --with-perl-options was given. 24080 if test "${with_perl_options+set}" = set; then : 24081 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval 24082 fi 24083 24084 24085 24086 # Enable jemalloc, object-caching memory allocation library. 24087 24088 # Check whether --with-jemalloc was given. 24089 if test "${with_jemalloc+set}" = set; then : 24090 withval=$with_jemalloc; with_jemalloc=$withval 24091 else 24092 with_jemalloc='no' 24093 fi 24094 24095 if test "$with_jemalloc" != 'yes' ; then 24096 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc " 24097 fi 24098 24099 # Enable umem, object-caching memory allocation library. 24100 24101 # Check whether --with-umem was given. 24102 if test "${with_umem+set}" = set; then : 24103 withval=$with_umem; with_umem=$withval 24104 else 24105 with_umem='no' 24106 fi 24107 24108 if test "$with_umem" != 'yes' ; then 24109 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem " 24110 fi 24111 24112 # 24113 # Specify path to shared libstdc++ if not in normal location 24114 # 24115 24116 # Check whether --with-libstdc was given. 24117 if test "${with_libstdc+set}" = set; then : 24118 withval=$with_libstdc; with_libstdc=$withval 24119 else 24120 with_libstdc='' 24121 fi 24122 24123 24124 if test "$with_libstdc" != ''; then 24125 if test -d "$with_libstdc"; then 24126 LIBSTDCLDFLAGS="-L$with_libstdc" 24127 fi 24128 fi 24129 24130 24131 # Does gcc required -traditional? 24132 if test $ac_cv_c_compiler_gnu = yes; then 24133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 24134 $as_echo_n "checking whether $CC needs -traditional... " >&6; } 24135 if ${ac_cv_prog_gcc_traditional+:} false; then : 24136 $as_echo_n "(cached) " >&6 24137 else 24138 ac_pattern="Autoconf.*'x'" 24139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24140 /* end confdefs.h. */ 24141 #include <sgtty.h> 24142 Autoconf TIOCGETP 24143 _ACEOF 24144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24145 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 24146 ac_cv_prog_gcc_traditional=yes 24147 else 24148 ac_cv_prog_gcc_traditional=no 24149 fi 24150 rm -f conftest* 24151 24152 24153 if test $ac_cv_prog_gcc_traditional = no; then 24154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24155 /* end confdefs.h. */ 24156 #include <termio.h> 24157 Autoconf TCGETA 24158 _ACEOF 24159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24160 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 24161 ac_cv_prog_gcc_traditional=yes 24162 fi 24163 rm -f conftest* 24164 24165 fi 24166 fi 24167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 24168 $as_echo "$ac_cv_prog_gcc_traditional" >&6; } 24169 if test $ac_cv_prog_gcc_traditional = yes; then 24170 CC="$CC -traditional" 24171 fi 24172 fi 24173 24174 24175 ######## 24176 # 24177 # Set defines required to build DLLs and modules using MinGW 24178 # 24179 ######## 24180 # These options are set for multi-thread DLL module build 24181 # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_ 24182 # module: _DLL 24183 # executable/Magick++: _DLL _MAGICKMOD_ 24184 MODULE_EXTRA_CPPFLAGS='' 24185 LIBRARY_EXTRA_CPPFLAGS='' 24186 if test "${native_win32_build}" = 'yes'; then 24187 if test "${libtool_build_shared_libs}" = 'yes'; then 24188 CPPFLAGS="$CPPFLAGS -D_DLL" 24189 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL" 24190 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL" 24191 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_" 24192 if test "$build_modules" = 'yes'; then 24193 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_" 24194 else 24195 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_" 24196 fi 24197 else 24198 CPPFLAGS="$CPPFLAGS -D_LIB" 24199 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB" 24200 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB" 24201 fi 24202 if test "$with_threads" = 'yes'; then 24203 CPPFLAGS="$CPPFLAGS -D_MT" 24204 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT" 24205 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT" 24206 fi 24207 fi 24208 24209 24210 24211 # Check standard headers 24212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 24213 $as_echo_n "checking for ANSI C header files... " >&6; } 24214 if ${ac_cv_header_stdc+:} false; then : 24215 $as_echo_n "(cached) " >&6 24216 else 24217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24218 /* end confdefs.h. */ 24219 #include <stdlib.h> 24220 #include <stdarg.h> 24221 #include <string.h> 24222 #include <float.h> 24223 24224 int 24225 main () 24226 { 24227 24228 ; 24229 return 0; 24230 } 24231 _ACEOF 24232 if ac_fn_c_try_compile "$LINENO"; then : 24233 ac_cv_header_stdc=yes 24234 else 24235 ac_cv_header_stdc=no 24236 fi 24237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24238 24239 if test $ac_cv_header_stdc = yes; then 24240 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 24241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24242 /* end confdefs.h. */ 24243 #include <string.h> 24244 24245 _ACEOF 24246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24247 $EGREP "memchr" >/dev/null 2>&1; then : 24248 24249 else 24250 ac_cv_header_stdc=no 24251 fi 24252 rm -f conftest* 24253 24254 fi 24255 24256 if test $ac_cv_header_stdc = yes; then 24257 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 24258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24259 /* end confdefs.h. */ 24260 #include <stdlib.h> 24261 24262 _ACEOF 24263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24264 $EGREP "free" >/dev/null 2>&1; then : 24265 24266 else 24267 ac_cv_header_stdc=no 24268 fi 24269 rm -f conftest* 24270 24271 fi 24272 24273 if test $ac_cv_header_stdc = yes; then 24274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 24275 if test "$cross_compiling" = yes; then : 24276 : 24277 else 24278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24279 /* end confdefs.h. */ 24280 #include <ctype.h> 24281 #include <stdlib.h> 24282 #if ((' ' & 0x0FF) == 0x020) 24283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 24284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 24285 #else 24286 # define ISLOWER(c) \ 24287 (('a' <= (c) && (c) <= 'i') \ 24288 || ('j' <= (c) && (c) <= 'r') \ 24289 || ('s' <= (c) && (c) <= 'z')) 24290 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 24291 #endif 24292 24293 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 24294 int 24295 main () 24296 { 24297 int i; 24298 for (i = 0; i < 256; i++) 24299 if (XOR (islower (i), ISLOWER (i)) 24300 || toupper (i) != TOUPPER (i)) 24301 return 2; 24302 return 0; 24303 } 24304 _ACEOF 24305 if ac_fn_c_try_run "$LINENO"; then : 24306 24307 else 24308 ac_cv_header_stdc=no 24309 fi 24310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24311 conftest.$ac_objext conftest.beam conftest.$ac_ext 24312 fi 24313 24314 fi 24315 fi 24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 24317 $as_echo "$ac_cv_header_stdc" >&6; } 24318 if test $ac_cv_header_stdc = yes; then 24319 24320 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 24321 24322 fi 24323 24324 if ! test x"$ac_cv_header_stdc" = x"yes"; then 24325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C 24326 header files. Compilation cannot proceed. Please install the ANSI C 24327 headers and rerun this script." >&5 24328 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C 24329 header files. Compilation cannot proceed. Please install the ANSI C 24330 headers and rerun this script." >&2;}; 24331 fi 24332 24333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5 24334 $as_echo_n "checking whether to enable assertions... " >&6; } 24335 # Check whether --enable-assert was given. 24336 if test "${enable_assert+set}" = set; then : 24337 enableval=$enable_assert; ac_enable_assert=$enableval 24338 if test "x$enableval" = xno; then : 24339 24340 $as_echo "#define NDEBUG 1" >>confdefs.h 24341 24342 elif test "x$enableval" != xyes; then : 24343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5 24344 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;} 24345 ac_enable_assert=yes 24346 fi 24347 else 24348 ac_enable_assert=yes 24349 fi 24350 24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5 24352 $as_echo "$ac_enable_assert" >&6; } 24353 24354 ac_header_dirent=no 24355 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 24356 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 24357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 24358 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 24359 if eval \${$as_ac_Header+:} false; then : 24360 $as_echo_n "(cached) " >&6 24361 else 24362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24363 /* end confdefs.h. */ 24364 #include <sys/types.h> 24365 #include <$ac_hdr> 24366 24367 int 24368 main () 24369 { 24370 if ((DIR *) 0) 24371 return 0; 24372 ; 24373 return 0; 24374 } 24375 _ACEOF 24376 if ac_fn_c_try_compile "$LINENO"; then : 24377 eval "$as_ac_Header=yes" 24378 else 24379 eval "$as_ac_Header=no" 24380 fi 24381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24382 fi 24383 eval ac_res=\$$as_ac_Header 24384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 24385 $as_echo "$ac_res" >&6; } 24386 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24387 cat >>confdefs.h <<_ACEOF 24388 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 24389 _ACEOF 24390 24391 ac_header_dirent=$ac_hdr; break 24392 fi 24393 24394 done 24395 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 24396 if test $ac_header_dirent = dirent.h; then 24397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 24398 $as_echo_n "checking for library containing opendir... " >&6; } 24399 if ${ac_cv_search_opendir+:} false; then : 24400 $as_echo_n "(cached) " >&6 24401 else 24402 ac_func_search_save_LIBS=$LIBS 24403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24404 /* end confdefs.h. */ 24405 24406 /* Override any GCC internal prototype to avoid an error. 24407 Use char because int might match the return type of a GCC 24408 builtin and then its argument prototype would still apply. */ 24409 #ifdef __cplusplus 24410 extern "C" 24411 #endif 24412 char opendir (); 24413 int 24414 main () 24415 { 24416 return opendir (); 24417 ; 24418 return 0; 24419 } 24420 _ACEOF 24421 for ac_lib in '' dir; do 24422 if test -z "$ac_lib"; then 24423 ac_res="none required" 24424 else 24425 ac_res=-l$ac_lib 24426 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24427 fi 24428 if ac_fn_c_try_link "$LINENO"; then : 24429 ac_cv_search_opendir=$ac_res 24430 fi 24431 rm -f core conftest.err conftest.$ac_objext \ 24432 conftest$ac_exeext 24433 if ${ac_cv_search_opendir+:} false; then : 24434 break 24435 fi 24436 done 24437 if ${ac_cv_search_opendir+:} false; then : 24438 24439 else 24440 ac_cv_search_opendir=no 24441 fi 24442 rm conftest.$ac_ext 24443 LIBS=$ac_func_search_save_LIBS 24444 fi 24445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 24446 $as_echo "$ac_cv_search_opendir" >&6; } 24447 ac_res=$ac_cv_search_opendir 24448 if test "$ac_res" != no; then : 24449 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24450 24451 fi 24452 24453 else 24454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 24455 $as_echo_n "checking for library containing opendir... " >&6; } 24456 if ${ac_cv_search_opendir+:} false; then : 24457 $as_echo_n "(cached) " >&6 24458 else 24459 ac_func_search_save_LIBS=$LIBS 24460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24461 /* end confdefs.h. */ 24462 24463 /* Override any GCC internal prototype to avoid an error. 24464 Use char because int might match the return type of a GCC 24465 builtin and then its argument prototype would still apply. */ 24466 #ifdef __cplusplus 24467 extern "C" 24468 #endif 24469 char opendir (); 24470 int 24471 main () 24472 { 24473 return opendir (); 24474 ; 24475 return 0; 24476 } 24477 _ACEOF 24478 for ac_lib in '' x; do 24479 if test -z "$ac_lib"; then 24480 ac_res="none required" 24481 else 24482 ac_res=-l$ac_lib 24483 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24484 fi 24485 if ac_fn_c_try_link "$LINENO"; then : 24486 ac_cv_search_opendir=$ac_res 24487 fi 24488 rm -f core conftest.err conftest.$ac_objext \ 24489 conftest$ac_exeext 24490 if ${ac_cv_search_opendir+:} false; then : 24491 break 24492 fi 24493 done 24494 if ${ac_cv_search_opendir+:} false; then : 24495 24496 else 24497 ac_cv_search_opendir=no 24498 fi 24499 rm conftest.$ac_ext 24500 LIBS=$ac_func_search_save_LIBS 24501 fi 24502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 24503 $as_echo "$ac_cv_search_opendir" >&6; } 24504 ac_res=$ac_cv_search_opendir 24505 if test "$ac_res" != no; then : 24506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24507 24508 fi 24509 24510 fi 24511 24512 24513 # Check additional headers 24514 for ac_header in arm/limits.h arpa/inet.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h netinet/in.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/sendfile.h sys/socket.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h utime.h wchar.h xlocale.h 24515 do : 24516 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24517 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 24518 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24519 cat >>confdefs.h <<_ACEOF 24520 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24521 _ACEOF 24522 24523 fi 24524 24525 done 24526 24527 24528 ######## 24529 # 24530 # Checks for typedefs, structures, and compiler characteristics. 24531 # 24532 ######## 24533 24534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 24535 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 24536 if ${ac_cv_header_stdbool_h+:} false; then : 24537 $as_echo_n "(cached) " >&6 24538 else 24539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24540 /* end confdefs.h. */ 24541 24542 #include <stdbool.h> 24543 #ifndef bool 24544 "error: bool is not defined" 24545 #endif 24546 #ifndef false 24547 "error: false is not defined" 24548 #endif 24549 #if false 24550 "error: false is not 0" 24551 #endif 24552 #ifndef true 24553 "error: true is not defined" 24554 #endif 24555 #if true != 1 24556 "error: true is not 1" 24557 #endif 24558 #ifndef __bool_true_false_are_defined 24559 "error: __bool_true_false_are_defined is not defined" 24560 #endif 24561 24562 struct s { _Bool s: 1; _Bool t; } s; 24563 24564 char a[true == 1 ? 1 : -1]; 24565 char b[false == 0 ? 1 : -1]; 24566 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 24567 char d[(bool) 0.5 == true ? 1 : -1]; 24568 /* See body of main program for 'e'. */ 24569 char f[(_Bool) 0.0 == false ? 1 : -1]; 24570 char g[true]; 24571 char h[sizeof (_Bool)]; 24572 char i[sizeof s.t]; 24573 enum { j = false, k = true, l = false * true, m = true * 256 }; 24574 /* The following fails for 24575 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 24576 _Bool n[m]; 24577 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 24578 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 24579 /* Catch a bug in an HP-UX C compiler. See 24580 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 24581 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 24582 */ 24583 _Bool q = true; 24584 _Bool *pq = &q; 24585 24586 int 24587 main () 24588 { 24589 24590 bool e = &s; 24591 *pq |= q; 24592 *pq |= ! q; 24593 /* Refer to every declared value, to avoid compiler optimizations. */ 24594 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 24595 + !m + !n + !o + !p + !q + !pq); 24596 24597 ; 24598 return 0; 24599 } 24600 _ACEOF 24601 if ac_fn_c_try_compile "$LINENO"; then : 24602 ac_cv_header_stdbool_h=yes 24603 else 24604 ac_cv_header_stdbool_h=no 24605 fi 24606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24607 fi 24608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 24609 $as_echo "$ac_cv_header_stdbool_h" >&6; } 24610 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 24611 if test "x$ac_cv_type__Bool" = xyes; then : 24612 24613 cat >>confdefs.h <<_ACEOF 24614 #define HAVE__BOOL 1 24615 _ACEOF 24616 24617 24618 fi 24619 24620 24621 if test $ac_cv_header_stdbool_h = yes; then 24622 24623 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 24624 24625 fi 24626 24627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 24628 $as_echo_n "checking for working volatile... " >&6; } 24629 if ${ac_cv_c_volatile+:} false; then : 24630 $as_echo_n "(cached) " >&6 24631 else 24632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24633 /* end confdefs.h. */ 24634 24635 int 24636 main () 24637 { 24638 24639 volatile int x; 24640 int * volatile y = (int *) 0; 24641 return !x && !y; 24642 ; 24643 return 0; 24644 } 24645 _ACEOF 24646 if ac_fn_c_try_compile "$LINENO"; then : 24647 ac_cv_c_volatile=yes 24648 else 24649 ac_cv_c_volatile=no 24650 fi 24651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24652 fi 24653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 24654 $as_echo "$ac_cv_c_volatile" >&6; } 24655 if test $ac_cv_c_volatile = no; then 24656 24657 $as_echo "#define volatile /**/" >>confdefs.h 24658 24659 fi 24660 24661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5 24662 $as_echo_n "checking for preprocessor stringizing operator... " >&6; } 24663 if ${ac_cv_c_stringize+:} false; then : 24664 $as_echo_n "(cached) " >&6 24665 else 24666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24667 /* end confdefs.h. */ 24668 #define x(y) #y 24669 24670 char *s = x(teststring); 24671 _ACEOF 24672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24673 $EGREP "#teststring" >/dev/null 2>&1; then : 24674 ac_cv_c_stringize=no 24675 else 24676 ac_cv_c_stringize=yes 24677 fi 24678 rm -f conftest* 24679 24680 fi 24681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5 24682 $as_echo "$ac_cv_c_stringize" >&6; } 24683 if test $ac_cv_c_stringize = yes; then 24684 24685 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h 24686 24687 fi 24688 24689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 24690 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 24691 if ${ac_cv_header_stat_broken+:} false; then : 24692 $as_echo_n "(cached) " >&6 24693 else 24694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24695 /* end confdefs.h. */ 24696 #include <sys/types.h> 24697 #include <sys/stat.h> 24698 24699 #if defined S_ISBLK && defined S_IFDIR 24700 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 24701 #endif 24702 24703 #if defined S_ISBLK && defined S_IFCHR 24704 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 24705 #endif 24706 24707 #if defined S_ISLNK && defined S_IFREG 24708 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 24709 #endif 24710 24711 #if defined S_ISSOCK && defined S_IFREG 24712 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 24713 #endif 24714 24715 _ACEOF 24716 if ac_fn_c_try_compile "$LINENO"; then : 24717 ac_cv_header_stat_broken=no 24718 else 24719 ac_cv_header_stat_broken=yes 24720 fi 24721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24722 fi 24723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 24724 $as_echo "$ac_cv_header_stat_broken" >&6; } 24725 if test $ac_cv_header_stat_broken = yes; then 24726 24727 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h 24728 24729 fi 24730 24731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 24732 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 24733 if ${ac_cv_header_time+:} false; then : 24734 $as_echo_n "(cached) " >&6 24735 else 24736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24737 /* end confdefs.h. */ 24738 #include <sys/types.h> 24739 #include <sys/time.h> 24740 #include <time.h> 24741 24742 int 24743 main () 24744 { 24745 if ((struct tm *) 0) 24746 return 0; 24747 ; 24748 return 0; 24749 } 24750 _ACEOF 24751 if ac_fn_c_try_compile "$LINENO"; then : 24752 ac_cv_header_time=yes 24753 else 24754 ac_cv_header_time=no 24755 fi 24756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24757 fi 24758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 24759 $as_echo "$ac_cv_header_time" >&6; } 24760 if test $ac_cv_header_time = yes; then 24761 24762 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 24763 24764 fi 24765 24766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 24767 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 24768 if ${ac_cv_struct_tm+:} false; then : 24769 $as_echo_n "(cached) " >&6 24770 else 24771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24772 /* end confdefs.h. */ 24773 #include <sys/types.h> 24774 #include <time.h> 24775 24776 int 24777 main () 24778 { 24779 struct tm tm; 24780 int *p = &tm.tm_sec; 24781 return !p; 24782 ; 24783 return 0; 24784 } 24785 _ACEOF 24786 if ac_fn_c_try_compile "$LINENO"; then : 24787 ac_cv_struct_tm=time.h 24788 else 24789 ac_cv_struct_tm=sys/time.h 24790 fi 24791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24792 fi 24793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 24794 $as_echo "$ac_cv_struct_tm" >&6; } 24795 if test $ac_cv_struct_tm = sys/time.h; then 24796 24797 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 24798 24799 fi 24800 24801 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 24802 #include <$ac_cv_struct_tm> 24803 24804 " 24805 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : 24806 24807 cat >>confdefs.h <<_ACEOF 24808 #define HAVE_STRUCT_TM_TM_ZONE 1 24809 _ACEOF 24810 24811 24812 fi 24813 24814 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 24815 24816 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 24817 24818 else 24819 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 24820 " 24821 if test "x$ac_cv_have_decl_tzname" = xyes; then : 24822 ac_have_decl=1 24823 else 24824 ac_have_decl=0 24825 fi 24826 24827 cat >>confdefs.h <<_ACEOF 24828 #define HAVE_DECL_TZNAME $ac_have_decl 24829 _ACEOF 24830 24831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 24832 $as_echo_n "checking for tzname... " >&6; } 24833 if ${ac_cv_var_tzname+:} false; then : 24834 $as_echo_n "(cached) " >&6 24835 else 24836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24837 /* end confdefs.h. */ 24838 #include <time.h> 24839 #if !HAVE_DECL_TZNAME 24840 extern char *tzname[]; 24841 #endif 24842 24843 int 24844 main () 24845 { 24846 return tzname[0][0]; 24847 ; 24848 return 0; 24849 } 24850 _ACEOF 24851 if ac_fn_c_try_link "$LINENO"; then : 24852 ac_cv_var_tzname=yes 24853 else 24854 ac_cv_var_tzname=no 24855 fi 24856 rm -f core conftest.err conftest.$ac_objext \ 24857 conftest$ac_exeext conftest.$ac_ext 24858 fi 24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 24860 $as_echo "$ac_cv_var_tzname" >&6; } 24861 if test $ac_cv_var_tzname = yes; then 24862 24863 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h 24864 24865 fi 24866 fi 24867 24868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5 24869 $as_echo_n "checking whether #! works in shell scripts... " >&6; } 24870 if ${ac_cv_sys_interpreter+:} false; then : 24871 $as_echo_n "(cached) " >&6 24872 else 24873 echo '#! /bin/cat 24874 exit 69 24875 ' >conftest 24876 chmod u+x conftest 24877 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) 24878 if test $? -ne 69; then 24879 ac_cv_sys_interpreter=yes 24880 else 24881 ac_cv_sys_interpreter=no 24882 fi 24883 rm -f conftest 24884 fi 24885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5 24886 $as_echo "$ac_cv_sys_interpreter" >&6; } 24887 interpval=$ac_cv_sys_interpreter 24888 24889 24890 # 24891 # Checks for language qualifiers and semantics. 24892 # 24893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 24894 $as_echo_n "checking whether char is unsigned... " >&6; } 24895 if ${ac_cv_c_char_unsigned+:} false; then : 24896 $as_echo_n "(cached) " >&6 24897 else 24898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24899 /* end confdefs.h. */ 24900 $ac_includes_default 24901 int 24902 main () 24903 { 24904 static int test_array [1 - 2 * !(((char) -1) < 0)]; 24905 test_array [0] = 0; 24906 return test_array [0]; 24907 24908 ; 24909 return 0; 24910 } 24911 _ACEOF 24912 if ac_fn_c_try_compile "$LINENO"; then : 24913 ac_cv_c_char_unsigned=no 24914 else 24915 ac_cv_c_char_unsigned=yes 24916 fi 24917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24918 fi 24919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 24920 $as_echo "$ac_cv_c_char_unsigned" >&6; } 24921 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 24922 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 24923 24924 fi 24925 24926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 24927 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } 24928 if ${ac_cv_c_const+:} false; then : 24929 $as_echo_n "(cached) " >&6 24930 else 24931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24932 /* end confdefs.h. */ 24933 24934 int 24935 main () 24936 { 24937 24938 #ifndef __cplusplus 24939 /* Ultrix mips cc rejects this sort of thing. */ 24940 typedef int charset[2]; 24941 const charset cs = { 0, 0 }; 24942 /* SunOS 4.1.1 cc rejects this. */ 24943 char const *const *pcpcc; 24944 char **ppc; 24945 /* NEC SVR4.0.2 mips cc rejects this. */ 24946 struct point {int x, y;}; 24947 static struct point const zero = {0,0}; 24948 /* AIX XL C 1.02.0.0 rejects this. 24949 It does not let you subtract one const X* pointer from another in 24950 an arm of an if-expression whose if-part is not a constant 24951 expression */ 24952 const char *g = "string"; 24953 pcpcc = &g + (g ? g-g : 0); 24954 /* HPUX 7.0 cc rejects these. */ 24955 ++pcpcc; 24956 ppc = (char**) pcpcc; 24957 pcpcc = (char const *const *) ppc; 24958 { /* SCO 3.2v4 cc rejects this sort of thing. */ 24959 char tx; 24960 char *t = &tx; 24961 char const *s = 0 ? (char *) 0 : (char const *) 0; 24962 24963 *t++ = 0; 24964 if (s) return 0; 24965 } 24966 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 24967 int x[] = {25, 17}; 24968 const int *foo = &x[0]; 24969 ++foo; 24970 } 24971 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 24972 typedef const int *iptr; 24973 iptr p = 0; 24974 ++p; 24975 } 24976 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 24977 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 24978 struct s { int j; const int *ap[3]; } bx; 24979 struct s *b = &bx; b->j = 5; 24980 } 24981 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 24982 const int foo = 10; 24983 if (!foo) return 0; 24984 } 24985 return !cs[0] && !zero.x; 24986 #endif 24987 24988 ; 24989 return 0; 24990 } 24991 _ACEOF 24992 if ac_fn_c_try_compile "$LINENO"; then : 24993 ac_cv_c_const=yes 24994 else 24995 ac_cv_c_const=no 24996 fi 24997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24998 fi 24999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 25000 $as_echo "$ac_cv_c_const" >&6; } 25001 if test $ac_cv_c_const = no; then 25002 25003 $as_echo "#define const /**/" >>confdefs.h 25004 25005 fi 25006 25007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 25008 $as_echo_n "checking for inline... " >&6; } 25009 if ${ac_cv_c_inline+:} false; then : 25010 $as_echo_n "(cached) " >&6 25011 else 25012 ac_cv_c_inline=no 25013 for ac_kw in inline __inline__ __inline; do 25014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25015 /* end confdefs.h. */ 25016 #ifndef __cplusplus 25017 typedef int foo_t; 25018 static $ac_kw foo_t static_foo () {return 0; } 25019 $ac_kw foo_t foo () {return 0; } 25020 #endif 25021 25022 _ACEOF 25023 if ac_fn_c_try_compile "$LINENO"; then : 25024 ac_cv_c_inline=$ac_kw 25025 fi 25026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25027 test "$ac_cv_c_inline" != no && break 25028 done 25029 25030 fi 25031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 25032 $as_echo "$ac_cv_c_inline" >&6; } 25033 25034 case $ac_cv_c_inline in 25035 inline | yes) ;; 25036 *) 25037 case $ac_cv_c_inline in 25038 no) ac_val=;; 25039 *) ac_val=$ac_cv_c_inline;; 25040 esac 25041 cat >>confdefs.h <<_ACEOF 25042 #ifndef __cplusplus 25043 #define inline $ac_val 25044 #endif 25045 _ACEOF 25046 ;; 25047 esac 25048 25049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 25050 $as_echo_n "checking for C/C++ restrict keyword... " >&6; } 25051 if ${ac_cv_c_restrict+:} false; then : 25052 $as_echo_n "(cached) " >&6 25053 else 25054 ac_cv_c_restrict=no 25055 # The order here caters to the fact that C++ does not require restrict. 25056 for ac_kw in __restrict __restrict__ _Restrict restrict; do 25057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25058 /* end confdefs.h. */ 25059 typedef int * int_ptr; 25060 int foo (int_ptr $ac_kw ip) { 25061 return ip[0]; 25062 } 25063 int 25064 main () 25065 { 25066 int s[1]; 25067 int * $ac_kw t = s; 25068 t[0] = 0; 25069 return foo(t) 25070 ; 25071 return 0; 25072 } 25073 _ACEOF 25074 if ac_fn_c_try_compile "$LINENO"; then : 25075 ac_cv_c_restrict=$ac_kw 25076 fi 25077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25078 test "$ac_cv_c_restrict" != no && break 25079 done 25080 25081 fi 25082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 25083 $as_echo "$ac_cv_c_restrict" >&6; } 25084 25085 case $ac_cv_c_restrict in 25086 restrict) ;; 25087 no) $as_echo "#define restrict /**/" >>confdefs.h 25088 ;; 25089 *) cat >>confdefs.h <<_ACEOF 25090 #define restrict $ac_cv_c_restrict 25091 _ACEOF 25092 ;; 25093 esac 25094 25095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 25096 $as_echo_n "checking for working volatile... " >&6; } 25097 if ${ac_cv_c_volatile+:} false; then : 25098 $as_echo_n "(cached) " >&6 25099 else 25100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25101 /* end confdefs.h. */ 25102 25103 int 25104 main () 25105 { 25106 25107 volatile int x; 25108 int * volatile y = (int *) 0; 25109 return !x && !y; 25110 ; 25111 return 0; 25112 } 25113 _ACEOF 25114 if ac_fn_c_try_compile "$LINENO"; then : 25115 ac_cv_c_volatile=yes 25116 else 25117 ac_cv_c_volatile=no 25118 fi 25119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25120 fi 25121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 25122 $as_echo "$ac_cv_c_volatile" >&6; } 25123 if test $ac_cv_c_volatile = no; then 25124 25125 $as_echo "#define volatile /**/" >>confdefs.h 25126 25127 fi 25128 25129 25130 # If words are stored with the most significant byte first (like 25131 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'. 25132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 25133 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 25134 if ${ac_cv_c_bigendian+:} false; then : 25135 $as_echo_n "(cached) " >&6 25136 else 25137 ac_cv_c_bigendian=unknown 25138 # See if we're dealing with a universal compiler. 25139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25140 /* end confdefs.h. */ 25141 #ifndef __APPLE_CC__ 25142 not a universal capable compiler 25143 #endif 25144 typedef int dummy; 25145 25146 _ACEOF 25147 if ac_fn_c_try_compile "$LINENO"; then : 25148 25149 # Check for potential -arch flags. It is not universal unless 25150 # there are at least two -arch flags with different values. 25151 ac_arch= 25152 ac_prev= 25153 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 25154 if test -n "$ac_prev"; then 25155 case $ac_word in 25156 i?86 | x86_64 | ppc | ppc64) 25157 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 25158 ac_arch=$ac_word 25159 else 25160 ac_cv_c_bigendian=universal 25161 break 25162 fi 25163 ;; 25164 esac 25165 ac_prev= 25166 elif test "x$ac_word" = "x-arch"; then 25167 ac_prev=arch 25168 fi 25169 done 25170 fi 25171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25172 if test $ac_cv_c_bigendian = unknown; then 25173 # See if sys/param.h defines the BYTE_ORDER macro. 25174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25175 /* end confdefs.h. */ 25176 #include <sys/types.h> 25177 #include <sys/param.h> 25178 25179 int 25180 main () 25181 { 25182 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 25183 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 25184 && LITTLE_ENDIAN) 25185 bogus endian macros 25186 #endif 25187 25188 ; 25189 return 0; 25190 } 25191 _ACEOF 25192 if ac_fn_c_try_compile "$LINENO"; then : 25193 # It does; now see whether it defined to BIG_ENDIAN or not. 25194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25195 /* end confdefs.h. */ 25196 #include <sys/types.h> 25197 #include <sys/param.h> 25198 25199 int 25200 main () 25201 { 25202 #if BYTE_ORDER != BIG_ENDIAN 25203 not big endian 25204 #endif 25205 25206 ; 25207 return 0; 25208 } 25209 _ACEOF 25210 if ac_fn_c_try_compile "$LINENO"; then : 25211 ac_cv_c_bigendian=yes 25212 else 25213 ac_cv_c_bigendian=no 25214 fi 25215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25216 fi 25217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25218 fi 25219 if test $ac_cv_c_bigendian = unknown; then 25220 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 25221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25222 /* end confdefs.h. */ 25223 #include <limits.h> 25224 25225 int 25226 main () 25227 { 25228 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 25229 bogus endian macros 25230 #endif 25231 25232 ; 25233 return 0; 25234 } 25235 _ACEOF 25236 if ac_fn_c_try_compile "$LINENO"; then : 25237 # It does; now see whether it defined to _BIG_ENDIAN or not. 25238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25239 /* end confdefs.h. */ 25240 #include <limits.h> 25241 25242 int 25243 main () 25244 { 25245 #ifndef _BIG_ENDIAN 25246 not big endian 25247 #endif 25248 25249 ; 25250 return 0; 25251 } 25252 _ACEOF 25253 if ac_fn_c_try_compile "$LINENO"; then : 25254 ac_cv_c_bigendian=yes 25255 else 25256 ac_cv_c_bigendian=no 25257 fi 25258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25259 fi 25260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25261 fi 25262 if test $ac_cv_c_bigendian = unknown; then 25263 # Compile a test program. 25264 if test "$cross_compiling" = yes; then : 25265 # Try to guess by grepping values from an object file. 25266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25267 /* end confdefs.h. */ 25268 short int ascii_mm[] = 25269 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 25270 short int ascii_ii[] = 25271 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 25272 int use_ascii (int i) { 25273 return ascii_mm[i] + ascii_ii[i]; 25274 } 25275 short int ebcdic_ii[] = 25276 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 25277 short int ebcdic_mm[] = 25278 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 25279 int use_ebcdic (int i) { 25280 return ebcdic_mm[i] + ebcdic_ii[i]; 25281 } 25282 extern int foo; 25283 25284 int 25285 main () 25286 { 25287 return use_ascii (foo) == use_ebcdic (foo); 25288 ; 25289 return 0; 25290 } 25291 _ACEOF 25292 if ac_fn_c_try_compile "$LINENO"; then : 25293 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 25294 ac_cv_c_bigendian=yes 25295 fi 25296 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 25297 if test "$ac_cv_c_bigendian" = unknown; then 25298 ac_cv_c_bigendian=no 25299 else 25300 # finding both strings is unlikely to happen, but who knows? 25301 ac_cv_c_bigendian=unknown 25302 fi 25303 fi 25304 fi 25305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25306 else 25307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25308 /* end confdefs.h. */ 25309 $ac_includes_default 25310 int 25311 main () 25312 { 25313 25314 /* Are we little or big endian? From Harbison&Steele. */ 25315 union 25316 { 25317 long int l; 25318 char c[sizeof (long int)]; 25319 } u; 25320 u.l = 1; 25321 return u.c[sizeof (long int) - 1] == 1; 25322 25323 ; 25324 return 0; 25325 } 25326 _ACEOF 25327 if ac_fn_c_try_run "$LINENO"; then : 25328 ac_cv_c_bigendian=no 25329 else 25330 ac_cv_c_bigendian=yes 25331 fi 25332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25333 conftest.$ac_objext conftest.beam conftest.$ac_ext 25334 fi 25335 25336 fi 25337 fi 25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 25339 $as_echo "$ac_cv_c_bigendian" >&6; } 25340 case $ac_cv_c_bigendian in #( 25341 yes) 25342 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 25343 ;; #( 25344 no) 25345 ;; #( 25346 universal) 25347 25348 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 25349 25350 ;; #( 25351 *) 25352 as_fn_error $? "unknown endianness 25353 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 25354 esac 25355 25356 25357 # Define to a suitable type, if standard headers do not define it. 25358 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" 25359 case $ac_cv_c_int8_t in #( 25360 no|yes) ;; #( 25361 *) 25362 25363 cat >>confdefs.h <<_ACEOF 25364 #define int8_t $ac_cv_c_int8_t 25365 _ACEOF 25366 ;; 25367 esac 25368 25369 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 25370 case $ac_cv_c_int16_t in #( 25371 no|yes) ;; #( 25372 *) 25373 25374 cat >>confdefs.h <<_ACEOF 25375 #define int16_t $ac_cv_c_int16_t 25376 _ACEOF 25377 ;; 25378 esac 25379 25380 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 25381 case $ac_cv_c_int32_t in #( 25382 no|yes) ;; #( 25383 *) 25384 25385 cat >>confdefs.h <<_ACEOF 25386 #define int32_t $ac_cv_c_int32_t 25387 _ACEOF 25388 ;; 25389 esac 25390 25391 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 25392 case $ac_cv_c_int64_t in #( 25393 no|yes) ;; #( 25394 *) 25395 25396 cat >>confdefs.h <<_ACEOF 25397 #define int64_t $ac_cv_c_int64_t 25398 _ACEOF 25399 ;; 25400 esac 25401 25402 25403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 25404 $as_echo_n "checking for unsigned long long int... " >&6; } 25405 if ${ac_cv_type_unsigned_long_long_int+:} false; then : 25406 $as_echo_n "(cached) " >&6 25407 else 25408 ac_cv_type_unsigned_long_long_int=yes 25409 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 25410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25411 /* end confdefs.h. */ 25412 25413 /* For now, do not test the preprocessor; as of 2007 there are too many 25414 implementations with broken preprocessors. Perhaps this can 25415 be revisited in 2012. In the meantime, code should not expect 25416 #if to work with literals wider than 32 bits. */ 25417 /* Test literals. */ 25418 long long int ll = 9223372036854775807ll; 25419 long long int nll = -9223372036854775807LL; 25420 unsigned long long int ull = 18446744073709551615ULL; 25421 /* Test constant expressions. */ 25422 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 25423 ? 1 : -1)]; 25424 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 25425 ? 1 : -1)]; 25426 int i = 63; 25427 int 25428 main () 25429 { 25430 /* Test availability of runtime routines for shift and division. */ 25431 long long int llmax = 9223372036854775807ll; 25432 unsigned long long int ullmax = 18446744073709551615ull; 25433 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 25434 | (llmax / ll) | (llmax % ll) 25435 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 25436 | (ullmax / ull) | (ullmax % ull)); 25437 ; 25438 return 0; 25439 } 25440 25441 _ACEOF 25442 if ac_fn_c_try_link "$LINENO"; then : 25443 25444 else 25445 ac_cv_type_unsigned_long_long_int=no 25446 fi 25447 rm -f core conftest.err conftest.$ac_objext \ 25448 conftest$ac_exeext conftest.$ac_ext 25449 fi 25450 fi 25451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 25452 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 25453 if test $ac_cv_type_unsigned_long_long_int = yes; then 25454 25455 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 25456 25457 fi 25458 25459 25460 25461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 25462 $as_echo_n "checking for long long int... " >&6; } 25463 if ${ac_cv_type_long_long_int+:} false; then : 25464 $as_echo_n "(cached) " >&6 25465 else 25466 ac_cv_type_long_long_int=yes 25467 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 25468 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 25469 if test $ac_cv_type_long_long_int = yes; then 25470 if test "$cross_compiling" = yes; then : 25471 : 25472 else 25473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25474 /* end confdefs.h. */ 25475 #include <limits.h> 25476 #ifndef LLONG_MAX 25477 # define HALF \ 25478 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 25479 # define LLONG_MAX (HALF - 1 + HALF) 25480 #endif 25481 int 25482 main () 25483 { 25484 long long int n = 1; 25485 int i; 25486 for (i = 0; ; i++) 25487 { 25488 long long int m = n << i; 25489 if (m >> i != n) 25490 return 1; 25491 if (LLONG_MAX / 2 < m) 25492 break; 25493 } 25494 return 0; 25495 ; 25496 return 0; 25497 } 25498 _ACEOF 25499 if ac_fn_c_try_run "$LINENO"; then : 25500 25501 else 25502 ac_cv_type_long_long_int=no 25503 fi 25504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25505 conftest.$ac_objext conftest.beam conftest.$ac_ext 25506 fi 25507 25508 fi 25509 fi 25510 fi 25511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 25512 $as_echo "$ac_cv_type_long_long_int" >&6; } 25513 if test $ac_cv_type_long_long_int = yes; then 25514 25515 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 25516 25517 fi 25518 25519 25520 25521 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 25522 if test "x$ac_cv_type_intmax_t" = xyes; then : 25523 25524 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 25525 25526 else 25527 test $ac_cv_type_long_long_int = yes \ 25528 && ac_type='long long int' \ 25529 || ac_type='long int' 25530 25531 cat >>confdefs.h <<_ACEOF 25532 #define intmax_t $ac_type 25533 _ACEOF 25534 25535 fi 25536 25537 25538 25539 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 25540 if test "x$ac_cv_type_intptr_t" = xyes; then : 25541 25542 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 25543 25544 else 25545 for ac_type in 'int' 'long int' 'long long int'; do 25546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25547 /* end confdefs.h. */ 25548 $ac_includes_default 25549 int 25550 main () 25551 { 25552 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 25553 test_array [0] = 0; 25554 return test_array [0]; 25555 25556 ; 25557 return 0; 25558 } 25559 _ACEOF 25560 if ac_fn_c_try_compile "$LINENO"; then : 25561 25562 cat >>confdefs.h <<_ACEOF 25563 #define intptr_t $ac_type 25564 _ACEOF 25565 25566 ac_type= 25567 fi 25568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25569 test -z "$ac_type" && break 25570 done 25571 fi 25572 25573 25574 25575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 25576 $as_echo_n "checking for long double... " >&6; } 25577 if ${ac_cv_type_long_double+:} false; then : 25578 $as_echo_n "(cached) " >&6 25579 else 25580 if test "$GCC" = yes; then 25581 ac_cv_type_long_double=yes 25582 else 25583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25584 /* end confdefs.h. */ 25585 /* The Stardent Vistra knows sizeof (long double), but does 25586 not support it. */ 25587 long double foo = 0.0L; 25588 int 25589 main () 25590 { 25591 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 25592 sizeof (double) <= sizeof (long double))]; 25593 test_array [0] = 0; 25594 return test_array [0]; 25595 25596 ; 25597 return 0; 25598 } 25599 _ACEOF 25600 if ac_fn_c_try_compile "$LINENO"; then : 25601 ac_cv_type_long_double=yes 25602 else 25603 ac_cv_type_long_double=no 25604 fi 25605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25606 fi 25607 fi 25608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 25609 $as_echo "$ac_cv_type_long_double" >&6; } 25610 if test $ac_cv_type_long_double = yes; then 25611 25612 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 25613 25614 fi 25615 25616 25617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5 25618 $as_echo_n "checking for long double with more range or precision than double... " >&6; } 25619 if ${ac_cv_type_long_double_wider+:} false; then : 25620 $as_echo_n "(cached) " >&6 25621 else 25622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25623 /* end confdefs.h. */ 25624 #include <float.h> 25625 long double const a[] = 25626 { 25627 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, 25628 LDBL_MIN, LDBL_MAX, LDBL_EPSILON 25629 }; 25630 long double 25631 f (long double x) 25632 { 25633 return ((x + (unsigned long int) 10) * (-1 / x) + a[0] 25634 + (x ? f (x) : 'c')); 25635 } 25636 25637 int 25638 main () 25639 { 25640 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) 25641 + (DBL_MANT_DIG < LDBL_MANT_DIG) 25642 - (LDBL_MAX_EXP < DBL_MAX_EXP) 25643 - (LDBL_MANT_DIG < DBL_MANT_DIG))) 25644 && (int) LDBL_EPSILON == 0 25645 )]; 25646 test_array [0] = 0; 25647 return test_array [0]; 25648 25649 ; 25650 return 0; 25651 } 25652 _ACEOF 25653 if ac_fn_c_try_compile "$LINENO"; then : 25654 ac_cv_type_long_double_wider=yes 25655 else 25656 ac_cv_type_long_double_wider=no 25657 fi 25658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25659 fi 25660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5 25661 $as_echo "$ac_cv_type_long_double_wider" >&6; } 25662 if test $ac_cv_type_long_double_wider = yes; then 25663 25664 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h 25665 25666 fi 25667 25668 25669 25670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 25671 $as_echo_n "checking for long long int... " >&6; } 25672 if ${ac_cv_type_long_long_int+:} false; then : 25673 $as_echo_n "(cached) " >&6 25674 else 25675 ac_cv_type_long_long_int=yes 25676 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 25677 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 25678 if test $ac_cv_type_long_long_int = yes; then 25679 if test "$cross_compiling" = yes; then : 25680 : 25681 else 25682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25683 /* end confdefs.h. */ 25684 #include <limits.h> 25685 #ifndef LLONG_MAX 25686 # define HALF \ 25687 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 25688 # define LLONG_MAX (HALF - 1 + HALF) 25689 #endif 25690 int 25691 main () 25692 { 25693 long long int n = 1; 25694 int i; 25695 for (i = 0; ; i++) 25696 { 25697 long long int m = n << i; 25698 if (m >> i != n) 25699 return 1; 25700 if (LLONG_MAX / 2 < m) 25701 break; 25702 } 25703 return 0; 25704 ; 25705 return 0; 25706 } 25707 _ACEOF 25708 if ac_fn_c_try_run "$LINENO"; then : 25709 25710 else 25711 ac_cv_type_long_long_int=no 25712 fi 25713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25714 conftest.$ac_objext conftest.beam conftest.$ac_ext 25715 fi 25716 25717 fi 25718 fi 25719 fi 25720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 25721 $as_echo "$ac_cv_type_long_long_int" >&6; } 25722 if test $ac_cv_type_long_long_int = yes; then 25723 25724 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 25725 25726 fi 25727 25728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 25729 $as_echo_n "checking for mbstate_t... " >&6; } 25730 if ${ac_cv_type_mbstate_t+:} false; then : 25731 $as_echo_n "(cached) " >&6 25732 else 25733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25734 /* end confdefs.h. */ 25735 $ac_includes_default 25736 # include <wchar.h> 25737 int 25738 main () 25739 { 25740 mbstate_t x; return sizeof x; 25741 ; 25742 return 0; 25743 } 25744 _ACEOF 25745 if ac_fn_c_try_compile "$LINENO"; then : 25746 ac_cv_type_mbstate_t=yes 25747 else 25748 ac_cv_type_mbstate_t=no 25749 fi 25750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25751 fi 25752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 25753 $as_echo "$ac_cv_type_mbstate_t" >&6; } 25754 if test $ac_cv_type_mbstate_t = yes; then 25755 25756 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 25757 25758 else 25759 25760 $as_echo "#define mbstate_t int" >>confdefs.h 25761 25762 fi 25763 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 25764 if test "x$ac_cv_type_mode_t" = xyes; then : 25765 25766 else 25767 25768 cat >>confdefs.h <<_ACEOF 25769 #define mode_t int 25770 _ACEOF 25771 25772 fi 25773 25774 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 25775 if test "x$ac_cv_type_off_t" = xyes; then : 25776 25777 else 25778 25779 cat >>confdefs.h <<_ACEOF 25780 #define off_t long int 25781 _ACEOF 25782 25783 fi 25784 25785 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 25786 if test "x$ac_cv_type_pid_t" = xyes; then : 25787 25788 else 25789 25790 cat >>confdefs.h <<_ACEOF 25791 #define pid_t int 25792 _ACEOF 25793 25794 fi 25795 25796 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 25797 if test "x$ac_cv_type_size_t" = xyes; then : 25798 25799 else 25800 25801 cat >>confdefs.h <<_ACEOF 25802 #define size_t unsigned int 25803 _ACEOF 25804 25805 fi 25806 25807 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 25808 if test "x$ac_cv_type_ssize_t" = xyes; then : 25809 25810 else 25811 25812 cat >>confdefs.h <<_ACEOF 25813 #define ssize_t int 25814 _ACEOF 25815 25816 fi 25817 25818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 25819 $as_echo_n "checking for uid_t in sys/types.h... " >&6; } 25820 if ${ac_cv_type_uid_t+:} false; then : 25821 $as_echo_n "(cached) " >&6 25822 else 25823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25824 /* end confdefs.h. */ 25825 #include <sys/types.h> 25826 25827 _ACEOF 25828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25829 $EGREP "uid_t" >/dev/null 2>&1; then : 25830 ac_cv_type_uid_t=yes 25831 else 25832 ac_cv_type_uid_t=no 25833 fi 25834 rm -f conftest* 25835 25836 fi 25837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 25838 $as_echo "$ac_cv_type_uid_t" >&6; } 25839 if test $ac_cv_type_uid_t = no; then 25840 25841 $as_echo "#define uid_t int" >>confdefs.h 25842 25843 25844 $as_echo "#define gid_t int" >>confdefs.h 25845 25846 fi 25847 25848 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 25849 case $ac_cv_c_uint8_t in #( 25850 no|yes) ;; #( 25851 *) 25852 25853 $as_echo "#define _UINT8_T 1" >>confdefs.h 25854 25855 25856 cat >>confdefs.h <<_ACEOF 25857 #define uint8_t $ac_cv_c_uint8_t 25858 _ACEOF 25859 ;; 25860 esac 25861 25862 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 25863 case $ac_cv_c_uint16_t in #( 25864 no|yes) ;; #( 25865 *) 25866 25867 25868 cat >>confdefs.h <<_ACEOF 25869 #define uint16_t $ac_cv_c_uint16_t 25870 _ACEOF 25871 ;; 25872 esac 25873 25874 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 25875 case $ac_cv_c_uint32_t in #( 25876 no|yes) ;; #( 25877 *) 25878 25879 $as_echo "#define _UINT32_T 1" >>confdefs.h 25880 25881 25882 cat >>confdefs.h <<_ACEOF 25883 #define uint32_t $ac_cv_c_uint32_t 25884 _ACEOF 25885 ;; 25886 esac 25887 25888 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 25889 case $ac_cv_c_uint64_t in #( 25890 no|yes) ;; #( 25891 *) 25892 25893 $as_echo "#define _UINT64_T 1" >>confdefs.h 25894 25895 25896 cat >>confdefs.h <<_ACEOF 25897 #define uint64_t $ac_cv_c_uint64_t 25898 _ACEOF 25899 ;; 25900 esac 25901 25902 25903 25904 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 25905 if test "x$ac_cv_type_uintmax_t" = xyes; then : 25906 25907 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 25908 25909 else 25910 test $ac_cv_type_unsigned_long_long_int = yes \ 25911 && ac_type='unsigned long long int' \ 25912 || ac_type='unsigned long int' 25913 25914 cat >>confdefs.h <<_ACEOF 25915 #define uintmax_t $ac_type 25916 _ACEOF 25917 25918 fi 25919 25920 25921 25922 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 25923 if test "x$ac_cv_type_uintptr_t" = xyes; then : 25924 25925 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 25926 25927 else 25928 for ac_type in 'unsigned int' 'unsigned long int' \ 25929 'unsigned long long int'; do 25930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25931 /* end confdefs.h. */ 25932 $ac_includes_default 25933 int 25934 main () 25935 { 25936 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 25937 test_array [0] = 0; 25938 return test_array [0]; 25939 25940 ; 25941 return 0; 25942 } 25943 _ACEOF 25944 if ac_fn_c_try_compile "$LINENO"; then : 25945 25946 cat >>confdefs.h <<_ACEOF 25947 #define uintptr_t $ac_type 25948 _ACEOF 25949 25950 ac_type= 25951 fi 25952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25953 test -z "$ac_type" && break 25954 done 25955 fi 25956 25957 25958 25959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 25960 $as_echo_n "checking for unsigned long long int... " >&6; } 25961 if ${ac_cv_type_unsigned_long_long_int+:} false; then : 25962 $as_echo_n "(cached) " >&6 25963 else 25964 ac_cv_type_unsigned_long_long_int=yes 25965 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 25966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25967 /* end confdefs.h. */ 25968 25969 /* For now, do not test the preprocessor; as of 2007 there are too many 25970 implementations with broken preprocessors. Perhaps this can 25971 be revisited in 2012. In the meantime, code should not expect 25972 #if to work with literals wider than 32 bits. */ 25973 /* Test literals. */ 25974 long long int ll = 9223372036854775807ll; 25975 long long int nll = -9223372036854775807LL; 25976 unsigned long long int ull = 18446744073709551615ULL; 25977 /* Test constant expressions. */ 25978 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 25979 ? 1 : -1)]; 25980 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 25981 ? 1 : -1)]; 25982 int i = 63; 25983 int 25984 main () 25985 { 25986 /* Test availability of runtime routines for shift and division. */ 25987 long long int llmax = 9223372036854775807ll; 25988 unsigned long long int ullmax = 18446744073709551615ull; 25989 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 25990 | (llmax / ll) | (llmax % ll) 25991 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 25992 | (ullmax / ull) | (ullmax % ull)); 25993 ; 25994 return 0; 25995 } 25996 25997 _ACEOF 25998 if ac_fn_c_try_link "$LINENO"; then : 25999 26000 else 26001 ac_cv_type_unsigned_long_long_int=no 26002 fi 26003 rm -f core conftest.err conftest.$ac_objext \ 26004 conftest$ac_exeext conftest.$ac_ext 26005 fi 26006 fi 26007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 26008 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 26009 if test $ac_cv_type_unsigned_long_long_int = yes; then 26010 26011 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 26012 26013 fi 26014 26015 26016 ac_fn_c_check_type "$LINENO" "locale_t" "ac_cv_type_locale_t" "#include <xlocale.h> 26017 " 26018 if test "x$ac_cv_type_locale_t" = xyes; then : 26019 26020 cat >>confdefs.h <<_ACEOF 26021 #define HAVE_LOCALE_T 1 26022 _ACEOF 26023 26024 26025 fi 26026 26027 26028 # Float_t and double_t are intended to be the the most efficient type. 26029 ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h> 26030 " 26031 if test "x$ac_cv_type_float_t" = xyes; then : 26032 26033 cat >>confdefs.h <<_ACEOF 26034 #define HAVE_FLOAT_T 1 26035 _ACEOF 26036 26037 26038 fi 26039 26040 ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h> 26041 " 26042 if test "x$ac_cv_type_double_t" = xyes; then : 26043 26044 cat >>confdefs.h <<_ACEOF 26045 #define HAVE_DOUBLE_T 1 26046 _ACEOF 26047 26048 26049 fi 26050 26051 # The cast to long int works around a bug in the HP C Compiler 26052 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26053 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26054 # This bug is HP SR number 8606223364. 26055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5 26056 $as_echo_n "checking size of float_t... " >&6; } 26057 if ${ac_cv_sizeof_float_t+:} false; then : 26058 $as_echo_n "(cached) " >&6 26059 else 26060 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h> 26061 "; then : 26062 26063 else 26064 if test "$ac_cv_type_float_t" = yes; then 26065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26067 as_fn_error 77 "cannot compute sizeof (float_t) 26068 See \`config.log' for more details" "$LINENO" 5; } 26069 else 26070 ac_cv_sizeof_float_t=0 26071 fi 26072 fi 26073 26074 fi 26075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5 26076 $as_echo "$ac_cv_sizeof_float_t" >&6; } 26077 26078 26079 26080 cat >>confdefs.h <<_ACEOF 26081 #define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t 26082 _ACEOF 26083 26084 26085 # The cast to long int works around a bug in the HP C Compiler 26086 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26087 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26088 # This bug is HP SR number 8606223364. 26089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5 26090 $as_echo_n "checking size of double_t... " >&6; } 26091 if ${ac_cv_sizeof_double_t+:} false; then : 26092 $as_echo_n "(cached) " >&6 26093 else 26094 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h> 26095 "; then : 26096 26097 else 26098 if test "$ac_cv_type_double_t" = yes; then 26099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26101 as_fn_error 77 "cannot compute sizeof (double_t) 26102 See \`config.log' for more details" "$LINENO" 5; } 26103 else 26104 ac_cv_sizeof_double_t=0 26105 fi 26106 fi 26107 26108 fi 26109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5 26110 $as_echo "$ac_cv_sizeof_double_t" >&6; } 26111 26112 26113 26114 cat >>confdefs.h <<_ACEOF 26115 #define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t 26116 _ACEOF 26117 26118 26119 26120 # Get size of float, double and long double for comparaison. 26121 # The cast to long int works around a bug in the HP C Compiler 26122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26124 # This bug is HP SR number 8606223364. 26125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 26126 $as_echo_n "checking size of float... " >&6; } 26127 if ${ac_cv_sizeof_float+:} false; then : 26128 $as_echo_n "(cached) " >&6 26129 else 26130 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : 26131 26132 else 26133 if test "$ac_cv_type_float" = yes; then 26134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26136 as_fn_error 77 "cannot compute sizeof (float) 26137 See \`config.log' for more details" "$LINENO" 5; } 26138 else 26139 ac_cv_sizeof_float=0 26140 fi 26141 fi 26142 26143 fi 26144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 26145 $as_echo "$ac_cv_sizeof_float" >&6; } 26146 26147 26148 26149 cat >>confdefs.h <<_ACEOF 26150 #define SIZEOF_FLOAT $ac_cv_sizeof_float 26151 _ACEOF 26152 26153 26154 # The cast to long int works around a bug in the HP C Compiler 26155 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26156 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26157 # This bug is HP SR number 8606223364. 26158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 26159 $as_echo_n "checking size of double... " >&6; } 26160 if ${ac_cv_sizeof_double+:} false; then : 26161 $as_echo_n "(cached) " >&6 26162 else 26163 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : 26164 26165 else 26166 if test "$ac_cv_type_double" = yes; then 26167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26169 as_fn_error 77 "cannot compute sizeof (double) 26170 See \`config.log' for more details" "$LINENO" 5; } 26171 else 26172 ac_cv_sizeof_double=0 26173 fi 26174 fi 26175 26176 fi 26177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 26178 $as_echo "$ac_cv_sizeof_double" >&6; } 26179 26180 26181 26182 cat >>confdefs.h <<_ACEOF 26183 #define SIZEOF_DOUBLE $ac_cv_sizeof_double 26184 _ACEOF 26185 26186 26187 # The cast to long int works around a bug in the HP C Compiler 26188 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26189 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26190 # This bug is HP SR number 8606223364. 26191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 26192 $as_echo_n "checking size of long double... " >&6; } 26193 if ${ac_cv_sizeof_long_double+:} false; then : 26194 $as_echo_n "(cached) " >&6 26195 else 26196 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : 26197 26198 else 26199 if test "$ac_cv_type_long_double" = yes; then 26200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26202 as_fn_error 77 "cannot compute sizeof (long double) 26203 See \`config.log' for more details" "$LINENO" 5; } 26204 else 26205 ac_cv_sizeof_long_double=0 26206 fi 26207 fi 26208 26209 fi 26210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 26211 $as_echo "$ac_cv_sizeof_long_double" >&6; } 26212 26213 26214 26215 cat >>confdefs.h <<_ACEOF 26216 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double 26217 _ACEOF 26218 26219 26220 26221 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT 26222 # The cast to long int works around a bug in the HP C Compiler 26223 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26224 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26225 # This bug is HP SR number 8606223364. 26226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 26227 $as_echo_n "checking size of signed short... " >&6; } 26228 if ${ac_cv_sizeof_signed_short+:} false; then : 26229 $as_echo_n "(cached) " >&6 26230 else 26231 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then : 26232 26233 else 26234 if test "$ac_cv_type_signed_short" = yes; then 26235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26237 as_fn_error 77 "cannot compute sizeof (signed short) 26238 See \`config.log' for more details" "$LINENO" 5; } 26239 else 26240 ac_cv_sizeof_signed_short=0 26241 fi 26242 fi 26243 26244 fi 26245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5 26246 $as_echo "$ac_cv_sizeof_signed_short" >&6; } 26247 26248 26249 26250 cat >>confdefs.h <<_ACEOF 26251 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short 26252 _ACEOF 26253 26254 26255 26256 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT 26257 # The cast to long int works around a bug in the HP C Compiler 26258 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26259 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26260 # This bug is HP SR number 8606223364. 26261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 26262 $as_echo_n "checking size of unsigned short... " >&6; } 26263 if ${ac_cv_sizeof_unsigned_short+:} false; then : 26264 $as_echo_n "(cached) " >&6 26265 else 26266 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : 26267 26268 else 26269 if test "$ac_cv_type_unsigned_short" = yes; then 26270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26272 as_fn_error 77 "cannot compute sizeof (unsigned short) 26273 See \`config.log' for more details" "$LINENO" 5; } 26274 else 26275 ac_cv_sizeof_unsigned_short=0 26276 fi 26277 fi 26278 26279 fi 26280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 26281 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; } 26282 26283 26284 26285 cat >>confdefs.h <<_ACEOF 26286 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 26287 _ACEOF 26288 26289 26290 26291 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT 26292 # The cast to long int works around a bug in the HP C Compiler 26293 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26294 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26295 # This bug is HP SR number 8606223364. 26296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 26297 $as_echo_n "checking size of signed int... " >&6; } 26298 if ${ac_cv_sizeof_signed_int+:} false; then : 26299 $as_echo_n "(cached) " >&6 26300 else 26301 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then : 26302 26303 else 26304 if test "$ac_cv_type_signed_int" = yes; then 26305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26307 as_fn_error 77 "cannot compute sizeof (signed int) 26308 See \`config.log' for more details" "$LINENO" 5; } 26309 else 26310 ac_cv_sizeof_signed_int=0 26311 fi 26312 fi 26313 26314 fi 26315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5 26316 $as_echo "$ac_cv_sizeof_signed_int" >&6; } 26317 26318 26319 26320 cat >>confdefs.h <<_ACEOF 26321 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int 26322 _ACEOF 26323 26324 26325 26326 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT 26327 # The cast to long int works around a bug in the HP C Compiler 26328 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26329 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26330 # This bug is HP SR number 8606223364. 26331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 26332 $as_echo_n "checking size of unsigned int... " >&6; } 26333 if ${ac_cv_sizeof_unsigned_int+:} false; then : 26334 $as_echo_n "(cached) " >&6 26335 else 26336 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 26337 26338 else 26339 if test "$ac_cv_type_unsigned_int" = yes; then 26340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26342 as_fn_error 77 "cannot compute sizeof (unsigned int) 26343 See \`config.log' for more details" "$LINENO" 5; } 26344 else 26345 ac_cv_sizeof_unsigned_int=0 26346 fi 26347 fi 26348 26349 fi 26350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 26351 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 26352 26353 26354 26355 cat >>confdefs.h <<_ACEOF 26356 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 26357 _ACEOF 26358 26359 26360 26361 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG 26362 # The cast to long int works around a bug in the HP C Compiler 26363 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26364 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26365 # This bug is HP SR number 8606223364. 26366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 26367 $as_echo_n "checking size of signed long... " >&6; } 26368 if ${ac_cv_sizeof_signed_long+:} false; then : 26369 $as_echo_n "(cached) " >&6 26370 else 26371 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then : 26372 26373 else 26374 if test "$ac_cv_type_signed_long" = yes; then 26375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26377 as_fn_error 77 "cannot compute sizeof (signed long) 26378 See \`config.log' for more details" "$LINENO" 5; } 26379 else 26380 ac_cv_sizeof_signed_long=0 26381 fi 26382 fi 26383 26384 fi 26385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5 26386 $as_echo "$ac_cv_sizeof_signed_long" >&6; } 26387 26388 26389 26390 cat >>confdefs.h <<_ACEOF 26391 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long 26392 _ACEOF 26393 26394 26395 26396 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG 26397 # The cast to long int works around a bug in the HP C Compiler 26398 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26399 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26400 # This bug is HP SR number 8606223364. 26401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 26402 $as_echo_n "checking size of unsigned long... " >&6; } 26403 if ${ac_cv_sizeof_unsigned_long+:} false; then : 26404 $as_echo_n "(cached) " >&6 26405 else 26406 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 26407 26408 else 26409 if test "$ac_cv_type_unsigned_long" = yes; then 26410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26412 as_fn_error 77 "cannot compute sizeof (unsigned long) 26413 See \`config.log' for more details" "$LINENO" 5; } 26414 else 26415 ac_cv_sizeof_unsigned_long=0 26416 fi 26417 fi 26418 26419 fi 26420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 26421 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 26422 26423 26424 26425 cat >>confdefs.h <<_ACEOF 26426 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 26427 _ACEOF 26428 26429 26430 26431 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If 26432 # 'signed long long' is not supported then the value defined is zero. 26433 # The cast to long int works around a bug in the HP C Compiler 26434 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26435 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26436 # This bug is HP SR number 8606223364. 26437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5 26438 $as_echo_n "checking size of signed long long... " >&6; } 26439 if ${ac_cv_sizeof_signed_long_long+:} false; then : 26440 $as_echo_n "(cached) " >&6 26441 else 26442 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then : 26443 26444 else 26445 if test "$ac_cv_type_signed_long_long" = yes; then 26446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26448 as_fn_error 77 "cannot compute sizeof (signed long long) 26449 See \`config.log' for more details" "$LINENO" 5; } 26450 else 26451 ac_cv_sizeof_signed_long_long=0 26452 fi 26453 fi 26454 26455 fi 26456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5 26457 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; } 26458 26459 26460 26461 cat >>confdefs.h <<_ACEOF 26462 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long 26463 _ACEOF 26464 26465 26466 26467 # Obtain size of a 'unsigned long long' and define as 26468 # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not 26469 # supported then the value defined is zero. 26470 # The cast to long int works around a bug in the HP C Compiler 26471 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26472 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26473 # This bug is HP SR number 8606223364. 26474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 26475 $as_echo_n "checking size of unsigned long long... " >&6; } 26476 if ${ac_cv_sizeof_unsigned_long_long+:} false; then : 26477 $as_echo_n "(cached) " >&6 26478 else 26479 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : 26480 26481 else 26482 if test "$ac_cv_type_unsigned_long_long" = yes; then 26483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26485 as_fn_error 77 "cannot compute sizeof (unsigned long long) 26486 See \`config.log' for more details" "$LINENO" 5; } 26487 else 26488 ac_cv_sizeof_unsigned_long_long=0 26489 fi 26490 fi 26491 26492 fi 26493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 26494 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } 26495 26496 26497 26498 cat >>confdefs.h <<_ACEOF 26499 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 26500 _ACEOF 26501 26502 26503 26504 # Obtain size of off_t and define as SIZEOF_OFF_T 26505 # The cast to long int works around a bug in the HP C Compiler 26506 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26507 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26508 # This bug is HP SR number 8606223364. 26509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 26510 $as_echo_n "checking size of off_t... " >&6; } 26511 if ${ac_cv_sizeof_off_t+:} false; then : 26512 $as_echo_n "(cached) " >&6 26513 else 26514 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 26515 26516 else 26517 if test "$ac_cv_type_off_t" = yes; then 26518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26520 as_fn_error 77 "cannot compute sizeof (off_t) 26521 See \`config.log' for more details" "$LINENO" 5; } 26522 else 26523 ac_cv_sizeof_off_t=0 26524 fi 26525 fi 26526 26527 fi 26528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 26529 $as_echo "$ac_cv_sizeof_off_t" >&6; } 26530 26531 26532 26533 cat >>confdefs.h <<_ACEOF 26534 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t 26535 _ACEOF 26536 26537 26538 26539 # Obtain size of size_t and define as SIZEOF_SIZE_T 26540 # The cast to long int works around a bug in the HP C Compiler 26541 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26542 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26543 # This bug is HP SR number 8606223364. 26544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 26545 $as_echo_n "checking size of size_t... " >&6; } 26546 if ${ac_cv_sizeof_size_t+:} false; then : 26547 $as_echo_n "(cached) " >&6 26548 else 26549 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 26550 26551 else 26552 if test "$ac_cv_type_size_t" = yes; then 26553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26555 as_fn_error 77 "cannot compute sizeof (size_t) 26556 See \`config.log' for more details" "$LINENO" 5; } 26557 else 26558 ac_cv_sizeof_size_t=0 26559 fi 26560 fi 26561 26562 fi 26563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 26564 $as_echo "$ac_cv_sizeof_size_t" >&6; } 26565 26566 26567 26568 cat >>confdefs.h <<_ACEOF 26569 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 26570 _ACEOF 26571 26572 26573 26574 # Obtain size of ssize_t and define as SIZEOF_SSIZE_T 26575 # The cast to long int works around a bug in the HP C Compiler 26576 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26577 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26578 # This bug is HP SR number 8606223364. 26579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 26580 $as_echo_n "checking size of ssize_t... " >&6; } 26581 if ${ac_cv_sizeof_ssize_t+:} false; then : 26582 $as_echo_n "(cached) " >&6 26583 else 26584 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then : 26585 26586 else 26587 if test "$ac_cv_type_ssize_t" = yes; then 26588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26590 as_fn_error 77 "cannot compute sizeof (ssize_t) 26591 See \`config.log' for more details" "$LINENO" 5; } 26592 else 26593 ac_cv_sizeof_ssize_t=0 26594 fi 26595 fi 26596 26597 fi 26598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5 26599 $as_echo "$ac_cv_sizeof_ssize_t" >&6; } 26600 26601 26602 26603 cat >>confdefs.h <<_ACEOF 26604 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t 26605 _ACEOF 26606 26607 26608 26609 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP 26610 # The cast to long int works around a bug in the HP C Compiler 26611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 26612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 26613 # This bug is HP SR number 8606223364. 26614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5 26615 $as_echo_n "checking size of unsigned int*... " >&6; } 26616 if ${ac_cv_sizeof_unsigned_intp+:} false; then : 26617 $as_echo_n "(cached) " >&6 26618 else 26619 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then : 26620 26621 else 26622 if test "$ac_cv_type_unsigned_intp" = yes; then 26623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26625 as_fn_error 77 "cannot compute sizeof (unsigned int*) 26626 See \`config.log' for more details" "$LINENO" 5; } 26627 else 26628 ac_cv_sizeof_unsigned_intp=0 26629 fi 26630 fi 26631 26632 fi 26633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5 26634 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; } 26635 26636 26637 26638 cat >>confdefs.h <<_ACEOF 26639 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp 26640 _ACEOF 26641 26642 26643 26644 # 26645 # Compute sized types for current CPU and compiler options. 26646 # 26647 26648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5 26649 $as_echo_n "checking for signed 8-bit type... " >&6; } 26650 INT8_T='signed char' 26651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5 26652 $as_echo "$INT8_T" >&6; } 26653 26654 26655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5 26656 $as_echo_n "checking for unsigned 8-bit type... " >&6; } 26657 UINT8_T='unsigned char' 26658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5 26659 $as_echo "$UINT8_T" >&6; } 26660 26661 26662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5 26663 $as_echo_n "checking for signed 16-bit type... " >&6; } 26664 INT16_T='signed short' 26665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5 26666 $as_echo "$INT16_T" >&6; } 26667 26668 26669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5 26670 $as_echo_n "checking for unsigned 16-bit type... " >&6; } 26671 UINT16_T='unsigned short' 26672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5 26673 $as_echo "$UINT16_T" >&6; } 26674 26675 26676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5 26677 $as_echo_n "checking for signed 32-bit type... " >&6; } 26678 INT32_T='none' 26679 INT32_F='none' 26680 if test $ac_cv_sizeof_signed_int -eq 4; then 26681 INT32_T='signed int' 26682 INT32_F='""' 26683 elif test $ac_cv_sizeof_signed_long -eq 4; then 26684 INT32_T='signed long' 26685 INT32_F='"l"' 26686 fi 26687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5 26688 $as_echo "$INT32_T" >&6; } 26689 26690 26691 26692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5 26693 $as_echo_n "checking for unsigned 32-bit type... " >&6; } 26694 UINT32_T='none' 26695 UINT32_F='none' 26696 if test $ac_cv_sizeof_unsigned_int -eq 4; then 26697 UINT32_T='unsigned int' 26698 UINT32_F='""' 26699 elif test $ac_cv_sizeof_unsigned_long -eq 4; then 26700 UINT32_T='unsigned long' 26701 UINT32_F='"l"' 26702 fi 26703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5 26704 $as_echo "$UINT32_T" >&6; } 26705 26706 26707 26708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5 26709 $as_echo_n "checking for signed 64-bit type... " >&6; } 26710 INT64_T='none' 26711 INT64_F='none' 26712 if test $ac_cv_sizeof_signed_long -eq 8; then 26713 INT64_T='signed long' 26714 INT64_F='"l"' 26715 elif test $ac_cv_sizeof_signed_long_long -eq 8; then 26716 INT64_T='signed long long' 26717 INT64_F='"ll"' 26718 fi 26719 case "${host_os}" in 26720 mingw* ) 26721 INT64_F='"I64"' 26722 ;; 26723 esac 26724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5 26725 $as_echo "$INT64_T" >&6; } 26726 26727 26728 26729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5 26730 $as_echo_n "checking for unsigned 64-bit type... " >&6; } 26731 UINT64_T='none' 26732 UINT64_F='none' 26733 if test $ac_cv_sizeof_unsigned_long -eq 8; then 26734 UINT64_T='unsigned long' 26735 UINT64_F='"l"' 26736 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then 26737 UINT64_T='unsigned long long' 26738 UINT64_F='"ll"' 26739 fi 26740 case "${host_os}" in 26741 mingw* ) 26742 UINT64_F='"I64"' 26743 ;; 26744 esac 26745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5 26746 $as_echo "$UINT64_T" >&6; } 26747 26748 26749 26750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5 26751 $as_echo_n "checking for unsigned maximum type... " >&6; } 26752 UINTMAX_T='none' 26753 UINTMAX_F='none' 26754 if test "$UINT64_T" != 'none'; then 26755 UINTMAX_T=$UINT64_T 26756 UINTMAX_F=$UINT64_F 26757 elif test "$UINT32_T" != 'none'; then 26758 UINTMAX_T=$UINT32_T 26759 UINTMAX_F=$UINT32_F 26760 fi 26761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5 26762 $as_echo "$UINTMAX_T" >&6; } 26763 26764 26765 26766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 26767 $as_echo_n "checking for pointer difference type... " >&6; } 26768 UINTPTR_T='none' 26769 UINTPTR_F='none' 26770 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then 26771 UINTPTR_T='unsigned long' 26772 UINTPTR_F='"l"' 26773 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then 26774 UINTPTR_T='unsigned long long' 26775 UINTPTR_F='"ll"' 26776 fi 26777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5 26778 $as_echo "$UINTPTR_T" >&6; } 26779 26780 26781 26782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5 26783 $as_echo_n "checking whether our compiler supports __func__... " >&6; } 26784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26785 /* end confdefs.h. */ 26786 26787 int 26788 main () 26789 { 26790 { const char *func = __func__; return(func != 0 ? 0 : 1); } 26791 ; 26792 return 0; 26793 } 26794 _ACEOF 26795 if ac_fn_c_try_compile "$LINENO"; then : 26796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26797 $as_echo "yes" >&6; } 26798 else 26799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26800 $as_echo "no" >&6; } 26801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5 26802 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; } 26803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26804 /* end confdefs.h. */ 26805 26806 int 26807 main () 26808 { 26809 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); } 26810 ; 26811 return 0; 26812 } 26813 _ACEOF 26814 if ac_fn_c_try_compile "$LINENO"; then : 26815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26816 $as_echo "yes" >&6; } 26817 26818 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h 26819 26820 else 26821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26822 $as_echo "no" >&6; } 26823 26824 $as_echo "#define __func__ __FILE__" >>confdefs.h 26825 26826 fi 26827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26828 fi 26829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26830 26831 ######## 26832 # 26833 # Check for functions 26834 # 26835 ######## 26836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 26837 $as_echo_n "checking whether closedir returns void... " >&6; } 26838 if ${ac_cv_func_closedir_void+:} false; then : 26839 $as_echo_n "(cached) " >&6 26840 else 26841 if test "$cross_compiling" = yes; then : 26842 ac_cv_func_closedir_void=yes 26843 else 26844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26845 /* end confdefs.h. */ 26846 $ac_includes_default 26847 #include <$ac_header_dirent> 26848 #ifndef __cplusplus 26849 int closedir (); 26850 #endif 26851 26852 int 26853 main () 26854 { 26855 return closedir (opendir (".")) != 0; 26856 ; 26857 return 0; 26858 } 26859 _ACEOF 26860 if ac_fn_c_try_run "$LINENO"; then : 26861 ac_cv_func_closedir_void=no 26862 else 26863 ac_cv_func_closedir_void=yes 26864 fi 26865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26866 conftest.$ac_objext conftest.beam conftest.$ac_ext 26867 fi 26868 26869 fi 26870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 26871 $as_echo "$ac_cv_func_closedir_void" >&6; } 26872 if test $ac_cv_func_closedir_void = yes; then 26873 26874 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h 26875 26876 fi 26877 26878 26879 26880 26881 for ac_header in $ac_header_list 26882 do : 26883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26884 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 26885 " 26886 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 26887 cat >>confdefs.h <<_ACEOF 26888 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26889 _ACEOF 26890 26891 fi 26892 26893 done 26894 26895 26896 26897 26898 26899 26900 26901 26902 for ac_func in getpagesize 26903 do : 26904 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 26905 if test "x$ac_cv_func_getpagesize" = xyes; then : 26906 cat >>confdefs.h <<_ACEOF 26907 #define HAVE_GETPAGESIZE 1 26908 _ACEOF 26909 26910 fi 26911 done 26912 26913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 26914 $as_echo_n "checking for working mmap... " >&6; } 26915 if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 26916 $as_echo_n "(cached) " >&6 26917 else 26918 if test "$cross_compiling" = yes; then : 26919 ac_cv_func_mmap_fixed_mapped=no 26920 else 26921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26922 /* end confdefs.h. */ 26923 $ac_includes_default 26924 /* malloc might have been renamed as rpl_malloc. */ 26925 #undef malloc 26926 26927 /* Thanks to Mike Haertel and Jim Avera for this test. 26928 Here is a matrix of mmap possibilities: 26929 mmap private not fixed 26930 mmap private fixed at somewhere currently unmapped 26931 mmap private fixed at somewhere already mapped 26932 mmap shared not fixed 26933 mmap shared fixed at somewhere currently unmapped 26934 mmap shared fixed at somewhere already mapped 26935 For private mappings, we should verify that changes cannot be read() 26936 back from the file, nor mmap's back from the file at a different 26937 address. (There have been systems where private was not correctly 26938 implemented like the infamous i386 svr4.0, and systems where the 26939 VM page cache was not coherent with the file system buffer cache 26940 like early versions of FreeBSD and possibly contemporary NetBSD.) 26941 For shared mappings, we should conversely verify that changes get 26942 propagated back to all the places they're supposed to be. 26943 26944 Grep wants private fixed already mapped. 26945 The main things grep needs to know about mmap are: 26946 * does it exist and is it safe to write into the mmap'd area 26947 * how to use it (BSD variants) */ 26948 26949 #include <fcntl.h> 26950 #include <sys/mman.h> 26951 26952 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 26953 char *malloc (); 26954 #endif 26955 26956 /* This mess was copied from the GNU getpagesize.h. */ 26957 #ifndef HAVE_GETPAGESIZE 26958 # ifdef _SC_PAGESIZE 26959 # define getpagesize() sysconf(_SC_PAGESIZE) 26960 # else /* no _SC_PAGESIZE */ 26961 # ifdef HAVE_SYS_PARAM_H 26962 # include <sys/param.h> 26963 # ifdef EXEC_PAGESIZE 26964 # define getpagesize() EXEC_PAGESIZE 26965 # else /* no EXEC_PAGESIZE */ 26966 # ifdef NBPG 26967 # define getpagesize() NBPG * CLSIZE 26968 # ifndef CLSIZE 26969 # define CLSIZE 1 26970 # endif /* no CLSIZE */ 26971 # else /* no NBPG */ 26972 # ifdef NBPC 26973 # define getpagesize() NBPC 26974 # else /* no NBPC */ 26975 # ifdef PAGESIZE 26976 # define getpagesize() PAGESIZE 26977 # endif /* PAGESIZE */ 26978 # endif /* no NBPC */ 26979 # endif /* no NBPG */ 26980 # endif /* no EXEC_PAGESIZE */ 26981 # else /* no HAVE_SYS_PARAM_H */ 26982 # define getpagesize() 8192 /* punt totally */ 26983 # endif /* no HAVE_SYS_PARAM_H */ 26984 # endif /* no _SC_PAGESIZE */ 26985 26986 #endif /* no HAVE_GETPAGESIZE */ 26987 26988 int 26989 main () 26990 { 26991 char *data, *data2, *data3; 26992 const char *cdata2; 26993 int i, pagesize; 26994 int fd, fd2; 26995 26996 pagesize = getpagesize (); 26997 26998 /* First, make a file with some known garbage in it. */ 26999 data = (char *) malloc (pagesize); 27000 if (!data) 27001 return 1; 27002 for (i = 0; i < pagesize; ++i) 27003 *(data + i) = rand (); 27004 umask (0); 27005 fd = creat ("conftest.mmap", 0600); 27006 if (fd < 0) 27007 return 2; 27008 if (write (fd, data, pagesize) != pagesize) 27009 return 3; 27010 close (fd); 27011 27012 /* Next, check that the tail of a page is zero-filled. File must have 27013 non-zero length, otherwise we risk SIGBUS for entire page. */ 27014 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 27015 if (fd2 < 0) 27016 return 4; 27017 cdata2 = ""; 27018 if (write (fd2, cdata2, 1) != 1) 27019 return 5; 27020 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 27021 if (data2 == MAP_FAILED) 27022 return 6; 27023 for (i = 0; i < pagesize; ++i) 27024 if (*(data2 + i)) 27025 return 7; 27026 close (fd2); 27027 if (munmap (data2, pagesize)) 27028 return 8; 27029 27030 /* Next, try to mmap the file at a fixed address which already has 27031 something else allocated at it. If we can, also make sure that 27032 we see the same garbage. */ 27033 fd = open ("conftest.mmap", O_RDWR); 27034 if (fd < 0) 27035 return 9; 27036 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 27037 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 27038 return 10; 27039 for (i = 0; i < pagesize; ++i) 27040 if (*(data + i) != *(data2 + i)) 27041 return 11; 27042 27043 /* Finally, make sure that changes to the mapped area do not 27044 percolate back to the file as seen by read(). (This is a bug on 27045 some variants of i386 svr4.0.) */ 27046 for (i = 0; i < pagesize; ++i) 27047 *(data2 + i) = *(data2 + i) + 1; 27048 data3 = (char *) malloc (pagesize); 27049 if (!data3) 27050 return 12; 27051 if (read (fd, data3, pagesize) != pagesize) 27052 return 13; 27053 for (i = 0; i < pagesize; ++i) 27054 if (*(data + i) != *(data3 + i)) 27055 return 14; 27056 close (fd); 27057 return 0; 27058 } 27059 _ACEOF 27060 if ac_fn_c_try_run "$LINENO"; then : 27061 ac_cv_func_mmap_fixed_mapped=yes 27062 else 27063 ac_cv_func_mmap_fixed_mapped=no 27064 fi 27065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27066 conftest.$ac_objext conftest.beam conftest.$ac_ext 27067 fi 27068 27069 fi 27070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 27071 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 27072 if test $ac_cv_func_mmap_fixed_mapped = yes; then 27073 27074 $as_echo "#define HAVE_MMAP 1" >>confdefs.h 27075 27076 fi 27077 rm -f conftest.mmap conftest.txt 27078 27079 for ac_header in vfork.h 27080 do : 27081 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 27082 if test "x$ac_cv_header_vfork_h" = xyes; then : 27083 cat >>confdefs.h <<_ACEOF 27084 #define HAVE_VFORK_H 1 27085 _ACEOF 27086 27087 fi 27088 27089 done 27090 27091 for ac_func in fork vfork 27092 do : 27093 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27094 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27095 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27096 cat >>confdefs.h <<_ACEOF 27097 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27098 _ACEOF 27099 27100 fi 27101 done 27102 27103 if test "x$ac_cv_func_fork" = xyes; then 27104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 27105 $as_echo_n "checking for working fork... " >&6; } 27106 if ${ac_cv_func_fork_works+:} false; then : 27107 $as_echo_n "(cached) " >&6 27108 else 27109 if test "$cross_compiling" = yes; then : 27110 ac_cv_func_fork_works=cross 27111 else 27112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27113 /* end confdefs.h. */ 27114 $ac_includes_default 27115 int 27116 main () 27117 { 27118 27119 /* By Ruediger Kuhlmann. */ 27120 return fork () < 0; 27121 27122 ; 27123 return 0; 27124 } 27125 _ACEOF 27126 if ac_fn_c_try_run "$LINENO"; then : 27127 ac_cv_func_fork_works=yes 27128 else 27129 ac_cv_func_fork_works=no 27130 fi 27131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27132 conftest.$ac_objext conftest.beam conftest.$ac_ext 27133 fi 27134 27135 fi 27136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 27137 $as_echo "$ac_cv_func_fork_works" >&6; } 27138 27139 else 27140 ac_cv_func_fork_works=$ac_cv_func_fork 27141 fi 27142 if test "x$ac_cv_func_fork_works" = xcross; then 27143 case $host in 27144 *-*-amigaos* | *-*-msdosdjgpp*) 27145 # Override, as these systems have only a dummy fork() stub 27146 ac_cv_func_fork_works=no 27147 ;; 27148 *) 27149 ac_cv_func_fork_works=yes 27150 ;; 27151 esac 27152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 27153 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 27154 fi 27155 ac_cv_func_vfork_works=$ac_cv_func_vfork 27156 if test "x$ac_cv_func_vfork" = xyes; then 27157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 27158 $as_echo_n "checking for working vfork... " >&6; } 27159 if ${ac_cv_func_vfork_works+:} false; then : 27160 $as_echo_n "(cached) " >&6 27161 else 27162 if test "$cross_compiling" = yes; then : 27163 ac_cv_func_vfork_works=cross 27164 else 27165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27166 /* end confdefs.h. */ 27167 /* Thanks to Paul Eggert for this test. */ 27168 $ac_includes_default 27169 #include <sys/wait.h> 27170 #ifdef HAVE_VFORK_H 27171 # include <vfork.h> 27172 #endif 27173 /* On some sparc systems, changes by the child to local and incoming 27174 argument registers are propagated back to the parent. The compiler 27175 is told about this with #include <vfork.h>, but some compilers 27176 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 27177 static variable whose address is put into a register that is 27178 clobbered by the vfork. */ 27179 static void 27180 #ifdef __cplusplus 27181 sparc_address_test (int arg) 27182 # else 27183 sparc_address_test (arg) int arg; 27184 #endif 27185 { 27186 static pid_t child; 27187 if (!child) { 27188 child = vfork (); 27189 if (child < 0) { 27190 perror ("vfork"); 27191 _exit(2); 27192 } 27193 if (!child) { 27194 arg = getpid(); 27195 write(-1, "", 0); 27196 _exit (arg); 27197 } 27198 } 27199 } 27200 27201 int 27202 main () 27203 { 27204 pid_t parent = getpid (); 27205 pid_t child; 27206 27207 sparc_address_test (0); 27208 27209 child = vfork (); 27210 27211 if (child == 0) { 27212 /* Here is another test for sparc vfork register problems. This 27213 test uses lots of local variables, at least as many local 27214 variables as main has allocated so far including compiler 27215 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 27216 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 27217 reuse the register of parent for one of the local variables, 27218 since it will think that parent can't possibly be used any more 27219 in this routine. Assigning to the local variable will thus 27220 munge parent in the parent process. */ 27221 pid_t 27222 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 27223 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 27224 /* Convince the compiler that p..p7 are live; otherwise, it might 27225 use the same hardware register for all 8 local variables. */ 27226 if (p != p1 || p != p2 || p != p3 || p != p4 27227 || p != p5 || p != p6 || p != p7) 27228 _exit(1); 27229 27230 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 27231 from child file descriptors. If the child closes a descriptor 27232 before it execs or exits, this munges the parent's descriptor 27233 as well. Test for this by closing stdout in the child. */ 27234 _exit(close(fileno(stdout)) != 0); 27235 } else { 27236 int status; 27237 struct stat st; 27238 27239 while (wait(&status) != child) 27240 ; 27241 return ( 27242 /* Was there some problem with vforking? */ 27243 child < 0 27244 27245 /* Did the child fail? (This shouldn't happen.) */ 27246 || status 27247 27248 /* Did the vfork/compiler bug occur? */ 27249 || parent != getpid() 27250 27251 /* Did the file descriptor bug occur? */ 27252 || fstat(fileno(stdout), &st) != 0 27253 ); 27254 } 27255 } 27256 _ACEOF 27257 if ac_fn_c_try_run "$LINENO"; then : 27258 ac_cv_func_vfork_works=yes 27259 else 27260 ac_cv_func_vfork_works=no 27261 fi 27262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27263 conftest.$ac_objext conftest.beam conftest.$ac_ext 27264 fi 27265 27266 fi 27267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 27268 $as_echo "$ac_cv_func_vfork_works" >&6; } 27269 27270 fi; 27271 if test "x$ac_cv_func_fork_works" = xcross; then 27272 ac_cv_func_vfork_works=$ac_cv_func_vfork 27273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 27274 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 27275 fi 27276 27277 if test "x$ac_cv_func_vfork_works" = xyes; then 27278 27279 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 27280 27281 else 27282 27283 $as_echo "#define vfork fork" >>confdefs.h 27284 27285 fi 27286 if test "x$ac_cv_func_fork_works" = xyes; then 27287 27288 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 27289 27290 fi 27291 27292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 27293 $as_echo_n "checking for working memcmp... " >&6; } 27294 if ${ac_cv_func_memcmp_working+:} false; then : 27295 $as_echo_n "(cached) " >&6 27296 else 27297 if test "$cross_compiling" = yes; then : 27298 ac_cv_func_memcmp_working=no 27299 else 27300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27301 /* end confdefs.h. */ 27302 $ac_includes_default 27303 int 27304 main () 27305 { 27306 27307 /* Some versions of memcmp are not 8-bit clean. */ 27308 char c0 = '\100', c1 = '\200', c2 = '\201'; 27309 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 27310 return 1; 27311 27312 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 27313 or more and with at least one buffer not starting on a 4-byte boundary. 27314 William Lewis provided this test program. */ 27315 { 27316 char foo[21]; 27317 char bar[21]; 27318 int i; 27319 for (i = 0; i < 4; i++) 27320 { 27321 char *a = foo + i; 27322 char *b = bar + i; 27323 strcpy (a, "--------01111111"); 27324 strcpy (b, "--------10000000"); 27325 if (memcmp (a, b, 16) >= 0) 27326 return 1; 27327 } 27328 return 0; 27329 } 27330 27331 ; 27332 return 0; 27333 } 27334 _ACEOF 27335 if ac_fn_c_try_run "$LINENO"; then : 27336 ac_cv_func_memcmp_working=yes 27337 else 27338 ac_cv_func_memcmp_working=no 27339 fi 27340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27341 conftest.$ac_objext conftest.beam conftest.$ac_ext 27342 fi 27343 27344 fi 27345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 27346 $as_echo "$ac_cv_func_memcmp_working" >&6; } 27347 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 27348 *" memcmp.$ac_objext "* ) ;; 27349 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 27350 ;; 27351 esac 27352 27353 27354 for ac_header in sys/select.h sys/socket.h 27355 do : 27356 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27357 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 27358 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 27359 cat >>confdefs.h <<_ACEOF 27360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27361 _ACEOF 27362 27363 fi 27364 27365 done 27366 27367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 27368 $as_echo_n "checking types of arguments for select... " >&6; } 27369 if ${ac_cv_func_select_args+:} false; then : 27370 $as_echo_n "(cached) " >&6 27371 else 27372 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 27373 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 27374 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 27375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27376 /* end confdefs.h. */ 27377 $ac_includes_default 27378 #ifdef HAVE_SYS_SELECT_H 27379 # include <sys/select.h> 27380 #endif 27381 #ifdef HAVE_SYS_SOCKET_H 27382 # include <sys/socket.h> 27383 #endif 27384 27385 int 27386 main () 27387 { 27388 extern int select ($ac_arg1, 27389 $ac_arg234, $ac_arg234, $ac_arg234, 27390 $ac_arg5); 27391 ; 27392 return 0; 27393 } 27394 _ACEOF 27395 if ac_fn_c_try_compile "$LINENO"; then : 27396 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 27397 fi 27398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27399 done 27400 done 27401 done 27402 # Provide a safe default value. 27403 : "${ac_cv_func_select_args=int,int *,struct timeval *}" 27404 27405 fi 27406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 27407 $as_echo "$ac_cv_func_select_args" >&6; } 27408 ac_save_IFS=$IFS; IFS=',' 27409 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 27410 IFS=$ac_save_IFS 27411 shift 27412 27413 cat >>confdefs.h <<_ACEOF 27414 #define SELECT_TYPE_ARG1 $1 27415 _ACEOF 27416 27417 27418 cat >>confdefs.h <<_ACEOF 27419 #define SELECT_TYPE_ARG234 ($2) 27420 _ACEOF 27421 27422 27423 cat >>confdefs.h <<_ACEOF 27424 #define SELECT_TYPE_ARG5 ($3) 27425 _ACEOF 27426 27427 rm -f conftest* 27428 27429 if ${ac_cv_func_setvbuf_reversed+:} false; then : 27430 $as_echo_n "(cached) " >&6 27431 else 27432 ac_cv_func_setvbuf_reversed=no 27433 fi 27434 27435 27436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 27437 $as_echo_n "checking return type of signal handlers... " >&6; } 27438 if ${ac_cv_type_signal+:} false; then : 27439 $as_echo_n "(cached) " >&6 27440 else 27441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27442 /* end confdefs.h. */ 27443 #include <sys/types.h> 27444 #include <signal.h> 27445 27446 int 27447 main () 27448 { 27449 return *(signal (0, 0)) (0) == 1; 27450 ; 27451 return 0; 27452 } 27453 _ACEOF 27454 if ac_fn_c_try_compile "$LINENO"; then : 27455 ac_cv_type_signal=int 27456 else 27457 ac_cv_type_signal=void 27458 fi 27459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27460 fi 27461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 27462 $as_echo "$ac_cv_type_signal" >&6; } 27463 27464 cat >>confdefs.h <<_ACEOF 27465 #define RETSIGTYPE $ac_cv_type_signal 27466 _ACEOF 27467 27468 27469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 27470 $as_echo_n "checking for working strtod... " >&6; } 27471 if ${ac_cv_func_strtod+:} false; then : 27472 $as_echo_n "(cached) " >&6 27473 else 27474 if test "$cross_compiling" = yes; then : 27475 ac_cv_func_strtod=no 27476 else 27477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27478 /* end confdefs.h. */ 27479 27480 $ac_includes_default 27481 #ifndef strtod 27482 double strtod (); 27483 #endif 27484 int 27485 main() 27486 { 27487 { 27488 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 27489 char *string = " +69"; 27490 char *term; 27491 double value; 27492 value = strtod (string, &term); 27493 if (value != 69 || term != (string + 4)) 27494 return 1; 27495 } 27496 27497 { 27498 /* Under Solaris 2.4, strtod returns the wrong value for the 27499 terminating character under some conditions. */ 27500 char *string = "NaN"; 27501 char *term; 27502 strtod (string, &term); 27503 if (term != string && *(term - 1) == 0) 27504 return 1; 27505 } 27506 return 0; 27507 } 27508 27509 _ACEOF 27510 if ac_fn_c_try_run "$LINENO"; then : 27511 ac_cv_func_strtod=yes 27512 else 27513 ac_cv_func_strtod=no 27514 fi 27515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27516 conftest.$ac_objext conftest.beam conftest.$ac_ext 27517 fi 27518 27519 fi 27520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 27521 $as_echo "$ac_cv_func_strtod" >&6; } 27522 if test $ac_cv_func_strtod = no; then 27523 case " $LIBOBJS " in 27524 *" strtod.$ac_objext "* ) ;; 27525 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" 27526 ;; 27527 esac 27528 27529 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" 27530 if test "x$ac_cv_func_pow" = xyes; then : 27531 27532 fi 27533 27534 if test $ac_cv_func_pow = no; then 27535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 27536 $as_echo_n "checking for pow in -lm... " >&6; } 27537 if ${ac_cv_lib_m_pow+:} false; then : 27538 $as_echo_n "(cached) " >&6 27539 else 27540 ac_check_lib_save_LIBS=$LIBS 27541 LIBS="-lm $LIBS" 27542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27543 /* end confdefs.h. */ 27544 27545 /* Override any GCC internal prototype to avoid an error. 27546 Use char because int might match the return type of a GCC 27547 builtin and then its argument prototype would still apply. */ 27548 #ifdef __cplusplus 27549 extern "C" 27550 #endif 27551 char pow (); 27552 int 27553 main () 27554 { 27555 return pow (); 27556 ; 27557 return 0; 27558 } 27559 _ACEOF 27560 if ac_fn_c_try_link "$LINENO"; then : 27561 ac_cv_lib_m_pow=yes 27562 else 27563 ac_cv_lib_m_pow=no 27564 fi 27565 rm -f core conftest.err conftest.$ac_objext \ 27566 conftest$ac_exeext conftest.$ac_ext 27567 LIBS=$ac_check_lib_save_LIBS 27568 fi 27569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 27570 $as_echo "$ac_cv_lib_m_pow" >&6; } 27571 if test "x$ac_cv_lib_m_pow" = xyes; then : 27572 POW_LIB=-lm 27573 else 27574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 27575 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 27576 fi 27577 27578 fi 27579 27580 fi 27581 27582 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 27583 if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 27584 ac_have_decl=1 27585 else 27586 ac_have_decl=0 27587 fi 27588 27589 cat >>confdefs.h <<_ACEOF 27590 #define HAVE_DECL_STRERROR_R $ac_have_decl 27591 _ACEOF 27592 27593 for ac_func in strerror_r 27594 do : 27595 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 27596 if test "x$ac_cv_func_strerror_r" = xyes; then : 27597 cat >>confdefs.h <<_ACEOF 27598 #define HAVE_STRERROR_R 1 27599 _ACEOF 27600 27601 fi 27602 done 27603 27604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 27605 $as_echo_n "checking whether strerror_r returns char *... " >&6; } 27606 if ${ac_cv_func_strerror_r_char_p+:} false; then : 27607 $as_echo_n "(cached) " >&6 27608 else 27609 27610 ac_cv_func_strerror_r_char_p=no 27611 if test $ac_cv_have_decl_strerror_r = yes; then 27612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27613 /* end confdefs.h. */ 27614 $ac_includes_default 27615 int 27616 main () 27617 { 27618 27619 char buf[100]; 27620 char x = *strerror_r (0, buf, sizeof buf); 27621 char *p = strerror_r (0, buf, sizeof buf); 27622 return !p || x; 27623 27624 ; 27625 return 0; 27626 } 27627 _ACEOF 27628 if ac_fn_c_try_compile "$LINENO"; then : 27629 ac_cv_func_strerror_r_char_p=yes 27630 fi 27631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27632 else 27633 # strerror_r is not declared. Choose between 27634 # systems that have relatively inaccessible declarations for the 27635 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 27636 # former has a strerror_r that returns char*, while the latter 27637 # has a strerror_r that returns `int'. 27638 # This test should segfault on the DEC system. 27639 if test "$cross_compiling" = yes; then : 27640 : 27641 else 27642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27643 /* end confdefs.h. */ 27644 $ac_includes_default 27645 extern char *strerror_r (); 27646 int 27647 main () 27648 { 27649 char buf[100]; 27650 char x = *strerror_r (0, buf, sizeof buf); 27651 return ! isalpha (x); 27652 ; 27653 return 0; 27654 } 27655 _ACEOF 27656 if ac_fn_c_try_run "$LINENO"; then : 27657 ac_cv_func_strerror_r_char_p=yes 27658 fi 27659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27660 conftest.$ac_objext conftest.beam conftest.$ac_ext 27661 fi 27662 27663 fi 27664 27665 fi 27666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 27667 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 27668 if test $ac_cv_func_strerror_r_char_p = yes; then 27669 27670 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 27671 27672 fi 27673 27674 for ac_func in vprintf 27675 do : 27676 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 27677 if test "x$ac_cv_func_vprintf" = xyes; then : 27678 cat >>confdefs.h <<_ACEOF 27679 #define HAVE_VPRINTF 1 27680 _ACEOF 27681 27682 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 27683 if test "x$ac_cv_func__doprnt" = xyes; then : 27684 27685 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 27686 27687 fi 27688 27689 fi 27690 done 27691 27692 27693 27694 # 27695 # Find math library 27696 # 27697 MATH_LIBS='' 27698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 27699 $as_echo_n "checking for sqrt in -lm... " >&6; } 27700 if ${ac_cv_lib_m_sqrt+:} false; then : 27701 $as_echo_n "(cached) " >&6 27702 else 27703 ac_check_lib_save_LIBS=$LIBS 27704 LIBS="-lm $LIBS" 27705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27706 /* end confdefs.h. */ 27707 27708 /* Override any GCC internal prototype to avoid an error. 27709 Use char because int might match the return type of a GCC 27710 builtin and then its argument prototype would still apply. */ 27711 #ifdef __cplusplus 27712 extern "C" 27713 #endif 27714 char sqrt (); 27715 int 27716 main () 27717 { 27718 return sqrt (); 27719 ; 27720 return 0; 27721 } 27722 _ACEOF 27723 if ac_fn_c_try_link "$LINENO"; then : 27724 ac_cv_lib_m_sqrt=yes 27725 else 27726 ac_cv_lib_m_sqrt=no 27727 fi 27728 rm -f core conftest.err conftest.$ac_objext \ 27729 conftest$ac_exeext conftest.$ac_ext 27730 LIBS=$ac_check_lib_save_LIBS 27731 fi 27732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 27733 $as_echo "$ac_cv_lib_m_sqrt" >&6; } 27734 if test "x$ac_cv_lib_m_sqrt" = xyes; then : 27735 MATH_LIBS="-lm" 27736 fi 27737 27738 LIBS="$MATH_LIBS $LIBS" 27739 27740 27741 # 27742 # Find socket library 27743 # 27744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 27745 $as_echo_n "checking for library containing gethostbyname... " >&6; } 27746 if ${ac_cv_search_gethostbyname+:} false; then : 27747 $as_echo_n "(cached) " >&6 27748 else 27749 ac_func_search_save_LIBS=$LIBS 27750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27751 /* end confdefs.h. */ 27752 27753 /* Override any GCC internal prototype to avoid an error. 27754 Use char because int might match the return type of a GCC 27755 builtin and then its argument prototype would still apply. */ 27756 #ifdef __cplusplus 27757 extern "C" 27758 #endif 27759 char gethostbyname (); 27760 int 27761 main () 27762 { 27763 return gethostbyname (); 27764 ; 27765 return 0; 27766 } 27767 _ACEOF 27768 for ac_lib in '' resolv nsl; do 27769 if test -z "$ac_lib"; then 27770 ac_res="none required" 27771 else 27772 ac_res=-l$ac_lib 27773 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 27774 fi 27775 if ac_fn_c_try_link "$LINENO"; then : 27776 ac_cv_search_gethostbyname=$ac_res 27777 fi 27778 rm -f core conftest.err conftest.$ac_objext \ 27779 conftest$ac_exeext 27780 if ${ac_cv_search_gethostbyname+:} false; then : 27781 break 27782 fi 27783 done 27784 if ${ac_cv_search_gethostbyname+:} false; then : 27785 27786 else 27787 ac_cv_search_gethostbyname=no 27788 fi 27789 rm conftest.$ac_ext 27790 LIBS=$ac_func_search_save_LIBS 27791 fi 27792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 27793 $as_echo "$ac_cv_search_gethostbyname" >&6; } 27794 ac_res=$ac_cv_search_gethostbyname 27795 if test "$ac_res" != no; then : 27796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 27797 27798 fi 27799 27800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 27801 $as_echo_n "checking for library containing socket... " >&6; } 27802 if ${ac_cv_search_socket+:} false; then : 27803 $as_echo_n "(cached) " >&6 27804 else 27805 ac_func_search_save_LIBS=$LIBS 27806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27807 /* end confdefs.h. */ 27808 27809 /* Override any GCC internal prototype to avoid an error. 27810 Use char because int might match the return type of a GCC 27811 builtin and then its argument prototype would still apply. */ 27812 #ifdef __cplusplus 27813 extern "C" 27814 #endif 27815 char socket (); 27816 int 27817 main () 27818 { 27819 return socket (); 27820 ; 27821 return 0; 27822 } 27823 _ACEOF 27824 for ac_lib in '' socket; do 27825 if test -z "$ac_lib"; then 27826 ac_res="none required" 27827 else 27828 ac_res=-l$ac_lib 27829 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 27830 fi 27831 if ac_fn_c_try_link "$LINENO"; then : 27832 ac_cv_search_socket=$ac_res 27833 fi 27834 rm -f core conftest.err conftest.$ac_objext \ 27835 conftest$ac_exeext 27836 if ${ac_cv_search_socket+:} false; then : 27837 break 27838 fi 27839 done 27840 if ${ac_cv_search_socket+:} false; then : 27841 27842 else 27843 ac_cv_search_socket=no 27844 fi 27845 rm conftest.$ac_ext 27846 LIBS=$ac_func_search_save_LIBS 27847 fi 27848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 27849 $as_echo "$ac_cv_search_socket" >&6; } 27850 ac_res=$ac_cv_search_socket 27851 if test "$ac_res" != no; then : 27852 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 27853 27854 27855 $as_echo "#define HAVE_SOCKET 1" >>confdefs.h 27856 27857 MAGICK_FEATURES="DPC $MAGICK_FEATURES" 27858 27859 fi 27860 27861 27862 for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio erf _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir sendfile setlocale socket sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat 27863 do : 27864 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27865 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27866 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27867 cat >>confdefs.h <<_ACEOF 27868 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27869 _ACEOF 27870 27871 fi 27872 done 27873 27874 27875 # 27876 # Check for clock_gettime(). 27877 # 27878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 27879 $as_echo_n "checking for library containing clock_gettime... " >&6; } 27880 if ${ac_cv_search_clock_gettime+:} false; then : 27881 $as_echo_n "(cached) " >&6 27882 else 27883 ac_func_search_save_LIBS=$LIBS 27884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27885 /* end confdefs.h. */ 27886 27887 /* Override any GCC internal prototype to avoid an error. 27888 Use char because int might match the return type of a GCC 27889 builtin and then its argument prototype would still apply. */ 27890 #ifdef __cplusplus 27891 extern "C" 27892 #endif 27893 char clock_gettime (); 27894 int 27895 main () 27896 { 27897 return clock_gettime (); 27898 ; 27899 return 0; 27900 } 27901 _ACEOF 27902 for ac_lib in '' rt; do 27903 if test -z "$ac_lib"; then 27904 ac_res="none required" 27905 else 27906 ac_res=-l$ac_lib 27907 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 27908 fi 27909 if ac_fn_c_try_link "$LINENO"; then : 27910 ac_cv_search_clock_gettime=$ac_res 27911 fi 27912 rm -f core conftest.err conftest.$ac_objext \ 27913 conftest$ac_exeext 27914 if ${ac_cv_search_clock_gettime+:} false; then : 27915 break 27916 fi 27917 done 27918 if ${ac_cv_search_clock_gettime+:} false; then : 27919 27920 else 27921 ac_cv_search_clock_gettime=no 27922 fi 27923 rm conftest.$ac_ext 27924 LIBS=$ac_func_search_save_LIBS 27925 fi 27926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 27927 $as_echo "$ac_cv_search_clock_gettime" >&6; } 27928 ac_res=$ac_cv_search_clock_gettime 27929 if test "$ac_res" != no; then : 27930 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 27931 27932 27933 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 27934 27935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5 27936 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; } 27937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27938 /* end confdefs.h. */ 27939 27940 #include <time.h> 27941 int 27942 main () 27943 { 27944 clockid_t clockType = CLOCK_REALTIME; 27945 ; 27946 return 0; 27947 } 27948 _ACEOF 27949 if ac_fn_c_try_compile "$LINENO"; then : 27950 27951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27952 $as_echo "yes" >&6; } 27953 27954 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h 27955 27956 27957 else 27958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27959 $as_echo "no" >&6; } 27960 27961 fi 27962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27963 27964 else 27965 27966 for ac_func in gettimeofday ftime 27967 do : 27968 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 27969 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27970 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 27971 cat >>confdefs.h <<_ACEOF 27972 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 27973 _ACEOF 27974 break 27975 fi 27976 done 27977 27978 27979 27980 fi 27981 27982 27983 ######## 27984 # 27985 # Check for function prototypes 27986 # 27987 ######## 27988 27989 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" " 27990 #include <unistd.h> 27991 " 27992 if test "x$ac_cv_have_decl_pread" = xyes; then : 27993 ac_have_decl=1 27994 else 27995 ac_have_decl=0 27996 fi 27997 27998 cat >>confdefs.h <<_ACEOF 27999 #define HAVE_DECL_PREAD $ac_have_decl 28000 _ACEOF 28001 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" " 28002 #include <unistd.h> 28003 " 28004 if test "x$ac_cv_have_decl_pwrite" = xyes; then : 28005 ac_have_decl=1 28006 else 28007 ac_have_decl=0 28008 fi 28009 28010 cat >>confdefs.h <<_ACEOF 28011 #define HAVE_DECL_PWRITE $ac_have_decl 28012 _ACEOF 28013 28014 28015 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" " 28016 #include <strings.h> 28017 " 28018 if test "x$ac_cv_have_decl_strlcpy" = xyes; then : 28019 ac_have_decl=1 28020 else 28021 ac_have_decl=0 28022 fi 28023 28024 cat >>confdefs.h <<_ACEOF 28025 #define HAVE_DECL_STRLCPY $ac_have_decl 28026 _ACEOF 28027 28028 28029 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" " 28030 #include <stdio.h> 28031 #include <stdarg.h> 28032 " 28033 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : 28034 ac_have_decl=1 28035 else 28036 ac_have_decl=0 28037 fi 28038 28039 cat >>confdefs.h <<_ACEOF 28040 #define HAVE_DECL_VSNPRINTF $ac_have_decl 28041 _ACEOF 28042 28043 28044 ######## 28045 # 28046 # C++ Support Tests (For Magick++) 28047 # 28048 ######## 28049 have_magick_plus_plus='no' 28050 if test "$with_magick_plus_plus" = 'yes'; then 28051 OLIBS="$LIBS" 28052 LIBS='' 28053 ac_ext=cpp 28054 ac_cpp='$CXXCPP $CPPFLAGS' 28055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28058 28059 28060 # Full set of headers used... 28061 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception 28062 # functional iomanip iosfwd iostream iterator list string strstream utility 28063 ac_ext=cpp 28064 ac_cpp='$CXXCPP $CPPFLAGS' 28065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28068 28069 ac_ext=cpp 28070 ac_cpp='$CXXCPP $CPPFLAGS' 28071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28074 if test -z "$CXX"; then 28075 if test -n "$CCC"; then 28076 CXX=$CCC 28077 else 28078 if test -n "$ac_tool_prefix"; then 28079 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 28080 do 28081 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28082 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28084 $as_echo_n "checking for $ac_word... " >&6; } 28085 if ${ac_cv_prog_CXX+:} false; then : 28086 $as_echo_n "(cached) " >&6 28087 else 28088 if test -n "$CXX"; then 28089 ac_cv_prog_CXX="$CXX" # Let the user override the test. 28090 else 28091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28092 for as_dir in $PATH 28093 do 28094 IFS=$as_save_IFS 28095 test -z "$as_dir" && as_dir=. 28096 for ac_exec_ext in '' $ac_executable_extensions; do 28097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28098 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 28099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28100 break 2 28101 fi 28102 done 28103 done 28104 IFS=$as_save_IFS 28105 28106 fi 28107 fi 28108 CXX=$ac_cv_prog_CXX 28109 if test -n "$CXX"; then 28110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 28111 $as_echo "$CXX" >&6; } 28112 else 28113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28114 $as_echo "no" >&6; } 28115 fi 28116 28117 28118 test -n "$CXX" && break 28119 done 28120 fi 28121 if test -z "$CXX"; then 28122 ac_ct_CXX=$CXX 28123 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 28124 do 28125 # Extract the first word of "$ac_prog", so it can be a program name with args. 28126 set dummy $ac_prog; ac_word=$2 28127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28128 $as_echo_n "checking for $ac_word... " >&6; } 28129 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 28130 $as_echo_n "(cached) " >&6 28131 else 28132 if test -n "$ac_ct_CXX"; then 28133 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 28134 else 28135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28136 for as_dir in $PATH 28137 do 28138 IFS=$as_save_IFS 28139 test -z "$as_dir" && as_dir=. 28140 for ac_exec_ext in '' $ac_executable_extensions; do 28141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28142 ac_cv_prog_ac_ct_CXX="$ac_prog" 28143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28144 break 2 28145 fi 28146 done 28147 done 28148 IFS=$as_save_IFS 28149 28150 fi 28151 fi 28152 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 28153 if test -n "$ac_ct_CXX"; then 28154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 28155 $as_echo "$ac_ct_CXX" >&6; } 28156 else 28157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28158 $as_echo "no" >&6; } 28159 fi 28160 28161 28162 test -n "$ac_ct_CXX" && break 28163 done 28164 28165 if test "x$ac_ct_CXX" = x; then 28166 CXX="g++" 28167 else 28168 case $cross_compiling:$ac_tool_warned in 28169 yes:) 28170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28172 ac_tool_warned=yes ;; 28173 esac 28174 CXX=$ac_ct_CXX 28175 fi 28176 fi 28177 28178 fi 28179 fi 28180 # Provide some information about the compiler. 28181 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 28182 set X $ac_compile 28183 ac_compiler=$2 28184 for ac_option in --version -v -V -qversion; do 28185 { { ac_try="$ac_compiler $ac_option >&5" 28186 case "(($ac_try" in 28187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28188 *) ac_try_echo=$ac_try;; 28189 esac 28190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28191 $as_echo "$ac_try_echo"; } >&5 28192 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 28193 ac_status=$? 28194 if test -s conftest.err; then 28195 sed '10a\ 28196 ... rest of stderr output deleted ... 28197 10q' conftest.err >conftest.er1 28198 cat conftest.er1 >&5 28199 fi 28200 rm -f conftest.er1 conftest.err 28201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28202 test $ac_status = 0; } 28203 done 28204 28205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 28206 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 28207 if ${ac_cv_cxx_compiler_gnu+:} false; then : 28208 $as_echo_n "(cached) " >&6 28209 else 28210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28211 /* end confdefs.h. */ 28212 28213 int 28214 main () 28215 { 28216 #ifndef __GNUC__ 28217 choke me 28218 #endif 28219 28220 ; 28221 return 0; 28222 } 28223 _ACEOF 28224 if ac_fn_cxx_try_compile "$LINENO"; then : 28225 ac_compiler_gnu=yes 28226 else 28227 ac_compiler_gnu=no 28228 fi 28229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28230 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 28231 28232 fi 28233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 28234 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 28235 if test $ac_compiler_gnu = yes; then 28236 GXX=yes 28237 else 28238 GXX= 28239 fi 28240 ac_test_CXXFLAGS=${CXXFLAGS+set} 28241 ac_save_CXXFLAGS=$CXXFLAGS 28242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 28243 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 28244 if ${ac_cv_prog_cxx_g+:} false; then : 28245 $as_echo_n "(cached) " >&6 28246 else 28247 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 28248 ac_cxx_werror_flag=yes 28249 ac_cv_prog_cxx_g=no 28250 CXXFLAGS="-g" 28251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28252 /* end confdefs.h. */ 28253 28254 int 28255 main () 28256 { 28257 28258 ; 28259 return 0; 28260 } 28261 _ACEOF 28262 if ac_fn_cxx_try_compile "$LINENO"; then : 28263 ac_cv_prog_cxx_g=yes 28264 else 28265 CXXFLAGS="" 28266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28267 /* end confdefs.h. */ 28268 28269 int 28270 main () 28271 { 28272 28273 ; 28274 return 0; 28275 } 28276 _ACEOF 28277 if ac_fn_cxx_try_compile "$LINENO"; then : 28278 28279 else 28280 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 28281 CXXFLAGS="-g" 28282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28283 /* end confdefs.h. */ 28284 28285 int 28286 main () 28287 { 28288 28289 ; 28290 return 0; 28291 } 28292 _ACEOF 28293 if ac_fn_cxx_try_compile "$LINENO"; then : 28294 ac_cv_prog_cxx_g=yes 28295 fi 28296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28297 fi 28298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28299 fi 28300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28301 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 28302 fi 28303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 28304 $as_echo "$ac_cv_prog_cxx_g" >&6; } 28305 if test "$ac_test_CXXFLAGS" = set; then 28306 CXXFLAGS=$ac_save_CXXFLAGS 28307 elif test $ac_cv_prog_cxx_g = yes; then 28308 if test "$GXX" = yes; then 28309 CXXFLAGS="-g -O2" 28310 else 28311 CXXFLAGS="-g" 28312 fi 28313 else 28314 if test "$GXX" = yes; then 28315 CXXFLAGS="-O2" 28316 else 28317 CXXFLAGS= 28318 fi 28319 fi 28320 ac_ext=cpp 28321 ac_cpp='$CXXCPP $CPPFLAGS' 28322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28325 28326 depcc="$CXX" am_compiler_list= 28327 28328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 28329 $as_echo_n "checking dependency style of $depcc... " >&6; } 28330 if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 28331 $as_echo_n "(cached) " >&6 28332 else 28333 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 28334 # We make a subdir and do the tests there. Otherwise we can end up 28335 # making bogus files that we don't know about and never remove. For 28336 # instance it was reported that on HP-UX the gcc test will end up 28337 # making a dummy file named 'D' -- because '-MD' means "put the output 28338 # in D". 28339 rm -rf conftest.dir 28340 mkdir conftest.dir 28341 # Copy depcomp to subdir because otherwise we won't find it if we're 28342 # using a relative directory. 28343 cp "$am_depcomp" conftest.dir 28344 cd conftest.dir 28345 # We will build objects and dependencies in a subdirectory because 28346 # it helps to detect inapplicable dependency modes. For instance 28347 # both Tru64's cc and ICC support -MD to output dependencies as a 28348 # side effect of compilation, but ICC will put the dependencies in 28349 # the current directory while Tru64 will put them in the object 28350 # directory. 28351 mkdir sub 28352 28353 am_cv_CXX_dependencies_compiler_type=none 28354 if test "$am_compiler_list" = ""; then 28355 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 28356 fi 28357 am__universal=false 28358 case " $depcc " in #( 28359 *\ -arch\ *\ -arch\ *) am__universal=true ;; 28360 esac 28361 28362 for depmode in $am_compiler_list; do 28363 # Setup a source with many dependencies, because some compilers 28364 # like to wrap large dependency lists on column 80 (with \), and 28365 # we should not choose a depcomp mode which is confused by this. 28366 # 28367 # We need to recreate these files for each test, as the compiler may 28368 # overwrite some of them when testing with obscure command lines. 28369 # This happens at least with the AIX C compiler. 28370 : > sub/conftest.c 28371 for i in 1 2 3 4 5 6; do 28372 echo '#include "conftst'$i'.h"' >> sub/conftest.c 28373 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 28374 # Solaris 10 /bin/sh. 28375 echo '/* dummy */' > sub/conftst$i.h 28376 done 28377 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 28378 28379 # We check with '-c' and '-o' for the sake of the "dashmstdout" 28380 # mode. It turns out that the SunPro C++ compiler does not properly 28381 # handle '-M -o', and we need to detect this. Also, some Intel 28382 # versions had trouble with output in subdirs. 28383 am__obj=sub/conftest.${OBJEXT-o} 28384 am__minus_obj="-o $am__obj" 28385 case $depmode in 28386 gcc) 28387 # This depmode causes a compiler race in universal mode. 28388 test "$am__universal" = false || continue 28389 ;; 28390 nosideeffect) 28391 # After this tag, mechanisms are not by side-effect, so they'll 28392 # only be used when explicitly requested. 28393 if test "x$enable_dependency_tracking" = xyes; then 28394 continue 28395 else 28396 break 28397 fi 28398 ;; 28399 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 28400 # This compiler won't grok '-c -o', but also, the minuso test has 28401 # not run yet. These depmodes are late enough in the game, and 28402 # so weak that their functioning should not be impacted. 28403 am__obj=conftest.${OBJEXT-o} 28404 am__minus_obj= 28405 ;; 28406 none) break ;; 28407 esac 28408 if depmode=$depmode \ 28409 source=sub/conftest.c object=$am__obj \ 28410 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 28411 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 28412 >/dev/null 2>conftest.err && 28413 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 28414 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 28415 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 28416 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 28417 # icc doesn't choke on unknown options, it will just issue warnings 28418 # or remarks (even with -Werror). So we grep stderr for any message 28419 # that says an option was ignored or not supported. 28420 # When given -MP, icc 7.0 and 7.1 complain thusly: 28421 # icc: Command line warning: ignoring option '-M'; no argument required 28422 # The diagnosis changed in icc 8.0: 28423 # icc: Command line remark: option '-MP' not supported 28424 if (grep 'ignoring option' conftest.err || 28425 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 28426 am_cv_CXX_dependencies_compiler_type=$depmode 28427 break 28428 fi 28429 fi 28430 done 28431 28432 cd .. 28433 rm -rf conftest.dir 28434 else 28435 am_cv_CXX_dependencies_compiler_type=none 28436 fi 28437 28438 fi 28439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 28440 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 28441 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 28442 28443 if 28444 test "x$enable_dependency_tracking" != xno \ 28445 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 28446 am__fastdepCXX_TRUE= 28447 am__fastdepCXX_FALSE='#' 28448 else 28449 am__fastdepCXX_TRUE='#' 28450 am__fastdepCXX_FALSE= 28451 fi 28452 28453 28454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5 28455 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; } 28456 if ${ax_cv_cxx_bool+:} false; then : 28457 $as_echo_n "(cached) " >&6 28458 else 28459 ac_ext=cpp 28460 ac_cpp='$CXXCPP $CPPFLAGS' 28461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28464 28465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28466 /* end confdefs.h. */ 28467 int f(int x){return 1;} 28468 int f(char x){return 1;} 28469 int f(bool x){return 1;} 28470 int 28471 main () 28472 { 28473 bool b = true; return f(b); 28474 ; 28475 return 0; 28476 } 28477 _ACEOF 28478 if ac_fn_cxx_try_compile "$LINENO"; then : 28479 ax_cv_cxx_bool=yes 28480 else 28481 ax_cv_cxx_bool=no 28482 fi 28483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28484 ac_ext=cpp 28485 ac_cpp='$CXXCPP $CPPFLAGS' 28486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28489 28490 28491 fi 28492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5 28493 $as_echo "$ax_cv_cxx_bool" >&6; } 28494 if test "X$ax_cv_cxx_bool" = Xyes; then : 28495 28496 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h 28497 28498 fi 28499 28500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5 28501 $as_echo_n "checking whether the compiler implements namespaces... " >&6; } 28502 if ${ax_cv_cxx_namespaces+:} false; then : 28503 $as_echo_n "(cached) " >&6 28504 else 28505 ac_ext=cpp 28506 ac_cpp='$CXXCPP $CPPFLAGS' 28507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28510 28511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28512 /* end confdefs.h. */ 28513 namespace Outer { namespace Inner { int i = 0; }} 28514 using namespace Outer::Inner; int foo(void) { return i;} 28515 _ACEOF 28516 if ac_fn_cxx_try_compile "$LINENO"; then : 28517 ax_cv_cxx_namespaces=yes 28518 else 28519 ax_cv_cxx_namespaces=no 28520 fi 28521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28522 ac_ext=cpp 28523 ac_cpp='$CXXCPP $CPPFLAGS' 28524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28527 28528 28529 fi 28530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5 28531 $as_echo "$ax_cv_cxx_namespaces" >&6; } 28532 if test "$ax_cv_cxx_namespaces" = yes; then 28533 28534 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h 28535 28536 fi 28537 28538 28539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5 28540 $as_echo_n "checking if g++ supports namespace std... " >&6; } 28541 if ${ax_cv_cxx_have_std_namespace+:} false; then : 28542 $as_echo_n "(cached) " >&6 28543 else 28544 28545 ac_ext=cpp 28546 ac_cpp='$CXXCPP $CPPFLAGS' 28547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28550 28551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28552 /* end confdefs.h. */ 28553 #include <iostream> 28554 std::istream& is = std::cin; 28555 int 28556 main () 28557 { 28558 28559 ; 28560 return 0; 28561 } 28562 _ACEOF 28563 if ac_fn_cxx_try_compile "$LINENO"; then : 28564 ax_cv_cxx_have_std_namespace=yes 28565 else 28566 ax_cv_cxx_have_std_namespace=no 28567 fi 28568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28569 ac_ext=cpp 28570 ac_cpp='$CXXCPP $CPPFLAGS' 28571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28574 28575 28576 fi 28577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5 28578 $as_echo "$ax_cv_cxx_have_std_namespace" >&6; } 28579 if test "$ax_cv_cxx_have_std_namespace" = yes; then 28580 28581 $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h 28582 28583 fi 28584 28585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5 28586 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; } 28587 if ${ac_cv_cxx_have_std_libs+:} false; then : 28588 $as_echo_n "(cached) " >&6 28589 else 28590 28591 28592 ac_ext=cpp 28593 ac_cpp='$CXXCPP $CPPFLAGS' 28594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28597 28598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28599 /* end confdefs.h. */ 28600 #include <iostream> 28601 #include <map> 28602 #include <iomanip> 28603 #include <cmath> 28604 #ifdef HAVE_NAMESPACES 28605 using namespace std; 28606 #endif 28607 int 28608 main () 28609 { 28610 return 0; 28611 ; 28612 return 0; 28613 } 28614 _ACEOF 28615 if ac_fn_cxx_try_compile "$LINENO"; then : 28616 ac_cv_cxx_have_std_libs=yes 28617 else 28618 ac_cv_cxx_have_std_libs=no 28619 fi 28620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28621 ac_ext=cpp 28622 ac_cpp='$CXXCPP $CPPFLAGS' 28623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28626 28627 28628 fi 28629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5 28630 $as_echo "$ac_cv_cxx_have_std_libs" >&6; } 28631 if test "$ac_cv_cxx_have_std_libs" = yes; then 28632 28633 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h 28634 28635 fi 28636 28637 28638 OPENMP_CXXFLAGS= 28639 # Check whether --enable-openmp was given. 28640 if test "${enable_openmp+set}" = set; then : 28641 enableval=$enable_openmp; 28642 fi 28643 28644 if test "$enable_openmp" != no; then 28645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5 28646 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; } 28647 if ${ac_cv_prog_cxx_openmp+:} false; then : 28648 $as_echo_n "(cached) " >&6 28649 else 28650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28651 /* end confdefs.h. */ 28652 28653 #ifndef _OPENMP 28654 choke me 28655 #endif 28656 #include <omp.h> 28657 int main () { return omp_get_num_threads (); } 28658 28659 _ACEOF 28660 if ac_fn_cxx_try_link "$LINENO"; then : 28661 ac_cv_prog_cxx_openmp='none needed' 28662 else 28663 ac_cv_prog_cxx_openmp='unsupported' 28664 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \ 28665 -Popenmp --openmp; do 28666 ac_save_CXXFLAGS=$CXXFLAGS 28667 CXXFLAGS="$CXXFLAGS $ac_option" 28668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28669 /* end confdefs.h. */ 28670 28671 #ifndef _OPENMP 28672 choke me 28673 #endif 28674 #include <omp.h> 28675 int main () { return omp_get_num_threads (); } 28676 28677 _ACEOF 28678 if ac_fn_cxx_try_link "$LINENO"; then : 28679 ac_cv_prog_cxx_openmp=$ac_option 28680 fi 28681 rm -f core conftest.err conftest.$ac_objext \ 28682 conftest$ac_exeext conftest.$ac_ext 28683 CXXFLAGS=$ac_save_CXXFLAGS 28684 if test "$ac_cv_prog_cxx_openmp" != unsupported; then 28685 break 28686 fi 28687 done 28688 fi 28689 rm -f core conftest.err conftest.$ac_objext \ 28690 conftest$ac_exeext conftest.$ac_ext 28691 fi 28692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5 28693 $as_echo "$ac_cv_prog_cxx_openmp" >&6; } 28694 case $ac_cv_prog_cxx_openmp in #( 28695 "none needed" | unsupported) 28696 ;; #( 28697 *) 28698 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;; 28699 esac 28700 fi 28701 28702 28703 ac_ext=c 28704 ac_cpp='$CPP $CPPFLAGS' 28705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28707 ac_compiler_gnu=$ac_cv_c_compiler_gnu 28708 28709 28710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5 28711 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; } 28712 if \ 28713 test $ax_cv_cxx_bool = 'yes' && \ 28714 test $ax_cv_cxx_namespaces = 'yes' && \ 28715 test $ac_cv_cxx_have_std_libs = 'yes' && \ 28716 test $ax_cv_cxx_have_std_namespace = 'yes'; then 28717 have_magick_plus_plus='yes' 28718 else 28719 have_magick_plus_plus='no (failed tests)' 28720 fi 28721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5 28722 $as_echo "$have_magick_plus_plus" >&6; } 28723 LIBS="$OLIBS" 28724 fi 28725 if test "$have_magick_plus_plus" = 'yes'; then 28726 WITH_MAGICK_PLUS_PLUS_TRUE= 28727 WITH_MAGICK_PLUS_PLUS_FALSE='#' 28728 else 28729 WITH_MAGICK_PLUS_PLUS_TRUE='#' 28730 WITH_MAGICK_PLUS_PLUS_FALSE= 28731 fi 28732 28733 28734 # Only check for delegate libraries in subdirectories if requested. 28735 if test "$enable_delegate_build" != 'no'; then 28736 # Check for delegate sub-directories and add -I & -L options as required. 28737 # This presumes that delegates are installed as detailed in the ImageMagick 28738 # README. If delegates are installed in a standard location where the 28739 # compiler will automatically find them then these options should not be 28740 # required. 28741 28742 # 28743 # Most delegates have includes in the same directory as the library, but not all... 28744 # 28745 # Includes 28746 for dir in bzlib fftw fpx gslib/src jp2 jbig/libjbig jpeg lcms/include lzma magick openjp2/include png tiff/libtiff ttf/include wand webp/src wmf/include xml/include zlib; do 28747 if test -d "$builddir/$dir"; then 28748 CPPFLAGS="$CPPFLAGS -I$builddir/$dir" 28749 else 28750 if test -d "$srcdirfull/$dir"; then 28751 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir" 28752 fi 28753 fi 28754 done 28755 28756 # Libraries 28757 for dir in bzlib fftw fpx gslib/src jbig/libjbig jpeg lcms/src lzma magick openjp2 png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do 28758 if test -d "$builddir/$dir/.libs"; then 28759 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs" 28760 else 28761 if test -d "$srcdirfull/$dir/.libs"; then 28762 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs" 28763 fi 28764 fi 28765 if test -d "$builddir/$dir"; then 28766 LDFLAGS="$LDFLAGS -L$builddir/$dir" 28767 else 28768 if test -d "$srcdirfull/$dir"; then 28769 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir" 28770 fi 28771 fi 28772 done 28773 fi 28774 28775 # Assume that delegate headers reside under same directory as ImageMagick 28776 # installation prefix. 28777 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS" 28778 28779 # 28780 # Find the X11 RGB database 28781 # 28782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5 28783 $as_echo_n "checking for X11 configure files... " >&6; } 28784 if ${im_cv_x_configure+:} false; then : 28785 $as_echo_n "(cached) " >&6 28786 else 28787 # Look for the header file in a standard set of common directories. 28788 # Check X11 before X11Rn because it is often a symlink to the current release. 28789 for ac_dir in \ 28790 /lib/usr/lib/X11 \ 28791 /usr/X11/lib \ 28792 /usr/X11R4/lib \ 28793 /usr/X11R5/lib \ 28794 /usr/X11R6/lib \ 28795 /usr/X11R7/lib \ 28796 /usr/X386/lib \ 28797 /usr/XFree86/lib/X11 \ 28798 /usr/athena/lib \ 28799 /usr/lib \ 28800 /usr/lib/X11 \ 28801 /usr/lib/X11R4 \ 28802 /usr/lib/X11R5 \ 28803 /usr/lib/X11R6 \ 28804 /usr/lib/X11R7 \ 28805 /usr/local/X11/lib \ 28806 /usr/local/X11R4/lib \ 28807 /usr/local/X11R5/lib \ 28808 /usr/local/X11R6/lib \ 28809 /usr/local/lib \ 28810 /usr/local/lib/X11 \ 28811 /usr/local/lib/X11R4 \ 28812 /usr/local/lib/X11R5 \ 28813 /usr/local/lib/X11R6 \ 28814 /usr/local/lib/X11R7 \ 28815 /usr/local/x11r5/lib \ 28816 /usr/lpp/Xamples/lib \ 28817 /usr/openwin/lib \ 28818 /usr/openwin/share/lib \ 28819 /usr/unsupported/lib \ 28820 /usr/x386/lib \ 28821 ; do 28822 if test -f "$ac_dir/X11/rgb.txt"; then 28823 im_cv_x_configure="$ac_dir/X11/" 28824 break 28825 elif test -f "$ac_dir/rgb.txt"; then 28826 im_cv_x_configure="$ac_dir/" 28827 break 28828 fi 28829 28830 done 28831 fi 28832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5 28833 $as_echo "$im_cv_x_configure" >&6; } 28834 X11_CONFIGURE_PATH="$im_cv_x_configure" 28835 case "${build_os}" in 28836 mingw* ) 28837 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1` 28838 ;; 28839 esac 28840 28841 cat >>confdefs.h <<_ACEOF 28842 #define X11_CONFIGURE_PATH "$X11ConfigurePath" 28843 _ACEOF 28844 28845 28846 # 28847 # Find OpenMP library 28848 # 28849 GOMP_LIBS='' 28850 if test "$enable_openmp" != 'no'; then 28851 if test "${GCC}" = "yes"; then 28852 # Open64 (passes for GCC but uses different OpenMP implementation) 28853 if test "x$GOMP_LIBS" = x ; then 28854 if $CC --version 2>&1 | grep Open64 > /dev/null ; then 28855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5 28856 $as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; } 28857 if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then : 28858 $as_echo_n "(cached) " >&6 28859 else 28860 ac_check_lib_save_LIBS=$LIBS 28861 LIBS="-lopenmp $LIBS" 28862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28863 /* end confdefs.h. */ 28864 28865 /* Override any GCC internal prototype to avoid an error. 28866 Use char because int might match the return type of a GCC 28867 builtin and then its argument prototype would still apply. */ 28868 #ifdef __cplusplus 28869 extern "C" 28870 #endif 28871 char omp_get_num_procs (); 28872 int 28873 main () 28874 { 28875 return omp_get_num_procs (); 28876 ; 28877 return 0; 28878 } 28879 _ACEOF 28880 if ac_fn_c_try_link "$LINENO"; then : 28881 ac_cv_lib_openmp_omp_get_num_procs=yes 28882 else 28883 ac_cv_lib_openmp_omp_get_num_procs=no 28884 fi 28885 rm -f core conftest.err conftest.$ac_objext \ 28886 conftest$ac_exeext conftest.$ac_ext 28887 LIBS=$ac_check_lib_save_LIBS 28888 fi 28889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5 28890 $as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; } 28891 if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then : 28892 GOMP_LIBS="-lopenmp" 28893 fi 28894 28895 fi 28896 fi 28897 # GCC 28898 if test "x$GOMP_LIBS" = x ; then 28899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5 28900 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; } 28901 if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then : 28902 $as_echo_n "(cached) " >&6 28903 else 28904 ac_check_lib_save_LIBS=$LIBS 28905 LIBS="-lgomp $LIBS" 28906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28907 /* end confdefs.h. */ 28908 28909 /* Override any GCC internal prototype to avoid an error. 28910 Use char because int might match the return type of a GCC 28911 builtin and then its argument prototype would still apply. */ 28912 #ifdef __cplusplus 28913 extern "C" 28914 #endif 28915 char GOMP_parallel_start (); 28916 int 28917 main () 28918 { 28919 return GOMP_parallel_start (); 28920 ; 28921 return 0; 28922 } 28923 _ACEOF 28924 if ac_fn_c_try_link "$LINENO"; then : 28925 ac_cv_lib_gomp_GOMP_parallel_start=yes 28926 else 28927 ac_cv_lib_gomp_GOMP_parallel_start=no 28928 fi 28929 rm -f core conftest.err conftest.$ac_objext \ 28930 conftest$ac_exeext conftest.$ac_ext 28931 LIBS=$ac_check_lib_save_LIBS 28932 fi 28933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5 28934 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; } 28935 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then : 28936 GOMP_LIBS="-lgomp" 28937 fi 28938 28939 fi 28940 else 28941 # Sun CC 28942 if test "x$GOMP_LIBS" = x ; then 28943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5 28944 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; } 28945 if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then : 28946 $as_echo_n "(cached) " >&6 28947 else 28948 ac_check_lib_save_LIBS=$LIBS 28949 LIBS="-lmtsk $LIBS" 28950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28951 /* end confdefs.h. */ 28952 28953 /* Override any GCC internal prototype to avoid an error. 28954 Use char because int might match the return type of a GCC 28955 builtin and then its argument prototype would still apply. */ 28956 #ifdef __cplusplus 28957 extern "C" 28958 #endif 28959 char sunw_mp_register_warn (); 28960 int 28961 main () 28962 { 28963 return sunw_mp_register_warn (); 28964 ; 28965 return 0; 28966 } 28967 _ACEOF 28968 if ac_fn_c_try_link "$LINENO"; then : 28969 ac_cv_lib_mtsk_sunw_mp_register_warn=yes 28970 else 28971 ac_cv_lib_mtsk_sunw_mp_register_warn=no 28972 fi 28973 rm -f core conftest.err conftest.$ac_objext \ 28974 conftest$ac_exeext conftest.$ac_ext 28975 LIBS=$ac_check_lib_save_LIBS 28976 fi 28977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5 28978 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; } 28979 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then : 28980 GOMP_LIBS="-lmtsk" 28981 fi 28982 28983 fi 28984 # AIX xlc 28985 if test "x$GOMP_LIBS" = x ; then 28986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5 28987 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; } 28988 if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then : 28989 $as_echo_n "(cached) " >&6 28990 else 28991 ac_check_lib_save_LIBS=$LIBS 28992 LIBS="-lxlsmp $LIBS" 28993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28994 /* end confdefs.h. */ 28995 28996 /* Override any GCC internal prototype to avoid an error. 28997 Use char because int might match the return type of a GCC 28998 builtin and then its argument prototype would still apply. */ 28999 #ifdef __cplusplus 29000 extern "C" 29001 #endif 29002 char _xlsmpFlush (); 29003 int 29004 main () 29005 { 29006 return _xlsmpFlush (); 29007 ; 29008 return 0; 29009 } 29010 _ACEOF 29011 if ac_fn_c_try_link "$LINENO"; then : 29012 ac_cv_lib_xlsmp__xlsmpFlush=yes 29013 else 29014 ac_cv_lib_xlsmp__xlsmpFlush=no 29015 fi 29016 rm -f core conftest.err conftest.$ac_objext \ 29017 conftest$ac_exeext conftest.$ac_ext 29018 LIBS=$ac_check_lib_save_LIBS 29019 fi 29020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5 29021 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; } 29022 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then : 29023 GOMP_LIBS="-lxlsmp" 29024 fi 29025 29026 fi 29027 # SGI IRIX 6.5 MIPSpro C/C++ 29028 if test "x$GOMP_LIBS" = x ; then 29029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5 29030 $as_echo_n "checking for mp_destroy in -lmp... " >&6; } 29031 if ${ac_cv_lib_mp_mp_destroy+:} false; then : 29032 $as_echo_n "(cached) " >&6 29033 else 29034 ac_check_lib_save_LIBS=$LIBS 29035 LIBS="-lmp $LIBS" 29036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29037 /* end confdefs.h. */ 29038 29039 /* Override any GCC internal prototype to avoid an error. 29040 Use char because int might match the return type of a GCC 29041 builtin and then its argument prototype would still apply. */ 29042 #ifdef __cplusplus 29043 extern "C" 29044 #endif 29045 char mp_destroy (); 29046 int 29047 main () 29048 { 29049 return mp_destroy (); 29050 ; 29051 return 0; 29052 } 29053 _ACEOF 29054 if ac_fn_c_try_link "$LINENO"; then : 29055 ac_cv_lib_mp_mp_destroy=yes 29056 else 29057 ac_cv_lib_mp_mp_destroy=no 29058 fi 29059 rm -f core conftest.err conftest.$ac_objext \ 29060 conftest$ac_exeext conftest.$ac_ext 29061 LIBS=$ac_check_lib_save_LIBS 29062 fi 29063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5 29064 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; } 29065 if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then : 29066 GOMP_LIBS="-lmp" 29067 fi 29068 29069 fi 29070 fi 29071 LIBS="$GOMP_LIBS $LIBS" 29072 fi 29073 29074 29075 # 29076 # Check for jemalloc. 29077 # 29078 have_jemalloc='no' 29079 JEMALLOC_LIBS='' 29080 if test "$with_jemalloc" != 'no'; then 29081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5 29082 $as_echo_n "checking for JEMALLOC support ... " >&6; } 29083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 29084 $as_echo "" >&6; } 29085 failed=0 29086 passed=0 29087 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default" 29088 if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then : 29089 passed=`expr $passed + 1` 29090 else 29091 failed=`expr $failed + 1` 29092 fi 29093 29094 29095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5 29096 $as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; } 29097 if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then : 29098 $as_echo_n "(cached) " >&6 29099 else 29100 ac_check_lib_save_LIBS=$LIBS 29101 LIBS="-ljemalloc $LIBS" 29102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29103 /* end confdefs.h. */ 29104 29105 /* Override any GCC internal prototype to avoid an error. 29106 Use char because int might match the return type of a GCC 29107 builtin and then its argument prototype would still apply. */ 29108 #ifdef __cplusplus 29109 extern "C" 29110 #endif 29111 char malloc_stats_print (); 29112 int 29113 main () 29114 { 29115 return malloc_stats_print (); 29116 ; 29117 return 0; 29118 } 29119 _ACEOF 29120 if ac_fn_c_try_link "$LINENO"; then : 29121 ac_cv_lib_jemalloc_malloc_stats_print=yes 29122 else 29123 ac_cv_lib_jemalloc_malloc_stats_print=no 29124 fi 29125 rm -f core conftest.err conftest.$ac_objext \ 29126 conftest$ac_exeext conftest.$ac_ext 29127 LIBS=$ac_check_lib_save_LIBS 29128 fi 29129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5 29130 $as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; } 29131 if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then : 29132 passed=`expr $passed + 1` 29133 else 29134 failed=`expr $failed + 1` 29135 fi 29136 29137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5 29138 $as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; } 29139 if test $passed -gt 0; then 29140 if test $failed -gt 0; then 29141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 29142 $as_echo "no -- some components failed test" >&6; } 29143 have_jemalloc='no (failed tests)' 29144 else 29145 JEMALLOC_LIBS='-ljemalloc' 29146 LIBS="$JEMALLOC_LIBS $LIBS" 29147 29148 $as_echo "#define HasJEMALLOC 1" >>confdefs.h 29149 29150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29151 $as_echo "yes" >&6; } 29152 have_jemalloc='yes' 29153 fi 29154 else 29155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29156 $as_echo "no" >&6; } 29157 fi 29158 fi 29159 if test "$have_jemalloc" = 'yes'; then 29160 HasJEMALLOC_TRUE= 29161 HasJEMALLOC_FALSE='#' 29162 else 29163 HasJEMALLOC_TRUE='#' 29164 HasJEMALLOC_FALSE= 29165 fi 29166 29167 29168 29169 # 29170 # Check for umem. 29171 # 29172 have_umem='no' 29173 UMEM_LIBS='' 29174 if test "$with_umem" != 'no'; then 29175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5 29176 $as_echo_n "checking for UMEM support ... " >&6; } 29177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 29178 $as_echo "" >&6; } 29179 failed=0 29180 passed=0 29181 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default" 29182 if test "x$ac_cv_header_umem_h" = xyes; then : 29183 passed=`expr $passed + 1` 29184 else 29185 failed=`expr $failed + 1` 29186 fi 29187 29188 29189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 29190 $as_echo_n "checking for umem_alloc in -lumem... " >&6; } 29191 if ${ac_cv_lib_umem_umem_alloc+:} false; then : 29192 $as_echo_n "(cached) " >&6 29193 else 29194 ac_check_lib_save_LIBS=$LIBS 29195 LIBS="-lumem $LIBS" 29196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29197 /* end confdefs.h. */ 29198 29199 /* Override any GCC internal prototype to avoid an error. 29200 Use char because int might match the return type of a GCC 29201 builtin and then its argument prototype would still apply. */ 29202 #ifdef __cplusplus 29203 extern "C" 29204 #endif 29205 char umem_alloc (); 29206 int 29207 main () 29208 { 29209 return umem_alloc (); 29210 ; 29211 return 0; 29212 } 29213 _ACEOF 29214 if ac_fn_c_try_link "$LINENO"; then : 29215 ac_cv_lib_umem_umem_alloc=yes 29216 else 29217 ac_cv_lib_umem_umem_alloc=no 29218 fi 29219 rm -f core conftest.err conftest.$ac_objext \ 29220 conftest$ac_exeext conftest.$ac_ext 29221 LIBS=$ac_check_lib_save_LIBS 29222 fi 29223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 29224 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } 29225 if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : 29226 passed=`expr $passed + 1` 29227 else 29228 failed=`expr $failed + 1` 29229 fi 29230 29231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5 29232 $as_echo_n "checking for umem_free in -lumem... " >&6; } 29233 if ${ac_cv_lib_umem_umem_free+:} false; then : 29234 $as_echo_n "(cached) " >&6 29235 else 29236 ac_check_lib_save_LIBS=$LIBS 29237 LIBS="-lumem $LIBS" 29238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29239 /* end confdefs.h. */ 29240 29241 /* Override any GCC internal prototype to avoid an error. 29242 Use char because int might match the return type of a GCC 29243 builtin and then its argument prototype would still apply. */ 29244 #ifdef __cplusplus 29245 extern "C" 29246 #endif 29247 char umem_free (); 29248 int 29249 main () 29250 { 29251 return umem_free (); 29252 ; 29253 return 0; 29254 } 29255 _ACEOF 29256 if ac_fn_c_try_link "$LINENO"; then : 29257 ac_cv_lib_umem_umem_free=yes 29258 else 29259 ac_cv_lib_umem_umem_free=no 29260 fi 29261 rm -f core conftest.err conftest.$ac_objext \ 29262 conftest$ac_exeext conftest.$ac_ext 29263 LIBS=$ac_check_lib_save_LIBS 29264 fi 29265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5 29266 $as_echo "$ac_cv_lib_umem_umem_free" >&6; } 29267 if test "x$ac_cv_lib_umem_umem_free" = xyes; then : 29268 passed=`expr $passed + 1` 29269 else 29270 failed=`expr $failed + 1` 29271 fi 29272 29273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5 29274 $as_echo_n "checking if umem memory allocation library is complete... " >&6; } 29275 if test $passed -gt 0; then 29276 if test $failed -gt 0; then 29277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 29278 $as_echo "no -- some components failed test" >&6; } 29279 have_umem='no (failed tests)' 29280 else 29281 UMEM_LIBS='-lumem' 29282 LIBS="$UMEM_LIBS $LIBS" 29283 29284 $as_echo "#define HasUMEM 1" >>confdefs.h 29285 29286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29287 $as_echo "yes" >&6; } 29288 have_umem='yes' 29289 fi 29290 else 29291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29292 $as_echo "no" >&6; } 29293 fi 29294 fi 29295 if test "$have_umem" = 'yes'; then 29296 HasUMEM_TRUE= 29297 HasUMEM_FALSE='#' 29298 else 29299 HasUMEM_TRUE='#' 29300 HasUMEM_FALSE= 29301 fi 29302 29303 29304 29305 # 29306 # Add support for ccmalloc memory debugging library if requested 29307 # 29308 have_ccmalloc='no' 29309 CCMALLOC_LIBS='' 29310 if test "$enable_ccmalloc" = 'yes'; then 29311 # Extract the first word of "ccmalloc", so it can be a program name with args. 29312 set dummy ccmalloc; ac_word=$2 29313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29314 $as_echo_n "checking for $ac_word... " >&6; } 29315 if ${ac_cv_path_CCMALLOCDelegate+:} false; then : 29316 $as_echo_n "(cached) " >&6 29317 else 29318 case $CCMALLOCDelegate in 29319 [\\/]* | ?:[\\/]*) 29320 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path. 29321 ;; 29322 *) 29323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29324 for as_dir in $PATH 29325 do 29326 IFS=$as_save_IFS 29327 test -z "$as_dir" && as_dir=. 29328 for ac_exec_ext in '' $ac_executable_extensions; do 29329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29330 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext" 29331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29332 break 2 29333 fi 29334 done 29335 done 29336 IFS=$as_save_IFS 29337 29338 ;; 29339 esac 29340 fi 29341 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate 29342 if test -n "$CCMALLOCDelegate"; then 29343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5 29344 $as_echo "$CCMALLOCDelegate" >&6; } 29345 else 29346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29347 $as_echo "no" >&6; } 29348 fi 29349 29350 29351 if test -n "$CCMALLOCDelegate"; then 29352 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'` 29353 OLIBS="$LIBS" 29354 # Assume that gcc is used with ccmalloc. 29355 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o" 29356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5 29357 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; } 29358 if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then : 29359 $as_echo_n "(cached) " >&6 29360 else 29361 ac_check_lib_save_LIBS=$LIBS 29362 LIBS="-lccmalloc -ldl $LIBS" 29363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29364 /* end confdefs.h. */ 29365 29366 /* Override any GCC internal prototype to avoid an error. 29367 Use char because int might match the return type of a GCC 29368 builtin and then its argument prototype would still apply. */ 29369 #ifdef __cplusplus 29370 extern "C" 29371 #endif 29372 char ccmalloc_malloc (); 29373 int 29374 main () 29375 { 29376 return ccmalloc_malloc (); 29377 ; 29378 return 0; 29379 } 29380 _ACEOF 29381 if ac_fn_c_try_link "$LINENO"; then : 29382 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes 29383 else 29384 ac_cv_lib_ccmalloc_ccmalloc_malloc=no 29385 fi 29386 rm -f core conftest.err conftest.$ac_objext \ 29387 conftest$ac_exeext conftest.$ac_ext 29388 LIBS=$ac_check_lib_save_LIBS 29389 fi 29390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5 29391 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; } 29392 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then : 29393 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl" 29394 fi 29395 29396 if test -n "$CCMALLOC_LIBS"; then 29397 LIBS="$OLIBS" 29398 LIBS="$LIBS $CCMALLOC_LIBS" 29399 have_ccmalloc='yes' 29400 else 29401 LIBS="$OLIBS" 29402 fi 29403 fi 29404 fi 29405 29406 # 29407 # Add support for 'huge pages' if requested 29408 # 29409 if test "x$enable_hugepages" != "xno"; then : 29410 29411 29412 $as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h 29413 29414 29415 fi 29416 29417 # 29418 # Add support for efence memory debugging library if requested 29419 # 29420 if test "$enable_efence" = 'yes'; then 29421 EFENCE_LIBS='-lefence' 29422 LIBS="$EFENCE_LIBS $LIBS" 29423 fi 29424 29425 29426 # 29427 # Check for BZLIB 29428 # 29429 29430 29431 # Check whether --with-bzlib was given. 29432 if test "${with_bzlib+set}" = set; then : 29433 withval=$with_bzlib; with_bzlib=$withval 29434 else 29435 with_bzlib='yes' 29436 fi 29437 29438 29439 if test "$with_bzlib" != 'yes'; then 29440 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib " 29441 fi 29442 29443 have_bzlib='no' 29444 if test "$with_bzlib" != 'no'; then 29445 BZLIB_LIBS='' 29446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 29447 $as_echo "-------------------------------------------------------------" >&6; } 29448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5 29449 $as_echo_n "checking for BZLIB... " >&6; } 29450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 29451 $as_echo "" >&6; } 29452 failed=0 29453 passed=0 29454 found_libbz=0 29455 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" 29456 if test "x$ac_cv_header_bzlib_h" = xyes; then : 29457 passed=`expr $passed + 1` 29458 else 29459 failed=`expr $failed + 1` 29460 fi 29461 29462 29463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5 29464 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; } 29465 if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then : 29466 $as_echo_n "(cached) " >&6 29467 else 29468 ac_check_lib_save_LIBS=$LIBS 29469 LIBS="-lbz2 $LIBS" 29470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29471 /* end confdefs.h. */ 29472 29473 /* Override any GCC internal prototype to avoid an error. 29474 Use char because int might match the return type of a GCC 29475 builtin and then its argument prototype would still apply. */ 29476 #ifdef __cplusplus 29477 extern "C" 29478 #endif 29479 char BZ2_bzDecompress (); 29480 int 29481 main () 29482 { 29483 return BZ2_bzDecompress (); 29484 ; 29485 return 0; 29486 } 29487 _ACEOF 29488 if ac_fn_c_try_link "$LINENO"; then : 29489 ac_cv_lib_bz2_BZ2_bzDecompress=yes 29490 else 29491 ac_cv_lib_bz2_BZ2_bzDecompress=no 29492 fi 29493 rm -f core conftest.err conftest.$ac_objext \ 29494 conftest$ac_exeext conftest.$ac_ext 29495 LIBS=$ac_check_lib_save_LIBS 29496 fi 29497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5 29498 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; } 29499 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then : 29500 found_libbz=`expr $found_libbz + 1` 29501 fi 29502 29503 if test "$native_win32_build" = 'yes'; then 29504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5 29505 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; } 29506 if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then : 29507 $as_echo_n "(cached) " >&6 29508 else 29509 ac_check_lib_save_LIBS=$LIBS 29510 LIBS="-lbz2 $LIBS" 29511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29512 /* end confdefs.h. */ 29513 29514 /* Override any GCC internal prototype to avoid an error. 29515 Use char because int might match the return type of a GCC 29516 builtin and then its argument prototype would still apply. */ 29517 #ifdef __cplusplus 29518 extern "C" 29519 #endif 29520 char _imp__BZ2_decompress (); 29521 int 29522 main () 29523 { 29524 return _imp__BZ2_decompress (); 29525 ; 29526 return 0; 29527 } 29528 _ACEOF 29529 if ac_fn_c_try_link "$LINENO"; then : 29530 ac_cv_lib_bz2__imp__BZ2_decompress=yes 29531 else 29532 ac_cv_lib_bz2__imp__BZ2_decompress=no 29533 fi 29534 rm -f core conftest.err conftest.$ac_objext \ 29535 conftest$ac_exeext conftest.$ac_ext 29536 LIBS=$ac_check_lib_save_LIBS 29537 fi 29538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5 29539 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; } 29540 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then : 29541 found_libbz=`expr $found_libbz + 1` 29542 fi 29543 29544 fi 29545 if test $found_libbz -gt 0; then 29546 passed=`expr $passed + 1` 29547 else 29548 failed=`expr $failed + 1` 29549 fi 29550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5 29551 $as_echo_n "checking if BZLIB package is complete... " >&6; } 29552 if test $passed -gt 0; then 29553 if test $failed -gt 0; then 29554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 29555 $as_echo "no -- some components failed test" >&6; } 29556 have_bzlib='no (failed tests)' 29557 else 29558 BZLIB_LIBS='-lbz2' 29559 LIBS="$BZLIB_LIBS $LIBS" 29560 29561 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h 29562 29563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29564 $as_echo "yes" >&6; } 29565 have_bzlib='yes' 29566 fi 29567 else 29568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29569 $as_echo "no" >&6; } 29570 fi 29571 fi 29572 if test "$have_bzlib" = 'yes'; then 29573 BZLIB_DELEGATE_TRUE= 29574 BZLIB_DELEGATE_FALSE='#' 29575 else 29576 BZLIB_DELEGATE_TRUE='#' 29577 BZLIB_DELEGATE_FALSE= 29578 fi 29579 29580 29581 29582 # 29583 # Find the X11 include and library directories. 29584 # 29585 IPC_LIBS='' 29586 X11_LIBS='' 29587 XEXT_LIBS='' 29588 XT_LIBS='' 29589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 29590 $as_echo_n "checking for X... " >&6; } 29591 29592 29593 # Check whether --with-x was given. 29594 if test "${with_x+set}" = set; then : 29595 withval=$with_x; 29596 fi 29597 29598 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 29599 if test "x$with_x" = xno; then 29600 # The user explicitly disabled X. 29601 have_x=disabled 29602 else 29603 case $x_includes,$x_libraries in #( 29604 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 29605 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 29606 $as_echo_n "(cached) " >&6 29607 else 29608 # One or both of the vars are not set, and there is no cached value. 29609 ac_x_includes=no ac_x_libraries=no 29610 rm -f -r conftest.dir 29611 if mkdir conftest.dir; then 29612 cd conftest.dir 29613 cat >Imakefile <<'_ACEOF' 29614 incroot: 29615 @echo incroot='${INCROOT}' 29616 usrlibdir: 29617 @echo usrlibdir='${USRLIBDIR}' 29618 libdir: 29619 @echo libdir='${LIBDIR}' 29620 _ACEOF 29621 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 29622 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 29623 for ac_var in incroot usrlibdir libdir; do 29624 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 29625 done 29626 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 29627 for ac_extension in a so sl dylib la dll; do 29628 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 29629 test -f "$ac_im_libdir/libX11.$ac_extension"; then 29630 ac_im_usrlibdir=$ac_im_libdir; break 29631 fi 29632 done 29633 # Screen out bogus values from the imake configuration. They are 29634 # bogus both because they are the default anyway, and because 29635 # using them would break gcc on systems where it needs fixed includes. 29636 case $ac_im_incroot in 29637 /usr/include) ac_x_includes= ;; 29638 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 29639 esac 29640 case $ac_im_usrlibdir in 29641 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 29642 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 29643 esac 29644 fi 29645 cd .. 29646 rm -f -r conftest.dir 29647 fi 29648 29649 # Standard set of common directories for X headers. 29650 # Check X11 before X11Rn because it is often a symlink to the current release. 29651 ac_x_header_dirs=' 29652 /usr/X11/include 29653 /usr/X11R7/include 29654 /usr/X11R6/include 29655 /usr/X11R5/include 29656 /usr/X11R4/include 29657 29658 /usr/include/X11 29659 /usr/include/X11R7 29660 /usr/include/X11R6 29661 /usr/include/X11R5 29662 /usr/include/X11R4 29663 29664 /usr/local/X11/include 29665 /usr/local/X11R7/include 29666 /usr/local/X11R6/include 29667 /usr/local/X11R5/include 29668 /usr/local/X11R4/include 29669 29670 /usr/local/include/X11 29671 /usr/local/include/X11R7 29672 /usr/local/include/X11R6 29673 /usr/local/include/X11R5 29674 /usr/local/include/X11R4 29675 29676 /usr/X386/include 29677 /usr/x386/include 29678 /usr/XFree86/include/X11 29679 29680 /usr/include 29681 /usr/local/include 29682 /usr/unsupported/include 29683 /usr/athena/include 29684 /usr/local/x11r5/include 29685 /usr/lpp/Xamples/include 29686 29687 /usr/openwin/include 29688 /usr/openwin/share/include' 29689 29690 if test "$ac_x_includes" = no; then 29691 # Guess where to find include files, by looking for Xlib.h. 29692 # First, try using that file with no special directory specified. 29693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29694 /* end confdefs.h. */ 29695 #include <X11/Xlib.h> 29696 _ACEOF 29697 if ac_fn_c_try_cpp "$LINENO"; then : 29698 # We can compile using X headers with no special include directory. 29699 ac_x_includes= 29700 else 29701 for ac_dir in $ac_x_header_dirs; do 29702 if test -r "$ac_dir/X11/Xlib.h"; then 29703 ac_x_includes=$ac_dir 29704 break 29705 fi 29706 done 29707 fi 29708 rm -f conftest.err conftest.i conftest.$ac_ext 29709 fi # $ac_x_includes = no 29710 29711 if test "$ac_x_libraries" = no; then 29712 # Check for the libraries. 29713 # See if we find them without any special options. 29714 # Don't add to $LIBS permanently. 29715 ac_save_LIBS=$LIBS 29716 LIBS="-lX11 $LIBS" 29717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29718 /* end confdefs.h. */ 29719 #include <X11/Xlib.h> 29720 int 29721 main () 29722 { 29723 XrmInitialize () 29724 ; 29725 return 0; 29726 } 29727 _ACEOF 29728 if ac_fn_c_try_link "$LINENO"; then : 29729 LIBS=$ac_save_LIBS 29730 # We can link X programs with no special library path. 29731 ac_x_libraries= 29732 else 29733 LIBS=$ac_save_LIBS 29734 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 29735 do 29736 # Don't even attempt the hair of trying to link an X program! 29737 for ac_extension in a so sl dylib la dll; do 29738 if test -r "$ac_dir/libX11.$ac_extension"; then 29739 ac_x_libraries=$ac_dir 29740 break 2 29741 fi 29742 done 29743 done 29744 fi 29745 rm -f core conftest.err conftest.$ac_objext \ 29746 conftest$ac_exeext conftest.$ac_ext 29747 fi # $ac_x_libraries = no 29748 29749 case $ac_x_includes,$ac_x_libraries in #( 29750 no,* | *,no | *\'*) 29751 # Didn't find X, or a directory has "'" in its name. 29752 ac_cv_have_x="have_x=no";; #( 29753 *) 29754 # Record where we found X for the cache. 29755 ac_cv_have_x="have_x=yes\ 29756 ac_x_includes='$ac_x_includes'\ 29757 ac_x_libraries='$ac_x_libraries'" 29758 esac 29759 fi 29760 ;; #( 29761 *) have_x=yes;; 29762 esac 29763 eval "$ac_cv_have_x" 29764 fi # $with_x != no 29765 29766 if test "$have_x" != yes; then 29767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 29768 $as_echo "$have_x" >&6; } 29769 no_x=yes 29770 else 29771 # If each of the values was on the command line, it overrides each guess. 29772 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 29773 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 29774 # Update the cache value to reflect the command line values. 29775 ac_cv_have_x="have_x=yes\ 29776 ac_x_includes='$x_includes'\ 29777 ac_x_libraries='$x_libraries'" 29778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 29779 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 29780 fi 29781 29782 if test "$no_x" = yes; then 29783 # Not all programs may use this symbol, but it does not hurt to define it. 29784 29785 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 29786 29787 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 29788 else 29789 if test -n "$x_includes"; then 29790 X_CFLAGS="$X_CFLAGS -I$x_includes" 29791 fi 29792 29793 # It would also be nice to do this for all -L options, not just this one. 29794 if test -n "$x_libraries"; then 29795 X_LIBS="$X_LIBS -L$x_libraries" 29796 # For Solaris; some versions of Sun CC require a space after -R and 29797 # others require no space. Words are not sufficient . . . . 29798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 29799 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 29800 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 29801 ac_xsave_c_werror_flag=$ac_c_werror_flag 29802 ac_c_werror_flag=yes 29803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29804 /* end confdefs.h. */ 29805 29806 int 29807 main () 29808 { 29809 29810 ; 29811 return 0; 29812 } 29813 _ACEOF 29814 if ac_fn_c_try_link "$LINENO"; then : 29815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29816 $as_echo "no" >&6; } 29817 X_LIBS="$X_LIBS -R$x_libraries" 29818 else 29819 LIBS="$ac_xsave_LIBS -R $x_libraries" 29820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29821 /* end confdefs.h. */ 29822 29823 int 29824 main () 29825 { 29826 29827 ; 29828 return 0; 29829 } 29830 _ACEOF 29831 if ac_fn_c_try_link "$LINENO"; then : 29832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29833 $as_echo "yes" >&6; } 29834 X_LIBS="$X_LIBS -R $x_libraries" 29835 else 29836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 29837 $as_echo "neither works" >&6; } 29838 fi 29839 rm -f core conftest.err conftest.$ac_objext \ 29840 conftest$ac_exeext conftest.$ac_ext 29841 fi 29842 rm -f core conftest.err conftest.$ac_objext \ 29843 conftest$ac_exeext conftest.$ac_ext 29844 ac_c_werror_flag=$ac_xsave_c_werror_flag 29845 LIBS=$ac_xsave_LIBS 29846 fi 29847 29848 # Check for system-dependent libraries X programs must link with. 29849 # Do this before checking for the system-independent R6 libraries 29850 # (-lICE), since we may need -lsocket or whatever for X linking. 29851 29852 if test "$ISC" = yes; then 29853 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 29854 else 29855 # Martyn Johnson says this is needed for Ultrix, if the X 29856 # libraries were built with DECnet support. And Karl Berry says 29857 # the Alpha needs dnet_stub (dnet does not exist). 29858 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 29859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29860 /* end confdefs.h. */ 29861 29862 /* Override any GCC internal prototype to avoid an error. 29863 Use char because int might match the return type of a GCC 29864 builtin and then its argument prototype would still apply. */ 29865 #ifdef __cplusplus 29866 extern "C" 29867 #endif 29868 char XOpenDisplay (); 29869 int 29870 main () 29871 { 29872 return XOpenDisplay (); 29873 ; 29874 return 0; 29875 } 29876 _ACEOF 29877 if ac_fn_c_try_link "$LINENO"; then : 29878 29879 else 29880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 29881 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 29882 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 29883 $as_echo_n "(cached) " >&6 29884 else 29885 ac_check_lib_save_LIBS=$LIBS 29886 LIBS="-ldnet $LIBS" 29887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29888 /* end confdefs.h. */ 29889 29890 /* Override any GCC internal prototype to avoid an error. 29891 Use char because int might match the return type of a GCC 29892 builtin and then its argument prototype would still apply. */ 29893 #ifdef __cplusplus 29894 extern "C" 29895 #endif 29896 char dnet_ntoa (); 29897 int 29898 main () 29899 { 29900 return dnet_ntoa (); 29901 ; 29902 return 0; 29903 } 29904 _ACEOF 29905 if ac_fn_c_try_link "$LINENO"; then : 29906 ac_cv_lib_dnet_dnet_ntoa=yes 29907 else 29908 ac_cv_lib_dnet_dnet_ntoa=no 29909 fi 29910 rm -f core conftest.err conftest.$ac_objext \ 29911 conftest$ac_exeext conftest.$ac_ext 29912 LIBS=$ac_check_lib_save_LIBS 29913 fi 29914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 29915 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 29916 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 29917 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 29918 fi 29919 29920 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 29921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 29922 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 29923 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 29924 $as_echo_n "(cached) " >&6 29925 else 29926 ac_check_lib_save_LIBS=$LIBS 29927 LIBS="-ldnet_stub $LIBS" 29928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29929 /* end confdefs.h. */ 29930 29931 /* Override any GCC internal prototype to avoid an error. 29932 Use char because int might match the return type of a GCC 29933 builtin and then its argument prototype would still apply. */ 29934 #ifdef __cplusplus 29935 extern "C" 29936 #endif 29937 char dnet_ntoa (); 29938 int 29939 main () 29940 { 29941 return dnet_ntoa (); 29942 ; 29943 return 0; 29944 } 29945 _ACEOF 29946 if ac_fn_c_try_link "$LINENO"; then : 29947 ac_cv_lib_dnet_stub_dnet_ntoa=yes 29948 else 29949 ac_cv_lib_dnet_stub_dnet_ntoa=no 29950 fi 29951 rm -f core conftest.err conftest.$ac_objext \ 29952 conftest$ac_exeext conftest.$ac_ext 29953 LIBS=$ac_check_lib_save_LIBS 29954 fi 29955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 29956 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 29957 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 29958 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 29959 fi 29960 29961 fi 29962 fi 29963 rm -f core conftest.err conftest.$ac_objext \ 29964 conftest$ac_exeext conftest.$ac_ext 29965 LIBS="$ac_xsave_LIBS" 29966 29967 # msh (at] cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 29968 # to get the SysV transport functions. 29969 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 29970 # needs -lnsl. 29971 # The nsl library prevents programs from opening the X display 29972 # on Irix 5.2, according to T.E. Dickey. 29973 # The functions gethostbyname, getservbyname, and inet_addr are 29974 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 29975 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 29976 if test "x$ac_cv_func_gethostbyname" = xyes; then : 29977 29978 fi 29979 29980 if test $ac_cv_func_gethostbyname = no; then 29981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 29982 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 29983 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 29984 $as_echo_n "(cached) " >&6 29985 else 29986 ac_check_lib_save_LIBS=$LIBS 29987 LIBS="-lnsl $LIBS" 29988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29989 /* end confdefs.h. */ 29990 29991 /* Override any GCC internal prototype to avoid an error. 29992 Use char because int might match the return type of a GCC 29993 builtin and then its argument prototype would still apply. */ 29994 #ifdef __cplusplus 29995 extern "C" 29996 #endif 29997 char gethostbyname (); 29998 int 29999 main () 30000 { 30001 return gethostbyname (); 30002 ; 30003 return 0; 30004 } 30005 _ACEOF 30006 if ac_fn_c_try_link "$LINENO"; then : 30007 ac_cv_lib_nsl_gethostbyname=yes 30008 else 30009 ac_cv_lib_nsl_gethostbyname=no 30010 fi 30011 rm -f core conftest.err conftest.$ac_objext \ 30012 conftest$ac_exeext conftest.$ac_ext 30013 LIBS=$ac_check_lib_save_LIBS 30014 fi 30015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 30016 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 30017 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 30018 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 30019 fi 30020 30021 if test $ac_cv_lib_nsl_gethostbyname = no; then 30022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 30023 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 30024 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 30025 $as_echo_n "(cached) " >&6 30026 else 30027 ac_check_lib_save_LIBS=$LIBS 30028 LIBS="-lbsd $LIBS" 30029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30030 /* end confdefs.h. */ 30031 30032 /* Override any GCC internal prototype to avoid an error. 30033 Use char because int might match the return type of a GCC 30034 builtin and then its argument prototype would still apply. */ 30035 #ifdef __cplusplus 30036 extern "C" 30037 #endif 30038 char gethostbyname (); 30039 int 30040 main () 30041 { 30042 return gethostbyname (); 30043 ; 30044 return 0; 30045 } 30046 _ACEOF 30047 if ac_fn_c_try_link "$LINENO"; then : 30048 ac_cv_lib_bsd_gethostbyname=yes 30049 else 30050 ac_cv_lib_bsd_gethostbyname=no 30051 fi 30052 rm -f core conftest.err conftest.$ac_objext \ 30053 conftest$ac_exeext conftest.$ac_ext 30054 LIBS=$ac_check_lib_save_LIBS 30055 fi 30056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 30057 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 30058 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 30059 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 30060 fi 30061 30062 fi 30063 fi 30064 30065 # lieder (at] skyler.mavd.honeywell.com says without -lsocket, 30066 # socket/setsockopt and other routines are undefined under SCO ODT 30067 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 30068 # on later versions), says Simon Leinen: it contains gethostby* 30069 # variants that don't use the name server (or something). -lsocket 30070 # must be given before -lnsl if both are needed. We assume that 30071 # if connect needs -lnsl, so does gethostbyname. 30072 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 30073 if test "x$ac_cv_func_connect" = xyes; then : 30074 30075 fi 30076 30077 if test $ac_cv_func_connect = no; then 30078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 30079 $as_echo_n "checking for connect in -lsocket... " >&6; } 30080 if ${ac_cv_lib_socket_connect+:} false; then : 30081 $as_echo_n "(cached) " >&6 30082 else 30083 ac_check_lib_save_LIBS=$LIBS 30084 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 30085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30086 /* end confdefs.h. */ 30087 30088 /* Override any GCC internal prototype to avoid an error. 30089 Use char because int might match the return type of a GCC 30090 builtin and then its argument prototype would still apply. */ 30091 #ifdef __cplusplus 30092 extern "C" 30093 #endif 30094 char connect (); 30095 int 30096 main () 30097 { 30098 return connect (); 30099 ; 30100 return 0; 30101 } 30102 _ACEOF 30103 if ac_fn_c_try_link "$LINENO"; then : 30104 ac_cv_lib_socket_connect=yes 30105 else 30106 ac_cv_lib_socket_connect=no 30107 fi 30108 rm -f core conftest.err conftest.$ac_objext \ 30109 conftest$ac_exeext conftest.$ac_ext 30110 LIBS=$ac_check_lib_save_LIBS 30111 fi 30112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 30113 $as_echo "$ac_cv_lib_socket_connect" >&6; } 30114 if test "x$ac_cv_lib_socket_connect" = xyes; then : 30115 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 30116 fi 30117 30118 fi 30119 30120 # Guillermo Gomez says -lposix is necessary on A/UX. 30121 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 30122 if test "x$ac_cv_func_remove" = xyes; then : 30123 30124 fi 30125 30126 if test $ac_cv_func_remove = no; then 30127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 30128 $as_echo_n "checking for remove in -lposix... " >&6; } 30129 if ${ac_cv_lib_posix_remove+:} false; then : 30130 $as_echo_n "(cached) " >&6 30131 else 30132 ac_check_lib_save_LIBS=$LIBS 30133 LIBS="-lposix $LIBS" 30134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30135 /* end confdefs.h. */ 30136 30137 /* Override any GCC internal prototype to avoid an error. 30138 Use char because int might match the return type of a GCC 30139 builtin and then its argument prototype would still apply. */ 30140 #ifdef __cplusplus 30141 extern "C" 30142 #endif 30143 char remove (); 30144 int 30145 main () 30146 { 30147 return remove (); 30148 ; 30149 return 0; 30150 } 30151 _ACEOF 30152 if ac_fn_c_try_link "$LINENO"; then : 30153 ac_cv_lib_posix_remove=yes 30154 else 30155 ac_cv_lib_posix_remove=no 30156 fi 30157 rm -f core conftest.err conftest.$ac_objext \ 30158 conftest$ac_exeext conftest.$ac_ext 30159 LIBS=$ac_check_lib_save_LIBS 30160 fi 30161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 30162 $as_echo "$ac_cv_lib_posix_remove" >&6; } 30163 if test "x$ac_cv_lib_posix_remove" = xyes; then : 30164 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 30165 fi 30166 30167 fi 30168 30169 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 30170 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 30171 if test "x$ac_cv_func_shmat" = xyes; then : 30172 30173 fi 30174 30175 if test $ac_cv_func_shmat = no; then 30176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 30177 $as_echo_n "checking for shmat in -lipc... " >&6; } 30178 if ${ac_cv_lib_ipc_shmat+:} false; then : 30179 $as_echo_n "(cached) " >&6 30180 else 30181 ac_check_lib_save_LIBS=$LIBS 30182 LIBS="-lipc $LIBS" 30183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30184 /* end confdefs.h. */ 30185 30186 /* Override any GCC internal prototype to avoid an error. 30187 Use char because int might match the return type of a GCC 30188 builtin and then its argument prototype would still apply. */ 30189 #ifdef __cplusplus 30190 extern "C" 30191 #endif 30192 char shmat (); 30193 int 30194 main () 30195 { 30196 return shmat (); 30197 ; 30198 return 0; 30199 } 30200 _ACEOF 30201 if ac_fn_c_try_link "$LINENO"; then : 30202 ac_cv_lib_ipc_shmat=yes 30203 else 30204 ac_cv_lib_ipc_shmat=no 30205 fi 30206 rm -f core conftest.err conftest.$ac_objext \ 30207 conftest$ac_exeext conftest.$ac_ext 30208 LIBS=$ac_check_lib_save_LIBS 30209 fi 30210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 30211 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 30212 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 30213 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 30214 fi 30215 30216 fi 30217 fi 30218 30219 # Check for libraries that X11R6 Xt/Xaw programs need. 30220 ac_save_LDFLAGS=$LDFLAGS 30221 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 30222 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 30223 # check for ICE first), but we must link in the order -lSM -lICE or 30224 # we get undefined symbols. So assume we have SM if we have ICE. 30225 # These have to be linked with before -lX11, unlike the other 30226 # libraries we check for below, so use a different variable. 30227 # John Interrante, Karl Berry 30228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 30229 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 30230 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 30231 $as_echo_n "(cached) " >&6 30232 else 30233 ac_check_lib_save_LIBS=$LIBS 30234 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 30235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30236 /* end confdefs.h. */ 30237 30238 /* Override any GCC internal prototype to avoid an error. 30239 Use char because int might match the return type of a GCC 30240 builtin and then its argument prototype would still apply. */ 30241 #ifdef __cplusplus 30242 extern "C" 30243 #endif 30244 char IceConnectionNumber (); 30245 int 30246 main () 30247 { 30248 return IceConnectionNumber (); 30249 ; 30250 return 0; 30251 } 30252 _ACEOF 30253 if ac_fn_c_try_link "$LINENO"; then : 30254 ac_cv_lib_ICE_IceConnectionNumber=yes 30255 else 30256 ac_cv_lib_ICE_IceConnectionNumber=no 30257 fi 30258 rm -f core conftest.err conftest.$ac_objext \ 30259 conftest$ac_exeext conftest.$ac_ext 30260 LIBS=$ac_check_lib_save_LIBS 30261 fi 30262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 30263 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 30264 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 30265 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 30266 fi 30267 30268 LDFLAGS=$ac_save_LDFLAGS 30269 30270 fi 30271 30272 if test "$no_x" != 'yes'; then 30273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30274 $as_echo "-------------------------------------------------------------" >&6; } 30275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 30276 $as_echo_n "checking for X11... " >&6; } 30277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30278 $as_echo "" >&6; } 30279 LDFLAGS="$LDFLAGS $X_LIBS" 30280 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS" 30281 LIBS="$X11_LIBS $LIBS" 30282 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 30283 30284 30285 $as_echo "#define X11_DELEGATE 1" >>confdefs.h 30286 30287 # 30288 # Check for X11 shared memory extension 30289 # 30290 # shmctl is required to support the shared memory extension 30291 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl" 30292 if test "x$ac_cv_func_shmctl" = xyes; then : 30293 have_shmctl='yes' 30294 fi 30295 30296 if test "$have_shmctl" != 'yes'; then 30297 PERSIST_LIBS=$LIBS 30298 LIBS="$LIBS -lcygipc" 30299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30300 /* end confdefs.h. */ 30301 30302 /* Override any GCC internal prototype to avoid an error. 30303 Use char because int might match the return type of a GCC 30304 builtin and then its argument prototype would still apply. */ 30305 #ifdef __cplusplus 30306 extern "C" 30307 #endif 30308 char shmctl (); 30309 int 30310 main () 30311 { 30312 return shmctl (); 30313 ; 30314 return 0; 30315 } 30316 _ACEOF 30317 if ac_fn_c_try_link "$LINENO"; then : 30318 have_shmctl='yes'; IPC_LIBS='-lcygipc' 30319 fi 30320 rm -f core conftest.err conftest.$ac_objext \ 30321 conftest$ac_exeext conftest.$ac_ext 30322 LIBS=$PERSIST_LIBS 30323 fi 30324 30325 if test "$have_shmctl" = 'yes'; then 30326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5 30327 $as_echo_n "checking for XShmAttach in -lXext... " >&6; } 30328 if ${ac_cv_lib_Xext_XShmAttach+:} false; then : 30329 $as_echo_n "(cached) " >&6 30330 else 30331 ac_check_lib_save_LIBS=$LIBS 30332 LIBS="-lXext $LIBS" 30333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30334 /* end confdefs.h. */ 30335 30336 /* Override any GCC internal prototype to avoid an error. 30337 Use char because int might match the return type of a GCC 30338 builtin and then its argument prototype would still apply. */ 30339 #ifdef __cplusplus 30340 extern "C" 30341 #endif 30342 char XShmAttach (); 30343 int 30344 main () 30345 { 30346 return XShmAttach (); 30347 ; 30348 return 0; 30349 } 30350 _ACEOF 30351 if ac_fn_c_try_link "$LINENO"; then : 30352 ac_cv_lib_Xext_XShmAttach=yes 30353 else 30354 ac_cv_lib_Xext_XShmAttach=no 30355 fi 30356 rm -f core conftest.err conftest.$ac_objext \ 30357 conftest$ac_exeext conftest.$ac_ext 30358 LIBS=$ac_check_lib_save_LIBS 30359 fi 30360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5 30361 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; } 30362 if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then : 30363 XEXT_LIBS='-lXext' ; 30364 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h 30365 30366 fi 30367 30368 fi 30369 30370 # 30371 # Check for X11 shape extension 30372 # 30373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5 30374 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; } 30375 if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then : 30376 $as_echo_n "(cached) " >&6 30377 else 30378 ac_check_lib_save_LIBS=$LIBS 30379 LIBS="-lXext $LIBS" 30380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30381 /* end confdefs.h. */ 30382 30383 /* Override any GCC internal prototype to avoid an error. 30384 Use char because int might match the return type of a GCC 30385 builtin and then its argument prototype would still apply. */ 30386 #ifdef __cplusplus 30387 extern "C" 30388 #endif 30389 char XShapeCombineMask (); 30390 int 30391 main () 30392 { 30393 return XShapeCombineMask (); 30394 ; 30395 return 0; 30396 } 30397 _ACEOF 30398 if ac_fn_c_try_link "$LINENO"; then : 30399 ac_cv_lib_Xext_XShapeCombineMask=yes 30400 else 30401 ac_cv_lib_Xext_XShapeCombineMask=no 30402 fi 30403 rm -f core conftest.err conftest.$ac_objext \ 30404 conftest$ac_exeext conftest.$ac_ext 30405 LIBS=$ac_check_lib_save_LIBS 30406 fi 30407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5 30408 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; } 30409 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then : 30410 XEXT_LIBS='-lXext' ; 30411 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h 30412 30413 fi 30414 30415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5 30416 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; } 30417 if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then : 30418 $as_echo_n "(cached) " >&6 30419 else 30420 ac_check_lib_save_LIBS=$LIBS 30421 LIBS="-lXt $LIBS" 30422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30423 /* end confdefs.h. */ 30424 30425 /* Override any GCC internal prototype to avoid an error. 30426 Use char because int might match the return type of a GCC 30427 builtin and then its argument prototype would still apply. */ 30428 #ifdef __cplusplus 30429 extern "C" 30430 #endif 30431 char XtSetEventDispatcher (); 30432 int 30433 main () 30434 { 30435 return XtSetEventDispatcher (); 30436 ; 30437 return 0; 30438 } 30439 _ACEOF 30440 if ac_fn_c_try_link "$LINENO"; then : 30441 ac_cv_lib_Xt_XtSetEventDispatcher=yes 30442 else 30443 ac_cv_lib_Xt_XtSetEventDispatcher=no 30444 fi 30445 rm -f core conftest.err conftest.$ac_objext \ 30446 conftest$ac_exeext conftest.$ac_ext 30447 LIBS=$ac_check_lib_save_LIBS 30448 fi 30449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5 30450 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; } 30451 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then : 30452 XT_LIBS='-lXt' 30453 fi 30454 30455 LIBS="$XEXT_LIBS $XT_LIBS $LIBS" 30456 fi 30457 if test "$no_x" != 'yes'; then 30458 have_x='yes' 30459 else 30460 have_x='no' 30461 fi 30462 if test "$have_x" = 'yes'; then 30463 X11_DELEGATE_TRUE= 30464 X11_DELEGATE_FALSE='#' 30465 else 30466 X11_DELEGATE_TRUE='#' 30467 X11_DELEGATE_FALSE= 30468 fi 30469 30470 30471 30472 30473 30474 # 30475 # Check for ZLIB 30476 # 30477 30478 # Check whether --with-zlib was given. 30479 if test "${with_zlib+set}" = set; then : 30480 withval=$with_zlib; with_zlib=$withval 30481 else 30482 with_zlib='yes' 30483 fi 30484 30485 30486 if test "$with_zlib" != 'yes'; then 30487 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib " 30488 fi 30489 30490 have_zlib='no' 30491 ZLIB_CFLAGS="" 30492 ZLIB_LIBS="" 30493 ZLIB_PKG="" 30494 if test "x$with_zlib" = "xyes"; then 30495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30496 $as_echo "-------------------------------------------------------------" >&6; } 30497 30498 pkg_failed=no 30499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 30500 $as_echo_n "checking for ZLIB... " >&6; } 30501 30502 if test -n "$ZLIB_CFLAGS"; then 30503 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" 30504 elif test -n "$PKG_CONFIG"; then 30505 if test -n "$PKG_CONFIG" && \ 30506 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5 30507 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5 30508 ac_status=$? 30509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30510 test $ac_status = 0; }; then 30511 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null` 30512 test "x$?" != "x0" && pkg_failed=yes 30513 else 30514 pkg_failed=yes 30515 fi 30516 else 30517 pkg_failed=untried 30518 fi 30519 if test -n "$ZLIB_LIBS"; then 30520 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" 30521 elif test -n "$PKG_CONFIG"; then 30522 if test -n "$PKG_CONFIG" && \ 30523 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5 30524 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5 30525 ac_status=$? 30526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30527 test $ac_status = 0; }; then 30528 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null` 30529 test "x$?" != "x0" && pkg_failed=yes 30530 else 30531 pkg_failed=yes 30532 fi 30533 else 30534 pkg_failed=untried 30535 fi 30536 30537 30538 30539 if test $pkg_failed = yes; then 30540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30541 $as_echo "no" >&6; } 30542 30543 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30544 _pkg_short_errors_supported=yes 30545 else 30546 _pkg_short_errors_supported=no 30547 fi 30548 if test $_pkg_short_errors_supported = yes; then 30549 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1` 30550 else 30551 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1` 30552 fi 30553 # Put the nasty error message in config.log where it belongs 30554 echo "$ZLIB_PKG_ERRORS" >&5 30555 30556 have_zlib=no 30557 elif test $pkg_failed = untried; then 30558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30559 $as_echo "no" >&6; } 30560 have_zlib=no 30561 else 30562 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS 30563 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS 30564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30565 $as_echo "yes" >&6; } 30566 have_zlib=yes 30567 fi 30568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30569 $as_echo "" >&6; } 30570 fi 30571 30572 if test "$have_zlib" = 'yes'; then 30573 30574 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h 30575 30576 CFLAGS="$ZLIB_CFLAGS $CFLAGS" 30577 fi 30578 30579 if test "$have_zlib" = 'yes'; then 30580 ZLIB_DELEGATE_TRUE= 30581 ZLIB_DELEGATE_FALSE='#' 30582 else 30583 ZLIB_DELEGATE_TRUE='#' 30584 ZLIB_DELEGATE_FALSE= 30585 fi 30586 30587 30588 30589 30590 30591 # whether modules are built or not. 30592 with_ltdl='yes' 30593 have_ltdl='no' 30594 LTDL_LIBS='' 30595 if test "$build_modules" != 'no' ; then 30596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30597 $as_echo "-------------------------------------------------------------" >&6; } 30598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5 30599 $as_echo_n "checking for libltdl... " >&6; } 30600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30601 $as_echo "" >&6; } 30602 failed=0 30603 passed=0 30604 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default" 30605 if test "x$ac_cv_header_ltdl_h" = xyes; then : 30606 passed=`expr $passed + 1` 30607 else 30608 failed=`expr $failed + 1` 30609 fi 30610 30611 30612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5 30613 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; } 30614 if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then : 30615 $as_echo_n "(cached) " >&6 30616 else 30617 ac_check_lib_save_LIBS=$LIBS 30618 LIBS="-lltdl $LIBS" 30619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30620 /* end confdefs.h. */ 30621 30622 /* Override any GCC internal prototype to avoid an error. 30623 Use char because int might match the return type of a GCC 30624 builtin and then its argument prototype would still apply. */ 30625 #ifdef __cplusplus 30626 extern "C" 30627 #endif 30628 char lt_dlinit (); 30629 int 30630 main () 30631 { 30632 return lt_dlinit (); 30633 ; 30634 return 0; 30635 } 30636 _ACEOF 30637 if ac_fn_c_try_link "$LINENO"; then : 30638 ac_cv_lib_ltdl_lt_dlinit=yes 30639 else 30640 ac_cv_lib_ltdl_lt_dlinit=no 30641 fi 30642 rm -f core conftest.err conftest.$ac_objext \ 30643 conftest$ac_exeext conftest.$ac_ext 30644 LIBS=$ac_check_lib_save_LIBS 30645 fi 30646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5 30647 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; } 30648 if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then : 30649 passed=`expr $passed + 1` 30650 else 30651 failed=`expr $failed + 1` 30652 fi 30653 30654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5 30655 $as_echo_n "checking if libltdl package is complete... " >&6; } 30656 if test $passed -gt 0 ; then 30657 if test $failed -gt 0 ; then 30658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 30659 $as_echo "no -- some components failed test" >&6; } 30660 have_ltdl='no (failed tests)' 30661 else 30662 LTDL_LIBS='-lltdl' 30663 LIBS="$LTDL_LIBS $LIBS" 30664 30665 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h 30666 30667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30668 $as_echo "yes" >&6; } 30669 have_ltdl='yes' 30670 fi 30671 else 30672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30673 $as_echo "no" >&6; } 30674 fi 30675 if test "$have_ltdl" != 'yes' ; then 30676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30678 as_fn_error 1 "libltdl is required for modules build 30679 See \`config.log' for more details" "$LINENO" 5; } 30680 fi 30681 fi 30682 if test "$have_ltdl" != 'no'; then 30683 WITH_LTDL_TRUE= 30684 WITH_LTDL_FALSE='#' 30685 else 30686 WITH_LTDL_TRUE='#' 30687 WITH_LTDL_FALSE= 30688 fi 30689 30690 30691 # 30692 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc) 30693 # 30694 LIB_DL='' 30695 if test "$enable_profiling" = 'yes'; then 30696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 30697 $as_echo_n "checking for dlopen in -ldl... " >&6; } 30698 if ${ac_cv_lib_dl_dlopen+:} false; then : 30699 $as_echo_n "(cached) " >&6 30700 else 30701 ac_check_lib_save_LIBS=$LIBS 30702 LIBS="-ldl $LIBS" 30703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30704 /* end confdefs.h. */ 30705 30706 /* Override any GCC internal prototype to avoid an error. 30707 Use char because int might match the return type of a GCC 30708 builtin and then its argument prototype would still apply. */ 30709 #ifdef __cplusplus 30710 extern "C" 30711 #endif 30712 char dlopen (); 30713 int 30714 main () 30715 { 30716 return dlopen (); 30717 ; 30718 return 0; 30719 } 30720 _ACEOF 30721 if ac_fn_c_try_link "$LINENO"; then : 30722 ac_cv_lib_dl_dlopen=yes 30723 else 30724 ac_cv_lib_dl_dlopen=no 30725 fi 30726 rm -f core conftest.err conftest.$ac_objext \ 30727 conftest$ac_exeext conftest.$ac_ext 30728 LIBS=$ac_check_lib_save_LIBS 30729 fi 30730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 30731 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 30732 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 30733 LIB_DL='-ldl' 30734 fi 30735 30736 LIBS="$LIB_DL $LIBS" 30737 fi 30738 30739 30740 30741 # 30742 # Set Apple font directory. 30743 # 30744 30745 # Check whether --with-apple-font-dir was given. 30746 if test "${with_apple_font_dir+set}" = set; then : 30747 withval=$with_apple_font_dir; with_apple_font_dir=$withval 30748 else 30749 with_apple_font_dir='default' 30750 fi 30751 30752 30753 if test "$with_apple_font_dir" != 'default'; then 30754 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir " 30755 fi 30756 30757 30758 # 30759 # Check for Autotrace delegate library. 30760 # 30761 30762 # Check whether --with-autotrace was given. 30763 if test "${with_autotrace+set}" = set; then : 30764 withval=$with_autotrace; with_autotrace=$withval 30765 else 30766 with_autotrace='no' 30767 fi 30768 30769 30770 if test "$with_autotrace" != 'yes'; then 30771 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace " 30772 fi 30773 30774 have_autotrace='no' 30775 AUTOTRACE_CFLAGS="" 30776 AUTOTRACE_LIBS="" 30777 AUTOTRACE_PKG="" 30778 if test "x$with_autotrace" = "xyes"; then 30779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30780 $as_echo "-------------------------------------------------------------" >&6; } 30781 30782 pkg_failed=no 30783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5 30784 $as_echo_n "checking for AUTOTRACE... " >&6; } 30785 30786 if test -n "$AUTOTRACE_CFLAGS"; then 30787 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS" 30788 elif test -n "$PKG_CONFIG"; then 30789 if test -n "$PKG_CONFIG" && \ 30790 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 30791 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 30792 ac_status=$? 30793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30794 test $ac_status = 0; }; then 30795 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null` 30796 test "x$?" != "x0" && pkg_failed=yes 30797 else 30798 pkg_failed=yes 30799 fi 30800 else 30801 pkg_failed=untried 30802 fi 30803 if test -n "$AUTOTRACE_LIBS"; then 30804 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS" 30805 elif test -n "$PKG_CONFIG"; then 30806 if test -n "$PKG_CONFIG" && \ 30807 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 30808 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 30809 ac_status=$? 30810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30811 test $ac_status = 0; }; then 30812 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null` 30813 test "x$?" != "x0" && pkg_failed=yes 30814 else 30815 pkg_failed=yes 30816 fi 30817 else 30818 pkg_failed=untried 30819 fi 30820 30821 30822 30823 if test $pkg_failed = yes; then 30824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30825 $as_echo "no" >&6; } 30826 30827 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30828 _pkg_short_errors_supported=yes 30829 else 30830 _pkg_short_errors_supported=no 30831 fi 30832 if test $_pkg_short_errors_supported = yes; then 30833 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1` 30834 else 30835 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1` 30836 fi 30837 # Put the nasty error message in config.log where it belongs 30838 echo "$AUTOTRACE_PKG_ERRORS" >&5 30839 30840 have_autotrace=no 30841 elif test $pkg_failed = untried; then 30842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30843 $as_echo "no" >&6; } 30844 have_autotrace=no 30845 else 30846 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS 30847 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS 30848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30849 $as_echo "yes" >&6; } 30850 have_autotrace=yes 30851 fi 30852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30853 $as_echo "" >&6; } 30854 fi 30855 30856 if test "$have_autotrace" = 'yes'; then 30857 30858 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h 30859 30860 CFLAGS="$AUTOTRACE_CFLAGS $CFLAGS" 30861 fi 30862 30863 if test "$have_autotrace" = 'yes'; then 30864 AUTOTRACE_DELEGATE_TRUE= 30865 AUTOTRACE_DELEGATE_FALSE='#' 30866 else 30867 AUTOTRACE_DELEGATE_TRUE='#' 30868 AUTOTRACE_DELEGATE_FALSE= 30869 fi 30870 30871 30872 30873 30874 30875 # 30876 # Check for Display Postscript delegate library. 30877 # 30878 30879 # Check whether --with-dps was given. 30880 if test "${with_dps+set}" = set; then : 30881 withval=$with_dps; with_dps=$withval 30882 else 30883 with_dps='yes' 30884 fi 30885 30886 30887 if test "$with_dps" != 'yes'; then 30888 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps " 30889 fi 30890 30891 have_dps='no' 30892 DPS_LIBS='' 30893 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then 30894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30895 $as_echo "-------------------------------------------------------------" >&6; } 30896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5 30897 $as_echo_n "checking for DPS... " >&6; } 30898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30899 $as_echo "" >&6; } 30900 failed=0 30901 passed=0 30902 PERSIST_CPPFLAGS="$CPPFLAGS" 30903 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11" 30904 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default" 30905 if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then : 30906 passed=`expr $passed + 1` 30907 else 30908 failed=`expr $failed + 1` 30909 fi 30910 30911 30912 # DPS issues: 30913 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps. 30914 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build. 30915 # Adobe DPS (as delivered on Solaris) doesn't require -lXt. 30916 # ImageMagick itself doesn't use -lXt. 30917 have_libdps='no' 30918 LIBDPS_XT='' 30919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 30920 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; } 30921 if ${ac_cv_lib_dps_DPSInitialize+:} false; then : 30922 $as_echo_n "(cached) " >&6 30923 else 30924 ac_check_lib_save_LIBS=$LIBS 30925 LIBS="-ldps $LIBS" 30926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30927 /* end confdefs.h. */ 30928 30929 /* Override any GCC internal prototype to avoid an error. 30930 Use char because int might match the return type of a GCC 30931 builtin and then its argument prototype would still apply. */ 30932 #ifdef __cplusplus 30933 extern "C" 30934 #endif 30935 char DPSInitialize (); 30936 int 30937 main () 30938 { 30939 return DPSInitialize (); 30940 ; 30941 return 0; 30942 } 30943 _ACEOF 30944 if ac_fn_c_try_link "$LINENO"; then : 30945 ac_cv_lib_dps_DPSInitialize=yes 30946 else 30947 ac_cv_lib_dps_DPSInitialize=no 30948 fi 30949 rm -f core conftest.err conftest.$ac_objext \ 30950 conftest$ac_exeext conftest.$ac_ext 30951 LIBS=$ac_check_lib_save_LIBS 30952 fi 30953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5 30954 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } 30955 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then : 30956 have_libdps='yes' 30957 else 30958 have_libdps='no' 30959 fi 30960 30961 if test "$have_libdps" != 'yes'; then 30962 # Unset cache variable so we can try again. 30963 unset ac_cv_lib_dps_DPSInitialize 30964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 30965 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; } 30966 if ${ac_cv_lib_dps_DPSInitialize+:} false; then : 30967 $as_echo_n "(cached) " >&6 30968 else 30969 ac_check_lib_save_LIBS=$LIBS 30970 LIBS="-ldps -lXt $LIBS" 30971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30972 /* end confdefs.h. */ 30973 30974 /* Override any GCC internal prototype to avoid an error. 30975 Use char because int might match the return type of a GCC 30976 builtin and then its argument prototype would still apply. */ 30977 #ifdef __cplusplus 30978 extern "C" 30979 #endif 30980 char DPSInitialize (); 30981 int 30982 main () 30983 { 30984 return DPSInitialize (); 30985 ; 30986 return 0; 30987 } 30988 _ACEOF 30989 if ac_fn_c_try_link "$LINENO"; then : 30990 ac_cv_lib_dps_DPSInitialize=yes 30991 else 30992 ac_cv_lib_dps_DPSInitialize=no 30993 fi 30994 rm -f core conftest.err conftest.$ac_objext \ 30995 conftest$ac_exeext conftest.$ac_ext 30996 LIBS=$ac_check_lib_save_LIBS 30997 fi 30998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5 30999 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } 31000 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then : 31001 have_libdps='yes' 31002 else 31003 have_libdps='no' 31004 fi 31005 31006 if test "$have_libdps" = 'yes'; then 31007 LIBDPS_XT='-lXt' 31008 fi 31009 fi 31010 if test "$have_libdps" = 'yes'; then 31011 passed=`expr $passed + 1` 31012 else 31013 failed=`expr $failed + 1` 31014 fi 31015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5 31016 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; } 31017 if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then : 31018 $as_echo_n "(cached) " >&6 31019 else 31020 ac_check_lib_save_LIBS=$LIBS 31021 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS" 31022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31023 /* end confdefs.h. */ 31024 31025 /* Override any GCC internal prototype to avoid an error. 31026 Use char because int might match the return type of a GCC 31027 builtin and then its argument prototype would still apply. */ 31028 #ifdef __cplusplus 31029 extern "C" 31030 #endif 31031 char XDPSPixelsPerPoint (); 31032 int 31033 main () 31034 { 31035 return XDPSPixelsPerPoint (); 31036 ; 31037 return 0; 31038 } 31039 _ACEOF 31040 if ac_fn_c_try_link "$LINENO"; then : 31041 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes 31042 else 31043 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no 31044 fi 31045 rm -f core conftest.err conftest.$ac_objext \ 31046 conftest$ac_exeext conftest.$ac_ext 31047 LIBS=$ac_check_lib_save_LIBS 31048 fi 31049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5 31050 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; } 31051 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then : 31052 passed=`expr $passed + 1` 31053 else 31054 failed=`expr $failed + 1` 31055 fi 31056 31057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5 31058 $as_echo_n "checking if DPS package is complete... " >&6; } 31059 if test $passed -gt 0; then 31060 if test $failed -gt 0; then 31061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 31062 $as_echo "no -- some components failed test" >&6; } 31063 have_dps='no (failed tests)' 31064 CPPFLAGS="$PERSIST_CPPFLAGS" 31065 else 31066 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}" 31067 LIBS="$DPS_LIBS $LIBS" 31068 31069 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h 31070 31071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31072 $as_echo "yes" >&6; } 31073 have_dps='yes' 31074 fi 31075 else 31076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31077 $as_echo "no" >&6; } 31078 CPPFLAGS=$PERSIST_CPPFLAGS 31079 fi 31080 fi 31081 if test "$have_dps" = 'yes'; then 31082 DPS_DELEGATE_TRUE= 31083 DPS_DELEGATE_FALSE='#' 31084 else 31085 DPS_DELEGATE_TRUE='#' 31086 DPS_DELEGATE_FALSE= 31087 fi 31088 31089 31090 31091 31092 # 31093 # Set DejaVu font directory. 31094 # 31095 31096 # Check whether --with-dejavu-font-dir was given. 31097 if test "${with_dejavu_font_dir+set}" = set; then : 31098 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval 31099 else 31100 with_dejavu_font_dir='default' 31101 fi 31102 31103 31104 if test "$with_dejavu_font_dir" != 'default'; then 31105 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir " 31106 fi 31107 31108 31109 # 31110 # Check for FFTW delegate library. 31111 # 31112 31113 # Check whether --with-fftw was given. 31114 if test "${with_fftw+set}" = set; then : 31115 withval=$with_fftw; with_fftw=$withval 31116 else 31117 with_fftw='yes' 31118 fi 31119 31120 31121 if test "$with_fftw" != 'yes'; then 31122 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw " 31123 fi 31124 31125 have_fftw='no' 31126 FFTW_CFLAGS="" 31127 FFTW_LIBS="" 31128 FFTW_PKG="" 31129 if test "x$with_fftw" = "xyes"; then 31130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31131 $as_echo "-------------------------------------------------------------" >&6; } 31132 31133 pkg_failed=no 31134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3" >&5 31135 $as_echo_n "checking for fftw3... " >&6; } 31136 31137 if test -n "$fftw3_CFLAGS"; then 31138 pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS" 31139 elif test -n "$PKG_CONFIG"; then 31140 if test -n "$PKG_CONFIG" && \ 31141 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5 31142 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5 31143 ac_status=$? 31144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31145 test $ac_status = 0; }; then 31146 pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.0.0" 2>/dev/null` 31147 test "x$?" != "x0" && pkg_failed=yes 31148 else 31149 pkg_failed=yes 31150 fi 31151 else 31152 pkg_failed=untried 31153 fi 31154 if test -n "$fftw3_LIBS"; then 31155 pkg_cv_fftw3_LIBS="$fftw3_LIBS" 31156 elif test -n "$PKG_CONFIG"; then 31157 if test -n "$PKG_CONFIG" && \ 31158 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5 31159 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5 31160 ac_status=$? 31161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31162 test $ac_status = 0; }; then 31163 pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.0.0" 2>/dev/null` 31164 test "x$?" != "x0" && pkg_failed=yes 31165 else 31166 pkg_failed=yes 31167 fi 31168 else 31169 pkg_failed=untried 31170 fi 31171 31172 31173 31174 if test $pkg_failed = yes; then 31175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31176 $as_echo "no" >&6; } 31177 31178 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31179 _pkg_short_errors_supported=yes 31180 else 31181 _pkg_short_errors_supported=no 31182 fi 31183 if test $_pkg_short_errors_supported = yes; then 31184 fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1` 31185 else 31186 fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1` 31187 fi 31188 # Put the nasty error message in config.log where it belongs 31189 echo "$fftw3_PKG_ERRORS" >&5 31190 31191 have_fftw=no 31192 elif test $pkg_failed = untried; then 31193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31194 $as_echo "no" >&6; } 31195 have_fftw=no 31196 else 31197 fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS 31198 fftw3_LIBS=$pkg_cv_fftw3_LIBS 31199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31200 $as_echo "yes" >&6; } 31201 have_fftw=yes 31202 fi 31203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31204 $as_echo "" >&6; } 31205 fi 31206 31207 if test "$have_fftw" = 'yes'; then 31208 31209 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h 31210 31211 FFTW_CFLAGS="$fftw3_CFLAGS" 31212 FFTW_LIBS="$fftw3_LIBS" 31213 CFLAGS="$fftw3_CFLAGS $CFLAGS" 31214 fi 31215 31216 if test "$have_fftw" = 'yes'; then 31217 FFTW_DELEGATE_TRUE= 31218 FFTW_DELEGATE_FALSE='#' 31219 else 31220 FFTW_DELEGATE_TRUE='#' 31221 FFTW_DELEGATE_FALSE= 31222 fi 31223 31224 31225 31226 31227 31228 # 31229 # Check for FLIF delegate library. 31230 # 31231 31232 # Check whether --with-flif was given. 31233 if test "${with_flif+set}" = set; then : 31234 withval=$with_flif; with_flif=$withval 31235 else 31236 with_flif='yes' 31237 fi 31238 31239 31240 if test "$with_flif" != 'yes'; then 31241 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-flif=$with_flif " 31242 fi 31243 31244 have_flif='no' 31245 FLIF_LIBS='' 31246 if test "$with_flif" != 'no'; then 31247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31248 $as_echo "-------------------------------------------------------------" >&6; } 31249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLIF" >&5 31250 $as_echo_n "checking for FLIF... " >&6; } 31251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31252 $as_echo "" >&6; } 31253 failed=0 31254 passed=0 31255 ac_fn_c_check_header_mongrel "$LINENO" "flif.h" "ac_cv_header_flif_h" "$ac_includes_default" 31256 if test "x$ac_cv_header_flif_h" = xyes; then : 31257 passed=`expr $passed + 1` 31258 else 31259 failed=`expr $failed + 1` 31260 fi 31261 31262 31263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flif_create_decoder in -lflif" >&5 31264 $as_echo_n "checking for flif_create_decoder in -lflif... " >&6; } 31265 if ${ac_cv_lib_flif_flif_create_decoder+:} false; then : 31266 $as_echo_n "(cached) " >&6 31267 else 31268 ac_check_lib_save_LIBS=$LIBS 31269 LIBS="-lflif $LIBS" 31270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31271 /* end confdefs.h. */ 31272 31273 /* Override any GCC internal prototype to avoid an error. 31274 Use char because int might match the return type of a GCC 31275 builtin and then its argument prototype would still apply. */ 31276 #ifdef __cplusplus 31277 extern "C" 31278 #endif 31279 char flif_create_decoder (); 31280 int 31281 main () 31282 { 31283 return flif_create_decoder (); 31284 ; 31285 return 0; 31286 } 31287 _ACEOF 31288 if ac_fn_c_try_link "$LINENO"; then : 31289 ac_cv_lib_flif_flif_create_decoder=yes 31290 else 31291 ac_cv_lib_flif_flif_create_decoder=no 31292 fi 31293 rm -f core conftest.err conftest.$ac_objext \ 31294 conftest$ac_exeext conftest.$ac_ext 31295 LIBS=$ac_check_lib_save_LIBS 31296 fi 31297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_flif_flif_create_decoder" >&5 31298 $as_echo "$ac_cv_lib_flif_flif_create_decoder" >&6; } 31299 if test "x$ac_cv_lib_flif_flif_create_decoder" = xyes; then : 31300 passed=`expr $passed + 1` 31301 else 31302 failed=`expr $failed + 1` 31303 fi 31304 31305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FLIF package is complete" >&5 31306 $as_echo_n "checking if FLIF package is complete... " >&6; } 31307 if test $passed -gt 0; then 31308 if test $failed -gt 0; then 31309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 31310 $as_echo "no -- some components failed test" >&6; } 31311 have_flif='no (failed tests)' 31312 else 31313 FLIF_LIBS='-lflif' 31314 LIBS="$FLIF_LIBS $LIBS" 31315 31316 $as_echo "#define FLIF_DELEGATE 1" >>confdefs.h 31317 31318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31319 $as_echo "yes" >&6; } 31320 have_flif='yes' 31321 fi 31322 else 31323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31324 $as_echo "no" >&6; } 31325 fi 31326 fi 31327 if test "$have_flif" = 'yes'; then 31328 FLIF_DELEGATE_TRUE= 31329 FLIF_DELEGATE_FALSE='#' 31330 else 31331 FLIF_DELEGATE_TRUE='#' 31332 FLIF_DELEGATE_FALSE= 31333 fi 31334 31335 31336 31337 31338 # 31339 # Check for FlashPIX delegate library. 31340 # 31341 31342 # Check whether --with-fpx was given. 31343 if test "${with_fpx+set}" = set; then : 31344 withval=$with_fpx; with_fpx=$withval 31345 else 31346 with_fpx='yes' 31347 fi 31348 31349 31350 if test "$with_fpx" != 'yes'; then 31351 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx " 31352 fi 31353 31354 have_fpx='no' 31355 FPX_LIBS='' 31356 if test "$with_fpx" != 'no'; then 31357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31358 $as_echo "-------------------------------------------------------------" >&6; } 31359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5 31360 $as_echo_n "checking for FlashPIX... " >&6; } 31361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31362 $as_echo "" >&6; } 31363 failed=0 31364 passed=0 31365 ac_ext=cpp 31366 ac_cpp='$CXXCPP $CPPFLAGS' 31367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31370 31371 31372 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default" 31373 if test "x$ac_cv_header_fpxlib_h" = xyes; then : 31374 passed=`expr $passed + 1` 31375 else 31376 failed=`expr $failed + 1` 31377 fi 31378 31379 31380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5 31381 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; } 31382 if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then : 31383 $as_echo_n "(cached) " >&6 31384 else 31385 ac_check_lib_save_LIBS=$LIBS 31386 LIBS="-lfpx $LIBS" 31387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31388 /* end confdefs.h. */ 31389 31390 /* Override any GCC internal prototype to avoid an error. 31391 Use char because int might match the return type of a GCC 31392 builtin and then its argument prototype would still apply. */ 31393 #ifdef __cplusplus 31394 extern "C" 31395 #endif 31396 char FPX_OpenImageByFilename (); 31397 int 31398 main () 31399 { 31400 return FPX_OpenImageByFilename (); 31401 ; 31402 return 0; 31403 } 31404 _ACEOF 31405 if ac_fn_cxx_try_link "$LINENO"; then : 31406 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes 31407 else 31408 ac_cv_lib_fpx_FPX_OpenImageByFilename=no 31409 fi 31410 rm -f core conftest.err conftest.$ac_objext \ 31411 conftest$ac_exeext conftest.$ac_ext 31412 LIBS=$ac_check_lib_save_LIBS 31413 fi 31414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5 31415 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; } 31416 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then : 31417 passed=`expr $passed + 1` 31418 else 31419 failed=`expr $failed + 1` 31420 fi 31421 31422 ac_ext=c 31423 ac_cpp='$CPP $CPPFLAGS' 31424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31426 ac_compiler_gnu=$ac_cv_c_compiler_gnu 31427 31428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5 31429 $as_echo_n "checking if FlashPIX package is complete... " >&6; } 31430 if test $passed -gt 0; then 31431 if test $failed -gt 0; then 31432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 31433 $as_echo "no -- some components failed test" >&6; } 31434 have_fpx='no (failed tests)' 31435 else 31436 FPX_LIBS='-lfpx' 31437 31438 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h 31439 31440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31441 $as_echo "yes" >&6; } 31442 have_fpx='yes' 31443 PERLMAINCC="$CXX" 31444 fi 31445 else 31446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31447 $as_echo "no" >&6; } 31448 fi 31449 fi 31450 if test "$have_fpx" = 'yes'; then 31451 FPX_DELEGATE_TRUE= 31452 FPX_DELEGATE_FALSE='#' 31453 else 31454 FPX_DELEGATE_TRUE='#' 31455 FPX_DELEGATE_FALSE= 31456 fi 31457 31458 31459 31460 31461 # 31462 # Check for DJVU delegate library. 31463 # 31464 31465 # Check whether --with-djvu was given. 31466 if test "${with_djvu+set}" = set; then : 31467 withval=$with_djvu; with_djvu=$withval 31468 else 31469 with_djvu='yes' 31470 fi 31471 31472 31473 if test "$with_djvu" != 'yes'; then 31474 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu " 31475 fi 31476 31477 have_djvu='no' 31478 DJVU_CFLAGS="" 31479 DJVU_LIBS="" 31480 DJVU_PKG="" 31481 if test "x$with_djvu" = "xyes"; then 31482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31483 $as_echo "-------------------------------------------------------------" >&6; } 31484 31485 pkg_failed=no 31486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvuapi" >&5 31487 $as_echo_n "checking for ddjvuapi... " >&6; } 31488 31489 if test -n "$ddjvuapi_CFLAGS"; then 31490 pkg_cv_ddjvuapi_CFLAGS="$ddjvuapi_CFLAGS" 31491 elif test -n "$PKG_CONFIG"; then 31492 if test -n "$PKG_CONFIG" && \ 31493 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5 31494 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5 31495 ac_status=$? 31496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31497 test $ac_status = 0; }; then 31498 pkg_cv_ddjvuapi_CFLAGS=`$PKG_CONFIG --cflags "ddjvuapi >= 3.5.0" 2>/dev/null` 31499 test "x$?" != "x0" && pkg_failed=yes 31500 else 31501 pkg_failed=yes 31502 fi 31503 else 31504 pkg_failed=untried 31505 fi 31506 if test -n "$ddjvuapi_LIBS"; then 31507 pkg_cv_ddjvuapi_LIBS="$ddjvuapi_LIBS" 31508 elif test -n "$PKG_CONFIG"; then 31509 if test -n "$PKG_CONFIG" && \ 31510 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5 31511 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5 31512 ac_status=$? 31513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31514 test $ac_status = 0; }; then 31515 pkg_cv_ddjvuapi_LIBS=`$PKG_CONFIG --libs "ddjvuapi >= 3.5.0" 2>/dev/null` 31516 test "x$?" != "x0" && pkg_failed=yes 31517 else 31518 pkg_failed=yes 31519 fi 31520 else 31521 pkg_failed=untried 31522 fi 31523 31524 31525 31526 if test $pkg_failed = yes; then 31527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31528 $as_echo "no" >&6; } 31529 31530 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31531 _pkg_short_errors_supported=yes 31532 else 31533 _pkg_short_errors_supported=no 31534 fi 31535 if test $_pkg_short_errors_supported = yes; then 31536 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1` 31537 else 31538 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1` 31539 fi 31540 # Put the nasty error message in config.log where it belongs 31541 echo "$ddjvuapi_PKG_ERRORS" >&5 31542 31543 have_djvu=no 31544 elif test $pkg_failed = untried; then 31545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31546 $as_echo "no" >&6; } 31547 have_djvu=no 31548 else 31549 ddjvuapi_CFLAGS=$pkg_cv_ddjvuapi_CFLAGS 31550 ddjvuapi_LIBS=$pkg_cv_ddjvuapi_LIBS 31551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31552 $as_echo "yes" >&6; } 31553 have_djvu=yes 31554 fi 31555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31556 $as_echo "" >&6; } 31557 fi 31558 31559 if test "$have_djvu" = 'yes'; then 31560 31561 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h 31562 31563 DJVU_CFLAGS="$ddjvuapi_CFLAGS" 31564 DJVU_LIBS="$ddjvuapi_LIBS" 31565 CFLAGS="$ddjvuapi_CFLAGS $CFLAGS" 31566 fi 31567 31568 if test "$have_djvu" = 'yes'; then 31569 DJVU_DELEGATE_TRUE= 31570 DJVU_DELEGATE_FALSE='#' 31571 else 31572 DJVU_DELEGATE_TRUE='#' 31573 DJVU_DELEGATE_FALSE= 31574 fi 31575 31576 31577 31578 31579 31580 # 31581 # Check for fontconfig delegate library. 31582 # 31583 31584 # Check whether --with-fontconfig was given. 31585 if test "${with_fontconfig+set}" = set; then : 31586 withval=$with_fontconfig; with_fontconfig=$withval 31587 else 31588 with_fontconfig='yes' 31589 fi 31590 31591 31592 if test "$with_fontconfig" != 'yes'; then 31593 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig " 31594 fi 31595 31596 have_fontconfig='no' 31597 FONTCONFIG_CFLAGS="" 31598 FONTCONFIG_LIBS="" 31599 FONTCONFIG_PKG="" 31600 if test "x$with_fontconfig" = "xyes"; then 31601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31602 $as_echo "-------------------------------------------------------------" >&6; } 31603 31604 pkg_failed=no 31605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5 31606 $as_echo_n "checking for FONTCONFIG... " >&6; } 31607 31608 if test -n "$FONTCONFIG_CFLAGS"; then 31609 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" 31610 elif test -n "$PKG_CONFIG"; then 31611 if test -n "$PKG_CONFIG" && \ 31612 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 31613 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 31614 ac_status=$? 31615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31616 test $ac_status = 0; }; then 31617 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null` 31618 test "x$?" != "x0" && pkg_failed=yes 31619 else 31620 pkg_failed=yes 31621 fi 31622 else 31623 pkg_failed=untried 31624 fi 31625 if test -n "$FONTCONFIG_LIBS"; then 31626 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" 31627 elif test -n "$PKG_CONFIG"; then 31628 if test -n "$PKG_CONFIG" && \ 31629 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 31630 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 31631 ac_status=$? 31632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31633 test $ac_status = 0; }; then 31634 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null` 31635 test "x$?" != "x0" && pkg_failed=yes 31636 else 31637 pkg_failed=yes 31638 fi 31639 else 31640 pkg_failed=untried 31641 fi 31642 31643 31644 31645 if test $pkg_failed = yes; then 31646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31647 $as_echo "no" >&6; } 31648 31649 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31650 _pkg_short_errors_supported=yes 31651 else 31652 _pkg_short_errors_supported=no 31653 fi 31654 if test $_pkg_short_errors_supported = yes; then 31655 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1` 31656 else 31657 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1` 31658 fi 31659 # Put the nasty error message in config.log where it belongs 31660 echo "$FONTCONFIG_PKG_ERRORS" >&5 31661 31662 have_fontconfig=no 31663 elif test $pkg_failed = untried; then 31664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31665 $as_echo "no" >&6; } 31666 have_fontconfig=no 31667 else 31668 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS 31669 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS 31670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31671 $as_echo "yes" >&6; } 31672 have_fontconfig=yes 31673 fi 31674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31675 $as_echo "" >&6; } 31676 fi 31677 31678 if test "$have_fontconfig" = 'yes'; then 31679 31680 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h 31681 31682 CFLAGS="$FONTCONFIG_CFLAGS $CFLAGS" 31683 fi 31684 31685 if test "$have_fontconfig" = 'yes'; then 31686 FONTCONFIG_DELEGATE_TRUE= 31687 FONTCONFIG_DELEGATE_FALSE='#' 31688 else 31689 FONTCONFIG_DELEGATE_TRUE='#' 31690 FONTCONFIG_DELEGATE_FALSE= 31691 fi 31692 31693 31694 31695 31696 31697 # 31698 # Check for the Freetype delegate library. 31699 # 31700 31701 # Check whether --with-freetype was given. 31702 if test "${with_freetype+set}" = set; then : 31703 withval=$with_freetype; with_freetype=$withval 31704 else 31705 with_freetype='yes' 31706 fi 31707 31708 31709 if test "$with_freetype" != 'yes'; then 31710 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype " 31711 fi 31712 31713 have_freetype='no' 31714 FREETYPE_CFLAGS="" 31715 FREETYPE_LIBS="" 31716 FREETYPE_PKG="" 31717 if test "x$with_freetype" = "xyes"; then 31718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31719 $as_echo "-------------------------------------------------------------" >&6; } 31720 31721 pkg_failed=no 31722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 31723 $as_echo_n "checking for FREETYPE... " >&6; } 31724 31725 if test -n "$FREETYPE_CFLAGS"; then 31726 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 31727 elif test -n "$PKG_CONFIG"; then 31728 if test -n "$PKG_CONFIG" && \ 31729 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 31730 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 31731 ac_status=$? 31732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31733 test $ac_status = 0; }; then 31734 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 31735 test "x$?" != "x0" && pkg_failed=yes 31736 else 31737 pkg_failed=yes 31738 fi 31739 else 31740 pkg_failed=untried 31741 fi 31742 if test -n "$FREETYPE_LIBS"; then 31743 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 31744 elif test -n "$PKG_CONFIG"; then 31745 if test -n "$PKG_CONFIG" && \ 31746 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 31747 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 31748 ac_status=$? 31749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31750 test $ac_status = 0; }; then 31751 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 31752 test "x$?" != "x0" && pkg_failed=yes 31753 else 31754 pkg_failed=yes 31755 fi 31756 else 31757 pkg_failed=untried 31758 fi 31759 31760 31761 31762 if test $pkg_failed = yes; then 31763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31764 $as_echo "no" >&6; } 31765 31766 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31767 _pkg_short_errors_supported=yes 31768 else 31769 _pkg_short_errors_supported=no 31770 fi 31771 if test $_pkg_short_errors_supported = yes; then 31772 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1` 31773 else 31774 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1` 31775 fi 31776 # Put the nasty error message in config.log where it belongs 31777 echo "$FREETYPE_PKG_ERRORS" >&5 31778 31779 have_freetype=no 31780 elif test $pkg_failed = untried; then 31781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31782 $as_echo "no" >&6; } 31783 have_freetype=no 31784 else 31785 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 31786 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 31787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31788 $as_echo "yes" >&6; } 31789 have_freetype=yes 31790 fi 31791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31792 $as_echo "" >&6; } 31793 fi 31794 31795 if test "$have_freetype" = 'yes'; then 31796 31797 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h 31798 31799 CFLAGS="$FREETYPE_CFLAGS $CFLAGS" 31800 fi 31801 31802 if test "$have_freetype" = 'yes'; then 31803 FREETYPE_DELEGATE_TRUE= 31804 FREETYPE_DELEGATE_FALSE='#' 31805 else 31806 FREETYPE_DELEGATE_TRUE='#' 31807 FREETYPE_DELEGATE_FALSE= 31808 fi 31809 31810 31811 31812 31813 31814 # 31815 # Check for the raqm delegate library. 31816 # 31817 31818 # Check whether --with-raqm was given. 31819 if test "${with_raqm+set}" = set; then : 31820 withval=$with_raqm; with_raqm=$withval 31821 else 31822 with_raqm='yes' 31823 fi 31824 31825 31826 if test "$with_raqm" != 'yes'; then 31827 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-raqm=$with_raqm " 31828 fi 31829 31830 have_raqm='no' 31831 RAQM_CFLAGS="" 31832 RAQM_LIBS="" 31833 RAQM_PKG="" 31834 if test "x$with_raqm" = "xyes"; then 31835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31836 $as_echo "-------------------------------------------------------------" >&6; } 31837 31838 pkg_failed=no 31839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAQM" >&5 31840 $as_echo_n "checking for RAQM... " >&6; } 31841 31842 if test -n "$RAQM_CFLAGS"; then 31843 pkg_cv_RAQM_CFLAGS="$RAQM_CFLAGS" 31844 elif test -n "$PKG_CONFIG"; then 31845 if test -n "$PKG_CONFIG" && \ 31846 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5 31847 ($PKG_CONFIG --exists --print-errors "raqm") 2>&5 31848 ac_status=$? 31849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31850 test $ac_status = 0; }; then 31851 pkg_cv_RAQM_CFLAGS=`$PKG_CONFIG --cflags "raqm" 2>/dev/null` 31852 test "x$?" != "x0" && pkg_failed=yes 31853 else 31854 pkg_failed=yes 31855 fi 31856 else 31857 pkg_failed=untried 31858 fi 31859 if test -n "$RAQM_LIBS"; then 31860 pkg_cv_RAQM_LIBS="$RAQM_LIBS" 31861 elif test -n "$PKG_CONFIG"; then 31862 if test -n "$PKG_CONFIG" && \ 31863 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5 31864 ($PKG_CONFIG --exists --print-errors "raqm") 2>&5 31865 ac_status=$? 31866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31867 test $ac_status = 0; }; then 31868 pkg_cv_RAQM_LIBS=`$PKG_CONFIG --libs "raqm" 2>/dev/null` 31869 test "x$?" != "x0" && pkg_failed=yes 31870 else 31871 pkg_failed=yes 31872 fi 31873 else 31874 pkg_failed=untried 31875 fi 31876 31877 31878 31879 if test $pkg_failed = yes; then 31880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31881 $as_echo "no" >&6; } 31882 31883 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31884 _pkg_short_errors_supported=yes 31885 else 31886 _pkg_short_errors_supported=no 31887 fi 31888 if test $_pkg_short_errors_supported = yes; then 31889 RAQM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "raqm" 2>&1` 31890 else 31891 RAQM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "raqm" 2>&1` 31892 fi 31893 # Put the nasty error message in config.log where it belongs 31894 echo "$RAQM_PKG_ERRORS" >&5 31895 31896 have_raqm=no 31897 elif test $pkg_failed = untried; then 31898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31899 $as_echo "no" >&6; } 31900 have_raqm=no 31901 else 31902 RAQM_CFLAGS=$pkg_cv_RAQM_CFLAGS 31903 RAQM_LIBS=$pkg_cv_RAQM_LIBS 31904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31905 $as_echo "yes" >&6; } 31906 have_raqm=yes 31907 fi 31908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31909 $as_echo "" >&6; } 31910 fi 31911 31912 if test "$have_raqm" = 'yes'; then 31913 31914 $as_echo "#define RAQM_DELEGATE 1" >>confdefs.h 31915 31916 CFLAGS="$RAQM_CFLAGS $CFLAGS" 31917 fi 31918 31919 if test "$have_raqm" = 'yes'; then 31920 RAQM_DELEGATE_TRUE= 31921 RAQM_DELEGATE_FALSE='#' 31922 else 31923 RAQM_DELEGATE_TRUE='#' 31924 RAQM_DELEGATE_FALSE= 31925 fi 31926 31927 31928 31929 31930 31931 # 31932 # Check for Ghostscript library or framework. 31933 # 31934 # Test for iapi.h & test for gsapi_new_instance in -lgs 31935 # or -framework Ghostscript 31936 31937 31938 # Check whether --with-gslib was given. 31939 if test "${with_gslib+set}" = set; then : 31940 withval=$with_gslib; with_gslib=$withval 31941 else 31942 with_gslib='no' 31943 fi 31944 31945 31946 gslib_framework='no' 31947 if test "$with_gslib" != 'yes'; then 31948 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib " 31949 fi 31950 31951 have_gslib='no' 31952 GS_LIBS='' 31953 if test "$with_gslib" != 'no'; then 31954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31955 $as_echo "-------------------------------------------------------------" >&6; } 31956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 31957 $as_echo_n "checking for Ghostscript... " >&6; } 31958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31959 $as_echo "" >&6; } 31960 framework=0 31961 failed=0 31962 passed=0 31963 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default" 31964 if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then : 31965 passed=`expr $passed + 1` 31966 else 31967 failed=`expr $failed + 1` 31968 fi 31969 31970 31971 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default" 31972 if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then : 31973 passed=`expr $passed + 1` 31974 else 31975 failed=`expr $failed + 1` 31976 fi 31977 31978 31979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5 31980 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; } 31981 if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then : 31982 $as_echo_n "(cached) " >&6 31983 else 31984 ac_check_framework_save_LIBS=$LIBS 31985 LIBS="-framework Ghostscript $LIBS" 31986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31987 /* end confdefs.h. */ 31988 31989 /* Override any GCC internal prototype to avoid an error. 31990 Use char because int might match the return type of a GCC 31991 builtin and then its argument prototype would still apply. */ 31992 #ifdef __cplusplus 31993 extern "C" 31994 #endif 31995 char gsapi_new_instance (); 31996 int 31997 main () 31998 { 31999 return gsapi_new_instance (); 32000 ; 32001 return 0; 32002 } 32003 _ACEOF 32004 if ac_fn_c_try_link "$LINENO"; then : 32005 ac_cv_framework_Ghostscript_gsapi_new_instance=yes 32006 else 32007 ac_cv_framework_Ghostscript_gsapi_new_instance=no 32008 fi 32009 rm -f core conftest.err conftest.$ac_objext \ 32010 conftest$ac_exeext conftest.$ac_ext 32011 LIBS=$ac_check_framework_save_LIBS 32012 fi 32013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5 32014 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; } 32015 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then : 32016 framework=`expr $framework + 1` 32017 else 32018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5 32019 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; } 32020 if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then : 32021 $as_echo_n "(cached) " >&6 32022 else 32023 ac_check_lib_save_LIBS=$LIBS 32024 LIBS="-lgs $LIBS" 32025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32026 /* end confdefs.h. */ 32027 32028 /* Override any GCC internal prototype to avoid an error. 32029 Use char because int might match the return type of a GCC 32030 builtin and then its argument prototype would still apply. */ 32031 #ifdef __cplusplus 32032 extern "C" 32033 #endif 32034 char gsapi_new_instance (); 32035 int 32036 main () 32037 { 32038 return gsapi_new_instance (); 32039 ; 32040 return 0; 32041 } 32042 _ACEOF 32043 if ac_fn_c_try_link "$LINENO"; then : 32044 ac_cv_lib_gs_gsapi_new_instance=yes 32045 else 32046 ac_cv_lib_gs_gsapi_new_instance=no 32047 fi 32048 rm -f core conftest.err conftest.$ac_objext \ 32049 conftest$ac_exeext conftest.$ac_ext 32050 LIBS=$ac_check_lib_save_LIBS 32051 fi 32052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5 32053 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; } 32054 if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then : 32055 passed=`expr $passed + 1` 32056 else 32057 failed=`expr $failed + 1` 32058 fi 32059 32060 fi 32061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5 32062 $as_echo_n "checking if Ghostscript package is complete... " >&6; } 32063 if test $passed -gt 0; then 32064 if test $failed -gt 0; then 32065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 32066 $as_echo "no -- some components failed test" >&6; } 32067 have_gslib='no (failed tests)' 32068 else 32069 if test $framework -gt 0; then 32070 GS_LIBS='-framework Ghostscript' 32071 gslib_framework='yes' 32072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5 32073 $as_echo "yes, using framework." >&6; } 32074 else 32075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5 32076 $as_echo "yes, using library." >&6; } 32077 GS_LIBS='-lgs' 32078 fi 32079 LIBS="$GS_LIBS $LIBS" 32080 32081 $as_echo "#define GS_DELEGATE 1" >>confdefs.h 32082 32083 have_gslib='yes' 32084 fi 32085 else 32086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32087 $as_echo "no" >&6; } 32088 fi 32089 fi 32090 if test "$have_gslib" = 'yes'; then 32091 GS_DELEGATE_TRUE= 32092 GS_DELEGATE_FALSE='#' 32093 else 32094 GS_DELEGATE_TRUE='#' 32095 GS_DELEGATE_FALSE= 32096 fi 32097 32098 32099 32100 # Set default font search path 32101 32102 # Check whether --with-fontpath was given. 32103 if test "${with_fontpath+set}" = set; then : 32104 withval=$with_fontpath; with_fontpath=$withval 32105 else 32106 with_fontpath='' 32107 fi 32108 32109 32110 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then 32111 with_fontpath='' 32112 else 32113 32114 cat >>confdefs.h <<_ACEOF 32115 #define MAGICK_FONT_PATH "$with_fontpath" 32116 _ACEOF 32117 32118 fi 32119 if test "$with_fontpath=" != ''; then 32120 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath " 32121 fi 32122 32123 # Set Ghostscript font directory 32124 32125 # Check whether --with-gs-font-dir was given. 32126 if test "${with_gs_font_dir+set}" = set; then : 32127 withval=$with_gs_font_dir; with_gs_font_dir=$withval 32128 else 32129 with_gs_font_dir='default' 32130 fi 32131 32132 32133 if test "$with_gs_font_dir" != 'default'; then 32134 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir " 32135 fi 32136 32137 32138 # 32139 # Check for GVC delegate library. 32140 # 32141 32142 # Check whether --with-gvc was given. 32143 if test "${with_gvc+set}" = set; then : 32144 withval=$with_gvc; with_gvc=$withval 32145 else 32146 with_gvc='yes' 32147 fi 32148 32149 32150 if test "$with_gvc" != 'yes'; then 32151 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc " 32152 fi 32153 32154 GVC_PKG="" 32155 if test "x$with_gvc" = "xyes"; then 32156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 32157 $as_echo "-------------------------------------------------------------" >&6; } 32158 32159 pkg_failed=no 32160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5 32161 $as_echo_n "checking for GVC... " >&6; } 32162 32163 if test -n "$GVC_CFLAGS"; then 32164 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS" 32165 elif test -n "$PKG_CONFIG"; then 32166 if test -n "$PKG_CONFIG" && \ 32167 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 32168 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 32169 ac_status=$? 32170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32171 test $ac_status = 0; }; then 32172 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null` 32173 test "x$?" != "x0" && pkg_failed=yes 32174 else 32175 pkg_failed=yes 32176 fi 32177 else 32178 pkg_failed=untried 32179 fi 32180 if test -n "$GVC_LIBS"; then 32181 pkg_cv_GVC_LIBS="$GVC_LIBS" 32182 elif test -n "$PKG_CONFIG"; then 32183 if test -n "$PKG_CONFIG" && \ 32184 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 32185 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 32186 ac_status=$? 32187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32188 test $ac_status = 0; }; then 32189 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null` 32190 test "x$?" != "x0" && pkg_failed=yes 32191 else 32192 pkg_failed=yes 32193 fi 32194 else 32195 pkg_failed=untried 32196 fi 32197 32198 32199 32200 if test $pkg_failed = yes; then 32201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32202 $as_echo "no" >&6; } 32203 32204 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32205 _pkg_short_errors_supported=yes 32206 else 32207 _pkg_short_errors_supported=no 32208 fi 32209 if test $_pkg_short_errors_supported = yes; then 32210 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1` 32211 else 32212 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1` 32213 fi 32214 # Put the nasty error message in config.log where it belongs 32215 echo "$GVC_PKG_ERRORS" >&5 32216 32217 have_gvc=no 32218 elif test $pkg_failed = untried; then 32219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32220 $as_echo "no" >&6; } 32221 have_gvc=no 32222 else 32223 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS 32224 GVC_LIBS=$pkg_cv_GVC_LIBS 32225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32226 $as_echo "yes" >&6; } 32227 have_gvc=yes 32228 fi 32229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 32230 $as_echo "" >&6; } 32231 fi 32232 32233 if test "$have_gvc" = 'yes'; then 32234 32235 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h 32236 32237 CFLAGS="$GVC_CFLAGS $CFLAGS" 32238 fi 32239 32240 if test "$have_gvc" = 'yes'; then 32241 GVC_DELEGATE_TRUE= 32242 GVC_DELEGATE_FALSE='#' 32243 else 32244 GVC_DELEGATE_TRUE='#' 32245 GVC_DELEGATE_FALSE= 32246 fi 32247 32248 32249 32250 32251 32252 # 32253 # Check for JBIG delegate library. 32254 # 32255 32256 32257 # Check whether --with-jbig was given. 32258 if test "${with_jbig+set}" = set; then : 32259 withval=$with_jbig; with_jbig=$withval 32260 else 32261 with_jbig='yes' 32262 fi 32263 32264 32265 have_jbig='no' 32266 JBIG_LIBS='' 32267 if test "$with_jbig" != 'no'; then 32268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 32269 $as_echo "-------------------------------------------------------------" >&6; } 32270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5 32271 $as_echo_n "checking for JBIG... " >&6; } 32272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 32273 $as_echo "" >&6; } 32274 failed=0 32275 passed=0 32276 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" 32277 if test "x$ac_cv_header_jbig_h" = xyes; then : 32278 passed=`expr $passed + 1` 32279 else 32280 failed=`expr $failed + 1` 32281 fi 32282 32283 32284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5 32285 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } 32286 if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then : 32287 $as_echo_n "(cached) " >&6 32288 else 32289 ac_check_lib_save_LIBS=$LIBS 32290 LIBS="-ljbig $LIBS" 32291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32292 /* end confdefs.h. */ 32293 32294 /* Override any GCC internal prototype to avoid an error. 32295 Use char because int might match the return type of a GCC 32296 builtin and then its argument prototype would still apply. */ 32297 #ifdef __cplusplus 32298 extern "C" 32299 #endif 32300 char jbg_dec_init (); 32301 int 32302 main () 32303 { 32304 return jbg_dec_init (); 32305 ; 32306 return 0; 32307 } 32308 _ACEOF 32309 if ac_fn_c_try_link "$LINENO"; then : 32310 ac_cv_lib_jbig_jbg_dec_init=yes 32311 else 32312 ac_cv_lib_jbig_jbg_dec_init=no 32313 fi 32314 rm -f core conftest.err conftest.$ac_objext \ 32315 conftest$ac_exeext conftest.$ac_ext 32316 LIBS=$ac_check_lib_save_LIBS 32317 fi 32318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5 32319 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } 32320 if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then : 32321 passed=`expr $passed + 1` 32322 else 32323 failed=`expr $failed + 1` 32324 fi 32325 32326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5 32327 $as_echo_n "checking if JBIG package is complete... " >&6; } 32328 if test $passed -gt 0; then 32329 if test $failed -gt 0; then 32330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 32331 $as_echo "no -- some components failed test" >&6; } 32332 have_jbig='no (failed tests)' 32333 else 32334 JBIG_LIBS='-ljbig' 32335 LIBS="$JBIG_LIBS $LIBS" 32336 32337 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h 32338 32339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32340 $as_echo "yes" >&6; } 32341 have_jbig='yes' 32342 fi 32343 else 32344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32345 $as_echo "no" >&6; } 32346 fi 32347 fi 32348 if test "$have_jbig" = 'yes'; then 32349 JBIG_DELEGATE_TRUE= 32350 JBIG_DELEGATE_FALSE='#' 32351 else 32352 JBIG_DELEGATE_TRUE='#' 32353 JBIG_DELEGATE_FALSE= 32354 fi 32355 32356 32357 32358 32359 # 32360 # Check for JPEG delegate library. 32361 # 32362 32363 # Check whether --with-jpeg was given. 32364 if test "${with_jpeg+set}" = set; then : 32365 withval=$with_jpeg; with_jpeg=$withval 32366 else 32367 with_jpeg='yes' 32368 fi 32369 32370 32371 if test "$with_jpeg" != 'yes'; then 32372 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg " 32373 fi 32374 32375 have_jpeg='no' 32376 JPEG_LIBS='' 32377 if test "$with_jpeg" != 'no'; then 32378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 32379 $as_echo "-------------------------------------------------------------" >&6; } 32380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5 32381 $as_echo_n "checking for JPEG... " >&6; } 32382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 32383 $as_echo "" >&6; } 32384 failed=0 32385 passed=0 32386 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default" 32387 if test "x$ac_cv_header_jconfig_h" = xyes; then : 32388 passed=`expr $passed + 1` 32389 else 32390 failed=`expr $failed + 1` 32391 fi 32392 32393 32394 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" 32395 if test "x$ac_cv_header_jerror_h" = xyes; then : 32396 passed=`expr $passed + 1` 32397 else 32398 failed=`expr $failed + 1` 32399 fi 32400 32401 32402 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default" 32403 if test "x$ac_cv_header_jmorecfg_h" = xyes; then : 32404 passed=`expr $passed + 1` 32405 else 32406 failed=`expr $failed + 1` 32407 fi 32408 32409 32410 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 32411 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 32412 passed=`expr $passed + 1` 32413 else 32414 failed=`expr $failed + 1` 32415 fi 32416 32417 32418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5 32419 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } 32420 if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then : 32421 $as_echo_n "(cached) " >&6 32422 else 32423 ac_check_lib_save_LIBS=$LIBS 32424 LIBS="-ljpeg $LIBS" 32425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32426 /* end confdefs.h. */ 32427 32428 /* Override any GCC internal prototype to avoid an error. 32429 Use char because int might match the return type of a GCC 32430 builtin and then its argument prototype would still apply. */ 32431 #ifdef __cplusplus 32432 extern "C" 32433 #endif 32434 char jpeg_read_header (); 32435 int 32436 main () 32437 { 32438 return jpeg_read_header (); 32439 ; 32440 return 0; 32441 } 32442 _ACEOF 32443 if ac_fn_c_try_link "$LINENO"; then : 32444 ac_cv_lib_jpeg_jpeg_read_header=yes 32445 else 32446 ac_cv_lib_jpeg_jpeg_read_header=no 32447 fi 32448 rm -f core conftest.err conftest.$ac_objext \ 32449 conftest$ac_exeext conftest.$ac_ext 32450 LIBS=$ac_check_lib_save_LIBS 32451 fi 32452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 32453 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } 32454 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then : 32455 passed=`expr $passed + 1` 32456 else 32457 failed=`expr $failed + 1` 32458 fi 32459 32460 32461 # Test for compatible JPEG library 32462 if test "$ac_cv_jpeg_version_ok" != 'yes'; then 32463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5 32464 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; } 32465 if ${ac_cv_jpeg_version_ok+:} false; then : 32466 $as_echo_n "(cached) " >&6 32467 else 32468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32469 /* end confdefs.h. */ 32470 #include <stdio.h> 32471 #include <stdlib.h> 32472 #include <jpeglib.h> 32473 32474 int 32475 main () 32476 { 32477 32478 #if JPEG_LIB_VERSION < 62 32479 #error IJG JPEG library must be version 6b or newer! 32480 #endif 32481 return 0; 32482 32483 ; 32484 return 0; 32485 } 32486 _ACEOF 32487 if ac_fn_c_try_compile "$LINENO"; then : 32488 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1` 32489 else 32490 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1` 32491 fi 32492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32493 fi 32494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5 32495 $as_echo "$ac_cv_jpeg_version_ok" >&6; } 32496 fi 32497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5 32498 $as_echo_n "checking if JPEG package is complete... " >&6; } 32499 if test $passed -gt 0; then 32500 if test $failed -gt 0; then 32501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 32502 $as_echo "no -- some components failed test" >&6; } 32503 have_jpeg='no (failed tests)' 32504 else 32505 JPEG_LIBS='-ljpeg' 32506 LIBS="$JPEG_LIBS $LIBS" 32507 32508 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h 32509 32510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32511 $as_echo "yes" >&6; } 32512 have_jpeg='yes' 32513 fi 32514 else 32515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32516 $as_echo "no" >&6; } 32517 fi 32518 fi 32519 if test "$have_jpeg" = 'yes'; then 32520 JPEG_DELEGATE_TRUE= 32521 JPEG_DELEGATE_FALSE='#' 32522 else 32523 JPEG_DELEGATE_TRUE='#' 32524 JPEG_DELEGATE_FALSE= 32525 fi 32526 32527 32528 32529 32530 # 32531 # Check for LCMS delegate library. 32532 # 32533 32534 # Check whether --with-lcms was given. 32535 if test "${with_lcms+set}" = set; then : 32536 withval=$with_lcms; with_lcms=$withval 32537 else 32538 with_lcms='yes' 32539 fi 32540 32541 if test "$with_lcms" != 'yes' ; then 32542 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms " 32543 fi 32544 32545 have_lcms='no' 32546 LCMS_CFLAGS="" 32547 LCMS_LIBS="" 32548 LCMS_PKG="" 32549 if test "x$with_lcms" = "xyes"; then 32550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 32551 $as_echo "-------------------------------------------------------------" >&6; } 32552 32553 pkg_failed=no 32554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS2" >&5 32555 $as_echo_n "checking for LCMS2... " >&6; } 32556 32557 if test -n "$LCMS2_CFLAGS"; then 32558 pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS" 32559 elif test -n "$PKG_CONFIG"; then 32560 if test -n "$PKG_CONFIG" && \ 32561 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5 32562 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5 32563 ac_status=$? 32564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32565 test $ac_status = 0; }; then 32566 pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2 >= 2.0.0" 2>/dev/null` 32567 test "x$?" != "x0" && pkg_failed=yes 32568 else 32569 pkg_failed=yes 32570 fi 32571 else 32572 pkg_failed=untried 32573 fi 32574 if test -n "$LCMS2_LIBS"; then 32575 pkg_cv_LCMS2_LIBS="$LCMS2_LIBS" 32576 elif test -n "$PKG_CONFIG"; then 32577 if test -n "$PKG_CONFIG" && \ 32578 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5 32579 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5 32580 ac_status=$? 32581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32582 test $ac_status = 0; }; then 32583 pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2 >= 2.0.0" 2>/dev/null` 32584 test "x$?" != "x0" && pkg_failed=yes 32585 else 32586 pkg_failed=yes 32587 fi 32588 else 32589 pkg_failed=untried 32590 fi 32591 32592 32593 32594 if test $pkg_failed = yes; then 32595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32596 $as_echo "no" >&6; } 32597 32598 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32599 _pkg_short_errors_supported=yes 32600 else 32601 _pkg_short_errors_supported=no 32602 fi 32603 if test $_pkg_short_errors_supported = yes; then 32604 LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1` 32605 else 32606 LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1` 32607 fi 32608 # Put the nasty error message in config.log where it belongs 32609 echo "$LCMS2_PKG_ERRORS" >&5 32610 32611 have_lcms=no 32612 elif test $pkg_failed = untried; then 32613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32614 $as_echo "no" >&6; } 32615 have_lcms=no 32616 else 32617 LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS 32618 LCMS2_LIBS=$pkg_cv_LCMS2_LIBS 32619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32620 $as_echo "yes" >&6; } 32621 have_lcms=yes 32622 fi 32623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 32624 $as_echo "" >&6; } 32625 fi 32626 32627 if test "$have_lcms" = 'yes'; then 32628 32629 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h 32630 32631 LCMS_CFLAGS="$LCMS2_CFLAGS" 32632 LCMS_LIBS="$LCMS2_LIBS" 32633 CFLAGS="$LCMS2_CFLAGS $CFLAGS" 32634 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default" 32635 if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then : 32636 have_lcms_header='yes' 32637 fi 32638 32639 32640 if test "$have_lcms_header" = 'yes'; then 32641 32642 $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h 32643 32644 else 32645 32646 $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h 32647 32648 fi 32649 fi 32650 32651 if test "$have_lcms" = 'yes'; then 32652 LCMS_DELEGATE_TRUE= 32653 LCMS_DELEGATE_FALSE='#' 32654 else 32655 LCMS_DELEGATE_TRUE='#' 32656 LCMS_DELEGATE_FALSE= 32657 fi 32658 32659 32660 32661 32662 32663 # 32664 # Check for the OpenJP2 delegate library. 32665 # 32666 32667 # Check whether --with-openjp2 was given. 32668 if test "${with_openjp2+set}" = set; then : 32669 withval=$with_openjp2; with_openjp2=$withval 32670 else 32671 with_openjp2='yes' 32672 fi 32673 32674 32675 if test "$with_openjp2" != 'yes'; then 32676 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 " 32677 fi 32678 32679 have_openjp2='no' 32680 LIBOPENJP2_CFLAGS="" 32681 LIBOPENJP2_LIBS="" 32682 LIBOPENJP2_PKG="" 32683 if test "x$with_openjp2" = "xyes"; then 32684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 32685 $as_echo "-------------------------------------------------------------" >&6; } 32686 32687 pkg_failed=no 32688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5 32689 $as_echo_n "checking for LIBOPENJP2... " >&6; } 32690 32691 if test -n "$LIBOPENJP2_CFLAGS"; then 32692 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS" 32693 elif test -n "$PKG_CONFIG"; then 32694 if test -n "$PKG_CONFIG" && \ 32695 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5 32696 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5 32697 ac_status=$? 32698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32699 test $ac_status = 0; }; then 32700 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null` 32701 test "x$?" != "x0" && pkg_failed=yes 32702 else 32703 pkg_failed=yes 32704 fi 32705 else 32706 pkg_failed=untried 32707 fi 32708 if test -n "$LIBOPENJP2_LIBS"; then 32709 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS" 32710 elif test -n "$PKG_CONFIG"; then 32711 if test -n "$PKG_CONFIG" && \ 32712 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5 32713 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5 32714 ac_status=$? 32715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32716 test $ac_status = 0; }; then 32717 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null` 32718 test "x$?" != "x0" && pkg_failed=yes 32719 else 32720 pkg_failed=yes 32721 fi 32722 else 32723 pkg_failed=untried 32724 fi 32725 32726 32727 32728 if test $pkg_failed = yes; then 32729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32730 $as_echo "no" >&6; } 32731 32732 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32733 _pkg_short_errors_supported=yes 32734 else 32735 _pkg_short_errors_supported=no 32736 fi 32737 if test $_pkg_short_errors_supported = yes; then 32738 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1` 32739 else 32740 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1` 32741 fi 32742 # Put the nasty error message in config.log where it belongs 32743 echo "$LIBOPENJP2_PKG_ERRORS" >&5 32744 32745 have_openjp2=no 32746 elif test $pkg_failed = untried; then 32747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32748 $as_echo "no" >&6; } 32749 have_openjp2=no 32750 else 32751 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS 32752 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS 32753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32754 $as_echo "yes" >&6; } 32755 have_openjp2=yes 32756 fi 32757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 32758 $as_echo "" >&6; } 32759 fi 32760 32761 if test "$have_openjp2" = 'yes'; then 32762 32763 $as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h 32764 32765 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS" 32766 fi 32767 32768 if test "$have_openjp2" = 'yes'; then 32769 LIBOPENJP2_DELEGATE_TRUE= 32770 LIBOPENJP2_DELEGATE_FALSE='#' 32771 else 32772 LIBOPENJP2_DELEGATE_TRUE='#' 32773 LIBOPENJP2_DELEGATE_FALSE= 32774 fi 32775 32776 32777 32778 32779 32780 32781 # 32782 # Check for the LQR (Liquid Rescale) delegate library. 32783 # 32784 32785 # Check whether --with-lqr was given. 32786 if test "${with_lqr+set}" = set; then : 32787 withval=$with_lqr; with_lqr=$withval 32788 else 32789 with_lqr='yes' 32790 fi 32791 32792 32793 if test "$with_lqr" != 'yes'; then 32794 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr " 32795 fi 32796 32797 have_lqr='no' 32798 LQR_CFLAGS="" 32799 LQR_LIBS="" 32800 LQR_PKG="" 32801 if test "x$with_lqr" = "xyes"; then 32802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 32803 $as_echo "-------------------------------------------------------------" >&6; } 32804 32805 pkg_failed=no 32806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5 32807 $as_echo_n "checking for LQR... " >&6; } 32808 32809 if test -n "$LQR_CFLAGS"; then 32810 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS" 32811 elif test -n "$PKG_CONFIG"; then 32812 if test -n "$PKG_CONFIG" && \ 32813 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 32814 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 32815 ac_status=$? 32816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32817 test $ac_status = 0; }; then 32818 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null` 32819 test "x$?" != "x0" && pkg_failed=yes 32820 else 32821 pkg_failed=yes 32822 fi 32823 else 32824 pkg_failed=untried 32825 fi 32826 if test -n "$LQR_LIBS"; then 32827 pkg_cv_LQR_LIBS="$LQR_LIBS" 32828 elif test -n "$PKG_CONFIG"; then 32829 if test -n "$PKG_CONFIG" && \ 32830 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 32831 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 32832 ac_status=$? 32833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32834 test $ac_status = 0; }; then 32835 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null` 32836 test "x$?" != "x0" && pkg_failed=yes 32837 else 32838 pkg_failed=yes 32839 fi 32840 else 32841 pkg_failed=untried 32842 fi 32843 32844 32845 32846 if test $pkg_failed = yes; then 32847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32848 $as_echo "no" >&6; } 32849 32850 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32851 _pkg_short_errors_supported=yes 32852 else 32853 _pkg_short_errors_supported=no 32854 fi 32855 if test $_pkg_short_errors_supported = yes; then 32856 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1` 32857 else 32858 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1` 32859 fi 32860 # Put the nasty error message in config.log where it belongs 32861 echo "$LQR_PKG_ERRORS" >&5 32862 32863 have_lqr=no 32864 elif test $pkg_failed = untried; then 32865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32866 $as_echo "no" >&6; } 32867 have_lqr=no 32868 else 32869 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS 32870 LQR_LIBS=$pkg_cv_LQR_LIBS 32871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32872 $as_echo "yes" >&6; } 32873 have_lqr=yes 32874 fi 32875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 32876 $as_echo "" >&6; } 32877 fi 32878 32879 if test "$have_lqr" = 'yes'; then 32880 32881 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h 32882 32883 CFLAGS="$LQR_CFLAGS $CFLAGS" 32884 fi 32885 32886 if test "$have_lqr" = 'yes'; then 32887 LQR_DELEGATE_TRUE= 32888 LQR_DELEGATE_FALSE='#' 32889 else 32890 LQR_DELEGATE_TRUE='#' 32891 LQR_DELEGATE_FALSE= 32892 fi 32893 32894 32895 32896 32897 32898 # Disable LZMA (lzma library) 32899 32900 # Check whether --with-lzma was given. 32901 if test "${with_lzma+set}" = set; then : 32902 withval=$with_lzma; with_lzma=$withval 32903 else 32904 with_lzma='yes' 32905 fi 32906 32907 if test "$with_lzma" != 'yes' ; then 32908 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma " 32909 fi 32910 32911 LZMA_PKG="" 32912 if test "x$with_lzma" = "xyes"; then 32913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 32914 $as_echo "-------------------------------------------------------------" >&6; } 32915 32916 pkg_failed=no 32917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5 32918 $as_echo_n "checking for LZMA... " >&6; } 32919 32920 if test -n "$LZMA_CFLAGS"; then 32921 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS" 32922 elif test -n "$PKG_CONFIG"; then 32923 if test -n "$PKG_CONFIG" && \ 32924 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5 32925 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5 32926 ac_status=$? 32927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32928 test $ac_status = 0; }; then 32929 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null` 32930 test "x$?" != "x0" && pkg_failed=yes 32931 else 32932 pkg_failed=yes 32933 fi 32934 else 32935 pkg_failed=untried 32936 fi 32937 if test -n "$LZMA_LIBS"; then 32938 pkg_cv_LZMA_LIBS="$LZMA_LIBS" 32939 elif test -n "$PKG_CONFIG"; then 32940 if test -n "$PKG_CONFIG" && \ 32941 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5 32942 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5 32943 ac_status=$? 32944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32945 test $ac_status = 0; }; then 32946 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null` 32947 test "x$?" != "x0" && pkg_failed=yes 32948 else 32949 pkg_failed=yes 32950 fi 32951 else 32952 pkg_failed=untried 32953 fi 32954 32955 32956 32957 if test $pkg_failed = yes; then 32958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32959 $as_echo "no" >&6; } 32960 32961 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32962 _pkg_short_errors_supported=yes 32963 else 32964 _pkg_short_errors_supported=no 32965 fi 32966 if test $_pkg_short_errors_supported = yes; then 32967 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1` 32968 else 32969 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1` 32970 fi 32971 # Put the nasty error message in config.log where it belongs 32972 echo "$LZMA_PKG_ERRORS" >&5 32973 32974 have_lzma=no 32975 elif test $pkg_failed = untried; then 32976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32977 $as_echo "no" >&6; } 32978 have_lzma=no 32979 else 32980 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS 32981 LZMA_LIBS=$pkg_cv_LZMA_LIBS 32982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32983 $as_echo "yes" >&6; } 32984 have_lzma=yes 32985 fi 32986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 32987 $as_echo "" >&6; } 32988 fi 32989 32990 if test "$have_lzma" = 'yes'; then 32991 32992 $as_echo "#define LZMA_DELEGATE 1" >>confdefs.h 32993 32994 CFLAGS="$LZMA_CFLAGS $CFLAGS" 32995 fi 32996 32997 if test "$have_lzma" = 'yes'; then 32998 LZMA_DELEGATE_TRUE= 32999 LZMA_DELEGATE_FALSE='#' 33000 else 33001 LZMA_DELEGATE_TRUE='#' 33002 LZMA_DELEGATE_FALSE= 33003 fi 33004 33005 33006 33007 33008 33009 # 33010 # Check for the OpenEXR delegate library. 33011 # 33012 33013 # Check whether --with-openexr was given. 33014 if test "${with_openexr+set}" = set; then : 33015 withval=$with_openexr; with_openexr=$withval 33016 else 33017 with_openexr='yes' 33018 fi 33019 33020 33021 if test "$with_openexr" != 'yes'; then 33022 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr " 33023 fi 33024 33025 have_openexr='no' 33026 OPENEXR_CFLAGS="" 33027 OPENEXR_LIBS="" 33028 OPENEXR_PKG="" 33029 if test "x$with_openexr" = "xyes"; then 33030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 33031 $as_echo "-------------------------------------------------------------" >&6; } 33032 33033 pkg_failed=no 33034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5 33035 $as_echo_n "checking for OPENEXR... " >&6; } 33036 33037 if test -n "$OPENEXR_CFLAGS"; then 33038 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS" 33039 elif test -n "$PKG_CONFIG"; then 33040 if test -n "$PKG_CONFIG" && \ 33041 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 33042 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 33043 ac_status=$? 33044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33045 test $ac_status = 0; }; then 33046 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null` 33047 test "x$?" != "x0" && pkg_failed=yes 33048 else 33049 pkg_failed=yes 33050 fi 33051 else 33052 pkg_failed=untried 33053 fi 33054 if test -n "$OPENEXR_LIBS"; then 33055 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS" 33056 elif test -n "$PKG_CONFIG"; then 33057 if test -n "$PKG_CONFIG" && \ 33058 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 33059 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 33060 ac_status=$? 33061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33062 test $ac_status = 0; }; then 33063 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null` 33064 test "x$?" != "x0" && pkg_failed=yes 33065 else 33066 pkg_failed=yes 33067 fi 33068 else 33069 pkg_failed=untried 33070 fi 33071 33072 33073 33074 if test $pkg_failed = yes; then 33075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33076 $as_echo "no" >&6; } 33077 33078 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33079 _pkg_short_errors_supported=yes 33080 else 33081 _pkg_short_errors_supported=no 33082 fi 33083 if test $_pkg_short_errors_supported = yes; then 33084 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1` 33085 else 33086 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1` 33087 fi 33088 # Put the nasty error message in config.log where it belongs 33089 echo "$OPENEXR_PKG_ERRORS" >&5 33090 33091 have_openexr=no 33092 elif test $pkg_failed = untried; then 33093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33094 $as_echo "no" >&6; } 33095 have_openexr=no 33096 else 33097 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS 33098 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS 33099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33100 $as_echo "yes" >&6; } 33101 have_openexr=yes 33102 fi 33103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 33104 $as_echo "" >&6; } 33105 fi 33106 33107 if test "$have_openexr" = 'yes'; then 33108 33109 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h 33110 33111 CFLAGS="$OPENEXR_CFLAGS $CFLAGS" 33112 fi 33113 33114 if test "$have_openexr" = 'yes'; then 33115 OPENEXR_DELEGATE_TRUE= 33116 OPENEXR_DELEGATE_FALSE='#' 33117 else 33118 OPENEXR_DELEGATE_TRUE='#' 33119 OPENEXR_DELEGATE_FALSE= 33120 fi 33121 33122 33123 33124 33125 33126 # 33127 # Check for PANGO delegate library. 33128 # 33129 33130 # Check whether --with-pango was given. 33131 if test "${with_pango+set}" = set; then : 33132 withval=$with_pango; with_pango=$withval 33133 else 33134 with_pango='yes' 33135 fi 33136 33137 33138 if test "$with_pango" != 'yes'; then 33139 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango " 33140 fi 33141 33142 have_pango='no' 33143 have_pangocairo='no' 33144 PANGO_CFLAGS="" 33145 PANGO_LIBS="" 33146 PANGO_PKG="" 33147 if test "x$with_pango" = "xyes"; then 33148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 33149 $as_echo "-------------------------------------------------------------" >&6; } 33150 33151 pkg_failed=no 33152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5 33153 $as_echo_n "checking for PANGO... " >&6; } 33154 33155 if test -n "$PANGO_CFLAGS"; then 33156 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS" 33157 elif test -n "$PKG_CONFIG"; then 33158 if test -n "$PKG_CONFIG" && \ 33159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5 33160 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5 33161 ac_status=$? 33162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33163 test $ac_status = 0; }; then 33164 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null` 33165 test "x$?" != "x0" && pkg_failed=yes 33166 else 33167 pkg_failed=yes 33168 fi 33169 else 33170 pkg_failed=untried 33171 fi 33172 if test -n "$PANGO_LIBS"; then 33173 pkg_cv_PANGO_LIBS="$PANGO_LIBS" 33174 elif test -n "$PKG_CONFIG"; then 33175 if test -n "$PKG_CONFIG" && \ 33176 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5 33177 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5 33178 ac_status=$? 33179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33180 test $ac_status = 0; }; then 33181 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null` 33182 test "x$?" != "x0" && pkg_failed=yes 33183 else 33184 pkg_failed=yes 33185 fi 33186 else 33187 pkg_failed=untried 33188 fi 33189 33190 33191 33192 if test $pkg_failed = yes; then 33193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33194 $as_echo "no" >&6; } 33195 33196 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33197 _pkg_short_errors_supported=yes 33198 else 33199 _pkg_short_errors_supported=no 33200 fi 33201 if test $_pkg_short_errors_supported = yes; then 33202 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1` 33203 else 33204 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1` 33205 fi 33206 # Put the nasty error message in config.log where it belongs 33207 echo "$PANGO_PKG_ERRORS" >&5 33208 33209 have_pangocairo=no 33210 elif test $pkg_failed = untried; then 33211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33212 $as_echo "no" >&6; } 33213 have_pangocairo=no 33214 else 33215 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS 33216 PANGO_LIBS=$pkg_cv_PANGO_LIBS 33217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33218 $as_echo "yes" >&6; } 33219 have_pangocairo=yes 33220 fi 33221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 33222 $as_echo "" >&6; } 33223 33224 pkg_failed=no 33225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5 33226 $as_echo_n "checking for PANGO... " >&6; } 33227 33228 if test -n "$PANGO_CFLAGS"; then 33229 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS" 33230 elif test -n "$PKG_CONFIG"; then 33231 if test -n "$PKG_CONFIG" && \ 33232 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5 33233 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5 33234 ac_status=$? 33235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33236 test $ac_status = 0; }; then 33237 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null` 33238 test "x$?" != "x0" && pkg_failed=yes 33239 else 33240 pkg_failed=yes 33241 fi 33242 else 33243 pkg_failed=untried 33244 fi 33245 if test -n "$PANGO_LIBS"; then 33246 pkg_cv_PANGO_LIBS="$PANGO_LIBS" 33247 elif test -n "$PKG_CONFIG"; then 33248 if test -n "$PKG_CONFIG" && \ 33249 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5 33250 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5 33251 ac_status=$? 33252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33253 test $ac_status = 0; }; then 33254 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null` 33255 test "x$?" != "x0" && pkg_failed=yes 33256 else 33257 pkg_failed=yes 33258 fi 33259 else 33260 pkg_failed=untried 33261 fi 33262 33263 33264 33265 if test $pkg_failed = yes; then 33266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33267 $as_echo "no" >&6; } 33268 33269 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33270 _pkg_short_errors_supported=yes 33271 else 33272 _pkg_short_errors_supported=no 33273 fi 33274 if test $_pkg_short_errors_supported = yes; then 33275 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.28.1" 2>&1` 33276 else 33277 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.28.1" 2>&1` 33278 fi 33279 # Put the nasty error message in config.log where it belongs 33280 echo "$PANGO_PKG_ERRORS" >&5 33281 33282 have_pango=no 33283 elif test $pkg_failed = untried; then 33284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33285 $as_echo "no" >&6; } 33286 have_pango=no 33287 else 33288 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS 33289 PANGO_LIBS=$pkg_cv_PANGO_LIBS 33290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33291 $as_echo "yes" >&6; } 33292 have_pango=yes 33293 fi 33294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 33295 $as_echo "" >&6; } 33296 fi 33297 33298 if test "$have_pango" = 'yes'; then 33299 33300 $as_echo "#define PANGO_DELEGATE 1" >>confdefs.h 33301 33302 CFLAGS="$PANGO_CFLAGS $CFLAGS" 33303 fi 33304 33305 if test "$have_pangocairo" = 'yes'; then 33306 33307 $as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h 33308 33309 CFLAGS="$PANGOCAIRO_CFLAGS $CFLAGS" 33310 fi 33311 33312 if test "$have_pango" = 'yes'; then 33313 PANGO_DELEGATE_TRUE= 33314 PANGO_DELEGATE_FALSE='#' 33315 else 33316 PANGO_DELEGATE_TRUE='#' 33317 PANGO_DELEGATE_FALSE= 33318 fi 33319 33320 if test "$have_pangocairo" = 'yes'; then 33321 PANGOCAIRO_DELEGATE_TRUE= 33322 PANGOCAIRO_DELEGATE_FALSE='#' 33323 else 33324 PANGOCAIRO_DELEGATE_TRUE='#' 33325 PANGOCAIRO_DELEGATE_FALSE= 33326 fi 33327 33328 33329 33330 33331 33332 # 33333 # Check for PNG delegate library. 33334 # 33335 33336 # Check whether --with-png was given. 33337 if test "${with_png+set}" = set; then : 33338 withval=$with_png; with_png=$withval 33339 else 33340 with_png='yes' 33341 fi 33342 33343 33344 if test "$with_png" != 'yes'; then 33345 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png " 33346 fi 33347 33348 have_png='no' 33349 PNG_CFLAGS="" 33350 PNG_LIBS="" 33351 PNG_PKG="" 33352 if test "x$with_png" = "xyes"; then 33353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 33354 $as_echo "-------------------------------------------------------------" >&6; } 33355 33356 pkg_failed=no 33357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 33358 $as_echo_n "checking for PNG... " >&6; } 33359 33360 if test -n "$PNG_CFLAGS"; then 33361 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 33362 elif test -n "$PKG_CONFIG"; then 33363 if test -n "$PKG_CONFIG" && \ 33364 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5 33365 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5 33366 ac_status=$? 33367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33368 test $ac_status = 0; }; then 33369 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.0.0" 2>/dev/null` 33370 test "x$?" != "x0" && pkg_failed=yes 33371 else 33372 pkg_failed=yes 33373 fi 33374 else 33375 pkg_failed=untried 33376 fi 33377 if test -n "$PNG_LIBS"; then 33378 pkg_cv_PNG_LIBS="$PNG_LIBS" 33379 elif test -n "$PKG_CONFIG"; then 33380 if test -n "$PKG_CONFIG" && \ 33381 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5 33382 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5 33383 ac_status=$? 33384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33385 test $ac_status = 0; }; then 33386 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.0.0" 2>/dev/null` 33387 test "x$?" != "x0" && pkg_failed=yes 33388 else 33389 pkg_failed=yes 33390 fi 33391 else 33392 pkg_failed=untried 33393 fi 33394 33395 33396 33397 if test $pkg_failed = yes; then 33398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33399 $as_echo "no" >&6; } 33400 33401 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33402 _pkg_short_errors_supported=yes 33403 else 33404 _pkg_short_errors_supported=no 33405 fi 33406 if test $_pkg_short_errors_supported = yes; then 33407 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1` 33408 else 33409 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1` 33410 fi 33411 # Put the nasty error message in config.log where it belongs 33412 echo "$PNG_PKG_ERRORS" >&5 33413 33414 have_png=no 33415 elif test $pkg_failed = untried; then 33416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33417 $as_echo "no" >&6; } 33418 have_png=no 33419 else 33420 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 33421 PNG_LIBS=$pkg_cv_PNG_LIBS 33422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33423 $as_echo "yes" >&6; } 33424 have_png=yes 33425 fi 33426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 33427 $as_echo "" >&6; } 33428 fi 33429 33430 if test "$have_png" = 'yes'; then 33431 33432 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h 33433 33434 CFLAGS="$PNG_CFLAGS $CFLAGS" 33435 fi 33436 33437 if test "$have_png" = 'yes'; then 33438 PNG_DELEGATE_TRUE= 33439 PNG_DELEGATE_FALSE='#' 33440 else 33441 PNG_DELEGATE_TRUE='#' 33442 PNG_DELEGATE_FALSE= 33443 fi 33444 33445 33446 33447 33448 33449 # 33450 # Check for RSVG delegate library. 33451 # 33452 33453 # Check whether --with-rsvg was given. 33454 if test "${with_rsvg+set}" = set; then : 33455 withval=$with_rsvg; with_rsvg=$withval 33456 else 33457 with_rsvg='no' 33458 fi 33459 33460 33461 if test "$with_rsvg" != 'yes'; then 33462 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg " 33463 fi 33464 33465 have_rsvg='no' 33466 have_cairo='no' 33467 RSVG_CFLAGS="" 33468 RSVG_LIBS="" 33469 RSVG_PKG="" 33470 if test "x$with_rsvg" = "xyes"; then 33471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 33472 $as_echo "-------------------------------------------------------------" >&6; } 33473 33474 pkg_failed=no 33475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5 33476 $as_echo_n "checking for RSVG... " >&6; } 33477 33478 if test -n "$RSVG_CFLAGS"; then 33479 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS" 33480 elif test -n "$PKG_CONFIG"; then 33481 if test -n "$PKG_CONFIG" && \ 33482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 33483 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 33484 ac_status=$? 33485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33486 test $ac_status = 0; }; then 33487 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null` 33488 test "x$?" != "x0" && pkg_failed=yes 33489 else 33490 pkg_failed=yes 33491 fi 33492 else 33493 pkg_failed=untried 33494 fi 33495 if test -n "$RSVG_LIBS"; then 33496 pkg_cv_RSVG_LIBS="$RSVG_LIBS" 33497 elif test -n "$PKG_CONFIG"; then 33498 if test -n "$PKG_CONFIG" && \ 33499 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 33500 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 33501 ac_status=$? 33502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33503 test $ac_status = 0; }; then 33504 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null` 33505 test "x$?" != "x0" && pkg_failed=yes 33506 else 33507 pkg_failed=yes 33508 fi 33509 else 33510 pkg_failed=untried 33511 fi 33512 33513 33514 33515 if test $pkg_failed = yes; then 33516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33517 $as_echo "no" >&6; } 33518 33519 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33520 _pkg_short_errors_supported=yes 33521 else 33522 _pkg_short_errors_supported=no 33523 fi 33524 if test $_pkg_short_errors_supported = yes; then 33525 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1` 33526 else 33527 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1` 33528 fi 33529 # Put the nasty error message in config.log where it belongs 33530 echo "$RSVG_PKG_ERRORS" >&5 33531 33532 have_rsvg=no 33533 elif test $pkg_failed = untried; then 33534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33535 $as_echo "no" >&6; } 33536 have_rsvg=no 33537 else 33538 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS 33539 RSVG_LIBS=$pkg_cv_RSVG_LIBS 33540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33541 $as_echo "yes" >&6; } 33542 have_rsvg=yes 33543 fi 33544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 33545 $as_echo "" >&6; } 33546 33547 pkg_failed=no 33548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5 33549 $as_echo_n "checking for CAIRO_SVG... " >&6; } 33550 33551 if test -n "$CAIRO_SVG_CFLAGS"; then 33552 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS" 33553 elif test -n "$PKG_CONFIG"; then 33554 if test -n "$PKG_CONFIG" && \ 33555 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 33556 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 33557 ac_status=$? 33558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33559 test $ac_status = 0; }; then 33560 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null` 33561 test "x$?" != "x0" && pkg_failed=yes 33562 else 33563 pkg_failed=yes 33564 fi 33565 else 33566 pkg_failed=untried 33567 fi 33568 if test -n "$CAIRO_SVG_LIBS"; then 33569 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS" 33570 elif test -n "$PKG_CONFIG"; then 33571 if test -n "$PKG_CONFIG" && \ 33572 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 33573 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 33574 ac_status=$? 33575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33576 test $ac_status = 0; }; then 33577 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null` 33578 test "x$?" != "x0" && pkg_failed=yes 33579 else 33580 pkg_failed=yes 33581 fi 33582 else 33583 pkg_failed=untried 33584 fi 33585 33586 33587 33588 if test $pkg_failed = yes; then 33589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33590 $as_echo "no" >&6; } 33591 33592 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33593 _pkg_short_errors_supported=yes 33594 else 33595 _pkg_short_errors_supported=no 33596 fi 33597 if test $_pkg_short_errors_supported = yes; then 33598 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-svg" 2>&1` 33599 else 33600 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-svg" 2>&1` 33601 fi 33602 # Put the nasty error message in config.log where it belongs 33603 echo "$CAIRO_SVG_PKG_ERRORS" >&5 33604 33605 have_cairo=no 33606 elif test $pkg_failed = untried; then 33607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33608 $as_echo "no" >&6; } 33609 have_cairo=no 33610 else 33611 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS 33612 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS 33613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33614 $as_echo "yes" >&6; } 33615 have_cairo=yes 33616 fi 33617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 33618 $as_echo "" >&6; } 33619 fi 33620 33621 if test "$have_rsvg" = 'yes'; then 33622 33623 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h 33624 33625 CFLAGS="$RSVG_CFLAGS $CFLAGS" 33626 fi 33627 33628 if test "$have_cairo" = 'yes'; then 33629 33630 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h 33631 33632 CFLAGS="$CAIRO_SVG_CFLAGS $CFLAGS" 33633 fi 33634 33635 if test "$have_rsvg" = 'yes'; then 33636 RSVG_DELEGATE_TRUE= 33637 RSVG_DELEGATE_FALSE='#' 33638 else 33639 RSVG_DELEGATE_TRUE='#' 33640 RSVG_DELEGATE_FALSE= 33641 fi 33642 33643 if test "$have_cairo" = 'yes'; then 33644 CAIRO_DELEGATE_TRUE= 33645 CAIRO_DELEGATE_FALSE='#' 33646 else 33647 CAIRO_DELEGATE_TRUE='#' 33648 CAIRO_DELEGATE_FALSE= 33649 fi 33650 33651 33652 33653 33654 33655 # 33656 # Check for TIFF delegate library. 33657 # 33658 33659 # Check whether --with-tiff was given. 33660 if test "${with_tiff+set}" = set; then : 33661 withval=$with_tiff; with_tiff=$withval 33662 else 33663 with_tiff='yes' 33664 fi 33665 33666 33667 if test "$with_tiff" != 'yes'; then 33668 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff " 33669 fi 33670 33671 have_tiff='no' 33672 TIFF_LIBS='' 33673 if test "$with_tiff" != 'no'; then 33674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 33675 $as_echo "-------------------------------------------------------------" >&6; } 33676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5 33677 $as_echo_n "checking for TIFF... " >&6; } 33678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 33679 $as_echo "" >&6; } 33680 failed=0 33681 passed=0 33682 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default" 33683 if test "x$ac_cv_header_tiff_h" = xyes; then : 33684 passed=`expr $passed + 1` 33685 else 33686 failed=`expr $failed + 1` 33687 fi 33688 33689 33690 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" 33691 if test "x$ac_cv_header_tiffio_h" = xyes; then : 33692 passed=`expr $passed + 1` 33693 else 33694 failed=`expr $failed + 1` 33695 fi 33696 33697 33698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 33699 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } 33700 if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : 33701 $as_echo_n "(cached) " >&6 33702 else 33703 ac_check_lib_save_LIBS=$LIBS 33704 LIBS="-ltiff $LIBS" 33705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33706 /* end confdefs.h. */ 33707 33708 /* Override any GCC internal prototype to avoid an error. 33709 Use char because int might match the return type of a GCC 33710 builtin and then its argument prototype would still apply. */ 33711 #ifdef __cplusplus 33712 extern "C" 33713 #endif 33714 char TIFFOpen (); 33715 int 33716 main () 33717 { 33718 return TIFFOpen (); 33719 ; 33720 return 0; 33721 } 33722 _ACEOF 33723 if ac_fn_c_try_link "$LINENO"; then : 33724 ac_cv_lib_tiff_TIFFOpen=yes 33725 else 33726 ac_cv_lib_tiff_TIFFOpen=no 33727 fi 33728 rm -f core conftest.err conftest.$ac_objext \ 33729 conftest$ac_exeext conftest.$ac_ext 33730 LIBS=$ac_check_lib_save_LIBS 33731 fi 33732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 33733 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } 33734 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : 33735 passed=`expr $passed + 1` 33736 else 33737 failed=`expr $failed + 1` 33738 fi 33739 33740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5 33741 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; } 33742 if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then : 33743 $as_echo_n "(cached) " >&6 33744 else 33745 ac_check_lib_save_LIBS=$LIBS 33746 LIBS="-ltiff $LIBS" 33747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33748 /* end confdefs.h. */ 33749 33750 /* Override any GCC internal prototype to avoid an error. 33751 Use char because int might match the return type of a GCC 33752 builtin and then its argument prototype would still apply. */ 33753 #ifdef __cplusplus 33754 extern "C" 33755 #endif 33756 char TIFFClientOpen (); 33757 int 33758 main () 33759 { 33760 return TIFFClientOpen (); 33761 ; 33762 return 0; 33763 } 33764 _ACEOF 33765 if ac_fn_c_try_link "$LINENO"; then : 33766 ac_cv_lib_tiff_TIFFClientOpen=yes 33767 else 33768 ac_cv_lib_tiff_TIFFClientOpen=no 33769 fi 33770 rm -f core conftest.err conftest.$ac_objext \ 33771 conftest$ac_exeext conftest.$ac_ext 33772 LIBS=$ac_check_lib_save_LIBS 33773 fi 33774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5 33775 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; } 33776 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then : 33777 passed=`expr $passed + 1` 33778 else 33779 failed=`expr $failed + 1` 33780 fi 33781 33782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5 33783 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; } 33784 if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then : 33785 $as_echo_n "(cached) " >&6 33786 else 33787 ac_check_lib_save_LIBS=$LIBS 33788 LIBS="-ltiff $LIBS" 33789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33790 /* end confdefs.h. */ 33791 33792 /* Override any GCC internal prototype to avoid an error. 33793 Use char because int might match the return type of a GCC 33794 builtin and then its argument prototype would still apply. */ 33795 #ifdef __cplusplus 33796 extern "C" 33797 #endif 33798 char TIFFIsByteSwapped (); 33799 int 33800 main () 33801 { 33802 return TIFFIsByteSwapped (); 33803 ; 33804 return 0; 33805 } 33806 _ACEOF 33807 if ac_fn_c_try_link "$LINENO"; then : 33808 ac_cv_lib_tiff_TIFFIsByteSwapped=yes 33809 else 33810 ac_cv_lib_tiff_TIFFIsByteSwapped=no 33811 fi 33812 rm -f core conftest.err conftest.$ac_objext \ 33813 conftest$ac_exeext conftest.$ac_ext 33814 LIBS=$ac_check_lib_save_LIBS 33815 fi 33816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5 33817 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; } 33818 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then : 33819 passed=`expr $passed + 1` 33820 else 33821 failed=`expr $failed + 1` 33822 fi 33823 33824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5 33825 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; } 33826 if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then : 33827 $as_echo_n "(cached) " >&6 33828 else 33829 ac_check_lib_save_LIBS=$LIBS 33830 LIBS="-ltiff $LIBS" 33831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33832 /* end confdefs.h. */ 33833 33834 /* Override any GCC internal prototype to avoid an error. 33835 Use char because int might match the return type of a GCC 33836 builtin and then its argument prototype would still apply. */ 33837 #ifdef __cplusplus 33838 extern "C" 33839 #endif 33840 char TIFFReadRGBATile (); 33841 int 33842 main () 33843 { 33844 return TIFFReadRGBATile (); 33845 ; 33846 return 0; 33847 } 33848 _ACEOF 33849 if ac_fn_c_try_link "$LINENO"; then : 33850 ac_cv_lib_tiff_TIFFReadRGBATile=yes 33851 else 33852 ac_cv_lib_tiff_TIFFReadRGBATile=no 33853 fi 33854 rm -f core conftest.err conftest.$ac_objext \ 33855 conftest$ac_exeext conftest.$ac_ext 33856 LIBS=$ac_check_lib_save_LIBS 33857 fi 33858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5 33859 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; } 33860 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then : 33861 passed=`expr $passed + 1` 33862 else 33863 failed=`expr $failed + 1` 33864 fi 33865 33866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5 33867 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; } 33868 if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then : 33869 $as_echo_n "(cached) " >&6 33870 else 33871 ac_check_lib_save_LIBS=$LIBS 33872 LIBS="-ltiff $LIBS" 33873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33874 /* end confdefs.h. */ 33875 33876 /* Override any GCC internal prototype to avoid an error. 33877 Use char because int might match the return type of a GCC 33878 builtin and then its argument prototype would still apply. */ 33879 #ifdef __cplusplus 33880 extern "C" 33881 #endif 33882 char TIFFReadRGBAStrip (); 33883 int 33884 main () 33885 { 33886 return TIFFReadRGBAStrip (); 33887 ; 33888 return 0; 33889 } 33890 _ACEOF 33891 if ac_fn_c_try_link "$LINENO"; then : 33892 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes 33893 else 33894 ac_cv_lib_tiff_TIFFReadRGBAStrip=no 33895 fi 33896 rm -f core conftest.err conftest.$ac_objext \ 33897 conftest$ac_exeext conftest.$ac_ext 33898 LIBS=$ac_check_lib_save_LIBS 33899 fi 33900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5 33901 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; } 33902 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then : 33903 passed=`expr $passed + 1` 33904 else 33905 failed=`expr $failed + 1` 33906 fi 33907 33908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5 33909 $as_echo_n "checking if TIFF package is complete... " >&6; } 33910 if test $passed -gt 0; then 33911 if test $failed -gt 0; then 33912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 33913 $as_echo "no -- some components failed test" >&6; } 33914 have_tiff='no (failed tests)' 33915 else 33916 TIFF_LIBS='-ltiff' 33917 LIBS="$TIFF_LIBS $LIBS" 33918 33919 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h 33920 33921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33922 $as_echo "yes" >&6; } 33923 have_tiff='yes' 33924 for ac_header in tiffconf.h 33925 do : 33926 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default" 33927 if test "x$ac_cv_header_tiffconf_h" = xyes; then : 33928 cat >>confdefs.h <<_ACEOF 33929 #define HAVE_TIFFCONF_H 1 33930 _ACEOF 33931 33932 fi 33933 33934 done 33935 33936 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \ 33937 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \ 33938 TIFFSetTagExtender TIFFSetWarningHandlerExt \ 33939 TIFFSwabArrayOfTriples 33940 do : 33941 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 33942 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 33943 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 33944 cat >>confdefs.h <<_ACEOF 33945 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 33946 _ACEOF 33947 33948 fi 33949 done 33950 33951 fi 33952 else 33953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33954 $as_echo "no" >&6; } 33955 fi 33956 fi 33957 if test "$have_tiff" = 'yes'; then 33958 TIFF_DELEGATE_TRUE= 33959 TIFF_DELEGATE_FALSE='#' 33960 else 33961 TIFF_DELEGATE_TRUE='#' 33962 TIFF_DELEGATE_FALSE= 33963 fi 33964 33965 33966 33967 33968 # 33969 # Check for WEBP delegate library. 33970 # 33971 33972 # Check whether --with-webp was given. 33973 if test "${with_webp+set}" = set; then : 33974 withval=$with_webp; with_webp=$withval 33975 else 33976 with_webp='yes' 33977 fi 33978 33979 33980 if test "$with_webp" != 'yes'; then 33981 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp " 33982 fi 33983 33984 have_webp='no' 33985 WEBP_LIBS='' 33986 if test "$with_webp" != 'no'; then 33987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 33988 $as_echo "-------------------------------------------------------------" >&6; } 33989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5 33990 $as_echo_n "checking for WEBP... " >&6; } 33991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 33992 $as_echo "" >&6; } 33993 failed=0 33994 passed=0 33995 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default" 33996 if test "x$ac_cv_header_webp_decode_h" = xyes; then : 33997 passed=`expr $passed + 1` 33998 else 33999 failed=`expr $failed + 1` 34000 fi 34001 34002 34003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5 34004 $as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; } 34005 if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then : 34006 $as_echo_n "(cached) " >&6 34007 else 34008 ac_check_lib_save_LIBS=$LIBS 34009 LIBS="-lwebp $LIBS" 34010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34011 /* end confdefs.h. */ 34012 34013 /* Override any GCC internal prototype to avoid an error. 34014 Use char because int might match the return type of a GCC 34015 builtin and then its argument prototype would still apply. */ 34016 #ifdef __cplusplus 34017 extern "C" 34018 #endif 34019 char WebPPictureInitInternal (); 34020 int 34021 main () 34022 { 34023 return WebPPictureInitInternal (); 34024 ; 34025 return 0; 34026 } 34027 _ACEOF 34028 if ac_fn_c_try_link "$LINENO"; then : 34029 ac_cv_lib_webp_WebPPictureInitInternal=yes 34030 else 34031 ac_cv_lib_webp_WebPPictureInitInternal=no 34032 fi 34033 rm -f core conftest.err conftest.$ac_objext \ 34034 conftest$ac_exeext conftest.$ac_ext 34035 LIBS=$ac_check_lib_save_LIBS 34036 fi 34037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5 34038 $as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; } 34039 if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then : 34040 passed=`expr $passed + 1` 34041 else 34042 failed=`expr $failed + 1` 34043 fi 34044 34045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5 34046 $as_echo_n "checking if WEBP package is complete... " >&6; } 34047 if test $passed -gt 0; then 34048 if test $failed -gt 0; then 34049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 34050 $as_echo "no -- some components failed test" >&6; } 34051 have_webp='no (failed tests)' 34052 else 34053 WEBP_LIBS='-lwebp' 34054 LIBS="$WEBP_LIBS $LIBS" 34055 34056 $as_echo "#define WEBP_DELEGATE 1" >>confdefs.h 34057 34058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34059 $as_echo "yes" >&6; } 34060 have_webp='yes' 34061 fi 34062 else 34063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34064 $as_echo "no" >&6; } 34065 fi 34066 fi 34067 if test "$have_webp" = 'yes'; then 34068 WEBP_DELEGATE_TRUE= 34069 WEBP_DELEGATE_FALSE='#' 34070 else 34071 WEBP_DELEGATE_TRUE='#' 34072 WEBP_DELEGATE_FALSE= 34073 fi 34074 34075 34076 34077 34078 # 34079 # Set Windows font directory. 34080 # 34081 34082 # Check whether --with-windows-font-dir was given. 34083 if test "${with_windows_font_dir+set}" = set; then : 34084 withval=$with_windows_font_dir; with_windows_font_dir=$withval 34085 else 34086 with_windows_font_dir='default' 34087 fi 34088 34089 34090 if test "$with_windows_font_dir" != 'default'; then 34091 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir " 34092 fi 34093 34094 34095 # 34096 # Check for WMF delegate library. 34097 # 34098 34099 # Check whether --with-wmf was given. 34100 if test "${with_wmf+set}" = set; then : 34101 withval=$with_wmf; with_wmf=$withval 34102 else 34103 with_wmf='yes' 34104 fi 34105 34106 34107 if test "$with_wmf" != 'yes'; then 34108 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf " 34109 fi 34110 34111 have_wmf='no' 34112 WMF_LIBS='' 34113 WMF_CFLAGS='' 34114 OLIBS="$LIBS" 34115 if test "$with_wmf" != 'no'; then 34116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF support " >&5 34117 $as_echo_n "checking for WMF support ... " >&6; } 34118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 34119 $as_echo "" >&6; } 34120 34121 have_libwmflite='no' 34122 have_libwmf_ipa_h='no' 34123 34124 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H 34125 " 34126 if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then : 34127 have_libwmf_ipa_h='yes' 34128 fi 34129 34130 34131 if test "$have_libwmf_ipa_h" = 'yes'; then 34132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5 34133 $as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; } 34134 if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then : 34135 $as_echo_n "(cached) " >&6 34136 else 34137 ac_check_lib_save_LIBS=$LIBS 34138 LIBS="-lwmflite $LIBS" 34139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 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 wmf_lite_create (); 34149 int 34150 main () 34151 { 34152 return wmf_lite_create (); 34153 ; 34154 return 0; 34155 } 34156 _ACEOF 34157 if ac_fn_c_try_link "$LINENO"; then : 34158 ac_cv_lib_wmflite_wmf_lite_create=yes 34159 else 34160 ac_cv_lib_wmflite_wmf_lite_create=no 34161 fi 34162 rm -f core conftest.err conftest.$ac_objext \ 34163 conftest$ac_exeext conftest.$ac_ext 34164 LIBS=$ac_check_lib_save_LIBS 34165 fi 34166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5 34167 $as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; } 34168 if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then : 34169 have_libwmflite='yes' 34170 fi 34171 34172 if test "$have_libwmflite" = 'yes'; then 34173 34174 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h 34175 34176 WMF_LIBS='-lwmflite' 34177 LIBS="$WMF_LIBS $LIBS" 34178 have_wmf='yes' 34179 else 34180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 34181 $as_echo "no -- some components failed test" >&6; } 34182 have_wmf='no (failed tests)' 34183 have_wmflite='no (failed tests)' 34184 LIBS="$OLIBS" 34185 WMF_LIBS='' 34186 fi 34187 fi 34188 fi 34189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete " >&5 34190 $as_echo_n "checking if WMF package is complete ... " >&6; } 34191 if test "$have_wmf" = 'yes'; then 34192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34193 $as_echo "yes" >&6; } 34194 else 34195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34196 $as_echo "no" >&6; } 34197 fi 34198 if test "$have_wmf" = 'yes'; then 34199 WMF_DELEGATE_TRUE= 34200 WMF_DELEGATE_FALSE='#' 34201 else 34202 WMF_DELEGATE_TRUE='#' 34203 WMF_DELEGATE_FALSE= 34204 fi 34205 34206 34207 34208 34209 34210 # 34211 # Check for XML delegate library. 34212 # 34213 34214 # Check whether --with-xml was given. 34215 if test "${with_xml+set}" = set; then : 34216 withval=$with_xml; with_xml=$withval 34217 else 34218 with_xml='yes' 34219 fi 34220 34221 34222 if test "$with_xml" != 'yes' ; then 34223 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml " 34224 fi 34225 34226 have_xml='no' 34227 XML_CFLAGS="" 34228 XML_LIBS="" 34229 XML_PKG="" 34230 if test "x$with_xml" = "xyes"; then 34231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 34232 $as_echo "-------------------------------------------------------------" >&6; } 34233 34234 pkg_failed=no 34235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5 34236 $as_echo_n "checking for XML... " >&6; } 34237 34238 if test -n "$XML_CFLAGS"; then 34239 pkg_cv_XML_CFLAGS="$XML_CFLAGS" 34240 elif test -n "$PKG_CONFIG"; then 34241 if test -n "$PKG_CONFIG" && \ 34242 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5 34243 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5 34244 ac_status=$? 34245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34246 test $ac_status = 0; }; then 34247 pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0.0" 2>/dev/null` 34248 test "x$?" != "x0" && pkg_failed=yes 34249 else 34250 pkg_failed=yes 34251 fi 34252 else 34253 pkg_failed=untried 34254 fi 34255 if test -n "$XML_LIBS"; then 34256 pkg_cv_XML_LIBS="$XML_LIBS" 34257 elif test -n "$PKG_CONFIG"; then 34258 if test -n "$PKG_CONFIG" && \ 34259 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5 34260 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5 34261 ac_status=$? 34262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34263 test $ac_status = 0; }; then 34264 pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0.0" 2>/dev/null` 34265 test "x$?" != "x0" && pkg_failed=yes 34266 else 34267 pkg_failed=yes 34268 fi 34269 else 34270 pkg_failed=untried 34271 fi 34272 34273 34274 34275 if test $pkg_failed = yes; then 34276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34277 $as_echo "no" >&6; } 34278 34279 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 34280 _pkg_short_errors_supported=yes 34281 else 34282 _pkg_short_errors_supported=no 34283 fi 34284 if test $_pkg_short_errors_supported = yes; then 34285 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1` 34286 else 34287 XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1` 34288 fi 34289 # Put the nasty error message in config.log where it belongs 34290 echo "$XML_PKG_ERRORS" >&5 34291 34292 have_xml=no 34293 elif test $pkg_failed = untried; then 34294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34295 $as_echo "no" >&6; } 34296 have_xml=no 34297 else 34298 XML_CFLAGS=$pkg_cv_XML_CFLAGS 34299 XML_LIBS=$pkg_cv_XML_LIBS 34300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34301 $as_echo "yes" >&6; } 34302 have_xml=yes 34303 fi 34304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 34305 $as_echo "" >&6; } 34306 fi 34307 34308 if test "$have_xml" = 'yes'; then 34309 34310 $as_echo "#define XML_DELEGATE 1" >>confdefs.h 34311 34312 CFLAGS="$XML_CFLAGS $CFLAGS" 34313 fi 34314 34315 if test "$have_xml" = 'yes'; then 34316 XML_DELEGATE_TRUE= 34317 XML_DELEGATE_FALSE='#' 34318 else 34319 XML_DELEGATE_TRUE='#' 34320 XML_DELEGATE_FALSE= 34321 fi 34322 34323 34324 34325 34326 34327 # Substitute compiler name to build/link PerlMagick 34328 # 34329 34330 34331 # 34332 # Configure install Paths 34333 # 34334 34335 # Path to ImageMagick header files 34336 INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}" 34337 INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}" 34338 DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/" 34339 case "${build_os}" in 34340 mingw* ) 34341 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1` 34342 ;; 34343 esac 34344 34345 cat >>confdefs.h <<_ACEOF 34346 #define INCLUDE_PATH "$DEFINE_INCLUDE_PATH" 34347 _ACEOF 34348 34349 34350 34351 # Path to ImageMagick header files (arch part) 34352 INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}" 34353 DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/" 34354 case "${build_os}" in 34355 mingw* ) 34356 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1` 34357 ;; 34358 esac 34359 34360 cat >>confdefs.h <<_ACEOF 34361 #define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH" 34362 _ACEOF 34363 34364 34365 34366 # Subdirectory under lib to place ImageMagick lib files 34367 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" 34368 34369 cat >>confdefs.h <<_ACEOF 34370 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH" 34371 _ACEOF 34372 34373 34374 # Path to ImageMagick bin directory 34375 EXECUTABLE_PATH="${BIN_DIR}" 34376 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/" 34377 case "${build_os}" in 34378 mingw* ) 34379 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1` 34380 ;; 34381 esac 34382 34383 cat >>confdefs.h <<_ACEOF 34384 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH" 34385 _ACEOF 34386 34387 34388 34389 # Path to ImageMagick lib 34390 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}" 34391 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/" 34392 case "${build_os}" in 34393 mingw* ) 34394 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1` 34395 ;; 34396 esac 34397 34398 cat >>confdefs.h <<_ACEOF 34399 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH" 34400 _ACEOF 34401 34402 34403 34404 # 34405 # path to local binaries 34406 if test "x$LIB_BIN_BASEDIRNAME" = "x"; then 34407 LIB_BIN_BASEDIRNAME="bin" 34408 fi 34409 34410 cat >>confdefs.h <<_ACEOF 34411 #define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME" 34412 _ACEOF 34413 34414 34415 34416 if test "x$LIB_BIN_DIR" = "x"; then 34417 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX} 34418 fi 34419 34420 34421 LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR 34422 34423 LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}" 34424 34425 34426 # 34427 # path to modules lib 34428 if test "x$MODULES_BASEDIRNAME" = "x"; then 34429 MODULES_BASEDIRNAME="modules" 34430 fi 34431 34432 cat >>confdefs.h <<_ACEOF 34433 #define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME" 34434 _ACEOF 34435 34436 34437 34438 if test "x$MODULES_DIRNAME" = "x"; then 34439 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX} 34440 else 34441 34442 cat >>confdefs.h <<_ACEOF 34443 #define MODULES_DIRNAME "$MODULES_DIRNAME" 34444 _ACEOF 34445 34446 fi 34447 34448 34449 MODULES_RELATIVE_PATH="${MODULES_DIRNAME}" 34450 34451 MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}" 34452 34453 34454 # 34455 # path to coders lib 34456 if test "x$CODER_DIRNAME" = "x"; then 34457 CODER_DIRNAME="coders" 34458 fi 34459 34460 cat >>confdefs.h <<_ACEOF 34461 #define CODER_DIRNAME "$CODER_DIRNAME" 34462 _ACEOF 34463 34464 34465 34466 CODER_RELATIVE_PATH="${CODER_DIRNAME}" 34467 CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}" 34468 34469 34470 # 34471 # Subdirectory under lib to place ImageMagick filter module files 34472 # 34473 # path to coders lib 34474 if test "x$FILTER_DIRNAME" = "x"; then 34475 FILTER_DIRNAME="filters" 34476 fi 34477 34478 cat >>confdefs.h <<_ACEOF 34479 #define FILTER_DIRNAME "$FILTER_DIRNAME" 34480 _ACEOF 34481 34482 34483 34484 FILTER_RELATIVE_PATH="${FILTER_DIRNAME}" 34485 FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}" 34486 34487 34488 # 34489 # Path to ImageMagick documentation files 34490 DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}" 34491 DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}" 34492 DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/" 34493 case "${build_os}" in 34494 mingw* ) 34495 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1` 34496 ;; 34497 esac 34498 34499 cat >>confdefs.h <<_ACEOF 34500 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH" 34501 _ACEOF 34502 34503 34504 34505 # 34506 # Enable/Disable documentation 34507 # Check whether --enable-docs was given. 34508 if test "${enable_docs+set}" = set; then : 34509 enableval=$enable_docs; wantdocs=$enableval 34510 else 34511 wantdocs=yes 34512 fi 34513 34514 if test "$wantdocs" = "yes"; then 34515 INSTALL_DOC_TRUE= 34516 INSTALL_DOC_FALSE='#' 34517 else 34518 INSTALL_DOC_TRUE='#' 34519 INSTALL_DOC_FALSE= 34520 fi 34521 34522 34523 # Subdirectory to place architecture-dependent configuration files 34524 CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}" 34525 34526 cat >>confdefs.h <<_ACEOF 34527 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH" 34528 _ACEOF 34529 34530 CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" 34531 DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" 34532 case "${build_os}" in 34533 mingw* ) 34534 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1` 34535 ;; 34536 esac 34537 34538 cat >>confdefs.h <<_ACEOF 34539 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH" 34540 _ACEOF 34541 34542 34543 34544 # Subdirectory to place architecture-independent configuration files 34545 SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}" 34546 34547 cat >>confdefs.h <<_ACEOF 34548 #define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH" 34549 _ACEOF 34550 34551 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}" 34552 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/" 34553 case "${build_os}" in 34554 mingw* ) 34555 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1` 34556 ;; 34557 esac 34558 34559 cat >>confdefs.h <<_ACEOF 34560 #define SHARE_PATH "$DEFINE_SHARE_PATH" 34561 _ACEOF 34562 34563 34564 34565 # 34566 # Subdirectory to place architecture-dependent configuration files. 34567 if test "x$SHAREARCH_BASEDIRNAME" = "x"; then 34568 SHAREARCH_BASEDIRNAME="config" 34569 fi 34570 34571 cat >>confdefs.h <<_ACEOF 34572 #define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME" 34573 _ACEOF 34574 34575 34576 34577 if test "x$SHAREARCH_DIRNAME" = "x"; then 34578 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX} 34579 else 34580 34581 cat >>confdefs.h <<_ACEOF 34582 #define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME" 34583 _ACEOF 34584 34585 fi 34586 34587 34588 SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}" 34589 34590 SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}" 34591 34592 34593 # 34594 # program_transform_name is formed for use in a Makefile, so create a 34595 # modified version for use in a shell script. 34596 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'` 34597 34598 # Default delegate definitions 34599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 34600 $as_echo "-------------------------------------------------------------" >&6; } 34601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5 34602 $as_echo_n "checking for ImageMagick delegate programs... " >&6; } 34603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 34604 $as_echo "" >&6; } 34605 BPGDecodeDelegateDefault='bpgdec' 34606 BPGEncodeDelegateDefault='bpgenc' 34607 BlenderDecodeDelegateDefault='blender' 34608 BrowseDelegateDefault='xdg-open' 34609 DNGDecodeDelegateDefault='ufraw-batch' 34610 DOCDecodeDelegateDefault='soffice' 34611 GVCDecodeDelegateDefault='dot' 34612 DVIDecodeDelegateDefault='dvips' 34613 EditorDelegateDefault='xterm' 34614 ConvertDelegateDefault=`echo magick | sed ${configure_transform_name}` 34615 DisplayDelegateDefault=`echo magick | sed ${configure_transform_name}` 34616 MogrifyDelegateDefault=`echo magick | sed ${configure_transform_name}` 34617 HPGLDecodeDelegateDefault='hp2xx' 34618 HTMLDecodeDelegateDefault='html2ps' 34619 ILBMDecodeDelegateDefault='ilbmtoppm' 34620 ILBMEncodeDelegateDefault='ppmtoilbm' 34621 JXRDecodeDelegateDefault='JxrDecApp' 34622 JXREncodeDelegateDefault='JxrEncApp' 34623 LPDelegateDefault='lp' 34624 LPRDelegateDefault='lpr' 34625 LaunchDelegateDefault='gimp' 34626 MPEGDecodeDelegateDefault='avconv' 34627 MPEGEncodeDelegateDefault='avconv' 34628 MrSIDDecodeDelegateDefault='mrsidgeodecode' 34629 MVDelegateDefault='mv' 34630 PCLDelegateDefault='pcl6' 34631 if test "$native_win32_build" = 'yes'; then 34632 PSDelegateDefault='gswin32c' 34633 elif test "$gslib_framework" = 'yes'; then 34634 PSDelegateDefault='gsc' 34635 else 34636 PSDelegateDefault='gs' 34637 fi 34638 RMDelegateDefault='rm' 34639 RSVGDecodeDelegateDefault='rsvg-convert' 34640 SVGDecodeDelegateDefault='inkscape' 34641 UniconvertorDelegateDefault='uniconvertor' 34642 WebPDecodeDelegateDefault='dwebp' 34643 WebPEncodeDelegateDefault='cwebp' 34644 WWWDecodeDelegateDefault='curl' 34645 XPSDelegateDefault='gxps' 34646 34647 # Search for delegates 34648 # Extract the first word of ""$BPGDecodeDelegateDefault"", so it can be a program name with args. 34649 set dummy "$BPGDecodeDelegateDefault"; ac_word=$2 34650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34651 $as_echo_n "checking for $ac_word... " >&6; } 34652 if ${ac_cv_path_BPGDecodeDelegate+:} false; then : 34653 $as_echo_n "(cached) " >&6 34654 else 34655 case $BPGDecodeDelegate in 34656 [\\/]* | ?:[\\/]*) 34657 ac_cv_path_BPGDecodeDelegate="$BPGDecodeDelegate" # Let the user override the test with a path. 34658 ;; 34659 *) 34660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34661 for as_dir in $PATH 34662 do 34663 IFS=$as_save_IFS 34664 test -z "$as_dir" && as_dir=. 34665 for ac_exec_ext in '' $ac_executable_extensions; do 34666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34667 ac_cv_path_BPGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34669 break 2 34670 fi 34671 done 34672 done 34673 IFS=$as_save_IFS 34674 34675 test -z "$ac_cv_path_BPGDecodeDelegate" && ac_cv_path_BPGDecodeDelegate=""$BPGDecodeDelegateDefault"" 34676 ;; 34677 esac 34678 fi 34679 BPGDecodeDelegate=$ac_cv_path_BPGDecodeDelegate 34680 if test -n "$BPGDecodeDelegate"; then 34681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BPGDecodeDelegate" >&5 34682 $as_echo "$BPGDecodeDelegate" >&6; } 34683 else 34684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34685 $as_echo "no" >&6; } 34686 fi 34687 34688 34689 # Extract the first word of ""$BPGEncodeDelegateDefault"", so it can be a program name with args. 34690 set dummy "$BPGEncodeDelegateDefault"; ac_word=$2 34691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34692 $as_echo_n "checking for $ac_word... " >&6; } 34693 if ${ac_cv_path_BPGEncodeDelegate+:} false; then : 34694 $as_echo_n "(cached) " >&6 34695 else 34696 case $BPGEncodeDelegate in 34697 [\\/]* | ?:[\\/]*) 34698 ac_cv_path_BPGEncodeDelegate="$BPGEncodeDelegate" # Let the user override the test with a path. 34699 ;; 34700 *) 34701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34702 for as_dir in $PATH 34703 do 34704 IFS=$as_save_IFS 34705 test -z "$as_dir" && as_dir=. 34706 for ac_exec_ext in '' $ac_executable_extensions; do 34707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34708 ac_cv_path_BPGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34710 break 2 34711 fi 34712 done 34713 done 34714 IFS=$as_save_IFS 34715 34716 test -z "$ac_cv_path_BPGEncodeDelegate" && ac_cv_path_BPGEncodeDelegate=""$BPGEncodeDelegateDefault"" 34717 ;; 34718 esac 34719 fi 34720 BPGEncodeDelegate=$ac_cv_path_BPGEncodeDelegate 34721 if test -n "$BPGEncodeDelegate"; then 34722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BPGEncodeDelegate" >&5 34723 $as_echo "$BPGEncodeDelegate" >&6; } 34724 else 34725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34726 $as_echo "no" >&6; } 34727 fi 34728 34729 34730 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args. 34731 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2 34732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34733 $as_echo_n "checking for $ac_word... " >&6; } 34734 if ${ac_cv_path_BlenderDecodeDelegate+:} false; then : 34735 $as_echo_n "(cached) " >&6 34736 else 34737 case $BlenderDecodeDelegate in 34738 [\\/]* | ?:[\\/]*) 34739 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path. 34740 ;; 34741 *) 34742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34743 for as_dir in $PATH 34744 do 34745 IFS=$as_save_IFS 34746 test -z "$as_dir" && as_dir=. 34747 for ac_exec_ext in '' $ac_executable_extensions; do 34748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34749 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34751 break 2 34752 fi 34753 done 34754 done 34755 IFS=$as_save_IFS 34756 34757 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault"" 34758 ;; 34759 esac 34760 fi 34761 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate 34762 if test -n "$BlenderDecodeDelegate"; then 34763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5 34764 $as_echo "$BlenderDecodeDelegate" >&6; } 34765 else 34766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34767 $as_echo "no" >&6; } 34768 fi 34769 34770 34771 for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx 34772 do 34773 # Extract the first word of "$ac_prog", so it can be a program name with args. 34774 set dummy $ac_prog; ac_word=$2 34775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34776 $as_echo_n "checking for $ac_word... " >&6; } 34777 if ${ac_cv_path_BrowseDelegate+:} false; then : 34778 $as_echo_n "(cached) " >&6 34779 else 34780 case $BrowseDelegate in 34781 [\\/]* | ?:[\\/]*) 34782 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path. 34783 ;; 34784 *) 34785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34786 for as_dir in $PATH 34787 do 34788 IFS=$as_save_IFS 34789 test -z "$as_dir" && as_dir=. 34790 for ac_exec_ext in '' $ac_executable_extensions; do 34791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34792 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext" 34793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34794 break 2 34795 fi 34796 done 34797 done 34798 IFS=$as_save_IFS 34799 34800 ;; 34801 esac 34802 fi 34803 BrowseDelegate=$ac_cv_path_BrowseDelegate 34804 if test -n "$BrowseDelegate"; then 34805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5 34806 $as_echo "$BrowseDelegate" >&6; } 34807 else 34808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34809 $as_echo "no" >&6; } 34810 fi 34811 34812 34813 test -n "$BrowseDelegate" && break 34814 done 34815 test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault"" 34816 34817 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args. 34818 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2 34819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34820 $as_echo_n "checking for $ac_word... " >&6; } 34821 if ${ac_cv_path_DNGDecodeDelegate+:} false; then : 34822 $as_echo_n "(cached) " >&6 34823 else 34824 case $DNGDecodeDelegate in 34825 [\\/]* | ?:[\\/]*) 34826 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path. 34827 ;; 34828 *) 34829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34830 for as_dir in $PATH 34831 do 34832 IFS=$as_save_IFS 34833 test -z "$as_dir" && as_dir=. 34834 for ac_exec_ext in '' $ac_executable_extensions; do 34835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34836 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34838 break 2 34839 fi 34840 done 34841 done 34842 IFS=$as_save_IFS 34843 34844 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault"" 34845 ;; 34846 esac 34847 fi 34848 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate 34849 if test -n "$DNGDecodeDelegate"; then 34850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5 34851 $as_echo "$DNGDecodeDelegate" >&6; } 34852 else 34853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34854 $as_echo "no" >&6; } 34855 fi 34856 34857 34858 # Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args. 34859 set dummy "$DOCDecodeDelegateDefault"; ac_word=$2 34860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34861 $as_echo_n "checking for $ac_word... " >&6; } 34862 if ${ac_cv_path_DOCDecodeDelegate+:} false; then : 34863 $as_echo_n "(cached) " >&6 34864 else 34865 case $DOCDecodeDelegate in 34866 [\\/]* | ?:[\\/]*) 34867 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path. 34868 ;; 34869 *) 34870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34871 for as_dir in $PATH 34872 do 34873 IFS=$as_save_IFS 34874 test -z "$as_dir" && as_dir=. 34875 for ac_exec_ext in '' $ac_executable_extensions; do 34876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34877 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34879 break 2 34880 fi 34881 done 34882 done 34883 IFS=$as_save_IFS 34884 34885 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault"" 34886 ;; 34887 esac 34888 fi 34889 DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate 34890 if test -n "$DOCDecodeDelegate"; then 34891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5 34892 $as_echo "$DOCDecodeDelegate" >&6; } 34893 else 34894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34895 $as_echo "no" >&6; } 34896 fi 34897 34898 34899 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args. 34900 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2 34901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34902 $as_echo_n "checking for $ac_word... " >&6; } 34903 if ${ac_cv_path_DVIDecodeDelegate+:} false; then : 34904 $as_echo_n "(cached) " >&6 34905 else 34906 case $DVIDecodeDelegate in 34907 [\\/]* | ?:[\\/]*) 34908 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path. 34909 ;; 34910 *) 34911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34912 for as_dir in $PATH 34913 do 34914 IFS=$as_save_IFS 34915 test -z "$as_dir" && as_dir=. 34916 for ac_exec_ext in '' $ac_executable_extensions; do 34917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34918 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 34919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34920 break 2 34921 fi 34922 done 34923 done 34924 IFS=$as_save_IFS 34925 34926 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault"" 34927 ;; 34928 esac 34929 fi 34930 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate 34931 if test -n "$DVIDecodeDelegate"; then 34932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5 34933 $as_echo "$DVIDecodeDelegate" >&6; } 34934 else 34935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34936 $as_echo "no" >&6; } 34937 fi 34938 34939 34940 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args. 34941 set dummy "$ConvertDelegateDefault"; ac_word=$2 34942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34943 $as_echo_n "checking for $ac_word... " >&6; } 34944 if ${ac_cv_path_ConvertDelegate+:} false; then : 34945 $as_echo_n "(cached) " >&6 34946 else 34947 case $ConvertDelegate in 34948 [\\/]* | ?:[\\/]*) 34949 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path. 34950 ;; 34951 *) 34952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34953 for as_dir in $PATH 34954 do 34955 IFS=$as_save_IFS 34956 test -z "$as_dir" && as_dir=. 34957 for ac_exec_ext in '' $ac_executable_extensions; do 34958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34959 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext" 34960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34961 break 2 34962 fi 34963 done 34964 done 34965 IFS=$as_save_IFS 34966 34967 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault"" 34968 ;; 34969 esac 34970 fi 34971 ConvertDelegate=$ac_cv_path_ConvertDelegate 34972 if test -n "$ConvertDelegate"; then 34973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5 34974 $as_echo "$ConvertDelegate" >&6; } 34975 else 34976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34977 $as_echo "no" >&6; } 34978 fi 34979 34980 34981 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args. 34982 set dummy "$DisplayDelegateDefault"; ac_word=$2 34983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34984 $as_echo_n "checking for $ac_word... " >&6; } 34985 if ${ac_cv_path_DisplayDelegate+:} false; then : 34986 $as_echo_n "(cached) " >&6 34987 else 34988 case $DisplayDelegate in 34989 [\\/]* | ?:[\\/]*) 34990 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path. 34991 ;; 34992 *) 34993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34994 for as_dir in $PATH 34995 do 34996 IFS=$as_save_IFS 34997 test -z "$as_dir" && as_dir=. 34998 for ac_exec_ext in '' $ac_executable_extensions; do 34999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35000 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext" 35001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35002 break 2 35003 fi 35004 done 35005 done 35006 IFS=$as_save_IFS 35007 35008 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault"" 35009 ;; 35010 esac 35011 fi 35012 DisplayDelegate=$ac_cv_path_DisplayDelegate 35013 if test -n "$DisplayDelegate"; then 35014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5 35015 $as_echo "$DisplayDelegate" >&6; } 35016 else 35017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35018 $as_echo "no" >&6; } 35019 fi 35020 35021 35022 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args. 35023 set dummy "$EditorDelegateDefault"; ac_word=$2 35024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35025 $as_echo_n "checking for $ac_word... " >&6; } 35026 if ${ac_cv_path_EditorDelegate+:} false; then : 35027 $as_echo_n "(cached) " >&6 35028 else 35029 case $EditorDelegate in 35030 [\\/]* | ?:[\\/]*) 35031 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path. 35032 ;; 35033 *) 35034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35035 for as_dir in $PATH 35036 do 35037 IFS=$as_save_IFS 35038 test -z "$as_dir" && as_dir=. 35039 for ac_exec_ext in '' $ac_executable_extensions; do 35040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35041 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext" 35042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35043 break 2 35044 fi 35045 done 35046 done 35047 IFS=$as_save_IFS 35048 35049 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault"" 35050 ;; 35051 esac 35052 fi 35053 EditorDelegate=$ac_cv_path_EditorDelegate 35054 if test -n "$EditorDelegate"; then 35055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5 35056 $as_echo "$EditorDelegate" >&6; } 35057 else 35058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35059 $as_echo "no" >&6; } 35060 fi 35061 35062 35063 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args. 35064 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2 35065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35066 $as_echo_n "checking for $ac_word... " >&6; } 35067 if ${ac_cv_path_GVCDecodeDelegate+:} false; then : 35068 $as_echo_n "(cached) " >&6 35069 else 35070 case $GVCDecodeDelegate in 35071 [\\/]* | ?:[\\/]*) 35072 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path. 35073 ;; 35074 *) 35075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35076 for as_dir in $PATH 35077 do 35078 IFS=$as_save_IFS 35079 test -z "$as_dir" && as_dir=. 35080 for ac_exec_ext in '' $ac_executable_extensions; do 35081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35082 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35084 break 2 35085 fi 35086 done 35087 done 35088 IFS=$as_save_IFS 35089 35090 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault"" 35091 ;; 35092 esac 35093 fi 35094 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate 35095 if test -n "$GVCDecodeDelegate"; then 35096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5 35097 $as_echo "$GVCDecodeDelegate" >&6; } 35098 else 35099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35100 $as_echo "no" >&6; } 35101 fi 35102 35103 35104 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args. 35105 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2 35106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35107 $as_echo_n "checking for $ac_word... " >&6; } 35108 if ${ac_cv_path_HPGLDecodeDelegate+:} false; then : 35109 $as_echo_n "(cached) " >&6 35110 else 35111 case $HPGLDecodeDelegate in 35112 [\\/]* | ?:[\\/]*) 35113 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path. 35114 ;; 35115 *) 35116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35117 for as_dir in $PATH 35118 do 35119 IFS=$as_save_IFS 35120 test -z "$as_dir" && as_dir=. 35121 for ac_exec_ext in '' $ac_executable_extensions; do 35122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35123 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35125 break 2 35126 fi 35127 done 35128 done 35129 IFS=$as_save_IFS 35130 35131 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault"" 35132 ;; 35133 esac 35134 fi 35135 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate 35136 if test -n "$HPGLDecodeDelegate"; then 35137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5 35138 $as_echo "$HPGLDecodeDelegate" >&6; } 35139 else 35140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35141 $as_echo "no" >&6; } 35142 fi 35143 35144 35145 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args. 35146 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2 35147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35148 $as_echo_n "checking for $ac_word... " >&6; } 35149 if ${ac_cv_path_HTMLDecodeDelegate+:} false; then : 35150 $as_echo_n "(cached) " >&6 35151 else 35152 case $HTMLDecodeDelegate in 35153 [\\/]* | ?:[\\/]*) 35154 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path. 35155 ;; 35156 *) 35157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35158 for as_dir in $PATH 35159 do 35160 IFS=$as_save_IFS 35161 test -z "$as_dir" && as_dir=. 35162 for ac_exec_ext in '' $ac_executable_extensions; do 35163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35164 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35166 break 2 35167 fi 35168 done 35169 done 35170 IFS=$as_save_IFS 35171 35172 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault"" 35173 ;; 35174 esac 35175 fi 35176 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate 35177 if test -n "$HTMLDecodeDelegate"; then 35178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5 35179 $as_echo "$HTMLDecodeDelegate" >&6; } 35180 else 35181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35182 $as_echo "no" >&6; } 35183 fi 35184 35185 35186 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args. 35187 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2 35188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35189 $as_echo_n "checking for $ac_word... " >&6; } 35190 if ${ac_cv_path_ILBMDecodeDelegate+:} false; then : 35191 $as_echo_n "(cached) " >&6 35192 else 35193 case $ILBMDecodeDelegate in 35194 [\\/]* | ?:[\\/]*) 35195 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path. 35196 ;; 35197 *) 35198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35199 for as_dir in $PATH 35200 do 35201 IFS=$as_save_IFS 35202 test -z "$as_dir" && as_dir=. 35203 for ac_exec_ext in '' $ac_executable_extensions; do 35204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35205 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35207 break 2 35208 fi 35209 done 35210 done 35211 IFS=$as_save_IFS 35212 35213 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault"" 35214 ;; 35215 esac 35216 fi 35217 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate 35218 if test -n "$ILBMDecodeDelegate"; then 35219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5 35220 $as_echo "$ILBMDecodeDelegate" >&6; } 35221 else 35222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35223 $as_echo "no" >&6; } 35224 fi 35225 35226 35227 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args. 35228 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2 35229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35230 $as_echo_n "checking for $ac_word... " >&6; } 35231 if ${ac_cv_path_ILBMEncodeDelegate+:} false; then : 35232 $as_echo_n "(cached) " >&6 35233 else 35234 case $ILBMEncodeDelegate in 35235 [\\/]* | ?:[\\/]*) 35236 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path. 35237 ;; 35238 *) 35239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35240 for as_dir in $PATH 35241 do 35242 IFS=$as_save_IFS 35243 test -z "$as_dir" && as_dir=. 35244 for ac_exec_ext in '' $ac_executable_extensions; do 35245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35246 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35248 break 2 35249 fi 35250 done 35251 done 35252 IFS=$as_save_IFS 35253 35254 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault"" 35255 ;; 35256 esac 35257 fi 35258 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate 35259 if test -n "$ILBMEncodeDelegate"; then 35260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5 35261 $as_echo "$ILBMEncodeDelegate" >&6; } 35262 else 35263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35264 $as_echo "no" >&6; } 35265 fi 35266 35267 35268 # Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args. 35269 set dummy "$JXRDecodeDelegateDefault"; ac_word=$2 35270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35271 $as_echo_n "checking for $ac_word... " >&6; } 35272 if ${ac_cv_path_JXRDecodeDelegate+:} false; then : 35273 $as_echo_n "(cached) " >&6 35274 else 35275 case $JXRDecodeDelegate in 35276 [\\/]* | ?:[\\/]*) 35277 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path. 35278 ;; 35279 *) 35280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35281 for as_dir in $PATH 35282 do 35283 IFS=$as_save_IFS 35284 test -z "$as_dir" && as_dir=. 35285 for ac_exec_ext in '' $ac_executable_extensions; do 35286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35287 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35289 break 2 35290 fi 35291 done 35292 done 35293 IFS=$as_save_IFS 35294 35295 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault"" 35296 ;; 35297 esac 35298 fi 35299 JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate 35300 if test -n "$JXRDecodeDelegate"; then 35301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5 35302 $as_echo "$JXRDecodeDelegate" >&6; } 35303 else 35304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35305 $as_echo "no" >&6; } 35306 fi 35307 35308 35309 # Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args. 35310 set dummy "$JXREncodeDelegateDefault"; ac_word=$2 35311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35312 $as_echo_n "checking for $ac_word... " >&6; } 35313 if ${ac_cv_path_JXREncodeDelegate+:} false; then : 35314 $as_echo_n "(cached) " >&6 35315 else 35316 case $JXREncodeDelegate in 35317 [\\/]* | ?:[\\/]*) 35318 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path. 35319 ;; 35320 *) 35321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35322 for as_dir in $PATH 35323 do 35324 IFS=$as_save_IFS 35325 test -z "$as_dir" && as_dir=. 35326 for ac_exec_ext in '' $ac_executable_extensions; do 35327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35328 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35330 break 2 35331 fi 35332 done 35333 done 35334 IFS=$as_save_IFS 35335 35336 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault"" 35337 ;; 35338 esac 35339 fi 35340 JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate 35341 if test -n "$JXREncodeDelegate"; then 35342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5 35343 $as_echo "$JXREncodeDelegate" >&6; } 35344 else 35345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35346 $as_echo "no" >&6; } 35347 fi 35348 35349 35350 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args. 35351 set dummy "$LPDelegateDefault"; ac_word=$2 35352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35353 $as_echo_n "checking for $ac_word... " >&6; } 35354 if ${ac_cv_path_LPDelegate+:} false; then : 35355 $as_echo_n "(cached) " >&6 35356 else 35357 case $LPDelegate in 35358 [\\/]* | ?:[\\/]*) 35359 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path. 35360 ;; 35361 *) 35362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35363 for as_dir in $PATH 35364 do 35365 IFS=$as_save_IFS 35366 test -z "$as_dir" && as_dir=. 35367 for ac_exec_ext in '' $ac_executable_extensions; do 35368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35369 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext" 35370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35371 break 2 35372 fi 35373 done 35374 done 35375 IFS=$as_save_IFS 35376 35377 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no" 35378 ;; 35379 esac 35380 fi 35381 LPDelegate=$ac_cv_path_LPDelegate 35382 if test -n "$LPDelegate"; then 35383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5 35384 $as_echo "$LPDelegate" >&6; } 35385 else 35386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35387 $as_echo "no" >&6; } 35388 fi 35389 35390 35391 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args. 35392 set dummy "$LPRDelegateDefault"; ac_word=$2 35393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35394 $as_echo_n "checking for $ac_word... " >&6; } 35395 if ${ac_cv_path_LPRDelegate+:} false; then : 35396 $as_echo_n "(cached) " >&6 35397 else 35398 case $LPRDelegate in 35399 [\\/]* | ?:[\\/]*) 35400 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path. 35401 ;; 35402 *) 35403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35404 for as_dir in $PATH 35405 do 35406 IFS=$as_save_IFS 35407 test -z "$as_dir" && as_dir=. 35408 for ac_exec_ext in '' $ac_executable_extensions; do 35409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35410 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext" 35411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35412 break 2 35413 fi 35414 done 35415 done 35416 IFS=$as_save_IFS 35417 35418 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault"" 35419 ;; 35420 esac 35421 fi 35422 LPRDelegate=$ac_cv_path_LPRDelegate 35423 if test -n "$LPRDelegate"; then 35424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5 35425 $as_echo "$LPRDelegate" >&6; } 35426 else 35427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35428 $as_echo "no" >&6; } 35429 fi 35430 35431 35432 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args. 35433 set dummy "$LaunchDelegateDefault"; ac_word=$2 35434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35435 $as_echo_n "checking for $ac_word... " >&6; } 35436 if ${ac_cv_path_LaunchDelegate+:} false; then : 35437 $as_echo_n "(cached) " >&6 35438 else 35439 case $LaunchDelegate in 35440 [\\/]* | ?:[\\/]*) 35441 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path. 35442 ;; 35443 *) 35444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35445 for as_dir in $PATH 35446 do 35447 IFS=$as_save_IFS 35448 test -z "$as_dir" && as_dir=. 35449 for ac_exec_ext in '' $ac_executable_extensions; do 35450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35451 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext" 35452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35453 break 2 35454 fi 35455 done 35456 done 35457 IFS=$as_save_IFS 35458 35459 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault"" 35460 ;; 35461 esac 35462 fi 35463 LaunchDelegate=$ac_cv_path_LaunchDelegate 35464 if test -n "$LaunchDelegate"; then 35465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5 35466 $as_echo "$LaunchDelegate" >&6; } 35467 else 35468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35469 $as_echo "no" >&6; } 35470 fi 35471 35472 35473 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args. 35474 set dummy "$MogrifyDelegateDefault"; ac_word=$2 35475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35476 $as_echo_n "checking for $ac_word... " >&6; } 35477 if ${ac_cv_path_MogrifyDelegate+:} false; then : 35478 $as_echo_n "(cached) " >&6 35479 else 35480 case $MogrifyDelegate in 35481 [\\/]* | ?:[\\/]*) 35482 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path. 35483 ;; 35484 *) 35485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35486 for as_dir in $PATH 35487 do 35488 IFS=$as_save_IFS 35489 test -z "$as_dir" && as_dir=. 35490 for ac_exec_ext in '' $ac_executable_extensions; do 35491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35492 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext" 35493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35494 break 2 35495 fi 35496 done 35497 done 35498 IFS=$as_save_IFS 35499 35500 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault"" 35501 ;; 35502 esac 35503 fi 35504 MogrifyDelegate=$ac_cv_path_MogrifyDelegate 35505 if test -n "$MogrifyDelegate"; then 35506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5 35507 $as_echo "$MogrifyDelegate" >&6; } 35508 else 35509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35510 $as_echo "no" >&6; } 35511 fi 35512 35513 35514 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args. 35515 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2 35516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35517 $as_echo_n "checking for $ac_word... " >&6; } 35518 if ${ac_cv_path_MPEGDecodeDelegate+:} false; then : 35519 $as_echo_n "(cached) " >&6 35520 else 35521 case $MPEGDecodeDelegate in 35522 [\\/]* | ?:[\\/]*) 35523 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path. 35524 ;; 35525 *) 35526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35527 for as_dir in $PATH 35528 do 35529 IFS=$as_save_IFS 35530 test -z "$as_dir" && as_dir=. 35531 for ac_exec_ext in '' $ac_executable_extensions; do 35532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35533 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35535 break 2 35536 fi 35537 done 35538 done 35539 IFS=$as_save_IFS 35540 35541 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault"" 35542 ;; 35543 esac 35544 fi 35545 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate 35546 if test -n "$MPEGDecodeDelegate"; then 35547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5 35548 $as_echo "$MPEGDecodeDelegate" >&6; } 35549 else 35550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35551 $as_echo "no" >&6; } 35552 fi 35553 35554 35555 if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then 35556 MPEGDecodeDelegateDefault='ffmpeg' 35557 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args. 35558 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2 35559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35560 $as_echo_n "checking for $ac_word... " >&6; } 35561 if ${ac_cv_path_MPEGDecodeDelegate+:} false; then : 35562 $as_echo_n "(cached) " >&6 35563 else 35564 case $MPEGDecodeDelegate in 35565 [\\/]* | ?:[\\/]*) 35566 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path. 35567 ;; 35568 *) 35569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35570 for as_dir in $PATH 35571 do 35572 IFS=$as_save_IFS 35573 test -z "$as_dir" && as_dir=. 35574 for ac_exec_ext in '' $ac_executable_extensions; do 35575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35576 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35578 break 2 35579 fi 35580 done 35581 done 35582 IFS=$as_save_IFS 35583 35584 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault"" 35585 ;; 35586 esac 35587 fi 35588 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate 35589 if test -n "$MPEGDecodeDelegate"; then 35590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5 35591 $as_echo "$MPEGDecodeDelegate" >&6; } 35592 else 35593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35594 $as_echo "no" >&6; } 35595 fi 35596 35597 35598 fi; 35599 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args. 35600 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2 35601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35602 $as_echo_n "checking for $ac_word... " >&6; } 35603 if ${ac_cv_path_MPEGEncodeDelegate+:} false; then : 35604 $as_echo_n "(cached) " >&6 35605 else 35606 case $MPEGEncodeDelegate in 35607 [\\/]* | ?:[\\/]*) 35608 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path. 35609 ;; 35610 *) 35611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35612 for as_dir in $PATH 35613 do 35614 IFS=$as_save_IFS 35615 test -z "$as_dir" && as_dir=. 35616 for ac_exec_ext in '' $ac_executable_extensions; do 35617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35618 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35620 break 2 35621 fi 35622 done 35623 done 35624 IFS=$as_save_IFS 35625 35626 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault"" 35627 ;; 35628 esac 35629 fi 35630 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate 35631 if test -n "$MPEGEncodeDelegate"; then 35632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5 35633 $as_echo "$MPEGEncodeDelegate" >&6; } 35634 else 35635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35636 $as_echo "no" >&6; } 35637 fi 35638 35639 35640 if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then 35641 MPEGEncodeDelegateDefault='ffmpeg' 35642 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args. 35643 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2 35644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35645 $as_echo_n "checking for $ac_word... " >&6; } 35646 if ${ac_cv_path_MPEGEncodeDelegate+:} false; then : 35647 $as_echo_n "(cached) " >&6 35648 else 35649 case $MPEGEncodeDelegate in 35650 [\\/]* | ?:[\\/]*) 35651 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path. 35652 ;; 35653 *) 35654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35655 for as_dir in $PATH 35656 do 35657 IFS=$as_save_IFS 35658 test -z "$as_dir" && as_dir=. 35659 for ac_exec_ext in '' $ac_executable_extensions; do 35660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35661 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35663 break 2 35664 fi 35665 done 35666 done 35667 IFS=$as_save_IFS 35668 35669 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault"" 35670 ;; 35671 esac 35672 fi 35673 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate 35674 if test -n "$MPEGEncodeDelegate"; then 35675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5 35676 $as_echo "$MPEGEncodeDelegate" >&6; } 35677 else 35678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35679 $as_echo "no" >&6; } 35680 fi 35681 35682 35683 fi; 35684 # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args. 35685 set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2 35686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35687 $as_echo_n "checking for $ac_word... " >&6; } 35688 if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then : 35689 $as_echo_n "(cached) " >&6 35690 else 35691 case $MrSIDDecodeDelegate in 35692 [\\/]* | ?:[\\/]*) 35693 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path. 35694 ;; 35695 *) 35696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35697 for as_dir in $PATH 35698 do 35699 IFS=$as_save_IFS 35700 test -z "$as_dir" && as_dir=. 35701 for ac_exec_ext in '' $ac_executable_extensions; do 35702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35703 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35705 break 2 35706 fi 35707 done 35708 done 35709 IFS=$as_save_IFS 35710 35711 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault"" 35712 ;; 35713 esac 35714 fi 35715 MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate 35716 if test -n "$MrSIDDecodeDelegate"; then 35717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5 35718 $as_echo "$MrSIDDecodeDelegate" >&6; } 35719 else 35720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35721 $as_echo "no" >&6; } 35722 fi 35723 35724 35725 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args. 35726 set dummy "$MVDelegateDefault"; ac_word=$2 35727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35728 $as_echo_n "checking for $ac_word... " >&6; } 35729 if ${ac_cv_path_MVDelegate+:} false; then : 35730 $as_echo_n "(cached) " >&6 35731 else 35732 case $MVDelegate in 35733 [\\/]* | ?:[\\/]*) 35734 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path. 35735 ;; 35736 *) 35737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35738 for as_dir in $PATH 35739 do 35740 IFS=$as_save_IFS 35741 test -z "$as_dir" && as_dir=. 35742 for ac_exec_ext in '' $ac_executable_extensions; do 35743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35744 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext" 35745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35746 break 2 35747 fi 35748 done 35749 done 35750 IFS=$as_save_IFS 35751 35752 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault"" 35753 ;; 35754 esac 35755 fi 35756 MVDelegate=$ac_cv_path_MVDelegate 35757 if test -n "$MVDelegate"; then 35758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5 35759 $as_echo "$MVDelegate" >&6; } 35760 else 35761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35762 $as_echo "no" >&6; } 35763 fi 35764 35765 35766 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args. 35767 set dummy "$PCLDelegateDefault"; ac_word=$2 35768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35769 $as_echo_n "checking for $ac_word... " >&6; } 35770 if ${ac_cv_path_PCLDelegate+:} false; then : 35771 $as_echo_n "(cached) " >&6 35772 else 35773 case $PCLDelegate in 35774 [\\/]* | ?:[\\/]*) 35775 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path. 35776 ;; 35777 *) 35778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35779 for as_dir in $PATH 35780 do 35781 IFS=$as_save_IFS 35782 test -z "$as_dir" && as_dir=. 35783 for ac_exec_ext in '' $ac_executable_extensions; do 35784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35785 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext" 35786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35787 break 2 35788 fi 35789 done 35790 done 35791 IFS=$as_save_IFS 35792 35793 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault"" 35794 ;; 35795 esac 35796 fi 35797 PCLDelegate=$ac_cv_path_PCLDelegate 35798 if test -n "$PCLDelegate"; then 35799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5 35800 $as_echo "$PCLDelegate" >&6; } 35801 else 35802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35803 $as_echo "no" >&6; } 35804 fi 35805 35806 35807 for ac_prog in gsx gsc "$PSDelegateDefault" 35808 do 35809 # Extract the first word of "$ac_prog", so it can be a program name with args. 35810 set dummy $ac_prog; ac_word=$2 35811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35812 $as_echo_n "checking for $ac_word... " >&6; } 35813 if ${ac_cv_path_PSDelegate+:} false; then : 35814 $as_echo_n "(cached) " >&6 35815 else 35816 case $PSDelegate in 35817 [\\/]* | ?:[\\/]*) 35818 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path. 35819 ;; 35820 *) 35821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35822 for as_dir in $PATH 35823 do 35824 IFS=$as_save_IFS 35825 test -z "$as_dir" && as_dir=. 35826 for ac_exec_ext in '' $ac_executable_extensions; do 35827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35828 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext" 35829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35830 break 2 35831 fi 35832 done 35833 done 35834 IFS=$as_save_IFS 35835 35836 ;; 35837 esac 35838 fi 35839 PSDelegate=$ac_cv_path_PSDelegate 35840 if test -n "$PSDelegate"; then 35841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5 35842 $as_echo "$PSDelegate" >&6; } 35843 else 35844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35845 $as_echo "no" >&6; } 35846 fi 35847 35848 35849 test -n "$PSDelegate" && break 35850 done 35851 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault"" 35852 35853 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args. 35854 set dummy "$RMDelegateDefault"; ac_word=$2 35855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35856 $as_echo_n "checking for $ac_word... " >&6; } 35857 if ${ac_cv_path_RMDelegate+:} false; then : 35858 $as_echo_n "(cached) " >&6 35859 else 35860 case $RMDelegate in 35861 [\\/]* | ?:[\\/]*) 35862 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path. 35863 ;; 35864 *) 35865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35866 for as_dir in $PATH 35867 do 35868 IFS=$as_save_IFS 35869 test -z "$as_dir" && as_dir=. 35870 for ac_exec_ext in '' $ac_executable_extensions; do 35871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35872 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext" 35873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35874 break 2 35875 fi 35876 done 35877 done 35878 IFS=$as_save_IFS 35879 35880 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault"" 35881 ;; 35882 esac 35883 fi 35884 RMDelegate=$ac_cv_path_RMDelegate 35885 if test -n "$RMDelegate"; then 35886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5 35887 $as_echo "$RMDelegate" >&6; } 35888 else 35889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35890 $as_echo "no" >&6; } 35891 fi 35892 35893 35894 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args. 35895 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2 35896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35897 $as_echo_n "checking for $ac_word... " >&6; } 35898 if ${ac_cv_path_RSVGDecodeDelegate+:} false; then : 35899 $as_echo_n "(cached) " >&6 35900 else 35901 case $RSVGDecodeDelegate in 35902 [\\/]* | ?:[\\/]*) 35903 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path. 35904 ;; 35905 *) 35906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35907 for as_dir in $PATH 35908 do 35909 IFS=$as_save_IFS 35910 test -z "$as_dir" && as_dir=. 35911 for ac_exec_ext in '' $ac_executable_extensions; do 35912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35913 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35915 break 2 35916 fi 35917 done 35918 done 35919 IFS=$as_save_IFS 35920 35921 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault"" 35922 ;; 35923 esac 35924 fi 35925 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate 35926 if test -n "$RSVGDecodeDelegate"; then 35927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5 35928 $as_echo "$RSVGDecodeDelegate" >&6; } 35929 else 35930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35931 $as_echo "no" >&6; } 35932 fi 35933 35934 35935 # Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args. 35936 set dummy "$SVGDecodeDelegateDefault"; ac_word=$2 35937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35938 $as_echo_n "checking for $ac_word... " >&6; } 35939 if ${ac_cv_path_SVGDecodeDelegate+:} false; then : 35940 $as_echo_n "(cached) " >&6 35941 else 35942 case $SVGDecodeDelegate in 35943 [\\/]* | ?:[\\/]*) 35944 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path. 35945 ;; 35946 *) 35947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35948 for as_dir in $PATH 35949 do 35950 IFS=$as_save_IFS 35951 test -z "$as_dir" && as_dir=. 35952 for ac_exec_ext in '' $ac_executable_extensions; do 35953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35954 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 35955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35956 break 2 35957 fi 35958 done 35959 done 35960 IFS=$as_save_IFS 35961 35962 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault"" 35963 ;; 35964 esac 35965 fi 35966 SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate 35967 if test -n "$SVGDecodeDelegate"; then 35968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5 35969 $as_echo "$SVGDecodeDelegate" >&6; } 35970 else 35971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35972 $as_echo "no" >&6; } 35973 fi 35974 35975 35976 # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args. 35977 set dummy "$UniconvertorDelegateDefault"; ac_word=$2 35978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35979 $as_echo_n "checking for $ac_word... " >&6; } 35980 if ${ac_cv_path_UniconvertorDelegate+:} false; then : 35981 $as_echo_n "(cached) " >&6 35982 else 35983 case $UniconvertorDelegate in 35984 [\\/]* | ?:[\\/]*) 35985 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path. 35986 ;; 35987 *) 35988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35989 for as_dir in $PATH 35990 do 35991 IFS=$as_save_IFS 35992 test -z "$as_dir" && as_dir=. 35993 for ac_exec_ext in '' $ac_executable_extensions; do 35994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35995 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext" 35996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35997 break 2 35998 fi 35999 done 36000 done 36001 IFS=$as_save_IFS 36002 36003 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault"" 36004 ;; 36005 esac 36006 fi 36007 UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate 36008 if test -n "$UniconvertorDelegate"; then 36009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5 36010 $as_echo "$UniconvertorDelegate" >&6; } 36011 else 36012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36013 $as_echo "no" >&6; } 36014 fi 36015 36016 36017 # Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args. 36018 set dummy "$WebPDecodeDelegateDefault"; ac_word=$2 36019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36020 $as_echo_n "checking for $ac_word... " >&6; } 36021 if ${ac_cv_path_WebPDecodeDelegate+:} false; then : 36022 $as_echo_n "(cached) " >&6 36023 else 36024 case $WebPDecodeDelegate in 36025 [\\/]* | ?:[\\/]*) 36026 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path. 36027 ;; 36028 *) 36029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36030 for as_dir in $PATH 36031 do 36032 IFS=$as_save_IFS 36033 test -z "$as_dir" && as_dir=. 36034 for ac_exec_ext in '' $ac_executable_extensions; do 36035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36036 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 36037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36038 break 2 36039 fi 36040 done 36041 done 36042 IFS=$as_save_IFS 36043 36044 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault"" 36045 ;; 36046 esac 36047 fi 36048 WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate 36049 if test -n "$WebPDecodeDelegate"; then 36050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5 36051 $as_echo "$WebPDecodeDelegate" >&6; } 36052 else 36053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36054 $as_echo "no" >&6; } 36055 fi 36056 36057 36058 # Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args. 36059 set dummy "$WebPEncodeDelegateDefault"; ac_word=$2 36060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36061 $as_echo_n "checking for $ac_word... " >&6; } 36062 if ${ac_cv_path_WebPEncodeDelegate+:} false; then : 36063 $as_echo_n "(cached) " >&6 36064 else 36065 case $WebPEncodeDelegate in 36066 [\\/]* | ?:[\\/]*) 36067 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path. 36068 ;; 36069 *) 36070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36071 for as_dir in $PATH 36072 do 36073 IFS=$as_save_IFS 36074 test -z "$as_dir" && as_dir=. 36075 for ac_exec_ext in '' $ac_executable_extensions; do 36076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36077 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 36078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36079 break 2 36080 fi 36081 done 36082 done 36083 IFS=$as_save_IFS 36084 36085 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault"" 36086 ;; 36087 esac 36088 fi 36089 WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate 36090 if test -n "$WebPEncodeDelegate"; then 36091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5 36092 $as_echo "$WebPEncodeDelegate" >&6; } 36093 else 36094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36095 $as_echo "no" >&6; } 36096 fi 36097 36098 36099 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args. 36100 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2 36101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36102 $as_echo_n "checking for $ac_word... " >&6; } 36103 if ${ac_cv_path_WWWDecodeDelegate+:} false; then : 36104 $as_echo_n "(cached) " >&6 36105 else 36106 case $WWWDecodeDelegate in 36107 [\\/]* | ?:[\\/]*) 36108 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path. 36109 ;; 36110 *) 36111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36112 for as_dir in $PATH 36113 do 36114 IFS=$as_save_IFS 36115 test -z "$as_dir" && as_dir=. 36116 for ac_exec_ext in '' $ac_executable_extensions; do 36117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36118 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 36119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36120 break 2 36121 fi 36122 done 36123 done 36124 IFS=$as_save_IFS 36125 36126 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDelegateDefault"" 36127 ;; 36128 esac 36129 fi 36130 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate 36131 if test -n "$WWWDecodeDelegate"; then 36132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5 36133 $as_echo "$WWWDecodeDelegate" >&6; } 36134 else 36135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36136 $as_echo "no" >&6; } 36137 fi 36138 36139 36140 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args. 36141 set dummy "$XPSDelegateDefault"; ac_word=$2 36142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36143 $as_echo_n "checking for $ac_word... " >&6; } 36144 if ${ac_cv_path_XPSDelegate+:} false; then : 36145 $as_echo_n "(cached) " >&6 36146 else 36147 case $XPSDelegate in 36148 [\\/]* | ?:[\\/]*) 36149 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path. 36150 ;; 36151 *) 36152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36153 for as_dir in $PATH 36154 do 36155 IFS=$as_save_IFS 36156 test -z "$as_dir" && as_dir=. 36157 for ac_exec_ext in '' $ac_executable_extensions; do 36158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36159 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext" 36160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36161 break 2 36162 fi 36163 done 36164 done 36165 IFS=$as_save_IFS 36166 36167 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault"" 36168 ;; 36169 esac 36170 fi 36171 XPSDelegate=$ac_cv_path_XPSDelegate 36172 if test -n "$XPSDelegate"; then 36173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5 36174 $as_echo "$XPSDelegate" >&6; } 36175 else 36176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36177 $as_echo "no" >&6; } 36178 fi 36179 36180 36181 36182 # Prefer lpr to lp; lp needs options tacked on. 36183 if test "$LPRDelegate" != no; then 36184 PrintDelegate="$LPRDelegate" 36185 else 36186 PrintDelegate="$LPDelegate -c -s" 36187 fi 36188 36189 36190 # Installed ImageMagick utiltity paths 36191 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}" 36192 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}" 36193 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}" 36194 36195 # Set delegate booleans 36196 have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi 36197 have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi 36198 have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi 36199 have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi 36200 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi 36201 have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi 36202 have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi 36203 have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi 36204 36205 # 36206 # Test for font directories 36207 # 36208 type_include_files='' 36209 36210 # Apple fonts. 36211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5 36212 $as_echo_n "checking for Apple fonts directory... " >&6; } 36213 apple_font_dir='' 36214 if test "${with_apple_font_dir}" != 'default'; then 36215 apple_font_dir="${with_apple_font_dir}/" 36216 else 36217 for font_dir in '/Library/Fonts/'; do 36218 if test -f "${font_dir}Arial.ttf"; then 36219 apple_font_dir="${font_dir}" 36220 break 1 36221 fi 36222 done 36223 fi 36224 if test "${apple_font_dir}x" != 'x'; then 36225 type_include_files="${type_include_files} "'<include file="type-apple.xml" />' 36226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5 36227 $as_echo "$apple_font_dir" >&6; } 36228 else 36229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 36230 $as_echo "not found!" >&6; }; 36231 fi 36232 36233 36234 # Dejavu fonts. 36235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5 36236 $as_echo_n "checking for Dejavu fonts directory... " >&6; } 36237 dejavu_font_dir='' 36238 if test "${with_dejavu_font_dir}" != 'default'; then 36239 dejavu_font_dir="${with_dejavu_font_dir}/" 36240 else 36241 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do 36242 if test -f "${font_dir}DejaVuSerif.ttf"; then 36243 dejavu_font_dir="${font_dir}" 36244 break 1 36245 fi 36246 done 36247 fi 36248 if test "${dejavu_font_dir}x" != 'x'; then 36249 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />' 36250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5 36251 $as_echo "$dejavu_font_dir" >&6; } 36252 else 36253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 36254 $as_echo "not found!" >&6; }; 36255 fi 36256 36257 36258 # Ghostscript 36259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5 36260 $as_echo_n "checking for Ghostscript fonts directory... " >&6; } 36261 ghostscript_font_dir='' 36262 if test "${with_gs_font_dir}" != 'default'; then 36263 ghostscript_font_dir="${with_gs_font_dir}/" 36264 else 36265 if test "${native_win32_build}" = 'yes'; then 36266 # Native Windows Build 36267 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do 36268 if test -f "${font_dir}a010013l.pfb"; then 36269 ghostscript_font_dir="$font_dir" 36270 break 1 36271 fi 36272 done 36273 if test "${PSDelegate}" != 'gswin32c'; then 36274 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\" 36275 fi 36276 else 36277 # Linux / Mac OS X / Unix Build 36278 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 36279 if test -f "${font_dir}a010013l.pfb"; then 36280 ghostscript_font_dir="${font_dir}" 36281 break 1 36282 fi 36283 done 36284 if test "${ghostscript_font_dir}x" = 'x'; then 36285 if test "$PSDelegate" != 'gs'; then 36286 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/" 36287 fi 36288 fi 36289 fi 36290 fi 36291 if test "${ghostscript_font_dir}x" != 'x'; then 36292 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />' 36293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5 36294 $as_echo "$ghostscript_font_dir" >&6; } 36295 else 36296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 36297 $as_echo "not found!" >&6; }; 36298 fi 36299 36300 case "${build_os}" in 36301 mingw* ) 36302 PSDelegate=`$WinPathScript "$PSDelegate" 1` 36303 ;; 36304 esac 36305 36306 # Windows fonts. 36307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5 36308 $as_echo_n "checking for Windows fonts directory... " >&6; } 36309 windows_font_dir='' 36310 if test "${with_windows_font_dir}" != 'default'; then 36311 windows_font_dir="${with_windows_font_dir}/" 36312 else 36313 for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do 36314 if test -f "${font_dir}arial.ttf"; then 36315 windows_font_dir="${font_dir}" 36316 break 1 36317 fi 36318 done 36319 fi 36320 if test "${windows_font_dir}x" != 'x'; then 36321 type_include_files="${type_include_files} "'<include file="type-windows.xml" />' 36322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5 36323 $as_echo "$windows_font_dir" >&6; } 36324 else 36325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 36326 $as_echo "not found!" >&6; }; 36327 fi 36328 36329 36330 36331 36332 # 36333 # Handle case where user doesn't want frozen paths 36334 # 36335 if test "$with_frozenpaths" != 'yes'; then 36336 # Re-set delegate definitions to default (no paths) 36337 BPGDecodeDelegate="$BPGDecodeDelegateDefault" 36338 BPGEncodeDelegate="$BPGEncodeDelegateDefault" 36339 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault" 36340 BrowseDelegate="$BrowseDelegateDefault" 36341 ConvertDelegate="$ConvertDelegateDefault" 36342 DisplayDelegate="$DisplayDelegateDefault" 36343 DNGDecodeDelegate="$DNGDecodeDelegateDefault" 36344 DOCDecodeDelegate="$DOCDecodeDelegateDefault" 36345 DVIDecodeDelegate="$DVIDecodeDelegateDefault" 36346 EditorDelegate="$EditorDelegateDefault" 36347 GVCDecodeDelegate="$GVCDecodeDelegateDefault" 36348 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault" 36349 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault" 36350 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault" 36351 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault" 36352 JXRDecodeDelegate="$JXRDecodeDelegateDefault" 36353 JXREncodeDelegate="$JXREncodeDelegateDefault" 36354 LPDelegate="$LPDelegateDefault" 36355 LaunchDelegate="$LaunchDelegateDefault" 36356 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault" 36357 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault" 36358 MogrifyDelegate="$MogrifyDelegateDefault" 36359 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault" 36360 PCLDelegate="$PCLDelegateDefault" 36361 PSDelegate="$PSDelegateDefault" 36362 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault" 36363 SVGDecodeDelegate="$SVGDecodeDelegateDefault" 36364 ShowImageDelegate="$ShowImageDelegateDefault" 36365 UniconvertorDelegate="$UniconvertorDelegateDefault" 36366 WebPDecodeDelegate="$WebPDecodeDelegateDefault" 36367 WebPEncodeDelegate="$WebPEncodeDelegateDefault" 36368 WWWDecodeDelegate="$WWWDecodeDelegateDefault" 36369 XPSDelegate="$XPSDelegateDefault" 36370 fi 36371 36372 # Delegate substitutions 36373 36374 36375 36376 36377 36378 36379 36380 36381 36382 36383 36384 36385 36386 36387 36388 36389 36390 36391 36392 36393 36394 36395 36396 36397 36398 36399 36400 36401 36402 # 36403 # RPM support. 36404 # 36405 RPM='' 36406 for ac_prog in gnutar gtar tar 36407 do 36408 # Extract the first word of "$ac_prog", so it can be a program name with args. 36409 set dummy $ac_prog; ac_word=$2 36410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36411 $as_echo_n "checking for $ac_word... " >&6; } 36412 if ${ac_cv_prog_TAR+:} false; then : 36413 $as_echo_n "(cached) " >&6 36414 else 36415 if test -n "$TAR"; then 36416 ac_cv_prog_TAR="$TAR" # Let the user override the test. 36417 else 36418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36419 for as_dir in $PATH 36420 do 36421 IFS=$as_save_IFS 36422 test -z "$as_dir" && as_dir=. 36423 for ac_exec_ext in '' $ac_executable_extensions; do 36424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36425 ac_cv_prog_TAR="$ac_prog" 36426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36427 break 2 36428 fi 36429 done 36430 done 36431 IFS=$as_save_IFS 36432 36433 fi 36434 fi 36435 TAR=$ac_cv_prog_TAR 36436 if test -n "$TAR"; then 36437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 36438 $as_echo "$TAR" >&6; } 36439 else 36440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36441 $as_echo "no" >&6; } 36442 fi 36443 36444 36445 test -n "$TAR" && break 36446 done 36447 36448 for ac_prog in perl 36449 do 36450 # Extract the first word of "$ac_prog", so it can be a program name with args. 36451 set dummy $ac_prog; ac_word=$2 36452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36453 $as_echo_n "checking for $ac_word... " >&6; } 36454 if ${ac_cv_prog_PERL+:} false; then : 36455 $as_echo_n "(cached) " >&6 36456 else 36457 if test -n "$PERL"; then 36458 ac_cv_prog_PERL="$PERL" # Let the user override the test. 36459 else 36460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36461 for as_dir in $PATH 36462 do 36463 IFS=$as_save_IFS 36464 test -z "$as_dir" && as_dir=. 36465 for ac_exec_ext in '' $ac_executable_extensions; do 36466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36467 ac_cv_prog_PERL="$ac_prog" 36468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36469 break 2 36470 fi 36471 done 36472 done 36473 IFS=$as_save_IFS 36474 36475 fi 36476 fi 36477 PERL=$ac_cv_prog_PERL 36478 if test -n "$PERL"; then 36479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 36480 $as_echo "$PERL" >&6; } 36481 else 36482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36483 $as_echo "no" >&6; } 36484 fi 36485 36486 36487 test -n "$PERL" && break 36488 done 36489 36490 for ac_prog in rpmbuild rpm 36491 do 36492 # Extract the first word of "$ac_prog", so it can be a program name with args. 36493 set dummy $ac_prog; ac_word=$2 36494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36495 $as_echo_n "checking for $ac_word... " >&6; } 36496 if ${ac_cv_prog_RPM+:} false; then : 36497 $as_echo_n "(cached) " >&6 36498 else 36499 if test -n "$RPM"; then 36500 ac_cv_prog_RPM="$RPM" # Let the user override the test. 36501 else 36502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36503 for as_dir in $PATH 36504 do 36505 IFS=$as_save_IFS 36506 test -z "$as_dir" && as_dir=. 36507 for ac_exec_ext in '' $ac_executable_extensions; do 36508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36509 ac_cv_prog_RPM="$ac_prog" 36510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36511 break 2 36512 fi 36513 done 36514 done 36515 IFS=$as_save_IFS 36516 36517 fi 36518 fi 36519 RPM=$ac_cv_prog_RPM 36520 if test -n "$RPM"; then 36521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5 36522 $as_echo "$RPM" >&6; } 36523 else 36524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36525 $as_echo "no" >&6; } 36526 fi 36527 36528 36529 test -n "$RPM" && break 36530 done 36531 36532 36533 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} 36534 36535 36536 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 36537 36538 36539 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} 36540 36541 36542 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 36543 36544 36545 if test "x$RPM" != "x" ; then 36546 RPM_DELEGATE_TRUE= 36547 RPM_DELEGATE_FALSE='#' 36548 else 36549 RPM_DELEGATE_TRUE='#' 36550 RPM_DELEGATE_FALSE= 36551 fi 36552 36553 36554 # 36555 # 7ZIP support (http://p7zip.sourceforge.net/) 36556 # 36557 P7ZIP='' 36558 for ac_prog in 7za 36559 do 36560 # Extract the first word of "$ac_prog", so it can be a program name with args. 36561 set dummy $ac_prog; ac_word=$2 36562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36563 $as_echo_n "checking for $ac_word... " >&6; } 36564 if ${ac_cv_prog_P7ZIP+:} false; then : 36565 $as_echo_n "(cached) " >&6 36566 else 36567 if test -n "$P7ZIP"; then 36568 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test. 36569 else 36570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36571 for as_dir in $PATH 36572 do 36573 IFS=$as_save_IFS 36574 test -z "$as_dir" && as_dir=. 36575 for ac_exec_ext in '' $ac_executable_extensions; do 36576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36577 ac_cv_prog_P7ZIP="$ac_prog" 36578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36579 break 2 36580 fi 36581 done 36582 done 36583 IFS=$as_save_IFS 36584 36585 fi 36586 fi 36587 P7ZIP=$ac_cv_prog_P7ZIP 36588 if test -n "$P7ZIP"; then 36589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5 36590 $as_echo "$P7ZIP" >&6; } 36591 else 36592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36593 $as_echo "no" >&6; } 36594 fi 36595 36596 36597 test -n "$P7ZIP" && break 36598 done 36599 36600 36601 if test "x$P7ZIP" != "x" ; then 36602 P7ZIP_DELEGATE_TRUE= 36603 P7ZIP_DELEGATE_FALSE='#' 36604 else 36605 P7ZIP_DELEGATE_TRUE='#' 36606 P7ZIP_DELEGATE_FALSE= 36607 fi 36608 36609 36610 # 36611 # ZIP support (http://www.info-zip.org/Zip.html) 36612 # 36613 ZIP='' 36614 for ac_prog in zip 36615 do 36616 # Extract the first word of "$ac_prog", so it can be a program name with args. 36617 set dummy $ac_prog; ac_word=$2 36618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36619 $as_echo_n "checking for $ac_word... " >&6; } 36620 if ${ac_cv_prog_ZIP+:} false; then : 36621 $as_echo_n "(cached) " >&6 36622 else 36623 if test -n "$ZIP"; then 36624 ac_cv_prog_ZIP="$ZIP" # Let the user override the test. 36625 else 36626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36627 for as_dir in $PATH 36628 do 36629 IFS=$as_save_IFS 36630 test -z "$as_dir" && as_dir=. 36631 for ac_exec_ext in '' $ac_executable_extensions; do 36632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36633 ac_cv_prog_ZIP="$ac_prog" 36634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36635 break 2 36636 fi 36637 done 36638 done 36639 IFS=$as_save_IFS 36640 36641 fi 36642 fi 36643 ZIP=$ac_cv_prog_ZIP 36644 if test -n "$ZIP"; then 36645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 36646 $as_echo "$ZIP" >&6; } 36647 else 36648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36649 $as_echo "no" >&6; } 36650 fi 36651 36652 36653 test -n "$ZIP" && break 36654 done 36655 36656 36657 if test "x$ZIP" != "x" ; then 36658 ZIP_DELEGATE_TRUE= 36659 ZIP_DELEGATE_FALSE='#' 36660 else 36661 ZIP_DELEGATE_TRUE='#' 36662 ZIP_DELEGATE_FALSE= 36663 fi 36664 36665 36666 # 36667 # GhostPCL related configuration. 36668 # 36669 PCLColorDevice=ppmraw 36670 PCLCMYKDevice=pamcmyk32 36671 PCLMonoDevice=pbmraw 36672 if test -z "$PCLVersion"; then 36673 PCLVersion='unknown' 36674 fi 36675 if test $have_pcl = 'yes'; then 36676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 36677 $as_echo "-------------------------------------------------------------" >&6; } 36678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5 36679 $as_echo_n "checking for PCL... " >&6; } 36680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 36681 $as_echo "" >&6; } 36682 # PCLColorDevice 36683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5 36684 $as_echo_n "checking for pcl color device... " >&6; } 36685 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36686 : 36687 else 36688 PCLColorDevice=ppmraw 36689 fi 36690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5 36691 $as_echo "$PCLColorDevice" >&6; } 36692 36693 # PCLCMYKDevice 36694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5 36695 $as_echo_n "checking for pcl CMYK device... " >&6; } 36696 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36697 : 36698 else 36699 PCLCMYKDevice=$PCLColorDevice 36700 fi 36701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5 36702 $as_echo "$PCLCMYKDevice" >&6; } 36703 36704 # PCLMonoDevice 36705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5 36706 $as_echo_n "checking for pcl mono device... " >&6; } 36707 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36708 : 36709 else 36710 PCLMonoDevice=$PCLColorDevice 36711 fi 36712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5 36713 $as_echo "$PCLMonoDevice" >&6; } 36714 fi 36715 36716 36717 36718 36719 36720 36721 # 36722 # GhostXPS related configuration. 36723 # 36724 XPSColorDevice=ppmraw 36725 XPSCMYKDevice=bmpsep8 36726 XPSMonoDevice=pbmraw 36727 if test -z "$XPSVersion"; then 36728 XPSVersion='unknown' 36729 fi 36730 if test $have_xps = 'yes'; then 36731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 36732 $as_echo "-------------------------------------------------------------" >&6; } 36733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5 36734 $as_echo_n "checking for XPS... " >&6; } 36735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 36736 $as_echo "" >&6; } 36737 # XPSColorDevice 36738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5 36739 $as_echo_n "checking for xps color device... " >&6; } 36740 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36741 : 36742 else 36743 XPSColorDevice=ppmraw 36744 fi 36745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5 36746 $as_echo "$XPSColorDevice" >&6; } 36747 36748 # XPSCMYKDevice 36749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5 36750 $as_echo_n "checking for xps CMYK device... " >&6; } 36751 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36752 : 36753 else 36754 XPSCMYKDevice=$XPSColorDevice 36755 fi 36756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5 36757 $as_echo "$XPSCMYKDevice" >&6; } 36758 36759 # XPSMonoDevice 36760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5 36761 $as_echo_n "checking for xps mono device... " >&6; } 36762 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36763 : 36764 else 36765 XPSMonoDevice=$XPSColorDevice 36766 fi 36767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5 36768 $as_echo "$XPSMonoDevice" >&6; } 36769 fi 36770 36771 36772 36773 36774 36775 36776 # 36777 # Ghostscript related configuration. 36778 # 36779 GSAlphaDevice=pngalpha 36780 GSColorDevice=pnmraw 36781 GSCMYKDevice=pamcmyk32 36782 GSMonoDevice=pbmraw 36783 GSPDFDevice=pdfwrite 36784 GSPSDevice=ps2write 36785 GSEPSDevice=eps2write 36786 GSVersion='unknown' 36787 if test $have_gs = 'yes'; then 36788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 36789 $as_echo "-------------------------------------------------------------" >&6; } 36790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 36791 $as_echo_n "checking for Ghostscript... " >&6; } 36792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 36793 $as_echo "" >&6; } 36794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5 36795 $as_echo_n "checking for Ghostscript version... " >&6; } 36796 if GSVersion=`$PSDelegate --version`; then 36797 : 36798 else 36799 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'` 36800 fi 36801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5 36802 $as_echo "$GSVersion" >&6; } 36803 36804 # GSColorDevice 36805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5 36806 $as_echo_n "checking for gs color device... " >&6; } 36807 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36808 : 36809 else 36810 GSColorDevice=ppmraw 36811 fi 36812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5 36813 $as_echo "$GSColorDevice" >&6; } 36814 36815 # GSAlphaDevice 36816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5 36817 $as_echo_n "checking for gs alpha device... " >&6; } 36818 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36819 : 36820 else 36821 GSAlphaDevice=$GSColorDevice 36822 fi 36823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5 36824 $as_echo "$GSAlphaDevice" >&6; } 36825 36826 # GSCMYKDevice 36827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5 36828 $as_echo_n "checking for gs CMYK device... " >&6; } 36829 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36830 : 36831 else 36832 GSCMYKDevice=pam 36833 fi 36834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5 36835 $as_echo "$GSCMYKDevice" >&6; } 36836 36837 # GSMonoDevice 36838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5 36839 $as_echo_n "checking for gs mono device... " >&6; } 36840 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36841 : 36842 else 36843 GSMonoDevice=$GSColorDevice 36844 fi 36845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5 36846 $as_echo "$GSMonoDevice" >&6; } 36847 36848 # GSPDFDevice 36849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5 36850 $as_echo_n "checking for gs PDF writing device... " >&6; } 36851 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36852 : 36853 else 36854 GSPDFDevice=nodevice 36855 fi 36856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5 36857 $as_echo "$GSPDFDevice" >&6; } 36858 36859 # GSPSDevice 36860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5 36861 $as_echo_n "checking for gs PS writing device... " >&6; } 36862 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36863 : 36864 else 36865 GSPSDevice=pswrite 36866 fi 36867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5 36868 $as_echo "$GSPSDevice" >&6; } 36869 36870 # GSEPSDevice 36871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5 36872 $as_echo_n "checking for gs EPS writing device... " >&6; } 36873 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then 36874 : 36875 else 36876 GSEPSDevice=epswrite 36877 fi 36878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5 36879 $as_echo "$GSEPSDevice" >&6; } 36880 fi 36881 36882 36883 36884 36885 36886 36887 36888 36889 36890 36891 # 36892 # PerlMagick-related configuration 36893 # 36894 36895 # Look for PERL if PerlMagick requested 36896 # If name/path of desired PERL interpreter is specified, look for that one first 36897 have_perl='no' 36898 if test "$with_perl" != 'no'; then 36899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 36900 $as_echo "-------------------------------------------------------------" >&6; } 36901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5 36902 $as_echo_n "checking for Perl... " >&6; } 36903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 36904 $as_echo "" >&6; } 36905 if test "$with_perl" != 'yes'; then 36906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5 36907 $as_echo_n "checking for perl... " >&6; } 36908 if ${ac_cv_path_PERL+:} false; then : 36909 $as_echo_n "(cached) " >&6 36910 else 36911 ac_cv_path_PERL="$with_perl" 36912 fi 36913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5 36914 $as_echo "$ac_cv_path_PERL" >&6; }; 36915 PERL=$ac_cv_path_PERL 36916 have_perl="$ac_cv_path_PERL" 36917 else 36918 for ac_prog in perl perl5 36919 do 36920 # Extract the first word of "$ac_prog", so it can be a program name with args. 36921 set dummy $ac_prog; ac_word=$2 36922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36923 $as_echo_n "checking for $ac_word... " >&6; } 36924 if ${ac_cv_path_PERL+:} false; then : 36925 $as_echo_n "(cached) " >&6 36926 else 36927 case $PERL in 36928 [\\/]* | ?:[\\/]*) 36929 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 36930 ;; 36931 *) 36932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36933 for as_dir in $PATH 36934 do 36935 IFS=$as_save_IFS 36936 test -z "$as_dir" && as_dir=. 36937 for ac_exec_ext in '' $ac_executable_extensions; do 36938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36939 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 36940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36941 break 2 36942 fi 36943 done 36944 done 36945 IFS=$as_save_IFS 36946 36947 ;; 36948 esac 36949 fi 36950 PERL=$ac_cv_path_PERL 36951 if test -n "$PERL"; then 36952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 36953 $as_echo "$PERL" >&6; } 36954 else 36955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36956 $as_echo "no" >&6; } 36957 fi 36958 36959 36960 test -n "$PERL" && break 36961 done 36962 if test "$ac_cv_path_PERL"; then 36963 have_perl="$ac_cv_path_PERL" 36964 fi 36965 fi 36966 fi 36967 36968 if test "$with_perl" != 'yes' ; then 36969 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl " 36970 fi 36971 36972 PERL_SUPPORTS_DESTDIR='no' 36973 36974 with_perl_static='no' 36975 with_perl_dynamic='no' 36976 if test "$have_perl" != 'no'; then 36977 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then 36978 with_perl_static='yes' 36979 fi 36980 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then 36981 with_perl_dynamic='yes' 36982 fi 36983 # Is PERL's MakeMaker new enough to support DESTDIR? 36984 36985 36986 36987 36988 if test -n "$PERL"; then : 36989 36990 ax_perl_version="5.8.1" 36991 36992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5 36993 $as_echo_n "checking for perl version... " >&6; } 36994 36995 perl_version=`$PERL --version 2>&1 \ 36996 | $SED -n -e '/This is perl/b inspect 36997 b 36998 : inspect 36999 s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'` 37000 37001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5 37002 $as_echo "$perl_version" >&6; } 37003 37004 PERL_VERSION=$perl_version 37005 37006 37007 37008 37009 37010 # Used to indicate true or false condition 37011 ax_compare_version=false 37012 37013 # Convert the two version strings to be compared into a format that 37014 # allows a simple string comparison. The end result is that a version 37015 # string of the form 1.12.5-r617 will be converted to the form 37016 # 0001001200050617. In other words, each number is zero padded to four 37017 # digits, and non digits are removed. 37018 37019 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 37020 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 37021 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 37022 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 37023 -e 's/[^0-9]//g'` 37024 37025 37026 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 37027 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 37028 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 37029 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 37030 -e 's/[^0-9]//g'` 37031 37032 37033 ax_compare_version=`echo "x$ax_compare_version_A 37034 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` 37035 37036 37037 37038 if test "$ax_compare_version" = "true" ; then 37039 37040 : 37041 PERL_SUPPORTS_DESTDIR='yes' 37042 37043 else 37044 : 37045 PERL_SUPPORTS_DESTDIR='no' 37046 37047 fi 37048 37049 37050 else 37051 37052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5 37053 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;} 37054 PERL_SUPPORTS_DESTDIR='no' 37055 37056 fi 37057 37058 fi 37059 if test "$have_perl" != 'no'; then 37060 WITH_PERL_TRUE= 37061 WITH_PERL_FALSE='#' 37062 else 37063 WITH_PERL_TRUE='#' 37064 WITH_PERL_FALSE= 37065 fi 37066 37067 if test $with_perl_static = 'yes'; then 37068 WITH_PERL_STATIC_TRUE= 37069 WITH_PERL_STATIC_FALSE='#' 37070 else 37071 WITH_PERL_STATIC_TRUE='#' 37072 WITH_PERL_STATIC_FALSE= 37073 fi 37074 37075 if test $with_perl_dynamic = 'yes'; then 37076 WITH_PERL_DYNAMIC_TRUE= 37077 WITH_PERL_DYNAMIC_FALSE='#' 37078 else 37079 WITH_PERL_DYNAMIC_TRUE='#' 37080 WITH_PERL_DYNAMIC_FALSE= 37081 fi 37082 37083 37084 37085 # Determine path to pick up MagickCore library from for use with building PerlMagick 37086 MAGICKCORE_PATH="${LIB_DIR}" 37087 if test $with_perl_static = 'yes'; then 37088 # Find out where libtool hides its uninstalled libraries (as libtool_objdir) 37089 libtool_objdir=$objdir 37090 37091 # Linker search path to library, followed by -lMagickCore 37092 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}" 37093 fi 37094 37095 37096 # Create a simple string containing format names for all delegate libraries. 37097 MAGICK_DELEGATES='' 37098 if test "$have_autotrace" = 'yes' ; then 37099 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace" 37100 fi 37101 if test "$have_bzlib" = 'yes' ; then 37102 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib" 37103 fi 37104 if test "$have_dps" = 'yes' ; then 37105 MAGICK_DELEGATES="$MAGICK_DELEGATES dps" 37106 fi 37107 if test "$have_djvu" = 'yes' ; then 37108 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu" 37109 fi 37110 if test "$have_avconv" = 'yes' ; then 37111 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg" 37112 fi 37113 if test "$have_fftw" = 'yes' ; then 37114 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw" 37115 fi 37116 if test "$have_flif" = 'yes' ; then 37117 MAGICK_DELEGATES="$MAGICK_DELEGATES flif" 37118 fi 37119 if test "$have_fpx" = 'yes' ; then 37120 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx" 37121 fi 37122 if test "$have_fontconfig" = 'yes' ; then 37123 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig" 37124 fi 37125 if test "$have_freetype" = 'yes' ; then 37126 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype" 37127 fi 37128 if test "$have_gslib" = 'yes' ; then 37129 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib" 37130 fi 37131 if test "$have_jbig" = 'yes' ; then 37132 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig" 37133 fi 37134 if test "$have_png$have_jpeg" = 'yesyes' ; then 37135 MAGICK_DELEGATES="$MAGICK_DELEGATES jng" 37136 fi 37137 if test "$have_jpeg" = 'yes' ; then 37138 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg" 37139 fi 37140 if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then 37141 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms" 37142 fi 37143 if test "$have_lqr" = 'yes' ; then 37144 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr" 37145 fi 37146 if test "$have_lzma" = 'yes' ; then 37147 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma" 37148 fi 37149 if test "$have_openexr" = 'yes' ; then 37150 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr" 37151 fi 37152 if test "$have_openjp2" = 'yes' ; then 37153 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2" 37154 fi 37155 if test "$have_pango" = 'yes' ; then 37156 MAGICK_DELEGATES="$MAGICK_DELEGATES pango" 37157 fi 37158 if test "$have_png" = 'yes' ; then 37159 MAGICK_DELEGATES="$MAGICK_DELEGATES png" 37160 fi 37161 have_ps='no' 37162 if test "$have_dps" = 'yes' || \ 37163 test "$have_gs" = 'yes' || \ 37164 test "${native_win32_build}" = 'yes' ; then 37165 have_ps='yes' 37166 fi 37167 if test "$have_ps" = 'yes' ; then 37168 MAGICK_DELEGATES="$MAGICK_DELEGATES ps" 37169 fi 37170 if test "$have_raqm" = 'yes' ; then 37171 MAGICK_DELEGATES="$MAGICK_DELEGATES raqm" 37172 fi 37173 if test "$have_ra_ppm" = 'yes' ; then 37174 MAGICK_DELEGATES="$MAGICK_DELEGATES rad" 37175 fi 37176 if test "$have_rsvg" = 'yes' ; then 37177 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg" 37178 fi 37179 if test "$have_tiff" = 'yes' ; then 37180 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff" 37181 fi 37182 if test "$have_ttf" = 'yes' ; then 37183 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf" 37184 fi 37185 if test "$have_webp" = 'yes' ; then 37186 MAGICK_DELEGATES="$MAGICK_DELEGATES webp" 37187 fi 37188 if test "$have_wmf" = 'yes' ; then 37189 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf" 37190 fi 37191 if test "$have_x" = 'yes' ; then 37192 MAGICK_DELEGATES="$MAGICK_DELEGATES x" 37193 fi 37194 if test "$have_xml" = 'yes' ; then 37195 MAGICK_DELEGATES="$MAGICK_DELEGATES xml" 37196 fi 37197 if test "$have_zlib" = 'yes' ; then 37198 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib" 37199 fi 37200 37201 # Remove extraneous spaces from output variables (asthetic) 37202 MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'` 37203 MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'` 37204 37205 37206 37207 # 37208 # Handle special compiler flags 37209 # 37210 37211 # Add '-p' if prof source profiling support enabled 37212 if test "$enable_prof" = 'yes'; then 37213 CFLAGS="-p $CFLAGS" 37214 CXXFLAGS="-p $CXXFLAGS" 37215 LDFLAGS="-p $LDFLAGS" 37216 fi 37217 37218 # Add '-pg' if gprof source profiling support enabled 37219 if test "$enable_gprof" = 'yes'; then 37220 CFLAGS="-pg $CFLAGS" 37221 CXXFLAGS="-pg $CXXFLAGS" 37222 LDFLAGS="-pg $LDFLAGS" 37223 fi 37224 37225 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled 37226 # This is a gcc-specific feature 37227 if test "$enable_gcov" = 'yes'; then 37228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5 37229 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; } 37230 if ${ac_cv_lib_gcov__gcov_init+:} false; then : 37231 $as_echo_n "(cached) " >&6 37232 else 37233 ac_check_lib_save_LIBS=$LIBS 37234 LIBS="-lgcov $LIBS" 37235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37236 /* end confdefs.h. */ 37237 37238 /* Override any GCC internal prototype to avoid an error. 37239 Use char because int might match the return type of a GCC 37240 builtin and then its argument prototype would still apply. */ 37241 #ifdef __cplusplus 37242 extern "C" 37243 #endif 37244 char _gcov_init (); 37245 int 37246 main () 37247 { 37248 return _gcov_init (); 37249 ; 37250 return 0; 37251 } 37252 _ACEOF 37253 if ac_fn_c_try_link "$LINENO"; then : 37254 ac_cv_lib_gcov__gcov_init=yes 37255 else 37256 ac_cv_lib_gcov__gcov_init=no 37257 fi 37258 rm -f core conftest.err conftest.$ac_objext \ 37259 conftest$ac_exeext conftest.$ac_ext 37260 LIBS=$ac_check_lib_save_LIBS 37261 fi 37262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5 37263 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; } 37264 if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then : 37265 cat >>confdefs.h <<_ACEOF 37266 #define HAVE_LIBGCOV 1 37267 _ACEOF 37268 37269 LIBS="-lgcov $LIBS" 37270 37271 fi 37272 37273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5 37274 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; } 37275 if ${ac_cv_lib_gcov___gcov_init+:} false; then : 37276 $as_echo_n "(cached) " >&6 37277 else 37278 ac_check_lib_save_LIBS=$LIBS 37279 LIBS="-lgcov $LIBS" 37280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37281 /* end confdefs.h. */ 37282 37283 /* Override any GCC internal prototype to avoid an error. 37284 Use char because int might match the return type of a GCC 37285 builtin and then its argument prototype would still apply. */ 37286 #ifdef __cplusplus 37287 extern "C" 37288 #endif 37289 char __gcov_init (); 37290 int 37291 main () 37292 { 37293 return __gcov_init (); 37294 ; 37295 return 0; 37296 } 37297 _ACEOF 37298 if ac_fn_c_try_link "$LINENO"; then : 37299 ac_cv_lib_gcov___gcov_init=yes 37300 else 37301 ac_cv_lib_gcov___gcov_init=no 37302 fi 37303 rm -f core conftest.err conftest.$ac_objext \ 37304 conftest$ac_exeext conftest.$ac_ext 37305 LIBS=$ac_check_lib_save_LIBS 37306 fi 37307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5 37308 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; } 37309 if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then : 37310 cat >>confdefs.h <<_ACEOF 37311 #define HAVE_LIBGCOV 1 37312 _ACEOF 37313 37314 LIBS="-lgcov $LIBS" 37315 37316 fi 37317 37318 case "$target_os" in 37319 darwin*) 37320 OSX_GCOV_LDFLAG="-Wl,-single_module" 37321 ;; 37322 *) 37323 OSX_GCOV_LDFLAG="" 37324 ;; 37325 esac 37326 37327 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS" 37328 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS" 37329 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS" 37330 fi 37331 37332 # 37333 # Build library dependency list for libMagickCore 37334 # 37335 37336 if test "$build_modules" != 'no'; then 37337 MAGICK_DEP_LIBS="$USER_LIBS $LCMS_LIBS $FREETYPE_LIBS $RAQM_LIBS $LQR_LIBS $FFTW_LIBS $FLIF_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS" 37338 else 37339 MAGICK_DEP_LIBS="$USER_LIBS $JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $RAQM_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FLIF_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $LIBOPENJP2_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS" 37340 fi 37341 37342 37343 # Pass only user-provided LIBS as "global" libraries 37344 LIBS=$USER_LIBS 37345 37346 #AC_SUBST(CPPFLAGS) 37347 37348 #AC_SUBST(LDFLAGS) 37349 #AC_SUBST(X_PRE_LIBS) 37350 #AC_SUBST(X_LIBS) 37351 #AC_SUBST(X_EXTRA_LIBS) 37352 37353 MAGICK_CFLAGS=$CFLAGS 37354 MAGICK_CXXFLAGS="$CXXFLAGS" 37355 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'` 37356 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'` 37357 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS" 37358 MAGICK_LIBS="$MAGICK_DEP_LIBS" 37359 37360 37361 37362 37363 37364 37365 37366 37367 # Set configured scripts to executable. 37368 ac_config_commands="$ac_config_commands default" 37369 37370 ac_config_commands="$ac_config_commands magick.sh.in" 37371 37372 ac_config_commands="$ac_config_commands MagickCore-config.in" 37373 37374 ac_config_commands="$ac_config_commands MagickWand-config.in" 37375 37376 ac_config_commands="$ac_config_commands Magick++-config.in" 37377 37378 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in" 37379 37380 37381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 37382 $as_echo "-------------------------------------------------------------" >&6; } 37383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5 37384 $as_echo "Update ImageMagick configuration" >&6; } 37385 37386 rm -f magick-version 37387 37388 result_dejavu_font_dir='none' 37389 if test "${dejavu_font_dir}x" != 'x'; then 37390 result_dejavu_font_dir=$dejavu_font_dir 37391 fi 37392 37393 result_ghostscript_font_dir='none' 37394 if test "${ghostscript_font_dir}x" != 'x'; then 37395 result_ghostscript_font_dir=$ghostscript_font_dir 37396 fi 37397 37398 result_windows_font_dir='none' 37399 if test "${windows_font_dir}x" != 'x'; then 37400 result_windows_font_dir=${windows_font_dir} 37401 fi 37402 37403 # ============================================================================== 37404 # Generate build environment 37405 # ============================================================================== 37406 ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-apple.xml config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap 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/magick.1 utilities/magick-script.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc" 37407 37408 cat >confcache <<\_ACEOF 37409 # This file is a shell script that caches the results of configure 37410 # tests run on this system so they can be shared between configure 37411 # scripts and configure runs, see configure's option --config-cache. 37412 # It is not useful on other systems. If it contains results you don't 37413 # want to keep, you may remove or edit it. 37414 # 37415 # config.status only pays attention to the cache file if you give it 37416 # the --recheck option to rerun configure. 37417 # 37418 # `ac_cv_env_foo' variables (set or unset) will be overridden when 37419 # loading this file, other *unset* `ac_cv_foo' will be assigned the 37420 # following values. 37421 37422 _ACEOF 37423 37424 # The following way of writing the cache mishandles newlines in values, 37425 # but we know of no workaround that is simple, portable, and efficient. 37426 # So, we kill variables containing newlines. 37427 # Ultrix sh set writes to stderr and can't be redirected directly, 37428 # and sets the high bit in the cache file unless we assign to the vars. 37429 ( 37430 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 37431 eval ac_val=\$$ac_var 37432 case $ac_val in #( 37433 *${as_nl}*) 37434 case $ac_var in #( 37435 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 37436 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 37437 esac 37438 case $ac_var in #( 37439 _ | IFS | as_nl) ;; #( 37440 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 37441 *) { eval $ac_var=; unset $ac_var;} ;; 37442 esac ;; 37443 esac 37444 done 37445 37446 (set) 2>&1 | 37447 case $as_nl`(ac_space=' '; set) 2>&1` in #( 37448 *${as_nl}ac_space=\ *) 37449 # `set' does not quote correctly, so add quotes: double-quote 37450 # substitution turns \\\\ into \\, and sed turns \\ into \. 37451 sed -n \ 37452 "s/'/'\\\\''/g; 37453 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 37454 ;; #( 37455 *) 37456 # `set' quotes correctly as required by POSIX, so do not add quotes. 37457 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 37458 ;; 37459 esac | 37460 sort 37461 ) | 37462 sed ' 37463 /^ac_cv_env_/b end 37464 t clear 37465 :clear 37466 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 37467 t end 37468 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 37469 :end' >>confcache 37470 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 37471 if test -w "$cache_file"; then 37472 if test "x$cache_file" != "x/dev/null"; then 37473 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 37474 $as_echo "$as_me: updating cache $cache_file" >&6;} 37475 if test ! -f "$cache_file" || test -h "$cache_file"; then 37476 cat confcache >"$cache_file" 37477 else 37478 case $cache_file in #( 37479 */* | ?:*) 37480 mv -f confcache "$cache_file"$$ && 37481 mv -f "$cache_file"$$ "$cache_file" ;; #( 37482 *) 37483 mv -f confcache "$cache_file" ;; 37484 esac 37485 fi 37486 fi 37487 else 37488 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 37489 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 37490 fi 37491 fi 37492 rm -f confcache 37493 37494 test "x$prefix" = xNONE && prefix=$ac_default_prefix 37495 # Let make expand exec_prefix. 37496 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 37497 37498 DEFS=-DHAVE_CONFIG_H 37499 37500 ac_libobjs= 37501 ac_ltlibobjs= 37502 U= 37503 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 37504 # 1. Remove the extension, and $U if already installed. 37505 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 37506 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 37507 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 37508 # will be set to the directory where LIBOBJS objects are built. 37509 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 37510 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 37511 done 37512 LIBOBJS=$ac_libobjs 37513 37514 LTLIBOBJS=$ac_ltlibobjs 37515 37516 37517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 37518 $as_echo_n "checking that generated files are newer than configure... " >&6; } 37519 if test -n "$am_sleep_pid"; then 37520 # Hide warnings about reused PIDs. 37521 wait $am_sleep_pid 2>/dev/null 37522 fi 37523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 37524 $as_echo "done" >&6; } 37525 if test -n "$EXEEXT"; then 37526 am__EXEEXT_TRUE= 37527 am__EXEEXT_FALSE='#' 37528 else 37529 am__EXEEXT_TRUE='#' 37530 am__EXEEXT_FALSE= 37531 fi 37532 37533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 37534 $as_echo_n "checking that generated files are newer than configure... " >&6; } 37535 if test -n "$am_sleep_pid"; then 37536 # Hide warnings about reused PIDs. 37537 wait $am_sleep_pid 2>/dev/null 37538 fi 37539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 37540 $as_echo "done" >&6; } 37541 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 37542 as_fn_error $? "conditional \"AMDEP\" was never defined. 37543 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37544 fi 37545 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 37546 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 37547 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37548 fi 37549 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 37550 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 37551 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37552 fi 37553 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 37554 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 37555 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37556 fi 37557 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then 37558 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined. 37559 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37560 fi 37561 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then 37562 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined. 37563 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37564 fi 37565 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then 37566 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined. 37567 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37568 fi 37569 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then 37570 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined. 37571 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37572 fi 37573 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then 37574 as_fn_error $? "conditional \"USING_CL\" was never defined. 37575 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37576 fi 37577 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then 37578 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined. 37579 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37580 fi 37581 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then 37582 as_fn_error $? "conditional \"WITH_MODULES\" was never defined. 37583 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37584 fi 37585 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 37586 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 37587 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37588 fi 37589 if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then 37590 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined. 37591 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37592 fi 37593 37594 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 37595 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 37596 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37597 fi 37598 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then 37599 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined. 37600 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37601 fi 37602 if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then 37603 as_fn_error $? "conditional \"HasJEMALLOC\" was never defined. 37604 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37605 fi 37606 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then 37607 as_fn_error $? "conditional \"HasUMEM\" was never defined. 37608 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37609 fi 37610 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then 37611 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined. 37612 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37613 fi 37614 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then 37615 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined. 37616 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37617 fi 37618 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then 37619 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined. 37620 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37621 fi 37622 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then 37623 as_fn_error $? "conditional \"WITH_LTDL\" was never defined. 37624 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37625 fi 37626 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then 37627 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined. 37628 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37629 fi 37630 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then 37631 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined. 37632 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37633 fi 37634 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then 37635 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined. 37636 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37637 fi 37638 if test -z "${FLIF_DELEGATE_TRUE}" && test -z "${FLIF_DELEGATE_FALSE}"; then 37639 as_fn_error $? "conditional \"FLIF_DELEGATE\" was never defined. 37640 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37641 fi 37642 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then 37643 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined. 37644 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37645 fi 37646 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then 37647 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined. 37648 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37649 fi 37650 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then 37651 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined. 37652 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37653 fi 37654 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then 37655 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined. 37656 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37657 fi 37658 if test -z "${RAQM_DELEGATE_TRUE}" && test -z "${RAQM_DELEGATE_FALSE}"; then 37659 as_fn_error $? "conditional \"RAQM_DELEGATE\" was never defined. 37660 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37661 fi 37662 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then 37663 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined. 37664 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37665 fi 37666 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then 37667 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined. 37668 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37669 fi 37670 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then 37671 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined. 37672 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37673 fi 37674 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then 37675 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined. 37676 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37677 fi 37678 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then 37679 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined. 37680 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37681 fi 37682 if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then 37683 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined. 37684 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37685 fi 37686 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then 37687 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined. 37688 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37689 fi 37690 if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then 37691 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined. 37692 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37693 fi 37694 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then 37695 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined. 37696 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37697 fi 37698 if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then 37699 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined. 37700 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37701 fi 37702 if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then 37703 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined. 37704 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37705 fi 37706 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then 37707 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined. 37708 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37709 fi 37710 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then 37711 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined. 37712 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37713 fi 37714 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then 37715 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined. 37716 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37717 fi 37718 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then 37719 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined. 37720 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37721 fi 37722 if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then 37723 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined. 37724 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37725 fi 37726 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then 37727 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined. 37728 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37729 fi 37730 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then 37731 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined. 37732 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37733 fi 37734 if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then 37735 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined. 37736 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37737 fi 37738 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then 37739 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined. 37740 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37741 fi 37742 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then 37743 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined. 37744 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37745 fi 37746 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then 37747 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined. 37748 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37749 fi 37750 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then 37751 as_fn_error $? "conditional \"WITH_PERL\" was never defined. 37752 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37753 fi 37754 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then 37755 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined. 37756 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37757 fi 37758 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then 37759 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined. 37760 Usually this means the macro was only invoked conditionally." "$LINENO" 5 37761 fi 37762 37763 : "${CONFIG_STATUS=./config.status}" 37764 ac_write_fail=0 37765 ac_clean_files_save=$ac_clean_files 37766 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 37767 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 37768 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 37769 as_write_fail=0 37770 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 37771 #! $SHELL 37772 # Generated by $as_me. 37773 # Run this file to recreate the current configuration. 37774 # Compiler output produced by configure, useful for debugging 37775 # configure, is in config.log if it exists. 37776 37777 debug=false 37778 ac_cs_recheck=false 37779 ac_cs_silent=false 37780 37781 SHELL=\${CONFIG_SHELL-$SHELL} 37782 export SHELL 37783 _ASEOF 37784 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 37785 ## -------------------- ## 37786 ## M4sh Initialization. ## 37787 ## -------------------- ## 37788 37789 # Be more Bourne compatible 37790 DUALCASE=1; export DUALCASE # for MKS sh 37791 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 37792 emulate sh 37793 NULLCMD=: 37794 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 37795 # is contrary to our usage. Disable this feature. 37796 alias -g '${1+"$@"}'='"$@"' 37797 setopt NO_GLOB_SUBST 37798 else 37799 case `(set -o) 2>/dev/null` in #( 37800 *posix*) : 37801 set -o posix ;; #( 37802 *) : 37803 ;; 37804 esac 37805 fi 37806 37807 37808 as_nl=' 37809 ' 37810 export as_nl 37811 # Printing a long string crashes Solaris 7 /usr/bin/printf. 37812 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 37813 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 37814 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 37815 # Prefer a ksh shell builtin over an external printf program on Solaris, 37816 # but without wasting forks for bash or zsh. 37817 if test -z "$BASH_VERSION$ZSH_VERSION" \ 37818 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 37819 as_echo='print -r --' 37820 as_echo_n='print -rn --' 37821 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 37822 as_echo='printf %s\n' 37823 as_echo_n='printf %s' 37824 else 37825 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 37826 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 37827 as_echo_n='/usr/ucb/echo -n' 37828 else 37829 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 37830 as_echo_n_body='eval 37831 arg=$1; 37832 case $arg in #( 37833 *"$as_nl"*) 37834 expr "X$arg" : "X\\(.*\\)$as_nl"; 37835 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 37836 esac; 37837 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 37838 ' 37839 export as_echo_n_body 37840 as_echo_n='sh -c $as_echo_n_body as_echo' 37841 fi 37842 export as_echo_body 37843 as_echo='sh -c $as_echo_body as_echo' 37844 fi 37845 37846 # The user is always right. 37847 if test "${PATH_SEPARATOR+set}" != set; then 37848 PATH_SEPARATOR=: 37849 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 37850 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 37851 PATH_SEPARATOR=';' 37852 } 37853 fi 37854 37855 37856 # IFS 37857 # We need space, tab and new line, in precisely that order. Quoting is 37858 # there to prevent editors from complaining about space-tab. 37859 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 37860 # splitting by setting IFS to empty value.) 37861 IFS=" "" $as_nl" 37862 37863 # Find who we are. Look in the path if we contain no directory separator. 37864 as_myself= 37865 case $0 in #(( 37866 *[\\/]* ) as_myself=$0 ;; 37867 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37868 for as_dir in $PATH 37869 do 37870 IFS=$as_save_IFS 37871 test -z "$as_dir" && as_dir=. 37872 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 37873 done 37874 IFS=$as_save_IFS 37875 37876 ;; 37877 esac 37878 # We did not find ourselves, most probably we were run as `sh COMMAND' 37879 # in which case we are not to be found in the path. 37880 if test "x$as_myself" = x; then 37881 as_myself=$0 37882 fi 37883 if test ! -f "$as_myself"; then 37884 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 37885 exit 1 37886 fi 37887 37888 # Unset variables that we do not need and which cause bugs (e.g. in 37889 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 37890 # suppresses any "Segmentation fault" message there. '((' could 37891 # trigger a bug in pdksh 5.2.14. 37892 for as_var in BASH_ENV ENV MAIL MAILPATH 37893 do eval test x\${$as_var+set} = xset \ 37894 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 37895 done 37896 PS1='$ ' 37897 PS2='> ' 37898 PS4='+ ' 37899 37900 # NLS nuisances. 37901 LC_ALL=C 37902 export LC_ALL 37903 LANGUAGE=C 37904 export LANGUAGE 37905 37906 # CDPATH. 37907 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 37908 37909 37910 # as_fn_error STATUS ERROR [LINENO LOG_FD] 37911 # ---------------------------------------- 37912 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 37913 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 37914 # script with STATUS, using 1 if that was 0. 37915 as_fn_error () 37916 { 37917 as_status=$1; test $as_status -eq 0 && as_status=1 37918 if test "$4"; then 37919 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 37920 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 37921 fi 37922 $as_echo "$as_me: error: $2" >&2 37923 as_fn_exit $as_status 37924 } # as_fn_error 37925 37926 37927 # as_fn_set_status STATUS 37928 # ----------------------- 37929 # Set $? to STATUS, without forking. 37930 as_fn_set_status () 37931 { 37932 return $1 37933 } # as_fn_set_status 37934 37935 # as_fn_exit STATUS 37936 # ----------------- 37937 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 37938 as_fn_exit () 37939 { 37940 set +e 37941 as_fn_set_status $1 37942 exit $1 37943 } # as_fn_exit 37944 37945 # as_fn_unset VAR 37946 # --------------- 37947 # Portably unset VAR. 37948 as_fn_unset () 37949 { 37950 { eval $1=; unset $1;} 37951 } 37952 as_unset=as_fn_unset 37953 # as_fn_append VAR VALUE 37954 # ---------------------- 37955 # Append the text in VALUE to the end of the definition contained in VAR. Take 37956 # advantage of any shell optimizations that allow amortized linear growth over 37957 # repeated appends, instead of the typical quadratic growth present in naive 37958 # implementations. 37959 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 37960 eval 'as_fn_append () 37961 { 37962 eval $1+=\$2 37963 }' 37964 else 37965 as_fn_append () 37966 { 37967 eval $1=\$$1\$2 37968 } 37969 fi # as_fn_append 37970 37971 # as_fn_arith ARG... 37972 # ------------------ 37973 # Perform arithmetic evaluation on the ARGs, and store the result in the 37974 # global $as_val. Take advantage of shells that can avoid forks. The arguments 37975 # must be portable across $(()) and expr. 37976 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 37977 eval 'as_fn_arith () 37978 { 37979 as_val=$(( $* )) 37980 }' 37981 else 37982 as_fn_arith () 37983 { 37984 as_val=`expr "$@" || test $? -eq 1` 37985 } 37986 fi # as_fn_arith 37987 37988 37989 if expr a : '\(a\)' >/dev/null 2>&1 && 37990 test "X`expr 00001 : '.*\(...\)'`" = X001; then 37991 as_expr=expr 37992 else 37993 as_expr=false 37994 fi 37995 37996 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 37997 as_basename=basename 37998 else 37999 as_basename=false 38000 fi 38001 38002 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 38003 as_dirname=dirname 38004 else 38005 as_dirname=false 38006 fi 38007 38008 as_me=`$as_basename -- "$0" || 38009 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 38010 X"$0" : 'X\(//\)$' \| \ 38011 X"$0" : 'X\(/\)' \| . 2>/dev/null || 38012 $as_echo X/"$0" | 38013 sed '/^.*\/\([^/][^/]*\)\/*$/{ 38014 s//\1/ 38015 q 38016 } 38017 /^X\/\(\/\/\)$/{ 38018 s//\1/ 38019 q 38020 } 38021 /^X\/\(\/\).*/{ 38022 s//\1/ 38023 q 38024 } 38025 s/.*/./; q'` 38026 38027 # Avoid depending upon Character Ranges. 38028 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 38029 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38030 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 38031 as_cr_digits='0123456789' 38032 as_cr_alnum=$as_cr_Letters$as_cr_digits 38033 38034 ECHO_C= ECHO_N= ECHO_T= 38035 case `echo -n x` in #((((( 38036 -n*) 38037 case `echo 'xy\c'` in 38038 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 38039 xy) ECHO_C='\c';; 38040 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 38041 ECHO_T=' ';; 38042 esac;; 38043 *) 38044 ECHO_N='-n';; 38045 esac 38046 38047 rm -f conf$$ conf$$.exe conf$$.file 38048 if test -d conf$$.dir; then 38049 rm -f conf$$.dir/conf$$.file 38050 else 38051 rm -f conf$$.dir 38052 mkdir conf$$.dir 2>/dev/null 38053 fi 38054 if (echo >conf$$.file) 2>/dev/null; then 38055 if ln -s conf$$.file conf$$ 2>/dev/null; then 38056 as_ln_s='ln -s' 38057 # ... but there are two gotchas: 38058 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 38059 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 38060 # In both cases, we have to default to `cp -pR'. 38061 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 38062 as_ln_s='cp -pR' 38063 elif ln conf$$.file conf$$ 2>/dev/null; then 38064 as_ln_s=ln 38065 else 38066 as_ln_s='cp -pR' 38067 fi 38068 else 38069 as_ln_s='cp -pR' 38070 fi 38071 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 38072 rmdir conf$$.dir 2>/dev/null 38073 38074 38075 # as_fn_mkdir_p 38076 # ------------- 38077 # Create "$as_dir" as a directory, including parents if necessary. 38078 as_fn_mkdir_p () 38079 { 38080 38081 case $as_dir in #( 38082 -*) as_dir=./$as_dir;; 38083 esac 38084 test -d "$as_dir" || eval $as_mkdir_p || { 38085 as_dirs= 38086 while :; do 38087 case $as_dir in #( 38088 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 38089 *) as_qdir=$as_dir;; 38090 esac 38091 as_dirs="'$as_qdir' $as_dirs" 38092 as_dir=`$as_dirname -- "$as_dir" || 38093 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 38094 X"$as_dir" : 'X\(//\)[^/]' \| \ 38095 X"$as_dir" : 'X\(//\)$' \| \ 38096 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 38097 $as_echo X"$as_dir" | 38098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 38099 s//\1/ 38100 q 38101 } 38102 /^X\(\/\/\)[^/].*/{ 38103 s//\1/ 38104 q 38105 } 38106 /^X\(\/\/\)$/{ 38107 s//\1/ 38108 q 38109 } 38110 /^X\(\/\).*/{ 38111 s//\1/ 38112 q 38113 } 38114 s/.*/./; q'` 38115 test -d "$as_dir" && break 38116 done 38117 test -z "$as_dirs" || eval "mkdir $as_dirs" 38118 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 38119 38120 38121 } # as_fn_mkdir_p 38122 if mkdir -p . 2>/dev/null; then 38123 as_mkdir_p='mkdir -p "$as_dir"' 38124 else 38125 test -d ./-p && rmdir ./-p 38126 as_mkdir_p=false 38127 fi 38128 38129 38130 # as_fn_executable_p FILE 38131 # ----------------------- 38132 # Test if FILE is an executable regular file. 38133 as_fn_executable_p () 38134 { 38135 test -f "$1" && test -x "$1" 38136 } # as_fn_executable_p 38137 as_test_x='test -x' 38138 as_executable_p=as_fn_executable_p 38139 38140 # Sed expression to map a string onto a valid CPP name. 38141 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 38142 38143 # Sed expression to map a string onto a valid variable name. 38144 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 38145 38146 38147 exec 6>&1 38148 ## ----------------------------------- ## 38149 ## Main body of $CONFIG_STATUS script. ## 38150 ## ----------------------------------- ## 38151 _ASEOF 38152 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 38153 38154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38155 # Save the log message, to keep $0 and so on meaningful, and to 38156 # report actual input values of CONFIG_FILES etc. instead of their 38157 # values after options handling. 38158 ac_log=" 38159 This file was extended by ImageMagick $as_me 7.0.2-5, which was 38160 generated by GNU Autoconf 2.69. Invocation command line was 38161 38162 CONFIG_FILES = $CONFIG_FILES 38163 CONFIG_HEADERS = $CONFIG_HEADERS 38164 CONFIG_LINKS = $CONFIG_LINKS 38165 CONFIG_COMMANDS = $CONFIG_COMMANDS 38166 $ $0 $@ 38167 38168 on `(hostname || uname -n) 2>/dev/null | sed 1q` 38169 " 38170 38171 _ACEOF 38172 38173 case $ac_config_files in *" 38174 "*) set x $ac_config_files; shift; ac_config_files=$*;; 38175 esac 38176 38177 case $ac_config_headers in *" 38178 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 38179 esac 38180 38181 38182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38183 # Files that config.status was made for. 38184 config_files="$ac_config_files" 38185 config_headers="$ac_config_headers" 38186 config_commands="$ac_config_commands" 38187 38188 _ACEOF 38189 38190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38191 ac_cs_usage="\ 38192 \`$as_me' instantiates files and other configuration actions 38193 from templates according to the current configuration. Unless the files 38194 and actions are specified as TAGs, all are instantiated by default. 38195 38196 Usage: $0 [OPTION]... [TAG]... 38197 38198 -h, --help print this help, then exit 38199 -V, --version print version number and configuration settings, then exit 38200 --config print configuration, then exit 38201 -q, --quiet, --silent 38202 do not print progress messages 38203 -d, --debug don't remove temporary files 38204 --recheck update $as_me by reconfiguring in the same conditions 38205 --file=FILE[:TEMPLATE] 38206 instantiate the configuration file FILE 38207 --header=FILE[:TEMPLATE] 38208 instantiate the configuration header FILE 38209 38210 Configuration files: 38211 $config_files 38212 38213 Configuration headers: 38214 $config_headers 38215 38216 Configuration commands: 38217 $config_commands 38218 38219 Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>. 38220 ImageMagick home page: <http://www.imagemagick.org>." 38221 38222 _ACEOF 38223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38224 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 38225 ac_cs_version="\\ 38226 ImageMagick config.status 7.0.2-5 38227 configured by $0, generated by GNU Autoconf 2.69, 38228 with options \\"\$ac_cs_config\\" 38229 38230 Copyright (C) 2012 Free Software Foundation, Inc. 38231 This config.status script is free software; the Free Software Foundation 38232 gives unlimited permission to copy, distribute and modify it." 38233 38234 ac_pwd='$ac_pwd' 38235 srcdir='$srcdir' 38236 INSTALL='$INSTALL' 38237 MKDIR_P='$MKDIR_P' 38238 AWK='$AWK' 38239 test -n "\$AWK" || AWK=awk 38240 _ACEOF 38241 38242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38243 # The default lists apply if the user does not specify any file. 38244 ac_need_defaults=: 38245 while test $# != 0 38246 do 38247 case $1 in 38248 --*=?*) 38249 ac_option=`expr "X$1" : 'X\([^=]*\)='` 38250 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 38251 ac_shift=: 38252 ;; 38253 --*=) 38254 ac_option=`expr "X$1" : 'X\([^=]*\)='` 38255 ac_optarg= 38256 ac_shift=: 38257 ;; 38258 *) 38259 ac_option=$1 38260 ac_optarg=$2 38261 ac_shift=shift 38262 ;; 38263 esac 38264 38265 case $ac_option in 38266 # Handling of the options. 38267 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 38268 ac_cs_recheck=: ;; 38269 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 38270 $as_echo "$ac_cs_version"; exit ;; 38271 --config | --confi | --conf | --con | --co | --c ) 38272 $as_echo "$ac_cs_config"; exit ;; 38273 --debug | --debu | --deb | --de | --d | -d ) 38274 debug=: ;; 38275 --file | --fil | --fi | --f ) 38276 $ac_shift 38277 case $ac_optarg in 38278 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 38279 '') as_fn_error $? "missing file argument" ;; 38280 esac 38281 as_fn_append CONFIG_FILES " '$ac_optarg'" 38282 ac_need_defaults=false;; 38283 --header | --heade | --head | --hea ) 38284 $ac_shift 38285 case $ac_optarg in 38286 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 38287 esac 38288 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 38289 ac_need_defaults=false;; 38290 --he | --h) 38291 # Conflict between --help and --header 38292 as_fn_error $? "ambiguous option: \`$1' 38293 Try \`$0 --help' for more information.";; 38294 --help | --hel | -h ) 38295 $as_echo "$ac_cs_usage"; exit ;; 38296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 38297 | -silent | --silent | --silen | --sile | --sil | --si | --s) 38298 ac_cs_silent=: ;; 38299 38300 # This is an error. 38301 -*) as_fn_error $? "unrecognized option: \`$1' 38302 Try \`$0 --help' for more information." ;; 38303 38304 *) as_fn_append ac_config_targets " $1" 38305 ac_need_defaults=false ;; 38306 38307 esac 38308 shift 38309 done 38310 38311 ac_configure_extra_args= 38312 38313 if $ac_cs_silent; then 38314 exec 6>/dev/null 38315 ac_configure_extra_args="$ac_configure_extra_args --silent" 38316 fi 38317 38318 _ACEOF 38319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38320 if \$ac_cs_recheck; then 38321 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 38322 shift 38323 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 38324 CONFIG_SHELL='$SHELL' 38325 export CONFIG_SHELL 38326 exec "\$@" 38327 fi 38328 38329 _ACEOF 38330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38331 exec 5>>config.log 38332 { 38333 echo 38334 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 38335 ## Running $as_me. ## 38336 _ASBOX 38337 $as_echo "$ac_log" 38338 } >&5 38339 38340 _ACEOF 38341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38342 # 38343 # INIT-COMMANDS 38344 # 38345 PACKAGE="$PACKAGE" 38346 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 38347 38348 38349 # The HP-UX ksh and POSIX shell print the target directory to stdout 38350 # if CDPATH is set. 38351 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 38352 38353 sed_quote_subst='$sed_quote_subst' 38354 double_quote_subst='$double_quote_subst' 38355 delay_variable_subst='$delay_variable_subst' 38356 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 38357 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 38358 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 38359 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 38360 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 38361 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 38362 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 38363 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 38364 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 38365 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 38366 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 38367 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 38368 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 38369 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 38370 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 38371 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 38372 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 38373 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 38374 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 38375 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 38376 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 38377 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 38378 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 38379 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 38380 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 38381 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 38382 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 38383 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 38384 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 38385 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 38386 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 38387 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 38388 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 38389 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 38390 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 38391 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 38392 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 38393 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 38394 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 38395 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 38396 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 38397 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 38398 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 38399 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 38400 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 38401 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 38402 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 38403 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 38404 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 38405 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 38406 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 38407 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 38408 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 38409 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 38410 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 38411 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 38412 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 38413 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 38414 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 38415 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 38416 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 38417 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 38418 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 38419 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 38420 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 38421 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 38422 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 38423 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 38424 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 38425 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 38426 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 38427 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 38428 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 38429 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 38430 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 38431 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 38432 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 38433 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 38434 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 38435 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 38436 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 38437 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 38438 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 38439 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 38440 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 38441 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 38442 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 38443 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 38444 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 38445 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 38446 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 38447 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 38448 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 38449 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 38450 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 38451 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 38452 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 38453 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 38454 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 38455 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 38456 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 38457 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 38458 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 38459 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 38460 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 38461 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 38462 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 38463 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 38464 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 38465 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 38466 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 38467 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 38468 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 38469 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 38470 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 38471 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 38472 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 38473 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 38474 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 38475 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 38476 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 38477 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 38478 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 38479 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 38480 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 38481 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 38482 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 38483 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 38484 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 38485 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 38486 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 38487 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 38488 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 38489 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 38490 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 38491 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 38492 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 38493 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 38494 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 38495 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 38496 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 38497 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 38498 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 38499 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 38500 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38501 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38502 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 38503 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 38504 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 38505 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 38506 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 38507 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 38508 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 38509 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 38510 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 38511 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 38512 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 38513 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 38514 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38515 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38516 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38517 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38518 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38519 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38520 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 38521 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 38522 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 38523 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 38524 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 38525 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 38526 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 38527 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 38528 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 38529 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 38530 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 38531 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 38532 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 38533 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38534 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 38535 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 38536 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38537 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 38538 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 38539 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 38540 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 38541 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 38542 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 38543 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 38544 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 38545 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 38546 38547 LTCC='$LTCC' 38548 LTCFLAGS='$LTCFLAGS' 38549 compiler='$compiler_DEFAULT' 38550 38551 # A function that is used when there is no print builtin or printf. 38552 func_fallback_echo () 38553 { 38554 eval 'cat <<_LTECHO_EOF 38555 \$1 38556 _LTECHO_EOF' 38557 } 38558 38559 # Quote evaled strings. 38560 for var in SED \ 38561 GREP \ 38562 EGREP \ 38563 FGREP \ 38564 SHELL \ 38565 ECHO \ 38566 LD \ 38567 AS \ 38568 DLLTOOL \ 38569 OBJDUMP \ 38570 PATH_SEPARATOR \ 38571 NM \ 38572 LN_S \ 38573 lt_SP2NL \ 38574 lt_NL2SP \ 38575 reload_flag \ 38576 deplibs_check_method \ 38577 file_magic_cmd \ 38578 file_magic_glob \ 38579 want_nocaseglob \ 38580 sharedlib_from_linklib_cmd \ 38581 AR \ 38582 AR_FLAGS \ 38583 archiver_list_spec \ 38584 STRIP \ 38585 RANLIB \ 38586 CC \ 38587 CFLAGS \ 38588 compiler \ 38589 lt_cv_sys_global_symbol_pipe \ 38590 lt_cv_sys_global_symbol_to_cdecl \ 38591 lt_cv_sys_global_symbol_to_import \ 38592 lt_cv_sys_global_symbol_to_c_name_address \ 38593 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 38594 lt_cv_nm_interface \ 38595 nm_file_list_spec \ 38596 lt_cv_truncate_bin \ 38597 lt_prog_compiler_no_builtin_flag \ 38598 lt_prog_compiler_pic \ 38599 lt_prog_compiler_wl \ 38600 lt_prog_compiler_static \ 38601 lt_cv_prog_compiler_c_o \ 38602 need_locks \ 38603 MANIFEST_TOOL \ 38604 DSYMUTIL \ 38605 NMEDIT \ 38606 LIPO \ 38607 OTOOL \ 38608 OTOOL64 \ 38609 shrext_cmds \ 38610 export_dynamic_flag_spec \ 38611 whole_archive_flag_spec \ 38612 compiler_needs_object \ 38613 with_gnu_ld \ 38614 allow_undefined_flag \ 38615 no_undefined_flag \ 38616 hardcode_libdir_flag_spec \ 38617 hardcode_libdir_separator \ 38618 exclude_expsyms \ 38619 include_expsyms \ 38620 file_list_spec \ 38621 variables_saved_for_relink \ 38622 libname_spec \ 38623 library_names_spec \ 38624 soname_spec \ 38625 install_override_mode \ 38626 finish_eval \ 38627 old_striplib \ 38628 striplib \ 38629 compiler_lib_search_dirs \ 38630 predep_objects \ 38631 postdep_objects \ 38632 predeps \ 38633 postdeps \ 38634 compiler_lib_search_path \ 38635 LD_CXX \ 38636 reload_flag_CXX \ 38637 compiler_CXX \ 38638 lt_prog_compiler_no_builtin_flag_CXX \ 38639 lt_prog_compiler_pic_CXX \ 38640 lt_prog_compiler_wl_CXX \ 38641 lt_prog_compiler_static_CXX \ 38642 lt_cv_prog_compiler_c_o_CXX \ 38643 export_dynamic_flag_spec_CXX \ 38644 whole_archive_flag_spec_CXX \ 38645 compiler_needs_object_CXX \ 38646 with_gnu_ld_CXX \ 38647 allow_undefined_flag_CXX \ 38648 no_undefined_flag_CXX \ 38649 hardcode_libdir_flag_spec_CXX \ 38650 hardcode_libdir_separator_CXX \ 38651 exclude_expsyms_CXX \ 38652 include_expsyms_CXX \ 38653 file_list_spec_CXX \ 38654 compiler_lib_search_dirs_CXX \ 38655 predep_objects_CXX \ 38656 postdep_objects_CXX \ 38657 predeps_CXX \ 38658 postdeps_CXX \ 38659 compiler_lib_search_path_CXX; do 38660 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 38661 *[\\\\\\\`\\"\\\$]*) 38662 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 38663 ;; 38664 *) 38665 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 38666 ;; 38667 esac 38668 done 38669 38670 # Double-quote double-evaled strings. 38671 for var in reload_cmds \ 38672 old_postinstall_cmds \ 38673 old_postuninstall_cmds \ 38674 old_archive_cmds \ 38675 extract_expsyms_cmds \ 38676 old_archive_from_new_cmds \ 38677 old_archive_from_expsyms_cmds \ 38678 archive_cmds \ 38679 archive_expsym_cmds \ 38680 module_cmds \ 38681 module_expsym_cmds \ 38682 export_symbols_cmds \ 38683 prelink_cmds \ 38684 postlink_cmds \ 38685 postinstall_cmds \ 38686 postuninstall_cmds \ 38687 finish_cmds \ 38688 sys_lib_search_path_spec \ 38689 configure_time_dlsearch_path \ 38690 configure_time_lt_sys_library_path \ 38691 reload_cmds_CXX \ 38692 old_archive_cmds_CXX \ 38693 old_archive_from_new_cmds_CXX \ 38694 old_archive_from_expsyms_cmds_CXX \ 38695 archive_cmds_CXX \ 38696 archive_expsym_cmds_CXX \ 38697 module_cmds_CXX \ 38698 module_expsym_cmds_CXX \ 38699 export_symbols_cmds_CXX \ 38700 prelink_cmds_CXX \ 38701 postlink_cmds_CXX; do 38702 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 38703 *[\\\\\\\`\\"\\\$]*) 38704 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 38705 ;; 38706 *) 38707 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 38708 ;; 38709 esac 38710 done 38711 38712 ac_aux_dir='$ac_aux_dir' 38713 38714 # See if we are running on zsh, and set the options that allow our 38715 # commands through without removal of \ escapes INIT. 38716 if test -n "\${ZSH_VERSION+set}"; then 38717 setopt NO_GLOB_SUBST 38718 fi 38719 38720 38721 PACKAGE='$PACKAGE' 38722 VERSION='$VERSION' 38723 RM='$RM' 38724 ofile='$ofile' 38725 38726 38727 38728 38729 38730 38731 _ACEOF 38732 38733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38734 38735 # Handling of arguments. 38736 for ac_config_target in $ac_config_targets 38737 do 38738 case $ac_config_target in 38739 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;; 38740 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;; 38741 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 38742 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 38743 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 38744 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;; 38745 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;; 38746 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;; 38747 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;; 38748 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;; 38749 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;; 38750 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;; 38751 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;; 38752 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;; 38753 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;; 38754 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;; 38755 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;; 38756 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;; 38757 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;; 38758 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;; 38759 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;; 38760 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;; 38761 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;; 38762 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;; 38763 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;; 38764 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;; 38765 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;; 38766 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;; 38767 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;; 38768 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 38769 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;; 38770 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;; 38771 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;; 38772 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;; 38773 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;; 38774 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;; 38775 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;; 38776 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;; 38777 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;; 38778 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;; 38779 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;; 38780 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;; 38781 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;; 38782 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;; 38783 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;; 38784 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;; 38785 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;; 38786 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;; 38787 "utilities/magick.1") CONFIG_FILES="$CONFIG_FILES utilities/magick.1" ;; 38788 "utilities/magick-script.1") CONFIG_FILES="$CONFIG_FILES utilities/magick-script.1" ;; 38789 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;; 38790 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;; 38791 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;; 38792 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;; 38793 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;; 38794 38795 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 38796 esac 38797 done 38798 38799 38800 # If the user did not use the arguments to specify the items to instantiate, 38801 # then the envvar interface is used. Set only those that are not. 38802 # We use the long form for the default assignment because of an extremely 38803 # bizarre bug on SunOS 4.1.3. 38804 if $ac_need_defaults; then 38805 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 38806 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 38807 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 38808 fi 38809 38810 # Have a temporary directory for convenience. Make it in the build tree 38811 # simply because there is no reason against having it here, and in addition, 38812 # creating and moving files from /tmp can sometimes cause problems. 38813 # Hook for its removal unless debugging. 38814 # Note that there is a small window in which the directory will not be cleaned: 38815 # after its creation but before its name has been assigned to `$tmp'. 38816 $debug || 38817 { 38818 tmp= ac_tmp= 38819 trap 'exit_status=$? 38820 : "${ac_tmp:=$tmp}" 38821 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 38822 ' 0 38823 trap 'as_fn_exit 1' 1 2 13 15 38824 } 38825 # Create a (secure) tmp directory for tmp files. 38826 38827 { 38828 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 38829 test -d "$tmp" 38830 } || 38831 { 38832 tmp=./conf$$-$RANDOM 38833 (umask 077 && mkdir "$tmp") 38834 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 38835 ac_tmp=$tmp 38836 38837 # Set up the scripts for CONFIG_FILES section. 38838 # No need to generate them if there are no CONFIG_FILES. 38839 # This happens for instance with `./config.status config.h'. 38840 if test -n "$CONFIG_FILES"; then 38841 38842 38843 ac_cr=`echo X | tr X '\015'` 38844 # On cygwin, bash can eat \r inside `` if the user requested igncr. 38845 # But we know of no other shell where ac_cr would be empty at this 38846 # point, so we can use a bashism as a fallback. 38847 if test "x$ac_cr" = x; then 38848 eval ac_cr=\$\'\\r\' 38849 fi 38850 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 38851 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 38852 ac_cs_awk_cr='\\r' 38853 else 38854 ac_cs_awk_cr=$ac_cr 38855 fi 38856 38857 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 38858 _ACEOF 38859 38860 38861 { 38862 echo "cat >conf$$subs.awk <<_ACEOF" && 38863 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 38864 echo "_ACEOF" 38865 } >conf$$subs.sh || 38866 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 38867 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 38868 ac_delim='%!_!# ' 38869 for ac_last_try in false false false false false :; do 38870 . ./conf$$subs.sh || 38871 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 38872 38873 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 38874 if test $ac_delim_n = $ac_delim_num; then 38875 break 38876 elif $ac_last_try; then 38877 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 38878 else 38879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 38880 fi 38881 done 38882 rm -f conf$$subs.sh 38883 38884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38885 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 38886 _ACEOF 38887 sed -n ' 38888 h 38889 s/^/S["/; s/!.*/"]=/ 38890 p 38891 g 38892 s/^[^!]*!// 38893 :repl 38894 t repl 38895 s/'"$ac_delim"'$// 38896 t delim 38897 :nl 38898 h 38899 s/\(.\{148\}\)..*/\1/ 38900 t more1 38901 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 38902 p 38903 n 38904 b repl 38905 :more1 38906 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 38907 p 38908 g 38909 s/.\{148\}// 38910 t nl 38911 :delim 38912 h 38913 s/\(.\{148\}\)..*/\1/ 38914 t more2 38915 s/["\\]/\\&/g; s/^/"/; s/$/"/ 38916 p 38917 b 38918 :more2 38919 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 38920 p 38921 g 38922 s/.\{148\}// 38923 t delim 38924 ' <conf$$subs.awk | sed ' 38925 /^[^""]/{ 38926 N 38927 s/\n// 38928 } 38929 ' >>$CONFIG_STATUS || ac_write_fail=1 38930 rm -f conf$$subs.awk 38931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38932 _ACAWK 38933 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 38934 for (key in S) S_is_set[key] = 1 38935 FS = "" 38936 38937 } 38938 { 38939 line = $ 0 38940 nfields = split(line, field, "@") 38941 substed = 0 38942 len = length(field[1]) 38943 for (i = 2; i < nfields; i++) { 38944 key = field[i] 38945 keylen = length(key) 38946 if (S_is_set[key]) { 38947 value = S[key] 38948 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 38949 len += length(value) + length(field[++i]) 38950 substed = 1 38951 } else 38952 len += 1 + keylen 38953 } 38954 38955 print line 38956 } 38957 38958 _ACAWK 38959 _ACEOF 38960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38961 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 38962 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 38963 else 38964 cat 38965 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 38966 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 38967 _ACEOF 38968 38969 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 38970 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 38971 # trailing colons and then remove the whole line if VPATH becomes empty 38972 # (actually we leave an empty line to preserve line numbers). 38973 if test "x$srcdir" = x.; then 38974 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 38975 h 38976 s/// 38977 s/^/:/ 38978 s/[ ]*$/:/ 38979 s/:\$(srcdir):/:/g 38980 s/:\${srcdir}:/:/g 38981 s/:@srcdir@:/:/g 38982 s/^:*// 38983 s/:*$// 38984 x 38985 s/\(=[ ]*\).*/\1/ 38986 G 38987 s/\n// 38988 s/^[^=]*=[ ]*$// 38989 }' 38990 fi 38991 38992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38993 fi # test -n "$CONFIG_FILES" 38994 38995 # Set up the scripts for CONFIG_HEADERS section. 38996 # No need to generate them if there are no CONFIG_HEADERS. 38997 # This happens for instance with `./config.status Makefile'. 38998 if test -n "$CONFIG_HEADERS"; then 38999 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 39000 BEGIN { 39001 _ACEOF 39002 39003 # Transform confdefs.h into an awk script `defines.awk', embedded as 39004 # here-document in config.status, that substitutes the proper values into 39005 # config.h.in to produce config.h. 39006 39007 # Create a delimiter string that does not exist in confdefs.h, to ease 39008 # handling of long lines. 39009 ac_delim='%!_!# ' 39010 for ac_last_try in false false :; do 39011 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 39012 if test -z "$ac_tt"; then 39013 break 39014 elif $ac_last_try; then 39015 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 39016 else 39017 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 39018 fi 39019 done 39020 39021 # For the awk script, D is an array of macro values keyed by name, 39022 # likewise P contains macro parameters if any. Preserve backslash 39023 # newline sequences. 39024 39025 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 39026 sed -n ' 39027 s/.\{148\}/&'"$ac_delim"'/g 39028 t rset 39029 :rset 39030 s/^[ ]*#[ ]*define[ ][ ]*/ / 39031 t def 39032 d 39033 :def 39034 s/\\$// 39035 t bsnl 39036 s/["\\]/\\&/g 39037 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 39038 D["\1"]=" \3"/p 39039 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 39040 d 39041 :bsnl 39042 s/["\\]/\\&/g 39043 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 39044 D["\1"]=" \3\\\\\\n"\\/p 39045 t cont 39046 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 39047 t cont 39048 d 39049 :cont 39050 n 39051 s/.\{148\}/&'"$ac_delim"'/g 39052 t clear 39053 :clear 39054 s/\\$// 39055 t bsnlc 39056 s/["\\]/\\&/g; s/^/"/; s/$/"/p 39057 d 39058 :bsnlc 39059 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 39060 b cont 39061 ' <confdefs.h | sed ' 39062 s/'"$ac_delim"'/"\\\ 39063 "/g' >>$CONFIG_STATUS || ac_write_fail=1 39064 39065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 39066 for (key in D) D_is_set[key] = 1 39067 FS = "" 39068 } 39069 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 39070 line = \$ 0 39071 split(line, arg, " ") 39072 if (arg[1] == "#") { 39073 defundef = arg[2] 39074 mac1 = arg[3] 39075 } else { 39076 defundef = substr(arg[1], 2) 39077 mac1 = arg[2] 39078 } 39079 split(mac1, mac2, "(") #) 39080 macro = mac2[1] 39081 prefix = substr(line, 1, index(line, defundef) - 1) 39082 if (D_is_set[macro]) { 39083 # Preserve the white space surrounding the "#". 39084 print prefix "define", macro P[macro] D[macro] 39085 next 39086 } else { 39087 # Replace #undef with comments. This is necessary, for example, 39088 # in the case of _POSIX_SOURCE, which is predefined and required 39089 # on some systems where configure will not decide to define it. 39090 if (defundef == "undef") { 39091 print "/*", prefix defundef, macro, "*/" 39092 next 39093 } 39094 } 39095 } 39096 { print } 39097 _ACAWK 39098 _ACEOF 39099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 39100 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 39101 fi # test -n "$CONFIG_HEADERS" 39102 39103 39104 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 39105 shift 39106 for ac_tag 39107 do 39108 case $ac_tag in 39109 :[FHLC]) ac_mode=$ac_tag; continue;; 39110 esac 39111 case $ac_mode$ac_tag in 39112 :[FHL]*:*);; 39113 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 39114 :[FH]-) ac_tag=-:-;; 39115 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 39116 esac 39117 ac_save_IFS=$IFS 39118 IFS=: 39119 set x $ac_tag 39120 IFS=$ac_save_IFS 39121 shift 39122 ac_file=$1 39123 shift 39124 39125 case $ac_mode in 39126 :L) ac_source=$1;; 39127 :[FH]) 39128 ac_file_inputs= 39129 for ac_f 39130 do 39131 case $ac_f in 39132 -) ac_f="$ac_tmp/stdin";; 39133 *) # Look for the file first in the build tree, then in the source tree 39134 # (if the path is not absolute). The absolute path cannot be DOS-style, 39135 # because $ac_f cannot contain `:'. 39136 test -f "$ac_f" || 39137 case $ac_f in 39138 [\\/$]*) false;; 39139 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 39140 esac || 39141 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 39142 esac 39143 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 39144 as_fn_append ac_file_inputs " '$ac_f'" 39145 done 39146 39147 # Let's still pretend it is `configure' which instantiates (i.e., don't 39148 # use $as_me), people would be surprised to read: 39149 # /* config.h. Generated by config.status. */ 39150 configure_input='Generated from '` 39151 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 39152 `' by configure.' 39153 if test x"$ac_file" != x-; then 39154 configure_input="$ac_file. $configure_input" 39155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 39156 $as_echo "$as_me: creating $ac_file" >&6;} 39157 fi 39158 # Neutralize special characters interpreted by sed in replacement strings. 39159 case $configure_input in #( 39160 *\&* | *\|* | *\\* ) 39161 ac_sed_conf_input=`$as_echo "$configure_input" | 39162 sed 's/[\\\\&|]/\\\\&/g'`;; #( 39163 *) ac_sed_conf_input=$configure_input;; 39164 esac 39165 39166 case $ac_tag in 39167 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 39168 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 39169 esac 39170 ;; 39171 esac 39172 39173 ac_dir=`$as_dirname -- "$ac_file" || 39174 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 39175 X"$ac_file" : 'X\(//\)[^/]' \| \ 39176 X"$ac_file" : 'X\(//\)$' \| \ 39177 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 39178 $as_echo X"$ac_file" | 39179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 39180 s//\1/ 39181 q 39182 } 39183 /^X\(\/\/\)[^/].*/{ 39184 s//\1/ 39185 q 39186 } 39187 /^X\(\/\/\)$/{ 39188 s//\1/ 39189 q 39190 } 39191 /^X\(\/\).*/{ 39192 s//\1/ 39193 q 39194 } 39195 s/.*/./; q'` 39196 as_dir="$ac_dir"; as_fn_mkdir_p 39197 ac_builddir=. 39198 39199 case "$ac_dir" in 39200 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 39201 *) 39202 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 39203 # A ".." for each directory in $ac_dir_suffix. 39204 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 39205 case $ac_top_builddir_sub in 39206 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 39207 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 39208 esac ;; 39209 esac 39210 ac_abs_top_builddir=$ac_pwd 39211 ac_abs_builddir=$ac_pwd$ac_dir_suffix 39212 # for backward compatibility: 39213 ac_top_builddir=$ac_top_build_prefix 39214 39215 case $srcdir in 39216 .) # We are building in place. 39217 ac_srcdir=. 39218 ac_top_srcdir=$ac_top_builddir_sub 39219 ac_abs_top_srcdir=$ac_pwd ;; 39220 [\\/]* | ?:[\\/]* ) # Absolute name. 39221 ac_srcdir=$srcdir$ac_dir_suffix; 39222 ac_top_srcdir=$srcdir 39223 ac_abs_top_srcdir=$srcdir ;; 39224 *) # Relative name. 39225 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 39226 ac_top_srcdir=$ac_top_build_prefix$srcdir 39227 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 39228 esac 39229 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 39230 39231 39232 case $ac_mode in 39233 :F) 39234 # 39235 # CONFIG_FILE 39236 # 39237 39238 case $INSTALL in 39239 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 39240 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 39241 esac 39242 ac_MKDIR_P=$MKDIR_P 39243 case $MKDIR_P in 39244 [\\/$]* | ?:[\\/]* ) ;; 39245 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 39246 esac 39247 _ACEOF 39248 39249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 39250 # If the template does not know about datarootdir, expand it. 39251 # FIXME: This hack should be removed a few years after 2.60. 39252 ac_datarootdir_hack=; ac_datarootdir_seen= 39253 ac_sed_dataroot=' 39254 /datarootdir/ { 39255 p 39256 q 39257 } 39258 /@datadir@/p 39259 /@docdir@/p 39260 /@infodir@/p 39261 /@localedir@/p 39262 /@mandir@/p' 39263 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 39264 *datarootdir*) ac_datarootdir_seen=yes;; 39265 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 39266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 39267 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 39268 _ACEOF 39269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 39270 ac_datarootdir_hack=' 39271 s&@datadir@&$datadir&g 39272 s&@docdir@&$docdir&g 39273 s&@infodir@&$infodir&g 39274 s&@localedir@&$localedir&g 39275 s&@mandir@&$mandir&g 39276 s&\\\${datarootdir}&$datarootdir&g' ;; 39277 esac 39278 _ACEOF 39279 39280 # Neutralize VPATH when `$srcdir' = `.'. 39281 # Shell code in configure.ac might set extrasub. 39282 # FIXME: do we really want to maintain this feature? 39283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 39284 ac_sed_extra="$ac_vpsub 39285 $extrasub 39286 _ACEOF 39287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 39288 :t 39289 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 39290 s|@configure_input@|$ac_sed_conf_input|;t t 39291 s&@top_builddir@&$ac_top_builddir_sub&;t t 39292 s&@top_build_prefix@&$ac_top_build_prefix&;t t 39293 s&@srcdir@&$ac_srcdir&;t t 39294 s&@abs_srcdir@&$ac_abs_srcdir&;t t 39295 s&@top_srcdir@&$ac_top_srcdir&;t t 39296 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 39297 s&@builddir@&$ac_builddir&;t t 39298 s&@abs_builddir@&$ac_abs_builddir&;t t 39299 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 39300 s&@INSTALL@&$ac_INSTALL&;t t 39301 s&@MKDIR_P@&$ac_MKDIR_P&;t t 39302 $ac_datarootdir_hack 39303 " 39304 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 39305 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 39306 39307 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 39308 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 39309 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 39310 "$ac_tmp/out"`; test -z "$ac_out"; } && 39311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 39312 which seems to be undefined. Please make sure it is defined" >&5 39313 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 39314 which seems to be undefined. Please make sure it is defined" >&2;} 39315 39316 rm -f "$ac_tmp/stdin" 39317 case $ac_file in 39318 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 39319 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 39320 esac \ 39321 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 39322 ;; 39323 :H) 39324 # 39325 # CONFIG_HEADER 39326 # 39327 if test x"$ac_file" != x-; then 39328 { 39329 $as_echo "/* $configure_input */" \ 39330 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 39331 } >"$ac_tmp/config.h" \ 39332 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 39333 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 39334 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 39335 $as_echo "$as_me: $ac_file is unchanged" >&6;} 39336 else 39337 rm -f "$ac_file" 39338 mv "$ac_tmp/config.h" "$ac_file" \ 39339 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 39340 fi 39341 else 39342 $as_echo "/* $configure_input */" \ 39343 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 39344 || as_fn_error $? "could not create -" "$LINENO" 5 39345 fi 39346 # Compute "$ac_file"'s index in $config_headers. 39347 _am_arg="$ac_file" 39348 _am_stamp_count=1 39349 for _am_header in $config_headers :; do 39350 case $_am_header in 39351 $_am_arg | $_am_arg:* ) 39352 break ;; 39353 * ) 39354 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 39355 esac 39356 done 39357 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 39358 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 39359 X"$_am_arg" : 'X\(//\)[^/]' \| \ 39360 X"$_am_arg" : 'X\(//\)$' \| \ 39361 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 39362 $as_echo X"$_am_arg" | 39363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 39364 s//\1/ 39365 q 39366 } 39367 /^X\(\/\/\)[^/].*/{ 39368 s//\1/ 39369 q 39370 } 39371 /^X\(\/\/\)$/{ 39372 s//\1/ 39373 q 39374 } 39375 /^X\(\/\).*/{ 39376 s//\1/ 39377 q 39378 } 39379 s/.*/./; q'`/stamp-h$_am_stamp_count 39380 ;; 39381 39382 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 39383 $as_echo "$as_me: executing $ac_file commands" >&6;} 39384 ;; 39385 esac 39386 39387 39388 case $ac_file$ac_mode in 39389 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h` 39390 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` 39391 ac_prefix_conf_PKG=`echo MagickCore` 39392 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` 39393 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` 39394 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` 39395 if test ".$ac_prefix_conf_INP" = "."; then 39396 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue 39397 case "$ac_file" in 39398 *.h) ac_prefix_conf_INP=$ac_file ;; 39399 *) 39400 esac 39401 test ".$ac_prefix_conf_INP" != "." && break 39402 done 39403 fi 39404 if test ".$ac_prefix_conf_INP" = "."; then 39405 case "$ac_prefix_conf_OUT" in 39406 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` 39407 ;; 39408 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` 39409 ;; 39410 *) ac_prefix_conf_INP=config.h 39411 ;; 39412 esac 39413 fi 39414 if test -z "$ac_prefix_conf_PKG" ; then 39415 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 39416 else 39417 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then 39418 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" 39419 fi fi 39420 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 39421 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} 39422 if test -f $ac_prefix_conf_INP ; then 39423 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix 39424 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix 39425 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix 39426 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix 39427 $as_echo "#endif/" >> conftest.prefix 39428 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix 39429 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix 39430 $as_echo "#endif/" >> conftest.prefix 39431 # now executing _script on _DEF input to create _OUT output file 39432 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h 39433 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h 39434 echo ' ' >>$tmp/pconfig.h 39435 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h 39436 39437 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h 39438 echo ' ' >>$tmp/pconfig.h 39439 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h 39440 echo "#endif" >>$tmp/pconfig.h 39441 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then 39442 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 39443 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} 39444 else 39445 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || 39446 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 39447 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ 39448 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ 39449 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || 39450 $as_echo X"$ac_prefix_conf_OUT" | 39451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 39452 s//\1/ 39453 q 39454 } 39455 /^X\(\/\/\)[^/].*/{ 39456 s//\1/ 39457 q 39458 } 39459 /^X\(\/\/\)$/{ 39460 s//\1/ 39461 q 39462 } 39463 /^X\(\/\).*/{ 39464 s//\1/ 39465 q 39466 } 39467 s/.*/./; q'` 39468 as_dir="$ac_dir"; as_fn_mkdir_p 39469 rm -f "$ac_prefix_conf_OUT" 39470 mv $tmp/pconfig.h "$ac_prefix_conf_OUT" 39471 fi 39472 else 39473 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 39474 fi 39475 rm -f conftest.* 39476 fi 39477 ;; 39478 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 39479 # Older Autoconf quotes --file arguments for eval, but not when files 39480 # are listed without --file. Let's play safe and only enable the eval 39481 # if we detect the quoting. 39482 case $CONFIG_FILES in 39483 *\'*) eval set x "$CONFIG_FILES" ;; 39484 *) set x $CONFIG_FILES ;; 39485 esac 39486 shift 39487 for mf 39488 do 39489 # Strip MF so we end up with the name of the file. 39490 mf=`echo "$mf" | sed -e 's/:.*$//'` 39491 # Check whether this is an Automake generated Makefile or not. 39492 # We used to match only the files named 'Makefile.in', but 39493 # some people rename them; so instead we look at the file content. 39494 # Grep'ing the first line is not enough: some people post-process 39495 # each Makefile.in and add a new line on top of each file to say so. 39496 # Grep'ing the whole file is not good either: AIX grep has a line 39497 # limit of 2048, but all sed's we know have understand at least 4000. 39498 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 39499 dirpart=`$as_dirname -- "$mf" || 39500 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 39501 X"$mf" : 'X\(//\)[^/]' \| \ 39502 X"$mf" : 'X\(//\)$' \| \ 39503 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 39504 $as_echo X"$mf" | 39505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 39506 s//\1/ 39507 q 39508 } 39509 /^X\(\/\/\)[^/].*/{ 39510 s//\1/ 39511 q 39512 } 39513 /^X\(\/\/\)$/{ 39514 s//\1/ 39515 q 39516 } 39517 /^X\(\/\).*/{ 39518 s//\1/ 39519 q 39520 } 39521 s/.*/./; q'` 39522 else 39523 continue 39524 fi 39525 # Extract the definition of DEPDIR, am__include, and am__quote 39526 # from the Makefile without running 'make'. 39527 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 39528 test -z "$DEPDIR" && continue 39529 am__include=`sed -n 's/^am__include = //p' < "$mf"` 39530 test -z "$am__include" && continue 39531 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 39532 # Find all dependency output files, they are included files with 39533 # $(DEPDIR) in their names. We invoke sed twice because it is the 39534 # simplest approach to changing $(DEPDIR) to its actual value in the 39535 # expansion. 39536 for file in `sed -n " 39537 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 39538 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 39539 # Make sure the directory exists. 39540 test -f "$dirpart/$file" && continue 39541 fdir=`$as_dirname -- "$file" || 39542 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 39543 X"$file" : 'X\(//\)[^/]' \| \ 39544 X"$file" : 'X\(//\)$' \| \ 39545 X"$file" : 'X\(/\)' \| . 2>/dev/null || 39546 $as_echo X"$file" | 39547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 39548 s//\1/ 39549 q 39550 } 39551 /^X\(\/\/\)[^/].*/{ 39552 s//\1/ 39553 q 39554 } 39555 /^X\(\/\/\)$/{ 39556 s//\1/ 39557 q 39558 } 39559 /^X\(\/\).*/{ 39560 s//\1/ 39561 q 39562 } 39563 s/.*/./; q'` 39564 as_dir=$dirpart/$fdir; as_fn_mkdir_p 39565 # echo "creating $dirpart/$file" 39566 echo '# dummy' > "$dirpart/$file" 39567 done 39568 done 39569 } 39570 ;; 39571 "libtool":C) 39572 39573 # See if we are running on zsh, and set the options that allow our 39574 # commands through without removal of \ escapes. 39575 if test -n "${ZSH_VERSION+set}"; then 39576 setopt NO_GLOB_SUBST 39577 fi 39578 39579 cfgfile=${ofile}T 39580 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 39581 $RM "$cfgfile" 39582 39583 cat <<_LT_EOF >> "$cfgfile" 39584 #! $SHELL 39585 # Generated automatically by $as_me ($PACKAGE) $VERSION 39586 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 39587 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 39588 39589 # Provide generalized library-building support services. 39590 # Written by Gordon Matzigkeit, 1996 39591 39592 # Copyright (C) 2014 Free Software Foundation, Inc. 39593 # This is free software; see the source for copying conditions. There is NO 39594 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 39595 39596 # GNU Libtool is free software; you can redistribute it and/or modify 39597 # it under the terms of the GNU General Public License as published by 39598 # the Free Software Foundation; either version 2 of of the License, or 39599 # (at your option) any later version. 39600 # 39601 # As a special exception to the GNU General Public License, if you 39602 # distribute this file as part of a program or library that is built 39603 # using GNU Libtool, you may include this file under the same 39604 # distribution terms that you use for the rest of that program. 39605 # 39606 # GNU Libtool is distributed in the hope that it will be useful, but 39607 # WITHOUT ANY WARRANTY; without even the implied warranty of 39608 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 39609 # GNU General Public License for more details. 39610 # 39611 # You should have received a copy of the GNU General Public License 39612 # along with this program. If not, see <http://www.gnu.org/licenses/>. 39613 39614 39615 # The names of the tagged configurations supported by this script. 39616 available_tags='CXX ' 39617 39618 # Configured defaults for sys_lib_dlsearch_path munging. 39619 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 39620 39621 # ### BEGIN LIBTOOL CONFIG 39622 39623 # A sed program that does not truncate output. 39624 SED=$lt_SED 39625 39626 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 39627 Xsed="\$SED -e 1s/^X//" 39628 39629 # A grep program that handles long lines. 39630 GREP=$lt_GREP 39631 39632 # An ERE matcher. 39633 EGREP=$lt_EGREP 39634 39635 # A literal string matcher. 39636 FGREP=$lt_FGREP 39637 39638 # Shell to use when invoking shell scripts. 39639 SHELL=$lt_SHELL 39640 39641 # An echo program that protects backslashes. 39642 ECHO=$lt_ECHO 39643 39644 # Which release of libtool.m4 was used? 39645 macro_version=$macro_version 39646 macro_revision=$macro_revision 39647 39648 # Assembler program. 39649 AS=$lt_AS 39650 39651 # DLL creation program. 39652 DLLTOOL=$lt_DLLTOOL 39653 39654 # Object dumper program. 39655 OBJDUMP=$lt_OBJDUMP 39656 39657 # Whether or not to build shared libraries. 39658 build_libtool_libs=$enable_shared 39659 39660 # Whether or not to build static libraries. 39661 build_old_libs=$enable_static 39662 39663 # What type of objects to build. 39664 pic_mode=$pic_mode 39665 39666 # Whether or not to optimize for fast installation. 39667 fast_install=$enable_fast_install 39668 39669 # Shared archive member basename,for filename based shared library versioning on AIX. 39670 shared_archive_member_spec=$shared_archive_member_spec 39671 39672 # The PATH separator for the build system. 39673 PATH_SEPARATOR=$lt_PATH_SEPARATOR 39674 39675 # The host system. 39676 host_alias=$host_alias 39677 host=$host 39678 host_os=$host_os 39679 39680 # The build system. 39681 build_alias=$build_alias 39682 build=$build 39683 build_os=$build_os 39684 39685 # A BSD- or MS-compatible name lister. 39686 NM=$lt_NM 39687 39688 # Whether we need soft or hard links. 39689 LN_S=$lt_LN_S 39690 39691 # What is the maximum length of a command? 39692 max_cmd_len=$max_cmd_len 39693 39694 # Object file suffix (normally "o"). 39695 objext=$ac_objext 39696 39697 # Executable file suffix (normally ""). 39698 exeext=$exeext 39699 39700 # whether the shell understands "unset". 39701 lt_unset=$lt_unset 39702 39703 # turn spaces into newlines. 39704 SP2NL=$lt_lt_SP2NL 39705 39706 # turn newlines into spaces. 39707 NL2SP=$lt_lt_NL2SP 39708 39709 # convert \$build file names to \$host format. 39710 to_host_file_cmd=$lt_cv_to_host_file_cmd 39711 39712 # convert \$build files to toolchain format. 39713 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 39714 39715 # Method to check whether dependent libraries are shared objects. 39716 deplibs_check_method=$lt_deplibs_check_method 39717 39718 # Command to use when deplibs_check_method = "file_magic". 39719 file_magic_cmd=$lt_file_magic_cmd 39720 39721 # How to find potential files when deplibs_check_method = "file_magic". 39722 file_magic_glob=$lt_file_magic_glob 39723 39724 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 39725 want_nocaseglob=$lt_want_nocaseglob 39726 39727 # Command to associate shared and link libraries. 39728 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 39729 39730 # The archiver. 39731 AR=$lt_AR 39732 39733 # Flags to create an archive. 39734 AR_FLAGS=$lt_AR_FLAGS 39735 39736 # How to feed a file listing to the archiver. 39737 archiver_list_spec=$lt_archiver_list_spec 39738 39739 # A symbol stripping program. 39740 STRIP=$lt_STRIP 39741 39742 # Commands used to install an old-style archive. 39743 RANLIB=$lt_RANLIB 39744 old_postinstall_cmds=$lt_old_postinstall_cmds 39745 old_postuninstall_cmds=$lt_old_postuninstall_cmds 39746 39747 # Whether to use a lock for old archive extraction. 39748 lock_old_archive_extraction=$lock_old_archive_extraction 39749 39750 # A C compiler. 39751 LTCC=$lt_CC 39752 39753 # LTCC compiler flags. 39754 LTCFLAGS=$lt_CFLAGS 39755 39756 # Take the output of nm and produce a listing of raw symbols and C names. 39757 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 39758 39759 # Transform the output of nm in a proper C declaration. 39760 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 39761 39762 # Transform the output of nm into a list of symbols to manually relocate. 39763 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 39764 39765 # Transform the output of nm in a C name address pair. 39766 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 39767 39768 # Transform the output of nm in a C name address pair when lib prefix is needed. 39769 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 39770 39771 # The name lister interface. 39772 nm_interface=$lt_lt_cv_nm_interface 39773 39774 # Specify filename containing input files for \$NM. 39775 nm_file_list_spec=$lt_nm_file_list_spec 39776 39777 # The root where to search for dependent libraries,and where our libraries should be installed. 39778 lt_sysroot=$lt_sysroot 39779 39780 # Command to truncate a binary pipe. 39781 lt_truncate_bin=$lt_lt_cv_truncate_bin 39782 39783 # The name of the directory that contains temporary libtool files. 39784 objdir=$objdir 39785 39786 # Used to examine libraries when file_magic_cmd begins with "file". 39787 MAGIC_CMD=$MAGIC_CMD 39788 39789 # Must we lock files when doing compilation? 39790 need_locks=$lt_need_locks 39791 39792 # Manifest tool. 39793 MANIFEST_TOOL=$lt_MANIFEST_TOOL 39794 39795 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 39796 DSYMUTIL=$lt_DSYMUTIL 39797 39798 # Tool to change global to local symbols on Mac OS X. 39799 NMEDIT=$lt_NMEDIT 39800 39801 # Tool to manipulate fat objects and archives on Mac OS X. 39802 LIPO=$lt_LIPO 39803 39804 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 39805 OTOOL=$lt_OTOOL 39806 39807 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 39808 OTOOL64=$lt_OTOOL64 39809 39810 # Old archive suffix (normally "a"). 39811 libext=$libext 39812 39813 # Shared library suffix (normally ".so"). 39814 shrext_cmds=$lt_shrext_cmds 39815 39816 # The commands to extract the exported symbol list from a shared archive. 39817 extract_expsyms_cmds=$lt_extract_expsyms_cmds 39818 39819 # Variables whose values should be saved in libtool wrapper scripts and 39820 # restored at link time. 39821 variables_saved_for_relink=$lt_variables_saved_for_relink 39822 39823 # Do we need the "lib" prefix for modules? 39824 need_lib_prefix=$need_lib_prefix 39825 39826 # Do we need a version for libraries? 39827 need_version=$need_version 39828 39829 # Library versioning type. 39830 version_type=$version_type 39831 39832 # Shared library runtime path variable. 39833 runpath_var=$runpath_var 39834 39835 # Shared library path variable. 39836 shlibpath_var=$shlibpath_var 39837 39838 # Is shlibpath searched before the hard-coded library search path? 39839 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 39840 39841 # Format of library name prefix. 39842 libname_spec=$lt_libname_spec 39843 39844 # List of archive names. First name is the real one, the rest are links. 39845 # The last name is the one that the linker finds with -lNAME 39846 library_names_spec=$lt_library_names_spec 39847 39848 # The coded name of the library, if different from the real name. 39849 soname_spec=$lt_soname_spec 39850 39851 # Permission mode override for installation of shared libraries. 39852 install_override_mode=$lt_install_override_mode 39853 39854 # Command to use after installation of a shared archive. 39855 postinstall_cmds=$lt_postinstall_cmds 39856 39857 # Command to use after uninstallation of a shared archive. 39858 postuninstall_cmds=$lt_postuninstall_cmds 39859 39860 # Commands used to finish a libtool library installation in a directory. 39861 finish_cmds=$lt_finish_cmds 39862 39863 # As "finish_cmds", except a single script fragment to be evaled but 39864 # not shown. 39865 finish_eval=$lt_finish_eval 39866 39867 # Whether we should hardcode library paths into libraries. 39868 hardcode_into_libs=$hardcode_into_libs 39869 39870 # Compile-time system search path for libraries. 39871 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 39872 39873 # Detected run-time system search path for libraries. 39874 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 39875 39876 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 39877 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 39878 39879 # Whether dlopen is supported. 39880 dlopen_support=$enable_dlopen 39881 39882 # Whether dlopen of programs is supported. 39883 dlopen_self=$enable_dlopen_self 39884 39885 # Whether dlopen of statically linked programs is supported. 39886 dlopen_self_static=$enable_dlopen_self_static 39887 39888 # Commands to strip libraries. 39889 old_striplib=$lt_old_striplib 39890 striplib=$lt_striplib 39891 39892 39893 # The linker used to build libraries. 39894 LD=$lt_LD 39895 39896 # How to create reloadable object files. 39897 reload_flag=$lt_reload_flag 39898 reload_cmds=$lt_reload_cmds 39899 39900 # Commands used to build an old-style archive. 39901 old_archive_cmds=$lt_old_archive_cmds 39902 39903 # A language specific compiler. 39904 CC=$lt_compiler 39905 39906 # Is the compiler the GNU compiler? 39907 with_gcc=$GCC 39908 39909 # Compiler flag to turn off builtin functions. 39910 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 39911 39912 # Additional compiler flags for building library objects. 39913 pic_flag=$lt_lt_prog_compiler_pic 39914 39915 # How to pass a linker flag through the compiler. 39916 wl=$lt_lt_prog_compiler_wl 39917 39918 # Compiler flag to prevent dynamic linking. 39919 link_static_flag=$lt_lt_prog_compiler_static 39920 39921 # Does compiler simultaneously support -c and -o options? 39922 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 39923 39924 # Whether or not to add -lc for building shared libraries. 39925 build_libtool_need_lc=$archive_cmds_need_lc 39926 39927 # Whether or not to disallow shared libs when runtime libs are static. 39928 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 39929 39930 # Compiler flag to allow reflexive dlopens. 39931 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 39932 39933 # Compiler flag to generate shared objects directly from archives. 39934 whole_archive_flag_spec=$lt_whole_archive_flag_spec 39935 39936 # Whether the compiler copes with passing no objects directly. 39937 compiler_needs_object=$lt_compiler_needs_object 39938 39939 # Create an old-style archive from a shared archive. 39940 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 39941 39942 # Create a temporary old-style archive to link instead of a shared archive. 39943 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 39944 39945 # Commands used to build a shared archive. 39946 archive_cmds=$lt_archive_cmds 39947 archive_expsym_cmds=$lt_archive_expsym_cmds 39948 39949 # Commands used to build a loadable module if different from building 39950 # a shared archive. 39951 module_cmds=$lt_module_cmds 39952 module_expsym_cmds=$lt_module_expsym_cmds 39953 39954 # Whether we are building with GNU ld or not. 39955 with_gnu_ld=$lt_with_gnu_ld 39956 39957 # Flag that allows shared libraries with undefined symbols to be built. 39958 allow_undefined_flag=$lt_allow_undefined_flag 39959 39960 # Flag that enforces no undefined symbols. 39961 no_undefined_flag=$lt_no_undefined_flag 39962 39963 # Flag to hardcode \$libdir into a binary during linking. 39964 # This must work even if \$libdir does not exist 39965 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 39966 39967 # Whether we need a single "-rpath" flag with a separated argument. 39968 hardcode_libdir_separator=$lt_hardcode_libdir_separator 39969 39970 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 39971 # DIR into the resulting binary. 39972 hardcode_direct=$hardcode_direct 39973 39974 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 39975 # DIR into the resulting binary and the resulting library dependency is 39976 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 39977 # library is relocated. 39978 hardcode_direct_absolute=$hardcode_direct_absolute 39979 39980 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 39981 # into the resulting binary. 39982 hardcode_minus_L=$hardcode_minus_L 39983 39984 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 39985 # into the resulting binary. 39986 hardcode_shlibpath_var=$hardcode_shlibpath_var 39987 39988 # Set to "yes" if building a shared library automatically hardcodes DIR 39989 # into the library and all subsequent libraries and executables linked 39990 # against it. 39991 hardcode_automatic=$hardcode_automatic 39992 39993 # Set to yes if linker adds runtime paths of dependent libraries 39994 # to runtime path list. 39995 inherit_rpath=$inherit_rpath 39996 39997 # Whether libtool must link a program against all its dependency libraries. 39998 link_all_deplibs=$link_all_deplibs 39999 40000 # Set to "yes" if exported symbols are required. 40001 always_export_symbols=$always_export_symbols 40002 40003 # The commands to list exported symbols. 40004 export_symbols_cmds=$lt_export_symbols_cmds 40005 40006 # Symbols that should not be listed in the preloaded symbols. 40007 exclude_expsyms=$lt_exclude_expsyms 40008 40009 # Symbols that must always be exported. 40010 include_expsyms=$lt_include_expsyms 40011 40012 # Commands necessary for linking programs (against libraries) with templates. 40013 prelink_cmds=$lt_prelink_cmds 40014 40015 # Commands necessary for finishing linking programs. 40016 postlink_cmds=$lt_postlink_cmds 40017 40018 # Specify filename containing input files. 40019 file_list_spec=$lt_file_list_spec 40020 40021 # How to hardcode a shared library path into an executable. 40022 hardcode_action=$hardcode_action 40023 40024 # The directories searched by this compiler when creating a shared library. 40025 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 40026 40027 # Dependencies to place before and after the objects being linked to 40028 # create a shared library. 40029 predep_objects=$lt_predep_objects 40030 postdep_objects=$lt_postdep_objects 40031 predeps=$lt_predeps 40032 postdeps=$lt_postdeps 40033 40034 # The library search path used internally by the compiler when linking 40035 # a shared library. 40036 compiler_lib_search_path=$lt_compiler_lib_search_path 40037 40038 # ### END LIBTOOL CONFIG 40039 40040 _LT_EOF 40041 40042 cat <<'_LT_EOF' >> "$cfgfile" 40043 40044 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 40045 40046 # func_munge_path_list VARIABLE PATH 40047 # ----------------------------------- 40048 # VARIABLE is name of variable containing _space_ separated list of 40049 # directories to be munged by the contents of PATH, which is string 40050 # having a format: 40051 # "DIR[:DIR]:" 40052 # string "DIR[ DIR]" will be prepended to VARIABLE 40053 # ":DIR[:DIR]" 40054 # string "DIR[ DIR]" will be appended to VARIABLE 40055 # "DIRP[:DIRP]::[DIRA:]DIRA" 40056 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 40057 # "DIRA[ DIRA]" will be appended to VARIABLE 40058 # "DIR[:DIR]" 40059 # VARIABLE will be replaced by "DIR[ DIR]" 40060 func_munge_path_list () 40061 { 40062 case x$2 in 40063 x) 40064 ;; 40065 *:) 40066 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 40067 ;; 40068 x:*) 40069 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 40070 ;; 40071 *::*) 40072 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 40073 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 40074 ;; 40075 *) 40076 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 40077 ;; 40078 esac 40079 } 40080 40081 40082 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 40083 func_cc_basename () 40084 { 40085 for cc_temp in $*""; do 40086 case $cc_temp in 40087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 40088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 40089 \-*) ;; 40090 *) break;; 40091 esac 40092 done 40093 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 40094 } 40095 40096 40097 # ### END FUNCTIONS SHARED WITH CONFIGURE 40098 40099 _LT_EOF 40100 40101 case $host_os in 40102 aix3*) 40103 cat <<\_LT_EOF >> "$cfgfile" 40104 # AIX sometimes has problems with the GCC collect2 program. For some 40105 # reason, if we set the COLLECT_NAMES environment variable, the problems 40106 # vanish in a puff of smoke. 40107 if test set != "${COLLECT_NAMES+set}"; then 40108 COLLECT_NAMES= 40109 export COLLECT_NAMES 40110 fi 40111 _LT_EOF 40112 ;; 40113 esac 40114 40115 40116 ltmain=$ac_aux_dir/ltmain.sh 40117 40118 40119 # We use sed instead of cat because bash on DJGPP gets confused if 40120 # if finds mixed CR/LF and LF-only lines. Since sed operates in 40121 # text mode, it properly converts lines to CR/LF. This bash problem 40122 # is reportedly fixed, but why not run on old versions too? 40123 sed '$q' "$ltmain" >> "$cfgfile" \ 40124 || (rm -f "$cfgfile"; exit 1) 40125 40126 mv -f "$cfgfile" "$ofile" || 40127 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 40128 chmod +x "$ofile" 40129 40130 40131 cat <<_LT_EOF >> "$ofile" 40132 40133 # ### BEGIN LIBTOOL TAG CONFIG: CXX 40134 40135 # The linker used to build libraries. 40136 LD=$lt_LD_CXX 40137 40138 # How to create reloadable object files. 40139 reload_flag=$lt_reload_flag_CXX 40140 reload_cmds=$lt_reload_cmds_CXX 40141 40142 # Commands used to build an old-style archive. 40143 old_archive_cmds=$lt_old_archive_cmds_CXX 40144 40145 # A language specific compiler. 40146 CC=$lt_compiler_CXX 40147 40148 # Is the compiler the GNU compiler? 40149 with_gcc=$GCC_CXX 40150 40151 # Compiler flag to turn off builtin functions. 40152 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 40153 40154 # Additional compiler flags for building library objects. 40155 pic_flag=$lt_lt_prog_compiler_pic_CXX 40156 40157 # How to pass a linker flag through the compiler. 40158 wl=$lt_lt_prog_compiler_wl_CXX 40159 40160 # Compiler flag to prevent dynamic linking. 40161 link_static_flag=$lt_lt_prog_compiler_static_CXX 40162 40163 # Does compiler simultaneously support -c and -o options? 40164 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 40165 40166 # Whether or not to add -lc for building shared libraries. 40167 build_libtool_need_lc=$archive_cmds_need_lc_CXX 40168 40169 # Whether or not to disallow shared libs when runtime libs are static. 40170 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 40171 40172 # Compiler flag to allow reflexive dlopens. 40173 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 40174 40175 # Compiler flag to generate shared objects directly from archives. 40176 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 40177 40178 # Whether the compiler copes with passing no objects directly. 40179 compiler_needs_object=$lt_compiler_needs_object_CXX 40180 40181 # Create an old-style archive from a shared archive. 40182 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 40183 40184 # Create a temporary old-style archive to link instead of a shared archive. 40185 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 40186 40187 # Commands used to build a shared archive. 40188 archive_cmds=$lt_archive_cmds_CXX 40189 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 40190 40191 # Commands used to build a loadable module if different from building 40192 # a shared archive. 40193 module_cmds=$lt_module_cmds_CXX 40194 module_expsym_cmds=$lt_module_expsym_cmds_CXX 40195 40196 # Whether we are building with GNU ld or not. 40197 with_gnu_ld=$lt_with_gnu_ld_CXX 40198 40199 # Flag that allows shared libraries with undefined symbols to be built. 40200 allow_undefined_flag=$lt_allow_undefined_flag_CXX 40201 40202 # Flag that enforces no undefined symbols. 40203 no_undefined_flag=$lt_no_undefined_flag_CXX 40204 40205 # Flag to hardcode \$libdir into a binary during linking. 40206 # This must work even if \$libdir does not exist 40207 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 40208 40209 # Whether we need a single "-rpath" flag with a separated argument. 40210 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 40211 40212 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 40213 # DIR into the resulting binary. 40214 hardcode_direct=$hardcode_direct_CXX 40215 40216 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 40217 # DIR into the resulting binary and the resulting library dependency is 40218 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 40219 # library is relocated. 40220 hardcode_direct_absolute=$hardcode_direct_absolute_CXX 40221 40222 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 40223 # into the resulting binary. 40224 hardcode_minus_L=$hardcode_minus_L_CXX 40225 40226 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 40227 # into the resulting binary. 40228 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 40229 40230 # Set to "yes" if building a shared library automatically hardcodes DIR 40231 # into the library and all subsequent libraries and executables linked 40232 # against it. 40233 hardcode_automatic=$hardcode_automatic_CXX 40234 40235 # Set to yes if linker adds runtime paths of dependent libraries 40236 # to runtime path list. 40237 inherit_rpath=$inherit_rpath_CXX 40238 40239 # Whether libtool must link a program against all its dependency libraries. 40240 link_all_deplibs=$link_all_deplibs_CXX 40241 40242 # Set to "yes" if exported symbols are required. 40243 always_export_symbols=$always_export_symbols_CXX 40244 40245 # The commands to list exported symbols. 40246 export_symbols_cmds=$lt_export_symbols_cmds_CXX 40247 40248 # Symbols that should not be listed in the preloaded symbols. 40249 exclude_expsyms=$lt_exclude_expsyms_CXX 40250 40251 # Symbols that must always be exported. 40252 include_expsyms=$lt_include_expsyms_CXX 40253 40254 # Commands necessary for linking programs (against libraries) with templates. 40255 prelink_cmds=$lt_prelink_cmds_CXX 40256 40257 # Commands necessary for finishing linking programs. 40258 postlink_cmds=$lt_postlink_cmds_CXX 40259 40260 # Specify filename containing input files. 40261 file_list_spec=$lt_file_list_spec_CXX 40262 40263 # How to hardcode a shared library path into an executable. 40264 hardcode_action=$hardcode_action_CXX 40265 40266 # The directories searched by this compiler when creating a shared library. 40267 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 40268 40269 # Dependencies to place before and after the objects being linked to 40270 # create a shared library. 40271 predep_objects=$lt_predep_objects_CXX 40272 postdep_objects=$lt_postdep_objects_CXX 40273 predeps=$lt_predeps_CXX 40274 postdeps=$lt_postdeps_CXX 40275 40276 # The library search path used internally by the compiler when linking 40277 # a shared library. 40278 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 40279 40280 # ### END LIBTOOL TAG CONFIG: CXX 40281 _LT_EOF 40282 40283 ;; 40284 "magick.sh.in":C) chmod +x magick.sh ;; 40285 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;; 40286 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;; 40287 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;; 40288 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;; 40289 40290 esac 40291 done # for ac_tag 40292 40293 40294 as_fn_exit 0 40295 _ACEOF 40296 ac_clean_files=$ac_clean_files_save 40297 40298 test $ac_write_fail = 0 || 40299 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 40300 40301 40302 # configure is writing to config.log, and then calls config.status. 40303 # config.status does its own redirection, appending to config.log. 40304 # Unfortunately, on DOS this fails, as config.log is still kept open 40305 # by configure, so config.status won't be able to write to it; its 40306 # output is simply discarded. So we exec the FD to /dev/null, 40307 # effectively closing config.log, so it can be properly (re)opened and 40308 # appended to by config.status. When coming back to configure, we 40309 # need to make the FD available again. 40310 if test "$no_create" != yes; then 40311 ac_cs_success=: 40312 ac_config_status_args= 40313 test "$silent" = yes && 40314 ac_config_status_args="$ac_config_status_args --quiet" 40315 exec 5>/dev/null 40316 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 40317 exec 5>>config.log 40318 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 40319 # would make configure fail if this is the last instruction. 40320 $ac_cs_success || as_fn_exit 1 40321 fi 40322 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 40323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 40324 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 40325 fi 40326 40327 40328 # ============================================================================== 40329 # ImageMagick Configuration 40330 # ============================================================================== 40331 { $as_echo "$as_me:${as_lineno-$LINENO}: 40332 ============================================================================== 40333 ImageMagick is configured as follows. Please verify that this configuration 40334 matches your expectations. 40335 40336 Host system type: $host 40337 Build system type: $build 40338 40339 Option Value 40340 ------------------------------------------------------------------------------ 40341 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs 40342 Static libraries --enable-static=$enable_static $libtool_build_static_libs 40343 Module support --with-modules=$build_modules $build_modules 40344 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld 40345 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth 40346 High Dynamic Range Imagery 40347 --enable-hdri=$enable_hdri $enable_hdri 40348 40349 Install documentation: $wantdocs 40350 40351 Delegate Library Configuration: 40352 BZLIB --with-bzlib=$with_bzlib $have_bzlib 40353 Autotrace --with-autotrace=$with_autotrace $have_autotrace 40354 DJVU --with-djvu=$with_djvu $have_djvu 40355 DPS --with-dps=$with_dps $have_dps 40356 FFTW --with-fftw=$with_fftw $have_fftw 40357 FLIF --with-flif=$with_flif $have_flif 40358 FlashPIX --with-fpx=$with_fpx $have_fpx 40359 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig 40360 FreeType --with-freetype=$with_freetype $have_freetype 40361 Ghostscript lib --with-gslib=$with_gslib $have_gslib 40362 Graphviz --with-gvc=$with_gvc $have_gvc 40363 JBIG --with-jbig=$with_jbig $have_jbig 40364 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg 40365 LCMS --with-lcms=$with_lcms $have_lcms 40366 LQR --with-lqr=$with_lqr $have_lqr 40367 LTDL --with-ltdl=$with_ltdl $have_ltdl 40368 LZMA --with-lzma=$with_lzma $have_lzma 40369 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus 40370 OpenEXR --with-openexr=$with_openexr $have_openexr 40371 OpenJP2 --with-openjp2=$with_openjp2 $have_openjp2 40372 PANGO --with-pango=$with_pango $have_pango 40373 PERL --with-perl=$with_perl $have_perl 40374 PNG --with-png=$with_png $have_png 40375 RAQM --with-raqm=$with_raqm $have_raqm 40376 RSVG --with-rsvg=$with_rsvg $have_rsvg 40377 TIFF --with-tiff=$with_tiff $have_tiff 40378 WEBP --with-webp=$with_webp $have_webp 40379 WMF --with-wmf=$with_wmf $have_wmf 40380 X11 --with-x=$with_x $have_x 40381 XML --with-xml=$with_xml $have_xml 40382 ZLIB --with-zlib=$with_zlib $have_zlib 40383 40384 Delegate Program Configuration: 40385 GhostPCL None $PCLDelegate ($PCLVersion) 40386 GhostXPS None $XPSDelegate ($XPSVersion) 40387 Ghostscript None $PSDelegate ($GSVersion) 40388 40389 Font Configuration: 40390 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir 40391 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir 40392 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir 40393 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir 40394 40395 X11 Configuration: 40396 X_CFLAGS = $X_CFLAGS 40397 X_PRE_LIBS = $X_PRE_LIBS 40398 X_LIBS = $X_LIBS 40399 X_EXTRA_LIBS = $X_EXTRA_LIBS 40400 40401 Options used to compile and link: 40402 PREFIX = $PREFIX_DIR 40403 EXEC-PREFIX = $EXEC_PREFIX_DIR 40404 VERSION = $PACKAGE_VERSION 40405 CC = $CC 40406 CFLAGS = $CFLAGS 40407 CPPFLAGS = $CPPFLAGS 40408 PCFLAGS = $PCFLAGS 40409 DEFS = $DEFS 40410 LDFLAGS = $LDFLAGS 40411 LIBS = $LIBS 40412 CXX = $CXX 40413 CXXFLAGS = $CXXFLAGS 40414 FEATURES = $MAGICK_FEATURES 40415 DELEGATES = $MAGICK_DELEGATES 40416 ============================================================================== 40417 " >&5 40418 $as_echo "$as_me: 40419 ============================================================================== 40420 ImageMagick is configured as follows. Please verify that this configuration 40421 matches your expectations. 40422 40423 Host system type: $host 40424 Build system type: $build 40425 40426 Option Value 40427 ------------------------------------------------------------------------------ 40428 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs 40429 Static libraries --enable-static=$enable_static $libtool_build_static_libs 40430 Module support --with-modules=$build_modules $build_modules 40431 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld 40432 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth 40433 High Dynamic Range Imagery 40434 --enable-hdri=$enable_hdri $enable_hdri 40435 40436 Install documentation: $wantdocs 40437 40438 Delegate Library Configuration: 40439 BZLIB --with-bzlib=$with_bzlib $have_bzlib 40440 Autotrace --with-autotrace=$with_autotrace $have_autotrace 40441 DJVU --with-djvu=$with_djvu $have_djvu 40442 DPS --with-dps=$with_dps $have_dps 40443 FFTW --with-fftw=$with_fftw $have_fftw 40444 FLIF --with-flif=$with_flif $have_flif 40445 FlashPIX --with-fpx=$with_fpx $have_fpx 40446 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig 40447 FreeType --with-freetype=$with_freetype $have_freetype 40448 Ghostscript lib --with-gslib=$with_gslib $have_gslib 40449 Graphviz --with-gvc=$with_gvc $have_gvc 40450 JBIG --with-jbig=$with_jbig $have_jbig 40451 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg 40452 LCMS --with-lcms=$with_lcms $have_lcms 40453 LQR --with-lqr=$with_lqr $have_lqr 40454 LTDL --with-ltdl=$with_ltdl $have_ltdl 40455 LZMA --with-lzma=$with_lzma $have_lzma 40456 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus 40457 OpenEXR --with-openexr=$with_openexr $have_openexr 40458 OpenJP2 --with-openjp2=$with_openjp2 $have_openjp2 40459 PANGO --with-pango=$with_pango $have_pango 40460 PERL --with-perl=$with_perl $have_perl 40461 PNG --with-png=$with_png $have_png 40462 RAQM --with-raqm=$with_raqm $have_raqm 40463 RSVG --with-rsvg=$with_rsvg $have_rsvg 40464 TIFF --with-tiff=$with_tiff $have_tiff 40465 WEBP --with-webp=$with_webp $have_webp 40466 WMF --with-wmf=$with_wmf $have_wmf 40467 X11 --with-x=$with_x $have_x 40468 XML --with-xml=$with_xml $have_xml 40469 ZLIB --with-zlib=$with_zlib $have_zlib 40470 40471 Delegate Program Configuration: 40472 GhostPCL None $PCLDelegate ($PCLVersion) 40473 GhostXPS None $XPSDelegate ($XPSVersion) 40474 Ghostscript None $PSDelegate ($GSVersion) 40475 40476 Font Configuration: 40477 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir 40478 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir 40479 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir 40480 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir 40481 40482 X11 Configuration: 40483 X_CFLAGS = $X_CFLAGS 40484 X_PRE_LIBS = $X_PRE_LIBS 40485 X_LIBS = $X_LIBS 40486 X_EXTRA_LIBS = $X_EXTRA_LIBS 40487 40488 Options used to compile and link: 40489 PREFIX = $PREFIX_DIR 40490 EXEC-PREFIX = $EXEC_PREFIX_DIR 40491 VERSION = $PACKAGE_VERSION 40492 CC = $CC 40493 CFLAGS = $CFLAGS 40494 CPPFLAGS = $CPPFLAGS 40495 PCFLAGS = $PCFLAGS 40496 DEFS = $DEFS 40497 LDFLAGS = $LDFLAGS 40498 LIBS = $LIBS 40499 CXX = $CXX 40500 CXXFLAGS = $CXXFLAGS 40501 FEATURES = $MAGICK_FEATURES 40502 DELEGATES = $MAGICK_DELEGATES 40503 ============================================================================== 40504 " >&6;} 40505