configure revision 422d550dfecdb591d85b6fb7dbf968116656cc4c
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0. 4# 5# Report bugs to <http://www.imagemagick.org>. 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 18DUALCASE=1; export DUALCASE # for MKS sh 19if 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 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_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. 45if 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 --' 49elif (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' 52else 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' 72fi 73 74# The user is always right. 75if 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 } 81fi 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.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 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 102IFS=$as_save_IFS 103 104 ;; 105esac 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. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 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. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export 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. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $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 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if 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 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -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 201test \$(( 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 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 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 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 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 244fi; } 245IFS=$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. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $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 267exit 255 268fi 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@gnu.org and 278$0: http://www.imagemagick.org about your system, including 279$0: any error possibly output before this message. Then 280$0: install a modern shell, or manually run the script 281$0: under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_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. 316as_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. 326as_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. 374as_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. 384if (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 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # 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. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # 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. 419as_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 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_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. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_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 511ECHO_C= ECHO_N= ECHO_T= 512case `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';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (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 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_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. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 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. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='ImageMagick' 592PACKAGE_TARNAME='ImageMagick' 593PACKAGE_VERSION='7.0.0-0' 594PACKAGE_STRING='ImageMagick 7.0.0-0' 595PACKAGE_BUGREPORT='http://www.imagemagick.org' 596PACKAGE_URL='' 597 598ac_unique_file="MagickCore/MagickCore.h" 599# Factoring default headers for most tests. 600ac_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 635ac_header_list= 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639MAGICK_LIBS 640MAGICK_LDFLAGS 641MAGICK_PCFLAGS 642MAGICK_CPPFLAGS 643MAGICK_CXXFLAGS 644MAGICK_CFLAGS 645MAGICK_DEP_LIBS 646OSX_GCOV_LDFLAG 647MAGICK_FEATURES 648MAGICK_DELEGATES 649MAGICKCORE_PATH 650PERL_SUPPORTS_DESTDIR 651WITH_PERL_DYNAMIC_FALSE 652WITH_PERL_DYNAMIC_TRUE 653WITH_PERL_STATIC_FALSE 654WITH_PERL_STATIC_TRUE 655WITH_PERL_FALSE 656WITH_PERL_TRUE 657PERL_VERSION 658GSVersion 659GSPSDevice 660GSPDFDevice 661GSMonoDevice 662GSEPSDevice 663GSColorDevice 664GSCMYKDevice 665GSAlphaDevice 666XPSVersion 667XPSCMYKDevice 668XPSColorDevice 669XPSMonoDevice 670PCLVersion 671PCLCMYKDevice 672PCLColorDevice 673PCLMonoDevice 674ZIP_DELEGATE_FALSE 675ZIP_DELEGATE_TRUE 676ZIP 677P7ZIP_DELEGATE_FALSE 678P7ZIP_DELEGATE_TRUE 679P7ZIP 680RPM_DELEGATE_FALSE 681RPM_DELEGATE_TRUE 682RPM 683PERL 684TAR 685ShowImageDelegate 686type_include_files 687ghostscript_font_dir 688windows_font_dir 689dejavu_font_dir 690PrintDelegate 691ZipDelegate 692XPSDelegate 693WWWDecodeDelegate 694WMFDecodeDelegate 695UniconvertorDelegate 696TXTDelegate 697SVGDecodeDelegate 698SCANDecodeDelegate 699RSVGDecodeDelegate 700RMDelegate 701RLEEncodeDelegate 702PSDelegate 703POVDelegate 704PGPDecodeDelegate 705PCLDelegate 706MVDelegate 707MrSIDDecodeDelegate 708MPEGEncodeDelegate 709MPEGDecodeDelegate 710MANDelegate 711LaunchDelegate 712LPRDelegate 713LPDelegate 714ILBMEncodeDelegate 715ILBMDecodeDelegate 716HTMLDecodeDelegate 717HPGLDecodeDelegate 718GnuplotDecodeDelegate 719MogrifyDelegate 720DisplayDelegate 721ConvertDelegate 722FIGDecodeDelegate 723EditorDelegate 724EchoDelegate 725DVIDecodeDelegate 726GVCDecodeDelegate 727DNGDecodeDelegate 728CatDelegate 729CGMDecodeDelegate 730BrowseDelegate 731BZIPDelegate 732BlenderDecodeDelegate 733AutotraceDecodeDelegate 734SHAREARCH_PATH 735SHAREARCH_RELATIVE_PATH 736SHAREARCH_DIRNAME 737SHAREARCH_BASEDIRNAME 738SHARE_PATH 739CONFIGURE_PATH 740DOCUMENTATION_PATH 741FILTER_PATH 742FILTER_DIRNAME 743CODER_PATH 744CODER_DIRNAME 745MODULES_PATH 746MODULES_RELATIVE_PATH 747MODULES_DIRNAME 748MODULES_BASEDIRNAME 749LIBRARY_PATH 750EXECUTABLE_PATH 751INCLUDE_PATH 752PERLMAINCC 753XML_LIBS 754XML_DELEGATE_FALSE 755XML_DELEGATE_TRUE 756xml2_config 757WMF_LIBS_DEPS 758WMF_LIBS 759WMF_DELEGATE_FALSE 760WMF_DELEGATE_TRUE 761WEBP_LIBS 762WEBP_DELEGATE_FALSE 763WEBP_DELEGATE_TRUE 764TIFF_LIBS 765TIFF_DELEGATE_FALSE 766TIFF_DELEGATE_TRUE 767CAIRO_DELEGATE_FALSE 768CAIRO_DELEGATE_TRUE 769RSVG_DELEGATE_FALSE 770RSVG_DELEGATE_TRUE 771CAIRO_SVG_LIBS 772CAIRO_SVG_CFLAGS 773RSVG_LIBS 774RSVG_CFLAGS 775PNG_LIBS 776PNG_DELEGATE_FALSE 777PNG_DELEGATE_TRUE 778PANGOCAIRO_DELEGATE_FALSE 779PANGOCAIRO_DELEGATE_TRUE 780PANGO_DELEGATE_FALSE 781PANGO_DELEGATE_TRUE 782PANGO_LIBS 783PANGO_CFLAGS 784OPENEXR_DELEGATE_FALSE 785OPENEXR_DELEGATE_TRUE 786OPENEXR_LIBS 787OPENEXR_CFLAGS 788LZMA_DELEGATE_FALSE 789LZMA_DELEGATE_TRUE 790LZMA_LIBS 791LZMA_CFLAGS 792LQR_DELEGATE_FALSE 793LQR_DELEGATE_TRUE 794LQR_LIBS 795LQR_CFLAGS 796LCMS_LIBS 797LCMS_DELEGATE_FALSE 798LCMS_DELEGATE_TRUE 799JP2_LIBS 800JP2_DELEGATE_FALSE 801JP2_DELEGATE_TRUE 802JPEG_LIBS 803JPEG_DELEGATE_FALSE 804JPEG_DELEGATE_TRUE 805JBIG_LIBS 806JBIG_DELEGATE_FALSE 807JBIG_DELEGATE_TRUE 808GVC_DELEGATE_FALSE 809GVC_DELEGATE_TRUE 810GVC_LIBS 811GVC_CFLAGS 812GS_LIBS 813GS_DELEGATE_FALSE 814GS_DELEGATE_TRUE 815FREETYPE_LIBS 816FREETYPE_DELEGATE_FALSE 817FREETYPE_DELEGATE_TRUE 818freetype_config 819FONTCONFIG_DELEGATE_FALSE 820FONTCONFIG_DELEGATE_TRUE 821FONTCONFIG_LIBS 822FONTCONFIG_CFLAGS 823FPX_LIBS 824FPX_DELEGATE_FALSE 825FPX_DELEGATE_TRUE 826FFTW_LIBS 827FFTW_DELEGATE_FALSE 828FFTW_DELEGATE_TRUE 829DJVU_LIBS 830DJVU_DELEGATE_FALSE 831DJVU_DELEGATE_TRUE 832DPS_LIBS 833DPS_DELEGATE_FALSE 834DPS_DELEGATE_TRUE 835AUTOTRACE_DELEGATE_FALSE 836AUTOTRACE_DELEGATE_TRUE 837AUTOTRACE_LIBS 838AUTOTRACE_CFLAGS 839LIB_DL 840WITH_LTDL_FALSE 841WITH_LTDL_TRUE 842ZLIB_LIBS 843ZLIB_DELEGATE_FALSE 844ZLIB_DELEGATE_TRUE 845XEXT_LIBS 846X11_LIBS 847X11_DELEGATE_FALSE 848X11_DELEGATE_TRUE 849X_EXTRA_LIBS 850X_LIBS 851X_PRE_LIBS 852X_CFLAGS 853XMKMF 854BZLIB_LIBS 855BZLIB_DELEGATE_FALSE 856BZLIB_DELEGATE_TRUE 857CCMALLOCDelegate 858UMEM_LIBS 859HasUMEM_FALSE 860HasUMEM_TRUE 861THREAD_LIBS 862GOMP_LIBS 863WITH_MAGICK_PLUS_PLUS_FALSE 864WITH_MAGICK_PLUS_PLUS_TRUE 865OPENMP_CXXFLAGS 866MATH_LIBS 867POW_LIB 868LIBOBJS 869UINTPTR_F 870UINTPTR_T 871UINTMAX_F 872UINTMAX_T 873UINT64_F 874UINT64_T 875INT64_F 876INT64_T 877UINT32_F 878UINT32_T 879INT32_F 880INT32_T 881UINT16_T 882INT16_T 883UINT8_T 884INT8_T 885LIBRARY_EXTRA_CPPFLAGS 886MODULE_EXTRA_CPPFLAGS 887LIBSTDCLDFLAGS 888PERL_MAKE_OPTIONS 889MAGICK_LT_RELEASE_OPTS 890MAGICK_ABI_SUFFIX 891QUANTUM_DEPTH 892LEGACY_SUPPORT_FALSE 893LEGACY_SUPPORT_TRUE 894MAINT 895MAINTAINER_MODE_FALSE 896MAINTAINER_MODE_TRUE 897MAGICK_HDRI 898WITH_MODULES_FALSE 899WITH_MODULES_TRUE 900WITH_SHARED_LIBS_FALSE 901WITH_SHARED_LIBS_TRUE 902LIBTOOL_DEPS 903CXXCPP 904OTOOL64 905OTOOL 906LIPO 907NMEDIT 908DSYMUTIL 909MANIFEST_TOOL 910RANLIB 911ac_ct_AR 912AR 913NM 914ac_ct_DUMPBIN 915DUMPBIN 916LIBTOOL 917OBJDUMP 918DLLTOOL 919AS 920LFS_CPPFLAGS 921CL_LIBS 922CL_CFLAGS 923OPENMP_CFLAGS 924PTHREAD_CFLAGS 925PTHREAD_LIBS 926PTHREAD_CC 927ax_pthread_config 928SHAREARCH_DIR 929INCLUDEARCH_DIR 930WinPathScript 931USING_CL_FALSE 932USING_CL_TRUE 933CYGWIN_BUILD_FALSE 934CYGWIN_BUILD_TRUE 935WIN32_NATIVE_BUILD_FALSE 936WIN32_NATIVE_BUILD_TRUE 937WINGDI32_DELEGATE_FALSE 938WINGDI32_DELEGATE_TRUE 939GDI32_LIBS 940HAVE_LD_VERSION_SCRIPT_FALSE 941HAVE_LD_VERSION_SCRIPT_TRUE 942PKG_CONFIG 943PRTDIAG 944LN_S 945LD 946FGREP 947SED 948am__fastdepCXX_FALSE 949am__fastdepCXX_TRUE 950CXXDEPMODE 951ac_ct_CXX 952CXXFLAGS 953CXX 954EGREP 955GREP 956CPP 957am__fastdepCC_FALSE 958am__fastdepCC_TRUE 959CCDEPMODE 960am__nodep 961AMDEPBACKSLASH 962AMDEP_FALSE 963AMDEP_TRUE 964am__quote 965am__include 966DEPDIR 967OBJEXT 968EXEEXT 969ac_ct_CC 970CPPFLAGS 971LDFLAGS 972CFLAGS 973CC 974DIRSEP 975MAGICK_FILTER_MODULE_PATH 976MAGICK_CONFIGURE_BUILD_PATH 977MAGICK_CONFIGURE_SRC_PATH 978MAGICK_CODER_MODULE_PATH 979MAN_DIR 980INFO_DIR 981PERSISTINCLUDE_DIR 982INCLUDE_DIR 983LIB_DIR 984LOCALSTATE_DIR 985SHAREDSTATE_DIR 986SYSCONF_DIR 987DOC_DIR 988DATA_DIR 989LIBEXEC_DIR 990SBIN_DIR 991BIN_DIR 992EXEC_PREFIX_DIR 993PREFIX_DIR 994CONFIG_STATUS_DEPENDENCIES 995MAGICK_LIB_VERSION_NUMBER 996MAGICK_LIB_VERSION_TEXT 997MAGICK_LIB_VERSION 998AM_BACKSLASH 999AM_DEFAULT_VERBOSITY 1000AM_DEFAULT_V 1001AM_V 1002am__untar 1003am__tar 1004AMTAR 1005am__leading_dot 1006SET_MAKE 1007AWK 1008mkdir_p 1009MKDIR_P 1010INSTALL_STRIP_PROGRAM 1011STRIP 1012install_sh 1013MAKEINFO 1014AUTOHEADER 1015AUTOMAKE 1016AUTOCONF 1017ACLOCAL 1018VERSION 1019PACKAGE 1020CYGPATH_W 1021am__isrc 1022INSTALL_DATA 1023INSTALL_SCRIPT 1024INSTALL_PROGRAM 1025PACKAGE_VERSION_ADDENDUM 1026PACKAGE_RELEASE_DATE 1027PACKAGE_LIB_VERSION_NUMBER 1028PACKAGE_LIB_VERSION 1029PACKAGE_CHANGE_DATE 1030PACKAGE_RELEASE 1031PACKAGE_PERL_VERSION 1032MAGICK_SVN_REVISION 1033MAGICK_LIBRARY_VERSION_INFO 1034MAGICK_LIBRARY_CURRENT_MIN 1035MAGICK_LIBRARY_AGE 1036MAGICK_LIBRARY_REVISION 1037MAGICK_LIBRARY_CURRENT 1038MAGICK_TARGET_OS 1039MAGICK_TARGET_VENDOR 1040MAGICK_TARGET_CPU 1041target_os 1042target_vendor 1043target_cpu 1044target 1045host_os 1046host_vendor 1047host_cpu 1048host 1049build_os 1050build_vendor 1051build_cpu 1052build 1053CONFIGURE_ARGS 1054DISTCHECK_CONFIG_FLAGS 1055target_alias 1056host_alias 1057build_alias 1058LIBS 1059ECHO_T 1060ECHO_N 1061ECHO_C 1062DEFS 1063mandir 1064localedir 1065libdir 1066psdir 1067pdfdir 1068dvidir 1069htmldir 1070infodir 1071docdir 1072oldincludedir 1073includedir 1074localstatedir 1075sharedstatedir 1076sysconfdir 1077datadir 1078datarootdir 1079libexecdir 1080sbindir 1081bindir 1082program_transform_name 1083prefix 1084exec_prefix 1085PACKAGE_URL 1086PACKAGE_BUGREPORT 1087PACKAGE_STRING 1088PACKAGE_VERSION 1089PACKAGE_TARNAME 1090PACKAGE_NAME 1091PATH_SEPARATOR 1092SHELL' 1093ac_subst_files='' 1094ac_user_opts=' 1095enable_option_checking 1096enable_silent_rules 1097enable_dependency_tracking 1098with_gnu_ld 1099with_dmalloc 1100with_gcc_arch 1101enable_ld_version_script 1102enable_bounds_checking 1103enable_osx_universal_binary 1104with_includearch_dir 1105with_sharearch_dir 1106with_threads 1107enable_openmp 1108enable_opencl 1109enable_largefile 1110enable_shared 1111enable_static 1112with_pic 1113enable_fast_install 1114with_sysroot 1115enable_libtool_lock 1116with_modules 1117enable_delegate_build 1118enable_deprecated 1119enable_installed 1120enable_cipher 1121enable_zero_configuration 1122enable_hdri 1123enable_assert 1124enable_maintainer_mode 1125enable_ccmalloc 1126enable_efence 1127enable_prof 1128enable_gprof 1129enable_gcov 1130with_method_prefix 1131enable_legacy_support 1132with_quantum_depth 1133with_cache 1134with_frozenpaths 1135with_magick_plus_plus 1136with_package_release_name 1137with_perl 1138with_perl_options 1139with_umem 1140with_libstdc 1141with_bzlib 1142with_x 1143with_zlib 1144with_autotrace 1145with_dps 1146with_djvu 1147with_dejavu_font_dir 1148with_fftw 1149with_fpx 1150with_fontconfig 1151with_freetype 1152with_gslib 1153with_fontpath 1154with_gs_font_dir 1155with_gvc 1156with_jbig 1157with_jpeg 1158with_jp2 1159with_lcms 1160with_lcms2 1161with_lqr 1162with_lzma 1163with_openexr 1164with_pango 1165with_png 1166with_rsvg 1167with_tiff 1168with_webp 1169with_windows_font_dir 1170with_wmf 1171with_xml 1172' 1173 ac_precious_vars='build_alias 1174host_alias 1175target_alias 1176CC 1177CFLAGS 1178LDFLAGS 1179LIBS 1180CPPFLAGS 1181CPP 1182CXX 1183CXXFLAGS 1184CCC 1185PKG_CONFIG 1186CXXCPP 1187XMKMF 1188AUTOTRACE_CFLAGS 1189AUTOTRACE_LIBS 1190FONTCONFIG_CFLAGS 1191FONTCONFIG_LIBS 1192GVC_CFLAGS 1193GVC_LIBS 1194LQR_CFLAGS 1195LQR_LIBS 1196LZMA_CFLAGS 1197LZMA_LIBS 1198OPENEXR_CFLAGS 1199OPENEXR_LIBS 1200PANGO_CFLAGS 1201PANGO_LIBS 1202RSVG_CFLAGS 1203RSVG_LIBS 1204CAIRO_SVG_CFLAGS 1205CAIRO_SVG_LIBS' 1206 1207 1208# Initialize some variables set by options. 1209ac_init_help= 1210ac_init_version=false 1211ac_unrecognized_opts= 1212ac_unrecognized_sep= 1213# The variables have the same names as the options, with 1214# dashes changed to underlines. 1215cache_file=/dev/null 1216exec_prefix=NONE 1217no_create= 1218no_recursion= 1219prefix=NONE 1220program_prefix=NONE 1221program_suffix=NONE 1222program_transform_name=s,x,x, 1223silent= 1224site= 1225srcdir= 1226verbose= 1227x_includes=NONE 1228x_libraries=NONE 1229 1230# Installation directory options. 1231# These are left unexpanded so users can "make install exec_prefix=/foo" 1232# and all the variables that are supposed to be based on exec_prefix 1233# by default will actually change. 1234# Use braces instead of parens because sh, perl, etc. also accept them. 1235# (The list follows the same order as the GNU Coding Standards.) 1236bindir='${exec_prefix}/bin' 1237sbindir='${exec_prefix}/sbin' 1238libexecdir='${exec_prefix}/libexec' 1239datarootdir='${prefix}/share' 1240datadir='${datarootdir}' 1241sysconfdir='${prefix}/etc' 1242sharedstatedir='${prefix}/com' 1243localstatedir='${prefix}/var' 1244includedir='${prefix}/include' 1245oldincludedir='/usr/include' 1246docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1247infodir='${datarootdir}/info' 1248htmldir='${docdir}' 1249dvidir='${docdir}' 1250pdfdir='${docdir}' 1251psdir='${docdir}' 1252libdir='${exec_prefix}/lib' 1253localedir='${datarootdir}/locale' 1254mandir='${datarootdir}/man' 1255 1256ac_prev= 1257ac_dashdash= 1258for ac_option 1259do 1260 # If the previous option needs an argument, assign it. 1261 if test -n "$ac_prev"; then 1262 eval $ac_prev=\$ac_option 1263 ac_prev= 1264 continue 1265 fi 1266 1267 case $ac_option in 1268 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1269 *=) ac_optarg= ;; 1270 *) ac_optarg=yes ;; 1271 esac 1272 1273 # Accept the important Cygnus configure options, so we can diagnose typos. 1274 1275 case $ac_dashdash$ac_option in 1276 --) 1277 ac_dashdash=yes ;; 1278 1279 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1280 ac_prev=bindir ;; 1281 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1282 bindir=$ac_optarg ;; 1283 1284 -build | --build | --buil | --bui | --bu) 1285 ac_prev=build_alias ;; 1286 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1287 build_alias=$ac_optarg ;; 1288 1289 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1290 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1291 ac_prev=cache_file ;; 1292 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1293 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1294 cache_file=$ac_optarg ;; 1295 1296 --config-cache | -C) 1297 cache_file=config.cache ;; 1298 1299 -datadir | --datadir | --datadi | --datad) 1300 ac_prev=datadir ;; 1301 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1302 datadir=$ac_optarg ;; 1303 1304 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1305 | --dataroo | --dataro | --datar) 1306 ac_prev=datarootdir ;; 1307 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1308 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1309 datarootdir=$ac_optarg ;; 1310 1311 -disable-* | --disable-*) 1312 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1313 # Reject names that are not valid shell variable names. 1314 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1315 as_fn_error $? "invalid feature name: $ac_useropt" 1316 ac_useropt_orig=$ac_useropt 1317 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1318 case $ac_user_opts in 1319 *" 1320"enable_$ac_useropt" 1321"*) ;; 1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1323 ac_unrecognized_sep=', ';; 1324 esac 1325 eval enable_$ac_useropt=no ;; 1326 1327 -docdir | --docdir | --docdi | --doc | --do) 1328 ac_prev=docdir ;; 1329 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1330 docdir=$ac_optarg ;; 1331 1332 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1333 ac_prev=dvidir ;; 1334 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1335 dvidir=$ac_optarg ;; 1336 1337 -enable-* | --enable-*) 1338 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1339 # Reject names that are not valid shell variable names. 1340 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1341 as_fn_error $? "invalid feature name: $ac_useropt" 1342 ac_useropt_orig=$ac_useropt 1343 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1344 case $ac_user_opts in 1345 *" 1346"enable_$ac_useropt" 1347"*) ;; 1348 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1349 ac_unrecognized_sep=', ';; 1350 esac 1351 eval enable_$ac_useropt=\$ac_optarg ;; 1352 1353 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1354 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1355 | --exec | --exe | --ex) 1356 ac_prev=exec_prefix ;; 1357 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1358 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1359 | --exec=* | --exe=* | --ex=*) 1360 exec_prefix=$ac_optarg ;; 1361 1362 -gas | --gas | --ga | --g) 1363 # Obsolete; use --with-gas. 1364 with_gas=yes ;; 1365 1366 -help | --help | --hel | --he | -h) 1367 ac_init_help=long ;; 1368 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1369 ac_init_help=recursive ;; 1370 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1371 ac_init_help=short ;; 1372 1373 -host | --host | --hos | --ho) 1374 ac_prev=host_alias ;; 1375 -host=* | --host=* | --hos=* | --ho=*) 1376 host_alias=$ac_optarg ;; 1377 1378 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1379 ac_prev=htmldir ;; 1380 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1381 | --ht=*) 1382 htmldir=$ac_optarg ;; 1383 1384 -includedir | --includedir | --includedi | --included | --include \ 1385 | --includ | --inclu | --incl | --inc) 1386 ac_prev=includedir ;; 1387 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1388 | --includ=* | --inclu=* | --incl=* | --inc=*) 1389 includedir=$ac_optarg ;; 1390 1391 -infodir | --infodir | --infodi | --infod | --info | --inf) 1392 ac_prev=infodir ;; 1393 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1394 infodir=$ac_optarg ;; 1395 1396 -libdir | --libdir | --libdi | --libd) 1397 ac_prev=libdir ;; 1398 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1399 libdir=$ac_optarg ;; 1400 1401 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1402 | --libexe | --libex | --libe) 1403 ac_prev=libexecdir ;; 1404 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1405 | --libexe=* | --libex=* | --libe=*) 1406 libexecdir=$ac_optarg ;; 1407 1408 -localedir | --localedir | --localedi | --localed | --locale) 1409 ac_prev=localedir ;; 1410 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1411 localedir=$ac_optarg ;; 1412 1413 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1414 | --localstate | --localstat | --localsta | --localst | --locals) 1415 ac_prev=localstatedir ;; 1416 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1417 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1418 localstatedir=$ac_optarg ;; 1419 1420 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1421 ac_prev=mandir ;; 1422 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1423 mandir=$ac_optarg ;; 1424 1425 -nfp | --nfp | --nf) 1426 # Obsolete; use --without-fp. 1427 with_fp=no ;; 1428 1429 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1430 | --no-cr | --no-c | -n) 1431 no_create=yes ;; 1432 1433 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1434 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1435 no_recursion=yes ;; 1436 1437 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1438 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1439 | --oldin | --oldi | --old | --ol | --o) 1440 ac_prev=oldincludedir ;; 1441 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1442 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1443 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1444 oldincludedir=$ac_optarg ;; 1445 1446 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1447 ac_prev=prefix ;; 1448 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1449 prefix=$ac_optarg ;; 1450 1451 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1452 | --program-pre | --program-pr | --program-p) 1453 ac_prev=program_prefix ;; 1454 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1455 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1456 program_prefix=$ac_optarg ;; 1457 1458 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1459 | --program-suf | --program-su | --program-s) 1460 ac_prev=program_suffix ;; 1461 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1462 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1463 program_suffix=$ac_optarg ;; 1464 1465 -program-transform-name | --program-transform-name \ 1466 | --program-transform-nam | --program-transform-na \ 1467 | --program-transform-n | --program-transform- \ 1468 | --program-transform | --program-transfor \ 1469 | --program-transfo | --program-transf \ 1470 | --program-trans | --program-tran \ 1471 | --progr-tra | --program-tr | --program-t) 1472 ac_prev=program_transform_name ;; 1473 -program-transform-name=* | --program-transform-name=* \ 1474 | --program-transform-nam=* | --program-transform-na=* \ 1475 | --program-transform-n=* | --program-transform-=* \ 1476 | --program-transform=* | --program-transfor=* \ 1477 | --program-transfo=* | --program-transf=* \ 1478 | --program-trans=* | --program-tran=* \ 1479 | --progr-tra=* | --program-tr=* | --program-t=*) 1480 program_transform_name=$ac_optarg ;; 1481 1482 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1483 ac_prev=pdfdir ;; 1484 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1485 pdfdir=$ac_optarg ;; 1486 1487 -psdir | --psdir | --psdi | --psd | --ps) 1488 ac_prev=psdir ;; 1489 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1490 psdir=$ac_optarg ;; 1491 1492 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1493 | -silent | --silent | --silen | --sile | --sil) 1494 silent=yes ;; 1495 1496 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1497 ac_prev=sbindir ;; 1498 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1499 | --sbi=* | --sb=*) 1500 sbindir=$ac_optarg ;; 1501 1502 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1503 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1504 | --sharedst | --shareds | --shared | --share | --shar \ 1505 | --sha | --sh) 1506 ac_prev=sharedstatedir ;; 1507 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1508 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1509 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1510 | --sha=* | --sh=*) 1511 sharedstatedir=$ac_optarg ;; 1512 1513 -site | --site | --sit) 1514 ac_prev=site ;; 1515 -site=* | --site=* | --sit=*) 1516 site=$ac_optarg ;; 1517 1518 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1519 ac_prev=srcdir ;; 1520 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1521 srcdir=$ac_optarg ;; 1522 1523 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1524 | --syscon | --sysco | --sysc | --sys | --sy) 1525 ac_prev=sysconfdir ;; 1526 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1527 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1528 sysconfdir=$ac_optarg ;; 1529 1530 -target | --target | --targe | --targ | --tar | --ta | --t) 1531 ac_prev=target_alias ;; 1532 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1533 target_alias=$ac_optarg ;; 1534 1535 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1536 verbose=yes ;; 1537 1538 -version | --version | --versio | --versi | --vers | -V) 1539 ac_init_version=: ;; 1540 1541 -with-* | --with-*) 1542 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1543 # Reject names that are not valid shell variable names. 1544 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1545 as_fn_error $? "invalid package name: $ac_useropt" 1546 ac_useropt_orig=$ac_useropt 1547 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1548 case $ac_user_opts in 1549 *" 1550"with_$ac_useropt" 1551"*) ;; 1552 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1553 ac_unrecognized_sep=', ';; 1554 esac 1555 eval with_$ac_useropt=\$ac_optarg ;; 1556 1557 -without-* | --without-*) 1558 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1559 # Reject names that are not valid shell variable names. 1560 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1561 as_fn_error $? "invalid package name: $ac_useropt" 1562 ac_useropt_orig=$ac_useropt 1563 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1564 case $ac_user_opts in 1565 *" 1566"with_$ac_useropt" 1567"*) ;; 1568 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1569 ac_unrecognized_sep=', ';; 1570 esac 1571 eval with_$ac_useropt=no ;; 1572 1573 --x) 1574 # Obsolete; use --with-x. 1575 with_x=yes ;; 1576 1577 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1578 | --x-incl | --x-inc | --x-in | --x-i) 1579 ac_prev=x_includes ;; 1580 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1581 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1582 x_includes=$ac_optarg ;; 1583 1584 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1585 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1586 ac_prev=x_libraries ;; 1587 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1588 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1589 x_libraries=$ac_optarg ;; 1590 1591 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1592Try \`$0 --help' for more information" 1593 ;; 1594 1595 *=*) 1596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1597 # Reject names that are not valid shell variable names. 1598 case $ac_envvar in #( 1599 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1600 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1601 esac 1602 eval $ac_envvar=\$ac_optarg 1603 export $ac_envvar ;; 1604 1605 *) 1606 # FIXME: should be removed in autoconf 3.0. 1607 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1609 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1610 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1611 ;; 1612 1613 esac 1614done 1615 1616if test -n "$ac_prev"; then 1617 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1618 as_fn_error $? "missing argument to $ac_option" 1619fi 1620 1621if test -n "$ac_unrecognized_opts"; then 1622 case $enable_option_checking in 1623 no) ;; 1624 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1625 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1626 esac 1627fi 1628 1629# Check all directory arguments for consistency. 1630for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1631 datadir sysconfdir sharedstatedir localstatedir includedir \ 1632 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1633 libdir localedir mandir 1634do 1635 eval ac_val=\$$ac_var 1636 # Remove trailing slashes. 1637 case $ac_val in 1638 */ ) 1639 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1640 eval $ac_var=\$ac_val;; 1641 esac 1642 # Be sure to have absolute directory names. 1643 case $ac_val in 1644 [\\/$]* | ?:[\\/]* ) continue;; 1645 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1646 esac 1647 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1648done 1649 1650# There might be people who depend on the old broken behavior: `$host' 1651# used to hold the argument of --host etc. 1652# FIXME: To remove some day. 1653build=$build_alias 1654host=$host_alias 1655target=$target_alias 1656 1657# FIXME: To remove some day. 1658if test "x$host_alias" != x; then 1659 if test "x$build_alias" = x; then 1660 cross_compiling=maybe 1661 elif test "x$build_alias" != "x$host_alias"; then 1662 cross_compiling=yes 1663 fi 1664fi 1665 1666ac_tool_prefix= 1667test -n "$host_alias" && ac_tool_prefix=$host_alias- 1668 1669test "$silent" = yes && exec 6>/dev/null 1670 1671 1672ac_pwd=`pwd` && test -n "$ac_pwd" && 1673ac_ls_di=`ls -di .` && 1674ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1675 as_fn_error $? "working directory cannot be determined" 1676test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1677 as_fn_error $? "pwd does not report name of working directory" 1678 1679 1680# Find the source files, if location was not specified. 1681if test -z "$srcdir"; then 1682 ac_srcdir_defaulted=yes 1683 # Try the directory containing this script, then the parent directory. 1684 ac_confdir=`$as_dirname -- "$as_myself" || 1685$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1686 X"$as_myself" : 'X\(//\)[^/]' \| \ 1687 X"$as_myself" : 'X\(//\)$' \| \ 1688 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1689$as_echo X"$as_myself" | 1690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1691 s//\1/ 1692 q 1693 } 1694 /^X\(\/\/\)[^/].*/{ 1695 s//\1/ 1696 q 1697 } 1698 /^X\(\/\/\)$/{ 1699 s//\1/ 1700 q 1701 } 1702 /^X\(\/\).*/{ 1703 s//\1/ 1704 q 1705 } 1706 s/.*/./; q'` 1707 srcdir=$ac_confdir 1708 if test ! -r "$srcdir/$ac_unique_file"; then 1709 srcdir=.. 1710 fi 1711else 1712 ac_srcdir_defaulted=no 1713fi 1714if test ! -r "$srcdir/$ac_unique_file"; then 1715 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1716 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1717fi 1718ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1719ac_abs_confdir=`( 1720 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1721 pwd)` 1722# When building in place, set srcdir=. 1723if test "$ac_abs_confdir" = "$ac_pwd"; then 1724 srcdir=. 1725fi 1726# Remove unnecessary trailing slashes from srcdir. 1727# Double slashes in file names in object file debugging info 1728# mess up M-x gdb in Emacs. 1729case $srcdir in 1730*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1731esac 1732for ac_var in $ac_precious_vars; do 1733 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1734 eval ac_env_${ac_var}_value=\$${ac_var} 1735 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1736 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1737done 1738 1739# 1740# Report the --help message. 1741# 1742if test "$ac_init_help" = "long"; then 1743 # Omit some internal or obsolete options to make the list less imposing. 1744 # This message is too long to be a string in the A/UX 3.1 sh. 1745 cat <<_ACEOF 1746\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems. 1747 1748Usage: $0 [OPTION]... [VAR=VALUE]... 1749 1750To assign environment variables (e.g., CC, CFLAGS...), specify them as 1751VAR=VALUE. See below for descriptions of some of the useful variables. 1752 1753Defaults for the options are specified in brackets. 1754 1755Configuration: 1756 -h, --help display this help and exit 1757 --help=short display options specific to this package 1758 --help=recursive display the short help of all the included packages 1759 -V, --version display version information and exit 1760 -q, --quiet, --silent do not print \`checking ...' messages 1761 --cache-file=FILE cache test results in FILE [disabled] 1762 -C, --config-cache alias for \`--cache-file=config.cache' 1763 -n, --no-create do not create output files 1764 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1765 1766Installation directories: 1767 --prefix=PREFIX install architecture-independent files in PREFIX 1768 [$ac_default_prefix] 1769 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1770 [PREFIX] 1771 1772By default, \`make install' will install all the files in 1773\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1774an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1775for instance \`--prefix=\$HOME'. 1776 1777For better control, use the options below. 1778 1779Fine tuning of the installation directories: 1780 --bindir=DIR user executables [EPREFIX/bin] 1781 --sbindir=DIR system admin executables [EPREFIX/sbin] 1782 --libexecdir=DIR program executables [EPREFIX/libexec] 1783 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1784 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1785 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1786 --libdir=DIR object code libraries [EPREFIX/lib] 1787 --includedir=DIR C header files [PREFIX/include] 1788 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1789 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1790 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1791 --infodir=DIR info documentation [DATAROOTDIR/info] 1792 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1793 --mandir=DIR man documentation [DATAROOTDIR/man] 1794 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick] 1795 --htmldir=DIR html documentation [DOCDIR] 1796 --dvidir=DIR dvi documentation [DOCDIR] 1797 --pdfdir=DIR pdf documentation [DOCDIR] 1798 --psdir=DIR ps documentation [DOCDIR] 1799_ACEOF 1800 1801 cat <<\_ACEOF 1802 1803Program names: 1804 --program-prefix=PREFIX prepend PREFIX to installed program names 1805 --program-suffix=SUFFIX append SUFFIX to installed program names 1806 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1807 1808X features: 1809 --x-includes=DIR X include files are in DIR 1810 --x-libraries=DIR X library files are in DIR 1811 1812System types: 1813 --build=BUILD configure for building on BUILD [guessed] 1814 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1815 --target=TARGET configure for building compilers for TARGET [HOST] 1816_ACEOF 1817fi 1818 1819if test -n "$ac_init_help"; then 1820 case $ac_init_help in 1821 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";; 1822 esac 1823 cat <<\_ACEOF 1824 1825Optional Features: 1826 --disable-option-checking ignore unrecognized --enable/--with options 1827 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1828 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1829 --enable-silent-rules less verbose build output (undo: "make V=1") 1830 --disable-silent-rules verbose build output (undo: "make V=0") 1831 --enable-dependency-tracking 1832 do not reject slow dependency extractors 1833 --disable-dependency-tracking 1834 speeds up one-time build 1835 --enable-ld-version-script 1836 enable linker version script (default is enabled 1837 when possible) 1838 --enable-bounds-checking 1839 enable run-time bounds-checking 1840 --enable-osx-universal-binary 1841 build universal binary on OS X [[default=no]] 1842 --disable-openmp do not use OpenMP 1843 --enable-opencl enable OpenCL support 1844 --disable-largefile omit support for large files 1845 --enable-shared[=PKGS] build shared libraries [default=yes] 1846 --enable-static[=PKGS] build static libraries [default=yes] 1847 --enable-fast-install[=PKGS] 1848 optimize for fast installation [default=yes] 1849 --disable-libtool-lock avoid locking (might break parallel builds) 1850 --enable-delegate-build look for delegate libraries in build directory 1851 --disable-deprecated exclude deprecated methods in MagickCore and 1852 MagickWand APIs 1853 --disable-installed Formally install ImageMagick under PREFIX 1854 --disable-cipher disable enciphering and deciphering image pixels 1855 --enable-zero-configuration 1856 enable self-contained, embeddable, 1857 zero-configuration ImageMagick 1858 --enable-hdri accurately represent the wide range of intensity 1859 levels found in real scenes 1860 --disable-assert disable assert() statements in build 1861 --enable-maintainer-mode 1862 enable make rules and dependencies not useful (and 1863 sometimes confusing) to the casual installer 1864 --enable-ccmalloc enable 'ccmalloc' memory debug support 1865 --enable-efence enable 'efence' memory debug support 1866 --enable-prof enable 'prof' profiling support 1867 --enable-gprof enable 'gprof' profiling support 1868 --enable-gcov enable 'gcov' profiling support 1869 --enable-legacy-support install legacy command-line utilities (default disabled) 1870 --disable-assert turn off assertions 1871 1872Optional Packages: 1873 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1874 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1875 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1876 --with-dmalloc use dmalloc, as in http://www.dmalloc.com 1877 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune, 1878 instead of guessing 1879 --includearch-dir=DIR ARCH specific include directory 1880 --sharearch-dir=DIR ARCH specific config directory 1881 --without-threads disable threads support 1882 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1883 both] 1884 --with-sysroot=DIR Search for dependent libraries within DIR 1885 (or the compiler's sysroot if not specified). 1886 --with-modules enable building dynamically loadable modules 1887 --with-method-prefix=PREFIX 1888 prefix MagickCore API methods 1889 --with-quantum-depth=DEPTH 1890 number of bits in a pixel quantum (default 16) 1891 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available 1892 memory) 1893 --with-frozenpaths freeze delegate paths 1894 --without-magick-plus-plus 1895 disable build/install of Magick++ 1896 --with-package-release-name=NAME 1897 encode this name into the shared library 1898 --with-perl enable build/install of PerlMagick 1899 --with-perl-options=OPTIONS 1900 options to pass on command-line when generating 1901 PerlMagick build file 1902 --with-umem enable umem memory allocation library support 1903 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++) 1904 --without-bzlib disable BZLIB support 1905 --with-x use the X Window System 1906 --without-zlib disable ZLIB support 1907 --with-autotrace enable autotrace support 1908 --without-dps disable Display Postscript support 1909 --without-djvu disable DjVu support 1910 --with-dejavu-font-dir=DIR 1911 DejaVu font directory 1912 --without-fftw disable FFTW support 1913 --without-fpx disable FlashPIX support 1914 --without-fontconfig disable fontconfig support 1915 --without-freetype disable Freetype support 1916 --without-gslib enable Ghostscript library support 1917 --with-fontpath=DIR prepend to default font search path 1918 --with-gs-font-dir=DIR Ghostscript font directory 1919 --with-gvc disable GVC support 1920 --without-jbig disable JBIG support 1921 --without-jpeg disable JPEG support 1922 --without-jp2 disable JPEG-2000 support 1923 --without-lcms disable lcms (v1.1X) support 1924 --without-lcms2 disable lcms (v2.X) support 1925 --without-lqr disable Liquid Rescale support 1926 --without-lzma disable LZMA support 1927 --without-openexr disable OpenEXR support 1928 --without-pango disable PANGO support 1929 --without-png disable PNG support 1930 --without-rsvg enable RSVG support 1931 --without-tiff disable TIFF support 1932 --without-webp disable WEBP support 1933 --with-windows-font-dir=DIR 1934 directory containing MS-Windows fonts 1935 --with-wmf enable WMF support 1936 --without-xml disable XML support 1937 1938Some influential environment variables: 1939 CC C compiler command 1940 CFLAGS C compiler flags 1941 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1942 nonstandard directory <lib dir> 1943 LIBS libraries to pass to the linker, e.g. -l<library> 1944 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1945 you have headers in a nonstandard directory <include dir> 1946 CPP C preprocessor 1947 CXX C++ compiler command 1948 CXXFLAGS C++ compiler flags 1949 PKG_CONFIG path to pkg-config utility 1950 CXXCPP C++ preprocessor 1951 XMKMF Path to xmkmf, Makefile generator for X Window System 1952 AUTOTRACE_CFLAGS 1953 C compiler flags for AUTOTRACE, overriding pkg-config 1954 AUTOTRACE_LIBS 1955 linker flags for AUTOTRACE, overriding pkg-config 1956 FONTCONFIG_CFLAGS 1957 C compiler flags for FONTCONFIG, overriding pkg-config 1958 FONTCONFIG_LIBS 1959 linker flags for FONTCONFIG, overriding pkg-config 1960 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config 1961 GVC_LIBS linker flags for GVC, overriding pkg-config 1962 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config 1963 LQR_LIBS linker flags for LQR, overriding pkg-config 1964 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config 1965 LZMA_LIBS linker flags for LZMA, overriding pkg-config 1966 OPENEXR_CFLAGS 1967 C compiler flags for OPENEXR, overriding pkg-config 1968 OPENEXR_LIBS 1969 linker flags for OPENEXR, overriding pkg-config 1970 PANGO_CFLAGS 1971 C compiler flags for PANGO, overriding pkg-config 1972 PANGO_LIBS linker flags for PANGO, overriding pkg-config 1973 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config 1974 RSVG_LIBS linker flags for RSVG, overriding pkg-config 1975 CAIRO_SVG_CFLAGS 1976 C compiler flags for CAIRO_SVG, overriding pkg-config 1977 CAIRO_SVG_LIBS 1978 linker flags for CAIRO_SVG, overriding pkg-config 1979 1980Use these variables to override the choices made by `configure' or to help 1981it to find libraries and programs with nonstandard names/locations. 1982 1983Report bugs to <http://www.imagemagick.org>. 1984_ACEOF 1985ac_status=$? 1986fi 1987 1988if test "$ac_init_help" = "recursive"; then 1989 # If there are subdirs, report their specific --help. 1990 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1991 test -d "$ac_dir" || 1992 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1993 continue 1994 ac_builddir=. 1995 1996case "$ac_dir" in 1997.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1998*) 1999 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2000 # A ".." for each directory in $ac_dir_suffix. 2001 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2002 case $ac_top_builddir_sub in 2003 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2004 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2005 esac ;; 2006esac 2007ac_abs_top_builddir=$ac_pwd 2008ac_abs_builddir=$ac_pwd$ac_dir_suffix 2009# for backward compatibility: 2010ac_top_builddir=$ac_top_build_prefix 2011 2012case $srcdir in 2013 .) # We are building in place. 2014 ac_srcdir=. 2015 ac_top_srcdir=$ac_top_builddir_sub 2016 ac_abs_top_srcdir=$ac_pwd ;; 2017 [\\/]* | ?:[\\/]* ) # Absolute name. 2018 ac_srcdir=$srcdir$ac_dir_suffix; 2019 ac_top_srcdir=$srcdir 2020 ac_abs_top_srcdir=$srcdir ;; 2021 *) # Relative name. 2022 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2023 ac_top_srcdir=$ac_top_build_prefix$srcdir 2024 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2025esac 2026ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2027 2028 cd "$ac_dir" || { ac_status=$?; continue; } 2029 # Check for guested configure. 2030 if test -f "$ac_srcdir/configure.gnu"; then 2031 echo && 2032 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2033 elif test -f "$ac_srcdir/configure"; then 2034 echo && 2035 $SHELL "$ac_srcdir/configure" --help=recursive 2036 else 2037 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2038 fi || ac_status=$? 2039 cd "$ac_pwd" || { ac_status=$?; break; } 2040 done 2041fi 2042 2043test -n "$ac_init_help" && exit $ac_status 2044if $ac_init_version; then 2045 cat <<\_ACEOF 2046ImageMagick configure 7.0.0-0 2047generated by GNU Autoconf 2.69 2048 2049Copyright (C) 2012 Free Software Foundation, Inc. 2050This configure script is free software; the Free Software Foundation 2051gives unlimited permission to copy, distribute and modify it. 2052_ACEOF 2053 exit 2054fi 2055 2056## ------------------------ ## 2057## Autoconf initialization. ## 2058## ------------------------ ## 2059 2060# ac_fn_c_try_compile LINENO 2061# -------------------------- 2062# Try to compile conftest.$ac_ext, and return whether this succeeded. 2063ac_fn_c_try_compile () 2064{ 2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2066 rm -f conftest.$ac_objext 2067 if { { ac_try="$ac_compile" 2068case "(($ac_try" in 2069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2070 *) ac_try_echo=$ac_try;; 2071esac 2072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2073$as_echo "$ac_try_echo"; } >&5 2074 (eval "$ac_compile") 2>conftest.err 2075 ac_status=$? 2076 if test -s conftest.err; then 2077 grep -v '^ *+' conftest.err >conftest.er1 2078 cat conftest.er1 >&5 2079 mv -f conftest.er1 conftest.err 2080 fi 2081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2082 test $ac_status = 0; } && { 2083 test -z "$ac_c_werror_flag" || 2084 test ! -s conftest.err 2085 } && test -s conftest.$ac_objext; then : 2086 ac_retval=0 2087else 2088 $as_echo "$as_me: failed program was:" >&5 2089sed 's/^/| /' conftest.$ac_ext >&5 2090 2091 ac_retval=1 2092fi 2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2094 as_fn_set_status $ac_retval 2095 2096} # ac_fn_c_try_compile 2097 2098# ac_fn_c_try_cpp LINENO 2099# ---------------------- 2100# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2101ac_fn_c_try_cpp () 2102{ 2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2104 if { { ac_try="$ac_cpp conftest.$ac_ext" 2105case "(($ac_try" in 2106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2107 *) ac_try_echo=$ac_try;; 2108esac 2109eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2110$as_echo "$ac_try_echo"; } >&5 2111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2112 ac_status=$? 2113 if test -s conftest.err; then 2114 grep -v '^ *+' conftest.err >conftest.er1 2115 cat conftest.er1 >&5 2116 mv -f conftest.er1 conftest.err 2117 fi 2118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2119 test $ac_status = 0; } > conftest.i && { 2120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2121 test ! -s conftest.err 2122 }; then : 2123 ac_retval=0 2124else 2125 $as_echo "$as_me: failed program was:" >&5 2126sed 's/^/| /' conftest.$ac_ext >&5 2127 2128 ac_retval=1 2129fi 2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2131 as_fn_set_status $ac_retval 2132 2133} # ac_fn_c_try_cpp 2134 2135# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2136# ------------------------------------------------------- 2137# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2138# the include files in INCLUDES and setting the cache variable VAR 2139# accordingly. 2140ac_fn_c_check_header_mongrel () 2141{ 2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2143 if eval \${$3+:} false; then : 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2145$as_echo_n "checking for $2... " >&6; } 2146if eval \${$3+:} false; then : 2147 $as_echo_n "(cached) " >&6 2148fi 2149eval ac_res=\$$3 2150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2151$as_echo "$ac_res" >&6; } 2152else 2153 # Is the header compilable? 2154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2155$as_echo_n "checking $2 usability... " >&6; } 2156cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2157/* end confdefs.h. */ 2158$4 2159#include <$2> 2160_ACEOF 2161if ac_fn_c_try_compile "$LINENO"; then : 2162 ac_header_compiler=yes 2163else 2164 ac_header_compiler=no 2165fi 2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2168$as_echo "$ac_header_compiler" >&6; } 2169 2170# Is the header present? 2171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2172$as_echo_n "checking $2 presence... " >&6; } 2173cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2174/* end confdefs.h. */ 2175#include <$2> 2176_ACEOF 2177if ac_fn_c_try_cpp "$LINENO"; then : 2178 ac_header_preproc=yes 2179else 2180 ac_header_preproc=no 2181fi 2182rm -f conftest.err conftest.i conftest.$ac_ext 2183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2184$as_echo "$ac_header_preproc" >&6; } 2185 2186# So? What about this header? 2187case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2188 yes:no: ) 2189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2190$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2192$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2193 ;; 2194 no:yes:* ) 2195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2196$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2198$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2200$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2202$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2204$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2205( $as_echo "## ----------------------------------------- ## 2206## Report this to http://www.imagemagick.org ## 2207## ----------------------------------------- ##" 2208 ) | sed "s/^/$as_me: WARNING: /" >&2 2209 ;; 2210esac 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2212$as_echo_n "checking for $2... " >&6; } 2213if eval \${$3+:} false; then : 2214 $as_echo_n "(cached) " >&6 2215else 2216 eval "$3=\$ac_header_compiler" 2217fi 2218eval ac_res=\$$3 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2220$as_echo "$ac_res" >&6; } 2221fi 2222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2223 2224} # ac_fn_c_check_header_mongrel 2225 2226# ac_fn_c_try_run LINENO 2227# ---------------------- 2228# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2229# that executables *can* be run. 2230ac_fn_c_try_run () 2231{ 2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2233 if { { ac_try="$ac_link" 2234case "(($ac_try" in 2235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2236 *) ac_try_echo=$ac_try;; 2237esac 2238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2239$as_echo "$ac_try_echo"; } >&5 2240 (eval "$ac_link") 2>&5 2241 ac_status=$? 2242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2243 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2244 { { case "(($ac_try" in 2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2246 *) ac_try_echo=$ac_try;; 2247esac 2248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2249$as_echo "$ac_try_echo"; } >&5 2250 (eval "$ac_try") 2>&5 2251 ac_status=$? 2252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2253 test $ac_status = 0; }; }; then : 2254 ac_retval=0 2255else 2256 $as_echo "$as_me: program exited with status $ac_status" >&5 2257 $as_echo "$as_me: failed program was:" >&5 2258sed 's/^/| /' conftest.$ac_ext >&5 2259 2260 ac_retval=$ac_status 2261fi 2262 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2263 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2264 as_fn_set_status $ac_retval 2265 2266} # ac_fn_c_try_run 2267 2268# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2269# ------------------------------------------------------- 2270# Tests whether HEADER exists and can be compiled using the include files in 2271# INCLUDES, setting the cache variable VAR accordingly. 2272ac_fn_c_check_header_compile () 2273{ 2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2276$as_echo_n "checking for $2... " >&6; } 2277if eval \${$3+:} false; then : 2278 $as_echo_n "(cached) " >&6 2279else 2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2281/* end confdefs.h. */ 2282$4 2283#include <$2> 2284_ACEOF 2285if ac_fn_c_try_compile "$LINENO"; then : 2286 eval "$3=yes" 2287else 2288 eval "$3=no" 2289fi 2290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2291fi 2292eval ac_res=\$$3 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2294$as_echo "$ac_res" >&6; } 2295 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2296 2297} # ac_fn_c_check_header_compile 2298 2299# ac_fn_cxx_try_compile LINENO 2300# ---------------------------- 2301# Try to compile conftest.$ac_ext, and return whether this succeeded. 2302ac_fn_cxx_try_compile () 2303{ 2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2305 rm -f conftest.$ac_objext 2306 if { { ac_try="$ac_compile" 2307case "(($ac_try" in 2308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2309 *) ac_try_echo=$ac_try;; 2310esac 2311eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2312$as_echo "$ac_try_echo"; } >&5 2313 (eval "$ac_compile") 2>conftest.err 2314 ac_status=$? 2315 if test -s conftest.err; then 2316 grep -v '^ *+' conftest.err >conftest.er1 2317 cat conftest.er1 >&5 2318 mv -f conftest.er1 conftest.err 2319 fi 2320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2321 test $ac_status = 0; } && { 2322 test -z "$ac_cxx_werror_flag" || 2323 test ! -s conftest.err 2324 } && test -s conftest.$ac_objext; then : 2325 ac_retval=0 2326else 2327 $as_echo "$as_me: failed program was:" >&5 2328sed 's/^/| /' conftest.$ac_ext >&5 2329 2330 ac_retval=1 2331fi 2332 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2333 as_fn_set_status $ac_retval 2334 2335} # ac_fn_cxx_try_compile 2336 2337# ac_fn_c_try_link LINENO 2338# ----------------------- 2339# Try to link conftest.$ac_ext, and return whether this succeeded. 2340ac_fn_c_try_link () 2341{ 2342 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2343 rm -f conftest.$ac_objext conftest$ac_exeext 2344 if { { ac_try="$ac_link" 2345case "(($ac_try" in 2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2347 *) ac_try_echo=$ac_try;; 2348esac 2349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2350$as_echo "$ac_try_echo"; } >&5 2351 (eval "$ac_link") 2>conftest.err 2352 ac_status=$? 2353 if test -s conftest.err; then 2354 grep -v '^ *+' conftest.err >conftest.er1 2355 cat conftest.er1 >&5 2356 mv -f conftest.er1 conftest.err 2357 fi 2358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2359 test $ac_status = 0; } && { 2360 test -z "$ac_c_werror_flag" || 2361 test ! -s conftest.err 2362 } && test -s conftest$ac_exeext && { 2363 test "$cross_compiling" = yes || 2364 test -x conftest$ac_exeext 2365 }; then : 2366 ac_retval=0 2367else 2368 $as_echo "$as_me: failed program was:" >&5 2369sed 's/^/| /' conftest.$ac_ext >&5 2370 2371 ac_retval=1 2372fi 2373 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2374 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2375 # interfere with the next link command; also delete a directory that is 2376 # left behind by Apple's compiler. We do this before executing the actions. 2377 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2378 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2379 as_fn_set_status $ac_retval 2380 2381} # ac_fn_c_try_link 2382 2383# ac_fn_c_check_func LINENO FUNC VAR 2384# ---------------------------------- 2385# Tests whether FUNC exists, setting the cache variable VAR accordingly 2386ac_fn_c_check_func () 2387{ 2388 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2390$as_echo_n "checking for $2... " >&6; } 2391if eval \${$3+:} false; then : 2392 $as_echo_n "(cached) " >&6 2393else 2394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2395/* end confdefs.h. */ 2396/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2397 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2398#define $2 innocuous_$2 2399 2400/* System header to define __stub macros and hopefully few prototypes, 2401 which can conflict with char $2 (); below. 2402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2403 <limits.h> exists even on freestanding compilers. */ 2404 2405#ifdef __STDC__ 2406# include <limits.h> 2407#else 2408# include <assert.h> 2409#endif 2410 2411#undef $2 2412 2413/* Override any GCC internal prototype to avoid an error. 2414 Use char because int might match the return type of a GCC 2415 builtin and then its argument prototype would still apply. */ 2416#ifdef __cplusplus 2417extern "C" 2418#endif 2419char $2 (); 2420/* The GNU C library defines this for functions which it implements 2421 to always fail with ENOSYS. Some functions are actually named 2422 something starting with __ and the normal name is an alias. */ 2423#if defined __stub_$2 || defined __stub___$2 2424choke me 2425#endif 2426 2427int 2428main () 2429{ 2430return $2 (); 2431 ; 2432 return 0; 2433} 2434_ACEOF 2435if ac_fn_c_try_link "$LINENO"; then : 2436 eval "$3=yes" 2437else 2438 eval "$3=no" 2439fi 2440rm -f core conftest.err conftest.$ac_objext \ 2441 conftest$ac_exeext conftest.$ac_ext 2442fi 2443eval ac_res=\$$3 2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2445$as_echo "$ac_res" >&6; } 2446 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2447 2448} # ac_fn_c_check_func 2449 2450# ac_fn_cxx_try_cpp LINENO 2451# ------------------------ 2452# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2453ac_fn_cxx_try_cpp () 2454{ 2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2456 if { { ac_try="$ac_cpp conftest.$ac_ext" 2457case "(($ac_try" in 2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2459 *) ac_try_echo=$ac_try;; 2460esac 2461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2462$as_echo "$ac_try_echo"; } >&5 2463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2464 ac_status=$? 2465 if test -s conftest.err; then 2466 grep -v '^ *+' conftest.err >conftest.er1 2467 cat conftest.er1 >&5 2468 mv -f conftest.er1 conftest.err 2469 fi 2470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2471 test $ac_status = 0; } > conftest.i && { 2472 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2473 test ! -s conftest.err 2474 }; then : 2475 ac_retval=0 2476else 2477 $as_echo "$as_me: failed program was:" >&5 2478sed 's/^/| /' conftest.$ac_ext >&5 2479 2480 ac_retval=1 2481fi 2482 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2483 as_fn_set_status $ac_retval 2484 2485} # ac_fn_cxx_try_cpp 2486 2487# ac_fn_cxx_try_link LINENO 2488# ------------------------- 2489# Try to link conftest.$ac_ext, and return whether this succeeded. 2490ac_fn_cxx_try_link () 2491{ 2492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2493 rm -f conftest.$ac_objext conftest$ac_exeext 2494 if { { ac_try="$ac_link" 2495case "(($ac_try" in 2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2497 *) ac_try_echo=$ac_try;; 2498esac 2499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2500$as_echo "$ac_try_echo"; } >&5 2501 (eval "$ac_link") 2>conftest.err 2502 ac_status=$? 2503 if test -s conftest.err; then 2504 grep -v '^ *+' conftest.err >conftest.er1 2505 cat conftest.er1 >&5 2506 mv -f conftest.er1 conftest.err 2507 fi 2508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2509 test $ac_status = 0; } && { 2510 test -z "$ac_cxx_werror_flag" || 2511 test ! -s conftest.err 2512 } && test -s conftest$ac_exeext && { 2513 test "$cross_compiling" = yes || 2514 test -x conftest$ac_exeext 2515 }; then : 2516 ac_retval=0 2517else 2518 $as_echo "$as_me: failed program was:" >&5 2519sed 's/^/| /' conftest.$ac_ext >&5 2520 2521 ac_retval=1 2522fi 2523 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2524 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2525 # interfere with the next link command; also delete a directory that is 2526 # left behind by Apple's compiler. We do this before executing the actions. 2527 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2529 as_fn_set_status $ac_retval 2530 2531} # ac_fn_cxx_try_link 2532 2533# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2534# ------------------------------------------- 2535# Tests whether TYPE exists after having included INCLUDES, setting cache 2536# variable VAR accordingly. 2537ac_fn_c_check_type () 2538{ 2539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2541$as_echo_n "checking for $2... " >&6; } 2542if eval \${$3+:} false; then : 2543 $as_echo_n "(cached) " >&6 2544else 2545 eval "$3=no" 2546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2547/* end confdefs.h. */ 2548$4 2549int 2550main () 2551{ 2552if (sizeof ($2)) 2553 return 0; 2554 ; 2555 return 0; 2556} 2557_ACEOF 2558if ac_fn_c_try_compile "$LINENO"; then : 2559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2560/* end confdefs.h. */ 2561$4 2562int 2563main () 2564{ 2565if (sizeof (($2))) 2566 return 0; 2567 ; 2568 return 0; 2569} 2570_ACEOF 2571if ac_fn_c_try_compile "$LINENO"; then : 2572 2573else 2574 eval "$3=yes" 2575fi 2576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2577fi 2578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2579fi 2580eval ac_res=\$$3 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2582$as_echo "$ac_res" >&6; } 2583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2584 2585} # ac_fn_c_check_type 2586 2587# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2588# ---------------------------------------------------- 2589# Tries to find if the field MEMBER exists in type AGGR, after including 2590# INCLUDES, setting cache variable VAR accordingly. 2591ac_fn_c_check_member () 2592{ 2593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2595$as_echo_n "checking for $2.$3... " >&6; } 2596if eval \${$4+:} false; then : 2597 $as_echo_n "(cached) " >&6 2598else 2599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2600/* end confdefs.h. */ 2601$5 2602int 2603main () 2604{ 2605static $2 ac_aggr; 2606if (ac_aggr.$3) 2607return 0; 2608 ; 2609 return 0; 2610} 2611_ACEOF 2612if ac_fn_c_try_compile "$LINENO"; then : 2613 eval "$4=yes" 2614else 2615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2616/* end confdefs.h. */ 2617$5 2618int 2619main () 2620{ 2621static $2 ac_aggr; 2622if (sizeof ac_aggr.$3) 2623return 0; 2624 ; 2625 return 0; 2626} 2627_ACEOF 2628if ac_fn_c_try_compile "$LINENO"; then : 2629 eval "$4=yes" 2630else 2631 eval "$4=no" 2632fi 2633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2634fi 2635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2636fi 2637eval ac_res=\$$4 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2639$as_echo "$ac_res" >&6; } 2640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2641 2642} # ac_fn_c_check_member 2643 2644# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2645# --------------------------------------------- 2646# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2647# accordingly. 2648ac_fn_c_check_decl () 2649{ 2650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2651 as_decl_name=`echo $2|sed 's/ *(.*//'` 2652 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2654$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2655if eval \${$3+:} false; then : 2656 $as_echo_n "(cached) " >&6 2657else 2658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2659/* end confdefs.h. */ 2660$4 2661int 2662main () 2663{ 2664#ifndef $as_decl_name 2665#ifdef __cplusplus 2666 (void) $as_decl_use; 2667#else 2668 (void) $as_decl_name; 2669#endif 2670#endif 2671 2672 ; 2673 return 0; 2674} 2675_ACEOF 2676if ac_fn_c_try_compile "$LINENO"; then : 2677 eval "$3=yes" 2678else 2679 eval "$3=no" 2680fi 2681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2682fi 2683eval ac_res=\$$3 2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2685$as_echo "$ac_res" >&6; } 2686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2687 2688} # ac_fn_c_check_decl 2689 2690# ac_fn_c_find_intX_t LINENO BITS VAR 2691# ----------------------------------- 2692# Finds a signed integer type with width BITS, setting cache variable VAR 2693# accordingly. 2694ac_fn_c_find_intX_t () 2695{ 2696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2698$as_echo_n "checking for int$2_t... " >&6; } 2699if eval \${$3+:} false; then : 2700 $as_echo_n "(cached) " >&6 2701else 2702 eval "$3=no" 2703 # Order is important - never check a type that is potentially smaller 2704 # than half of the expected target width. 2705 for ac_type in int$2_t 'int' 'long int' \ 2706 'long long int' 'short int' 'signed char'; do 2707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2708/* end confdefs.h. */ 2709$ac_includes_default 2710 enum { N = $2 / 2 - 1 }; 2711int 2712main () 2713{ 2714static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2715test_array [0] = 0; 2716return test_array [0]; 2717 2718 ; 2719 return 0; 2720} 2721_ACEOF 2722if ac_fn_c_try_compile "$LINENO"; then : 2723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2724/* end confdefs.h. */ 2725$ac_includes_default 2726 enum { N = $2 / 2 - 1 }; 2727int 2728main () 2729{ 2730static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2731 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2732test_array [0] = 0; 2733return test_array [0]; 2734 2735 ; 2736 return 0; 2737} 2738_ACEOF 2739if ac_fn_c_try_compile "$LINENO"; then : 2740 2741else 2742 case $ac_type in #( 2743 int$2_t) : 2744 eval "$3=yes" ;; #( 2745 *) : 2746 eval "$3=\$ac_type" ;; 2747esac 2748fi 2749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2750fi 2751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2752 if eval test \"x\$"$3"\" = x"no"; then : 2753 2754else 2755 break 2756fi 2757 done 2758fi 2759eval ac_res=\$$3 2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2761$as_echo "$ac_res" >&6; } 2762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2763 2764} # ac_fn_c_find_intX_t 2765 2766# ac_fn_c_find_uintX_t LINENO BITS VAR 2767# ------------------------------------ 2768# Finds an unsigned integer type with width BITS, setting cache variable VAR 2769# accordingly. 2770ac_fn_c_find_uintX_t () 2771{ 2772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2774$as_echo_n "checking for uint$2_t... " >&6; } 2775if eval \${$3+:} false; then : 2776 $as_echo_n "(cached) " >&6 2777else 2778 eval "$3=no" 2779 # Order is important - never check a type that is potentially smaller 2780 # than half of the expected target width. 2781 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2782 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2784/* end confdefs.h. */ 2785$ac_includes_default 2786int 2787main () 2788{ 2789static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2790test_array [0] = 0; 2791return test_array [0]; 2792 2793 ; 2794 return 0; 2795} 2796_ACEOF 2797if ac_fn_c_try_compile "$LINENO"; then : 2798 case $ac_type in #( 2799 uint$2_t) : 2800 eval "$3=yes" ;; #( 2801 *) : 2802 eval "$3=\$ac_type" ;; 2803esac 2804fi 2805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2806 if eval test \"x\$"$3"\" = x"no"; then : 2807 2808else 2809 break 2810fi 2811 done 2812fi 2813eval ac_res=\$$3 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2815$as_echo "$ac_res" >&6; } 2816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2817 2818} # ac_fn_c_find_uintX_t 2819 2820# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2821# -------------------------------------------- 2822# Tries to find the compile-time value of EXPR in a program that includes 2823# INCLUDES, setting VAR accordingly. Returns whether the value could be 2824# computed 2825ac_fn_c_compute_int () 2826{ 2827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2828 if test "$cross_compiling" = yes; then 2829 # Depending upon the size, compute the lo and hi bounds. 2830cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2831/* end confdefs.h. */ 2832$4 2833int 2834main () 2835{ 2836static int test_array [1 - 2 * !(($2) >= 0)]; 2837test_array [0] = 0; 2838return test_array [0]; 2839 2840 ; 2841 return 0; 2842} 2843_ACEOF 2844if ac_fn_c_try_compile "$LINENO"; then : 2845 ac_lo=0 ac_mid=0 2846 while :; do 2847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2848/* end confdefs.h. */ 2849$4 2850int 2851main () 2852{ 2853static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2854test_array [0] = 0; 2855return test_array [0]; 2856 2857 ; 2858 return 0; 2859} 2860_ACEOF 2861if ac_fn_c_try_compile "$LINENO"; then : 2862 ac_hi=$ac_mid; break 2863else 2864 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2865 if test $ac_lo -le $ac_mid; then 2866 ac_lo= ac_hi= 2867 break 2868 fi 2869 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2870fi 2871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2872 done 2873else 2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2875/* end confdefs.h. */ 2876$4 2877int 2878main () 2879{ 2880static int test_array [1 - 2 * !(($2) < 0)]; 2881test_array [0] = 0; 2882return test_array [0]; 2883 2884 ; 2885 return 0; 2886} 2887_ACEOF 2888if ac_fn_c_try_compile "$LINENO"; then : 2889 ac_hi=-1 ac_mid=-1 2890 while :; do 2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2892/* end confdefs.h. */ 2893$4 2894int 2895main () 2896{ 2897static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2898test_array [0] = 0; 2899return test_array [0]; 2900 2901 ; 2902 return 0; 2903} 2904_ACEOF 2905if ac_fn_c_try_compile "$LINENO"; then : 2906 ac_lo=$ac_mid; break 2907else 2908 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2909 if test $ac_mid -le $ac_hi; then 2910 ac_lo= ac_hi= 2911 break 2912 fi 2913 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2914fi 2915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2916 done 2917else 2918 ac_lo= ac_hi= 2919fi 2920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2921fi 2922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2923# Binary search between lo and hi bounds. 2924while test "x$ac_lo" != "x$ac_hi"; do 2925 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2927/* end confdefs.h. */ 2928$4 2929int 2930main () 2931{ 2932static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2933test_array [0] = 0; 2934return test_array [0]; 2935 2936 ; 2937 return 0; 2938} 2939_ACEOF 2940if ac_fn_c_try_compile "$LINENO"; then : 2941 ac_hi=$ac_mid 2942else 2943 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2944fi 2945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2946done 2947case $ac_lo in #(( 2948?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2949'') ac_retval=1 ;; 2950esac 2951 else 2952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2953/* end confdefs.h. */ 2954$4 2955static long int longval () { return $2; } 2956static unsigned long int ulongval () { return $2; } 2957#include <stdio.h> 2958#include <stdlib.h> 2959int 2960main () 2961{ 2962 2963 FILE *f = fopen ("conftest.val", "w"); 2964 if (! f) 2965 return 1; 2966 if (($2) < 0) 2967 { 2968 long int i = longval (); 2969 if (i != ($2)) 2970 return 1; 2971 fprintf (f, "%ld", i); 2972 } 2973 else 2974 { 2975 unsigned long int i = ulongval (); 2976 if (i != ($2)) 2977 return 1; 2978 fprintf (f, "%lu", i); 2979 } 2980 /* Do not output a trailing newline, as this causes \r\n confusion 2981 on some platforms. */ 2982 return ferror (f) || fclose (f) != 0; 2983 2984 ; 2985 return 0; 2986} 2987_ACEOF 2988if ac_fn_c_try_run "$LINENO"; then : 2989 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2990else 2991 ac_retval=1 2992fi 2993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2994 conftest.$ac_objext conftest.beam conftest.$ac_ext 2995rm -f conftest.val 2996 2997 fi 2998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2999 as_fn_set_status $ac_retval 3000 3001} # ac_fn_c_compute_int 3002 3003# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 3004# --------------------------------------------------------- 3005# Tests whether HEADER exists, giving a warning if it cannot be compiled using 3006# the include files in INCLUDES and setting the cache variable VAR 3007# accordingly. 3008ac_fn_cxx_check_header_mongrel () 3009{ 3010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3011 if eval \${$3+:} false; then : 3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3013$as_echo_n "checking for $2... " >&6; } 3014if eval \${$3+:} false; then : 3015 $as_echo_n "(cached) " >&6 3016fi 3017eval ac_res=\$$3 3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3019$as_echo "$ac_res" >&6; } 3020else 3021 # Is the header compilable? 3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 3023$as_echo_n "checking $2 usability... " >&6; } 3024cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3025/* end confdefs.h. */ 3026$4 3027#include <$2> 3028_ACEOF 3029if ac_fn_cxx_try_compile "$LINENO"; then : 3030 ac_header_compiler=yes 3031else 3032 ac_header_compiler=no 3033fi 3034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 3036$as_echo "$ac_header_compiler" >&6; } 3037 3038# Is the header present? 3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 3040$as_echo_n "checking $2 presence... " >&6; } 3041cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3042/* end confdefs.h. */ 3043#include <$2> 3044_ACEOF 3045if ac_fn_cxx_try_cpp "$LINENO"; then : 3046 ac_header_preproc=yes 3047else 3048 ac_header_preproc=no 3049fi 3050rm -f conftest.err conftest.i conftest.$ac_ext 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 3052$as_echo "$ac_header_preproc" >&6; } 3053 3054# So? What about this header? 3055case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 3056 yes:no: ) 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 3058$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 3059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 3060$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 3061 ;; 3062 no:yes:* ) 3063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 3064$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 3066$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 3068$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 3069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 3070$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 3071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 3072$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 3073( $as_echo "## ----------------------------------------- ## 3074## Report this to http://www.imagemagick.org ## 3075## ----------------------------------------- ##" 3076 ) | sed "s/^/$as_me: WARNING: /" >&2 3077 ;; 3078esac 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3080$as_echo_n "checking for $2... " >&6; } 3081if eval \${$3+:} false; then : 3082 $as_echo_n "(cached) " >&6 3083else 3084 eval "$3=\$ac_header_compiler" 3085fi 3086eval ac_res=\$$3 3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3088$as_echo "$ac_res" >&6; } 3089fi 3090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3091 3092} # ac_fn_cxx_check_header_mongrel 3093cat >config.log <<_ACEOF 3094This file contains any messages produced by compilers while 3095running configure, to aid debugging if configure makes a mistake. 3096 3097It was created by ImageMagick $as_me 7.0.0-0, which was 3098generated by GNU Autoconf 2.69. Invocation command line was 3099 3100 $ $0 $@ 3101 3102_ACEOF 3103exec 5>>config.log 3104{ 3105cat <<_ASUNAME 3106## --------- ## 3107## Platform. ## 3108## --------- ## 3109 3110hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3111uname -m = `(uname -m) 2>/dev/null || echo unknown` 3112uname -r = `(uname -r) 2>/dev/null || echo unknown` 3113uname -s = `(uname -s) 2>/dev/null || echo unknown` 3114uname -v = `(uname -v) 2>/dev/null || echo unknown` 3115 3116/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3117/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3118 3119/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3120/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3121/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3122/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3123/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3124/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3125/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3126 3127_ASUNAME 3128 3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3130for as_dir in $PATH 3131do 3132 IFS=$as_save_IFS 3133 test -z "$as_dir" && as_dir=. 3134 $as_echo "PATH: $as_dir" 3135 done 3136IFS=$as_save_IFS 3137 3138} >&5 3139 3140cat >&5 <<_ACEOF 3141 3142 3143## ----------- ## 3144## Core tests. ## 3145## ----------- ## 3146 3147_ACEOF 3148 3149 3150# Keep a trace of the command line. 3151# Strip out --no-create and --no-recursion so they do not pile up. 3152# Strip out --silent because we don't want to record it for future runs. 3153# Also quote any args containing shell meta-characters. 3154# Make two passes to allow for proper duplicate-argument suppression. 3155ac_configure_args= 3156ac_configure_args0= 3157ac_configure_args1= 3158ac_must_keep_next=false 3159for ac_pass in 1 2 3160do 3161 for ac_arg 3162 do 3163 case $ac_arg in 3164 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3166 | -silent | --silent | --silen | --sile | --sil) 3167 continue ;; 3168 *\'*) 3169 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3170 esac 3171 case $ac_pass in 3172 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3173 2) 3174 as_fn_append ac_configure_args1 " '$ac_arg'" 3175 if test $ac_must_keep_next = true; then 3176 ac_must_keep_next=false # Got value, back to normal. 3177 else 3178 case $ac_arg in 3179 *=* | --config-cache | -C | -disable-* | --disable-* \ 3180 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3181 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3182 | -with-* | --with-* | -without-* | --without-* | --x) 3183 case "$ac_configure_args0 " in 3184 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3185 esac 3186 ;; 3187 -* ) ac_must_keep_next=true ;; 3188 esac 3189 fi 3190 as_fn_append ac_configure_args " '$ac_arg'" 3191 ;; 3192 esac 3193 done 3194done 3195{ ac_configure_args0=; unset ac_configure_args0;} 3196{ ac_configure_args1=; unset ac_configure_args1;} 3197 3198# When interrupted or exit'd, cleanup temporary files, and complete 3199# config.log. We remove comments because anyway the quotes in there 3200# would cause problems or look ugly. 3201# WARNING: Use '\'' to represent an apostrophe within the trap. 3202# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3203trap 'exit_status=$? 3204 # Save into config.log some information that might help in debugging. 3205 { 3206 echo 3207 3208 $as_echo "## ---------------- ## 3209## Cache variables. ## 3210## ---------------- ##" 3211 echo 3212 # The following way of writing the cache mishandles newlines in values, 3213( 3214 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3215 eval ac_val=\$$ac_var 3216 case $ac_val in #( 3217 *${as_nl}*) 3218 case $ac_var in #( 3219 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3220$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3221 esac 3222 case $ac_var in #( 3223 _ | IFS | as_nl) ;; #( 3224 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3225 *) { eval $ac_var=; unset $ac_var;} ;; 3226 esac ;; 3227 esac 3228 done 3229 (set) 2>&1 | 3230 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3231 *${as_nl}ac_space=\ *) 3232 sed -n \ 3233 "s/'\''/'\''\\\\'\'''\''/g; 3234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3235 ;; #( 3236 *) 3237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3238 ;; 3239 esac | 3240 sort 3241) 3242 echo 3243 3244 $as_echo "## ----------------- ## 3245## Output variables. ## 3246## ----------------- ##" 3247 echo 3248 for ac_var in $ac_subst_vars 3249 do 3250 eval ac_val=\$$ac_var 3251 case $ac_val in 3252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3253 esac 3254 $as_echo "$ac_var='\''$ac_val'\''" 3255 done | sort 3256 echo 3257 3258 if test -n "$ac_subst_files"; then 3259 $as_echo "## ------------------- ## 3260## File substitutions. ## 3261## ------------------- ##" 3262 echo 3263 for ac_var in $ac_subst_files 3264 do 3265 eval ac_val=\$$ac_var 3266 case $ac_val in 3267 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3268 esac 3269 $as_echo "$ac_var='\''$ac_val'\''" 3270 done | sort 3271 echo 3272 fi 3273 3274 if test -s confdefs.h; then 3275 $as_echo "## ----------- ## 3276## confdefs.h. ## 3277## ----------- ##" 3278 echo 3279 cat confdefs.h 3280 echo 3281 fi 3282 test "$ac_signal" != 0 && 3283 $as_echo "$as_me: caught signal $ac_signal" 3284 $as_echo "$as_me: exit $exit_status" 3285 } >&5 3286 rm -f core *.core core.conftest.* && 3287 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3288 exit $exit_status 3289' 0 3290for ac_signal in 1 2 13 15; do 3291 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3292done 3293ac_signal=0 3294 3295# confdefs.h avoids OS command line length limits that DEFS can exceed. 3296rm -f -r conftest* confdefs.h 3297 3298$as_echo "/* confdefs.h */" > confdefs.h 3299 3300# Predefined preprocessor variables. 3301 3302cat >>confdefs.h <<_ACEOF 3303#define PACKAGE_NAME "$PACKAGE_NAME" 3304_ACEOF 3305 3306cat >>confdefs.h <<_ACEOF 3307#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3308_ACEOF 3309 3310cat >>confdefs.h <<_ACEOF 3311#define PACKAGE_VERSION "$PACKAGE_VERSION" 3312_ACEOF 3313 3314cat >>confdefs.h <<_ACEOF 3315#define PACKAGE_STRING "$PACKAGE_STRING" 3316_ACEOF 3317 3318cat >>confdefs.h <<_ACEOF 3319#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3320_ACEOF 3321 3322cat >>confdefs.h <<_ACEOF 3323#define PACKAGE_URL "$PACKAGE_URL" 3324_ACEOF 3325 3326 3327# Let the site file select an alternate cache file if it wants to. 3328# Prefer an explicitly selected file to automatically selected ones. 3329ac_site_file1=NONE 3330ac_site_file2=NONE 3331if test -n "$CONFIG_SITE"; then 3332 # We do not want a PATH search for config.site. 3333 case $CONFIG_SITE in #(( 3334 -*) ac_site_file1=./$CONFIG_SITE;; 3335 */*) ac_site_file1=$CONFIG_SITE;; 3336 *) ac_site_file1=./$CONFIG_SITE;; 3337 esac 3338elif test "x$prefix" != xNONE; then 3339 ac_site_file1=$prefix/share/config.site 3340 ac_site_file2=$prefix/etc/config.site 3341else 3342 ac_site_file1=$ac_default_prefix/share/config.site 3343 ac_site_file2=$ac_default_prefix/etc/config.site 3344fi 3345for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3346do 3347 test "x$ac_site_file" = xNONE && continue 3348 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3350$as_echo "$as_me: loading site script $ac_site_file" >&6;} 3351 sed 's/^/| /' "$ac_site_file" >&5 3352 . "$ac_site_file" \ 3353 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3355as_fn_error $? "failed to load site script $ac_site_file 3356See \`config.log' for more details" "$LINENO" 5; } 3357 fi 3358done 3359 3360if test -r "$cache_file"; then 3361 # Some versions of bash will fail to source /dev/null (special files 3362 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3363 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3364 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3365$as_echo "$as_me: loading cache $cache_file" >&6;} 3366 case $cache_file in 3367 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3368 *) . "./$cache_file";; 3369 esac 3370 fi 3371else 3372 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3373$as_echo "$as_me: creating cache $cache_file" >&6;} 3374 >$cache_file 3375fi 3376 3377as_fn_append ac_header_list " stdlib.h" 3378as_fn_append ac_header_list " unistd.h" 3379as_fn_append ac_header_list " sys/param.h" 3380# Check that the precious variables saved in the cache have kept the same 3381# value. 3382ac_cache_corrupted=false 3383for ac_var in $ac_precious_vars; do 3384 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3385 eval ac_new_set=\$ac_env_${ac_var}_set 3386 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3387 eval ac_new_val=\$ac_env_${ac_var}_value 3388 case $ac_old_set,$ac_new_set in 3389 set,) 3390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3391$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3392 ac_cache_corrupted=: ;; 3393 ,set) 3394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3395$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3396 ac_cache_corrupted=: ;; 3397 ,);; 3398 *) 3399 if test "x$ac_old_val" != "x$ac_new_val"; then 3400 # differences in whitespace do not lead to failure. 3401 ac_old_val_w=`echo x $ac_old_val` 3402 ac_new_val_w=`echo x $ac_new_val` 3403 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3405$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3406 ac_cache_corrupted=: 3407 else 3408 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3409$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3410 eval $ac_var=\$ac_old_val 3411 fi 3412 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3413$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3414 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3415$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3416 fi;; 3417 esac 3418 # Pass precious variables to config.status. 3419 if test "$ac_new_set" = set; then 3420 case $ac_new_val in 3421 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3422 *) ac_arg=$ac_var=$ac_new_val ;; 3423 esac 3424 case " $ac_configure_args " in 3425 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3426 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3427 esac 3428 fi 3429done 3430if $ac_cache_corrupted; then 3431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3434$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3435 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3436fi 3437## -------------------- ## 3438## Main body of script. ## 3439## -------------------- ## 3440 3441ac_ext=c 3442ac_cpp='$CPP $CPPFLAGS' 3443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3445ac_compiler_gnu=$ac_cv_c_compiler_gnu 3446 3447 3448 3449ac_aux_dir= 3450for ac_dir in config "$srcdir"/config; do 3451 if test -f "$ac_dir/install-sh"; then 3452 ac_aux_dir=$ac_dir 3453 ac_install_sh="$ac_aux_dir/install-sh -c" 3454 break 3455 elif test -f "$ac_dir/install.sh"; then 3456 ac_aux_dir=$ac_dir 3457 ac_install_sh="$ac_aux_dir/install.sh -c" 3458 break 3459 elif test -f "$ac_dir/shtool"; then 3460 ac_aux_dir=$ac_dir 3461 ac_install_sh="$ac_aux_dir/shtool install -c" 3462 break 3463 fi 3464done 3465if test -z "$ac_aux_dir"; then 3466 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 3467fi 3468 3469# These three variables are undocumented and unsupported, 3470# and are intended to be withdrawn in a future Autoconf release. 3471# They can cause serious problems if a builder's source tree is in a directory 3472# whose full name contains unusual characters. 3473ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3474ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3475ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3476 3477 3478 3479 3480ac_config_headers="$ac_config_headers config/config.h" 3481 3482 3483ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h" 3484 3485ac_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-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc" 3486 3487 3488# 3489# Save initial user-tunable values 3490# 3491USER_LIBS=$LIBS 3492for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do 3493 eval isset=\${$var+set} 3494 if test "$isset" = 'set'; then 3495 eval val=$`echo $var` 3496 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' " 3497 fi 3498done 3499 3500 3501CONFIGURE_ARGS="$0 ${ac_configure_args}" 3502 3503 3504# Source file containing package/library versioning information. 3505. ${srcdir}/version.sh 3506 3507echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}" 3508# Make sure we can run config.sub. 3509$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3510 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3511 3512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3513$as_echo_n "checking build system type... " >&6; } 3514if ${ac_cv_build+:} false; then : 3515 $as_echo_n "(cached) " >&6 3516else 3517 ac_build_alias=$build_alias 3518test "x$ac_build_alias" = x && 3519 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3520test "x$ac_build_alias" = x && 3521 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3522ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3523 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3524 3525fi 3526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3527$as_echo "$ac_cv_build" >&6; } 3528case $ac_cv_build in 3529*-*-*) ;; 3530*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3531esac 3532build=$ac_cv_build 3533ac_save_IFS=$IFS; IFS='-' 3534set x $ac_cv_build 3535shift 3536build_cpu=$1 3537build_vendor=$2 3538shift; shift 3539# Remember, the first character of IFS is used to create $*, 3540# except with old shells: 3541build_os=$* 3542IFS=$ac_save_IFS 3543case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3544 3545 3546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3547$as_echo_n "checking host system type... " >&6; } 3548if ${ac_cv_host+:} false; then : 3549 $as_echo_n "(cached) " >&6 3550else 3551 if test "x$host_alias" = x; then 3552 ac_cv_host=$ac_cv_build 3553else 3554 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3555 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3556fi 3557 3558fi 3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3560$as_echo "$ac_cv_host" >&6; } 3561case $ac_cv_host in 3562*-*-*) ;; 3563*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3564esac 3565host=$ac_cv_host 3566ac_save_IFS=$IFS; IFS='-' 3567set x $ac_cv_host 3568shift 3569host_cpu=$1 3570host_vendor=$2 3571shift; shift 3572# Remember, the first character of IFS is used to create $*, 3573# except with old shells: 3574host_os=$* 3575IFS=$ac_save_IFS 3576case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3577 3578 3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3580$as_echo_n "checking target system type... " >&6; } 3581if ${ac_cv_target+:} false; then : 3582 $as_echo_n "(cached) " >&6 3583else 3584 if test "x$target_alias" = x; then 3585 ac_cv_target=$ac_cv_host 3586else 3587 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3588 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 3589fi 3590 3591fi 3592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3593$as_echo "$ac_cv_target" >&6; } 3594case $ac_cv_target in 3595*-*-*) ;; 3596*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 3597esac 3598target=$ac_cv_target 3599ac_save_IFS=$IFS; IFS='-' 3600set x $ac_cv_target 3601shift 3602target_cpu=$1 3603target_vendor=$2 3604shift; shift 3605# Remember, the first character of IFS is used to create $*, 3606# except with old shells: 3607target_os=$* 3608IFS=$ac_save_IFS 3609case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3610 3611 3612# The aliases save the names the user supplied, while $host etc. 3613# will get canonicalized. 3614test -n "$target_alias" && 3615 test "$program_prefix$program_suffix$program_transform_name" = \ 3616 NONENONEs,x,x, && 3617 program_prefix=${target_alias}- 3618 3619 3620 3621 3622 3623MAGICK_TARGET_CPU=$host_cpu 3624 3625 3626cat >>confdefs.h <<_ACEOF 3627#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU 3628_ACEOF 3629 3630 3631MAGICK_TARGET_VENDOR=$host_vendor 3632 3633 3634cat >>confdefs.h <<_ACEOF 3635#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR 3636_ACEOF 3637 3638 3639MAGICK_TARGET_OS=$host_os 3640 3641 3642cat >>confdefs.h <<_ACEOF 3643#define MAGICK_TARGET_OS $MAGICK_TARGET_OS 3644_ACEOF 3645 3646 3647# Substitute library versioning 3648MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE` 3649 3650MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE 3651 3652MAGICK_SVN_REVISION=10354M 3653 3654 3655 3656# Ensure that make can run correctly 3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3658$as_echo_n "checking whether build environment is sane... " >&6; } 3659# Reject unsafe characters in $srcdir or the absolute working directory 3660# name. Accept space and tab only in the latter. 3661am_lf=' 3662' 3663case `pwd` in 3664 *[\\\"\#\$\&\'\`$am_lf]*) 3665 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3666esac 3667case $srcdir in 3668 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3669 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3670esac 3671 3672# Do 'set' in a subshell so we don't clobber the current shell's 3673# arguments. Must try -L first in case configure is actually a 3674# symlink; some systems play weird games with the mod time of symlinks 3675# (eg FreeBSD returns the mod time of the symlink's containing 3676# directory). 3677if ( 3678 am_has_slept=no 3679 for am_try in 1 2; do 3680 echo "timestamp, slept: $am_has_slept" > conftest.file 3681 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3682 if test "$*" = "X"; then 3683 # -L didn't work. 3684 set X `ls -t "$srcdir/configure" conftest.file` 3685 fi 3686 if test "$*" != "X $srcdir/configure conftest.file" \ 3687 && test "$*" != "X conftest.file $srcdir/configure"; then 3688 3689 # If neither matched, then we have a broken ls. This can happen 3690 # if, for instance, CONFIG_SHELL is bash and it inherits a 3691 # broken ls alias from the environment. This has actually 3692 # happened. Such a system could not be considered "sane". 3693 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3694 alias in your environment" "$LINENO" 5 3695 fi 3696 if test "$2" = conftest.file || test $am_try -eq 2; then 3697 break 3698 fi 3699 # Just in case. 3700 sleep 1 3701 am_has_slept=yes 3702 done 3703 test "$2" = conftest.file 3704 ) 3705then 3706 # Ok. 3707 : 3708else 3709 as_fn_error $? "newly created file is older than distributed files! 3710Check your system clock" "$LINENO" 5 3711fi 3712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3713$as_echo "yes" >&6; } 3714# If we didn't sleep, we still need to ensure time stamps of config.status and 3715# generated files are strictly newer. 3716am_sleep_pid= 3717if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3718 ( sleep 1 ) & 3719 am_sleep_pid=$! 3720fi 3721 3722rm -f conftest.file 3723 3724 3725am__api_version='1.12' 3726 3727# Find a good install program. We prefer a C program (faster), 3728# so one script is as good as another. But avoid the broken or 3729# incompatible versions: 3730# SysV /etc/install, /usr/sbin/install 3731# SunOS /usr/etc/install 3732# IRIX /sbin/install 3733# AIX /bin/install 3734# AmigaOS /C/install, which installs bootblocks on floppy discs 3735# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3736# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3737# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3738# OS/2's system install, which has a completely different semantic 3739# ./install, which can be erroneously created by make from ./install.sh. 3740# Reject install programs that cannot install multiple files. 3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3742$as_echo_n "checking for a BSD-compatible install... " >&6; } 3743if test -z "$INSTALL"; then 3744if ${ac_cv_path_install+:} false; then : 3745 $as_echo_n "(cached) " >&6 3746else 3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3748for as_dir in $PATH 3749do 3750 IFS=$as_save_IFS 3751 test -z "$as_dir" && as_dir=. 3752 # Account for people who put trailing slashes in PATH elements. 3753case $as_dir/ in #(( 3754 ./ | .// | /[cC]/* | \ 3755 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3756 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3757 /usr/ucb/* ) ;; 3758 *) 3759 # OSF1 and SCO ODT 3.0 have their own names for install. 3760 # Don't use installbsd from OSF since it installs stuff as root 3761 # by default. 3762 for ac_prog in ginstall scoinst install; do 3763 for ac_exec_ext in '' $ac_executable_extensions; do 3764 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3765 if test $ac_prog = install && 3766 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3767 # AIX install. It has an incompatible calling convention. 3768 : 3769 elif test $ac_prog = install && 3770 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3771 # program-specific install script used by HP pwplus--don't use. 3772 : 3773 else 3774 rm -rf conftest.one conftest.two conftest.dir 3775 echo one > conftest.one 3776 echo two > conftest.two 3777 mkdir conftest.dir 3778 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3779 test -s conftest.one && test -s conftest.two && 3780 test -s conftest.dir/conftest.one && 3781 test -s conftest.dir/conftest.two 3782 then 3783 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3784 break 3 3785 fi 3786 fi 3787 fi 3788 done 3789 done 3790 ;; 3791esac 3792 3793 done 3794IFS=$as_save_IFS 3795 3796rm -rf conftest.one conftest.two conftest.dir 3797 3798fi 3799 if test "${ac_cv_path_install+set}" = set; then 3800 INSTALL=$ac_cv_path_install 3801 else 3802 # As a last resort, use the slow shell script. Don't cache a 3803 # value for INSTALL within a source directory, because that will 3804 # break other packages using the cache if that directory is 3805 # removed, or if the value is a relative name. 3806 INSTALL=$ac_install_sh 3807 fi 3808fi 3809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3810$as_echo "$INSTALL" >&6; } 3811 3812# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3813# It thinks the first close brace ends the variable substitution. 3814test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3815 3816test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3817 3818test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3819 3820test "$program_prefix" != NONE && 3821 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3822# Use a double $ so make ignores it. 3823test "$program_suffix" != NONE && 3824 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3825# Double any \ or $. 3826# By default was `s,x,x', remove it if useless. 3827ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3828program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3829 3830# expand $ac_aux_dir to an absolute path 3831am_aux_dir=`cd $ac_aux_dir && pwd` 3832 3833if test x"${MISSING+set}" != xset; then 3834 case $am_aux_dir in 3835 *\ * | *\ *) 3836 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3837 *) 3838 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3839 esac 3840fi 3841# Use eval to expand $SHELL 3842if eval "$MISSING --run true"; then 3843 am_missing_run="$MISSING --run " 3844else 3845 am_missing_run= 3846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3847$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3848fi 3849 3850if test x"${install_sh}" != xset; then 3851 case $am_aux_dir in 3852 *\ * | *\ *) 3853 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3854 *) 3855 install_sh="\${SHELL} $am_aux_dir/install-sh" 3856 esac 3857fi 3858 3859# Installed binaries are usually stripped using 'strip' when the user 3860# run "make install-strip". However 'strip' might not be the right 3861# tool to use in cross-compilation environments, therefore Automake 3862# will honor the 'STRIP' environment variable to overrule this program. 3863if test "$cross_compiling" != no; then 3864 if test -n "$ac_tool_prefix"; then 3865 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3866set dummy ${ac_tool_prefix}strip; ac_word=$2 3867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3868$as_echo_n "checking for $ac_word... " >&6; } 3869if ${ac_cv_prog_STRIP+:} false; then : 3870 $as_echo_n "(cached) " >&6 3871else 3872 if test -n "$STRIP"; then 3873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3874else 3875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3876for as_dir in $PATH 3877do 3878 IFS=$as_save_IFS 3879 test -z "$as_dir" && as_dir=. 3880 for ac_exec_ext in '' $ac_executable_extensions; do 3881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3882 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3884 break 2 3885 fi 3886done 3887 done 3888IFS=$as_save_IFS 3889 3890fi 3891fi 3892STRIP=$ac_cv_prog_STRIP 3893if test -n "$STRIP"; then 3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3895$as_echo "$STRIP" >&6; } 3896else 3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3898$as_echo "no" >&6; } 3899fi 3900 3901 3902fi 3903if test -z "$ac_cv_prog_STRIP"; then 3904 ac_ct_STRIP=$STRIP 3905 # Extract the first word of "strip", so it can be a program name with args. 3906set dummy strip; ac_word=$2 3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3908$as_echo_n "checking for $ac_word... " >&6; } 3909if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3910 $as_echo_n "(cached) " >&6 3911else 3912 if test -n "$ac_ct_STRIP"; then 3913 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3914else 3915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3916for as_dir in $PATH 3917do 3918 IFS=$as_save_IFS 3919 test -z "$as_dir" && as_dir=. 3920 for ac_exec_ext in '' $ac_executable_extensions; do 3921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3922 ac_cv_prog_ac_ct_STRIP="strip" 3923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3924 break 2 3925 fi 3926done 3927 done 3928IFS=$as_save_IFS 3929 3930fi 3931fi 3932ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3933if test -n "$ac_ct_STRIP"; then 3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3935$as_echo "$ac_ct_STRIP" >&6; } 3936else 3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3938$as_echo "no" >&6; } 3939fi 3940 3941 if test "x$ac_ct_STRIP" = x; then 3942 STRIP=":" 3943 else 3944 case $cross_compiling:$ac_tool_warned in 3945yes:) 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3948ac_tool_warned=yes ;; 3949esac 3950 STRIP=$ac_ct_STRIP 3951 fi 3952else 3953 STRIP="$ac_cv_prog_STRIP" 3954fi 3955 3956fi 3957INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3958 3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3960$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3961if test -z "$MKDIR_P"; then 3962 if ${ac_cv_path_mkdir+:} false; then : 3963 $as_echo_n "(cached) " >&6 3964else 3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3966for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3967do 3968 IFS=$as_save_IFS 3969 test -z "$as_dir" && as_dir=. 3970 for ac_prog in mkdir gmkdir; do 3971 for ac_exec_ext in '' $ac_executable_extensions; do 3972 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3973 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3974 'mkdir (GNU coreutils) '* | \ 3975 'mkdir (coreutils) '* | \ 3976 'mkdir (fileutils) '4.1*) 3977 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3978 break 3;; 3979 esac 3980 done 3981 done 3982 done 3983IFS=$as_save_IFS 3984 3985fi 3986 3987 test -d ./--version && rmdir ./--version 3988 if test "${ac_cv_path_mkdir+set}" = set; then 3989 MKDIR_P="$ac_cv_path_mkdir -p" 3990 else 3991 # As a last resort, use the slow shell script. Don't cache a 3992 # value for MKDIR_P within a source directory, because that will 3993 # break other packages using the cache if that directory is 3994 # removed, or if the value is a relative name. 3995 MKDIR_P="$ac_install_sh -d" 3996 fi 3997fi 3998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3999$as_echo "$MKDIR_P" >&6; } 4000 4001for ac_prog in gawk mawk nawk awk 4002do 4003 # Extract the first word of "$ac_prog", so it can be a program name with args. 4004set dummy $ac_prog; ac_word=$2 4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4006$as_echo_n "checking for $ac_word... " >&6; } 4007if ${ac_cv_prog_AWK+:} false; then : 4008 $as_echo_n "(cached) " >&6 4009else 4010 if test -n "$AWK"; then 4011 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4012else 4013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4014for as_dir in $PATH 4015do 4016 IFS=$as_save_IFS 4017 test -z "$as_dir" && as_dir=. 4018 for ac_exec_ext in '' $ac_executable_extensions; do 4019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4020 ac_cv_prog_AWK="$ac_prog" 4021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4022 break 2 4023 fi 4024done 4025 done 4026IFS=$as_save_IFS 4027 4028fi 4029fi 4030AWK=$ac_cv_prog_AWK 4031if test -n "$AWK"; then 4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4033$as_echo "$AWK" >&6; } 4034else 4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4036$as_echo "no" >&6; } 4037fi 4038 4039 4040 test -n "$AWK" && break 4041done 4042 4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4044$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4045set x ${MAKE-make} 4046ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4047if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4048 $as_echo_n "(cached) " >&6 4049else 4050 cat >conftest.make <<\_ACEOF 4051SHELL = /bin/sh 4052all: 4053 @echo '@@@%%%=$(MAKE)=@@@%%%' 4054_ACEOF 4055# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4056case `${MAKE-make} -f conftest.make 2>/dev/null` in 4057 *@@@%%%=?*=@@@%%%*) 4058 eval ac_cv_prog_make_${ac_make}_set=yes;; 4059 *) 4060 eval ac_cv_prog_make_${ac_make}_set=no;; 4061esac 4062rm -f conftest.make 4063fi 4064if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4066$as_echo "yes" >&6; } 4067 SET_MAKE= 4068else 4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4070$as_echo "no" >&6; } 4071 SET_MAKE="MAKE=${MAKE-make}" 4072fi 4073 4074rm -rf .tst 2>/dev/null 4075mkdir .tst 2>/dev/null 4076if test -d .tst; then 4077 am__leading_dot=. 4078else 4079 am__leading_dot=_ 4080fi 4081rmdir .tst 2>/dev/null 4082 4083# Check whether --enable-silent-rules was given. 4084if test "${enable_silent_rules+set}" = set; then : 4085 enableval=$enable_silent_rules; 4086fi 4087 4088case $enable_silent_rules in # ((( 4089 yes) AM_DEFAULT_VERBOSITY=0;; 4090 no) AM_DEFAULT_VERBOSITY=1;; 4091 *) AM_DEFAULT_VERBOSITY=1;; 4092esac 4093am_make=${MAKE-make} 4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4095$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4096if ${am_cv_make_support_nested_variables+:} false; then : 4097 $as_echo_n "(cached) " >&6 4098else 4099 if $as_echo 'TRUE=$(BAR$(V)) 4100BAR0=false 4101BAR1=true 4102V=1 4103am__doit: 4104 @$(TRUE) 4105.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4106 am_cv_make_support_nested_variables=yes 4107else 4108 am_cv_make_support_nested_variables=no 4109fi 4110fi 4111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4112$as_echo "$am_cv_make_support_nested_variables" >&6; } 4113if test $am_cv_make_support_nested_variables = yes; then 4114 AM_V='$(V)' 4115 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4116else 4117 AM_V=$AM_DEFAULT_VERBOSITY 4118 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4119fi 4120AM_BACKSLASH='\' 4121 4122if test "`cd $srcdir && pwd`" != "`pwd`"; then 4123 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4124 # is not polluted with repeated "-I." 4125 am__isrc=' -I$(srcdir)' 4126 # test to see if srcdir already configured 4127 if test -f $srcdir/config.status; then 4128 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4129 fi 4130fi 4131 4132# test whether we have cygpath 4133if test -z "$CYGPATH_W"; then 4134 if (cygpath --version) >/dev/null 2>/dev/null; then 4135 CYGPATH_W='cygpath -w' 4136 else 4137 CYGPATH_W=echo 4138 fi 4139fi 4140 4141 4142# Define the identity of the package. 4143 PACKAGE='ImageMagick' 4144 VERSION='7.0.0-0' 4145 4146 4147cat >>confdefs.h <<_ACEOF 4148#define PACKAGE "$PACKAGE" 4149_ACEOF 4150 4151 4152cat >>confdefs.h <<_ACEOF 4153#define VERSION "$VERSION" 4154_ACEOF 4155 4156# Some tools Automake needs. 4157 4158ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4159 4160 4161AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4162 4163 4164AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4165 4166 4167AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4168 4169 4170MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4171 4172# For better backward compatibility. To be removed once Automake 1.9.x 4173# dies out for good. For more background, see: 4174# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4175# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4176mkdir_p='$(MKDIR_P)' 4177 4178# We need awk for the "check" target. The system "awk" is bad on 4179# some platforms. 4180# Always define AMTAR for backward compatibility. Yes, it's still used 4181# in the wild :-( We should find a proper way to deprecate it ... 4182AMTAR='$${TAR-tar}' 4183 4184am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4185 4186 4187 4188 4189 4190 4191# Enable support for silent build rules 4192# Check whether --enable-silent-rules was given. 4193if test "${enable_silent_rules+set}" = set; then : 4194 enableval=$enable_silent_rules; 4195fi 4196 4197case $enable_silent_rules in # ((( 4198 yes) AM_DEFAULT_VERBOSITY=0;; 4199 no) AM_DEFAULT_VERBOSITY=1;; 4200 *) AM_DEFAULT_VERBOSITY=0;; 4201esac 4202am_make=${MAKE-make} 4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4204$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4205if ${am_cv_make_support_nested_variables+:} false; then : 4206 $as_echo_n "(cached) " >&6 4207else 4208 if $as_echo 'TRUE=$(BAR$(V)) 4209BAR0=false 4210BAR1=true 4211V=1 4212am__doit: 4213 @$(TRUE) 4214.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4215 am_cv_make_support_nested_variables=yes 4216else 4217 am_cv_make_support_nested_variables=no 4218fi 4219fi 4220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4221$as_echo "$am_cv_make_support_nested_variables" >&6; } 4222if test $am_cv_make_support_nested_variables = yes; then 4223 AM_V='$(V)' 4224 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4225else 4226 AM_V=$AM_DEFAULT_VERBOSITY 4227 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4228fi 4229AM_BACKSLASH='\' 4230 4231 4232MAGICK_LIB_VERSION="0x" 4233if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then 4234 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 4235fi 4236MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT} 4237if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then 4238 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 4239fi 4240MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE} 4241if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then 4242 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 4243fi 4244MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION} 4245 4246 4247# Definition used to define MagickLibVersionText in version.h 4248MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}" 4249 4250 4251# Definition used to define MagickLibVersionNumber in version.h 4252MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}" 4253 4254 4255# Regenerate config.status if ChangeLog or version.sh is updated. 4256CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh' 4257 4258 4259PERLMAINCC=$CC 4260 4261MAGICK_CFLAGS='' 4262MAGICK_CPPFLAGS=$CPPFLAGS_USER 4263MAGICK_PCFLAGS=$CPPFLAGS_USER 4264MAGICK_LDFLAGS='' 4265MAGICK_LIBS='' 4266MAGICK_FEATURES='' 4267 4268# 4269# Evaluate shell variable equivalents to Makefile directory variables 4270# 4271if test "x$prefix" = xNONE; then 4272 prefix=$ac_default_prefix 4273fi 4274# Let make expand exec_prefix. 4275if test "x$exec_prefix" = xNONE; then 4276 exec_prefix='${prefix}' 4277fi 4278 4279# 4280eval "eval PREFIX_DIR=${prefix}" 4281 4282eval "eval EXEC_PREFIX_DIR=${exec_prefix}" 4283 4284eval "eval BIN_DIR=$bindir" 4285 4286eval "eval SBIN_DIR=$sbindir" 4287 4288eval "eval LIBEXEC_DIR=$libexecdir" 4289 4290eval "eval DATA_DIR=$datadir" 4291 4292eval "eval DOC_DIR=$datadir/doc" 4293 4294eval "eval SYSCONF_DIR=$sysconfdir" 4295 4296eval "eval SHAREDSTATE_DIR=$sharedstatedir" 4297 4298eval "eval LOCALSTATE_DIR=$localstatedir" 4299 4300eval "eval LIB_DIR=$libdir" 4301 4302eval "eval INCLUDE_DIR=$includedir" 4303 4304eval "eval PERSISTINCLUDE_DIR=$oldincludedir" 4305 4306eval "eval INFO_DIR=$infodir" 4307 4308eval "eval MAN_DIR=$mandir" 4309 4310 4311# Get full paths to source and build directories 4312srcdirfull="`cd $srcdir && pwd`" 4313builddir="`pwd`" 4314 4315# 4316# Compute variables useful for running uninstalled software. 4317# 4318MAGICK_CODER_MODULE_PATH="${builddir}/coders" 4319MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config" 4320MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config" 4321MAGICK_FILTER_MODULE_PATH="${builddir}/filters" 4322DIRSEP=':' 4323case "${build_os}" in 4324 mingw* ) 4325 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0` 4326 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0` 4327 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0` 4328 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0` 4329 DIRSEP=';' 4330 ;; 4331esac 4332case "${host_os}" in 4333 mingw* ) 4334 DIRSEP=';' 4335 ;; 4336esac 4337 4338 4339 4340 4341 4342 4343 4344# 4345# Enable OS features. 4346# 4347DEPDIR="${am__leading_dot}deps" 4348 4349ac_config_commands="$ac_config_commands depfiles" 4350 4351 4352am_make=${MAKE-make} 4353cat > confinc << 'END' 4354am__doit: 4355 @echo this is the am__doit target 4356.PHONY: am__doit 4357END 4358# If we don't find an include directive, just comment out the code. 4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4360$as_echo_n "checking for style of include used by $am_make... " >&6; } 4361am__include="#" 4362am__quote= 4363_am_result=none 4364# First try GNU make style include. 4365echo "include confinc" > confmf 4366# Ignore all kinds of additional output from 'make'. 4367case `$am_make -s -f confmf 2> /dev/null` in #( 4368*the\ am__doit\ target*) 4369 am__include=include 4370 am__quote= 4371 _am_result=GNU 4372 ;; 4373esac 4374# Now try BSD make style include. 4375if test "$am__include" = "#"; then 4376 echo '.include "confinc"' > confmf 4377 case `$am_make -s -f confmf 2> /dev/null` in #( 4378 *the\ am__doit\ target*) 4379 am__include=.include 4380 am__quote="\"" 4381 _am_result=BSD 4382 ;; 4383 esac 4384fi 4385 4386 4387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4388$as_echo "$_am_result" >&6; } 4389rm -f confinc confmf 4390 4391# Check whether --enable-dependency-tracking was given. 4392if test "${enable_dependency_tracking+set}" = set; then : 4393 enableval=$enable_dependency_tracking; 4394fi 4395 4396if test "x$enable_dependency_tracking" != xno; then 4397 am_depcomp="$ac_aux_dir/depcomp" 4398 AMDEPBACKSLASH='\' 4399 am__nodep='_no' 4400fi 4401 if test "x$enable_dependency_tracking" != xno; then 4402 AMDEP_TRUE= 4403 AMDEP_FALSE='#' 4404else 4405 AMDEP_TRUE='#' 4406 AMDEP_FALSE= 4407fi 4408 4409 4410ac_ext=c 4411ac_cpp='$CPP $CPPFLAGS' 4412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4414ac_compiler_gnu=$ac_cv_c_compiler_gnu 4415if test -n "$ac_tool_prefix"; then 4416 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4417set dummy ${ac_tool_prefix}gcc; ac_word=$2 4418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4419$as_echo_n "checking for $ac_word... " >&6; } 4420if ${ac_cv_prog_CC+:} false; then : 4421 $as_echo_n "(cached) " >&6 4422else 4423 if test -n "$CC"; then 4424 ac_cv_prog_CC="$CC" # Let the user override the test. 4425else 4426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4427for as_dir in $PATH 4428do 4429 IFS=$as_save_IFS 4430 test -z "$as_dir" && as_dir=. 4431 for ac_exec_ext in '' $ac_executable_extensions; do 4432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4433 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4435 break 2 4436 fi 4437done 4438 done 4439IFS=$as_save_IFS 4440 4441fi 4442fi 4443CC=$ac_cv_prog_CC 4444if test -n "$CC"; then 4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4446$as_echo "$CC" >&6; } 4447else 4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4449$as_echo "no" >&6; } 4450fi 4451 4452 4453fi 4454if test -z "$ac_cv_prog_CC"; then 4455 ac_ct_CC=$CC 4456 # Extract the first word of "gcc", so it can be a program name with args. 4457set dummy gcc; ac_word=$2 4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4459$as_echo_n "checking for $ac_word... " >&6; } 4460if ${ac_cv_prog_ac_ct_CC+:} false; then : 4461 $as_echo_n "(cached) " >&6 4462else 4463 if test -n "$ac_ct_CC"; then 4464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4465else 4466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4467for as_dir in $PATH 4468do 4469 IFS=$as_save_IFS 4470 test -z "$as_dir" && as_dir=. 4471 for ac_exec_ext in '' $ac_executable_extensions; do 4472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4473 ac_cv_prog_ac_ct_CC="gcc" 4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4475 break 2 4476 fi 4477done 4478 done 4479IFS=$as_save_IFS 4480 4481fi 4482fi 4483ac_ct_CC=$ac_cv_prog_ac_ct_CC 4484if test -n "$ac_ct_CC"; then 4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4486$as_echo "$ac_ct_CC" >&6; } 4487else 4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4489$as_echo "no" >&6; } 4490fi 4491 4492 if test "x$ac_ct_CC" = x; then 4493 CC="" 4494 else 4495 case $cross_compiling:$ac_tool_warned in 4496yes:) 4497{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4498$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4499ac_tool_warned=yes ;; 4500esac 4501 CC=$ac_ct_CC 4502 fi 4503else 4504 CC="$ac_cv_prog_CC" 4505fi 4506 4507if test -z "$CC"; then 4508 if test -n "$ac_tool_prefix"; then 4509 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4510set dummy ${ac_tool_prefix}cc; ac_word=$2 4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4512$as_echo_n "checking for $ac_word... " >&6; } 4513if ${ac_cv_prog_CC+:} false; then : 4514 $as_echo_n "(cached) " >&6 4515else 4516 if test -n "$CC"; then 4517 ac_cv_prog_CC="$CC" # Let the user override the test. 4518else 4519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4520for as_dir in $PATH 4521do 4522 IFS=$as_save_IFS 4523 test -z "$as_dir" && as_dir=. 4524 for ac_exec_ext in '' $ac_executable_extensions; do 4525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4526 ac_cv_prog_CC="${ac_tool_prefix}cc" 4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4528 break 2 4529 fi 4530done 4531 done 4532IFS=$as_save_IFS 4533 4534fi 4535fi 4536CC=$ac_cv_prog_CC 4537if test -n "$CC"; then 4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4539$as_echo "$CC" >&6; } 4540else 4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4542$as_echo "no" >&6; } 4543fi 4544 4545 4546 fi 4547fi 4548if test -z "$CC"; then 4549 # Extract the first word of "cc", so it can be a program name with args. 4550set dummy cc; ac_word=$2 4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4552$as_echo_n "checking for $ac_word... " >&6; } 4553if ${ac_cv_prog_CC+:} false; then : 4554 $as_echo_n "(cached) " >&6 4555else 4556 if test -n "$CC"; then 4557 ac_cv_prog_CC="$CC" # Let the user override the test. 4558else 4559 ac_prog_rejected=no 4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4561for as_dir in $PATH 4562do 4563 IFS=$as_save_IFS 4564 test -z "$as_dir" && as_dir=. 4565 for ac_exec_ext in '' $ac_executable_extensions; do 4566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4567 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4568 ac_prog_rejected=yes 4569 continue 4570 fi 4571 ac_cv_prog_CC="cc" 4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4573 break 2 4574 fi 4575done 4576 done 4577IFS=$as_save_IFS 4578 4579if test $ac_prog_rejected = yes; then 4580 # We found a bogon in the path, so make sure we never use it. 4581 set dummy $ac_cv_prog_CC 4582 shift 4583 if test $# != 0; then 4584 # We chose a different compiler from the bogus one. 4585 # However, it has the same basename, so the bogon will be chosen 4586 # first if we set CC to just the basename; use the full file name. 4587 shift 4588 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4589 fi 4590fi 4591fi 4592fi 4593CC=$ac_cv_prog_CC 4594if test -n "$CC"; then 4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4596$as_echo "$CC" >&6; } 4597else 4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4599$as_echo "no" >&6; } 4600fi 4601 4602 4603fi 4604if test -z "$CC"; then 4605 if test -n "$ac_tool_prefix"; then 4606 for ac_prog in cl.exe 4607 do 4608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4609set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4611$as_echo_n "checking for $ac_word... " >&6; } 4612if ${ac_cv_prog_CC+:} false; then : 4613 $as_echo_n "(cached) " >&6 4614else 4615 if test -n "$CC"; then 4616 ac_cv_prog_CC="$CC" # Let the user override the test. 4617else 4618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4619for as_dir in $PATH 4620do 4621 IFS=$as_save_IFS 4622 test -z "$as_dir" && as_dir=. 4623 for ac_exec_ext in '' $ac_executable_extensions; do 4624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4625 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4627 break 2 4628 fi 4629done 4630 done 4631IFS=$as_save_IFS 4632 4633fi 4634fi 4635CC=$ac_cv_prog_CC 4636if test -n "$CC"; then 4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4638$as_echo "$CC" >&6; } 4639else 4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4641$as_echo "no" >&6; } 4642fi 4643 4644 4645 test -n "$CC" && break 4646 done 4647fi 4648if test -z "$CC"; then 4649 ac_ct_CC=$CC 4650 for ac_prog in cl.exe 4651do 4652 # Extract the first word of "$ac_prog", so it can be a program name with args. 4653set dummy $ac_prog; ac_word=$2 4654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4655$as_echo_n "checking for $ac_word... " >&6; } 4656if ${ac_cv_prog_ac_ct_CC+:} false; then : 4657 $as_echo_n "(cached) " >&6 4658else 4659 if test -n "$ac_ct_CC"; then 4660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4661else 4662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4663for as_dir in $PATH 4664do 4665 IFS=$as_save_IFS 4666 test -z "$as_dir" && as_dir=. 4667 for ac_exec_ext in '' $ac_executable_extensions; do 4668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4669 ac_cv_prog_ac_ct_CC="$ac_prog" 4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4671 break 2 4672 fi 4673done 4674 done 4675IFS=$as_save_IFS 4676 4677fi 4678fi 4679ac_ct_CC=$ac_cv_prog_ac_ct_CC 4680if test -n "$ac_ct_CC"; then 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4682$as_echo "$ac_ct_CC" >&6; } 4683else 4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4685$as_echo "no" >&6; } 4686fi 4687 4688 4689 test -n "$ac_ct_CC" && break 4690done 4691 4692 if test "x$ac_ct_CC" = x; then 4693 CC="" 4694 else 4695 case $cross_compiling:$ac_tool_warned in 4696yes:) 4697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4699ac_tool_warned=yes ;; 4700esac 4701 CC=$ac_ct_CC 4702 fi 4703fi 4704 4705fi 4706 4707 4708test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4710as_fn_error $? "no acceptable C compiler found in \$PATH 4711See \`config.log' for more details" "$LINENO" 5; } 4712 4713# Provide some information about the compiler. 4714$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4715set X $ac_compile 4716ac_compiler=$2 4717for ac_option in --version -v -V -qversion; do 4718 { { ac_try="$ac_compiler $ac_option >&5" 4719case "(($ac_try" in 4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4721 *) ac_try_echo=$ac_try;; 4722esac 4723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4724$as_echo "$ac_try_echo"; } >&5 4725 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4726 ac_status=$? 4727 if test -s conftest.err; then 4728 sed '10a\ 4729... rest of stderr output deleted ... 4730 10q' conftest.err >conftest.er1 4731 cat conftest.er1 >&5 4732 fi 4733 rm -f conftest.er1 conftest.err 4734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4735 test $ac_status = 0; } 4736done 4737 4738cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4739/* end confdefs.h. */ 4740 4741int 4742main () 4743{ 4744 4745 ; 4746 return 0; 4747} 4748_ACEOF 4749ac_clean_files_save=$ac_clean_files 4750ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4751# Try to create an executable without -o first, disregard a.out. 4752# It will help us diagnose broken compilers, and finding out an intuition 4753# of exeext. 4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4755$as_echo_n "checking whether the C compiler works... " >&6; } 4756ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4757 4758# The possible output files: 4759ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4760 4761ac_rmfiles= 4762for ac_file in $ac_files 4763do 4764 case $ac_file in 4765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4766 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4767 esac 4768done 4769rm -f $ac_rmfiles 4770 4771if { { ac_try="$ac_link_default" 4772case "(($ac_try" in 4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4774 *) ac_try_echo=$ac_try;; 4775esac 4776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4777$as_echo "$ac_try_echo"; } >&5 4778 (eval "$ac_link_default") 2>&5 4779 ac_status=$? 4780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4781 test $ac_status = 0; }; then : 4782 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4783# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4784# in a Makefile. We should not override ac_cv_exeext if it was cached, 4785# so that the user can short-circuit this test for compilers unknown to 4786# Autoconf. 4787for ac_file in $ac_files '' 4788do 4789 test -f "$ac_file" || continue 4790 case $ac_file in 4791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4792 ;; 4793 [ab].out ) 4794 # We found the default executable, but exeext='' is most 4795 # certainly right. 4796 break;; 4797 *.* ) 4798 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4799 then :; else 4800 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4801 fi 4802 # We set ac_cv_exeext here because the later test for it is not 4803 # safe: cross compilers may not add the suffix if given an `-o' 4804 # argument, so we may need to know it at that point already. 4805 # Even if this section looks crufty: it has the advantage of 4806 # actually working. 4807 break;; 4808 * ) 4809 break;; 4810 esac 4811done 4812test "$ac_cv_exeext" = no && ac_cv_exeext= 4813 4814else 4815 ac_file='' 4816fi 4817if test -z "$ac_file"; then : 4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4819$as_echo "no" >&6; } 4820$as_echo "$as_me: failed program was:" >&5 4821sed 's/^/| /' conftest.$ac_ext >&5 4822 4823{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4825as_fn_error 77 "C compiler cannot create executables 4826See \`config.log' for more details" "$LINENO" 5; } 4827else 4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4829$as_echo "yes" >&6; } 4830fi 4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4832$as_echo_n "checking for C compiler default output file name... " >&6; } 4833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4834$as_echo "$ac_file" >&6; } 4835ac_exeext=$ac_cv_exeext 4836 4837rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4838ac_clean_files=$ac_clean_files_save 4839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4840$as_echo_n "checking for suffix of executables... " >&6; } 4841if { { ac_try="$ac_link" 4842case "(($ac_try" in 4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4844 *) ac_try_echo=$ac_try;; 4845esac 4846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4847$as_echo "$ac_try_echo"; } >&5 4848 (eval "$ac_link") 2>&5 4849 ac_status=$? 4850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4851 test $ac_status = 0; }; then : 4852 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4853# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4854# work properly (i.e., refer to `conftest.exe'), while it won't with 4855# `rm'. 4856for ac_file in conftest.exe conftest conftest.*; do 4857 test -f "$ac_file" || continue 4858 case $ac_file in 4859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4860 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4861 break;; 4862 * ) break;; 4863 esac 4864done 4865else 4866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4868as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4869See \`config.log' for more details" "$LINENO" 5; } 4870fi 4871rm -f conftest conftest$ac_cv_exeext 4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4873$as_echo "$ac_cv_exeext" >&6; } 4874 4875rm -f conftest.$ac_ext 4876EXEEXT=$ac_cv_exeext 4877ac_exeext=$EXEEXT 4878cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4879/* end confdefs.h. */ 4880#include <stdio.h> 4881int 4882main () 4883{ 4884FILE *f = fopen ("conftest.out", "w"); 4885 return ferror (f) || fclose (f) != 0; 4886 4887 ; 4888 return 0; 4889} 4890_ACEOF 4891ac_clean_files="$ac_clean_files conftest.out" 4892# Check that the compiler produces executables we can run. If not, either 4893# the compiler is broken, or we cross compile. 4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4895$as_echo_n "checking whether we are cross compiling... " >&6; } 4896if test "$cross_compiling" != yes; then 4897 { { ac_try="$ac_link" 4898case "(($ac_try" in 4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4900 *) ac_try_echo=$ac_try;; 4901esac 4902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4903$as_echo "$ac_try_echo"; } >&5 4904 (eval "$ac_link") 2>&5 4905 ac_status=$? 4906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4907 test $ac_status = 0; } 4908 if { ac_try='./conftest$ac_cv_exeext' 4909 { { case "(($ac_try" in 4910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4911 *) ac_try_echo=$ac_try;; 4912esac 4913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4914$as_echo "$ac_try_echo"; } >&5 4915 (eval "$ac_try") 2>&5 4916 ac_status=$? 4917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4918 test $ac_status = 0; }; }; then 4919 cross_compiling=no 4920 else 4921 if test "$cross_compiling" = maybe; then 4922 cross_compiling=yes 4923 else 4924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4926as_fn_error $? "cannot run C compiled programs. 4927If you meant to cross compile, use \`--host'. 4928See \`config.log' for more details" "$LINENO" 5; } 4929 fi 4930 fi 4931fi 4932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4933$as_echo "$cross_compiling" >&6; } 4934 4935rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4936ac_clean_files=$ac_clean_files_save 4937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4938$as_echo_n "checking for suffix of object files... " >&6; } 4939if ${ac_cv_objext+:} false; then : 4940 $as_echo_n "(cached) " >&6 4941else 4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4943/* end confdefs.h. */ 4944 4945int 4946main () 4947{ 4948 4949 ; 4950 return 0; 4951} 4952_ACEOF 4953rm -f conftest.o conftest.obj 4954if { { ac_try="$ac_compile" 4955case "(($ac_try" in 4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4957 *) ac_try_echo=$ac_try;; 4958esac 4959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4960$as_echo "$ac_try_echo"; } >&5 4961 (eval "$ac_compile") 2>&5 4962 ac_status=$? 4963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4964 test $ac_status = 0; }; then : 4965 for ac_file in conftest.o conftest.obj conftest.*; do 4966 test -f "$ac_file" || continue; 4967 case $ac_file in 4968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4969 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4970 break;; 4971 esac 4972done 4973else 4974 $as_echo "$as_me: failed program was:" >&5 4975sed 's/^/| /' conftest.$ac_ext >&5 4976 4977{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4979as_fn_error $? "cannot compute suffix of object files: cannot compile 4980See \`config.log' for more details" "$LINENO" 5; } 4981fi 4982rm -f conftest.$ac_cv_objext conftest.$ac_ext 4983fi 4984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4985$as_echo "$ac_cv_objext" >&6; } 4986OBJEXT=$ac_cv_objext 4987ac_objext=$OBJEXT 4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4989$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4990if ${ac_cv_c_compiler_gnu+:} false; then : 4991 $as_echo_n "(cached) " >&6 4992else 4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4994/* end confdefs.h. */ 4995 4996int 4997main () 4998{ 4999#ifndef __GNUC__ 5000 choke me 5001#endif 5002 5003 ; 5004 return 0; 5005} 5006_ACEOF 5007if ac_fn_c_try_compile "$LINENO"; then : 5008 ac_compiler_gnu=yes 5009else 5010 ac_compiler_gnu=no 5011fi 5012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5013ac_cv_c_compiler_gnu=$ac_compiler_gnu 5014 5015fi 5016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5017$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5018if test $ac_compiler_gnu = yes; then 5019 GCC=yes 5020else 5021 GCC= 5022fi 5023ac_test_CFLAGS=${CFLAGS+set} 5024ac_save_CFLAGS=$CFLAGS 5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5026$as_echo_n "checking whether $CC accepts -g... " >&6; } 5027if ${ac_cv_prog_cc_g+:} false; then : 5028 $as_echo_n "(cached) " >&6 5029else 5030 ac_save_c_werror_flag=$ac_c_werror_flag 5031 ac_c_werror_flag=yes 5032 ac_cv_prog_cc_g=no 5033 CFLAGS="-g" 5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5035/* end confdefs.h. */ 5036 5037int 5038main () 5039{ 5040 5041 ; 5042 return 0; 5043} 5044_ACEOF 5045if ac_fn_c_try_compile "$LINENO"; then : 5046 ac_cv_prog_cc_g=yes 5047else 5048 CFLAGS="" 5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5050/* end confdefs.h. */ 5051 5052int 5053main () 5054{ 5055 5056 ; 5057 return 0; 5058} 5059_ACEOF 5060if ac_fn_c_try_compile "$LINENO"; then : 5061 5062else 5063 ac_c_werror_flag=$ac_save_c_werror_flag 5064 CFLAGS="-g" 5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5066/* end confdefs.h. */ 5067 5068int 5069main () 5070{ 5071 5072 ; 5073 return 0; 5074} 5075_ACEOF 5076if ac_fn_c_try_compile "$LINENO"; then : 5077 ac_cv_prog_cc_g=yes 5078fi 5079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5080fi 5081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5082fi 5083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5084 ac_c_werror_flag=$ac_save_c_werror_flag 5085fi 5086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5087$as_echo "$ac_cv_prog_cc_g" >&6; } 5088if test "$ac_test_CFLAGS" = set; then 5089 CFLAGS=$ac_save_CFLAGS 5090elif test $ac_cv_prog_cc_g = yes; then 5091 if test "$GCC" = yes; then 5092 CFLAGS="-g -O2" 5093 else 5094 CFLAGS="-g" 5095 fi 5096else 5097 if test "$GCC" = yes; then 5098 CFLAGS="-O2" 5099 else 5100 CFLAGS= 5101 fi 5102fi 5103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5104$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5105if ${ac_cv_prog_cc_c89+:} false; then : 5106 $as_echo_n "(cached) " >&6 5107else 5108 ac_cv_prog_cc_c89=no 5109ac_save_CC=$CC 5110cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5111/* end confdefs.h. */ 5112#include <stdarg.h> 5113#include <stdio.h> 5114struct stat; 5115/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5116struct buf { int x; }; 5117FILE * (*rcsopen) (struct buf *, struct stat *, int); 5118static char *e (p, i) 5119 char **p; 5120 int i; 5121{ 5122 return p[i]; 5123} 5124static char *f (char * (*g) (char **, int), char **p, ...) 5125{ 5126 char *s; 5127 va_list v; 5128 va_start (v,p); 5129 s = g (p, va_arg (v,int)); 5130 va_end (v); 5131 return s; 5132} 5133 5134/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5135 function prototypes and stuff, but not '\xHH' hex character constants. 5136 These don't provoke an error unfortunately, instead are silently treated 5137 as 'x'. The following induces an error, until -std is added to get 5138 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5139 array size at least. It's necessary to write '\x00'==0 to get something 5140 that's true only with -std. */ 5141int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5142 5143/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5144 inside strings and character constants. */ 5145#define FOO(x) 'x' 5146int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5147 5148int test (int i, double x); 5149struct s1 {int (*f) (int a);}; 5150struct s2 {int (*f) (double a);}; 5151int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5152int argc; 5153char **argv; 5154int 5155main () 5156{ 5157return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5158 ; 5159 return 0; 5160} 5161_ACEOF 5162for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5163 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5164do 5165 CC="$ac_save_CC $ac_arg" 5166 if ac_fn_c_try_compile "$LINENO"; then : 5167 ac_cv_prog_cc_c89=$ac_arg 5168fi 5169rm -f core conftest.err conftest.$ac_objext 5170 test "x$ac_cv_prog_cc_c89" != "xno" && break 5171done 5172rm -f conftest.$ac_ext 5173CC=$ac_save_CC 5174 5175fi 5176# AC_CACHE_VAL 5177case "x$ac_cv_prog_cc_c89" in 5178 x) 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5180$as_echo "none needed" >&6; } ;; 5181 xno) 5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5183$as_echo "unsupported" >&6; } ;; 5184 *) 5185 CC="$CC $ac_cv_prog_cc_c89" 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5187$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5188esac 5189if test "x$ac_cv_prog_cc_c89" != xno; then : 5190 5191fi 5192 5193ac_ext=c 5194ac_cpp='$CPP $CPPFLAGS' 5195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5197ac_compiler_gnu=$ac_cv_c_compiler_gnu 5198 5199depcc="$CC" am_compiler_list= 5200 5201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5202$as_echo_n "checking dependency style of $depcc... " >&6; } 5203if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5204 $as_echo_n "(cached) " >&6 5205else 5206 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5207 # We make a subdir and do the tests there. Otherwise we can end up 5208 # making bogus files that we don't know about and never remove. For 5209 # instance it was reported that on HP-UX the gcc test will end up 5210 # making a dummy file named 'D' -- because '-MD' means "put the output 5211 # in D". 5212 rm -rf conftest.dir 5213 mkdir conftest.dir 5214 # Copy depcomp to subdir because otherwise we won't find it if we're 5215 # using a relative directory. 5216 cp "$am_depcomp" conftest.dir 5217 cd conftest.dir 5218 # We will build objects and dependencies in a subdirectory because 5219 # it helps to detect inapplicable dependency modes. For instance 5220 # both Tru64's cc and ICC support -MD to output dependencies as a 5221 # side effect of compilation, but ICC will put the dependencies in 5222 # the current directory while Tru64 will put them in the object 5223 # directory. 5224 mkdir sub 5225 5226 am_cv_CC_dependencies_compiler_type=none 5227 if test "$am_compiler_list" = ""; then 5228 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5229 fi 5230 am__universal=false 5231 case " $depcc " in #( 5232 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5233 esac 5234 5235 for depmode in $am_compiler_list; do 5236 # Setup a source with many dependencies, because some compilers 5237 # like to wrap large dependency lists on column 80 (with \), and 5238 # we should not choose a depcomp mode which is confused by this. 5239 # 5240 # We need to recreate these files for each test, as the compiler may 5241 # overwrite some of them when testing with obscure command lines. 5242 # This happens at least with the AIX C compiler. 5243 : > sub/conftest.c 5244 for i in 1 2 3 4 5 6; do 5245 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5246 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5247 # Solaris 10 /bin/sh. 5248 echo '/* dummy */' > sub/conftst$i.h 5249 done 5250 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5251 5252 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5253 # mode. It turns out that the SunPro C++ compiler does not properly 5254 # handle '-M -o', and we need to detect this. Also, some Intel 5255 # versions had trouble with output in subdirs. 5256 am__obj=sub/conftest.${OBJEXT-o} 5257 am__minus_obj="-o $am__obj" 5258 case $depmode in 5259 gcc) 5260 # This depmode causes a compiler race in universal mode. 5261 test "$am__universal" = false || continue 5262 ;; 5263 nosideeffect) 5264 # After this tag, mechanisms are not by side-effect, so they'll 5265 # only be used when explicitly requested. 5266 if test "x$enable_dependency_tracking" = xyes; then 5267 continue 5268 else 5269 break 5270 fi 5271 ;; 5272 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5273 # This compiler won't grok '-c -o', but also, the minuso test has 5274 # not run yet. These depmodes are late enough in the game, and 5275 # so weak that their functioning should not be impacted. 5276 am__obj=conftest.${OBJEXT-o} 5277 am__minus_obj= 5278 ;; 5279 none) break ;; 5280 esac 5281 if depmode=$depmode \ 5282 source=sub/conftest.c object=$am__obj \ 5283 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5284 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5285 >/dev/null 2>conftest.err && 5286 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5287 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5288 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5289 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5290 # icc doesn't choke on unknown options, it will just issue warnings 5291 # or remarks (even with -Werror). So we grep stderr for any message 5292 # that says an option was ignored or not supported. 5293 # When given -MP, icc 7.0 and 7.1 complain thusly: 5294 # icc: Command line warning: ignoring option '-M'; no argument required 5295 # The diagnosis changed in icc 8.0: 5296 # icc: Command line remark: option '-MP' not supported 5297 if (grep 'ignoring option' conftest.err || 5298 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5299 am_cv_CC_dependencies_compiler_type=$depmode 5300 break 5301 fi 5302 fi 5303 done 5304 5305 cd .. 5306 rm -rf conftest.dir 5307else 5308 am_cv_CC_dependencies_compiler_type=none 5309fi 5310 5311fi 5312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5313$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5314CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5315 5316 if 5317 test "x$enable_dependency_tracking" != xno \ 5318 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5319 am__fastdepCC_TRUE= 5320 am__fastdepCC_FALSE='#' 5321else 5322 am__fastdepCC_TRUE='#' 5323 am__fastdepCC_FALSE= 5324fi 5325 5326 5327 5328ac_ext=c 5329ac_cpp='$CPP $CPPFLAGS' 5330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5332ac_compiler_gnu=$ac_cv_c_compiler_gnu 5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5334$as_echo_n "checking how to run the C preprocessor... " >&6; } 5335# On Suns, sometimes $CPP names a directory. 5336if test -n "$CPP" && test -d "$CPP"; then 5337 CPP= 5338fi 5339if test -z "$CPP"; then 5340 if ${ac_cv_prog_CPP+:} false; then : 5341 $as_echo_n "(cached) " >&6 5342else 5343 # Double quotes because CPP needs to be expanded 5344 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5345 do 5346 ac_preproc_ok=false 5347for ac_c_preproc_warn_flag in '' yes 5348do 5349 # Use a header file that comes with gcc, so configuring glibc 5350 # with a fresh cross-compiler works. 5351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5352 # <limits.h> exists even on freestanding compilers. 5353 # On the NeXT, cc -E runs the code through the compiler's parser, 5354 # not just through cpp. "Syntax error" is here to catch this case. 5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5356/* end confdefs.h. */ 5357#ifdef __STDC__ 5358# include <limits.h> 5359#else 5360# include <assert.h> 5361#endif 5362 Syntax error 5363_ACEOF 5364if ac_fn_c_try_cpp "$LINENO"; then : 5365 5366else 5367 # Broken: fails on valid input. 5368continue 5369fi 5370rm -f conftest.err conftest.i conftest.$ac_ext 5371 5372 # OK, works on sane cases. Now check whether nonexistent headers 5373 # can be detected and how. 5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5375/* end confdefs.h. */ 5376#include <ac_nonexistent.h> 5377_ACEOF 5378if ac_fn_c_try_cpp "$LINENO"; then : 5379 # Broken: success on invalid input. 5380continue 5381else 5382 # Passes both tests. 5383ac_preproc_ok=: 5384break 5385fi 5386rm -f conftest.err conftest.i conftest.$ac_ext 5387 5388done 5389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5390rm -f conftest.i conftest.err conftest.$ac_ext 5391if $ac_preproc_ok; then : 5392 break 5393fi 5394 5395 done 5396 ac_cv_prog_CPP=$CPP 5397 5398fi 5399 CPP=$ac_cv_prog_CPP 5400else 5401 ac_cv_prog_CPP=$CPP 5402fi 5403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5404$as_echo "$CPP" >&6; } 5405ac_preproc_ok=false 5406for ac_c_preproc_warn_flag in '' yes 5407do 5408 # Use a header file that comes with gcc, so configuring glibc 5409 # with a fresh cross-compiler works. 5410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5411 # <limits.h> exists even on freestanding compilers. 5412 # On the NeXT, cc -E runs the code through the compiler's parser, 5413 # not just through cpp. "Syntax error" is here to catch this case. 5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5415/* end confdefs.h. */ 5416#ifdef __STDC__ 5417# include <limits.h> 5418#else 5419# include <assert.h> 5420#endif 5421 Syntax error 5422_ACEOF 5423if ac_fn_c_try_cpp "$LINENO"; then : 5424 5425else 5426 # Broken: fails on valid input. 5427continue 5428fi 5429rm -f conftest.err conftest.i conftest.$ac_ext 5430 5431 # OK, works on sane cases. Now check whether nonexistent headers 5432 # can be detected and how. 5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5434/* end confdefs.h. */ 5435#include <ac_nonexistent.h> 5436_ACEOF 5437if ac_fn_c_try_cpp "$LINENO"; then : 5438 # Broken: success on invalid input. 5439continue 5440else 5441 # Passes both tests. 5442ac_preproc_ok=: 5443break 5444fi 5445rm -f conftest.err conftest.i conftest.$ac_ext 5446 5447done 5448# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5449rm -f conftest.i conftest.err conftest.$ac_ext 5450if $ac_preproc_ok; then : 5451 5452else 5453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5455as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5456See \`config.log' for more details" "$LINENO" 5; } 5457fi 5458 5459ac_ext=c 5460ac_cpp='$CPP $CPPFLAGS' 5461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5463ac_compiler_gnu=$ac_cv_c_compiler_gnu 5464 5465 5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5467$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5468if ${ac_cv_path_GREP+:} false; then : 5469 $as_echo_n "(cached) " >&6 5470else 5471 if test -z "$GREP"; then 5472 ac_path_GREP_found=false 5473 # Loop through the user's path and test for each of PROGNAME-LIST 5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5475for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5476do 5477 IFS=$as_save_IFS 5478 test -z "$as_dir" && as_dir=. 5479 for ac_prog in grep ggrep; do 5480 for ac_exec_ext in '' $ac_executable_extensions; do 5481 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5482 as_fn_executable_p "$ac_path_GREP" || continue 5483# Check for GNU ac_path_GREP and select it if it is found. 5484 # Check for GNU $ac_path_GREP 5485case `"$ac_path_GREP" --version 2>&1` in 5486*GNU*) 5487 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5488*) 5489 ac_count=0 5490 $as_echo_n 0123456789 >"conftest.in" 5491 while : 5492 do 5493 cat "conftest.in" "conftest.in" >"conftest.tmp" 5494 mv "conftest.tmp" "conftest.in" 5495 cp "conftest.in" "conftest.nl" 5496 $as_echo 'GREP' >> "conftest.nl" 5497 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5498 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5499 as_fn_arith $ac_count + 1 && ac_count=$as_val 5500 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5501 # Best one so far, save it but keep looking for a better one 5502 ac_cv_path_GREP="$ac_path_GREP" 5503 ac_path_GREP_max=$ac_count 5504 fi 5505 # 10*(2^10) chars as input seems more than enough 5506 test $ac_count -gt 10 && break 5507 done 5508 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5509esac 5510 5511 $ac_path_GREP_found && break 3 5512 done 5513 done 5514 done 5515IFS=$as_save_IFS 5516 if test -z "$ac_cv_path_GREP"; then 5517 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5518 fi 5519else 5520 ac_cv_path_GREP=$GREP 5521fi 5522 5523fi 5524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5525$as_echo "$ac_cv_path_GREP" >&6; } 5526 GREP="$ac_cv_path_GREP" 5527 5528 5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5530$as_echo_n "checking for egrep... " >&6; } 5531if ${ac_cv_path_EGREP+:} false; then : 5532 $as_echo_n "(cached) " >&6 5533else 5534 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5535 then ac_cv_path_EGREP="$GREP -E" 5536 else 5537 if test -z "$EGREP"; then 5538 ac_path_EGREP_found=false 5539 # Loop through the user's path and test for each of PROGNAME-LIST 5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5541for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5542do 5543 IFS=$as_save_IFS 5544 test -z "$as_dir" && as_dir=. 5545 for ac_prog in egrep; do 5546 for ac_exec_ext in '' $ac_executable_extensions; do 5547 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5548 as_fn_executable_p "$ac_path_EGREP" || continue 5549# Check for GNU ac_path_EGREP and select it if it is found. 5550 # Check for GNU $ac_path_EGREP 5551case `"$ac_path_EGREP" --version 2>&1` in 5552*GNU*) 5553 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5554*) 5555 ac_count=0 5556 $as_echo_n 0123456789 >"conftest.in" 5557 while : 5558 do 5559 cat "conftest.in" "conftest.in" >"conftest.tmp" 5560 mv "conftest.tmp" "conftest.in" 5561 cp "conftest.in" "conftest.nl" 5562 $as_echo 'EGREP' >> "conftest.nl" 5563 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5564 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5565 as_fn_arith $ac_count + 1 && ac_count=$as_val 5566 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5567 # Best one so far, save it but keep looking for a better one 5568 ac_cv_path_EGREP="$ac_path_EGREP" 5569 ac_path_EGREP_max=$ac_count 5570 fi 5571 # 10*(2^10) chars as input seems more than enough 5572 test $ac_count -gt 10 && break 5573 done 5574 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5575esac 5576 5577 $ac_path_EGREP_found && break 3 5578 done 5579 done 5580 done 5581IFS=$as_save_IFS 5582 if test -z "$ac_cv_path_EGREP"; then 5583 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5584 fi 5585else 5586 ac_cv_path_EGREP=$EGREP 5587fi 5588 5589 fi 5590fi 5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5592$as_echo "$ac_cv_path_EGREP" >&6; } 5593 EGREP="$ac_cv_path_EGREP" 5594 5595 5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5597$as_echo_n "checking for ANSI C header files... " >&6; } 5598if ${ac_cv_header_stdc+:} false; then : 5599 $as_echo_n "(cached) " >&6 5600else 5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5602/* end confdefs.h. */ 5603#include <stdlib.h> 5604#include <stdarg.h> 5605#include <string.h> 5606#include <float.h> 5607 5608int 5609main () 5610{ 5611 5612 ; 5613 return 0; 5614} 5615_ACEOF 5616if ac_fn_c_try_compile "$LINENO"; then : 5617 ac_cv_header_stdc=yes 5618else 5619 ac_cv_header_stdc=no 5620fi 5621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5622 5623if test $ac_cv_header_stdc = yes; then 5624 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5626/* end confdefs.h. */ 5627#include <string.h> 5628 5629_ACEOF 5630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5631 $EGREP "memchr" >/dev/null 2>&1; then : 5632 5633else 5634 ac_cv_header_stdc=no 5635fi 5636rm -f conftest* 5637 5638fi 5639 5640if test $ac_cv_header_stdc = yes; then 5641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5643/* end confdefs.h. */ 5644#include <stdlib.h> 5645 5646_ACEOF 5647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5648 $EGREP "free" >/dev/null 2>&1; then : 5649 5650else 5651 ac_cv_header_stdc=no 5652fi 5653rm -f conftest* 5654 5655fi 5656 5657if test $ac_cv_header_stdc = yes; then 5658 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5659 if test "$cross_compiling" = yes; then : 5660 : 5661else 5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5663/* end confdefs.h. */ 5664#include <ctype.h> 5665#include <stdlib.h> 5666#if ((' ' & 0x0FF) == 0x020) 5667# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5668# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5669#else 5670# define ISLOWER(c) \ 5671 (('a' <= (c) && (c) <= 'i') \ 5672 || ('j' <= (c) && (c) <= 'r') \ 5673 || ('s' <= (c) && (c) <= 'z')) 5674# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5675#endif 5676 5677#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5678int 5679main () 5680{ 5681 int i; 5682 for (i = 0; i < 256; i++) 5683 if (XOR (islower (i), ISLOWER (i)) 5684 || toupper (i) != TOUPPER (i)) 5685 return 2; 5686 return 0; 5687} 5688_ACEOF 5689if ac_fn_c_try_run "$LINENO"; then : 5690 5691else 5692 ac_cv_header_stdc=no 5693fi 5694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5695 conftest.$ac_objext conftest.beam conftest.$ac_ext 5696fi 5697 5698fi 5699fi 5700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5701$as_echo "$ac_cv_header_stdc" >&6; } 5702if test $ac_cv_header_stdc = yes; then 5703 5704$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5705 5706fi 5707 5708# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5709for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5710 inttypes.h stdint.h unistd.h 5711do : 5712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5713ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5714" 5715if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5716 cat >>confdefs.h <<_ACEOF 5717#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5718_ACEOF 5719 5720fi 5721 5722done 5723 5724 5725 5726 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5727if test "x$ac_cv_header_minix_config_h" = xyes; then : 5728 MINIX=yes 5729else 5730 MINIX= 5731fi 5732 5733 5734 if test "$MINIX" = yes; then 5735 5736$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5737 5738 5739$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5740 5741 5742$as_echo "#define _MINIX 1" >>confdefs.h 5743 5744 fi 5745 5746 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5748$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5749if ${ac_cv_safe_to_define___extensions__+:} false; then : 5750 $as_echo_n "(cached) " >&6 5751else 5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5753/* end confdefs.h. */ 5754 5755# define __EXTENSIONS__ 1 5756 $ac_includes_default 5757int 5758main () 5759{ 5760 5761 ; 5762 return 0; 5763} 5764_ACEOF 5765if ac_fn_c_try_compile "$LINENO"; then : 5766 ac_cv_safe_to_define___extensions__=yes 5767else 5768 ac_cv_safe_to_define___extensions__=no 5769fi 5770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5771fi 5772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5773$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5774 test $ac_cv_safe_to_define___extensions__ = yes && 5775 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5776 5777 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5778 5779 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5780 5781 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5782 5783 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5784 5785 5786 5787# Check for programs 5788ac_ext=c 5789ac_cpp='$CPP $CPPFLAGS' 5790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5792ac_compiler_gnu=$ac_cv_c_compiler_gnu 5793if test -n "$ac_tool_prefix"; then 5794 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5795set dummy ${ac_tool_prefix}gcc; ac_word=$2 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5797$as_echo_n "checking for $ac_word... " >&6; } 5798if ${ac_cv_prog_CC+:} false; then : 5799 $as_echo_n "(cached) " >&6 5800else 5801 if test -n "$CC"; then 5802 ac_cv_prog_CC="$CC" # Let the user override the test. 5803else 5804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5805for as_dir in $PATH 5806do 5807 IFS=$as_save_IFS 5808 test -z "$as_dir" && as_dir=. 5809 for ac_exec_ext in '' $ac_executable_extensions; do 5810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5811 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5813 break 2 5814 fi 5815done 5816 done 5817IFS=$as_save_IFS 5818 5819fi 5820fi 5821CC=$ac_cv_prog_CC 5822if test -n "$CC"; then 5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5824$as_echo "$CC" >&6; } 5825else 5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5827$as_echo "no" >&6; } 5828fi 5829 5830 5831fi 5832if test -z "$ac_cv_prog_CC"; then 5833 ac_ct_CC=$CC 5834 # Extract the first word of "gcc", so it can be a program name with args. 5835set dummy gcc; ac_word=$2 5836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5837$as_echo_n "checking for $ac_word... " >&6; } 5838if ${ac_cv_prog_ac_ct_CC+:} false; then : 5839 $as_echo_n "(cached) " >&6 5840else 5841 if test -n "$ac_ct_CC"; then 5842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5843else 5844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5845for as_dir in $PATH 5846do 5847 IFS=$as_save_IFS 5848 test -z "$as_dir" && as_dir=. 5849 for ac_exec_ext in '' $ac_executable_extensions; do 5850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5851 ac_cv_prog_ac_ct_CC="gcc" 5852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5853 break 2 5854 fi 5855done 5856 done 5857IFS=$as_save_IFS 5858 5859fi 5860fi 5861ac_ct_CC=$ac_cv_prog_ac_ct_CC 5862if test -n "$ac_ct_CC"; then 5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5864$as_echo "$ac_ct_CC" >&6; } 5865else 5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5867$as_echo "no" >&6; } 5868fi 5869 5870 if test "x$ac_ct_CC" = x; then 5871 CC="" 5872 else 5873 case $cross_compiling:$ac_tool_warned in 5874yes:) 5875{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5877ac_tool_warned=yes ;; 5878esac 5879 CC=$ac_ct_CC 5880 fi 5881else 5882 CC="$ac_cv_prog_CC" 5883fi 5884 5885if test -z "$CC"; then 5886 if test -n "$ac_tool_prefix"; then 5887 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5888set dummy ${ac_tool_prefix}cc; ac_word=$2 5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5890$as_echo_n "checking for $ac_word... " >&6; } 5891if ${ac_cv_prog_CC+:} false; then : 5892 $as_echo_n "(cached) " >&6 5893else 5894 if test -n "$CC"; then 5895 ac_cv_prog_CC="$CC" # Let the user override the test. 5896else 5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5898for as_dir in $PATH 5899do 5900 IFS=$as_save_IFS 5901 test -z "$as_dir" && as_dir=. 5902 for ac_exec_ext in '' $ac_executable_extensions; do 5903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5904 ac_cv_prog_CC="${ac_tool_prefix}cc" 5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5906 break 2 5907 fi 5908done 5909 done 5910IFS=$as_save_IFS 5911 5912fi 5913fi 5914CC=$ac_cv_prog_CC 5915if test -n "$CC"; then 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5917$as_echo "$CC" >&6; } 5918else 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5920$as_echo "no" >&6; } 5921fi 5922 5923 5924 fi 5925fi 5926if test -z "$CC"; then 5927 # Extract the first word of "cc", so it can be a program name with args. 5928set dummy cc; ac_word=$2 5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5930$as_echo_n "checking for $ac_word... " >&6; } 5931if ${ac_cv_prog_CC+:} false; then : 5932 $as_echo_n "(cached) " >&6 5933else 5934 if test -n "$CC"; then 5935 ac_cv_prog_CC="$CC" # Let the user override the test. 5936else 5937 ac_prog_rejected=no 5938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5939for as_dir in $PATH 5940do 5941 IFS=$as_save_IFS 5942 test -z "$as_dir" && as_dir=. 5943 for ac_exec_ext in '' $ac_executable_extensions; do 5944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5945 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5946 ac_prog_rejected=yes 5947 continue 5948 fi 5949 ac_cv_prog_CC="cc" 5950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5951 break 2 5952 fi 5953done 5954 done 5955IFS=$as_save_IFS 5956 5957if test $ac_prog_rejected = yes; then 5958 # We found a bogon in the path, so make sure we never use it. 5959 set dummy $ac_cv_prog_CC 5960 shift 5961 if test $# != 0; then 5962 # We chose a different compiler from the bogus one. 5963 # However, it has the same basename, so the bogon will be chosen 5964 # first if we set CC to just the basename; use the full file name. 5965 shift 5966 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5967 fi 5968fi 5969fi 5970fi 5971CC=$ac_cv_prog_CC 5972if test -n "$CC"; then 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5974$as_echo "$CC" >&6; } 5975else 5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5977$as_echo "no" >&6; } 5978fi 5979 5980 5981fi 5982if test -z "$CC"; then 5983 if test -n "$ac_tool_prefix"; then 5984 for ac_prog in cl.exe 5985 do 5986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5987set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5989$as_echo_n "checking for $ac_word... " >&6; } 5990if ${ac_cv_prog_CC+:} false; then : 5991 $as_echo_n "(cached) " >&6 5992else 5993 if test -n "$CC"; then 5994 ac_cv_prog_CC="$CC" # Let the user override the test. 5995else 5996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5997for as_dir in $PATH 5998do 5999 IFS=$as_save_IFS 6000 test -z "$as_dir" && as_dir=. 6001 for ac_exec_ext in '' $ac_executable_extensions; do 6002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 6004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6005 break 2 6006 fi 6007done 6008 done 6009IFS=$as_save_IFS 6010 6011fi 6012fi 6013CC=$ac_cv_prog_CC 6014if test -n "$CC"; then 6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6016$as_echo "$CC" >&6; } 6017else 6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6019$as_echo "no" >&6; } 6020fi 6021 6022 6023 test -n "$CC" && break 6024 done 6025fi 6026if test -z "$CC"; then 6027 ac_ct_CC=$CC 6028 for ac_prog in cl.exe 6029do 6030 # Extract the first word of "$ac_prog", so it can be a program name with args. 6031set dummy $ac_prog; ac_word=$2 6032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6033$as_echo_n "checking for $ac_word... " >&6; } 6034if ${ac_cv_prog_ac_ct_CC+:} false; then : 6035 $as_echo_n "(cached) " >&6 6036else 6037 if test -n "$ac_ct_CC"; then 6038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 6039else 6040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6041for as_dir in $PATH 6042do 6043 IFS=$as_save_IFS 6044 test -z "$as_dir" && as_dir=. 6045 for ac_exec_ext in '' $ac_executable_extensions; do 6046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6047 ac_cv_prog_ac_ct_CC="$ac_prog" 6048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6049 break 2 6050 fi 6051done 6052 done 6053IFS=$as_save_IFS 6054 6055fi 6056fi 6057ac_ct_CC=$ac_cv_prog_ac_ct_CC 6058if test -n "$ac_ct_CC"; then 6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 6060$as_echo "$ac_ct_CC" >&6; } 6061else 6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6063$as_echo "no" >&6; } 6064fi 6065 6066 6067 test -n "$ac_ct_CC" && break 6068done 6069 6070 if test "x$ac_ct_CC" = x; then 6071 CC="" 6072 else 6073 case $cross_compiling:$ac_tool_warned in 6074yes:) 6075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6077ac_tool_warned=yes ;; 6078esac 6079 CC=$ac_ct_CC 6080 fi 6081fi 6082 6083fi 6084 6085 6086test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6088as_fn_error $? "no acceptable C compiler found in \$PATH 6089See \`config.log' for more details" "$LINENO" 5; } 6090 6091# Provide some information about the compiler. 6092$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 6093set X $ac_compile 6094ac_compiler=$2 6095for ac_option in --version -v -V -qversion; do 6096 { { ac_try="$ac_compiler $ac_option >&5" 6097case "(($ac_try" in 6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6099 *) ac_try_echo=$ac_try;; 6100esac 6101eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6102$as_echo "$ac_try_echo"; } >&5 6103 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6104 ac_status=$? 6105 if test -s conftest.err; then 6106 sed '10a\ 6107... rest of stderr output deleted ... 6108 10q' conftest.err >conftest.er1 6109 cat conftest.er1 >&5 6110 fi 6111 rm -f conftest.er1 conftest.err 6112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6113 test $ac_status = 0; } 6114done 6115 6116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 6117$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 6118if ${ac_cv_c_compiler_gnu+:} false; then : 6119 $as_echo_n "(cached) " >&6 6120else 6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6122/* end confdefs.h. */ 6123 6124int 6125main () 6126{ 6127#ifndef __GNUC__ 6128 choke me 6129#endif 6130 6131 ; 6132 return 0; 6133} 6134_ACEOF 6135if ac_fn_c_try_compile "$LINENO"; then : 6136 ac_compiler_gnu=yes 6137else 6138 ac_compiler_gnu=no 6139fi 6140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6141ac_cv_c_compiler_gnu=$ac_compiler_gnu 6142 6143fi 6144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 6145$as_echo "$ac_cv_c_compiler_gnu" >&6; } 6146if test $ac_compiler_gnu = yes; then 6147 GCC=yes 6148else 6149 GCC= 6150fi 6151ac_test_CFLAGS=${CFLAGS+set} 6152ac_save_CFLAGS=$CFLAGS 6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 6154$as_echo_n "checking whether $CC accepts -g... " >&6; } 6155if ${ac_cv_prog_cc_g+:} false; then : 6156 $as_echo_n "(cached) " >&6 6157else 6158 ac_save_c_werror_flag=$ac_c_werror_flag 6159 ac_c_werror_flag=yes 6160 ac_cv_prog_cc_g=no 6161 CFLAGS="-g" 6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6163/* end confdefs.h. */ 6164 6165int 6166main () 6167{ 6168 6169 ; 6170 return 0; 6171} 6172_ACEOF 6173if ac_fn_c_try_compile "$LINENO"; then : 6174 ac_cv_prog_cc_g=yes 6175else 6176 CFLAGS="" 6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6178/* end confdefs.h. */ 6179 6180int 6181main () 6182{ 6183 6184 ; 6185 return 0; 6186} 6187_ACEOF 6188if ac_fn_c_try_compile "$LINENO"; then : 6189 6190else 6191 ac_c_werror_flag=$ac_save_c_werror_flag 6192 CFLAGS="-g" 6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6194/* end confdefs.h. */ 6195 6196int 6197main () 6198{ 6199 6200 ; 6201 return 0; 6202} 6203_ACEOF 6204if ac_fn_c_try_compile "$LINENO"; then : 6205 ac_cv_prog_cc_g=yes 6206fi 6207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6208fi 6209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6210fi 6211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6212 ac_c_werror_flag=$ac_save_c_werror_flag 6213fi 6214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 6215$as_echo "$ac_cv_prog_cc_g" >&6; } 6216if test "$ac_test_CFLAGS" = set; then 6217 CFLAGS=$ac_save_CFLAGS 6218elif test $ac_cv_prog_cc_g = yes; then 6219 if test "$GCC" = yes; then 6220 CFLAGS="-g -O2" 6221 else 6222 CFLAGS="-g" 6223 fi 6224else 6225 if test "$GCC" = yes; then 6226 CFLAGS="-O2" 6227 else 6228 CFLAGS= 6229 fi 6230fi 6231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 6232$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 6233if ${ac_cv_prog_cc_c89+:} false; then : 6234 $as_echo_n "(cached) " >&6 6235else 6236 ac_cv_prog_cc_c89=no 6237ac_save_CC=$CC 6238cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6239/* end confdefs.h. */ 6240#include <stdarg.h> 6241#include <stdio.h> 6242struct stat; 6243/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6244struct buf { int x; }; 6245FILE * (*rcsopen) (struct buf *, struct stat *, int); 6246static char *e (p, i) 6247 char **p; 6248 int i; 6249{ 6250 return p[i]; 6251} 6252static char *f (char * (*g) (char **, int), char **p, ...) 6253{ 6254 char *s; 6255 va_list v; 6256 va_start (v,p); 6257 s = g (p, va_arg (v,int)); 6258 va_end (v); 6259 return s; 6260} 6261 6262/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6263 function prototypes and stuff, but not '\xHH' hex character constants. 6264 These don't provoke an error unfortunately, instead are silently treated 6265 as 'x'. The following induces an error, until -std is added to get 6266 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6267 array size at least. It's necessary to write '\x00'==0 to get something 6268 that's true only with -std. */ 6269int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6270 6271/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6272 inside strings and character constants. */ 6273#define FOO(x) 'x' 6274int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6275 6276int test (int i, double x); 6277struct s1 {int (*f) (int a);}; 6278struct s2 {int (*f) (double a);}; 6279int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6280int argc; 6281char **argv; 6282int 6283main () 6284{ 6285return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6286 ; 6287 return 0; 6288} 6289_ACEOF 6290for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6291 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6292do 6293 CC="$ac_save_CC $ac_arg" 6294 if ac_fn_c_try_compile "$LINENO"; then : 6295 ac_cv_prog_cc_c89=$ac_arg 6296fi 6297rm -f core conftest.err conftest.$ac_objext 6298 test "x$ac_cv_prog_cc_c89" != "xno" && break 6299done 6300rm -f conftest.$ac_ext 6301CC=$ac_save_CC 6302 6303fi 6304# AC_CACHE_VAL 6305case "x$ac_cv_prog_cc_c89" in 6306 x) 6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6308$as_echo "none needed" >&6; } ;; 6309 xno) 6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6311$as_echo "unsupported" >&6; } ;; 6312 *) 6313 CC="$CC $ac_cv_prog_cc_c89" 6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6315$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 6316esac 6317if test "x$ac_cv_prog_cc_c89" != xno; then : 6318 6319fi 6320 6321ac_ext=c 6322ac_cpp='$CPP $CPPFLAGS' 6323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6325ac_compiler_gnu=$ac_cv_c_compiler_gnu 6326 6327depcc="$CC" am_compiler_list= 6328 6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6330$as_echo_n "checking dependency style of $depcc... " >&6; } 6331if ${am_cv_CC_dependencies_compiler_type+:} false; then : 6332 $as_echo_n "(cached) " >&6 6333else 6334 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6335 # We make a subdir and do the tests there. Otherwise we can end up 6336 # making bogus files that we don't know about and never remove. For 6337 # instance it was reported that on HP-UX the gcc test will end up 6338 # making a dummy file named 'D' -- because '-MD' means "put the output 6339 # in D". 6340 rm -rf conftest.dir 6341 mkdir conftest.dir 6342 # Copy depcomp to subdir because otherwise we won't find it if we're 6343 # using a relative directory. 6344 cp "$am_depcomp" conftest.dir 6345 cd conftest.dir 6346 # We will build objects and dependencies in a subdirectory because 6347 # it helps to detect inapplicable dependency modes. For instance 6348 # both Tru64's cc and ICC support -MD to output dependencies as a 6349 # side effect of compilation, but ICC will put the dependencies in 6350 # the current directory while Tru64 will put them in the object 6351 # directory. 6352 mkdir sub 6353 6354 am_cv_CC_dependencies_compiler_type=none 6355 if test "$am_compiler_list" = ""; then 6356 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6357 fi 6358 am__universal=false 6359 case " $depcc " in #( 6360 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6361 esac 6362 6363 for depmode in $am_compiler_list; do 6364 # Setup a source with many dependencies, because some compilers 6365 # like to wrap large dependency lists on column 80 (with \), and 6366 # we should not choose a depcomp mode which is confused by this. 6367 # 6368 # We need to recreate these files for each test, as the compiler may 6369 # overwrite some of them when testing with obscure command lines. 6370 # This happens at least with the AIX C compiler. 6371 : > sub/conftest.c 6372 for i in 1 2 3 4 5 6; do 6373 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6374 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6375 # Solaris 10 /bin/sh. 6376 echo '/* dummy */' > sub/conftst$i.h 6377 done 6378 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6379 6380 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6381 # mode. It turns out that the SunPro C++ compiler does not properly 6382 # handle '-M -o', and we need to detect this. Also, some Intel 6383 # versions had trouble with output in subdirs. 6384 am__obj=sub/conftest.${OBJEXT-o} 6385 am__minus_obj="-o $am__obj" 6386 case $depmode in 6387 gcc) 6388 # This depmode causes a compiler race in universal mode. 6389 test "$am__universal" = false || continue 6390 ;; 6391 nosideeffect) 6392 # After this tag, mechanisms are not by side-effect, so they'll 6393 # only be used when explicitly requested. 6394 if test "x$enable_dependency_tracking" = xyes; then 6395 continue 6396 else 6397 break 6398 fi 6399 ;; 6400 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6401 # This compiler won't grok '-c -o', but also, the minuso test has 6402 # not run yet. These depmodes are late enough in the game, and 6403 # so weak that their functioning should not be impacted. 6404 am__obj=conftest.${OBJEXT-o} 6405 am__minus_obj= 6406 ;; 6407 none) break ;; 6408 esac 6409 if depmode=$depmode \ 6410 source=sub/conftest.c object=$am__obj \ 6411 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6412 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6413 >/dev/null 2>conftest.err && 6414 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6415 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6416 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6417 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6418 # icc doesn't choke on unknown options, it will just issue warnings 6419 # or remarks (even with -Werror). So we grep stderr for any message 6420 # that says an option was ignored or not supported. 6421 # When given -MP, icc 7.0 and 7.1 complain thusly: 6422 # icc: Command line warning: ignoring option '-M'; no argument required 6423 # The diagnosis changed in icc 8.0: 6424 # icc: Command line remark: option '-MP' not supported 6425 if (grep 'ignoring option' conftest.err || 6426 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6427 am_cv_CC_dependencies_compiler_type=$depmode 6428 break 6429 fi 6430 fi 6431 done 6432 6433 cd .. 6434 rm -rf conftest.dir 6435else 6436 am_cv_CC_dependencies_compiler_type=none 6437fi 6438 6439fi 6440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6441$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 6442CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6443 6444 if 6445 test "x$enable_dependency_tracking" != xno \ 6446 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6447 am__fastdepCC_TRUE= 6448 am__fastdepCC_FALSE='#' 6449else 6450 am__fastdepCC_TRUE='#' 6451 am__fastdepCC_FALSE= 6452fi 6453 6454 6455ac_ext=cpp 6456ac_cpp='$CXXCPP $CPPFLAGS' 6457ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6458ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6459ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6460if test -z "$CXX"; then 6461 if test -n "$CCC"; then 6462 CXX=$CCC 6463 else 6464 if test -n "$ac_tool_prefix"; then 6465 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6466 do 6467 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6468set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6470$as_echo_n "checking for $ac_word... " >&6; } 6471if ${ac_cv_prog_CXX+:} false; then : 6472 $as_echo_n "(cached) " >&6 6473else 6474 if test -n "$CXX"; then 6475 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6476else 6477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6478for as_dir in $PATH 6479do 6480 IFS=$as_save_IFS 6481 test -z "$as_dir" && as_dir=. 6482 for ac_exec_ext in '' $ac_executable_extensions; do 6483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6484 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6486 break 2 6487 fi 6488done 6489 done 6490IFS=$as_save_IFS 6491 6492fi 6493fi 6494CXX=$ac_cv_prog_CXX 6495if test -n "$CXX"; then 6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6497$as_echo "$CXX" >&6; } 6498else 6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6500$as_echo "no" >&6; } 6501fi 6502 6503 6504 test -n "$CXX" && break 6505 done 6506fi 6507if test -z "$CXX"; then 6508 ac_ct_CXX=$CXX 6509 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6510do 6511 # Extract the first word of "$ac_prog", so it can be a program name with args. 6512set dummy $ac_prog; ac_word=$2 6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6514$as_echo_n "checking for $ac_word... " >&6; } 6515if ${ac_cv_prog_ac_ct_CXX+:} false; then : 6516 $as_echo_n "(cached) " >&6 6517else 6518 if test -n "$ac_ct_CXX"; then 6519 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6520else 6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6522for as_dir in $PATH 6523do 6524 IFS=$as_save_IFS 6525 test -z "$as_dir" && as_dir=. 6526 for ac_exec_ext in '' $ac_executable_extensions; do 6527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6528 ac_cv_prog_ac_ct_CXX="$ac_prog" 6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6530 break 2 6531 fi 6532done 6533 done 6534IFS=$as_save_IFS 6535 6536fi 6537fi 6538ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6539if test -n "$ac_ct_CXX"; then 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 6541$as_echo "$ac_ct_CXX" >&6; } 6542else 6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6544$as_echo "no" >&6; } 6545fi 6546 6547 6548 test -n "$ac_ct_CXX" && break 6549done 6550 6551 if test "x$ac_ct_CXX" = x; then 6552 CXX="g++" 6553 else 6554 case $cross_compiling:$ac_tool_warned in 6555yes:) 6556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6558ac_tool_warned=yes ;; 6559esac 6560 CXX=$ac_ct_CXX 6561 fi 6562fi 6563 6564 fi 6565fi 6566# Provide some information about the compiler. 6567$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 6568set X $ac_compile 6569ac_compiler=$2 6570for ac_option in --version -v -V -qversion; do 6571 { { ac_try="$ac_compiler $ac_option >&5" 6572case "(($ac_try" in 6573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6574 *) ac_try_echo=$ac_try;; 6575esac 6576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6577$as_echo "$ac_try_echo"; } >&5 6578 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6579 ac_status=$? 6580 if test -s conftest.err; then 6581 sed '10a\ 6582... rest of stderr output deleted ... 6583 10q' conftest.err >conftest.er1 6584 cat conftest.er1 >&5 6585 fi 6586 rm -f conftest.er1 conftest.err 6587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6588 test $ac_status = 0; } 6589done 6590 6591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 6592$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 6593if ${ac_cv_cxx_compiler_gnu+:} false; then : 6594 $as_echo_n "(cached) " >&6 6595else 6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6597/* end confdefs.h. */ 6598 6599int 6600main () 6601{ 6602#ifndef __GNUC__ 6603 choke me 6604#endif 6605 6606 ; 6607 return 0; 6608} 6609_ACEOF 6610if ac_fn_cxx_try_compile "$LINENO"; then : 6611 ac_compiler_gnu=yes 6612else 6613 ac_compiler_gnu=no 6614fi 6615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6616ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6617 6618fi 6619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 6620$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 6621if test $ac_compiler_gnu = yes; then 6622 GXX=yes 6623else 6624 GXX= 6625fi 6626ac_test_CXXFLAGS=${CXXFLAGS+set} 6627ac_save_CXXFLAGS=$CXXFLAGS 6628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 6629$as_echo_n "checking whether $CXX accepts -g... " >&6; } 6630if ${ac_cv_prog_cxx_g+:} false; then : 6631 $as_echo_n "(cached) " >&6 6632else 6633 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6634 ac_cxx_werror_flag=yes 6635 ac_cv_prog_cxx_g=no 6636 CXXFLAGS="-g" 6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6638/* end confdefs.h. */ 6639 6640int 6641main () 6642{ 6643 6644 ; 6645 return 0; 6646} 6647_ACEOF 6648if ac_fn_cxx_try_compile "$LINENO"; then : 6649 ac_cv_prog_cxx_g=yes 6650else 6651 CXXFLAGS="" 6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6653/* end confdefs.h. */ 6654 6655int 6656main () 6657{ 6658 6659 ; 6660 return 0; 6661} 6662_ACEOF 6663if ac_fn_cxx_try_compile "$LINENO"; then : 6664 6665else 6666 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6667 CXXFLAGS="-g" 6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6669/* end confdefs.h. */ 6670 6671int 6672main () 6673{ 6674 6675 ; 6676 return 0; 6677} 6678_ACEOF 6679if ac_fn_cxx_try_compile "$LINENO"; then : 6680 ac_cv_prog_cxx_g=yes 6681fi 6682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6683fi 6684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6685fi 6686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6687 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6688fi 6689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 6690$as_echo "$ac_cv_prog_cxx_g" >&6; } 6691if test "$ac_test_CXXFLAGS" = set; then 6692 CXXFLAGS=$ac_save_CXXFLAGS 6693elif test $ac_cv_prog_cxx_g = yes; then 6694 if test "$GXX" = yes; then 6695 CXXFLAGS="-g -O2" 6696 else 6697 CXXFLAGS="-g" 6698 fi 6699else 6700 if test "$GXX" = yes; then 6701 CXXFLAGS="-O2" 6702 else 6703 CXXFLAGS= 6704 fi 6705fi 6706ac_ext=c 6707ac_cpp='$CPP $CPPFLAGS' 6708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6710ac_compiler_gnu=$ac_cv_c_compiler_gnu 6711 6712depcc="$CXX" am_compiler_list= 6713 6714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6715$as_echo_n "checking dependency style of $depcc... " >&6; } 6716if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 6717 $as_echo_n "(cached) " >&6 6718else 6719 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6720 # We make a subdir and do the tests there. Otherwise we can end up 6721 # making bogus files that we don't know about and never remove. For 6722 # instance it was reported that on HP-UX the gcc test will end up 6723 # making a dummy file named 'D' -- because '-MD' means "put the output 6724 # in D". 6725 rm -rf conftest.dir 6726 mkdir conftest.dir 6727 # Copy depcomp to subdir because otherwise we won't find it if we're 6728 # using a relative directory. 6729 cp "$am_depcomp" conftest.dir 6730 cd conftest.dir 6731 # We will build objects and dependencies in a subdirectory because 6732 # it helps to detect inapplicable dependency modes. For instance 6733 # both Tru64's cc and ICC support -MD to output dependencies as a 6734 # side effect of compilation, but ICC will put the dependencies in 6735 # the current directory while Tru64 will put them in the object 6736 # directory. 6737 mkdir sub 6738 6739 am_cv_CXX_dependencies_compiler_type=none 6740 if test "$am_compiler_list" = ""; then 6741 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6742 fi 6743 am__universal=false 6744 case " $depcc " in #( 6745 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6746 esac 6747 6748 for depmode in $am_compiler_list; do 6749 # Setup a source with many dependencies, because some compilers 6750 # like to wrap large dependency lists on column 80 (with \), and 6751 # we should not choose a depcomp mode which is confused by this. 6752 # 6753 # We need to recreate these files for each test, as the compiler may 6754 # overwrite some of them when testing with obscure command lines. 6755 # This happens at least with the AIX C compiler. 6756 : > sub/conftest.c 6757 for i in 1 2 3 4 5 6; do 6758 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6759 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6760 # Solaris 10 /bin/sh. 6761 echo '/* dummy */' > sub/conftst$i.h 6762 done 6763 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6764 6765 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6766 # mode. It turns out that the SunPro C++ compiler does not properly 6767 # handle '-M -o', and we need to detect this. Also, some Intel 6768 # versions had trouble with output in subdirs. 6769 am__obj=sub/conftest.${OBJEXT-o} 6770 am__minus_obj="-o $am__obj" 6771 case $depmode in 6772 gcc) 6773 # This depmode causes a compiler race in universal mode. 6774 test "$am__universal" = false || continue 6775 ;; 6776 nosideeffect) 6777 # After this tag, mechanisms are not by side-effect, so they'll 6778 # only be used when explicitly requested. 6779 if test "x$enable_dependency_tracking" = xyes; then 6780 continue 6781 else 6782 break 6783 fi 6784 ;; 6785 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6786 # This compiler won't grok '-c -o', but also, the minuso test has 6787 # not run yet. These depmodes are late enough in the game, and 6788 # so weak that their functioning should not be impacted. 6789 am__obj=conftest.${OBJEXT-o} 6790 am__minus_obj= 6791 ;; 6792 none) break ;; 6793 esac 6794 if depmode=$depmode \ 6795 source=sub/conftest.c object=$am__obj \ 6796 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6797 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6798 >/dev/null 2>conftest.err && 6799 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6800 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6801 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6802 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6803 # icc doesn't choke on unknown options, it will just issue warnings 6804 # or remarks (even with -Werror). So we grep stderr for any message 6805 # that says an option was ignored or not supported. 6806 # When given -MP, icc 7.0 and 7.1 complain thusly: 6807 # icc: Command line warning: ignoring option '-M'; no argument required 6808 # The diagnosis changed in icc 8.0: 6809 # icc: Command line remark: option '-MP' not supported 6810 if (grep 'ignoring option' conftest.err || 6811 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6812 am_cv_CXX_dependencies_compiler_type=$depmode 6813 break 6814 fi 6815 fi 6816 done 6817 6818 cd .. 6819 rm -rf conftest.dir 6820else 6821 am_cv_CXX_dependencies_compiler_type=none 6822fi 6823 6824fi 6825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 6826$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 6827CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6828 6829 if 6830 test "x$enable_dependency_tracking" != xno \ 6831 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6832 am__fastdepCXX_TRUE= 6833 am__fastdepCXX_FALSE='#' 6834else 6835 am__fastdepCXX_TRUE='#' 6836 am__fastdepCXX_FALSE= 6837fi 6838 6839 6840 case $ac_cv_prog_cc_stdc in #( 6841 no) : 6842 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 6843 *) : 6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 6845$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 6846if ${ac_cv_prog_cc_c99+:} false; then : 6847 $as_echo_n "(cached) " >&6 6848else 6849 ac_cv_prog_cc_c99=no 6850ac_save_CC=$CC 6851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6852/* end confdefs.h. */ 6853#include <stdarg.h> 6854#include <stdbool.h> 6855#include <stdlib.h> 6856#include <wchar.h> 6857#include <stdio.h> 6858 6859// Check varargs macros. These examples are taken from C99 6.10.3.5. 6860#define debug(...) fprintf (stderr, __VA_ARGS__) 6861#define showlist(...) puts (#__VA_ARGS__) 6862#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 6863static void 6864test_varargs_macros (void) 6865{ 6866 int x = 1234; 6867 int y = 5678; 6868 debug ("Flag"); 6869 debug ("X = %d\n", x); 6870 showlist (The first, second, and third items.); 6871 report (x>y, "x is %d but y is %d", x, y); 6872} 6873 6874// Check long long types. 6875#define BIG64 18446744073709551615ull 6876#define BIG32 4294967295ul 6877#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 6878#if !BIG_OK 6879 your preprocessor is broken; 6880#endif 6881#if BIG_OK 6882#else 6883 your preprocessor is broken; 6884#endif 6885static long long int bignum = -9223372036854775807LL; 6886static unsigned long long int ubignum = BIG64; 6887 6888struct incomplete_array 6889{ 6890 int datasize; 6891 double data[]; 6892}; 6893 6894struct named_init { 6895 int number; 6896 const wchar_t *name; 6897 double average; 6898}; 6899 6900typedef const char *ccp; 6901 6902static inline int 6903test_restrict (ccp restrict text) 6904{ 6905 // See if C++-style comments work. 6906 // Iterate through items via the restricted pointer. 6907 // Also check for declarations in for loops. 6908 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 6909 continue; 6910 return 0; 6911} 6912 6913// Check varargs and va_copy. 6914static void 6915test_varargs (const char *format, ...) 6916{ 6917 va_list args; 6918 va_start (args, format); 6919 va_list args_copy; 6920 va_copy (args_copy, args); 6921 6922 const char *str; 6923 int number; 6924 float fnumber; 6925 6926 while (*format) 6927 { 6928 switch (*format++) 6929 { 6930 case 's': // string 6931 str = va_arg (args_copy, const char *); 6932 break; 6933 case 'd': // int 6934 number = va_arg (args_copy, int); 6935 break; 6936 case 'f': // float 6937 fnumber = va_arg (args_copy, double); 6938 break; 6939 default: 6940 break; 6941 } 6942 } 6943 va_end (args_copy); 6944 va_end (args); 6945} 6946 6947int 6948main () 6949{ 6950 6951 // Check bool. 6952 _Bool success = false; 6953 6954 // Check restrict. 6955 if (test_restrict ("String literal") == 0) 6956 success = true; 6957 char *restrict newvar = "Another string"; 6958 6959 // Check varargs. 6960 test_varargs ("s, d' f .", "string", 65, 34.234); 6961 test_varargs_macros (); 6962 6963 // Check flexible array members. 6964 struct incomplete_array *ia = 6965 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 6966 ia->datasize = 10; 6967 for (int i = 0; i < ia->datasize; ++i) 6968 ia->data[i] = i * 1.234; 6969 6970 // Check named initializers. 6971 struct named_init ni = { 6972 .number = 34, 6973 .name = L"Test wide string", 6974 .average = 543.34343, 6975 }; 6976 6977 ni.number = 58; 6978 6979 int dynamic_array[ni.number]; 6980 dynamic_array[ni.number - 1] = 543; 6981 6982 // work around unused variable warnings 6983 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 6984 || dynamic_array[ni.number - 1] != 543); 6985 6986 ; 6987 return 0; 6988} 6989_ACEOF 6990for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 6991do 6992 CC="$ac_save_CC $ac_arg" 6993 if ac_fn_c_try_compile "$LINENO"; then : 6994 ac_cv_prog_cc_c99=$ac_arg 6995fi 6996rm -f core conftest.err conftest.$ac_objext 6997 test "x$ac_cv_prog_cc_c99" != "xno" && break 6998done 6999rm -f conftest.$ac_ext 7000CC=$ac_save_CC 7001 7002fi 7003# AC_CACHE_VAL 7004case "x$ac_cv_prog_cc_c99" in 7005 x) 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7007$as_echo "none needed" >&6; } ;; 7008 xno) 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7010$as_echo "unsupported" >&6; } ;; 7011 *) 7012 CC="$CC $ac_cv_prog_cc_c99" 7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 7014$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 7015esac 7016if test "x$ac_cv_prog_cc_c99" != xno; then : 7017 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 7018else 7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 7020$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 7021if ${ac_cv_prog_cc_c89+:} false; then : 7022 $as_echo_n "(cached) " >&6 7023else 7024 ac_cv_prog_cc_c89=no 7025ac_save_CC=$CC 7026cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7027/* end confdefs.h. */ 7028#include <stdarg.h> 7029#include <stdio.h> 7030struct stat; 7031/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 7032struct buf { int x; }; 7033FILE * (*rcsopen) (struct buf *, struct stat *, int); 7034static char *e (p, i) 7035 char **p; 7036 int i; 7037{ 7038 return p[i]; 7039} 7040static char *f (char * (*g) (char **, int), char **p, ...) 7041{ 7042 char *s; 7043 va_list v; 7044 va_start (v,p); 7045 s = g (p, va_arg (v,int)); 7046 va_end (v); 7047 return s; 7048} 7049 7050/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 7051 function prototypes and stuff, but not '\xHH' hex character constants. 7052 These don't provoke an error unfortunately, instead are silently treated 7053 as 'x'. The following induces an error, until -std is added to get 7054 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 7055 array size at least. It's necessary to write '\x00'==0 to get something 7056 that's true only with -std. */ 7057int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 7058 7059/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 7060 inside strings and character constants. */ 7061#define FOO(x) 'x' 7062int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 7063 7064int test (int i, double x); 7065struct s1 {int (*f) (int a);}; 7066struct s2 {int (*f) (double a);}; 7067int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 7068int argc; 7069char **argv; 7070int 7071main () 7072{ 7073return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 7074 ; 7075 return 0; 7076} 7077_ACEOF 7078for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 7079 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 7080do 7081 CC="$ac_save_CC $ac_arg" 7082 if ac_fn_c_try_compile "$LINENO"; then : 7083 ac_cv_prog_cc_c89=$ac_arg 7084fi 7085rm -f core conftest.err conftest.$ac_objext 7086 test "x$ac_cv_prog_cc_c89" != "xno" && break 7087done 7088rm -f conftest.$ac_ext 7089CC=$ac_save_CC 7090 7091fi 7092# AC_CACHE_VAL 7093case "x$ac_cv_prog_cc_c89" in 7094 x) 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7096$as_echo "none needed" >&6; } ;; 7097 xno) 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7099$as_echo "unsupported" >&6; } ;; 7100 *) 7101 CC="$CC $ac_cv_prog_cc_c89" 7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 7103$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 7104esac 7105if test "x$ac_cv_prog_cc_c89" != xno; then : 7106 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 7107else 7108 ac_cv_prog_cc_stdc=no 7109fi 7110 7111fi 7112 ;; 7113esac 7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 7115$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 7116 if ${ac_cv_prog_cc_stdc+:} false; then : 7117 $as_echo_n "(cached) " >&6 7118fi 7119 7120 case $ac_cv_prog_cc_stdc in #( 7121 no) : 7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7123$as_echo "unsupported" >&6; } ;; #( 7124 '') : 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7126$as_echo "none needed" >&6; } ;; #( 7127 *) : 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 7129$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 7130esac 7131 7132ac_ext=c 7133ac_cpp='$CPP $CPPFLAGS' 7134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7136ac_compiler_gnu=$ac_cv_c_compiler_gnu 7137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7138$as_echo_n "checking how to run the C preprocessor... " >&6; } 7139# On Suns, sometimes $CPP names a directory. 7140if test -n "$CPP" && test -d "$CPP"; then 7141 CPP= 7142fi 7143if test -z "$CPP"; then 7144 if ${ac_cv_prog_CPP+:} false; then : 7145 $as_echo_n "(cached) " >&6 7146else 7147 # Double quotes because CPP needs to be expanded 7148 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7149 do 7150 ac_preproc_ok=false 7151for ac_c_preproc_warn_flag in '' yes 7152do 7153 # Use a header file that comes with gcc, so configuring glibc 7154 # with a fresh cross-compiler works. 7155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7156 # <limits.h> exists even on freestanding compilers. 7157 # On the NeXT, cc -E runs the code through the compiler's parser, 7158 # not just through cpp. "Syntax error" is here to catch this case. 7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7160/* end confdefs.h. */ 7161#ifdef __STDC__ 7162# include <limits.h> 7163#else 7164# include <assert.h> 7165#endif 7166 Syntax error 7167_ACEOF 7168if ac_fn_c_try_cpp "$LINENO"; then : 7169 7170else 7171 # Broken: fails on valid input. 7172continue 7173fi 7174rm -f conftest.err conftest.i conftest.$ac_ext 7175 7176 # OK, works on sane cases. Now check whether nonexistent headers 7177 # can be detected and how. 7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7179/* end confdefs.h. */ 7180#include <ac_nonexistent.h> 7181_ACEOF 7182if ac_fn_c_try_cpp "$LINENO"; then : 7183 # Broken: success on invalid input. 7184continue 7185else 7186 # Passes both tests. 7187ac_preproc_ok=: 7188break 7189fi 7190rm -f conftest.err conftest.i conftest.$ac_ext 7191 7192done 7193# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7194rm -f conftest.i conftest.err conftest.$ac_ext 7195if $ac_preproc_ok; then : 7196 break 7197fi 7198 7199 done 7200 ac_cv_prog_CPP=$CPP 7201 7202fi 7203 CPP=$ac_cv_prog_CPP 7204else 7205 ac_cv_prog_CPP=$CPP 7206fi 7207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7208$as_echo "$CPP" >&6; } 7209ac_preproc_ok=false 7210for ac_c_preproc_warn_flag in '' yes 7211do 7212 # Use a header file that comes with gcc, so configuring glibc 7213 # with a fresh cross-compiler works. 7214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7215 # <limits.h> exists even on freestanding compilers. 7216 # On the NeXT, cc -E runs the code through the compiler's parser, 7217 # not just through cpp. "Syntax error" is here to catch this case. 7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7219/* end confdefs.h. */ 7220#ifdef __STDC__ 7221# include <limits.h> 7222#else 7223# include <assert.h> 7224#endif 7225 Syntax error 7226_ACEOF 7227if ac_fn_c_try_cpp "$LINENO"; then : 7228 7229else 7230 # Broken: fails on valid input. 7231continue 7232fi 7233rm -f conftest.err conftest.i conftest.$ac_ext 7234 7235 # OK, works on sane cases. Now check whether nonexistent headers 7236 # can be detected and how. 7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7238/* end confdefs.h. */ 7239#include <ac_nonexistent.h> 7240_ACEOF 7241if ac_fn_c_try_cpp "$LINENO"; then : 7242 # Broken: success on invalid input. 7243continue 7244else 7245 # Passes both tests. 7246ac_preproc_ok=: 7247break 7248fi 7249rm -f conftest.err conftest.i conftest.$ac_ext 7250 7251done 7252# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7253rm -f conftest.i conftest.err conftest.$ac_ext 7254if $ac_preproc_ok; then : 7255 7256else 7257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7259as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7260See \`config.log' for more details" "$LINENO" 5; } 7261fi 7262 7263ac_ext=c 7264ac_cpp='$CPP $CPPFLAGS' 7265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7267ac_compiler_gnu=$ac_cv_c_compiler_gnu 7268 7269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7270$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7271if ${ac_cv_path_SED+:} false; then : 7272 $as_echo_n "(cached) " >&6 7273else 7274 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7275 for ac_i in 1 2 3 4 5 6 7; do 7276 ac_script="$ac_script$as_nl$ac_script" 7277 done 7278 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7279 { ac_script=; unset ac_script;} 7280 if test -z "$SED"; then 7281 ac_path_SED_found=false 7282 # Loop through the user's path and test for each of PROGNAME-LIST 7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7284for as_dir in $PATH 7285do 7286 IFS=$as_save_IFS 7287 test -z "$as_dir" && as_dir=. 7288 for ac_prog in sed gsed; do 7289 for ac_exec_ext in '' $ac_executable_extensions; do 7290 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7291 as_fn_executable_p "$ac_path_SED" || continue 7292# Check for GNU ac_path_SED and select it if it is found. 7293 # Check for GNU $ac_path_SED 7294case `"$ac_path_SED" --version 2>&1` in 7295*GNU*) 7296 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7297*) 7298 ac_count=0 7299 $as_echo_n 0123456789 >"conftest.in" 7300 while : 7301 do 7302 cat "conftest.in" "conftest.in" >"conftest.tmp" 7303 mv "conftest.tmp" "conftest.in" 7304 cp "conftest.in" "conftest.nl" 7305 $as_echo '' >> "conftest.nl" 7306 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7307 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7308 as_fn_arith $ac_count + 1 && ac_count=$as_val 7309 if test $ac_count -gt ${ac_path_SED_max-0}; then 7310 # Best one so far, save it but keep looking for a better one 7311 ac_cv_path_SED="$ac_path_SED" 7312 ac_path_SED_max=$ac_count 7313 fi 7314 # 10*(2^10) chars as input seems more than enough 7315 test $ac_count -gt 10 && break 7316 done 7317 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7318esac 7319 7320 $ac_path_SED_found && break 3 7321 done 7322 done 7323 done 7324IFS=$as_save_IFS 7325 if test -z "$ac_cv_path_SED"; then 7326 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7327 fi 7328else 7329 ac_cv_path_SED=$SED 7330fi 7331 7332fi 7333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7334$as_echo "$ac_cv_path_SED" >&6; } 7335 SED="$ac_cv_path_SED" 7336 rm -f conftest.sed 7337 7338test -z "$SED" && SED=sed 7339Xsed="$SED -e 1s/^X//" 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7352$as_echo_n "checking for fgrep... " >&6; } 7353if ${ac_cv_path_FGREP+:} false; then : 7354 $as_echo_n "(cached) " >&6 7355else 7356 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7357 then ac_cv_path_FGREP="$GREP -F" 7358 else 7359 if test -z "$FGREP"; then 7360 ac_path_FGREP_found=false 7361 # Loop through the user's path and test for each of PROGNAME-LIST 7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7363for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7364do 7365 IFS=$as_save_IFS 7366 test -z "$as_dir" && as_dir=. 7367 for ac_prog in fgrep; do 7368 for ac_exec_ext in '' $ac_executable_extensions; do 7369 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7370 as_fn_executable_p "$ac_path_FGREP" || continue 7371# Check for GNU ac_path_FGREP and select it if it is found. 7372 # Check for GNU $ac_path_FGREP 7373case `"$ac_path_FGREP" --version 2>&1` in 7374*GNU*) 7375 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7376*) 7377 ac_count=0 7378 $as_echo_n 0123456789 >"conftest.in" 7379 while : 7380 do 7381 cat "conftest.in" "conftest.in" >"conftest.tmp" 7382 mv "conftest.tmp" "conftest.in" 7383 cp "conftest.in" "conftest.nl" 7384 $as_echo 'FGREP' >> "conftest.nl" 7385 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7387 as_fn_arith $ac_count + 1 && ac_count=$as_val 7388 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7389 # Best one so far, save it but keep looking for a better one 7390 ac_cv_path_FGREP="$ac_path_FGREP" 7391 ac_path_FGREP_max=$ac_count 7392 fi 7393 # 10*(2^10) chars as input seems more than enough 7394 test $ac_count -gt 10 && break 7395 done 7396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7397esac 7398 7399 $ac_path_FGREP_found && break 3 7400 done 7401 done 7402 done 7403IFS=$as_save_IFS 7404 if test -z "$ac_cv_path_FGREP"; then 7405 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7406 fi 7407else 7408 ac_cv_path_FGREP=$FGREP 7409fi 7410 7411 fi 7412fi 7413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7414$as_echo "$ac_cv_path_FGREP" >&6; } 7415 FGREP="$ac_cv_path_FGREP" 7416 7417 7418test -z "$GREP" && GREP=grep 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7437ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7438ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7439 7440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7441$as_echo_n "checking how to print strings... " >&6; } 7442# Test print first, because it will be a builtin if present. 7443if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7444 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7445 ECHO='print -r --' 7446elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7447 ECHO='printf %s\n' 7448else 7449 # Use this function as a fallback that always works. 7450 func_fallback_echo () 7451 { 7452 eval 'cat <<_LTECHO_EOF 7453$1 7454_LTECHO_EOF' 7455 } 7456 ECHO='func_fallback_echo' 7457fi 7458 7459# func_echo_all arg... 7460# Invoke $ECHO with all args, space-separated. 7461func_echo_all () 7462{ 7463 $ECHO "" 7464} 7465 7466case "$ECHO" in 7467 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7468$as_echo "printf" >&6; } ;; 7469 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7470$as_echo "print -r" >&6; } ;; 7471 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7472$as_echo "cat" >&6; } ;; 7473esac 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490# Check whether --with-gnu-ld was given. 7491if test "${with_gnu_ld+set}" = set; then : 7492 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 7493else 7494 with_gnu_ld=no 7495fi 7496 7497ac_prog=ld 7498if test "$GCC" = yes; then 7499 # Check if gcc -print-prog-name=ld gives a path. 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7501$as_echo_n "checking for ld used by $CC... " >&6; } 7502 case $host in 7503 *-*-mingw*) 7504 # gcc leaves a trailing carriage return which upsets mingw 7505 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7506 *) 7507 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7508 esac 7509 case $ac_prog in 7510 # Accept absolute paths. 7511 [\\/]* | ?:[\\/]*) 7512 re_direlt='/[^/][^/]*/\.\./' 7513 # Canonicalize the pathname of ld 7514 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7515 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7516 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7517 done 7518 test -z "$LD" && LD="$ac_prog" 7519 ;; 7520 "") 7521 # If it fails, then pretend we aren't using GCC. 7522 ac_prog=ld 7523 ;; 7524 *) 7525 # If it is relative, then search for the first ld in PATH. 7526 with_gnu_ld=unknown 7527 ;; 7528 esac 7529elif test "$with_gnu_ld" = yes; then 7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7531$as_echo_n "checking for GNU ld... " >&6; } 7532else 7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7534$as_echo_n "checking for non-GNU ld... " >&6; } 7535fi 7536if ${lt_cv_path_LD+:} false; then : 7537 $as_echo_n "(cached) " >&6 7538else 7539 if test -z "$LD"; then 7540 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7541 for ac_dir in $PATH; do 7542 IFS="$lt_save_ifs" 7543 test -z "$ac_dir" && ac_dir=. 7544 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7545 lt_cv_path_LD="$ac_dir/$ac_prog" 7546 # Check to see if the program is GNU ld. I'd rather use --version, 7547 # but apparently some variants of GNU ld only accept -v. 7548 # Break only if it was the GNU/non-GNU ld that we prefer. 7549 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7550 *GNU* | *'with BFD'*) 7551 test "$with_gnu_ld" != no && break 7552 ;; 7553 *) 7554 test "$with_gnu_ld" != yes && break 7555 ;; 7556 esac 7557 fi 7558 done 7559 IFS="$lt_save_ifs" 7560else 7561 lt_cv_path_LD="$LD" # Let the user override the test with a path. 7562fi 7563fi 7564 7565LD="$lt_cv_path_LD" 7566if test -n "$LD"; then 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7568$as_echo "$LD" >&6; } 7569else 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7571$as_echo "no" >&6; } 7572fi 7573test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7575$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7576if ${lt_cv_prog_gnu_ld+:} false; then : 7577 $as_echo_n "(cached) " >&6 7578else 7579 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7580case `$LD -v 2>&1 </dev/null` in 7581*GNU* | *'with BFD'*) 7582 lt_cv_prog_gnu_ld=yes 7583 ;; 7584*) 7585 lt_cv_prog_gnu_ld=no 7586 ;; 7587esac 7588fi 7589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7590$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7591with_gnu_ld=$lt_cv_prog_gnu_ld 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 7603$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 7604if ${ac_cv_prog_cc_c99+:} false; then : 7605 $as_echo_n "(cached) " >&6 7606else 7607 ac_cv_prog_cc_c99=no 7608ac_save_CC=$CC 7609cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7610/* end confdefs.h. */ 7611#include <stdarg.h> 7612#include <stdbool.h> 7613#include <stdlib.h> 7614#include <wchar.h> 7615#include <stdio.h> 7616 7617// Check varargs macros. These examples are taken from C99 6.10.3.5. 7618#define debug(...) fprintf (stderr, __VA_ARGS__) 7619#define showlist(...) puts (#__VA_ARGS__) 7620#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 7621static void 7622test_varargs_macros (void) 7623{ 7624 int x = 1234; 7625 int y = 5678; 7626 debug ("Flag"); 7627 debug ("X = %d\n", x); 7628 showlist (The first, second, and third items.); 7629 report (x>y, "x is %d but y is %d", x, y); 7630} 7631 7632// Check long long types. 7633#define BIG64 18446744073709551615ull 7634#define BIG32 4294967295ul 7635#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 7636#if !BIG_OK 7637 your preprocessor is broken; 7638#endif 7639#if BIG_OK 7640#else 7641 your preprocessor is broken; 7642#endif 7643static long long int bignum = -9223372036854775807LL; 7644static unsigned long long int ubignum = BIG64; 7645 7646struct incomplete_array 7647{ 7648 int datasize; 7649 double data[]; 7650}; 7651 7652struct named_init { 7653 int number; 7654 const wchar_t *name; 7655 double average; 7656}; 7657 7658typedef const char *ccp; 7659 7660static inline int 7661test_restrict (ccp restrict text) 7662{ 7663 // See if C++-style comments work. 7664 // Iterate through items via the restricted pointer. 7665 // Also check for declarations in for loops. 7666 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 7667 continue; 7668 return 0; 7669} 7670 7671// Check varargs and va_copy. 7672static void 7673test_varargs (const char *format, ...) 7674{ 7675 va_list args; 7676 va_start (args, format); 7677 va_list args_copy; 7678 va_copy (args_copy, args); 7679 7680 const char *str; 7681 int number; 7682 float fnumber; 7683 7684 while (*format) 7685 { 7686 switch (*format++) 7687 { 7688 case 's': // string 7689 str = va_arg (args_copy, const char *); 7690 break; 7691 case 'd': // int 7692 number = va_arg (args_copy, int); 7693 break; 7694 case 'f': // float 7695 fnumber = va_arg (args_copy, double); 7696 break; 7697 default: 7698 break; 7699 } 7700 } 7701 va_end (args_copy); 7702 va_end (args); 7703} 7704 7705int 7706main () 7707{ 7708 7709 // Check bool. 7710 _Bool success = false; 7711 7712 // Check restrict. 7713 if (test_restrict ("String literal") == 0) 7714 success = true; 7715 char *restrict newvar = "Another string"; 7716 7717 // Check varargs. 7718 test_varargs ("s, d' f .", "string", 65, 34.234); 7719 test_varargs_macros (); 7720 7721 // Check flexible array members. 7722 struct incomplete_array *ia = 7723 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 7724 ia->datasize = 10; 7725 for (int i = 0; i < ia->datasize; ++i) 7726 ia->data[i] = i * 1.234; 7727 7728 // Check named initializers. 7729 struct named_init ni = { 7730 .number = 34, 7731 .name = L"Test wide string", 7732 .average = 543.34343, 7733 }; 7734 7735 ni.number = 58; 7736 7737 int dynamic_array[ni.number]; 7738 dynamic_array[ni.number - 1] = 543; 7739 7740 // work around unused variable warnings 7741 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 7742 || dynamic_array[ni.number - 1] != 543); 7743 7744 ; 7745 return 0; 7746} 7747_ACEOF 7748for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 7749do 7750 CC="$ac_save_CC $ac_arg" 7751 if ac_fn_c_try_compile "$LINENO"; then : 7752 ac_cv_prog_cc_c99=$ac_arg 7753fi 7754rm -f core conftest.err conftest.$ac_objext 7755 test "x$ac_cv_prog_cc_c99" != "xno" && break 7756done 7757rm -f conftest.$ac_ext 7758CC=$ac_save_CC 7759 7760fi 7761# AC_CACHE_VAL 7762case "x$ac_cv_prog_cc_c99" in 7763 x) 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 7765$as_echo "none needed" >&6; } ;; 7766 xno) 7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7768$as_echo "unsupported" >&6; } ;; 7769 *) 7770 CC="$CC $ac_cv_prog_cc_c99" 7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 7772$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 7773esac 7774if test "x$ac_cv_prog_cc_c99" != xno; then : 7775 7776fi 7777 7778 7779if test "x$CC" != xcc; then 7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 7781$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 7782else 7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 7784$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 7785fi 7786set dummy $CC; ac_cc=`$as_echo "$2" | 7787 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 7788if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 7789 $as_echo_n "(cached) " >&6 7790else 7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7792/* end confdefs.h. */ 7793 7794int 7795main () 7796{ 7797 7798 ; 7799 return 0; 7800} 7801_ACEOF 7802# Make sure it works both with $CC and with simple cc. 7803# We do the test twice because some compilers refuse to overwrite an 7804# existing .o file with -o, though they will create one. 7805ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 7806rm -f conftest2.* 7807if { { case "(($ac_try" in 7808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7809 *) ac_try_echo=$ac_try;; 7810esac 7811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7812$as_echo "$ac_try_echo"; } >&5 7813 (eval "$ac_try") 2>&5 7814 ac_status=$? 7815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7816 test $ac_status = 0; } && 7817 test -f conftest2.$ac_objext && { { case "(($ac_try" in 7818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7819 *) ac_try_echo=$ac_try;; 7820esac 7821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7822$as_echo "$ac_try_echo"; } >&5 7823 (eval "$ac_try") 2>&5 7824 ac_status=$? 7825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7826 test $ac_status = 0; }; 7827then 7828 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 7829 if test "x$CC" != xcc; then 7830 # Test first that cc exists at all. 7831 if { ac_try='cc -c conftest.$ac_ext >&5' 7832 { { case "(($ac_try" in 7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7834 *) ac_try_echo=$ac_try;; 7835esac 7836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7837$as_echo "$ac_try_echo"; } >&5 7838 (eval "$ac_try") 2>&5 7839 ac_status=$? 7840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7841 test $ac_status = 0; }; }; then 7842 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 7843 rm -f conftest2.* 7844 if { { case "(($ac_try" in 7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7846 *) ac_try_echo=$ac_try;; 7847esac 7848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7849$as_echo "$ac_try_echo"; } >&5 7850 (eval "$ac_try") 2>&5 7851 ac_status=$? 7852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7853 test $ac_status = 0; } && 7854 test -f conftest2.$ac_objext && { { case "(($ac_try" in 7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7856 *) ac_try_echo=$ac_try;; 7857esac 7858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7859$as_echo "$ac_try_echo"; } >&5 7860 (eval "$ac_try") 2>&5 7861 ac_status=$? 7862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7863 test $ac_status = 0; }; 7864 then 7865 # cc works too. 7866 : 7867 else 7868 # cc exists but doesn't like -o. 7869 eval ac_cv_prog_cc_${ac_cc}_c_o=no 7870 fi 7871 fi 7872 fi 7873else 7874 eval ac_cv_prog_cc_${ac_cc}_c_o=no 7875fi 7876rm -f core conftest* 7877 7878fi 7879if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7881$as_echo "yes" >&6; } 7882else 7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7884$as_echo "no" >&6; } 7885 7886$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 7887 7888fi 7889 7890# FIXME: we rely on the cache variable name because 7891# there is no other way. 7892set dummy $CC 7893am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 7894eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 7895if test "$am_t" != yes; then 7896 # Losing compiler, so override with the script. 7897 # FIXME: It is wrong to rewrite CC. 7898 # But if we don't then we get into trouble of one sort or another. 7899 # A longer-term fix would be to have automake use am__CC in this case, 7900 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 7901 CC="$am_aux_dir/compile $CC" 7902fi 7903 7904 7905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 7906$as_echo_n "checking CFLAGS for maximum warnings... " >&6; } 7907if ${ac_cv_cflags_warn_all+:} false; then : 7908 $as_echo_n "(cached) " >&6 7909else 7910 ac_cv_cflags_warn_all="no, unknown" 7911 ac_ext=c 7912ac_cpp='$CPP $CPPFLAGS' 7913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7915ac_compiler_gnu=$ac_cv_c_compiler_gnu 7916 7917 ac_save_CFLAGS="$CFLAGS" 7918for ac_arg in "-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" # 7919do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7921/* end confdefs.h. */ 7922 7923int 7924main () 7925{ 7926 7927 ; 7928 return 0; 7929} 7930_ACEOF 7931if ac_fn_c_try_compile "$LINENO"; then : 7932 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 7933fi 7934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7935done 7936 CFLAGS="$ac_save_CFLAGS" 7937 ac_ext=c 7938ac_cpp='$CPP $CPPFLAGS' 7939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7941ac_compiler_gnu=$ac_cv_c_compiler_gnu 7942 7943 7944fi 7945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 7946$as_echo "$ac_cv_cflags_warn_all" >&6; } 7947case ".$ac_cv_cflags_warn_all" in 7948 .ok|.ok,*) ;; 7949 .|.no|.no,*) 7950 ;; 7951 *) 7952 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null 7953 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5 7954 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5 7955 ac_status=$? 7956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7957 test $ac_status = 0; } 7958 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5 7959 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5 7960 ac_status=$? 7961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7962 test $ac_status = 0; } 7963 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all" 7964 fi 7965 ;; 7966esac 7967 7968AX_COMPILER_VENDOR 7969 7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 7971$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 7972set x ${MAKE-make} 7973ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 7974if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 7975 $as_echo_n "(cached) " >&6 7976else 7977 cat >conftest.make <<\_ACEOF 7978SHELL = /bin/sh 7979all: 7980 @echo '@@@%%%=$(MAKE)=@@@%%%' 7981_ACEOF 7982# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 7983case `${MAKE-make} -f conftest.make 2>/dev/null` in 7984 *@@@%%%=?*=@@@%%%*) 7985 eval ac_cv_prog_make_${ac_make}_set=yes;; 7986 *) 7987 eval ac_cv_prog_make_${ac_make}_set=no;; 7988esac 7989rm -f conftest.make 7990fi 7991if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7993$as_echo "yes" >&6; } 7994 SET_MAKE= 7995else 7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7997$as_echo "no" >&6; } 7998 SET_MAKE="MAKE=${MAKE-make}" 7999fi 8000 8001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8002$as_echo_n "checking whether ln -s works... " >&6; } 8003LN_S=$as_ln_s 8004if test "$LN_S" = "ln -s"; then 8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8006$as_echo "yes" >&6; } 8007else 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8009$as_echo "no, using $LN_S" >&6; } 8010fi 8011 8012for ac_prog in gawk mawk nawk awk 8013do 8014 # Extract the first word of "$ac_prog", so it can be a program name with args. 8015set dummy $ac_prog; ac_word=$2 8016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8017$as_echo_n "checking for $ac_word... " >&6; } 8018if ${ac_cv_prog_AWK+:} false; then : 8019 $as_echo_n "(cached) " >&6 8020else 8021 if test -n "$AWK"; then 8022 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8023else 8024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8025for as_dir in $PATH 8026do 8027 IFS=$as_save_IFS 8028 test -z "$as_dir" && as_dir=. 8029 for ac_exec_ext in '' $ac_executable_extensions; do 8030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8031 ac_cv_prog_AWK="$ac_prog" 8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8033 break 2 8034 fi 8035done 8036 done 8037IFS=$as_save_IFS 8038 8039fi 8040fi 8041AWK=$ac_cv_prog_AWK 8042if test -n "$AWK"; then 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8044$as_echo "$AWK" >&6; } 8045else 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8047$as_echo "no" >&6; } 8048fi 8049 8050 8051 test -n "$AWK" && break 8052done 8053 8054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5 8055$as_echo_n "checking if malloc debugging is wanted... " >&6; } 8056 8057# Check whether --with-dmalloc was given. 8058if test "${with_dmalloc+set}" = set; then : 8059 withval=$with_dmalloc; if test "$withval" = yes; then 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8061$as_echo "yes" >&6; } 8062 8063$as_echo "#define WITH_DMALLOC 1" >>confdefs.h 8064 8065 LIBS="$LIBS -ldmalloc" 8066 LDFLAGS="$LDFLAGS -g" 8067else 8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8069$as_echo "no" >&6; } 8070fi 8071else 8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8073$as_echo "no" >&6; } 8074fi 8075 8076 8077 8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 8079$as_echo_n "checking for __attribute__... " >&6; } 8080if ${ax_cv___attribute__+:} false; then : 8081 $as_echo_n "(cached) " >&6 8082else 8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8084/* end confdefs.h. */ 8085#include <stdlib.h> 8086 static void foo(void) __attribute__ ((__unused__)); 8087 static void 8088 foo(void) { 8089 exit(1); 8090 } 8091 8092int 8093main () 8094{ 8095 8096 ; 8097 return 0; 8098} 8099_ACEOF 8100if ac_fn_c_try_compile "$LINENO"; then : 8101 ax_cv___attribute__=yes 8102else 8103 ax_cv___attribute__=no 8104 8105fi 8106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8107 8108fi 8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5 8110$as_echo "$ax_cv___attribute__" >&6; } 8111 if test "$ax_cv___attribute__" = "yes"; then 8112 8113$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h 8114 8115 fi 8116 8117 8118 8119 8120 8121# Check whether --with-gcc-arch was given. 8122if test "${with_gcc_arch+set}" = set; then : 8123 withval=$with_gcc_arch; ax_gcc_arch=$withval 8124else 8125 ax_gcc_arch=no 8126fi 8127 8128 8129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5 8130$as_echo_n "checking for gcc architecture flag... " >&6; } 8131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 8132$as_echo "" >&6; } 8133if ${ax_cv_gcc_archflag+:} false; then : 8134 $as_echo_n "(cached) " >&6 8135else 8136 8137ax_cv_gcc_archflag="unknown" 8138 8139if test "$GCC" = yes; then 8140 8141if test "x$ax_gcc_arch" = xyes; then 8142ax_gcc_arch="" 8143if test "$cross_compiling" = no; then 8144case $host_cpu in 8145 i[3456]86*|x86_64*) # use cpuid codes 8146 8147ac_ext=c 8148ac_cpp='$CPP $CPPFLAGS' 8149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8151ac_compiler_gnu=$ac_cv_c_compiler_gnu 8152 8153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5 8154$as_echo_n "checking for x86 cpuid 0 output... " >&6; } 8155if ${ax_cv_gcc_x86_cpuid_0+:} false; then : 8156 $as_echo_n "(cached) " >&6 8157else 8158 if test "$cross_compiling" = yes; then : 8159 ax_cv_gcc_x86_cpuid_0=unknown 8160else 8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8162/* end confdefs.h. */ 8163#include <stdio.h> 8164int 8165main () 8166{ 8167 8168 int op = 0, eax, ebx, ecx, edx; 8169 FILE *f; 8170 __asm__("cpuid" 8171 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 8172 : "a" (op)); 8173 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 8174 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 8175 fclose(f); 8176 return 0; 8177 8178 ; 8179 return 0; 8180} 8181_ACEOF 8182if ac_fn_c_try_run "$LINENO"; then : 8183 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid 8184else 8185 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid 8186fi 8187rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8188 conftest.$ac_objext conftest.beam conftest.$ac_ext 8189fi 8190 8191fi 8192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5 8193$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; } 8194ac_ext=c 8195ac_cpp='$CPP $CPPFLAGS' 8196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8198ac_compiler_gnu=$ac_cv_c_compiler_gnu 8199 8200 8201 8202ac_ext=c 8203ac_cpp='$CPP $CPPFLAGS' 8204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8206ac_compiler_gnu=$ac_cv_c_compiler_gnu 8207 8208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5 8209$as_echo_n "checking for x86 cpuid 1 output... " >&6; } 8210if ${ax_cv_gcc_x86_cpuid_1+:} false; then : 8211 $as_echo_n "(cached) " >&6 8212else 8213 if test "$cross_compiling" = yes; then : 8214 ax_cv_gcc_x86_cpuid_1=unknown 8215else 8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8217/* end confdefs.h. */ 8218#include <stdio.h> 8219int 8220main () 8221{ 8222 8223 int op = 1, eax, ebx, ecx, edx; 8224 FILE *f; 8225 __asm__("cpuid" 8226 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 8227 : "a" (op)); 8228 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 8229 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 8230 fclose(f); 8231 return 0; 8232 8233 ; 8234 return 0; 8235} 8236_ACEOF 8237if ac_fn_c_try_run "$LINENO"; then : 8238 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid 8239else 8240 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid 8241fi 8242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8243 conftest.$ac_objext conftest.beam conftest.$ac_ext 8244fi 8245 8246fi 8247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5 8248$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; } 8249ac_ext=c 8250ac_cpp='$CPP $CPPFLAGS' 8251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8253ac_compiler_gnu=$ac_cv_c_compiler_gnu 8254 8255 8256 case $ax_cv_gcc_x86_cpuid_0 in 8257 *:756e6547:*:*) # Intel 8258 case $ax_cv_gcc_x86_cpuid_1 in 8259 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;; 8260 *5??:*:*:*) ax_gcc_arch=pentium ;; 8261 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; 8262 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; 8263 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; 8264 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;; 8265 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; 8266 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;; 8267 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;; 8268 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;; 8269 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;; 8270 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;; 8271 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;; 8272 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;; 8273 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*) 8274 case $host_cpu in 8275 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;; 8276 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;; 8277 esac ;; 8278 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";; 8279 esac ;; 8280 *:68747541:*:*) # AMD 8281 case $ax_cv_gcc_x86_cpuid_1 in 8282 *5[67]?:*:*:*) ax_gcc_arch=k6 ;; 8283 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;; 8284 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;; 8285 *60?:*:*:*) ax_gcc_arch=k7 ;; 8286 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;; 8287 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;; 8288 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;; 8289 *6[68a]?:*:*:*) 8290 8291ac_ext=c 8292ac_cpp='$CPP $CPPFLAGS' 8293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8295ac_compiler_gnu=$ac_cv_c_compiler_gnu 8296 8297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5 8298$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; } 8299if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then : 8300 $as_echo_n "(cached) " >&6 8301else 8302 if test "$cross_compiling" = yes; then : 8303 ax_cv_gcc_x86_cpuid_0x80000006=unknown 8304else 8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8306/* end confdefs.h. */ 8307#include <stdio.h> 8308int 8309main () 8310{ 8311 8312 int op = 0x80000006, eax, ebx, ecx, edx; 8313 FILE *f; 8314 __asm__("cpuid" 8315 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 8316 : "a" (op)); 8317 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 8318 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 8319 fclose(f); 8320 return 0; 8321 8322 ; 8323 return 0; 8324} 8325_ACEOF 8326if ac_fn_c_try_run "$LINENO"; then : 8327 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid 8328else 8329 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid 8330fi 8331rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8332 conftest.$ac_objext conftest.beam conftest.$ac_ext 8333fi 8334 8335fi 8336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5 8337$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; } 8338ac_ext=c 8339ac_cpp='$CPP $CPPFLAGS' 8340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8342ac_compiler_gnu=$ac_cv_c_compiler_gnu 8343 8344 # L2 cache size 8345 case $ax_cv_gcc_x86_cpuid_0x80000006 in 8346 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256 8347 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;; 8348 *) ax_gcc_arch="athlon-4 athlon k7" ;; 8349 esac ;; 8350 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;; 8351 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;; 8352 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;; 8353 ?00??f??:*:*:*) ax_gcc_arch="k8" ;; 8354 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;; 8355 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;; 8356 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;; 8357 esac ;; 8358 *:746e6543:*:*) # IDT 8359 case $ax_cv_gcc_x86_cpuid_1 in 8360 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;; 8361 *58?:*:*:*) ax_gcc_arch=winchip2 ;; 8362 *6[78]?:*:*:*) ax_gcc_arch=c3 ;; 8363 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;; 8364 esac ;; 8365 esac 8366 if test x"$ax_gcc_arch" = x; then # fallback 8367 case $host_cpu in 8368 i586*) ax_gcc_arch=pentium ;; 8369 i686*) ax_gcc_arch=pentiumpro ;; 8370 esac 8371 fi 8372 ;; 8373 8374 sparc*) 8375 # Extract the first word of "prtdiag", so it can be a program name with args. 8376set dummy prtdiag; ac_word=$2 8377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8378$as_echo_n "checking for $ac_word... " >&6; } 8379if ${ac_cv_path_PRTDIAG+:} false; then : 8380 $as_echo_n "(cached) " >&6 8381else 8382 case $PRTDIAG in 8383 [\\/]* | ?:[\\/]*) 8384 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path. 8385 ;; 8386 *) 8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8388as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/" 8389for as_dir in $as_dummy 8390do 8391 IFS=$as_save_IFS 8392 test -z "$as_dir" && as_dir=. 8393 for ac_exec_ext in '' $ac_executable_extensions; do 8394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8395 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext" 8396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8397 break 2 8398 fi 8399done 8400 done 8401IFS=$as_save_IFS 8402 8403 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag" 8404 ;; 8405esac 8406fi 8407PRTDIAG=$ac_cv_path_PRTDIAG 8408if test -n "$PRTDIAG"; then 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5 8410$as_echo "$PRTDIAG" >&6; } 8411else 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8413$as_echo "no" >&6; } 8414fi 8415 8416 8417 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` 8418 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters` 8419 case $cputype in 8420 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;; 8421 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;; 8422 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;; 8423 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;; 8424 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;; 8425 *cypress*) ax_gcc_arch=cypress ;; 8426 esac ;; 8427 8428 alphaev5) ax_gcc_arch=ev5 ;; 8429 alphaev56) ax_gcc_arch=ev56 ;; 8430 alphapca56) ax_gcc_arch="pca56 ev56" ;; 8431 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;; 8432 alphaev6) ax_gcc_arch=ev6 ;; 8433 alphaev67) ax_gcc_arch=ev67 ;; 8434 alphaev68) ax_gcc_arch="ev68 ev67" ;; 8435 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;; 8436 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;; 8437 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;; 8438 8439 powerpc*) 8440 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` 8441 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'` 8442 case $cputype in 8443 *750*) ax_gcc_arch="750 G3" ;; 8444 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;; 8445 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;; 8446 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;; 8447 *970*) ax_gcc_arch="970 G5 power4";; 8448 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";; 8449 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";; 8450 603ev|8240) ax_gcc_arch="$cputype 603e 603";; 8451 *) ax_gcc_arch=$cputype ;; 8452 esac 8453 ax_gcc_arch="$ax_gcc_arch powerpc" 8454 ;; 8455esac 8456fi # not cross-compiling 8457fi # guess arch 8458 8459if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then 8460for arch in $ax_gcc_arch; do 8461 if test "xno" = xyes; then # if we require portable code 8462 flags="-mtune=$arch" 8463 # -mcpu=$arch and m$arch generate nonportable code on every arch except 8464 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr. 8465 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac 8466 else 8467 flags="-march=$arch -mcpu=$arch -m$arch" 8468 fi 8469 for flag in $flags; do 8470 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 8471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 8472$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 8473if eval \${$as_CACHEVAR+:} false; then : 8474 $as_echo_n "(cached) " >&6 8475else 8476 8477 ax_check_save_flags=$CFLAGS 8478 CFLAGS="$CFLAGS $flag" 8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8480/* end confdefs.h. */ 8481 8482int 8483main () 8484{ 8485 8486 ; 8487 return 0; 8488} 8489_ACEOF 8490if ac_fn_c_try_compile "$LINENO"; then : 8491 eval "$as_CACHEVAR=yes" 8492else 8493 eval "$as_CACHEVAR=no" 8494fi 8495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8496 CFLAGS=$ax_check_save_flags 8497fi 8498eval ac_res=\$$as_CACHEVAR 8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8500$as_echo "$ac_res" >&6; } 8501if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : 8502 ax_cv_gcc_archflag=$flag; break 8503else 8504 : 8505fi 8506 8507 done 8508 test "x$ax_cv_gcc_archflag" = xunknown || break 8509done 8510fi 8511 8512fi # $GCC=yes 8513 8514fi 8515 8516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5 8517$as_echo_n "checking for gcc architecture flag... " >&6; } 8518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5 8519$as_echo "$ax_cv_gcc_archflag" >&6; } 8520if test "x$ax_cv_gcc_archflag" = xunknown; then 8521 : 8522else 8523 CFLAGS="$CFLAGS $ax_cv_gcc_archflag" 8524fi 8525 8526 8527 8528if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 8529 if test -n "$ac_tool_prefix"; then 8530 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 8531set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 8532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8533$as_echo_n "checking for $ac_word... " >&6; } 8534if ${ac_cv_path_PKG_CONFIG+:} false; then : 8535 $as_echo_n "(cached) " >&6 8536else 8537 case $PKG_CONFIG in 8538 [\\/]* | ?:[\\/]*) 8539 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8540 ;; 8541 *) 8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8543for as_dir in $PATH 8544do 8545 IFS=$as_save_IFS 8546 test -z "$as_dir" && as_dir=. 8547 for ac_exec_ext in '' $ac_executable_extensions; do 8548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8549 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8551 break 2 8552 fi 8553done 8554 done 8555IFS=$as_save_IFS 8556 8557 ;; 8558esac 8559fi 8560PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8561if test -n "$PKG_CONFIG"; then 8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 8563$as_echo "$PKG_CONFIG" >&6; } 8564else 8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8566$as_echo "no" >&6; } 8567fi 8568 8569 8570fi 8571if test -z "$ac_cv_path_PKG_CONFIG"; then 8572 ac_pt_PKG_CONFIG=$PKG_CONFIG 8573 # Extract the first word of "pkg-config", so it can be a program name with args. 8574set dummy pkg-config; ac_word=$2 8575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8576$as_echo_n "checking for $ac_word... " >&6; } 8577if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 8578 $as_echo_n "(cached) " >&6 8579else 8580 case $ac_pt_PKG_CONFIG in 8581 [\\/]* | ?:[\\/]*) 8582 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 8583 ;; 8584 *) 8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8586for as_dir in $PATH 8587do 8588 IFS=$as_save_IFS 8589 test -z "$as_dir" && as_dir=. 8590 for ac_exec_ext in '' $ac_executable_extensions; do 8591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8592 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8594 break 2 8595 fi 8596done 8597 done 8598IFS=$as_save_IFS 8599 8600 ;; 8601esac 8602fi 8603ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 8604if test -n "$ac_pt_PKG_CONFIG"; then 8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 8606$as_echo "$ac_pt_PKG_CONFIG" >&6; } 8607else 8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8609$as_echo "no" >&6; } 8610fi 8611 8612 if test "x$ac_pt_PKG_CONFIG" = x; then 8613 PKG_CONFIG="" 8614 else 8615 case $cross_compiling:$ac_tool_warned in 8616yes:) 8617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8619ac_tool_warned=yes ;; 8620esac 8621 PKG_CONFIG=$ac_pt_PKG_CONFIG 8622 fi 8623else 8624 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 8625fi 8626 8627fi 8628if test -n "$PKG_CONFIG"; then 8629 _pkg_min_version=0.9.0 8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 8631$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 8632 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8634$as_echo "yes" >&6; } 8635 else 8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8637$as_echo "no" >&6; } 8638 PKG_CONFIG="" 8639 fi 8640 8641fi 8642 8643# Check for linker script support 8644 8645 # Check whether --enable-ld-version-script was given. 8646if test "${enable_ld_version_script+set}" = set; then : 8647 enableval=$enable_ld_version_script; have_ld_version_script=$enableval 8648fi 8649 8650 if test -z "$have_ld_version_script"; then 8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5 8652$as_echo_n "checking if LD -Wl,--version-script works... " >&6; } 8653 save_LDFLAGS="$LDFLAGS" 8654 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" 8655 cat > conftest.map <<EOF 8656foo 8657EOF 8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8659/* end confdefs.h. */ 8660 8661int 8662main () 8663{ 8664 8665 ; 8666 return 0; 8667} 8668_ACEOF 8669if ac_fn_c_try_link "$LINENO"; then : 8670 accepts_syntax_errors=yes 8671else 8672 accepts_syntax_errors=no 8673fi 8674rm -f core conftest.err conftest.$ac_objext \ 8675 conftest$ac_exeext conftest.$ac_ext 8676 if test "$accepts_syntax_errors" = no; then 8677 cat > conftest.map <<EOF 8678VERS_1 { 8679 global: sym; 8680}; 8681 8682VERS_2 { 8683 global: sym; 8684} VERS_1; 8685EOF 8686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8687/* end confdefs.h. */ 8688 8689int 8690main () 8691{ 8692 8693 ; 8694 return 0; 8695} 8696_ACEOF 8697if ac_fn_c_try_link "$LINENO"; then : 8698 have_ld_version_script=yes 8699else 8700 have_ld_version_script=no 8701fi 8702rm -f core conftest.err conftest.$ac_objext \ 8703 conftest$ac_exeext conftest.$ac_ext 8704 else 8705 have_ld_version_script=no 8706 fi 8707 rm -f conftest.map 8708 LDFLAGS="$save_LDFLAGS" 8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5 8710$as_echo "$have_ld_version_script" >&6; } 8711 fi 8712 if test "$have_ld_version_script" = "yes"; then 8713 HAVE_LD_VERSION_SCRIPT_TRUE= 8714 HAVE_LD_VERSION_SCRIPT_FALSE='#' 8715else 8716 HAVE_LD_VERSION_SCRIPT_TRUE='#' 8717 HAVE_LD_VERSION_SCRIPT_FALSE= 8718fi 8719 8720 8721 8722# 8723# Enable run-time checking. 8724# 8725# Check whether --enable-bounds-checking was given. 8726if test "${enable_bounds_checking+set}" = set; then : 8727 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval 8728else 8729 enable_bounds_checking='no' 8730fi 8731 8732 8733if test "$enable_bounds_checking" = yes; then 8734 8735$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h 8736 8737fi 8738 8739# 8740# Tests for Windows 8741# 8742 8743 8744 8745GDI32_LIBS='' 8746native_win32_build='no' 8747cygwin_build='no' 8748case "${host_os}" in 8749 cygwin* ) 8750 cygwin_build='yes' 8751 GDI32_LIBS='-lgdi32' 8752 ;; 8753 mingw* ) 8754 native_win32_build='yes' 8755 GDI32_LIBS='-lgdi32' 8756 ;; 8757esac 8758if test "${GDI32_LIBS}x" != 'x'; then 8759 8760$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h 8761 8762fi 8763 8764 if test "${GDI32_LIBS}x" != 'x' ; then 8765 WINGDI32_DELEGATE_TRUE= 8766 WINGDI32_DELEGATE_FALSE='#' 8767else 8768 WINGDI32_DELEGATE_TRUE='#' 8769 WINGDI32_DELEGATE_FALSE= 8770fi 8771 8772 if test "${native_win32_build}" = 'yes' ; then 8773 WIN32_NATIVE_BUILD_TRUE= 8774 WIN32_NATIVE_BUILD_FALSE='#' 8775else 8776 WIN32_NATIVE_BUILD_TRUE='#' 8777 WIN32_NATIVE_BUILD_FALSE= 8778fi 8779 8780 if test "${cygwin_build}" = 'yes' ; then 8781 CYGWIN_BUILD_TRUE= 8782 CYGWIN_BUILD_FALSE='#' 8783else 8784 CYGWIN_BUILD_TRUE='#' 8785 CYGWIN_BUILD_FALSE= 8786fi 8787 8788 if test "x${CC}" = 'xcl.exe' ; then 8789 USING_CL_TRUE= 8790 USING_CL_FALSE='#' 8791else 8792 USING_CL_TRUE='#' 8793 USING_CL_FALSE= 8794fi 8795 8796 8797WinPathScript="${srcdirfull}/winpath.sh" 8798 8799 8800# 8801# Compiler flags tweaks 8802# 8803if test "${GCC}" != "yes"; then 8804 case "${host}" in 8805 *-*-hpux* ) 8806 # aCC: HP ANSI C++ B3910B A.03.34 8807 CFLAGS="${CFLAGS} -Wp,-H30000" 8808 if test -n "${CXXFLAGS}"; then 8809 CXXFLAGS='-AA' 8810 else 8811 CXXFLAGS="${CXXFLAGS} -AA" 8812 fi 8813 ;; 8814 *-dec-osf5.* ) 8815 # Compaq alphaev68-dec-osf5.1 compiler 8816 if test -n "${CXXFLAGS}"; then 8817 CXXFLAGS='-std strict_ansi -noimplicit_include' 8818 else 8819 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include" 8820 fi 8821 esac 8822fi 8823 8824# Check for lazy-loading. 8825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5 8826$as_echo_n "checking for linker lazyload option... " >&6; } 8827if ${im_cv_ld_lazyload+:} false; then : 8828 $as_echo_n "(cached) " >&6 8829else 8830 8831im_cv_ld_lazyload='none' 8832case "${host}" in 8833 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? ) 8834 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then 8835 im_cv_ld_lazyload='-Wl,-zlazyload' 8836 fi 8837 ;; 8838esac 8839 8840fi 8841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5 8842$as_echo "$im_cv_ld_lazyload" >&6; } 8843if test "${im_cv_ld_lazyload}" != 'none' ; then 8844 if test -z "${LDFLAGS}" ; then 8845 LDFLAGS="${im_cv_ld_lazyload}" 8846 else 8847 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}" 8848 fi 8849fi 8850 8851case "$host" in 8852*darwin* | *-macos10*) 8853 # Check whether --enable-osx-universal-binary was given. 8854if test "${enable_osx_universal_binary+set}" = set; then : 8855 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}" 8856else 8857 build_osxuniversal=no 8858fi 8859 8860 8861 if test "${build_osxuniversal}" != no ; then 8862 if test "$enable_dependency_tracking" != no ; then 8863 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking. 8864Please re-run configure with these options: 8865 --disable-dependency-tracking --enable-osx-universal-binary 8866 " "$LINENO" 5 8867 fi 8868 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" 8869 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" 8870 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" 8871 fi 8872 ;; 8873esac 8874 8875# 8876# ARCH specific include directory 8877# 8878 8879# Check whether --with-includearch-dir was given. 8880if test "${with_includearch_dir+set}" = set; then : 8881 withval=$with_includearch_dir; includearch_dir=$withval 8882else 8883 includearch_dir=$INCLUDE_DIR 8884fi 8885 8886 8887eval "eval INCLUDEARCH_DIR=$includearch_dir" 8888 8889 8890# 8891# ARCH specific configuration directory 8892# 8893 8894# Check whether --with-sharearch-dir was given. 8895if test "${with_sharearch_dir+set}" = set; then : 8896 withval=$with_sharearch_dir; sharearch_dir=$withval 8897else 8898 sharearch_dir="${LIB_DIR}" 8899fi 8900 8901 8902eval "eval SHAREARCH_DIR=$sharearch_dir" 8903SHAREARCH_DIR="$sharearch_dir" 8904 8905 8906# 8907# Enable support for threads 8908 8909# Check whether --with-threads was given. 8910if test "${with_threads+set}" = set; then : 8911 withval=$with_threads; with_threads=$withval 8912else 8913 with_threads='yes' 8914fi 8915 8916 8917have_threads=no 8918if test "$with_threads" != 'no'; then 8919 8920 8921ac_ext=c 8922ac_cpp='$CPP $CPPFLAGS' 8923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8925ac_compiler_gnu=$ac_cv_c_compiler_gnu 8926 8927ax_pthread_ok=no 8928 8929# We used to check for pthread.h first, but this fails if pthread.h 8930# requires special compiler flags (e.g. on True64 or Sequent). 8931# It gets checked for in the link test anyway. 8932 8933# First of all, check if the user has set any of the PTHREAD_LIBS, 8934# etcetera environment variables, and if threads linking works using 8935# them: 8936if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 8937 save_CFLAGS="$CFLAGS" 8938 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 8939 save_LIBS="$LIBS" 8940 LIBS="$PTHREAD_LIBS $LIBS" 8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 8942$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8944/* end confdefs.h. */ 8945 8946/* Override any GCC internal prototype to avoid an error. 8947 Use char because int might match the return type of a GCC 8948 builtin and then its argument prototype would still apply. */ 8949#ifdef __cplusplus 8950extern "C" 8951#endif 8952char pthread_join (); 8953int 8954main () 8955{ 8956return pthread_join (); 8957 ; 8958 return 0; 8959} 8960_ACEOF 8961if ac_fn_c_try_link "$LINENO"; then : 8962 ax_pthread_ok=yes 8963fi 8964rm -f core conftest.err conftest.$ac_objext \ 8965 conftest$ac_exeext conftest.$ac_ext 8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 8967$as_echo "$ax_pthread_ok" >&6; } 8968 if test x"$ax_pthread_ok" = xno; then 8969 PTHREAD_LIBS="" 8970 PTHREAD_CFLAGS="" 8971 fi 8972 LIBS="$save_LIBS" 8973 CFLAGS="$save_CFLAGS" 8974fi 8975 8976# We must check for the threads library under a number of different 8977# names; the ordering is very important because some systems 8978# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 8979# libraries is broken (non-POSIX). 8980 8981# Create a list of thread flags to try. Items starting with a "-" are 8982# C compiler flags, and other items are library names, except for "none" 8983# which indicates that we try without any flags at all, and "pthread-config" 8984# which is a program returning the flags for the Pth emulation library. 8985 8986ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config" 8987 8988# The ordering *is* (sometimes) important. Some notes on the 8989# individual items follow: 8990 8991# pthreads: AIX (must check this before -lpthread) 8992# none: in case threads are in libc; should be tried before -Kthread and 8993# other compiler flags to prevent continual compiler warnings 8994# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 8995# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 8996# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 8997# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 8998# -pthreads: Solaris/gcc 8999# -mthreads: Mingw32/gcc, Lynx/gcc 9000# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 9001# doesn't hurt to check since this sometimes defines pthreads too; 9002# also defines -D_REENTRANT) 9003# ... -mt is also the pthreads flag for HP/aCC 9004# pthread: Linux, etcetera 9005# --thread-safe: KAI C++ 9006# pthread-config: use pthread-config program (for GNU Pth library) 9007 9008case "${host_cpu}-${host_os}" in 9009 *solaris*) 9010 9011 # On Solaris (at least, for some versions), libc contains stubbed 9012 # (non-functional) versions of the pthreads routines, so link-based 9013 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 9014 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 9015 # a function called by this macro, so we could check for that, but 9016 # who knows whether they'll stub that too in a future libc.) So, 9017 # we'll just look for -pthreads and -lpthread first: 9018 9019 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 9020 ;; 9021 9022 *-darwin*) 9023 ax_pthread_flags="-pthread $ax_pthread_flags" 9024 ;; 9025esac 9026 9027if test x"$ax_pthread_ok" = xno; then 9028for flag in $ax_pthread_flags; do 9029 9030 case $flag in 9031 none) 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 9033$as_echo_n "checking whether pthreads work without any flags... " >&6; } 9034 ;; 9035 9036 -*) 9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 9038$as_echo_n "checking whether pthreads work with $flag... " >&6; } 9039 PTHREAD_CFLAGS="$flag" 9040 ;; 9041 9042 pthread-config) 9043 # Extract the first word of "pthread-config", so it can be a program name with args. 9044set dummy pthread-config; ac_word=$2 9045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9046$as_echo_n "checking for $ac_word... " >&6; } 9047if ${ac_cv_prog_ax_pthread_config+:} false; then : 9048 $as_echo_n "(cached) " >&6 9049else 9050 if test -n "$ax_pthread_config"; then 9051 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 9052else 9053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9054for as_dir in $PATH 9055do 9056 IFS=$as_save_IFS 9057 test -z "$as_dir" && as_dir=. 9058 for ac_exec_ext in '' $ac_executable_extensions; do 9059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9060 ac_cv_prog_ax_pthread_config="yes" 9061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9062 break 2 9063 fi 9064done 9065 done 9066IFS=$as_save_IFS 9067 9068 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 9069fi 9070fi 9071ax_pthread_config=$ac_cv_prog_ax_pthread_config 9072if test -n "$ax_pthread_config"; then 9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 9074$as_echo "$ax_pthread_config" >&6; } 9075else 9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9077$as_echo "no" >&6; } 9078fi 9079 9080 9081 if test x"$ax_pthread_config" = xno; then continue; fi 9082 PTHREAD_CFLAGS="`pthread-config --cflags`" 9083 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 9084 ;; 9085 9086 *) 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 9088$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 9089 PTHREAD_LIBS="-l$flag" 9090 ;; 9091 esac 9092 9093 save_LIBS="$LIBS" 9094 save_CFLAGS="$CFLAGS" 9095 LIBS="$PTHREAD_LIBS $LIBS" 9096 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9097 9098 # Check for various functions. We must include pthread.h, 9099 # since some functions may be macros. (On the Sequent, we 9100 # need a special flag -Kthread to make this header compile.) 9101 # We check for pthread_join because it is in -lpthread on IRIX 9102 # while pthread_create is in libc. We check for pthread_attr_init 9103 # due to DEC craziness with -lpthreads. We check for 9104 # pthread_cleanup_push because it is one of the few pthread 9105 # functions on Solaris that doesn't have a non-functional libc stub. 9106 # We try pthread_create on general principles. 9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9108/* end confdefs.h. */ 9109#include <pthread.h> 9110 static void routine(void *a) { a = 0; } 9111 static void *start_routine(void *a) { return a; } 9112int 9113main () 9114{ 9115pthread_t th; pthread_attr_t attr; 9116 pthread_create(&th, 0, start_routine, 0); 9117 pthread_join(th, 0); 9118 pthread_attr_init(&attr); 9119 pthread_cleanup_push(routine, 0); 9120 pthread_cleanup_pop(0) /* ; */ 9121 ; 9122 return 0; 9123} 9124_ACEOF 9125if ac_fn_c_try_link "$LINENO"; then : 9126 ax_pthread_ok=yes 9127fi 9128rm -f core conftest.err conftest.$ac_objext \ 9129 conftest$ac_exeext conftest.$ac_ext 9130 9131 LIBS="$save_LIBS" 9132 CFLAGS="$save_CFLAGS" 9133 9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 9135$as_echo "$ax_pthread_ok" >&6; } 9136 if test "x$ax_pthread_ok" = xyes; then 9137 break; 9138 fi 9139 9140 PTHREAD_LIBS="" 9141 PTHREAD_CFLAGS="" 9142done 9143fi 9144 9145# Various other checks: 9146if test "x$ax_pthread_ok" = xyes; then 9147 save_LIBS="$LIBS" 9148 LIBS="$PTHREAD_LIBS $LIBS" 9149 save_CFLAGS="$CFLAGS" 9150 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9151 9152 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 9154$as_echo_n "checking for joinable pthread attribute... " >&6; } 9155 attr_name=unknown 9156 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9158/* end confdefs.h. */ 9159#include <pthread.h> 9160int 9161main () 9162{ 9163int attr = $attr; return attr /* ; */ 9164 ; 9165 return 0; 9166} 9167_ACEOF 9168if ac_fn_c_try_link "$LINENO"; then : 9169 attr_name=$attr; break 9170fi 9171rm -f core conftest.err conftest.$ac_objext \ 9172 conftest$ac_exeext conftest.$ac_ext 9173 done 9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 9175$as_echo "$attr_name" >&6; } 9176 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 9177 9178cat >>confdefs.h <<_ACEOF 9179#define PTHREAD_CREATE_JOINABLE $attr_name 9180_ACEOF 9181 9182 fi 9183 9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 9185$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 9186 flag=no 9187 case "${host_cpu}-${host_os}" in 9188 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 9189 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 9190 esac 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 9192$as_echo "${flag}" >&6; } 9193 if test "x$flag" != xno; then 9194 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 9195 fi 9196 9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 9198$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 9199if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 9200 $as_echo_n "(cached) " >&6 9201else 9202 9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9204/* end confdefs.h. */ 9205 9206 #include <pthread.h> 9207int 9208main () 9209{ 9210int i = PTHREAD_PRIO_INHERIT; 9211 ; 9212 return 0; 9213} 9214_ACEOF 9215if ac_fn_c_try_link "$LINENO"; then : 9216 ax_cv_PTHREAD_PRIO_INHERIT=yes 9217else 9218 ax_cv_PTHREAD_PRIO_INHERIT=no 9219fi 9220rm -f core conftest.err conftest.$ac_objext \ 9221 conftest$ac_exeext conftest.$ac_ext 9222 9223fi 9224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 9225$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 9226 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 9227 9228$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 9229 9230fi 9231 9232 LIBS="$save_LIBS" 9233 CFLAGS="$save_CFLAGS" 9234 9235 # More AIX lossage: must compile with xlc_r or cc_r 9236 if test x"$GCC" != xyes; then 9237 for ac_prog in xlc_r cc_r 9238do 9239 # Extract the first word of "$ac_prog", so it can be a program name with args. 9240set dummy $ac_prog; ac_word=$2 9241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9242$as_echo_n "checking for $ac_word... " >&6; } 9243if ${ac_cv_prog_PTHREAD_CC+:} false; then : 9244 $as_echo_n "(cached) " >&6 9245else 9246 if test -n "$PTHREAD_CC"; then 9247 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 9248else 9249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9250for as_dir in $PATH 9251do 9252 IFS=$as_save_IFS 9253 test -z "$as_dir" && as_dir=. 9254 for ac_exec_ext in '' $ac_executable_extensions; do 9255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9256 ac_cv_prog_PTHREAD_CC="$ac_prog" 9257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9258 break 2 9259 fi 9260done 9261 done 9262IFS=$as_save_IFS 9263 9264fi 9265fi 9266PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 9267if test -n "$PTHREAD_CC"; then 9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 9269$as_echo "$PTHREAD_CC" >&6; } 9270else 9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9272$as_echo "no" >&6; } 9273fi 9274 9275 9276 test -n "$PTHREAD_CC" && break 9277done 9278test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 9279 9280 else 9281 PTHREAD_CC=$CC 9282 fi 9283else 9284 PTHREAD_CC="$CC" 9285fi 9286 9287 9288 9289 9290 9291# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 9292if test x"$ax_pthread_ok" = xyes; then 9293 9294$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 9295 9296 : 9297else 9298 ax_pthread_ok=no 9299 9300fi 9301ac_ext=c 9302ac_cpp='$CPP $CPPFLAGS' 9303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9305ac_compiler_gnu=$ac_cv_c_compiler_gnu 9306 9307 9308 if test "$ax_pthread_ok" = yes; then 9309 have_threads=yes 9310 DEF_THREAD="$PTHREAD_CFLAGS" 9311 CFLAGS="$CFLAGS $DEF_THREAD" 9312 CXXFLAGS="$CXXFLAGS $DEF_THREAD" 9313 if test "$CC" != "$PTHREAD_CC"; then 9314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5 9315$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;} 9316 CC="$PTHREAD_CC" 9317 fi 9318 9319$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h 9320 9321 fi 9322fi 9323 9324# Enable support for OpenMP 9325if test "$have_threads" != 'yes'; then 9326 ac_cv_prog_c_openmp=unsupported 9327fi 9328 9329 OPENMP_CFLAGS= 9330 # Check whether --enable-openmp was given. 9331if test "${enable_openmp+set}" = set; then : 9332 enableval=$enable_openmp; 9333fi 9334 9335 if test "$enable_openmp" != no; then 9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5 9337$as_echo_n "checking for $CC option to support OpenMP... " >&6; } 9338if ${ac_cv_prog_c_openmp+:} false; then : 9339 $as_echo_n "(cached) " >&6 9340else 9341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9342/* end confdefs.h. */ 9343 9344#ifndef _OPENMP 9345 choke me 9346#endif 9347#include <omp.h> 9348int main () { return omp_get_num_threads (); } 9349 9350_ACEOF 9351if ac_fn_c_try_link "$LINENO"; then : 9352 ac_cv_prog_c_openmp='none needed' 9353else 9354 ac_cv_prog_c_openmp='unsupported' 9355 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \ 9356 -Popenmp --openmp; do 9357 ac_save_CFLAGS=$CFLAGS 9358 CFLAGS="$CFLAGS $ac_option" 9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9360/* end confdefs.h. */ 9361 9362#ifndef _OPENMP 9363 choke me 9364#endif 9365#include <omp.h> 9366int main () { return omp_get_num_threads (); } 9367 9368_ACEOF 9369if ac_fn_c_try_link "$LINENO"; then : 9370 ac_cv_prog_c_openmp=$ac_option 9371fi 9372rm -f core conftest.err conftest.$ac_objext \ 9373 conftest$ac_exeext conftest.$ac_ext 9374 CFLAGS=$ac_save_CFLAGS 9375 if test "$ac_cv_prog_c_openmp" != unsupported; then 9376 break 9377 fi 9378 done 9379fi 9380rm -f core conftest.err conftest.$ac_objext \ 9381 conftest$ac_exeext conftest.$ac_ext 9382fi 9383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5 9384$as_echo "$ac_cv_prog_c_openmp" >&6; } 9385 case $ac_cv_prog_c_openmp in #( 9386 "none needed" | unsupported) 9387 ;; #( 9388 *) 9389 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;; 9390 esac 9391 fi 9392 9393 9394CFLAGS="$OPENMP_CFLAGS $CFLAGS" 9395MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS" 9396 9397if test "$enable_openmp" != no; then 9398 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then 9399 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES" 9400 fi 9401fi 9402 9403# Enable support for OpenCL 9404 9405 9406ac_ext=c 9407ac_cpp='$CPP $CPPFLAGS' 9408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9410ac_compiler_gnu=$ac_cv_c_compiler_gnu 9411 9412ax_pthread_ok=no 9413 9414# We used to check for pthread.h first, but this fails if pthread.h 9415# requires special compiler flags (e.g. on True64 or Sequent). 9416# It gets checked for in the link test anyway. 9417 9418# First of all, check if the user has set any of the PTHREAD_LIBS, 9419# etcetera environment variables, and if threads linking works using 9420# them: 9421if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 9422 save_CFLAGS="$CFLAGS" 9423 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9424 save_LIBS="$LIBS" 9425 LIBS="$PTHREAD_LIBS $LIBS" 9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 9427$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9429/* end confdefs.h. */ 9430 9431/* Override any GCC internal prototype to avoid an error. 9432 Use char because int might match the return type of a GCC 9433 builtin and then its argument prototype would still apply. */ 9434#ifdef __cplusplus 9435extern "C" 9436#endif 9437char pthread_join (); 9438int 9439main () 9440{ 9441return pthread_join (); 9442 ; 9443 return 0; 9444} 9445_ACEOF 9446if ac_fn_c_try_link "$LINENO"; then : 9447 ax_pthread_ok=yes 9448fi 9449rm -f core conftest.err conftest.$ac_objext \ 9450 conftest$ac_exeext conftest.$ac_ext 9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 9452$as_echo "$ax_pthread_ok" >&6; } 9453 if test x"$ax_pthread_ok" = xno; then 9454 PTHREAD_LIBS="" 9455 PTHREAD_CFLAGS="" 9456 fi 9457 LIBS="$save_LIBS" 9458 CFLAGS="$save_CFLAGS" 9459fi 9460 9461# We must check for the threads library under a number of different 9462# names; the ordering is very important because some systems 9463# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 9464# libraries is broken (non-POSIX). 9465 9466# Create a list of thread flags to try. Items starting with a "-" are 9467# C compiler flags, and other items are library names, except for "none" 9468# which indicates that we try without any flags at all, and "pthread-config" 9469# which is a program returning the flags for the Pth emulation library. 9470 9471ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config" 9472 9473# The ordering *is* (sometimes) important. Some notes on the 9474# individual items follow: 9475 9476# pthreads: AIX (must check this before -lpthread) 9477# none: in case threads are in libc; should be tried before -Kthread and 9478# other compiler flags to prevent continual compiler warnings 9479# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 9480# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 9481# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 9482# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 9483# -pthreads: Solaris/gcc 9484# -mthreads: Mingw32/gcc, Lynx/gcc 9485# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 9486# doesn't hurt to check since this sometimes defines pthreads too; 9487# also defines -D_REENTRANT) 9488# ... -mt is also the pthreads flag for HP/aCC 9489# pthread: Linux, etcetera 9490# --thread-safe: KAI C++ 9491# pthread-config: use pthread-config program (for GNU Pth library) 9492 9493case "${host_cpu}-${host_os}" in 9494 *solaris*) 9495 9496 # On Solaris (at least, for some versions), libc contains stubbed 9497 # (non-functional) versions of the pthreads routines, so link-based 9498 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 9499 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 9500 # a function called by this macro, so we could check for that, but 9501 # who knows whether they'll stub that too in a future libc.) So, 9502 # we'll just look for -pthreads and -lpthread first: 9503 9504 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 9505 ;; 9506 9507 *-darwin*) 9508 ax_pthread_flags="-pthread $ax_pthread_flags" 9509 ;; 9510esac 9511 9512if test x"$ax_pthread_ok" = xno; then 9513for flag in $ax_pthread_flags; do 9514 9515 case $flag in 9516 none) 9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 9518$as_echo_n "checking whether pthreads work without any flags... " >&6; } 9519 ;; 9520 9521 -*) 9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 9523$as_echo_n "checking whether pthreads work with $flag... " >&6; } 9524 PTHREAD_CFLAGS="$flag" 9525 ;; 9526 9527 pthread-config) 9528 # Extract the first word of "pthread-config", so it can be a program name with args. 9529set dummy pthread-config; ac_word=$2 9530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9531$as_echo_n "checking for $ac_word... " >&6; } 9532if ${ac_cv_prog_ax_pthread_config+:} false; then : 9533 $as_echo_n "(cached) " >&6 9534else 9535 if test -n "$ax_pthread_config"; then 9536 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 9537else 9538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9539for as_dir in $PATH 9540do 9541 IFS=$as_save_IFS 9542 test -z "$as_dir" && as_dir=. 9543 for ac_exec_ext in '' $ac_executable_extensions; do 9544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9545 ac_cv_prog_ax_pthread_config="yes" 9546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9547 break 2 9548 fi 9549done 9550 done 9551IFS=$as_save_IFS 9552 9553 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 9554fi 9555fi 9556ax_pthread_config=$ac_cv_prog_ax_pthread_config 9557if test -n "$ax_pthread_config"; then 9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 9559$as_echo "$ax_pthread_config" >&6; } 9560else 9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9562$as_echo "no" >&6; } 9563fi 9564 9565 9566 if test x"$ax_pthread_config" = xno; then continue; fi 9567 PTHREAD_CFLAGS="`pthread-config --cflags`" 9568 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 9569 ;; 9570 9571 *) 9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 9573$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 9574 PTHREAD_LIBS="-l$flag" 9575 ;; 9576 esac 9577 9578 save_LIBS="$LIBS" 9579 save_CFLAGS="$CFLAGS" 9580 LIBS="$PTHREAD_LIBS $LIBS" 9581 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9582 9583 # Check for various functions. We must include pthread.h, 9584 # since some functions may be macros. (On the Sequent, we 9585 # need a special flag -Kthread to make this header compile.) 9586 # We check for pthread_join because it is in -lpthread on IRIX 9587 # while pthread_create is in libc. We check for pthread_attr_init 9588 # due to DEC craziness with -lpthreads. We check for 9589 # pthread_cleanup_push because it is one of the few pthread 9590 # functions on Solaris that doesn't have a non-functional libc stub. 9591 # We try pthread_create on general principles. 9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9593/* end confdefs.h. */ 9594#include <pthread.h> 9595 static void routine(void *a) { a = 0; } 9596 static void *start_routine(void *a) { return a; } 9597int 9598main () 9599{ 9600pthread_t th; pthread_attr_t attr; 9601 pthread_create(&th, 0, start_routine, 0); 9602 pthread_join(th, 0); 9603 pthread_attr_init(&attr); 9604 pthread_cleanup_push(routine, 0); 9605 pthread_cleanup_pop(0) /* ; */ 9606 ; 9607 return 0; 9608} 9609_ACEOF 9610if ac_fn_c_try_link "$LINENO"; then : 9611 ax_pthread_ok=yes 9612fi 9613rm -f core conftest.err conftest.$ac_objext \ 9614 conftest$ac_exeext conftest.$ac_ext 9615 9616 LIBS="$save_LIBS" 9617 CFLAGS="$save_CFLAGS" 9618 9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 9620$as_echo "$ax_pthread_ok" >&6; } 9621 if test "x$ax_pthread_ok" = xyes; then 9622 break; 9623 fi 9624 9625 PTHREAD_LIBS="" 9626 PTHREAD_CFLAGS="" 9627done 9628fi 9629 9630# Various other checks: 9631if test "x$ax_pthread_ok" = xyes; then 9632 save_LIBS="$LIBS" 9633 LIBS="$PTHREAD_LIBS $LIBS" 9634 save_CFLAGS="$CFLAGS" 9635 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9636 9637 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 9639$as_echo_n "checking for joinable pthread attribute... " >&6; } 9640 attr_name=unknown 9641 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 9642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9643/* end confdefs.h. */ 9644#include <pthread.h> 9645int 9646main () 9647{ 9648int attr = $attr; return attr /* ; */ 9649 ; 9650 return 0; 9651} 9652_ACEOF 9653if ac_fn_c_try_link "$LINENO"; then : 9654 attr_name=$attr; break 9655fi 9656rm -f core conftest.err conftest.$ac_objext \ 9657 conftest$ac_exeext conftest.$ac_ext 9658 done 9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 9660$as_echo "$attr_name" >&6; } 9661 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 9662 9663cat >>confdefs.h <<_ACEOF 9664#define PTHREAD_CREATE_JOINABLE $attr_name 9665_ACEOF 9666 9667 fi 9668 9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 9670$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 9671 flag=no 9672 case "${host_cpu}-${host_os}" in 9673 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 9674 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 9675 esac 9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 9677$as_echo "${flag}" >&6; } 9678 if test "x$flag" != xno; then 9679 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 9680 fi 9681 9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 9683$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 9684if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 9685 $as_echo_n "(cached) " >&6 9686else 9687 9688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9689/* end confdefs.h. */ 9690 9691 #include <pthread.h> 9692int 9693main () 9694{ 9695int i = PTHREAD_PRIO_INHERIT; 9696 ; 9697 return 0; 9698} 9699_ACEOF 9700if ac_fn_c_try_link "$LINENO"; then : 9701 ax_cv_PTHREAD_PRIO_INHERIT=yes 9702else 9703 ax_cv_PTHREAD_PRIO_INHERIT=no 9704fi 9705rm -f core conftest.err conftest.$ac_objext \ 9706 conftest$ac_exeext conftest.$ac_ext 9707 9708fi 9709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 9710$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 9711 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 9712 9713$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 9714 9715fi 9716 9717 LIBS="$save_LIBS" 9718 CFLAGS="$save_CFLAGS" 9719 9720 # More AIX lossage: must compile with xlc_r or cc_r 9721 if test x"$GCC" != xyes; then 9722 for ac_prog in xlc_r cc_r 9723do 9724 # Extract the first word of "$ac_prog", so it can be a program name with args. 9725set dummy $ac_prog; ac_word=$2 9726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9727$as_echo_n "checking for $ac_word... " >&6; } 9728if ${ac_cv_prog_PTHREAD_CC+:} false; then : 9729 $as_echo_n "(cached) " >&6 9730else 9731 if test -n "$PTHREAD_CC"; then 9732 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 9733else 9734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9735for as_dir in $PATH 9736do 9737 IFS=$as_save_IFS 9738 test -z "$as_dir" && as_dir=. 9739 for ac_exec_ext in '' $ac_executable_extensions; do 9740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9741 ac_cv_prog_PTHREAD_CC="$ac_prog" 9742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9743 break 2 9744 fi 9745done 9746 done 9747IFS=$as_save_IFS 9748 9749fi 9750fi 9751PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 9752if test -n "$PTHREAD_CC"; then 9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 9754$as_echo "$PTHREAD_CC" >&6; } 9755else 9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9757$as_echo "no" >&6; } 9758fi 9759 9760 9761 test -n "$PTHREAD_CC" && break 9762done 9763test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 9764 9765 else 9766 PTHREAD_CC=$CC 9767 fi 9768else 9769 PTHREAD_CC="$CC" 9770fi 9771 9772 9773 9774 9775 9776# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 9777if test x"$ax_pthread_ok" = xyes; then 9778 9779$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 9780 9781 : 9782else 9783 ax_pthread_ok=no 9784 9785fi 9786ac_ext=c 9787ac_cpp='$CPP $CPPFLAGS' 9788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9790ac_compiler_gnu=$ac_cv_c_compiler_gnu 9791 9792 9793 9794# Check whether --enable-opencl was given. 9795if test "${enable_opencl+set}" = set; then : 9796 enableval=$enable_opencl; enable_opencl=$enableval 9797else 9798 enable_opencl='no' 9799fi 9800 9801 9802if test "$enable_opencl" = 'yes'; then 9803 ac_ext=c 9804ac_cpp='$CPP $CPPFLAGS' 9805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9807ac_compiler_gnu=$ac_cv_c_compiler_gnu 9808 9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 9810$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } 9811if ${ax_cv_c_compiler_ms+:} false; then : 9812 $as_echo_n "(cached) " >&6 9813else 9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9815/* end confdefs.h. */ 9816 9817int 9818main () 9819{ 9820#ifndef _MSC_VER 9821 choke me 9822#endif 9823 9824 ; 9825 return 0; 9826} 9827_ACEOF 9828if ac_fn_c_try_compile "$LINENO"; then : 9829 ax_compiler_ms=yes 9830else 9831 ax_compiler_ms=no 9832fi 9833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9834ax_cv_c_compiler_ms=$ax_compiler_ms 9835 9836fi 9837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 9838$as_echo "$ax_cv_c_compiler_ms" >&6; } 9839 if test X$ax_compiler_ms = Xno; then : 9840 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm" 9841fi 9842 9843 ax_save_CPPFLAGS=$CPPFLAGS 9844 CPPFLAGS="$CL_CFLAGS $CPPFLAGS" 9845 for ac_header in CL/cl.h OpenCL/cl.h 9846do : 9847 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9848ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9849if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9850 cat >>confdefs.h <<_ACEOF 9851#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9852_ACEOF 9853 9854fi 9855 9856done 9857 9858 CPPFLAGS=$ax_save_CPPFLAGS 9859 9860 for ac_header in windows.h 9861do : 9862 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 9863if test "x$ac_cv_header_windows_h" = xyes; then : 9864 cat >>confdefs.h <<_ACEOF 9865#define HAVE_WINDOWS_H 1 9866_ACEOF 9867 9868fi 9869 9870done 9871 9872 9873 9874 9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5 9876$as_echo_n "checking for OpenCL library... " >&6; } 9877if ${ax_cv_check_cl_libcl+:} false; then : 9878 $as_echo_n "(cached) " >&6 9879else 9880 ax_cv_check_cl_libcl=no 9881 case $host_cpu in 9882 x86_64) ax_check_cl_libdir=lib64 ;; 9883 *) ax_check_cl_libdir=lib ;; 9884 esac 9885 ax_save_CPPFLAGS=$CPPFLAGS 9886 CPPFLAGS="$CL_CFLAGS $CPPFLAGS" 9887 ax_save_LIBS=$LIBS 9888 LIBS="" 9889 ax_check_libs="-lOpenCL -lCL -lclparser" 9890 for ax_lib in $ax_check_libs; do 9891 if test X$ax_compiler_ms = Xyes; then : 9892 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'` 9893else 9894 ax_try_lib=$ax_lib 9895fi 9896 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS" 9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9898/* end confdefs.h. */ 9899 9900 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 9901 # include <windows.h> 9902 # endif 9903 # ifdef HAVE_CL_CL_H 9904 # include <CL/cl.h> 9905 # elif defined(HAVE_OPENCL_CL_H) 9906 # include <OpenCL/cl.h> 9907 # else 9908 # error no CL.h 9909 # endif 9910int 9911main () 9912{ 9913clCreateContextFromType(0,0,0,0,0) 9914 ; 9915 return 0; 9916} 9917_ACEOF 9918if ac_fn_c_try_link "$LINENO"; then : 9919 ax_cv_check_cl_libcl=$ax_try_lib; break 9920else 9921 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" 9922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9923/* end confdefs.h. */ 9924 9925 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 9926 # include <windows.h> 9927 # endif 9928 # ifdef HAVE_CL_CL_H 9929 # include <CL/cl.h> 9930 # elif defined(HAVE_OPENCL_CL_H) 9931 # include <OpenCL/cl.h> 9932 # else 9933 # error no CL.h 9934 # endif 9935int 9936main () 9937{ 9938clCreateContextFromType(0,0,0,0,0) 9939 ; 9940 return 0; 9941} 9942_ACEOF 9943if ac_fn_c_try_link "$LINENO"; then : 9944 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break 9945else 9946 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" 9947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9948/* end confdefs.h. */ 9949 9950 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 9951 # include <windows.h> 9952 # endif 9953 # ifdef HAVE_CL_CL_H 9954 # include <CL/cl.h> 9955 # elif defined(HAVE_OPENCL_CL_H) 9956 # include <OpenCL/cl.h> 9957 # else 9958 # error no CL.h 9959 # endif 9960int 9961main () 9962{ 9963clCreateContextFromType(0,0,0,0,0) 9964 ; 9965 return 0; 9966} 9967_ACEOF 9968if ac_fn_c_try_link "$LINENO"; then : 9969 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break 9970fi 9971rm -f core conftest.err conftest.$ac_objext \ 9972 conftest$ac_exeext conftest.$ac_ext 9973fi 9974rm -f core conftest.err conftest.$ac_objext \ 9975 conftest$ac_exeext conftest.$ac_ext 9976fi 9977rm -f core conftest.err conftest.$ac_objext \ 9978 conftest$ac_exeext conftest.$ac_ext 9979 done 9980 9981 if test "X$ax_cv_check_cl_libcl" = Xno; then : 9982 LIBS='-Wl,-framework,OpenCL' 9983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9984/* end confdefs.h. */ 9985 9986 # if defined(HAVE_WINDOWS_H) && defined(_WIN32) 9987 # include <windows.h> 9988 # endif 9989 # ifdef HAVE_CL_CL_H 9990 # include <CL/cl.h> 9991 # elif defined(HAVE_OPENCL_CL_H) 9992 # include <OpenCL/cl.h> 9993 # else 9994 # error no CL.h 9995 # endif 9996int 9997main () 9998{ 9999clCreateContextFromType(0,0,0,0,0) 10000 ; 10001 return 0; 10002} 10003_ACEOF 10004if ac_fn_c_try_link "$LINENO"; then : 10005 ax_cv_check_cl_libcl=$LIBS 10006fi 10007rm -f core conftest.err conftest.$ac_objext \ 10008 conftest$ac_exeext conftest.$ac_ext 10009fi 10010 10011 LIBS=$ax_save_LIBS 10012 CPPFLAGS=$ax_save_CPPFLAGS 10013fi 10014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5 10015$as_echo "$ax_cv_check_cl_libcl" >&6; } 10016 10017 if test "X$ax_cv_check_cl_libcl" = Xno; then : 10018 no_cl=yes; CL_CFLAGS=""; CL_LIBS="" 10019else 10020 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"; 10021$as_echo "#define _OPENCL 1" >>confdefs.h 10022 10023fi 10024 ac_ext=c 10025ac_cpp='$CPP $CPPFLAGS' 10026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10028ac_compiler_gnu=$ac_cv_c_compiler_gnu 10029 10030fi 10031 10032 10033 10034 10035CFLAGS="$CL_CFLAGS $CFLAGS" 10036LIBS="$CL_LIBS $LIBS" 10037 10038if test "$enable_opencl" != no; then 10039 if test "X$ax_cv_check_cl_libcl" != Xno; then : 10040 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES" 10041 fi 10042fi 10043 10044######## 10045# 10046# Check for large file support 10047# 10048######## 10049# Check whether --enable-largefile was given. 10050if test "${enable_largefile+set}" = set; then : 10051 enableval=$enable_largefile; 10052fi 10053 10054if test "$enable_largefile" != no; then 10055 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 10057$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 10058if ${ac_cv_sys_largefile_CC+:} false; then : 10059 $as_echo_n "(cached) " >&6 10060else 10061 ac_cv_sys_largefile_CC=no 10062 if test "$GCC" != yes; then 10063 ac_save_CC=$CC 10064 while :; do 10065 # IRIX 6.2 and later do not support large files by default, 10066 # so use the C compiler's -n32 option if that helps. 10067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10068/* end confdefs.h. */ 10069#include <sys/types.h> 10070 /* Check that off_t can represent 2**63 - 1 correctly. 10071 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10072 since some C++ compilers masquerading as C compilers 10073 incorrectly reject 9223372036854775807. */ 10074#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10076 && LARGE_OFF_T % 2147483647 == 1) 10077 ? 1 : -1]; 10078int 10079main () 10080{ 10081 10082 ; 10083 return 0; 10084} 10085_ACEOF 10086 if ac_fn_c_try_compile "$LINENO"; then : 10087 break 10088fi 10089rm -f core conftest.err conftest.$ac_objext 10090 CC="$CC -n32" 10091 if ac_fn_c_try_compile "$LINENO"; then : 10092 ac_cv_sys_largefile_CC=' -n32'; break 10093fi 10094rm -f core conftest.err conftest.$ac_objext 10095 break 10096 done 10097 CC=$ac_save_CC 10098 rm -f conftest.$ac_ext 10099 fi 10100fi 10101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 10102$as_echo "$ac_cv_sys_largefile_CC" >&6; } 10103 if test "$ac_cv_sys_largefile_CC" != no; then 10104 CC=$CC$ac_cv_sys_largefile_CC 10105 fi 10106 10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 10108$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 10109if ${ac_cv_sys_file_offset_bits+:} false; then : 10110 $as_echo_n "(cached) " >&6 10111else 10112 while :; do 10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10114/* end confdefs.h. */ 10115#include <sys/types.h> 10116 /* Check that off_t can represent 2**63 - 1 correctly. 10117 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10118 since some C++ compilers masquerading as C compilers 10119 incorrectly reject 9223372036854775807. */ 10120#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10122 && LARGE_OFF_T % 2147483647 == 1) 10123 ? 1 : -1]; 10124int 10125main () 10126{ 10127 10128 ; 10129 return 0; 10130} 10131_ACEOF 10132if ac_fn_c_try_compile "$LINENO"; then : 10133 ac_cv_sys_file_offset_bits=no; break 10134fi 10135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10137/* end confdefs.h. */ 10138#define _FILE_OFFSET_BITS 64 10139#include <sys/types.h> 10140 /* Check that off_t can represent 2**63 - 1 correctly. 10141 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10142 since some C++ compilers masquerading as C compilers 10143 incorrectly reject 9223372036854775807. */ 10144#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10145 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10146 && LARGE_OFF_T % 2147483647 == 1) 10147 ? 1 : -1]; 10148int 10149main () 10150{ 10151 10152 ; 10153 return 0; 10154} 10155_ACEOF 10156if ac_fn_c_try_compile "$LINENO"; then : 10157 ac_cv_sys_file_offset_bits=64; break 10158fi 10159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10160 ac_cv_sys_file_offset_bits=unknown 10161 break 10162done 10163fi 10164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 10165$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 10166case $ac_cv_sys_file_offset_bits in #( 10167 no | unknown) ;; 10168 *) 10169cat >>confdefs.h <<_ACEOF 10170#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 10171_ACEOF 10172;; 10173esac 10174rm -rf conftest* 10175 if test $ac_cv_sys_file_offset_bits = unknown; then 10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 10177$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 10178if ${ac_cv_sys_large_files+:} false; then : 10179 $as_echo_n "(cached) " >&6 10180else 10181 while :; do 10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10183/* end confdefs.h. */ 10184#include <sys/types.h> 10185 /* Check that off_t can represent 2**63 - 1 correctly. 10186 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10187 since some C++ compilers masquerading as C compilers 10188 incorrectly reject 9223372036854775807. */ 10189#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10190 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10191 && LARGE_OFF_T % 2147483647 == 1) 10192 ? 1 : -1]; 10193int 10194main () 10195{ 10196 10197 ; 10198 return 0; 10199} 10200_ACEOF 10201if ac_fn_c_try_compile "$LINENO"; then : 10202 ac_cv_sys_large_files=no; break 10203fi 10204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10206/* end confdefs.h. */ 10207#define _LARGE_FILES 1 10208#include <sys/types.h> 10209 /* Check that off_t can represent 2**63 - 1 correctly. 10210 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10211 since some C++ compilers masquerading as C compilers 10212 incorrectly reject 9223372036854775807. */ 10213#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10214 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10215 && LARGE_OFF_T % 2147483647 == 1) 10216 ? 1 : -1]; 10217int 10218main () 10219{ 10220 10221 ; 10222 return 0; 10223} 10224_ACEOF 10225if ac_fn_c_try_compile "$LINENO"; then : 10226 ac_cv_sys_large_files=1; break 10227fi 10228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10229 ac_cv_sys_large_files=unknown 10230 break 10231done 10232fi 10233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 10234$as_echo "$ac_cv_sys_large_files" >&6; } 10235case $ac_cv_sys_large_files in #( 10236 no | unknown) ;; 10237 *) 10238cat >>confdefs.h <<_ACEOF 10239#define _LARGE_FILES $ac_cv_sys_large_files 10240_ACEOF 10241;; 10242esac 10243rm -rf conftest* 10244 fi 10245 10246 10247fi 10248 10249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 10250$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 10251if ${ac_cv_sys_largefile_source+:} false; then : 10252 $as_echo_n "(cached) " >&6 10253else 10254 while :; do 10255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10256/* end confdefs.h. */ 10257#include <sys/types.h> /* for off_t */ 10258 #include <stdio.h> 10259int 10260main () 10261{ 10262int (*fp) (FILE *, off_t, int) = fseeko; 10263 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 10264 ; 10265 return 0; 10266} 10267_ACEOF 10268if ac_fn_c_try_link "$LINENO"; then : 10269 ac_cv_sys_largefile_source=no; break 10270fi 10271rm -f core conftest.err conftest.$ac_objext \ 10272 conftest$ac_exeext conftest.$ac_ext 10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10274/* end confdefs.h. */ 10275#define _LARGEFILE_SOURCE 1 10276#include <sys/types.h> /* for off_t */ 10277 #include <stdio.h> 10278int 10279main () 10280{ 10281int (*fp) (FILE *, off_t, int) = fseeko; 10282 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 10283 ; 10284 return 0; 10285} 10286_ACEOF 10287if ac_fn_c_try_link "$LINENO"; then : 10288 ac_cv_sys_largefile_source=1; break 10289fi 10290rm -f core conftest.err conftest.$ac_objext \ 10291 conftest$ac_exeext conftest.$ac_ext 10292 ac_cv_sys_largefile_source=unknown 10293 break 10294done 10295fi 10296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 10297$as_echo "$ac_cv_sys_largefile_source" >&6; } 10298case $ac_cv_sys_largefile_source in #( 10299 no | unknown) ;; 10300 *) 10301cat >>confdefs.h <<_ACEOF 10302#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 10303_ACEOF 10304;; 10305esac 10306rm -rf conftest* 10307 10308# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 10309# in glibc 2.1.3, but that breaks too many other things. 10310# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 10311if test $ac_cv_sys_largefile_source != unknown; then 10312 10313$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 10314 10315fi 10316 10317LFS_CPPFLAGS='' 10318if test "$enable_largefile" != no; then 10319 case $ac_cv_sys_file_offset_bits in 10320 no) 10321 # nothing to do here as the host supports LFS fine 10322 ;; 10323 unknown) 10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5 10325$as_echo_n "checking for native large file support... " >&6; } 10326 if test "$cross_compiling" = yes; then : 10327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10329as_fn_error $? "cannot run test program while cross compiling 10330See \`config.log' for more details" "$LINENO" 5; } 10331else 10332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10333/* end confdefs.h. */ 10334#include <unistd.h> 10335 main () { 10336 exit(!(sizeof(off_t) == 8)); 10337 } 10338int 10339main () 10340{ 10341 10342 ; 10343 return 0; 10344} 10345_ACEOF 10346if ac_fn_c_try_run "$LINENO"; then : 10347 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h 10348 10349 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 10350$as_echo "$as_me: yes" >&6;} 10351else 10352 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 10353$as_echo "$as_me: no" >&6;} 10354fi 10355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10356 conftest.$ac_objext conftest.beam conftest.$ac_ext 10357fi 10358 10359 ;; 10360 *) 10361 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" 10362 ;; 10363 esac 10364 if test "$ac_cv_sys_large_files" != 'no'; then 10365 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1" 10366 fi 10367 if test "$ac_cv_sys_largefile_source" != 'no'; then 10368 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1" 10369 fi 10370fi 10371 10372 10373# Configure libtool 10374enable_dlopen=yes 10375 10376 10377 10378case `pwd` in 10379 *\ * | *\ *) 10380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10381$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10382esac 10383 10384 10385 10386macro_version='2.4.2' 10387macro_revision='1.3337' 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401ltmain="$ac_aux_dir/ltmain.sh" 10402 10403# Backslashify metacharacters that are still active within 10404# double-quoted strings. 10405sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10406 10407# Same as above, but do not quote variable references. 10408double_quote_subst='s/\(["`\\]\)/\\\1/g' 10409 10410# Sed substitution to delay expansion of an escaped shell variable in a 10411# double_quote_subst'ed string. 10412delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10413 10414# Sed substitution to delay expansion of an escaped single quote. 10415delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10416 10417# Sed substitution to avoid accidental globbing in evaled expressions 10418no_glob_subst='s/\*/\\\*/g' 10419 10420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 10421$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 10422if ${lt_cv_path_NM+:} false; then : 10423 $as_echo_n "(cached) " >&6 10424else 10425 if test -n "$NM"; then 10426 # Let the user override the test. 10427 lt_cv_path_NM="$NM" 10428else 10429 lt_nm_to_check="${ac_tool_prefix}nm" 10430 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 10431 lt_nm_to_check="$lt_nm_to_check nm" 10432 fi 10433 for lt_tmp_nm in $lt_nm_to_check; do 10434 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10435 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 10436 IFS="$lt_save_ifs" 10437 test -z "$ac_dir" && ac_dir=. 10438 tmp_nm="$ac_dir/$lt_tmp_nm" 10439 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 10440 # Check to see if the nm accepts a BSD-compat flag. 10441 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 10442 # nm: unknown option "B" ignored 10443 # Tru64's nm complains that /dev/null is an invalid object file 10444 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 10445 */dev/null* | *'Invalid file or object type'*) 10446 lt_cv_path_NM="$tmp_nm -B" 10447 break 10448 ;; 10449 *) 10450 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 10451 */dev/null*) 10452 lt_cv_path_NM="$tmp_nm -p" 10453 break 10454 ;; 10455 *) 10456 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 10457 continue # so that we can try to find one that supports BSD flags 10458 ;; 10459 esac 10460 ;; 10461 esac 10462 fi 10463 done 10464 IFS="$lt_save_ifs" 10465 done 10466 : ${lt_cv_path_NM=no} 10467fi 10468fi 10469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 10470$as_echo "$lt_cv_path_NM" >&6; } 10471if test "$lt_cv_path_NM" != "no"; then 10472 NM="$lt_cv_path_NM" 10473else 10474 # Didn't find any BSD compatible name lister, look for dumpbin. 10475 if test -n "$DUMPBIN"; then : 10476 # Let the user override the test. 10477 else 10478 if test -n "$ac_tool_prefix"; then 10479 for ac_prog in dumpbin "link -dump" 10480 do 10481 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10482set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10484$as_echo_n "checking for $ac_word... " >&6; } 10485if ${ac_cv_prog_DUMPBIN+:} false; then : 10486 $as_echo_n "(cached) " >&6 10487else 10488 if test -n "$DUMPBIN"; then 10489 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 10490else 10491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10492for as_dir in $PATH 10493do 10494 IFS=$as_save_IFS 10495 test -z "$as_dir" && as_dir=. 10496 for ac_exec_ext in '' $ac_executable_extensions; do 10497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10498 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 10499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10500 break 2 10501 fi 10502done 10503 done 10504IFS=$as_save_IFS 10505 10506fi 10507fi 10508DUMPBIN=$ac_cv_prog_DUMPBIN 10509if test -n "$DUMPBIN"; then 10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 10511$as_echo "$DUMPBIN" >&6; } 10512else 10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10514$as_echo "no" >&6; } 10515fi 10516 10517 10518 test -n "$DUMPBIN" && break 10519 done 10520fi 10521if test -z "$DUMPBIN"; then 10522 ac_ct_DUMPBIN=$DUMPBIN 10523 for ac_prog in dumpbin "link -dump" 10524do 10525 # Extract the first word of "$ac_prog", so it can be a program name with args. 10526set dummy $ac_prog; ac_word=$2 10527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10528$as_echo_n "checking for $ac_word... " >&6; } 10529if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 10530 $as_echo_n "(cached) " >&6 10531else 10532 if test -n "$ac_ct_DUMPBIN"; then 10533 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 10534else 10535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10536for as_dir in $PATH 10537do 10538 IFS=$as_save_IFS 10539 test -z "$as_dir" && as_dir=. 10540 for ac_exec_ext in '' $ac_executable_extensions; do 10541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10542 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 10543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10544 break 2 10545 fi 10546done 10547 done 10548IFS=$as_save_IFS 10549 10550fi 10551fi 10552ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 10553if test -n "$ac_ct_DUMPBIN"; then 10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 10555$as_echo "$ac_ct_DUMPBIN" >&6; } 10556else 10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10558$as_echo "no" >&6; } 10559fi 10560 10561 10562 test -n "$ac_ct_DUMPBIN" && break 10563done 10564 10565 if test "x$ac_ct_DUMPBIN" = x; then 10566 DUMPBIN=":" 10567 else 10568 case $cross_compiling:$ac_tool_warned in 10569yes:) 10570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10572ac_tool_warned=yes ;; 10573esac 10574 DUMPBIN=$ac_ct_DUMPBIN 10575 fi 10576fi 10577 10578 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 10579 *COFF*) 10580 DUMPBIN="$DUMPBIN -symbols" 10581 ;; 10582 *) 10583 DUMPBIN=: 10584 ;; 10585 esac 10586 fi 10587 10588 if test "$DUMPBIN" != ":"; then 10589 NM="$DUMPBIN" 10590 fi 10591fi 10592test -z "$NM" && NM=nm 10593 10594 10595 10596 10597 10598 10599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 10600$as_echo_n "checking the name lister ($NM) interface... " >&6; } 10601if ${lt_cv_nm_interface+:} false; then : 10602 $as_echo_n "(cached) " >&6 10603else 10604 lt_cv_nm_interface="BSD nm" 10605 echo "int some_variable = 0;" > conftest.$ac_ext 10606 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 10607 (eval "$ac_compile" 2>conftest.err) 10608 cat conftest.err >&5 10609 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 10610 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 10611 cat conftest.err >&5 10612 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 10613 cat conftest.out >&5 10614 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 10615 lt_cv_nm_interface="MS dumpbin" 10616 fi 10617 rm -f conftest* 10618fi 10619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 10620$as_echo "$lt_cv_nm_interface" >&6; } 10621 10622# find the maximum length of command line arguments 10623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 10624$as_echo_n "checking the maximum length of command line arguments... " >&6; } 10625if ${lt_cv_sys_max_cmd_len+:} false; then : 10626 $as_echo_n "(cached) " >&6 10627else 10628 i=0 10629 teststring="ABCD" 10630 10631 case $build_os in 10632 msdosdjgpp*) 10633 # On DJGPP, this test can blow up pretty badly due to problems in libc 10634 # (any single argument exceeding 2000 bytes causes a buffer overrun 10635 # during glob expansion). Even if it were fixed, the result of this 10636 # check would be larger than it should be. 10637 lt_cv_sys_max_cmd_len=12288; # 12K is about right 10638 ;; 10639 10640 gnu*) 10641 # Under GNU Hurd, this test is not required because there is 10642 # no limit to the length of command line arguments. 10643 # Libtool will interpret -1 as no limit whatsoever 10644 lt_cv_sys_max_cmd_len=-1; 10645 ;; 10646 10647 cygwin* | mingw* | cegcc*) 10648 # On Win9x/ME, this test blows up -- it succeeds, but takes 10649 # about 5 minutes as the teststring grows exponentially. 10650 # Worse, since 9x/ME are not pre-emptively multitasking, 10651 # you end up with a "frozen" computer, even though with patience 10652 # the test eventually succeeds (with a max line length of 256k). 10653 # Instead, let's just punt: use the minimum linelength reported by 10654 # all of the supported platforms: 8192 (on NT/2K/XP). 10655 lt_cv_sys_max_cmd_len=8192; 10656 ;; 10657 10658 mint*) 10659 # On MiNT this can take a long time and run out of memory. 10660 lt_cv_sys_max_cmd_len=8192; 10661 ;; 10662 10663 amigaos*) 10664 # On AmigaOS with pdksh, this test takes hours, literally. 10665 # So we just punt and use a minimum line length of 8192. 10666 lt_cv_sys_max_cmd_len=8192; 10667 ;; 10668 10669 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 10670 # This has been around since 386BSD, at least. Likely further. 10671 if test -x /sbin/sysctl; then 10672 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 10673 elif test -x /usr/sbin/sysctl; then 10674 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 10675 else 10676 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 10677 fi 10678 # And add a safety zone 10679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 10680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 10681 ;; 10682 10683 interix*) 10684 # We know the value 262144 and hardcode it with a safety zone (like BSD) 10685 lt_cv_sys_max_cmd_len=196608 10686 ;; 10687 10688 os2*) 10689 # The test takes a long time on OS/2. 10690 lt_cv_sys_max_cmd_len=8192 10691 ;; 10692 10693 osf*) 10694 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 10695 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 10696 # nice to cause kernel panics so lets avoid the loop below. 10697 # First set a reasonable default. 10698 lt_cv_sys_max_cmd_len=16384 10699 # 10700 if test -x /sbin/sysconfig; then 10701 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 10702 *1*) lt_cv_sys_max_cmd_len=-1 ;; 10703 esac 10704 fi 10705 ;; 10706 sco3.2v5*) 10707 lt_cv_sys_max_cmd_len=102400 10708 ;; 10709 sysv5* | sco5v6* | sysv4.2uw2*) 10710 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 10711 if test -n "$kargmax"; then 10712 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 10713 else 10714 lt_cv_sys_max_cmd_len=32768 10715 fi 10716 ;; 10717 *) 10718 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 10719 if test -n "$lt_cv_sys_max_cmd_len"; then 10720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 10721 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 10722 else 10723 # Make teststring a little bigger before we do anything with it. 10724 # a 1K string should be a reasonable start. 10725 for i in 1 2 3 4 5 6 7 8 ; do 10726 teststring=$teststring$teststring 10727 done 10728 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 10729 # If test is not a shell built-in, we'll probably end up computing a 10730 # maximum length that is only half of the actual maximum length, but 10731 # we can't tell. 10732 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 10733 = "X$teststring$teststring"; } >/dev/null 2>&1 && 10734 test $i != 17 # 1/2 MB should be enough 10735 do 10736 i=`expr $i + 1` 10737 teststring=$teststring$teststring 10738 done 10739 # Only check the string length outside the loop. 10740 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 10741 teststring= 10742 # Add a significant safety factor because C++ compilers can tack on 10743 # massive amounts of additional arguments before passing them to the 10744 # linker. It appears as though 1/2 is a usable value. 10745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 10746 fi 10747 ;; 10748 esac 10749 10750fi 10751 10752if test -n $lt_cv_sys_max_cmd_len ; then 10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 10754$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 10755else 10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 10757$as_echo "none" >&6; } 10758fi 10759max_cmd_len=$lt_cv_sys_max_cmd_len 10760 10761 10762 10763 10764 10765 10766: ${CP="cp -f"} 10767: ${MV="mv -f"} 10768: ${RM="rm -f"} 10769 10770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 10771$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 10772# Try some XSI features 10773xsi_shell=no 10774( _lt_dummy="a/b/c" 10775 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 10776 = c,a/b,b/c, \ 10777 && eval 'test $(( 1 + 1 )) -eq 2 \ 10778 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 10779 && xsi_shell=yes 10780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 10781$as_echo "$xsi_shell" >&6; } 10782 10783 10784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 10785$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 10786lt_shell_append=no 10787( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 10788 >/dev/null 2>&1 \ 10789 && lt_shell_append=yes 10790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 10791$as_echo "$lt_shell_append" >&6; } 10792 10793 10794if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10795 lt_unset=unset 10796else 10797 lt_unset=false 10798fi 10799 10800 10801 10802 10803 10804# test EBCDIC or ASCII 10805case `echo X|tr X '\101'` in 10806 A) # ASCII based system 10807 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 10808 lt_SP2NL='tr \040 \012' 10809 lt_NL2SP='tr \015\012 \040\040' 10810 ;; 10811 *) # EBCDIC based system 10812 lt_SP2NL='tr \100 \n' 10813 lt_NL2SP='tr \r\n \100\100' 10814 ;; 10815esac 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 10826$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 10827if ${lt_cv_to_host_file_cmd+:} false; then : 10828 $as_echo_n "(cached) " >&6 10829else 10830 case $host in 10831 *-*-mingw* ) 10832 case $build in 10833 *-*-mingw* ) # actually msys 10834 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 10835 ;; 10836 *-*-cygwin* ) 10837 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 10838 ;; 10839 * ) # otherwise, assume *nix 10840 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 10841 ;; 10842 esac 10843 ;; 10844 *-*-cygwin* ) 10845 case $build in 10846 *-*-mingw* ) # actually msys 10847 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 10848 ;; 10849 *-*-cygwin* ) 10850 lt_cv_to_host_file_cmd=func_convert_file_noop 10851 ;; 10852 * ) # otherwise, assume *nix 10853 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 10854 ;; 10855 esac 10856 ;; 10857 * ) # unhandled hosts (and "normal" native builds) 10858 lt_cv_to_host_file_cmd=func_convert_file_noop 10859 ;; 10860esac 10861 10862fi 10863 10864to_host_file_cmd=$lt_cv_to_host_file_cmd 10865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 10866$as_echo "$lt_cv_to_host_file_cmd" >&6; } 10867 10868 10869 10870 10871 10872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 10873$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 10874if ${lt_cv_to_tool_file_cmd+:} false; then : 10875 $as_echo_n "(cached) " >&6 10876else 10877 #assume ordinary cross tools, or native build. 10878lt_cv_to_tool_file_cmd=func_convert_file_noop 10879case $host in 10880 *-*-mingw* ) 10881 case $build in 10882 *-*-mingw* ) # actually msys 10883 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 10884 ;; 10885 esac 10886 ;; 10887esac 10888 10889fi 10890 10891to_tool_file_cmd=$lt_cv_to_tool_file_cmd 10892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 10893$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 10894 10895 10896 10897 10898 10899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 10900$as_echo_n "checking for $LD option to reload object files... " >&6; } 10901if ${lt_cv_ld_reload_flag+:} false; then : 10902 $as_echo_n "(cached) " >&6 10903else 10904 lt_cv_ld_reload_flag='-r' 10905fi 10906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 10907$as_echo "$lt_cv_ld_reload_flag" >&6; } 10908reload_flag=$lt_cv_ld_reload_flag 10909case $reload_flag in 10910"" | " "*) ;; 10911*) reload_flag=" $reload_flag" ;; 10912esac 10913reload_cmds='$LD$reload_flag -o $output$reload_objs' 10914case $host_os in 10915 cygwin* | mingw* | pw32* | cegcc*) 10916 if test "$GCC" != yes; then 10917 reload_cmds=false 10918 fi 10919 ;; 10920 darwin*) 10921 if test "$GCC" = yes; then 10922 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 10923 else 10924 reload_cmds='$LD$reload_flag -o $output$reload_objs' 10925 fi 10926 ;; 10927esac 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937if test -n "$ac_tool_prefix"; then 10938 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 10939set dummy ${ac_tool_prefix}objdump; ac_word=$2 10940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10941$as_echo_n "checking for $ac_word... " >&6; } 10942if ${ac_cv_prog_OBJDUMP+:} false; then : 10943 $as_echo_n "(cached) " >&6 10944else 10945 if test -n "$OBJDUMP"; then 10946 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 10947else 10948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10949for as_dir in $PATH 10950do 10951 IFS=$as_save_IFS 10952 test -z "$as_dir" && as_dir=. 10953 for ac_exec_ext in '' $ac_executable_extensions; do 10954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10955 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 10956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10957 break 2 10958 fi 10959done 10960 done 10961IFS=$as_save_IFS 10962 10963fi 10964fi 10965OBJDUMP=$ac_cv_prog_OBJDUMP 10966if test -n "$OBJDUMP"; then 10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 10968$as_echo "$OBJDUMP" >&6; } 10969else 10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10971$as_echo "no" >&6; } 10972fi 10973 10974 10975fi 10976if test -z "$ac_cv_prog_OBJDUMP"; then 10977 ac_ct_OBJDUMP=$OBJDUMP 10978 # Extract the first word of "objdump", so it can be a program name with args. 10979set dummy objdump; ac_word=$2 10980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10981$as_echo_n "checking for $ac_word... " >&6; } 10982if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 10983 $as_echo_n "(cached) " >&6 10984else 10985 if test -n "$ac_ct_OBJDUMP"; then 10986 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 10987else 10988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10989for as_dir in $PATH 10990do 10991 IFS=$as_save_IFS 10992 test -z "$as_dir" && as_dir=. 10993 for ac_exec_ext in '' $ac_executable_extensions; do 10994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10995 ac_cv_prog_ac_ct_OBJDUMP="objdump" 10996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10997 break 2 10998 fi 10999done 11000 done 11001IFS=$as_save_IFS 11002 11003fi 11004fi 11005ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11006if test -n "$ac_ct_OBJDUMP"; then 11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11008$as_echo "$ac_ct_OBJDUMP" >&6; } 11009else 11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11011$as_echo "no" >&6; } 11012fi 11013 11014 if test "x$ac_ct_OBJDUMP" = x; then 11015 OBJDUMP="false" 11016 else 11017 case $cross_compiling:$ac_tool_warned in 11018yes:) 11019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11021ac_tool_warned=yes ;; 11022esac 11023 OBJDUMP=$ac_ct_OBJDUMP 11024 fi 11025else 11026 OBJDUMP="$ac_cv_prog_OBJDUMP" 11027fi 11028 11029test -z "$OBJDUMP" && OBJDUMP=objdump 11030 11031 11032 11033 11034 11035 11036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11037$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11038if ${lt_cv_deplibs_check_method+:} false; then : 11039 $as_echo_n "(cached) " >&6 11040else 11041 lt_cv_file_magic_cmd='$MAGIC_CMD' 11042lt_cv_file_magic_test_file= 11043lt_cv_deplibs_check_method='unknown' 11044# Need to set the preceding variable on all platforms that support 11045# interlibrary dependencies. 11046# 'none' -- dependencies not supported. 11047# `unknown' -- same as none, but documents that we really don't know. 11048# 'pass_all' -- all dependencies passed with no checks. 11049# 'test_compile' -- check by making test program. 11050# 'file_magic [[regex]]' -- check by looking for files in library path 11051# which responds to the $file_magic_cmd with a given extended regex. 11052# If you have `file' or equivalent on your system and you're not sure 11053# whether `pass_all' will *always* work, you probably want this one. 11054 11055case $host_os in 11056aix[4-9]*) 11057 lt_cv_deplibs_check_method=pass_all 11058 ;; 11059 11060beos*) 11061 lt_cv_deplibs_check_method=pass_all 11062 ;; 11063 11064bsdi[45]*) 11065 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11066 lt_cv_file_magic_cmd='/usr/bin/file -L' 11067 lt_cv_file_magic_test_file=/shlib/libc.so 11068 ;; 11069 11070cygwin*) 11071 # func_win32_libid is a shell function defined in ltmain.sh 11072 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11073 lt_cv_file_magic_cmd='func_win32_libid' 11074 ;; 11075 11076mingw* | pw32*) 11077 # Base MSYS/MinGW do not provide the 'file' command needed by 11078 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11079 # unless we find 'file', for example because we are cross-compiling. 11080 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 11081 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 11082 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11083 lt_cv_file_magic_cmd='func_win32_libid' 11084 else 11085 # Keep this pattern in sync with the one in func_win32_libid. 11086 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11087 lt_cv_file_magic_cmd='$OBJDUMP -f' 11088 fi 11089 ;; 11090 11091cegcc*) 11092 # use the weaker test based on 'objdump'. See mingw*. 11093 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11094 lt_cv_file_magic_cmd='$OBJDUMP -f' 11095 ;; 11096 11097darwin* | rhapsody*) 11098 lt_cv_deplibs_check_method=pass_all 11099 ;; 11100 11101freebsd* | dragonfly*) 11102 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11103 case $host_cpu in 11104 i*86 ) 11105 # Not sure whether the presence of OpenBSD here was a mistake. 11106 # Let's accept both of them until this is cleared up. 11107 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11108 lt_cv_file_magic_cmd=/usr/bin/file 11109 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11110 ;; 11111 esac 11112 else 11113 lt_cv_deplibs_check_method=pass_all 11114 fi 11115 ;; 11116 11117gnu*) 11118 lt_cv_deplibs_check_method=pass_all 11119 ;; 11120 11121haiku*) 11122 lt_cv_deplibs_check_method=pass_all 11123 ;; 11124 11125hpux10.20* | hpux11*) 11126 lt_cv_file_magic_cmd=/usr/bin/file 11127 case $host_cpu in 11128 ia64*) 11129 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11130 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11131 ;; 11132 hppa*64*) 11133 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]' 11134 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11135 ;; 11136 *) 11137 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11138 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11139 ;; 11140 esac 11141 ;; 11142 11143interix[3-9]*) 11144 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11146 ;; 11147 11148irix5* | irix6* | nonstopux*) 11149 case $LD in 11150 *-32|*"-32 ") libmagic=32-bit;; 11151 *-n32|*"-n32 ") libmagic=N32;; 11152 *-64|*"-64 ") libmagic=64-bit;; 11153 *) libmagic=never-match;; 11154 esac 11155 lt_cv_deplibs_check_method=pass_all 11156 ;; 11157 11158# This must be glibc/ELF. 11159linux* | k*bsd*-gnu | kopensolaris*-gnu) 11160 lt_cv_deplibs_check_method=pass_all 11161 ;; 11162 11163netbsd*) 11164 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11165 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11166 else 11167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 11168 fi 11169 ;; 11170 11171newos6*) 11172 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 11173 lt_cv_file_magic_cmd=/usr/bin/file 11174 lt_cv_file_magic_test_file=/usr/lib/libnls.so 11175 ;; 11176 11177*nto* | *qnx*) 11178 lt_cv_deplibs_check_method=pass_all 11179 ;; 11180 11181openbsd*) 11182 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11183 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 11184 else 11185 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11186 fi 11187 ;; 11188 11189osf3* | osf4* | osf5*) 11190 lt_cv_deplibs_check_method=pass_all 11191 ;; 11192 11193rdos*) 11194 lt_cv_deplibs_check_method=pass_all 11195 ;; 11196 11197solaris*) 11198 lt_cv_deplibs_check_method=pass_all 11199 ;; 11200 11201sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11202 lt_cv_deplibs_check_method=pass_all 11203 ;; 11204 11205sysv4 | sysv4.3*) 11206 case $host_vendor in 11207 motorola) 11208 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]' 11209 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 11210 ;; 11211 ncr) 11212 lt_cv_deplibs_check_method=pass_all 11213 ;; 11214 sequent) 11215 lt_cv_file_magic_cmd='/bin/file' 11216 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 11217 ;; 11218 sni) 11219 lt_cv_file_magic_cmd='/bin/file' 11220 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 11221 lt_cv_file_magic_test_file=/lib/libc.so 11222 ;; 11223 siemens) 11224 lt_cv_deplibs_check_method=pass_all 11225 ;; 11226 pc) 11227 lt_cv_deplibs_check_method=pass_all 11228 ;; 11229 esac 11230 ;; 11231 11232tpf*) 11233 lt_cv_deplibs_check_method=pass_all 11234 ;; 11235esac 11236 11237fi 11238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 11239$as_echo "$lt_cv_deplibs_check_method" >&6; } 11240 11241file_magic_glob= 11242want_nocaseglob=no 11243if test "$build" = "$host"; then 11244 case $host_os in 11245 mingw* | pw32*) 11246 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 11247 want_nocaseglob=yes 11248 else 11249 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 11250 fi 11251 ;; 11252 esac 11253fi 11254 11255file_magic_cmd=$lt_cv_file_magic_cmd 11256deplibs_check_method=$lt_cv_deplibs_check_method 11257test -z "$deplibs_check_method" && deplibs_check_method=unknown 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280if test -n "$ac_tool_prefix"; then 11281 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 11282set dummy ${ac_tool_prefix}dlltool; ac_word=$2 11283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11284$as_echo_n "checking for $ac_word... " >&6; } 11285if ${ac_cv_prog_DLLTOOL+:} false; then : 11286 $as_echo_n "(cached) " >&6 11287else 11288 if test -n "$DLLTOOL"; then 11289 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 11290else 11291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11292for as_dir in $PATH 11293do 11294 IFS=$as_save_IFS 11295 test -z "$as_dir" && as_dir=. 11296 for ac_exec_ext in '' $ac_executable_extensions; do 11297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11298 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 11299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11300 break 2 11301 fi 11302done 11303 done 11304IFS=$as_save_IFS 11305 11306fi 11307fi 11308DLLTOOL=$ac_cv_prog_DLLTOOL 11309if test -n "$DLLTOOL"; then 11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 11311$as_echo "$DLLTOOL" >&6; } 11312else 11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11314$as_echo "no" >&6; } 11315fi 11316 11317 11318fi 11319if test -z "$ac_cv_prog_DLLTOOL"; then 11320 ac_ct_DLLTOOL=$DLLTOOL 11321 # Extract the first word of "dlltool", so it can be a program name with args. 11322set dummy dlltool; ac_word=$2 11323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11324$as_echo_n "checking for $ac_word... " >&6; } 11325if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 11326 $as_echo_n "(cached) " >&6 11327else 11328 if test -n "$ac_ct_DLLTOOL"; then 11329 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 11330else 11331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11332for as_dir in $PATH 11333do 11334 IFS=$as_save_IFS 11335 test -z "$as_dir" && as_dir=. 11336 for ac_exec_ext in '' $ac_executable_extensions; do 11337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11338 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 11339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11340 break 2 11341 fi 11342done 11343 done 11344IFS=$as_save_IFS 11345 11346fi 11347fi 11348ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 11349if test -n "$ac_ct_DLLTOOL"; then 11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 11351$as_echo "$ac_ct_DLLTOOL" >&6; } 11352else 11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11354$as_echo "no" >&6; } 11355fi 11356 11357 if test "x$ac_ct_DLLTOOL" = x; then 11358 DLLTOOL="false" 11359 else 11360 case $cross_compiling:$ac_tool_warned in 11361yes:) 11362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11364ac_tool_warned=yes ;; 11365esac 11366 DLLTOOL=$ac_ct_DLLTOOL 11367 fi 11368else 11369 DLLTOOL="$ac_cv_prog_DLLTOOL" 11370fi 11371 11372test -z "$DLLTOOL" && DLLTOOL=dlltool 11373 11374 11375 11376 11377 11378 11379 11380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 11381$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 11382if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 11383 $as_echo_n "(cached) " >&6 11384else 11385 lt_cv_sharedlib_from_linklib_cmd='unknown' 11386 11387case $host_os in 11388cygwin* | mingw* | pw32* | cegcc*) 11389 # two different shell functions defined in ltmain.sh 11390 # decide which to use based on capabilities of $DLLTOOL 11391 case `$DLLTOOL --help 2>&1` in 11392 *--identify-strict*) 11393 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 11394 ;; 11395 *) 11396 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 11397 ;; 11398 esac 11399 ;; 11400*) 11401 # fallback: assume linklib IS sharedlib 11402 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 11403 ;; 11404esac 11405 11406fi 11407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 11408$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 11409sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 11410test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 11411 11412 11413 11414 11415 11416 11417 11418if test -n "$ac_tool_prefix"; then 11419 for ac_prog in ar 11420 do 11421 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11422set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11424$as_echo_n "checking for $ac_word... " >&6; } 11425if ${ac_cv_prog_AR+:} false; then : 11426 $as_echo_n "(cached) " >&6 11427else 11428 if test -n "$AR"; then 11429 ac_cv_prog_AR="$AR" # Let the user override the test. 11430else 11431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11432for as_dir in $PATH 11433do 11434 IFS=$as_save_IFS 11435 test -z "$as_dir" && as_dir=. 11436 for ac_exec_ext in '' $ac_executable_extensions; do 11437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11438 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 11439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11440 break 2 11441 fi 11442done 11443 done 11444IFS=$as_save_IFS 11445 11446fi 11447fi 11448AR=$ac_cv_prog_AR 11449if test -n "$AR"; then 11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 11451$as_echo "$AR" >&6; } 11452else 11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11454$as_echo "no" >&6; } 11455fi 11456 11457 11458 test -n "$AR" && break 11459 done 11460fi 11461if test -z "$AR"; then 11462 ac_ct_AR=$AR 11463 for ac_prog in ar 11464do 11465 # Extract the first word of "$ac_prog", so it can be a program name with args. 11466set dummy $ac_prog; ac_word=$2 11467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11468$as_echo_n "checking for $ac_word... " >&6; } 11469if ${ac_cv_prog_ac_ct_AR+:} false; then : 11470 $as_echo_n "(cached) " >&6 11471else 11472 if test -n "$ac_ct_AR"; then 11473 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 11474else 11475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11476for as_dir in $PATH 11477do 11478 IFS=$as_save_IFS 11479 test -z "$as_dir" && as_dir=. 11480 for ac_exec_ext in '' $ac_executable_extensions; do 11481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11482 ac_cv_prog_ac_ct_AR="$ac_prog" 11483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11484 break 2 11485 fi 11486done 11487 done 11488IFS=$as_save_IFS 11489 11490fi 11491fi 11492ac_ct_AR=$ac_cv_prog_ac_ct_AR 11493if test -n "$ac_ct_AR"; then 11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 11495$as_echo "$ac_ct_AR" >&6; } 11496else 11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11498$as_echo "no" >&6; } 11499fi 11500 11501 11502 test -n "$ac_ct_AR" && break 11503done 11504 11505 if test "x$ac_ct_AR" = x; then 11506 AR="false" 11507 else 11508 case $cross_compiling:$ac_tool_warned in 11509yes:) 11510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11512ac_tool_warned=yes ;; 11513esac 11514 AR=$ac_ct_AR 11515 fi 11516fi 11517 11518: ${AR=ar} 11519: ${AR_FLAGS=cru} 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 11532$as_echo_n "checking for archiver @FILE support... " >&6; } 11533if ${lt_cv_ar_at_file+:} false; then : 11534 $as_echo_n "(cached) " >&6 11535else 11536 lt_cv_ar_at_file=no 11537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11538/* end confdefs.h. */ 11539 11540int 11541main () 11542{ 11543 11544 ; 11545 return 0; 11546} 11547_ACEOF 11548if ac_fn_c_try_compile "$LINENO"; then : 11549 echo conftest.$ac_objext > conftest.lst 11550 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 11551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 11552 (eval $lt_ar_try) 2>&5 11553 ac_status=$? 11554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11555 test $ac_status = 0; } 11556 if test "$ac_status" -eq 0; then 11557 # Ensure the archiver fails upon bogus file names. 11558 rm -f conftest.$ac_objext libconftest.a 11559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 11560 (eval $lt_ar_try) 2>&5 11561 ac_status=$? 11562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11563 test $ac_status = 0; } 11564 if test "$ac_status" -ne 0; then 11565 lt_cv_ar_at_file=@ 11566 fi 11567 fi 11568 rm -f conftest.* libconftest.a 11569 11570fi 11571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11572 11573fi 11574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 11575$as_echo "$lt_cv_ar_at_file" >&6; } 11576 11577if test "x$lt_cv_ar_at_file" = xno; then 11578 archiver_list_spec= 11579else 11580 archiver_list_spec=$lt_cv_ar_at_file 11581fi 11582 11583 11584 11585 11586 11587 11588 11589if test -n "$ac_tool_prefix"; then 11590 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 11591set dummy ${ac_tool_prefix}strip; ac_word=$2 11592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11593$as_echo_n "checking for $ac_word... " >&6; } 11594if ${ac_cv_prog_STRIP+:} false; then : 11595 $as_echo_n "(cached) " >&6 11596else 11597 if test -n "$STRIP"; then 11598 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 11599else 11600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11601for as_dir in $PATH 11602do 11603 IFS=$as_save_IFS 11604 test -z "$as_dir" && as_dir=. 11605 for ac_exec_ext in '' $ac_executable_extensions; do 11606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11607 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 11608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11609 break 2 11610 fi 11611done 11612 done 11613IFS=$as_save_IFS 11614 11615fi 11616fi 11617STRIP=$ac_cv_prog_STRIP 11618if test -n "$STRIP"; then 11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 11620$as_echo "$STRIP" >&6; } 11621else 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11623$as_echo "no" >&6; } 11624fi 11625 11626 11627fi 11628if test -z "$ac_cv_prog_STRIP"; then 11629 ac_ct_STRIP=$STRIP 11630 # Extract the first word of "strip", so it can be a program name with args. 11631set dummy strip; ac_word=$2 11632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11633$as_echo_n "checking for $ac_word... " >&6; } 11634if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 11635 $as_echo_n "(cached) " >&6 11636else 11637 if test -n "$ac_ct_STRIP"; then 11638 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 11639else 11640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11641for as_dir in $PATH 11642do 11643 IFS=$as_save_IFS 11644 test -z "$as_dir" && as_dir=. 11645 for ac_exec_ext in '' $ac_executable_extensions; do 11646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11647 ac_cv_prog_ac_ct_STRIP="strip" 11648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11649 break 2 11650 fi 11651done 11652 done 11653IFS=$as_save_IFS 11654 11655fi 11656fi 11657ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 11658if test -n "$ac_ct_STRIP"; then 11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 11660$as_echo "$ac_ct_STRIP" >&6; } 11661else 11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11663$as_echo "no" >&6; } 11664fi 11665 11666 if test "x$ac_ct_STRIP" = x; then 11667 STRIP=":" 11668 else 11669 case $cross_compiling:$ac_tool_warned in 11670yes:) 11671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11673ac_tool_warned=yes ;; 11674esac 11675 STRIP=$ac_ct_STRIP 11676 fi 11677else 11678 STRIP="$ac_cv_prog_STRIP" 11679fi 11680 11681test -z "$STRIP" && STRIP=: 11682 11683 11684 11685 11686 11687 11688if test -n "$ac_tool_prefix"; then 11689 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 11690set dummy ${ac_tool_prefix}ranlib; ac_word=$2 11691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11692$as_echo_n "checking for $ac_word... " >&6; } 11693if ${ac_cv_prog_RANLIB+:} false; then : 11694 $as_echo_n "(cached) " >&6 11695else 11696 if test -n "$RANLIB"; then 11697 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 11698else 11699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11700for as_dir in $PATH 11701do 11702 IFS=$as_save_IFS 11703 test -z "$as_dir" && as_dir=. 11704 for ac_exec_ext in '' $ac_executable_extensions; do 11705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11706 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 11707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11708 break 2 11709 fi 11710done 11711 done 11712IFS=$as_save_IFS 11713 11714fi 11715fi 11716RANLIB=$ac_cv_prog_RANLIB 11717if test -n "$RANLIB"; then 11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 11719$as_echo "$RANLIB" >&6; } 11720else 11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11722$as_echo "no" >&6; } 11723fi 11724 11725 11726fi 11727if test -z "$ac_cv_prog_RANLIB"; then 11728 ac_ct_RANLIB=$RANLIB 11729 # Extract the first word of "ranlib", so it can be a program name with args. 11730set dummy ranlib; ac_word=$2 11731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11732$as_echo_n "checking for $ac_word... " >&6; } 11733if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 11734 $as_echo_n "(cached) " >&6 11735else 11736 if test -n "$ac_ct_RANLIB"; then 11737 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 11738else 11739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11740for as_dir in $PATH 11741do 11742 IFS=$as_save_IFS 11743 test -z "$as_dir" && as_dir=. 11744 for ac_exec_ext in '' $ac_executable_extensions; do 11745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11746 ac_cv_prog_ac_ct_RANLIB="ranlib" 11747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11748 break 2 11749 fi 11750done 11751 done 11752IFS=$as_save_IFS 11753 11754fi 11755fi 11756ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 11757if test -n "$ac_ct_RANLIB"; then 11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 11759$as_echo "$ac_ct_RANLIB" >&6; } 11760else 11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11762$as_echo "no" >&6; } 11763fi 11764 11765 if test "x$ac_ct_RANLIB" = x; then 11766 RANLIB=":" 11767 else 11768 case $cross_compiling:$ac_tool_warned in 11769yes:) 11770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11772ac_tool_warned=yes ;; 11773esac 11774 RANLIB=$ac_ct_RANLIB 11775 fi 11776else 11777 RANLIB="$ac_cv_prog_RANLIB" 11778fi 11779 11780test -z "$RANLIB" && RANLIB=: 11781 11782 11783 11784 11785 11786 11787# Determine commands to create old-style static archives. 11788old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 11789old_postinstall_cmds='chmod 644 $oldlib' 11790old_postuninstall_cmds= 11791 11792if test -n "$RANLIB"; then 11793 case $host_os in 11794 openbsd*) 11795 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 11796 ;; 11797 *) 11798 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 11799 ;; 11800 esac 11801 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 11802fi 11803 11804case $host_os in 11805 darwin*) 11806 lock_old_archive_extraction=yes ;; 11807 *) 11808 lock_old_archive_extraction=no ;; 11809esac 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849# If no C compiler was specified, use CC. 11850LTCC=${LTCC-"$CC"} 11851 11852# If no C compiler flags were specified, use CFLAGS. 11853LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11854 11855# Allow CC to be a program name with arguments. 11856compiler=$CC 11857 11858 11859# Check for command to grab the raw symbol name followed by C symbol from nm. 11860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 11861$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 11862if ${lt_cv_sys_global_symbol_pipe+:} false; then : 11863 $as_echo_n "(cached) " >&6 11864else 11865 11866# These are sane defaults that work on at least a few old systems. 11867# [They come from Ultrix. What could be older than Ultrix?!! ;)] 11868 11869# Character class describing NM global symbol codes. 11870symcode='[BCDEGRST]' 11871 11872# Regexp to match symbols that can be accessed directly from C. 11873sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 11874 11875# Define system-specific variables. 11876case $host_os in 11877aix*) 11878 symcode='[BCDT]' 11879 ;; 11880cygwin* | mingw* | pw32* | cegcc*) 11881 symcode='[ABCDGISTW]' 11882 ;; 11883hpux*) 11884 if test "$host_cpu" = ia64; then 11885 symcode='[ABCDEGRST]' 11886 fi 11887 ;; 11888irix* | nonstopux*) 11889 symcode='[BCDEGRST]' 11890 ;; 11891osf*) 11892 symcode='[BCDEGQRST]' 11893 ;; 11894solaris*) 11895 symcode='[BDRT]' 11896 ;; 11897sco3.2v5*) 11898 symcode='[DT]' 11899 ;; 11900sysv4.2uw2*) 11901 symcode='[DT]' 11902 ;; 11903sysv5* | sco5v6* | unixware* | OpenUNIX*) 11904 symcode='[ABDT]' 11905 ;; 11906sysv4) 11907 symcode='[DFNSTU]' 11908 ;; 11909esac 11910 11911# If we're using GNU nm, then use its standard symbol codes. 11912case `$NM -V 2>&1` in 11913*GNU* | *'with BFD'*) 11914 symcode='[ABCDGIRSTW]' ;; 11915esac 11916 11917# Transform an extracted symbol line into a proper C declaration. 11918# Some systems (esp. on ia64) link data and code symbols differently, 11919# so use this general approach. 11920lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 11921 11922# Transform an extracted symbol line into symbol name and symbol address 11923lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 11924lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 11925 11926# Handle CRLF in mingw tool chain 11927opt_cr= 11928case $build_os in 11929mingw*) 11930 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 11931 ;; 11932esac 11933 11934# Try without a prefix underscore, then with it. 11935for ac_symprfx in "" "_"; do 11936 11937 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 11938 symxfrm="\\1 $ac_symprfx\\2 \\2" 11939 11940 # Write the raw and C identifiers. 11941 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 11942 # Fake it for dumpbin and say T for any non-static function 11943 # and D for any global variable. 11944 # Also find C++ and __fastcall symbols from MSVC++, 11945 # which start with @ or ?. 11946 lt_cv_sys_global_symbol_pipe="$AWK '"\ 11947" {last_section=section; section=\$ 3};"\ 11948" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 11949" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 11950" \$ 0!~/External *\|/{next};"\ 11951" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 11952" {if(hide[section]) next};"\ 11953" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 11954" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 11955" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 11956" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 11957" ' prfx=^$ac_symprfx" 11958 else 11959 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 11960 fi 11961 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 11962 11963 # Check to see that the pipe works correctly. 11964 pipe_works=no 11965 11966 rm -f conftest* 11967 cat > conftest.$ac_ext <<_LT_EOF 11968#ifdef __cplusplus 11969extern "C" { 11970#endif 11971char nm_test_var; 11972void nm_test_func(void); 11973void nm_test_func(void){} 11974#ifdef __cplusplus 11975} 11976#endif 11977int main(){nm_test_var='a';nm_test_func();return(0);} 11978_LT_EOF 11979 11980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11981 (eval $ac_compile) 2>&5 11982 ac_status=$? 11983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11984 test $ac_status = 0; }; then 11985 # Now try to grab the symbols. 11986 nlist=conftest.nm 11987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 11988 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 11989 ac_status=$? 11990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11991 test $ac_status = 0; } && test -s "$nlist"; then 11992 # Try sorting and uniquifying the output. 11993 if sort "$nlist" | uniq > "$nlist"T; then 11994 mv -f "$nlist"T "$nlist" 11995 else 11996 rm -f "$nlist"T 11997 fi 11998 11999 # Make sure that we snagged all the symbols we need. 12000 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12001 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12002 cat <<_LT_EOF > conftest.$ac_ext 12003/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12004#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 12005/* DATA imports from DLLs on WIN32 con't be const, because runtime 12006 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12007# define LT_DLSYM_CONST 12008#elif defined(__osf__) 12009/* This system does not cope well with relocations in const data. */ 12010# define LT_DLSYM_CONST 12011#else 12012# define LT_DLSYM_CONST const 12013#endif 12014 12015#ifdef __cplusplus 12016extern "C" { 12017#endif 12018 12019_LT_EOF 12020 # Now generate the symbol file. 12021 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12022 12023 cat <<_LT_EOF >> conftest.$ac_ext 12024 12025/* The mapping between symbol names and symbols. */ 12026LT_DLSYM_CONST struct { 12027 const char *name; 12028 void *address; 12029} 12030lt__PROGRAM__LTX_preloaded_symbols[] = 12031{ 12032 { "@PROGRAM@", (void *) 0 }, 12033_LT_EOF 12034 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12035 cat <<\_LT_EOF >> conftest.$ac_ext 12036 {0, (void *) 0} 12037}; 12038 12039/* This works around a problem in FreeBSD linker */ 12040#ifdef FREEBSD_WORKAROUND 12041static const void *lt_preloaded_setup() { 12042 return lt__PROGRAM__LTX_preloaded_symbols; 12043} 12044#endif 12045 12046#ifdef __cplusplus 12047} 12048#endif 12049_LT_EOF 12050 # Now try linking the two files. 12051 mv conftest.$ac_objext conftstm.$ac_objext 12052 lt_globsym_save_LIBS=$LIBS 12053 lt_globsym_save_CFLAGS=$CFLAGS 12054 LIBS="conftstm.$ac_objext" 12055 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12057 (eval $ac_link) 2>&5 12058 ac_status=$? 12059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12060 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 12061 pipe_works=yes 12062 fi 12063 LIBS=$lt_globsym_save_LIBS 12064 CFLAGS=$lt_globsym_save_CFLAGS 12065 else 12066 echo "cannot find nm_test_func in $nlist" >&5 12067 fi 12068 else 12069 echo "cannot find nm_test_var in $nlist" >&5 12070 fi 12071 else 12072 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12073 fi 12074 else 12075 echo "$progname: failed program was:" >&5 12076 cat conftest.$ac_ext >&5 12077 fi 12078 rm -rf conftest* conftst* 12079 12080 # Do not use the global_symbol_pipe unless it works. 12081 if test "$pipe_works" = yes; then 12082 break 12083 else 12084 lt_cv_sys_global_symbol_pipe= 12085 fi 12086done 12087 12088fi 12089 12090if test -z "$lt_cv_sys_global_symbol_pipe"; then 12091 lt_cv_sys_global_symbol_to_cdecl= 12092fi 12093if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12095$as_echo "failed" >&6; } 12096else 12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12098$as_echo "ok" >&6; } 12099fi 12100 12101# Response file support. 12102if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12103 nm_file_list_spec='@' 12104elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12105 nm_file_list_spec='@' 12106fi 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 12135$as_echo_n "checking for sysroot... " >&6; } 12136 12137# Check whether --with-sysroot was given. 12138if test "${with_sysroot+set}" = set; then : 12139 withval=$with_sysroot; 12140else 12141 with_sysroot=no 12142fi 12143 12144 12145lt_sysroot= 12146case ${with_sysroot} in #( 12147 yes) 12148 if test "$GCC" = yes; then 12149 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 12150 fi 12151 ;; #( 12152 /*) 12153 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 12154 ;; #( 12155 no|'') 12156 ;; #( 12157 *) 12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 12159$as_echo "${with_sysroot}" >&6; } 12160 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 12161 ;; 12162esac 12163 12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 12165$as_echo "${lt_sysroot:-no}" >&6; } 12166 12167 12168 12169 12170 12171# Check whether --enable-libtool-lock was given. 12172if test "${enable_libtool_lock+set}" = set; then : 12173 enableval=$enable_libtool_lock; 12174fi 12175 12176test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 12177 12178# Some flags need to be propagated to the compiler or linker for good 12179# libtool support. 12180case $host in 12181ia64-*-hpux*) 12182 # Find out which ABI we are using. 12183 echo 'int i;' > conftest.$ac_ext 12184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12185 (eval $ac_compile) 2>&5 12186 ac_status=$? 12187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12188 test $ac_status = 0; }; then 12189 case `/usr/bin/file conftest.$ac_objext` in 12190 *ELF-32*) 12191 HPUX_IA64_MODE="32" 12192 ;; 12193 *ELF-64*) 12194 HPUX_IA64_MODE="64" 12195 ;; 12196 esac 12197 fi 12198 rm -rf conftest* 12199 ;; 12200*-*-irix6*) 12201 # Find out which ABI we are using. 12202 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 12203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12204 (eval $ac_compile) 2>&5 12205 ac_status=$? 12206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12207 test $ac_status = 0; }; then 12208 if test "$lt_cv_prog_gnu_ld" = yes; then 12209 case `/usr/bin/file conftest.$ac_objext` in 12210 *32-bit*) 12211 LD="${LD-ld} -melf32bsmip" 12212 ;; 12213 *N32*) 12214 LD="${LD-ld} -melf32bmipn32" 12215 ;; 12216 *64-bit*) 12217 LD="${LD-ld} -melf64bmip" 12218 ;; 12219 esac 12220 else 12221 case `/usr/bin/file conftest.$ac_objext` in 12222 *32-bit*) 12223 LD="${LD-ld} -32" 12224 ;; 12225 *N32*) 12226 LD="${LD-ld} -n32" 12227 ;; 12228 *64-bit*) 12229 LD="${LD-ld} -64" 12230 ;; 12231 esac 12232 fi 12233 fi 12234 rm -rf conftest* 12235 ;; 12236 12237x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 12238s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 12239 # Find out which ABI we are using. 12240 echo 'int i;' > conftest.$ac_ext 12241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12242 (eval $ac_compile) 2>&5 12243 ac_status=$? 12244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12245 test $ac_status = 0; }; then 12246 case `/usr/bin/file conftest.o` in 12247 *32-bit*) 12248 case $host in 12249 x86_64-*kfreebsd*-gnu) 12250 LD="${LD-ld} -m elf_i386_fbsd" 12251 ;; 12252 x86_64-*linux*) 12253 LD="${LD-ld} -m elf_i386" 12254 ;; 12255 ppc64-*linux*|powerpc64-*linux*) 12256 LD="${LD-ld} -m elf32ppclinux" 12257 ;; 12258 s390x-*linux*) 12259 LD="${LD-ld} -m elf_s390" 12260 ;; 12261 sparc64-*linux*) 12262 LD="${LD-ld} -m elf32_sparc" 12263 ;; 12264 esac 12265 ;; 12266 *64-bit*) 12267 case $host in 12268 x86_64-*kfreebsd*-gnu) 12269 LD="${LD-ld} -m elf_x86_64_fbsd" 12270 ;; 12271 x86_64-*linux*) 12272 LD="${LD-ld} -m elf_x86_64" 12273 ;; 12274 ppc*-*linux*|powerpc*-*linux*) 12275 LD="${LD-ld} -m elf64ppc" 12276 ;; 12277 s390*-*linux*|s390*-*tpf*) 12278 LD="${LD-ld} -m elf64_s390" 12279 ;; 12280 sparc*-*linux*) 12281 LD="${LD-ld} -m elf64_sparc" 12282 ;; 12283 esac 12284 ;; 12285 esac 12286 fi 12287 rm -rf conftest* 12288 ;; 12289 12290*-*-sco3.2v5*) 12291 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 12292 SAVE_CFLAGS="$CFLAGS" 12293 CFLAGS="$CFLAGS -belf" 12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 12295$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 12296if ${lt_cv_cc_needs_belf+:} false; then : 12297 $as_echo_n "(cached) " >&6 12298else 12299 ac_ext=c 12300ac_cpp='$CPP $CPPFLAGS' 12301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12303ac_compiler_gnu=$ac_cv_c_compiler_gnu 12304 12305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12306/* end confdefs.h. */ 12307 12308int 12309main () 12310{ 12311 12312 ; 12313 return 0; 12314} 12315_ACEOF 12316if ac_fn_c_try_link "$LINENO"; then : 12317 lt_cv_cc_needs_belf=yes 12318else 12319 lt_cv_cc_needs_belf=no 12320fi 12321rm -f core conftest.err conftest.$ac_objext \ 12322 conftest$ac_exeext conftest.$ac_ext 12323 ac_ext=c 12324ac_cpp='$CPP $CPPFLAGS' 12325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12327ac_compiler_gnu=$ac_cv_c_compiler_gnu 12328 12329fi 12330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 12331$as_echo "$lt_cv_cc_needs_belf" >&6; } 12332 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 12333 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 12334 CFLAGS="$SAVE_CFLAGS" 12335 fi 12336 ;; 12337*-*solaris*) 12338 # Find out which ABI we are using. 12339 echo 'int i;' > conftest.$ac_ext 12340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12341 (eval $ac_compile) 2>&5 12342 ac_status=$? 12343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12344 test $ac_status = 0; }; then 12345 case `/usr/bin/file conftest.o` in 12346 *64-bit*) 12347 case $lt_cv_prog_gnu_ld in 12348 yes*) 12349 case $host in 12350 i?86-*-solaris*) 12351 LD="${LD-ld} -m elf_x86_64" 12352 ;; 12353 sparc*-*-solaris*) 12354 LD="${LD-ld} -m elf64_sparc" 12355 ;; 12356 esac 12357 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 12358 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 12359 LD="${LD-ld}_sol2" 12360 fi 12361 ;; 12362 *) 12363 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 12364 LD="${LD-ld} -64" 12365 fi 12366 ;; 12367 esac 12368 ;; 12369 esac 12370 fi 12371 rm -rf conftest* 12372 ;; 12373esac 12374 12375need_locks="$enable_libtool_lock" 12376 12377if test -n "$ac_tool_prefix"; then 12378 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 12379set dummy ${ac_tool_prefix}mt; ac_word=$2 12380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12381$as_echo_n "checking for $ac_word... " >&6; } 12382if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 12383 $as_echo_n "(cached) " >&6 12384else 12385 if test -n "$MANIFEST_TOOL"; then 12386 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 12387else 12388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12389for as_dir in $PATH 12390do 12391 IFS=$as_save_IFS 12392 test -z "$as_dir" && as_dir=. 12393 for ac_exec_ext in '' $ac_executable_extensions; do 12394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12395 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 12396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12397 break 2 12398 fi 12399done 12400 done 12401IFS=$as_save_IFS 12402 12403fi 12404fi 12405MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 12406if test -n "$MANIFEST_TOOL"; then 12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 12408$as_echo "$MANIFEST_TOOL" >&6; } 12409else 12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12411$as_echo "no" >&6; } 12412fi 12413 12414 12415fi 12416if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 12417 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 12418 # Extract the first word of "mt", so it can be a program name with args. 12419set dummy mt; ac_word=$2 12420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12421$as_echo_n "checking for $ac_word... " >&6; } 12422if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 12423 $as_echo_n "(cached) " >&6 12424else 12425 if test -n "$ac_ct_MANIFEST_TOOL"; then 12426 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 12427else 12428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12429for as_dir in $PATH 12430do 12431 IFS=$as_save_IFS 12432 test -z "$as_dir" && as_dir=. 12433 for ac_exec_ext in '' $ac_executable_extensions; do 12434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12435 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 12436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12437 break 2 12438 fi 12439done 12440 done 12441IFS=$as_save_IFS 12442 12443fi 12444fi 12445ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 12446if test -n "$ac_ct_MANIFEST_TOOL"; then 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 12448$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 12449else 12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12451$as_echo "no" >&6; } 12452fi 12453 12454 if test "x$ac_ct_MANIFEST_TOOL" = x; then 12455 MANIFEST_TOOL=":" 12456 else 12457 case $cross_compiling:$ac_tool_warned in 12458yes:) 12459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12461ac_tool_warned=yes ;; 12462esac 12463 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 12464 fi 12465else 12466 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 12467fi 12468 12469test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 12471$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 12472if ${lt_cv_path_mainfest_tool+:} false; then : 12473 $as_echo_n "(cached) " >&6 12474else 12475 lt_cv_path_mainfest_tool=no 12476 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 12477 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 12478 cat conftest.err >&5 12479 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 12480 lt_cv_path_mainfest_tool=yes 12481 fi 12482 rm -f conftest* 12483fi 12484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 12485$as_echo "$lt_cv_path_mainfest_tool" >&6; } 12486if test "x$lt_cv_path_mainfest_tool" != xyes; then 12487 MANIFEST_TOOL=: 12488fi 12489 12490 12491 12492 12493 12494 12495 case $host_os in 12496 rhapsody* | darwin*) 12497 if test -n "$ac_tool_prefix"; then 12498 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 12499set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 12500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12501$as_echo_n "checking for $ac_word... " >&6; } 12502if ${ac_cv_prog_DSYMUTIL+:} false; then : 12503 $as_echo_n "(cached) " >&6 12504else 12505 if test -n "$DSYMUTIL"; then 12506 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 12507else 12508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12509for as_dir in $PATH 12510do 12511 IFS=$as_save_IFS 12512 test -z "$as_dir" && as_dir=. 12513 for ac_exec_ext in '' $ac_executable_extensions; do 12514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12515 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 12516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12517 break 2 12518 fi 12519done 12520 done 12521IFS=$as_save_IFS 12522 12523fi 12524fi 12525DSYMUTIL=$ac_cv_prog_DSYMUTIL 12526if test -n "$DSYMUTIL"; then 12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 12528$as_echo "$DSYMUTIL" >&6; } 12529else 12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12531$as_echo "no" >&6; } 12532fi 12533 12534 12535fi 12536if test -z "$ac_cv_prog_DSYMUTIL"; then 12537 ac_ct_DSYMUTIL=$DSYMUTIL 12538 # Extract the first word of "dsymutil", so it can be a program name with args. 12539set dummy dsymutil; ac_word=$2 12540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12541$as_echo_n "checking for $ac_word... " >&6; } 12542if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 12543 $as_echo_n "(cached) " >&6 12544else 12545 if test -n "$ac_ct_DSYMUTIL"; then 12546 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 12547else 12548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12549for as_dir in $PATH 12550do 12551 IFS=$as_save_IFS 12552 test -z "$as_dir" && as_dir=. 12553 for ac_exec_ext in '' $ac_executable_extensions; do 12554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12555 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 12556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12557 break 2 12558 fi 12559done 12560 done 12561IFS=$as_save_IFS 12562 12563fi 12564fi 12565ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 12566if test -n "$ac_ct_DSYMUTIL"; then 12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 12568$as_echo "$ac_ct_DSYMUTIL" >&6; } 12569else 12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12571$as_echo "no" >&6; } 12572fi 12573 12574 if test "x$ac_ct_DSYMUTIL" = x; then 12575 DSYMUTIL=":" 12576 else 12577 case $cross_compiling:$ac_tool_warned in 12578yes:) 12579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12581ac_tool_warned=yes ;; 12582esac 12583 DSYMUTIL=$ac_ct_DSYMUTIL 12584 fi 12585else 12586 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 12587fi 12588 12589 if test -n "$ac_tool_prefix"; then 12590 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 12591set dummy ${ac_tool_prefix}nmedit; ac_word=$2 12592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12593$as_echo_n "checking for $ac_word... " >&6; } 12594if ${ac_cv_prog_NMEDIT+:} false; then : 12595 $as_echo_n "(cached) " >&6 12596else 12597 if test -n "$NMEDIT"; then 12598 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 12599else 12600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12601for as_dir in $PATH 12602do 12603 IFS=$as_save_IFS 12604 test -z "$as_dir" && as_dir=. 12605 for ac_exec_ext in '' $ac_executable_extensions; do 12606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12607 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 12608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12609 break 2 12610 fi 12611done 12612 done 12613IFS=$as_save_IFS 12614 12615fi 12616fi 12617NMEDIT=$ac_cv_prog_NMEDIT 12618if test -n "$NMEDIT"; then 12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 12620$as_echo "$NMEDIT" >&6; } 12621else 12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12623$as_echo "no" >&6; } 12624fi 12625 12626 12627fi 12628if test -z "$ac_cv_prog_NMEDIT"; then 12629 ac_ct_NMEDIT=$NMEDIT 12630 # Extract the first word of "nmedit", so it can be a program name with args. 12631set dummy nmedit; ac_word=$2 12632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12633$as_echo_n "checking for $ac_word... " >&6; } 12634if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 12635 $as_echo_n "(cached) " >&6 12636else 12637 if test -n "$ac_ct_NMEDIT"; then 12638 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 12639else 12640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12641for as_dir in $PATH 12642do 12643 IFS=$as_save_IFS 12644 test -z "$as_dir" && as_dir=. 12645 for ac_exec_ext in '' $ac_executable_extensions; do 12646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12647 ac_cv_prog_ac_ct_NMEDIT="nmedit" 12648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12649 break 2 12650 fi 12651done 12652 done 12653IFS=$as_save_IFS 12654 12655fi 12656fi 12657ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 12658if test -n "$ac_ct_NMEDIT"; then 12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 12660$as_echo "$ac_ct_NMEDIT" >&6; } 12661else 12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12663$as_echo "no" >&6; } 12664fi 12665 12666 if test "x$ac_ct_NMEDIT" = x; then 12667 NMEDIT=":" 12668 else 12669 case $cross_compiling:$ac_tool_warned in 12670yes:) 12671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12673ac_tool_warned=yes ;; 12674esac 12675 NMEDIT=$ac_ct_NMEDIT 12676 fi 12677else 12678 NMEDIT="$ac_cv_prog_NMEDIT" 12679fi 12680 12681 if test -n "$ac_tool_prefix"; then 12682 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 12683set dummy ${ac_tool_prefix}lipo; ac_word=$2 12684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12685$as_echo_n "checking for $ac_word... " >&6; } 12686if ${ac_cv_prog_LIPO+:} false; then : 12687 $as_echo_n "(cached) " >&6 12688else 12689 if test -n "$LIPO"; then 12690 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 12691else 12692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12693for as_dir in $PATH 12694do 12695 IFS=$as_save_IFS 12696 test -z "$as_dir" && as_dir=. 12697 for ac_exec_ext in '' $ac_executable_extensions; do 12698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12699 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 12700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12701 break 2 12702 fi 12703done 12704 done 12705IFS=$as_save_IFS 12706 12707fi 12708fi 12709LIPO=$ac_cv_prog_LIPO 12710if test -n "$LIPO"; then 12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 12712$as_echo "$LIPO" >&6; } 12713else 12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12715$as_echo "no" >&6; } 12716fi 12717 12718 12719fi 12720if test -z "$ac_cv_prog_LIPO"; then 12721 ac_ct_LIPO=$LIPO 12722 # Extract the first word of "lipo", so it can be a program name with args. 12723set dummy lipo; ac_word=$2 12724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12725$as_echo_n "checking for $ac_word... " >&6; } 12726if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 12727 $as_echo_n "(cached) " >&6 12728else 12729 if test -n "$ac_ct_LIPO"; then 12730 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 12731else 12732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12733for as_dir in $PATH 12734do 12735 IFS=$as_save_IFS 12736 test -z "$as_dir" && as_dir=. 12737 for ac_exec_ext in '' $ac_executable_extensions; do 12738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12739 ac_cv_prog_ac_ct_LIPO="lipo" 12740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12741 break 2 12742 fi 12743done 12744 done 12745IFS=$as_save_IFS 12746 12747fi 12748fi 12749ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 12750if test -n "$ac_ct_LIPO"; then 12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 12752$as_echo "$ac_ct_LIPO" >&6; } 12753else 12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12755$as_echo "no" >&6; } 12756fi 12757 12758 if test "x$ac_ct_LIPO" = x; then 12759 LIPO=":" 12760 else 12761 case $cross_compiling:$ac_tool_warned in 12762yes:) 12763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12765ac_tool_warned=yes ;; 12766esac 12767 LIPO=$ac_ct_LIPO 12768 fi 12769else 12770 LIPO="$ac_cv_prog_LIPO" 12771fi 12772 12773 if test -n "$ac_tool_prefix"; then 12774 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 12775set dummy ${ac_tool_prefix}otool; ac_word=$2 12776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12777$as_echo_n "checking for $ac_word... " >&6; } 12778if ${ac_cv_prog_OTOOL+:} false; then : 12779 $as_echo_n "(cached) " >&6 12780else 12781 if test -n "$OTOOL"; then 12782 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 12783else 12784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12785for as_dir in $PATH 12786do 12787 IFS=$as_save_IFS 12788 test -z "$as_dir" && as_dir=. 12789 for ac_exec_ext in '' $ac_executable_extensions; do 12790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12791 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12793 break 2 12794 fi 12795done 12796 done 12797IFS=$as_save_IFS 12798 12799fi 12800fi 12801OTOOL=$ac_cv_prog_OTOOL 12802if test -n "$OTOOL"; then 12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 12804$as_echo "$OTOOL" >&6; } 12805else 12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12807$as_echo "no" >&6; } 12808fi 12809 12810 12811fi 12812if test -z "$ac_cv_prog_OTOOL"; then 12813 ac_ct_OTOOL=$OTOOL 12814 # Extract the first word of "otool", so it can be a program name with args. 12815set dummy otool; ac_word=$2 12816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12817$as_echo_n "checking for $ac_word... " >&6; } 12818if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 12819 $as_echo_n "(cached) " >&6 12820else 12821 if test -n "$ac_ct_OTOOL"; then 12822 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 12823else 12824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12825for as_dir in $PATH 12826do 12827 IFS=$as_save_IFS 12828 test -z "$as_dir" && as_dir=. 12829 for ac_exec_ext in '' $ac_executable_extensions; do 12830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12831 ac_cv_prog_ac_ct_OTOOL="otool" 12832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12833 break 2 12834 fi 12835done 12836 done 12837IFS=$as_save_IFS 12838 12839fi 12840fi 12841ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 12842if test -n "$ac_ct_OTOOL"; then 12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 12844$as_echo "$ac_ct_OTOOL" >&6; } 12845else 12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12847$as_echo "no" >&6; } 12848fi 12849 12850 if test "x$ac_ct_OTOOL" = x; then 12851 OTOOL=":" 12852 else 12853 case $cross_compiling:$ac_tool_warned in 12854yes:) 12855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12857ac_tool_warned=yes ;; 12858esac 12859 OTOOL=$ac_ct_OTOOL 12860 fi 12861else 12862 OTOOL="$ac_cv_prog_OTOOL" 12863fi 12864 12865 if test -n "$ac_tool_prefix"; then 12866 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 12867set dummy ${ac_tool_prefix}otool64; ac_word=$2 12868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12869$as_echo_n "checking for $ac_word... " >&6; } 12870if ${ac_cv_prog_OTOOL64+:} false; then : 12871 $as_echo_n "(cached) " >&6 12872else 12873 if test -n "$OTOOL64"; then 12874 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 12875else 12876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12877for as_dir in $PATH 12878do 12879 IFS=$as_save_IFS 12880 test -z "$as_dir" && as_dir=. 12881 for ac_exec_ext in '' $ac_executable_extensions; do 12882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12883 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 12884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12885 break 2 12886 fi 12887done 12888 done 12889IFS=$as_save_IFS 12890 12891fi 12892fi 12893OTOOL64=$ac_cv_prog_OTOOL64 12894if test -n "$OTOOL64"; then 12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 12896$as_echo "$OTOOL64" >&6; } 12897else 12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12899$as_echo "no" >&6; } 12900fi 12901 12902 12903fi 12904if test -z "$ac_cv_prog_OTOOL64"; then 12905 ac_ct_OTOOL64=$OTOOL64 12906 # Extract the first word of "otool64", so it can be a program name with args. 12907set dummy otool64; ac_word=$2 12908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12909$as_echo_n "checking for $ac_word... " >&6; } 12910if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 12911 $as_echo_n "(cached) " >&6 12912else 12913 if test -n "$ac_ct_OTOOL64"; then 12914 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 12915else 12916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12917for as_dir in $PATH 12918do 12919 IFS=$as_save_IFS 12920 test -z "$as_dir" && as_dir=. 12921 for ac_exec_ext in '' $ac_executable_extensions; do 12922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12923 ac_cv_prog_ac_ct_OTOOL64="otool64" 12924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12925 break 2 12926 fi 12927done 12928 done 12929IFS=$as_save_IFS 12930 12931fi 12932fi 12933ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 12934if test -n "$ac_ct_OTOOL64"; then 12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 12936$as_echo "$ac_ct_OTOOL64" >&6; } 12937else 12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12939$as_echo "no" >&6; } 12940fi 12941 12942 if test "x$ac_ct_OTOOL64" = x; then 12943 OTOOL64=":" 12944 else 12945 case $cross_compiling:$ac_tool_warned in 12946yes:) 12947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12949ac_tool_warned=yes ;; 12950esac 12951 OTOOL64=$ac_ct_OTOOL64 12952 fi 12953else 12954 OTOOL64="$ac_cv_prog_OTOOL64" 12955fi 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 12984$as_echo_n "checking for -single_module linker flag... " >&6; } 12985if ${lt_cv_apple_cc_single_mod+:} false; then : 12986 $as_echo_n "(cached) " >&6 12987else 12988 lt_cv_apple_cc_single_mod=no 12989 if test -z "${LT_MULTI_MODULE}"; then 12990 # By default we will add the -single_module flag. You can override 12991 # by either setting the environment variable LT_MULTI_MODULE 12992 # non-empty at configure time, or by adding -multi_module to the 12993 # link flags. 12994 rm -rf libconftest.dylib* 12995 echo "int foo(void){return 1;}" > conftest.c 12996 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 12997-dynamiclib -Wl,-single_module conftest.c" >&5 12998 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 12999 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 13000 _lt_result=$? 13001 # If there is a non-empty error log, and "single_module" 13002 # appears in it, assume the flag caused a linker warning 13003 if test -s conftest.err && $GREP single_module conftest.err; then 13004 cat conftest.err >&5 13005 # Otherwise, if the output was created with a 0 exit code from 13006 # the compiler, it worked. 13007 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 13008 lt_cv_apple_cc_single_mod=yes 13009 else 13010 cat conftest.err >&5 13011 fi 13012 rm -rf libconftest.dylib* 13013 rm -f conftest.* 13014 fi 13015fi 13016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 13017$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 13018 13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 13020$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 13021if ${lt_cv_ld_exported_symbols_list+:} false; then : 13022 $as_echo_n "(cached) " >&6 13023else 13024 lt_cv_ld_exported_symbols_list=no 13025 save_LDFLAGS=$LDFLAGS 13026 echo "_main" > conftest.sym 13027 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 13028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13029/* end confdefs.h. */ 13030 13031int 13032main () 13033{ 13034 13035 ; 13036 return 0; 13037} 13038_ACEOF 13039if ac_fn_c_try_link "$LINENO"; then : 13040 lt_cv_ld_exported_symbols_list=yes 13041else 13042 lt_cv_ld_exported_symbols_list=no 13043fi 13044rm -f core conftest.err conftest.$ac_objext \ 13045 conftest$ac_exeext conftest.$ac_ext 13046 LDFLAGS="$save_LDFLAGS" 13047 13048fi 13049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 13050$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 13051 13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 13053$as_echo_n "checking for -force_load linker flag... " >&6; } 13054if ${lt_cv_ld_force_load+:} false; then : 13055 $as_echo_n "(cached) " >&6 13056else 13057 lt_cv_ld_force_load=no 13058 cat > conftest.c << _LT_EOF 13059int forced_loaded() { return 2;} 13060_LT_EOF 13061 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 13062 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 13063 echo "$AR cru libconftest.a conftest.o" >&5 13064 $AR cru libconftest.a conftest.o 2>&5 13065 echo "$RANLIB libconftest.a" >&5 13066 $RANLIB libconftest.a 2>&5 13067 cat > conftest.c << _LT_EOF 13068int main() { return 0;} 13069_LT_EOF 13070 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 13071 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 13072 _lt_result=$? 13073 if test -s conftest.err && $GREP force_load conftest.err; then 13074 cat conftest.err >&5 13075 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 13076 lt_cv_ld_force_load=yes 13077 else 13078 cat conftest.err >&5 13079 fi 13080 rm -f conftest.err libconftest.a conftest conftest.c 13081 rm -rf conftest.dSYM 13082 13083fi 13084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 13085$as_echo "$lt_cv_ld_force_load" >&6; } 13086 case $host_os in 13087 rhapsody* | darwin1.[012]) 13088 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 13089 darwin1.*) 13090 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13091 darwin*) # darwin 5.x on 13092 # if running on 10.5 or later, the deployment target defaults 13093 # to the OS version, if on x86, and 10.4, the deployment 13094 # target defaults to 10.4. Don't you love it? 13095 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 13096 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 13097 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13098 10.[012]*) 13099 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13100 10.*) 13101 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13102 esac 13103 ;; 13104 esac 13105 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 13106 _lt_dar_single_mod='$single_module' 13107 fi 13108 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 13109 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 13110 else 13111 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 13112 fi 13113 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 13114 _lt_dsymutil='~$DSYMUTIL $lib || :' 13115 else 13116 _lt_dsymutil= 13117 fi 13118 ;; 13119 esac 13120 13121for ac_header in dlfcn.h 13122do : 13123 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 13124" 13125if test "x$ac_cv_header_dlfcn_h" = xyes; then : 13126 cat >>confdefs.h <<_ACEOF 13127#define HAVE_DLFCN_H 1 13128_ACEOF 13129 13130fi 13131 13132done 13133 13134 13135 13136 13137func_stripname_cnf () 13138{ 13139 case ${2} in 13140 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 13141 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 13142 esac 13143} # func_stripname_cnf 13144 13145 13146 13147 13148 13149# Set options 13150enable_win32_dll=yes 13151 13152case $host in 13153*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 13154 if test -n "$ac_tool_prefix"; then 13155 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 13156set dummy ${ac_tool_prefix}as; ac_word=$2 13157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13158$as_echo_n "checking for $ac_word... " >&6; } 13159if ${ac_cv_prog_AS+:} false; then : 13160 $as_echo_n "(cached) " >&6 13161else 13162 if test -n "$AS"; then 13163 ac_cv_prog_AS="$AS" # Let the user override the test. 13164else 13165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13166for as_dir in $PATH 13167do 13168 IFS=$as_save_IFS 13169 test -z "$as_dir" && as_dir=. 13170 for ac_exec_ext in '' $ac_executable_extensions; do 13171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13172 ac_cv_prog_AS="${ac_tool_prefix}as" 13173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13174 break 2 13175 fi 13176done 13177 done 13178IFS=$as_save_IFS 13179 13180fi 13181fi 13182AS=$ac_cv_prog_AS 13183if test -n "$AS"; then 13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 13185$as_echo "$AS" >&6; } 13186else 13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13188$as_echo "no" >&6; } 13189fi 13190 13191 13192fi 13193if test -z "$ac_cv_prog_AS"; then 13194 ac_ct_AS=$AS 13195 # Extract the first word of "as", so it can be a program name with args. 13196set dummy as; ac_word=$2 13197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13198$as_echo_n "checking for $ac_word... " >&6; } 13199if ${ac_cv_prog_ac_ct_AS+:} false; then : 13200 $as_echo_n "(cached) " >&6 13201else 13202 if test -n "$ac_ct_AS"; then 13203 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 13204else 13205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13206for as_dir in $PATH 13207do 13208 IFS=$as_save_IFS 13209 test -z "$as_dir" && as_dir=. 13210 for ac_exec_ext in '' $ac_executable_extensions; do 13211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13212 ac_cv_prog_ac_ct_AS="as" 13213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13214 break 2 13215 fi 13216done 13217 done 13218IFS=$as_save_IFS 13219 13220fi 13221fi 13222ac_ct_AS=$ac_cv_prog_ac_ct_AS 13223if test -n "$ac_ct_AS"; then 13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 13225$as_echo "$ac_ct_AS" >&6; } 13226else 13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13228$as_echo "no" >&6; } 13229fi 13230 13231 if test "x$ac_ct_AS" = x; then 13232 AS="false" 13233 else 13234 case $cross_compiling:$ac_tool_warned in 13235yes:) 13236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13238ac_tool_warned=yes ;; 13239esac 13240 AS=$ac_ct_AS 13241 fi 13242else 13243 AS="$ac_cv_prog_AS" 13244fi 13245 13246 if test -n "$ac_tool_prefix"; then 13247 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 13248set dummy ${ac_tool_prefix}dlltool; ac_word=$2 13249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13250$as_echo_n "checking for $ac_word... " >&6; } 13251if ${ac_cv_prog_DLLTOOL+:} false; then : 13252 $as_echo_n "(cached) " >&6 13253else 13254 if test -n "$DLLTOOL"; then 13255 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 13256else 13257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13258for as_dir in $PATH 13259do 13260 IFS=$as_save_IFS 13261 test -z "$as_dir" && as_dir=. 13262 for ac_exec_ext in '' $ac_executable_extensions; do 13263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13264 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 13265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13266 break 2 13267 fi 13268done 13269 done 13270IFS=$as_save_IFS 13271 13272fi 13273fi 13274DLLTOOL=$ac_cv_prog_DLLTOOL 13275if test -n "$DLLTOOL"; then 13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 13277$as_echo "$DLLTOOL" >&6; } 13278else 13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13280$as_echo "no" >&6; } 13281fi 13282 13283 13284fi 13285if test -z "$ac_cv_prog_DLLTOOL"; then 13286 ac_ct_DLLTOOL=$DLLTOOL 13287 # Extract the first word of "dlltool", so it can be a program name with args. 13288set dummy dlltool; ac_word=$2 13289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13290$as_echo_n "checking for $ac_word... " >&6; } 13291if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 13292 $as_echo_n "(cached) " >&6 13293else 13294 if test -n "$ac_ct_DLLTOOL"; then 13295 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 13296else 13297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13298for as_dir in $PATH 13299do 13300 IFS=$as_save_IFS 13301 test -z "$as_dir" && as_dir=. 13302 for ac_exec_ext in '' $ac_executable_extensions; do 13303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13304 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 13305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13306 break 2 13307 fi 13308done 13309 done 13310IFS=$as_save_IFS 13311 13312fi 13313fi 13314ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 13315if test -n "$ac_ct_DLLTOOL"; then 13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 13317$as_echo "$ac_ct_DLLTOOL" >&6; } 13318else 13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13320$as_echo "no" >&6; } 13321fi 13322 13323 if test "x$ac_ct_DLLTOOL" = x; then 13324 DLLTOOL="false" 13325 else 13326 case $cross_compiling:$ac_tool_warned in 13327yes:) 13328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13330ac_tool_warned=yes ;; 13331esac 13332 DLLTOOL=$ac_ct_DLLTOOL 13333 fi 13334else 13335 DLLTOOL="$ac_cv_prog_DLLTOOL" 13336fi 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. 13340set 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; } 13343if ${ac_cv_prog_OBJDUMP+:} false; then : 13344 $as_echo_n "(cached) " >&6 13345else 13346 if test -n "$OBJDUMP"; then 13347 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 13348else 13349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13350for as_dir in $PATH 13351do 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 13360done 13361 done 13362IFS=$as_save_IFS 13363 13364fi 13365fi 13366OBJDUMP=$ac_cv_prog_OBJDUMP 13367if test -n "$OBJDUMP"; then 13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 13369$as_echo "$OBJDUMP" >&6; } 13370else 13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13372$as_echo "no" >&6; } 13373fi 13374 13375 13376fi 13377if 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. 13380set 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; } 13383if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 13384 $as_echo_n "(cached) " >&6 13385else 13386 if test -n "$ac_ct_OBJDUMP"; then 13387 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 13388else 13389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13390for as_dir in $PATH 13391do 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 13400done 13401 done 13402IFS=$as_save_IFS 13403 13404fi 13405fi 13406ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 13407if 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; } 13410else 13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13412$as_echo "no" >&6; } 13413fi 13414 13415 if test "x$ac_ct_OBJDUMP" = x; then 13416 OBJDUMP="false" 13417 else 13418 case $cross_compiling:$ac_tool_warned in 13419yes:) 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;} 13422ac_tool_warned=yes ;; 13423esac 13424 OBJDUMP=$ac_ct_OBJDUMP 13425 fi 13426else 13427 OBJDUMP="$ac_cv_prog_OBJDUMP" 13428fi 13429 13430 ;; 13431esac 13432 13433test -z "$AS" && AS=as 13434 13435 13436 13437 13438 13439test -z "$DLLTOOL" && DLLTOOL=dlltool 13440 13441 13442 13443 13444 13445test -z "$OBJDUMP" && OBJDUMP=objdump 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 # Check whether --enable-shared was given. 13456if test "${enable_shared+set}" = set; then : 13457 enableval=$enable_shared; p=${PACKAGE-default} 13458 case $enableval in 13459 yes) enable_shared=yes ;; 13460 no) enable_shared=no ;; 13461 *) 13462 enable_shared=no 13463 # Look at the argument we got. We use all the common list separators. 13464 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13465 for pkg in $enableval; do 13466 IFS="$lt_save_ifs" 13467 if test "X$pkg" = "X$p"; then 13468 enable_shared=yes 13469 fi 13470 done 13471 IFS="$lt_save_ifs" 13472 ;; 13473 esac 13474else 13475 enable_shared=yes 13476fi 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 # Check whether --enable-static was given. 13487if test "${enable_static+set}" = set; then : 13488 enableval=$enable_static; p=${PACKAGE-default} 13489 case $enableval in 13490 yes) enable_static=yes ;; 13491 no) enable_static=no ;; 13492 *) 13493 enable_static=no 13494 # Look at the argument we got. We use all the common list separators. 13495 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13496 for pkg in $enableval; do 13497 IFS="$lt_save_ifs" 13498 if test "X$pkg" = "X$p"; then 13499 enable_static=yes 13500 fi 13501 done 13502 IFS="$lt_save_ifs" 13503 ;; 13504 esac 13505else 13506 enable_static=yes 13507fi 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518# Check whether --with-pic was given. 13519if test "${with_pic+set}" = set; then : 13520 withval=$with_pic; lt_p=${PACKAGE-default} 13521 case $withval in 13522 yes|no) pic_mode=$withval ;; 13523 *) 13524 pic_mode=default 13525 # Look at the argument we got. We use all the common list separators. 13526 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13527 for lt_pkg in $withval; do 13528 IFS="$lt_save_ifs" 13529 if test "X$lt_pkg" = "X$lt_p"; then 13530 pic_mode=yes 13531 fi 13532 done 13533 IFS="$lt_save_ifs" 13534 ;; 13535 esac 13536else 13537 pic_mode=default 13538fi 13539 13540 13541test -z "$pic_mode" && pic_mode=default 13542 13543 13544 13545 13546 13547 13548 13549 # Check whether --enable-fast-install was given. 13550if test "${enable_fast_install+set}" = set; then : 13551 enableval=$enable_fast_install; p=${PACKAGE-default} 13552 case $enableval in 13553 yes) enable_fast_install=yes ;; 13554 no) enable_fast_install=no ;; 13555 *) 13556 enable_fast_install=no 13557 # Look at the argument we got. We use all the common list separators. 13558 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13559 for pkg in $enableval; do 13560 IFS="$lt_save_ifs" 13561 if test "X$pkg" = "X$p"; then 13562 enable_fast_install=yes 13563 fi 13564 done 13565 IFS="$lt_save_ifs" 13566 ;; 13567 esac 13568else 13569 enable_fast_install=yes 13570fi 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582# This can be used to rebuild libtool when needed 13583LIBTOOL_DEPS="$ltmain" 13584 13585# Always use our own libtool. 13586LIBTOOL='$(SHELL) $(top_builddir)/libtool' 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617test -z "$LN_S" && LN_S="ln -s" 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632if test -n "${ZSH_VERSION+set}" ; then 13633 setopt NO_GLOB_SUBST 13634fi 13635 13636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 13637$as_echo_n "checking for objdir... " >&6; } 13638if ${lt_cv_objdir+:} false; then : 13639 $as_echo_n "(cached) " >&6 13640else 13641 rm -f .libs 2>/dev/null 13642mkdir .libs 2>/dev/null 13643if test -d .libs; then 13644 lt_cv_objdir=.libs 13645else 13646 # MS-DOS does not allow filenames that begin with a dot. 13647 lt_cv_objdir=_libs 13648fi 13649rmdir .libs 2>/dev/null 13650fi 13651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 13652$as_echo "$lt_cv_objdir" >&6; } 13653objdir=$lt_cv_objdir 13654 13655 13656 13657 13658 13659cat >>confdefs.h <<_ACEOF 13660#define LT_OBJDIR "$lt_cv_objdir/" 13661_ACEOF 13662 13663 13664 13665 13666case $host_os in 13667aix3*) 13668 # AIX sometimes has problems with the GCC collect2 program. For some 13669 # reason, if we set the COLLECT_NAMES environment variable, the problems 13670 # vanish in a puff of smoke. 13671 if test "X${COLLECT_NAMES+set}" != Xset; then 13672 COLLECT_NAMES= 13673 export COLLECT_NAMES 13674 fi 13675 ;; 13676esac 13677 13678# Global variables: 13679ofile=libtool 13680can_build_shared=yes 13681 13682# All known linkers require a `.a' archive for static linking (except MSVC, 13683# which needs '.lib'). 13684libext=a 13685 13686with_gnu_ld="$lt_cv_prog_gnu_ld" 13687 13688old_CC="$CC" 13689old_CFLAGS="$CFLAGS" 13690 13691# Set sane defaults for various variables 13692test -z "$CC" && CC=cc 13693test -z "$LTCC" && LTCC=$CC 13694test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 13695test -z "$LD" && LD=ld 13696test -z "$ac_objext" && ac_objext=o 13697 13698for cc_temp in $compiler""; do 13699 case $cc_temp in 13700 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13701 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13702 \-*) ;; 13703 *) break;; 13704 esac 13705done 13706cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13707 13708 13709# Only perform the check for file, if the check method requires it 13710test -z "$MAGIC_CMD" && MAGIC_CMD=file 13711case $deplibs_check_method in 13712file_magic*) 13713 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 13715$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 13716if ${lt_cv_path_MAGIC_CMD+:} false; then : 13717 $as_echo_n "(cached) " >&6 13718else 13719 case $MAGIC_CMD in 13720[\\/*] | ?:[\\/]*) 13721 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 13722 ;; 13723*) 13724 lt_save_MAGIC_CMD="$MAGIC_CMD" 13725 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13726 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 13727 for ac_dir in $ac_dummy; do 13728 IFS="$lt_save_ifs" 13729 test -z "$ac_dir" && ac_dir=. 13730 if test -f $ac_dir/${ac_tool_prefix}file; then 13731 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 13732 if test -n "$file_magic_test_file"; then 13733 case $deplibs_check_method in 13734 "file_magic "*) 13735 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 13736 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 13737 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 13738 $EGREP "$file_magic_regex" > /dev/null; then 13739 : 13740 else 13741 cat <<_LT_EOF 1>&2 13742 13743*** Warning: the command libtool uses to detect shared libraries, 13744*** $file_magic_cmd, produces output that libtool cannot recognize. 13745*** The result is that libtool may fail to recognize shared libraries 13746*** as such. This will affect the creation of libtool libraries that 13747*** depend on shared libraries, but programs linked with such libtool 13748*** libraries will work regardless of this problem. Nevertheless, you 13749*** may want to report the problem to your system manager and/or to 13750*** bug-libtool@gnu.org 13751 13752_LT_EOF 13753 fi ;; 13754 esac 13755 fi 13756 break 13757 fi 13758 done 13759 IFS="$lt_save_ifs" 13760 MAGIC_CMD="$lt_save_MAGIC_CMD" 13761 ;; 13762esac 13763fi 13764 13765MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 13766if test -n "$MAGIC_CMD"; then 13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 13768$as_echo "$MAGIC_CMD" >&6; } 13769else 13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13771$as_echo "no" >&6; } 13772fi 13773 13774 13775 13776 13777 13778if test -z "$lt_cv_path_MAGIC_CMD"; then 13779 if test -n "$ac_tool_prefix"; then 13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 13781$as_echo_n "checking for file... " >&6; } 13782if ${lt_cv_path_MAGIC_CMD+:} false; then : 13783 $as_echo_n "(cached) " >&6 13784else 13785 case $MAGIC_CMD in 13786[\\/*] | ?:[\\/]*) 13787 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 13788 ;; 13789*) 13790 lt_save_MAGIC_CMD="$MAGIC_CMD" 13791 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13792 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 13793 for ac_dir in $ac_dummy; do 13794 IFS="$lt_save_ifs" 13795 test -z "$ac_dir" && ac_dir=. 13796 if test -f $ac_dir/file; then 13797 lt_cv_path_MAGIC_CMD="$ac_dir/file" 13798 if test -n "$file_magic_test_file"; then 13799 case $deplibs_check_method in 13800 "file_magic "*) 13801 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 13802 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 13803 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 13804 $EGREP "$file_magic_regex" > /dev/null; then 13805 : 13806 else 13807 cat <<_LT_EOF 1>&2 13808 13809*** Warning: the command libtool uses to detect shared libraries, 13810*** $file_magic_cmd, produces output that libtool cannot recognize. 13811*** The result is that libtool may fail to recognize shared libraries 13812*** as such. This will affect the creation of libtool libraries that 13813*** depend on shared libraries, but programs linked with such libtool 13814*** libraries will work regardless of this problem. Nevertheless, you 13815*** may want to report the problem to your system manager and/or to 13816*** bug-libtool@gnu.org 13817 13818_LT_EOF 13819 fi ;; 13820 esac 13821 fi 13822 break 13823 fi 13824 done 13825 IFS="$lt_save_ifs" 13826 MAGIC_CMD="$lt_save_MAGIC_CMD" 13827 ;; 13828esac 13829fi 13830 13831MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 13832if test -n "$MAGIC_CMD"; then 13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 13834$as_echo "$MAGIC_CMD" >&6; } 13835else 13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13837$as_echo "no" >&6; } 13838fi 13839 13840 13841 else 13842 MAGIC_CMD=: 13843 fi 13844fi 13845 13846 fi 13847 ;; 13848esac 13849 13850# Use C for the default configuration in the libtool script 13851 13852lt_save_CC="$CC" 13853ac_ext=c 13854ac_cpp='$CPP $CPPFLAGS' 13855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13857ac_compiler_gnu=$ac_cv_c_compiler_gnu 13858 13859 13860# Source file extension for C test sources. 13861ac_ext=c 13862 13863# Object file extension for compiled C test sources. 13864objext=o 13865objext=$objext 13866 13867# Code to be used in simple compile tests 13868lt_simple_compile_test_code="int some_variable = 0;" 13869 13870# Code to be used in simple link tests 13871lt_simple_link_test_code='int main(){return(0);}' 13872 13873 13874 13875 13876 13877 13878 13879# If no C compiler was specified, use CC. 13880LTCC=${LTCC-"$CC"} 13881 13882# If no C compiler flags were specified, use CFLAGS. 13883LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13884 13885# Allow CC to be a program name with arguments. 13886compiler=$CC 13887 13888# Save the default compiler, since it gets overwritten when the other 13889# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 13890compiler_DEFAULT=$CC 13891 13892# save warnings/boilerplate of simple test code 13893ac_outfile=conftest.$ac_objext 13894echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13895eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13896_lt_compiler_boilerplate=`cat conftest.err` 13897$RM conftest* 13898 13899ac_outfile=conftest.$ac_objext 13900echo "$lt_simple_link_test_code" >conftest.$ac_ext 13901eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13902_lt_linker_boilerplate=`cat conftest.err` 13903$RM -r conftest* 13904 13905 13906## CAVEAT EMPTOR: 13907## There is no encapsulation within the following macros, do not change 13908## the running order or otherwise move them around unless you know exactly 13909## what you are doing... 13910if test -n "$compiler"; then 13911 13912lt_prog_compiler_no_builtin_flag= 13913 13914if test "$GCC" = yes; then 13915 case $cc_basename in 13916 nvcc*) 13917 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 13918 *) 13919 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 13920 esac 13921 13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 13923$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 13924if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 13925 $as_echo_n "(cached) " >&6 13926else 13927 lt_cv_prog_compiler_rtti_exceptions=no 13928 ac_outfile=conftest.$ac_objext 13929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13930 lt_compiler_flag="-fno-rtti -fno-exceptions" 13931 # Insert the option either (1) after the last *FLAGS variable, or 13932 # (2) before a word containing "conftest.", or (3) at the end. 13933 # Note that $ac_compile itself does not contain backslashes and begins 13934 # with a dollar sign (not a hyphen), so the echo should work correctly. 13935 # The option is referenced via a variable to avoid confusing sed. 13936 lt_compile=`echo "$ac_compile" | $SED \ 13937 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13938 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13939 -e 's:$: $lt_compiler_flag:'` 13940 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13941 (eval "$lt_compile" 2>conftest.err) 13942 ac_status=$? 13943 cat conftest.err >&5 13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13945 if (exit $ac_status) && test -s "$ac_outfile"; then 13946 # The compiler can only warn and ignore the option if not recognized 13947 # So say no if there are warnings other than the usual output. 13948 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13949 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13950 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13951 lt_cv_prog_compiler_rtti_exceptions=yes 13952 fi 13953 fi 13954 $RM conftest* 13955 13956fi 13957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 13958$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 13959 13960if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 13961 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 13962else 13963 : 13964fi 13965 13966fi 13967 13968 13969 13970 13971 13972 13973 lt_prog_compiler_wl= 13974lt_prog_compiler_pic= 13975lt_prog_compiler_static= 13976 13977 13978 if test "$GCC" = yes; then 13979 lt_prog_compiler_wl='-Wl,' 13980 lt_prog_compiler_static='-static' 13981 13982 case $host_os in 13983 aix*) 13984 # All AIX code is PIC. 13985 if test "$host_cpu" = ia64; then 13986 # AIX 5 now supports IA64 processor 13987 lt_prog_compiler_static='-Bstatic' 13988 fi 13989 ;; 13990 13991 amigaos*) 13992 case $host_cpu in 13993 powerpc) 13994 # see comment about AmigaOS4 .so support 13995 lt_prog_compiler_pic='-fPIC' 13996 ;; 13997 m68k) 13998 # FIXME: we need at least 68020 code to build shared libraries, but 13999 # adding the `-m68020' flag to GCC prevents building anything better, 14000 # like `-m68040'. 14001 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14002 ;; 14003 esac 14004 ;; 14005 14006 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14007 # PIC is the default for these OSes. 14008 ;; 14009 14010 mingw* | cygwin* | pw32* | os2* | cegcc*) 14011 # This hack is so that the source file can tell whether it is being 14012 # built for inclusion in a dll (and should export symbols for example). 14013 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14014 # (--disable-auto-import) libraries 14015 lt_prog_compiler_pic='-DDLL_EXPORT' 14016 ;; 14017 14018 darwin* | rhapsody*) 14019 # PIC is the default on this platform 14020 # Common symbols not allowed in MH_DYLIB files 14021 lt_prog_compiler_pic='-fno-common' 14022 ;; 14023 14024 haiku*) 14025 # PIC is the default for Haiku. 14026 # The "-static" flag exists, but is broken. 14027 lt_prog_compiler_static= 14028 ;; 14029 14030 hpux*) 14031 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14032 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14033 # sets the default TLS model and affects inlining. 14034 case $host_cpu in 14035 hppa*64*) 14036 # +Z the default 14037 ;; 14038 *) 14039 lt_prog_compiler_pic='-fPIC' 14040 ;; 14041 esac 14042 ;; 14043 14044 interix[3-9]*) 14045 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14046 # Instead, we relocate shared libraries at runtime. 14047 ;; 14048 14049 msdosdjgpp*) 14050 # Just because we use GCC doesn't mean we suddenly get shared libraries 14051 # on systems that don't support them. 14052 lt_prog_compiler_can_build_shared=no 14053 enable_shared=no 14054 ;; 14055 14056 *nto* | *qnx*) 14057 # QNX uses GNU C++, but need to define -shared option too, otherwise 14058 # it will coredump. 14059 lt_prog_compiler_pic='-fPIC -shared' 14060 ;; 14061 14062 sysv4*MP*) 14063 if test -d /usr/nec; then 14064 lt_prog_compiler_pic=-Kconform_pic 14065 fi 14066 ;; 14067 14068 *) 14069 lt_prog_compiler_pic='-fPIC' 14070 ;; 14071 esac 14072 14073 case $cc_basename in 14074 nvcc*) # Cuda Compiler Driver 2.2 14075 lt_prog_compiler_wl='-Xlinker ' 14076 if test -n "$lt_prog_compiler_pic"; then 14077 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14078 fi 14079 ;; 14080 esac 14081 else 14082 # PORTME Check for flag to pass linker flags through the system compiler. 14083 case $host_os in 14084 aix*) 14085 lt_prog_compiler_wl='-Wl,' 14086 if test "$host_cpu" = ia64; then 14087 # AIX 5 now supports IA64 processor 14088 lt_prog_compiler_static='-Bstatic' 14089 else 14090 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14091 fi 14092 ;; 14093 14094 mingw* | cygwin* | pw32* | os2* | cegcc*) 14095 # This hack is so that the source file can tell whether it is being 14096 # built for inclusion in a dll (and should export symbols for example). 14097 lt_prog_compiler_pic='-DDLL_EXPORT' 14098 ;; 14099 14100 hpux9* | hpux10* | hpux11*) 14101 lt_prog_compiler_wl='-Wl,' 14102 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14103 # not for PA HP-UX. 14104 case $host_cpu in 14105 hppa*64*|ia64*) 14106 # +Z the default 14107 ;; 14108 *) 14109 lt_prog_compiler_pic='+Z' 14110 ;; 14111 esac 14112 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14113 lt_prog_compiler_static='${wl}-a ${wl}archive' 14114 ;; 14115 14116 irix5* | irix6* | nonstopux*) 14117 lt_prog_compiler_wl='-Wl,' 14118 # PIC (with -KPIC) is the default. 14119 lt_prog_compiler_static='-non_shared' 14120 ;; 14121 14122 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14123 case $cc_basename in 14124 # old Intel for x86_64 which still supported -KPIC. 14125 ecc*) 14126 lt_prog_compiler_wl='-Wl,' 14127 lt_prog_compiler_pic='-KPIC' 14128 lt_prog_compiler_static='-static' 14129 ;; 14130 # icc used to be incompatible with GCC. 14131 # ICC 10 doesn't accept -KPIC any more. 14132 icc* | ifort*) 14133 lt_prog_compiler_wl='-Wl,' 14134 lt_prog_compiler_pic='-fPIC' 14135 lt_prog_compiler_static='-static' 14136 ;; 14137 # Lahey Fortran 8.1. 14138 lf95*) 14139 lt_prog_compiler_wl='-Wl,' 14140 lt_prog_compiler_pic='--shared' 14141 lt_prog_compiler_static='--static' 14142 ;; 14143 nagfor*) 14144 # NAG Fortran compiler 14145 lt_prog_compiler_wl='-Wl,-Wl,,' 14146 lt_prog_compiler_pic='-PIC' 14147 lt_prog_compiler_static='-Bstatic' 14148 ;; 14149 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14150 # Portland Group compilers (*not* the Pentium gcc compiler, 14151 # which looks to be a dead project) 14152 lt_prog_compiler_wl='-Wl,' 14153 lt_prog_compiler_pic='-fpic' 14154 lt_prog_compiler_static='-Bstatic' 14155 ;; 14156 ccc*) 14157 lt_prog_compiler_wl='-Wl,' 14158 # All Alpha code is PIC. 14159 lt_prog_compiler_static='-non_shared' 14160 ;; 14161 xl* | bgxl* | bgf* | mpixl*) 14162 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14163 lt_prog_compiler_wl='-Wl,' 14164 lt_prog_compiler_pic='-qpic' 14165 lt_prog_compiler_static='-qstaticlink' 14166 ;; 14167 *) 14168 case `$CC -V 2>&1 | sed 5q` in 14169 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14170 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14171 lt_prog_compiler_pic='-KPIC' 14172 lt_prog_compiler_static='-Bstatic' 14173 lt_prog_compiler_wl='' 14174 ;; 14175 *Sun\ F* | *Sun*Fortran*) 14176 lt_prog_compiler_pic='-KPIC' 14177 lt_prog_compiler_static='-Bstatic' 14178 lt_prog_compiler_wl='-Qoption ld ' 14179 ;; 14180 *Sun\ C*) 14181 # Sun C 5.9 14182 lt_prog_compiler_pic='-KPIC' 14183 lt_prog_compiler_static='-Bstatic' 14184 lt_prog_compiler_wl='-Wl,' 14185 ;; 14186 *Intel*\ [CF]*Compiler*) 14187 lt_prog_compiler_wl='-Wl,' 14188 lt_prog_compiler_pic='-fPIC' 14189 lt_prog_compiler_static='-static' 14190 ;; 14191 *Portland\ Group*) 14192 lt_prog_compiler_wl='-Wl,' 14193 lt_prog_compiler_pic='-fpic' 14194 lt_prog_compiler_static='-Bstatic' 14195 ;; 14196 esac 14197 ;; 14198 esac 14199 ;; 14200 14201 newsos6) 14202 lt_prog_compiler_pic='-KPIC' 14203 lt_prog_compiler_static='-Bstatic' 14204 ;; 14205 14206 *nto* | *qnx*) 14207 # QNX uses GNU C++, but need to define -shared option too, otherwise 14208 # it will coredump. 14209 lt_prog_compiler_pic='-fPIC -shared' 14210 ;; 14211 14212 osf3* | osf4* | osf5*) 14213 lt_prog_compiler_wl='-Wl,' 14214 # All OSF/1 code is PIC. 14215 lt_prog_compiler_static='-non_shared' 14216 ;; 14217 14218 rdos*) 14219 lt_prog_compiler_static='-non_shared' 14220 ;; 14221 14222 solaris*) 14223 lt_prog_compiler_pic='-KPIC' 14224 lt_prog_compiler_static='-Bstatic' 14225 case $cc_basename in 14226 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 14227 lt_prog_compiler_wl='-Qoption ld ';; 14228 *) 14229 lt_prog_compiler_wl='-Wl,';; 14230 esac 14231 ;; 14232 14233 sunos4*) 14234 lt_prog_compiler_wl='-Qoption ld ' 14235 lt_prog_compiler_pic='-PIC' 14236 lt_prog_compiler_static='-Bstatic' 14237 ;; 14238 14239 sysv4 | sysv4.2uw2* | sysv4.3*) 14240 lt_prog_compiler_wl='-Wl,' 14241 lt_prog_compiler_pic='-KPIC' 14242 lt_prog_compiler_static='-Bstatic' 14243 ;; 14244 14245 sysv4*MP*) 14246 if test -d /usr/nec ;then 14247 lt_prog_compiler_pic='-Kconform_pic' 14248 lt_prog_compiler_static='-Bstatic' 14249 fi 14250 ;; 14251 14252 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14253 lt_prog_compiler_wl='-Wl,' 14254 lt_prog_compiler_pic='-KPIC' 14255 lt_prog_compiler_static='-Bstatic' 14256 ;; 14257 14258 unicos*) 14259 lt_prog_compiler_wl='-Wl,' 14260 lt_prog_compiler_can_build_shared=no 14261 ;; 14262 14263 uts4*) 14264 lt_prog_compiler_pic='-pic' 14265 lt_prog_compiler_static='-Bstatic' 14266 ;; 14267 14268 *) 14269 lt_prog_compiler_can_build_shared=no 14270 ;; 14271 esac 14272 fi 14273 14274case $host_os in 14275 # For platforms which do not support PIC, -DPIC is meaningless: 14276 *djgpp*) 14277 lt_prog_compiler_pic= 14278 ;; 14279 *) 14280 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 14281 ;; 14282esac 14283 14284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14285$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14286if ${lt_cv_prog_compiler_pic+:} false; then : 14287 $as_echo_n "(cached) " >&6 14288else 14289 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 14290fi 14291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 14292$as_echo "$lt_cv_prog_compiler_pic" >&6; } 14293lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 14294 14295# 14296# Check to make sure the PIC flag actually works. 14297# 14298if test -n "$lt_prog_compiler_pic"; then 14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 14300$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 14301if ${lt_cv_prog_compiler_pic_works+:} false; then : 14302 $as_echo_n "(cached) " >&6 14303else 14304 lt_cv_prog_compiler_pic_works=no 14305 ac_outfile=conftest.$ac_objext 14306 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14307 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 14308 # Insert the option either (1) after the last *FLAGS variable, or 14309 # (2) before a word containing "conftest.", or (3) at the end. 14310 # Note that $ac_compile itself does not contain backslashes and begins 14311 # with a dollar sign (not a hyphen), so the echo should work correctly. 14312 # The option is referenced via a variable to avoid confusing sed. 14313 lt_compile=`echo "$ac_compile" | $SED \ 14314 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14316 -e 's:$: $lt_compiler_flag:'` 14317 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14318 (eval "$lt_compile" 2>conftest.err) 14319 ac_status=$? 14320 cat conftest.err >&5 14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14322 if (exit $ac_status) && test -s "$ac_outfile"; then 14323 # The compiler can only warn and ignore the option if not recognized 14324 # So say no if there are warnings other than the usual output. 14325 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14327 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14328 lt_cv_prog_compiler_pic_works=yes 14329 fi 14330 fi 14331 $RM conftest* 14332 14333fi 14334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 14335$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 14336 14337if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 14338 case $lt_prog_compiler_pic in 14339 "" | " "*) ;; 14340 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 14341 esac 14342else 14343 lt_prog_compiler_pic= 14344 lt_prog_compiler_can_build_shared=no 14345fi 14346 14347fi 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359# 14360# Check to make sure the static flag actually works. 14361# 14362wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 14363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14364$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14365if ${lt_cv_prog_compiler_static_works+:} false; then : 14366 $as_echo_n "(cached) " >&6 14367else 14368 lt_cv_prog_compiler_static_works=no 14369 save_LDFLAGS="$LDFLAGS" 14370 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14371 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14372 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14373 # The linker can only warn and ignore the option if not recognized 14374 # So say no if there are warnings 14375 if test -s conftest.err; then 14376 # Append any errors to the config.log. 14377 cat conftest.err 1>&5 14378 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14379 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14380 if diff conftest.exp conftest.er2 >/dev/null; then 14381 lt_cv_prog_compiler_static_works=yes 14382 fi 14383 else 14384 lt_cv_prog_compiler_static_works=yes 14385 fi 14386 fi 14387 $RM -r conftest* 14388 LDFLAGS="$save_LDFLAGS" 14389 14390fi 14391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 14392$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 14393 14394if test x"$lt_cv_prog_compiler_static_works" = xyes; then 14395 : 14396else 14397 lt_prog_compiler_static= 14398fi 14399 14400 14401 14402 14403 14404 14405 14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14407$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14408if ${lt_cv_prog_compiler_c_o+:} false; then : 14409 $as_echo_n "(cached) " >&6 14410else 14411 lt_cv_prog_compiler_c_o=no 14412 $RM -r conftest 2>/dev/null 14413 mkdir conftest 14414 cd conftest 14415 mkdir out 14416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14417 14418 lt_compiler_flag="-o out/conftest2.$ac_objext" 14419 # Insert the option either (1) after the last *FLAGS variable, or 14420 # (2) before a word containing "conftest.", or (3) at the end. 14421 # Note that $ac_compile itself does not contain backslashes and begins 14422 # with a dollar sign (not a hyphen), so the echo should work correctly. 14423 lt_compile=`echo "$ac_compile" | $SED \ 14424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14426 -e 's:$: $lt_compiler_flag:'` 14427 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14428 (eval "$lt_compile" 2>out/conftest.err) 14429 ac_status=$? 14430 cat out/conftest.err >&5 14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14432 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14433 then 14434 # The compiler can only warn and ignore the option if not recognized 14435 # So say no if there are warnings 14436 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14437 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14438 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14439 lt_cv_prog_compiler_c_o=yes 14440 fi 14441 fi 14442 chmod u+w . 2>&5 14443 $RM conftest* 14444 # SGI C++ compiler will create directory out/ii_files/ for 14445 # template instantiation 14446 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14447 $RM out/* && rmdir out 14448 cd .. 14449 $RM -r conftest 14450 $RM conftest* 14451 14452fi 14453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14454$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14455 14456 14457 14458 14459 14460 14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14462$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14463if ${lt_cv_prog_compiler_c_o+:} false; then : 14464 $as_echo_n "(cached) " >&6 14465else 14466 lt_cv_prog_compiler_c_o=no 14467 $RM -r conftest 2>/dev/null 14468 mkdir conftest 14469 cd conftest 14470 mkdir out 14471 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14472 14473 lt_compiler_flag="-o out/conftest2.$ac_objext" 14474 # Insert the option either (1) after the last *FLAGS variable, or 14475 # (2) before a word containing "conftest.", or (3) at the end. 14476 # Note that $ac_compile itself does not contain backslashes and begins 14477 # with a dollar sign (not a hyphen), so the echo should work correctly. 14478 lt_compile=`echo "$ac_compile" | $SED \ 14479 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14481 -e 's:$: $lt_compiler_flag:'` 14482 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14483 (eval "$lt_compile" 2>out/conftest.err) 14484 ac_status=$? 14485 cat out/conftest.err >&5 14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14487 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14488 then 14489 # The compiler can only warn and ignore the option if not recognized 14490 # So say no if there are warnings 14491 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14492 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14493 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14494 lt_cv_prog_compiler_c_o=yes 14495 fi 14496 fi 14497 chmod u+w . 2>&5 14498 $RM conftest* 14499 # SGI C++ compiler will create directory out/ii_files/ for 14500 # template instantiation 14501 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14502 $RM out/* && rmdir out 14503 cd .. 14504 $RM -r conftest 14505 $RM conftest* 14506 14507fi 14508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14509$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14510 14511 14512 14513 14514hard_links="nottested" 14515if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 14516 # do not overwrite the value of need_locks provided by the user 14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14518$as_echo_n "checking if we can lock with hard links... " >&6; } 14519 hard_links=yes 14520 $RM conftest* 14521 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14522 touch conftest.a 14523 ln conftest.a conftest.b 2>&5 || hard_links=no 14524 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14526$as_echo "$hard_links" >&6; } 14527 if test "$hard_links" = no; then 14528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14529$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14530 need_locks=warn 14531 fi 14532else 14533 need_locks=no 14534fi 14535 14536 14537 14538 14539 14540 14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14542$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14543 14544 runpath_var= 14545 allow_undefined_flag= 14546 always_export_symbols=no 14547 archive_cmds= 14548 archive_expsym_cmds= 14549 compiler_needs_object=no 14550 enable_shared_with_static_runtimes=no 14551 export_dynamic_flag_spec= 14552 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14553 hardcode_automatic=no 14554 hardcode_direct=no 14555 hardcode_direct_absolute=no 14556 hardcode_libdir_flag_spec= 14557 hardcode_libdir_separator= 14558 hardcode_minus_L=no 14559 hardcode_shlibpath_var=unsupported 14560 inherit_rpath=no 14561 link_all_deplibs=unknown 14562 module_cmds= 14563 module_expsym_cmds= 14564 old_archive_from_new_cmds= 14565 old_archive_from_expsyms_cmds= 14566 thread_safe_flag_spec= 14567 whole_archive_flag_spec= 14568 # include_expsyms should be a list of space-separated symbols to be *always* 14569 # included in the symbol list 14570 include_expsyms= 14571 # exclude_expsyms can be an extended regexp of symbols to exclude 14572 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14573 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14574 # as well as any symbol that contains `d'. 14575 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14576 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14577 # platforms (ab)use it in PIC code, but their linkers get confused if 14578 # the symbol is explicitly referenced. Since portable code cannot 14579 # rely on this symbol name, it's probably fine to never include it in 14580 # preloaded symbol tables. 14581 # Exclude shared library initialization/finalization symbols. 14582 extract_expsyms_cmds= 14583 14584 case $host_os in 14585 cygwin* | mingw* | pw32* | cegcc*) 14586 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14587 # When not using gcc, we currently assume that we are using 14588 # Microsoft Visual C++. 14589 if test "$GCC" != yes; then 14590 with_gnu_ld=no 14591 fi 14592 ;; 14593 interix*) 14594 # we just hope/assume this is gcc and not c89 (= MSVC++) 14595 with_gnu_ld=yes 14596 ;; 14597 openbsd*) 14598 with_gnu_ld=no 14599 ;; 14600 esac 14601 14602 ld_shlibs=yes 14603 14604 # On some targets, GNU ld is compatible enough with the native linker 14605 # that we're better off using the native interface for both. 14606 lt_use_gnu_ld_interface=no 14607 if test "$with_gnu_ld" = yes; then 14608 case $host_os in 14609 aix*) 14610 # The AIX port of GNU ld has always aspired to compatibility 14611 # with the native linker. However, as the warning in the GNU ld 14612 # block says, versions before 2.19.5* couldn't really create working 14613 # shared libraries, regardless of the interface used. 14614 case `$LD -v 2>&1` in 14615 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 14616 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 14617 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 14618 *) 14619 lt_use_gnu_ld_interface=yes 14620 ;; 14621 esac 14622 ;; 14623 *) 14624 lt_use_gnu_ld_interface=yes 14625 ;; 14626 esac 14627 fi 14628 14629 if test "$lt_use_gnu_ld_interface" = yes; then 14630 # If archive_cmds runs LD, not CC, wlarc should be empty 14631 wlarc='${wl}' 14632 14633 # Set some defaults for GNU ld with shared library support. These 14634 # are reset later if shared libraries are not supported. Putting them 14635 # here allows them to be overridden if necessary. 14636 runpath_var=LD_RUN_PATH 14637 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14638 export_dynamic_flag_spec='${wl}--export-dynamic' 14639 # ancient GNU ld didn't support --whole-archive et. al. 14640 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 14641 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14642 else 14643 whole_archive_flag_spec= 14644 fi 14645 supports_anon_versioning=no 14646 case `$LD -v 2>&1` in 14647 *GNU\ gold*) supports_anon_versioning=yes ;; 14648 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14649 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14650 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14651 *\ 2.11.*) ;; # other 2.11 versions 14652 *) supports_anon_versioning=yes ;; 14653 esac 14654 14655 # See if GNU ld supports shared libraries. 14656 case $host_os in 14657 aix[3-9]*) 14658 # On AIX/PPC, the GNU linker is very broken 14659 if test "$host_cpu" != ia64; then 14660 ld_shlibs=no 14661 cat <<_LT_EOF 1>&2 14662 14663*** Warning: the GNU linker, at least up to release 2.19, is reported 14664*** to be unable to reliably create shared libraries on AIX. 14665*** Therefore, libtool is disabling shared libraries support. If you 14666*** really care for shared libraries, you may want to install binutils 14667*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 14668*** You will then need to restart the configuration process. 14669 14670_LT_EOF 14671 fi 14672 ;; 14673 14674 amigaos*) 14675 case $host_cpu in 14676 powerpc) 14677 # see comment about AmigaOS4 .so support 14678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14679 archive_expsym_cmds='' 14680 ;; 14681 m68k) 14682 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)' 14683 hardcode_libdir_flag_spec='-L$libdir' 14684 hardcode_minus_L=yes 14685 ;; 14686 esac 14687 ;; 14688 14689 beos*) 14690 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14691 allow_undefined_flag=unsupported 14692 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14693 # support --undefined. This deserves some investigation. FIXME 14694 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14695 else 14696 ld_shlibs=no 14697 fi 14698 ;; 14699 14700 cygwin* | mingw* | pw32* | cegcc*) 14701 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 14702 # as there is no search path for DLLs. 14703 hardcode_libdir_flag_spec='-L$libdir' 14704 export_dynamic_flag_spec='${wl}--export-all-symbols' 14705 allow_undefined_flag=unsupported 14706 always_export_symbols=no 14707 enable_shared_with_static_runtimes=yes 14708 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' 14709 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14710 14711 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14713 # If the export-symbols file already is a .def file (1st line 14714 # is EXPORTS), use it as is; otherwise, prepend... 14715 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14716 cp $export_symbols $output_objdir/$soname.def; 14717 else 14718 echo EXPORTS > $output_objdir/$soname.def; 14719 cat $export_symbols >> $output_objdir/$soname.def; 14720 fi~ 14721 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14722 else 14723 ld_shlibs=no 14724 fi 14725 ;; 14726 14727 haiku*) 14728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14729 link_all_deplibs=yes 14730 ;; 14731 14732 interix[3-9]*) 14733 hardcode_direct=no 14734 hardcode_shlibpath_var=no 14735 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 14736 export_dynamic_flag_spec='${wl}-E' 14737 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14738 # Instead, shared libraries are loaded at an image base (0x10000000 by 14739 # default) and relocated if they conflict, which is a slow very memory 14740 # consuming and fragmenting process. To avoid this, we pick a random, 14741 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14742 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14743 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14744 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' 14745 ;; 14746 14747 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 14748 tmp_diet=no 14749 if test "$host_os" = linux-dietlibc; then 14750 case $cc_basename in 14751 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 14752 esac 14753 fi 14754 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 14755 && test "$tmp_diet" = no 14756 then 14757 tmp_addflag=' $pic_flag' 14758 tmp_sharedflag='-shared' 14759 case $cc_basename,$host_cpu in 14760 pgcc*) # Portland Group C compiler 14761 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' 14762 tmp_addflag=' $pic_flag' 14763 ;; 14764 pgf77* | pgf90* | pgf95* | pgfortran*) 14765 # Portland Group f77 and f90 compilers 14766 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' 14767 tmp_addflag=' $pic_flag -Mnomain' ;; 14768 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14769 tmp_addflag=' -i_dynamic' ;; 14770 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14771 tmp_addflag=' -i_dynamic -nofor_main' ;; 14772 ifc* | ifort*) # Intel Fortran compiler 14773 tmp_addflag=' -nofor_main' ;; 14774 lf95*) # Lahey Fortran 8.1 14775 whole_archive_flag_spec= 14776 tmp_sharedflag='--shared' ;; 14777 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 14778 tmp_sharedflag='-qmkshrobj' 14779 tmp_addflag= ;; 14780 nvcc*) # Cuda Compiler Driver 2.2 14781 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' 14782 compiler_needs_object=yes 14783 ;; 14784 esac 14785 case `$CC -V 2>&1 | sed 5q` in 14786 *Sun\ C*) # Sun C 5.9 14787 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' 14788 compiler_needs_object=yes 14789 tmp_sharedflag='-G' ;; 14790 *Sun\ F*) # Sun Fortran 8.3 14791 tmp_sharedflag='-G' ;; 14792 esac 14793 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14794 14795 if test "x$supports_anon_versioning" = xyes; then 14796 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 14797 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14798 echo "local: *; };" >> $output_objdir/$libname.ver~ 14799 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14800 fi 14801 14802 case $cc_basename in 14803 xlf* | bgf* | bgxlf* | mpixlf*) 14804 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 14805 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 14806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14807 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 14808 if test "x$supports_anon_versioning" = xyes; then 14809 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 14810 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14811 echo "local: *; };" >> $output_objdir/$libname.ver~ 14812 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 14813 fi 14814 ;; 14815 esac 14816 else 14817 ld_shlibs=no 14818 fi 14819 ;; 14820 14821 netbsd*) 14822 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14823 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14824 wlarc= 14825 else 14826 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14827 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14828 fi 14829 ;; 14830 14831 solaris*) 14832 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 14833 ld_shlibs=no 14834 cat <<_LT_EOF 1>&2 14835 14836*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14837*** create shared libraries on Solaris systems. Therefore, libtool 14838*** is disabling shared libraries support. We urge you to upgrade GNU 14839*** binutils to release 2.9.1 or newer. Another option is to modify 14840*** your PATH or compiler configuration so that the native linker is 14841*** used, and then restart. 14842 14843_LT_EOF 14844 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14845 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14846 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14847 else 14848 ld_shlibs=no 14849 fi 14850 ;; 14851 14852 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14853 case `$LD -v 2>&1` in 14854 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14855 ld_shlibs=no 14856 cat <<_LT_EOF 1>&2 14857 14858*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14859*** reliably create shared libraries on SCO systems. Therefore, libtool 14860*** is disabling shared libraries support. We urge you to upgrade GNU 14861*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14862*** your PATH or compiler configuration so that the native linker is 14863*** used, and then restart. 14864 14865_LT_EOF 14866 ;; 14867 *) 14868 # For security reasons, it is highly recommended that you always 14869 # use absolute paths for naming shared libraries, and exclude the 14870 # DT_RUNPATH tag from executables and libraries. But doing so 14871 # requires that you compile everything twice, which is a pain. 14872 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14874 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14875 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14876 else 14877 ld_shlibs=no 14878 fi 14879 ;; 14880 esac 14881 ;; 14882 14883 sunos4*) 14884 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14885 wlarc= 14886 hardcode_direct=yes 14887 hardcode_shlibpath_var=no 14888 ;; 14889 14890 *) 14891 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14892 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14893 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14894 else 14895 ld_shlibs=no 14896 fi 14897 ;; 14898 esac 14899 14900 if test "$ld_shlibs" = no; then 14901 runpath_var= 14902 hardcode_libdir_flag_spec= 14903 export_dynamic_flag_spec= 14904 whole_archive_flag_spec= 14905 fi 14906 else 14907 # PORTME fill in a description of your system's linker (not GNU ld) 14908 case $host_os in 14909 aix3*) 14910 allow_undefined_flag=unsupported 14911 always_export_symbols=yes 14912 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' 14913 # Note: this linker hardcodes the directories in LIBPATH if there 14914 # are no directories specified by -L. 14915 hardcode_minus_L=yes 14916 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14917 # Neither direct hardcoding nor static linking is supported with a 14918 # broken collect2. 14919 hardcode_direct=unsupported 14920 fi 14921 ;; 14922 14923 aix[4-9]*) 14924 if test "$host_cpu" = ia64; then 14925 # On IA64, the linker does run time linking by default, so we don't 14926 # have to do anything special. 14927 aix_use_runtimelinking=no 14928 exp_sym_flag='-Bexport' 14929 no_entry_flag="" 14930 else 14931 # If we're using GNU nm, then we don't want the "-C" option. 14932 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14933 # Also, AIX nm treats weak defined symbols like other global 14934 # defined symbols, whereas GNU nm marks them as "W". 14935 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14936 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14937 else 14938 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14939 fi 14940 aix_use_runtimelinking=no 14941 14942 # Test if we are trying to use run time linking or normal 14943 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14944 # need to do runtime linking. 14945 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14946 for ld_flag in $LDFLAGS; do 14947 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14948 aix_use_runtimelinking=yes 14949 break 14950 fi 14951 done 14952 ;; 14953 esac 14954 14955 exp_sym_flag='-bexport' 14956 no_entry_flag='-bnoentry' 14957 fi 14958 14959 # When large executables or shared objects are built, AIX ld can 14960 # have problems creating the table of contents. If linking a library 14961 # or program results in "error TOC overflow" add -mminimal-toc to 14962 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14963 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14964 14965 archive_cmds='' 14966 hardcode_direct=yes 14967 hardcode_direct_absolute=yes 14968 hardcode_libdir_separator=':' 14969 link_all_deplibs=yes 14970 file_list_spec='${wl}-f,' 14971 14972 if test "$GCC" = yes; then 14973 case $host_os in aix4.[012]|aix4.[012].*) 14974 # We only want to do this on AIX 4.2 and lower, the check 14975 # below for broken collect2 doesn't work under 4.3+ 14976 collect2name=`${CC} -print-prog-name=collect2` 14977 if test -f "$collect2name" && 14978 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14979 then 14980 # We have reworked collect2 14981 : 14982 else 14983 # We have old collect2 14984 hardcode_direct=unsupported 14985 # It fails to find uninstalled libraries when the uninstalled 14986 # path is not listed in the libpath. Setting hardcode_minus_L 14987 # to unsupported forces relinking 14988 hardcode_minus_L=yes 14989 hardcode_libdir_flag_spec='-L$libdir' 14990 hardcode_libdir_separator= 14991 fi 14992 ;; 14993 esac 14994 shared_flag='-shared' 14995 if test "$aix_use_runtimelinking" = yes; then 14996 shared_flag="$shared_flag "'${wl}-G' 14997 fi 14998 else 14999 # not using gcc 15000 if test "$host_cpu" = ia64; then 15001 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15002 # chokes on -Wl,-G. The following line is correct: 15003 shared_flag='-G' 15004 else 15005 if test "$aix_use_runtimelinking" = yes; then 15006 shared_flag='${wl}-G' 15007 else 15008 shared_flag='${wl}-bM:SRE' 15009 fi 15010 fi 15011 fi 15012 15013 export_dynamic_flag_spec='${wl}-bexpall' 15014 # It seems that -bexpall does not export symbols beginning with 15015 # underscore (_), so it is better to generate a list of symbols to export. 15016 always_export_symbols=yes 15017 if test "$aix_use_runtimelinking" = yes; then 15018 # Warning - without using the other runtime loading flags (-brtl), 15019 # -berok will link without error, but may produce a broken library. 15020 allow_undefined_flag='-berok' 15021 # Determine the default libpath from the value encoded in an 15022 # empty executable. 15023 if test "${lt_cv_aix_libpath+set}" = set; then 15024 aix_libpath=$lt_cv_aix_libpath 15025else 15026 if ${lt_cv_aix_libpath_+:} false; then : 15027 $as_echo_n "(cached) " >&6 15028else 15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15030/* end confdefs.h. */ 15031 15032int 15033main () 15034{ 15035 15036 ; 15037 return 0; 15038} 15039_ACEOF 15040if ac_fn_c_try_link "$LINENO"; then : 15041 15042 lt_aix_libpath_sed=' 15043 /Import File Strings/,/^$/ { 15044 /^0/ { 15045 s/^0 *\([^ ]*\) *$/\1/ 15046 p 15047 } 15048 }' 15049 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15050 # Check for a 64-bit object if we didn't find anything. 15051 if test -z "$lt_cv_aix_libpath_"; then 15052 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15053 fi 15054fi 15055rm -f core conftest.err conftest.$ac_objext \ 15056 conftest$ac_exeext conftest.$ac_ext 15057 if test -z "$lt_cv_aix_libpath_"; then 15058 lt_cv_aix_libpath_="/usr/lib:/lib" 15059 fi 15060 15061fi 15062 15063 aix_libpath=$lt_cv_aix_libpath_ 15064fi 15065 15066 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15067 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15068 else 15069 if test "$host_cpu" = ia64; then 15070 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 15071 allow_undefined_flag="-z nodefs" 15072 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" 15073 else 15074 # Determine the default libpath from the value encoded in an 15075 # empty executable. 15076 if test "${lt_cv_aix_libpath+set}" = set; then 15077 aix_libpath=$lt_cv_aix_libpath 15078else 15079 if ${lt_cv_aix_libpath_+:} false; then : 15080 $as_echo_n "(cached) " >&6 15081else 15082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15083/* end confdefs.h. */ 15084 15085int 15086main () 15087{ 15088 15089 ; 15090 return 0; 15091} 15092_ACEOF 15093if ac_fn_c_try_link "$LINENO"; then : 15094 15095 lt_aix_libpath_sed=' 15096 /Import File Strings/,/^$/ { 15097 /^0/ { 15098 s/^0 *\([^ ]*\) *$/\1/ 15099 p 15100 } 15101 }' 15102 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15103 # Check for a 64-bit object if we didn't find anything. 15104 if test -z "$lt_cv_aix_libpath_"; then 15105 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15106 fi 15107fi 15108rm -f core conftest.err conftest.$ac_objext \ 15109 conftest$ac_exeext conftest.$ac_ext 15110 if test -z "$lt_cv_aix_libpath_"; then 15111 lt_cv_aix_libpath_="/usr/lib:/lib" 15112 fi 15113 15114fi 15115 15116 aix_libpath=$lt_cv_aix_libpath_ 15117fi 15118 15119 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15120 # Warning - without using the other run time loading flags, 15121 # -berok will link without error, but may produce a broken library. 15122 no_undefined_flag=' ${wl}-bernotok' 15123 allow_undefined_flag=' ${wl}-berok' 15124 if test "$with_gnu_ld" = yes; then 15125 # We only use this code for GNU lds that support --whole-archive. 15126 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 15127 else 15128 # Exported symbols can be pulled into shared objects from archives 15129 whole_archive_flag_spec='$convenience' 15130 fi 15131 archive_cmds_need_lc=yes 15132 # This is similar to how AIX traditionally builds its shared libraries. 15133 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 15134 fi 15135 fi 15136 ;; 15137 15138 amigaos*) 15139 case $host_cpu in 15140 powerpc) 15141 # see comment about AmigaOS4 .so support 15142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15143 archive_expsym_cmds='' 15144 ;; 15145 m68k) 15146 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)' 15147 hardcode_libdir_flag_spec='-L$libdir' 15148 hardcode_minus_L=yes 15149 ;; 15150 esac 15151 ;; 15152 15153 bsdi[45]*) 15154 export_dynamic_flag_spec=-rdynamic 15155 ;; 15156 15157 cygwin* | mingw* | pw32* | cegcc*) 15158 # When not using gcc, we currently assume that we are using 15159 # Microsoft Visual C++. 15160 # hardcode_libdir_flag_spec is actually meaningless, as there is 15161 # no search path for DLLs. 15162 case $cc_basename in 15163 cl*) 15164 # Native MSVC 15165 hardcode_libdir_flag_spec=' ' 15166 allow_undefined_flag=unsupported 15167 always_export_symbols=yes 15168 file_list_spec='@' 15169 # Tell ltmain to make .lib files, not .a files. 15170 libext=lib 15171 # Tell ltmain to make .dll files, not .so files. 15172 shrext_cmds=".dll" 15173 # FIXME: Setting linknames here is a bad hack. 15174 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 15175 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15176 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 15177 else 15178 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 15179 fi~ 15180 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15181 linknames=' 15182 # The linker will not automatically build a static lib if we build a DLL. 15183 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 15184 enable_shared_with_static_runtimes=yes 15185 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15186 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15187 # Don't use ranlib 15188 old_postinstall_cmds='chmod 644 $oldlib' 15189 postlink_cmds='lt_outputfile="@OUTPUT@"~ 15190 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15191 case $lt_outputfile in 15192 *.exe|*.EXE) ;; 15193 *) 15194 lt_outputfile="$lt_outputfile.exe" 15195 lt_tool_outputfile="$lt_tool_outputfile.exe" 15196 ;; 15197 esac~ 15198 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 15199 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15200 $RM "$lt_outputfile.manifest"; 15201 fi' 15202 ;; 15203 *) 15204 # Assume MSVC wrapper 15205 hardcode_libdir_flag_spec=' ' 15206 allow_undefined_flag=unsupported 15207 # Tell ltmain to make .lib files, not .a files. 15208 libext=lib 15209 # Tell ltmain to make .dll files, not .so files. 15210 shrext_cmds=".dll" 15211 # FIXME: Setting linknames here is a bad hack. 15212 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 15213 # The linker will automatically build a .lib file if we build a DLL. 15214 old_archive_from_new_cmds='true' 15215 # FIXME: Should let the user specify the lib program. 15216 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 15217 enable_shared_with_static_runtimes=yes 15218 ;; 15219 esac 15220 ;; 15221 15222 darwin* | rhapsody*) 15223 15224 15225 archive_cmds_need_lc=no 15226 hardcode_direct=no 15227 hardcode_automatic=yes 15228 hardcode_shlibpath_var=unsupported 15229 if test "$lt_cv_ld_force_load" = "yes"; then 15230 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\"`' 15231 15232 else 15233 whole_archive_flag_spec='' 15234 fi 15235 link_all_deplibs=yes 15236 allow_undefined_flag="$_lt_dar_allow_undefined" 15237 case $cc_basename in 15238 ifort*) _lt_dar_can_shared=yes ;; 15239 *) _lt_dar_can_shared=$GCC ;; 15240 esac 15241 if test "$_lt_dar_can_shared" = "yes"; then 15242 output_verbose_link_cmd=func_echo_all 15243 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15244 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15245 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}" 15246 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}" 15247 15248 else 15249 ld_shlibs=no 15250 fi 15251 15252 ;; 15253 15254 dgux*) 15255 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15256 hardcode_libdir_flag_spec='-L$libdir' 15257 hardcode_shlibpath_var=no 15258 ;; 15259 15260 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15261 # support. Future versions do this automatically, but an explicit c++rt0.o 15262 # does not break anything, and helps significantly (at the cost of a little 15263 # extra space). 15264 freebsd2.2*) 15265 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15266 hardcode_libdir_flag_spec='-R$libdir' 15267 hardcode_direct=yes 15268 hardcode_shlibpath_var=no 15269 ;; 15270 15271 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15272 freebsd2.*) 15273 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15274 hardcode_direct=yes 15275 hardcode_minus_L=yes 15276 hardcode_shlibpath_var=no 15277 ;; 15278 15279 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15280 freebsd* | dragonfly*) 15281 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15282 hardcode_libdir_flag_spec='-R$libdir' 15283 hardcode_direct=yes 15284 hardcode_shlibpath_var=no 15285 ;; 15286 15287 hpux9*) 15288 if test "$GCC" = yes; then 15289 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15290 else 15291 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15292 fi 15293 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15294 hardcode_libdir_separator=: 15295 hardcode_direct=yes 15296 15297 # hardcode_minus_L: Not really in the search PATH, 15298 # but as the default location of the library. 15299 hardcode_minus_L=yes 15300 export_dynamic_flag_spec='${wl}-E' 15301 ;; 15302 15303 hpux10*) 15304 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15305 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15306 else 15307 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15308 fi 15309 if test "$with_gnu_ld" = no; then 15310 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15311 hardcode_libdir_separator=: 15312 hardcode_direct=yes 15313 hardcode_direct_absolute=yes 15314 export_dynamic_flag_spec='${wl}-E' 15315 # hardcode_minus_L: Not really in the search PATH, 15316 # but as the default location of the library. 15317 hardcode_minus_L=yes 15318 fi 15319 ;; 15320 15321 hpux11*) 15322 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15323 case $host_cpu in 15324 hppa*64*) 15325 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15326 ;; 15327 ia64*) 15328 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15329 ;; 15330 *) 15331 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15332 ;; 15333 esac 15334 else 15335 case $host_cpu in 15336 hppa*64*) 15337 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15338 ;; 15339 ia64*) 15340 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15341 ;; 15342 *) 15343 15344 # Older versions of the 11.00 compiler do not understand -b yet 15345 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 15346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 15347$as_echo_n "checking if $CC understands -b... " >&6; } 15348if ${lt_cv_prog_compiler__b+:} false; then : 15349 $as_echo_n "(cached) " >&6 15350else 15351 lt_cv_prog_compiler__b=no 15352 save_LDFLAGS="$LDFLAGS" 15353 LDFLAGS="$LDFLAGS -b" 15354 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15355 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15356 # The linker can only warn and ignore the option if not recognized 15357 # So say no if there are warnings 15358 if test -s conftest.err; then 15359 # Append any errors to the config.log. 15360 cat conftest.err 1>&5 15361 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15363 if diff conftest.exp conftest.er2 >/dev/null; then 15364 lt_cv_prog_compiler__b=yes 15365 fi 15366 else 15367 lt_cv_prog_compiler__b=yes 15368 fi 15369 fi 15370 $RM -r conftest* 15371 LDFLAGS="$save_LDFLAGS" 15372 15373fi 15374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 15375$as_echo "$lt_cv_prog_compiler__b" >&6; } 15376 15377if test x"$lt_cv_prog_compiler__b" = xyes; then 15378 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15379else 15380 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15381fi 15382 15383 ;; 15384 esac 15385 fi 15386 if test "$with_gnu_ld" = no; then 15387 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15388 hardcode_libdir_separator=: 15389 15390 case $host_cpu in 15391 hppa*64*|ia64*) 15392 hardcode_direct=no 15393 hardcode_shlibpath_var=no 15394 ;; 15395 *) 15396 hardcode_direct=yes 15397 hardcode_direct_absolute=yes 15398 export_dynamic_flag_spec='${wl}-E' 15399 15400 # hardcode_minus_L: Not really in the search PATH, 15401 # but as the default location of the library. 15402 hardcode_minus_L=yes 15403 ;; 15404 esac 15405 fi 15406 ;; 15407 15408 irix5* | irix6* | nonstopux*) 15409 if test "$GCC" = yes; then 15410 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' 15411 # Try to use the -exported_symbol ld option, if it does not 15412 # work, assume that -exports_file does not work either and 15413 # implicitly export all symbols. 15414 # This should be the same for all languages, so no per-tag cache variable. 15415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 15416$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 15417if ${lt_cv_irix_exported_symbol+:} false; then : 15418 $as_echo_n "(cached) " >&6 15419else 15420 save_LDFLAGS="$LDFLAGS" 15421 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 15422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15423/* end confdefs.h. */ 15424int foo (void) { return 0; } 15425_ACEOF 15426if ac_fn_c_try_link "$LINENO"; then : 15427 lt_cv_irix_exported_symbol=yes 15428else 15429 lt_cv_irix_exported_symbol=no 15430fi 15431rm -f core conftest.err conftest.$ac_objext \ 15432 conftest$ac_exeext conftest.$ac_ext 15433 LDFLAGS="$save_LDFLAGS" 15434fi 15435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 15436$as_echo "$lt_cv_irix_exported_symbol" >&6; } 15437 if test "$lt_cv_irix_exported_symbol" = yes; then 15438 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' 15439 fi 15440 else 15441 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' 15442 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' 15443 fi 15444 archive_cmds_need_lc='no' 15445 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15446 hardcode_libdir_separator=: 15447 inherit_rpath=yes 15448 link_all_deplibs=yes 15449 ;; 15450 15451 netbsd*) 15452 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15453 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15454 else 15455 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15456 fi 15457 hardcode_libdir_flag_spec='-R$libdir' 15458 hardcode_direct=yes 15459 hardcode_shlibpath_var=no 15460 ;; 15461 15462 newsos6) 15463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15464 hardcode_direct=yes 15465 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15466 hardcode_libdir_separator=: 15467 hardcode_shlibpath_var=no 15468 ;; 15469 15470 *nto* | *qnx*) 15471 ;; 15472 15473 openbsd*) 15474 if test -f /usr/libexec/ld.so; then 15475 hardcode_direct=yes 15476 hardcode_shlibpath_var=no 15477 hardcode_direct_absolute=yes 15478 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15479 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15480 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15481 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15482 export_dynamic_flag_spec='${wl}-E' 15483 else 15484 case $host_os in 15485 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15487 hardcode_libdir_flag_spec='-R$libdir' 15488 ;; 15489 *) 15490 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15491 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15492 ;; 15493 esac 15494 fi 15495 else 15496 ld_shlibs=no 15497 fi 15498 ;; 15499 15500 os2*) 15501 hardcode_libdir_flag_spec='-L$libdir' 15502 hardcode_minus_L=yes 15503 allow_undefined_flag=unsupported 15504 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 15505 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15506 ;; 15507 15508 osf3*) 15509 if test "$GCC" = yes; then 15510 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15511 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' 15512 else 15513 allow_undefined_flag=' -expect_unresolved \*' 15514 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' 15515 fi 15516 archive_cmds_need_lc='no' 15517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15518 hardcode_libdir_separator=: 15519 ;; 15520 15521 osf4* | osf5*) # as osf3* with the addition of -msym flag 15522 if test "$GCC" = yes; then 15523 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15524 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' 15525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15526 else 15527 allow_undefined_flag=' -expect_unresolved \*' 15528 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' 15529 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~ 15530 $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' 15531 15532 # Both c and cxx compiler support -rpath directly 15533 hardcode_libdir_flag_spec='-rpath $libdir' 15534 fi 15535 archive_cmds_need_lc='no' 15536 hardcode_libdir_separator=: 15537 ;; 15538 15539 solaris*) 15540 no_undefined_flag=' -z defs' 15541 if test "$GCC" = yes; then 15542 wlarc='${wl}' 15543 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15544 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15545 $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' 15546 else 15547 case `$CC -V 2>&1` in 15548 *"Compilers 5.0"*) 15549 wlarc='' 15550 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15551 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15552 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 15553 ;; 15554 *) 15555 wlarc='${wl}' 15556 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 15557 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15558 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15559 ;; 15560 esac 15561 fi 15562 hardcode_libdir_flag_spec='-R$libdir' 15563 hardcode_shlibpath_var=no 15564 case $host_os in 15565 solaris2.[0-5] | solaris2.[0-5].*) ;; 15566 *) 15567 # The compiler driver will combine and reorder linker options, 15568 # but understands `-z linker_flag'. GCC discards it without `$wl', 15569 # but is careful enough not to reorder. 15570 # Supported since Solaris 2.6 (maybe 2.5.1?) 15571 if test "$GCC" = yes; then 15572 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15573 else 15574 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 15575 fi 15576 ;; 15577 esac 15578 link_all_deplibs=yes 15579 ;; 15580 15581 sunos4*) 15582 if test "x$host_vendor" = xsequent; then 15583 # Use $CC to link under sequent, because it throws in some extra .o 15584 # files that make .init and .fini sections work. 15585 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15586 else 15587 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15588 fi 15589 hardcode_libdir_flag_spec='-L$libdir' 15590 hardcode_direct=yes 15591 hardcode_minus_L=yes 15592 hardcode_shlibpath_var=no 15593 ;; 15594 15595 sysv4) 15596 case $host_vendor in 15597 sni) 15598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15599 hardcode_direct=yes # is this really true??? 15600 ;; 15601 siemens) 15602 ## LD is ld it makes a PLAMLIB 15603 ## CC just makes a GrossModule. 15604 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15605 reload_cmds='$CC -r -o $output$reload_objs' 15606 hardcode_direct=no 15607 ;; 15608 motorola) 15609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15610 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 15611 ;; 15612 esac 15613 runpath_var='LD_RUN_PATH' 15614 hardcode_shlibpath_var=no 15615 ;; 15616 15617 sysv4.3*) 15618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15619 hardcode_shlibpath_var=no 15620 export_dynamic_flag_spec='-Bexport' 15621 ;; 15622 15623 sysv4*MP*) 15624 if test -d /usr/nec; then 15625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15626 hardcode_shlibpath_var=no 15627 runpath_var=LD_RUN_PATH 15628 hardcode_runpath_var=yes 15629 ld_shlibs=yes 15630 fi 15631 ;; 15632 15633 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15634 no_undefined_flag='${wl}-z,text' 15635 archive_cmds_need_lc=no 15636 hardcode_shlibpath_var=no 15637 runpath_var='LD_RUN_PATH' 15638 15639 if test "$GCC" = yes; then 15640 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15641 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15642 else 15643 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15644 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15645 fi 15646 ;; 15647 15648 sysv5* | sco3.2v5* | sco5v6*) 15649 # Note: We can NOT use -z defs as we might desire, because we do not 15650 # link with -lc, and that would cause any symbols used from libc to 15651 # always be unresolved, which means just about no library would 15652 # ever link correctly. If we're not using GNU ld we use -z text 15653 # though, which does catch some bad symbols but isn't as heavy-handed 15654 # as -z defs. 15655 no_undefined_flag='${wl}-z,text' 15656 allow_undefined_flag='${wl}-z,nodefs' 15657 archive_cmds_need_lc=no 15658 hardcode_shlibpath_var=no 15659 hardcode_libdir_flag_spec='${wl}-R,$libdir' 15660 hardcode_libdir_separator=':' 15661 link_all_deplibs=yes 15662 export_dynamic_flag_spec='${wl}-Bexport' 15663 runpath_var='LD_RUN_PATH' 15664 15665 if test "$GCC" = yes; then 15666 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15667 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15668 else 15669 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15670 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15671 fi 15672 ;; 15673 15674 uts4*) 15675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15676 hardcode_libdir_flag_spec='-L$libdir' 15677 hardcode_shlibpath_var=no 15678 ;; 15679 15680 *) 15681 ld_shlibs=no 15682 ;; 15683 esac 15684 15685 if test x$host_vendor = xsni; then 15686 case $host in 15687 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15688 export_dynamic_flag_spec='${wl}-Blargedynsym' 15689 ;; 15690 esac 15691 fi 15692 fi 15693 15694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 15695$as_echo "$ld_shlibs" >&6; } 15696test "$ld_shlibs" = no && can_build_shared=no 15697 15698with_gnu_ld=$with_gnu_ld 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714# 15715# Do we need to explicitly link libc? 15716# 15717case "x$archive_cmds_need_lc" in 15718x|xyes) 15719 # Assume -lc should be added 15720 archive_cmds_need_lc=yes 15721 15722 if test "$enable_shared" = yes && test "$GCC" = yes; then 15723 case $archive_cmds in 15724 *'~'*) 15725 # FIXME: we may have to deal with multi-command sequences. 15726 ;; 15727 '$CC '*) 15728 # Test whether the compiler implicitly links with -lc since on some 15729 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15730 # to ld, don't add -lc before -lgcc. 15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15732$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15733if ${lt_cv_archive_cmds_need_lc+:} false; then : 15734 $as_echo_n "(cached) " >&6 15735else 15736 $RM conftest* 15737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15738 15739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15740 (eval $ac_compile) 2>&5 15741 ac_status=$? 15742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15743 test $ac_status = 0; } 2>conftest.err; then 15744 soname=conftest 15745 lib=conftest 15746 libobjs=conftest.$ac_objext 15747 deplibs= 15748 wl=$lt_prog_compiler_wl 15749 pic_flag=$lt_prog_compiler_pic 15750 compiler_flags=-v 15751 linker_flags=-v 15752 verstring= 15753 output_objdir=. 15754 libname=conftest 15755 lt_save_allow_undefined_flag=$allow_undefined_flag 15756 allow_undefined_flag= 15757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15758 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15759 ac_status=$? 15760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15761 test $ac_status = 0; } 15762 then 15763 lt_cv_archive_cmds_need_lc=no 15764 else 15765 lt_cv_archive_cmds_need_lc=yes 15766 fi 15767 allow_undefined_flag=$lt_save_allow_undefined_flag 15768 else 15769 cat conftest.err 1>&5 15770 fi 15771 $RM conftest* 15772 15773fi 15774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 15775$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 15776 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 15777 ;; 15778 esac 15779 fi 15780 ;; 15781esac 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15935$as_echo_n "checking dynamic linker characteristics... " >&6; } 15936 15937if test "$GCC" = yes; then 15938 case $host_os in 15939 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 15940 *) lt_awk_arg="/^libraries:/" ;; 15941 esac 15942 case $host_os in 15943 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 15944 *) lt_sed_strip_eq="s,=/,/,g" ;; 15945 esac 15946 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 15947 case $lt_search_path_spec in 15948 *\;*) 15949 # if the path contains ";" then we assume it to be the separator 15950 # otherwise default to the standard path separator (i.e. ":") - it is 15951 # assumed that no part of a normal pathname contains ";" but that should 15952 # okay in the real world where ";" in dirpaths is itself problematic. 15953 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 15954 ;; 15955 *) 15956 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 15957 ;; 15958 esac 15959 # Ok, now we have the path, separated by spaces, we can step through it 15960 # and add multilib dir if necessary. 15961 lt_tmp_lt_search_path_spec= 15962 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 15963 for lt_sys_path in $lt_search_path_spec; do 15964 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 15965 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 15966 else 15967 test -d "$lt_sys_path" && \ 15968 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 15969 fi 15970 done 15971 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 15972BEGIN {RS=" "; FS="/|\n";} { 15973 lt_foo=""; 15974 lt_count=0; 15975 for (lt_i = NF; lt_i > 0; lt_i--) { 15976 if ($lt_i != "" && $lt_i != ".") { 15977 if ($lt_i == "..") { 15978 lt_count++; 15979 } else { 15980 if (lt_count == 0) { 15981 lt_foo="/" $lt_i lt_foo; 15982 } else { 15983 lt_count--; 15984 } 15985 } 15986 } 15987 } 15988 if (lt_foo != "") { lt_freq[lt_foo]++; } 15989 if (lt_freq[lt_foo] == 1) { print lt_foo; } 15990}'` 15991 # AWK program above erroneously prepends '/' to C:/dos/paths 15992 # for these hosts. 15993 case $host_os in 15994 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 15995 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 15996 esac 15997 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 15998else 15999 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16000fi 16001library_names_spec= 16002libname_spec='lib$name' 16003soname_spec= 16004shrext_cmds=".so" 16005postinstall_cmds= 16006postuninstall_cmds= 16007finish_cmds= 16008finish_eval= 16009shlibpath_var= 16010shlibpath_overrides_runpath=unknown 16011version_type=none 16012dynamic_linker="$host_os ld.so" 16013sys_lib_dlsearch_path_spec="/lib /usr/lib" 16014need_lib_prefix=unknown 16015hardcode_into_libs=no 16016 16017# when you set need_version to no, make sure it does not cause -set_version 16018# flags to be left without arguments 16019need_version=unknown 16020 16021case $host_os in 16022aix3*) 16023 version_type=linux # correct to gnu/linux during the next big refactor 16024 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16025 shlibpath_var=LIBPATH 16026 16027 # AIX 3 has no versioning support, so we append a major version to the name. 16028 soname_spec='${libname}${release}${shared_ext}$major' 16029 ;; 16030 16031aix[4-9]*) 16032 version_type=linux # correct to gnu/linux during the next big refactor 16033 need_lib_prefix=no 16034 need_version=no 16035 hardcode_into_libs=yes 16036 if test "$host_cpu" = ia64; then 16037 # AIX 5 supports IA64 16038 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16039 shlibpath_var=LD_LIBRARY_PATH 16040 else 16041 # With GCC up to 2.95.x, collect2 would create an import file 16042 # for dependence libraries. The import file would start with 16043 # the line `#! .'. This would cause the generated library to 16044 # depend on `.', always an invalid library. This was fixed in 16045 # development snapshots of GCC prior to 3.0. 16046 case $host_os in 16047 aix4 | aix4.[01] | aix4.[01].*) 16048 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16049 echo ' yes ' 16050 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 16051 : 16052 else 16053 can_build_shared=no 16054 fi 16055 ;; 16056 esac 16057 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16058 # soname into executable. Probably we can add versioning support to 16059 # collect2, so additional links can be useful in future. 16060 if test "$aix_use_runtimelinking" = yes; then 16061 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16062 # instead of lib<name>.a to let people know that these are not 16063 # typical AIX shared libraries. 16064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16065 else 16066 # We preserve .a as extension for shared libraries through AIX4.2 16067 # and later when we are not doing run time linking. 16068 library_names_spec='${libname}${release}.a $libname.a' 16069 soname_spec='${libname}${release}${shared_ext}$major' 16070 fi 16071 shlibpath_var=LIBPATH 16072 fi 16073 ;; 16074 16075amigaos*) 16076 case $host_cpu in 16077 powerpc) 16078 # Since July 2007 AmigaOS4 officially supports .so libraries. 16079 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16081 ;; 16082 m68k) 16083 library_names_spec='$libname.ixlibrary $libname.a' 16084 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16085 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16086 ;; 16087 esac 16088 ;; 16089 16090beos*) 16091 library_names_spec='${libname}${shared_ext}' 16092 dynamic_linker="$host_os ld.so" 16093 shlibpath_var=LIBRARY_PATH 16094 ;; 16095 16096bsdi[45]*) 16097 version_type=linux # correct to gnu/linux during the next big refactor 16098 need_version=no 16099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16100 soname_spec='${libname}${release}${shared_ext}$major' 16101 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16102 shlibpath_var=LD_LIBRARY_PATH 16103 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16104 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16105 # the default ld.so.conf also contains /usr/contrib/lib and 16106 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16107 # libtool to hard-code these into programs 16108 ;; 16109 16110cygwin* | mingw* | pw32* | cegcc*) 16111 version_type=windows 16112 shrext_cmds=".dll" 16113 need_version=no 16114 need_lib_prefix=no 16115 16116 case $GCC,$cc_basename in 16117 yes,*) 16118 # gcc 16119 library_names_spec='$libname.dll.a' 16120 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16121 postinstall_cmds='base_file=`basename \${file}`~ 16122 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16123 dldir=$destdir/`dirname \$dlpath`~ 16124 test -d \$dldir || mkdir -p \$dldir~ 16125 $install_prog $dir/$dlname \$dldir/$dlname~ 16126 chmod a+x \$dldir/$dlname~ 16127 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16128 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16129 fi' 16130 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16131 dlpath=$dir/\$dldll~ 16132 $RM \$dlpath' 16133 shlibpath_overrides_runpath=yes 16134 16135 case $host_os in 16136 cygwin*) 16137 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16138 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16139 16140 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 16141 ;; 16142 mingw* | cegcc*) 16143 # MinGW DLLs use traditional 'lib' prefix 16144 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16145 ;; 16146 pw32*) 16147 # pw32 DLLs use 'pw' prefix rather than 'lib' 16148 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16149 ;; 16150 esac 16151 dynamic_linker='Win32 ld.exe' 16152 ;; 16153 16154 *,cl*) 16155 # Native MSVC 16156 libname_spec='$name' 16157 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16158 library_names_spec='${libname}.dll.lib' 16159 16160 case $build_os in 16161 mingw*) 16162 sys_lib_search_path_spec= 16163 lt_save_ifs=$IFS 16164 IFS=';' 16165 for lt_path in $LIB 16166 do 16167 IFS=$lt_save_ifs 16168 # Let DOS variable expansion print the short 8.3 style file name. 16169 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16170 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16171 done 16172 IFS=$lt_save_ifs 16173 # Convert to MSYS style. 16174 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16175 ;; 16176 cygwin*) 16177 # Convert to unix form, then to dos form, then back to unix form 16178 # but this time dos style (no spaces!) so that the unix form looks 16179 # like /cygdrive/c/PROGRA~1:/cygdr... 16180 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16181 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16182 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16183 ;; 16184 *) 16185 sys_lib_search_path_spec="$LIB" 16186 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16187 # It is most probably a Windows format PATH. 16188 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16189 else 16190 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16191 fi 16192 # FIXME: find the short name or the path components, as spaces are 16193 # common. (e.g. "Program Files" -> "PROGRA~1") 16194 ;; 16195 esac 16196 16197 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16198 postinstall_cmds='base_file=`basename \${file}`~ 16199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16200 dldir=$destdir/`dirname \$dlpath`~ 16201 test -d \$dldir || mkdir -p \$dldir~ 16202 $install_prog $dir/$dlname \$dldir/$dlname' 16203 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16204 dlpath=$dir/\$dldll~ 16205 $RM \$dlpath' 16206 shlibpath_overrides_runpath=yes 16207 dynamic_linker='Win32 link.exe' 16208 ;; 16209 16210 *) 16211 # Assume MSVC wrapper 16212 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16213 dynamic_linker='Win32 ld.exe' 16214 ;; 16215 esac 16216 # FIXME: first we should search . and the directory the executable is in 16217 shlibpath_var=PATH 16218 ;; 16219 16220darwin* | rhapsody*) 16221 dynamic_linker="$host_os dyld" 16222 version_type=darwin 16223 need_lib_prefix=no 16224 need_version=no 16225 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16226 soname_spec='${libname}${release}${major}$shared_ext' 16227 shlibpath_overrides_runpath=yes 16228 shlibpath_var=DYLD_LIBRARY_PATH 16229 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16230 16231 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 16232 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16233 ;; 16234 16235dgux*) 16236 version_type=linux # correct to gnu/linux during the next big refactor 16237 need_lib_prefix=no 16238 need_version=no 16239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16240 soname_spec='${libname}${release}${shared_ext}$major' 16241 shlibpath_var=LD_LIBRARY_PATH 16242 ;; 16243 16244freebsd* | dragonfly*) 16245 # DragonFly does not have aout. When/if they implement a new 16246 # versioning mechanism, adjust this. 16247 if test -x /usr/bin/objformat; then 16248 objformat=`/usr/bin/objformat` 16249 else 16250 case $host_os in 16251 freebsd[23].*) objformat=aout ;; 16252 *) objformat=elf ;; 16253 esac 16254 fi 16255 version_type=freebsd-$objformat 16256 case $version_type in 16257 freebsd-elf*) 16258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16259 need_version=no 16260 need_lib_prefix=no 16261 ;; 16262 freebsd-*) 16263 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16264 need_version=yes 16265 ;; 16266 esac 16267 shlibpath_var=LD_LIBRARY_PATH 16268 case $host_os in 16269 freebsd2.*) 16270 shlibpath_overrides_runpath=yes 16271 ;; 16272 freebsd3.[01]* | freebsdelf3.[01]*) 16273 shlibpath_overrides_runpath=yes 16274 hardcode_into_libs=yes 16275 ;; 16276 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16277 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16278 shlibpath_overrides_runpath=no 16279 hardcode_into_libs=yes 16280 ;; 16281 *) # from 4.6 on, and DragonFly 16282 shlibpath_overrides_runpath=yes 16283 hardcode_into_libs=yes 16284 ;; 16285 esac 16286 ;; 16287 16288gnu*) 16289 version_type=linux # correct to gnu/linux during the next big refactor 16290 need_lib_prefix=no 16291 need_version=no 16292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16293 soname_spec='${libname}${release}${shared_ext}$major' 16294 shlibpath_var=LD_LIBRARY_PATH 16295 shlibpath_overrides_runpath=no 16296 hardcode_into_libs=yes 16297 ;; 16298 16299haiku*) 16300 version_type=linux # correct to gnu/linux during the next big refactor 16301 need_lib_prefix=no 16302 need_version=no 16303 dynamic_linker="$host_os runtime_loader" 16304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16305 soname_spec='${libname}${release}${shared_ext}$major' 16306 shlibpath_var=LIBRARY_PATH 16307 shlibpath_overrides_runpath=yes 16308 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16309 hardcode_into_libs=yes 16310 ;; 16311 16312hpux9* | hpux10* | hpux11*) 16313 # Give a soname corresponding to the major version so that dld.sl refuses to 16314 # link against other versions. 16315 version_type=sunos 16316 need_lib_prefix=no 16317 need_version=no 16318 case $host_cpu in 16319 ia64*) 16320 shrext_cmds='.so' 16321 hardcode_into_libs=yes 16322 dynamic_linker="$host_os dld.so" 16323 shlibpath_var=LD_LIBRARY_PATH 16324 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16326 soname_spec='${libname}${release}${shared_ext}$major' 16327 if test "X$HPUX_IA64_MODE" = X32; then 16328 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16329 else 16330 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16331 fi 16332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16333 ;; 16334 hppa*64*) 16335 shrext_cmds='.sl' 16336 hardcode_into_libs=yes 16337 dynamic_linker="$host_os dld.sl" 16338 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16341 soname_spec='${libname}${release}${shared_ext}$major' 16342 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16344 ;; 16345 *) 16346 shrext_cmds='.sl' 16347 dynamic_linker="$host_os dld.sl" 16348 shlibpath_var=SHLIB_PATH 16349 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16351 soname_spec='${libname}${release}${shared_ext}$major' 16352 ;; 16353 esac 16354 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16355 postinstall_cmds='chmod 555 $lib' 16356 # or fails outright, so override atomically: 16357 install_override_mode=555 16358 ;; 16359 16360interix[3-9]*) 16361 version_type=linux # correct to gnu/linux during the next big refactor 16362 need_lib_prefix=no 16363 need_version=no 16364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16365 soname_spec='${libname}${release}${shared_ext}$major' 16366 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16367 shlibpath_var=LD_LIBRARY_PATH 16368 shlibpath_overrides_runpath=no 16369 hardcode_into_libs=yes 16370 ;; 16371 16372irix5* | irix6* | nonstopux*) 16373 case $host_os in 16374 nonstopux*) version_type=nonstopux ;; 16375 *) 16376 if test "$lt_cv_prog_gnu_ld" = yes; then 16377 version_type=linux # correct to gnu/linux during the next big refactor 16378 else 16379 version_type=irix 16380 fi ;; 16381 esac 16382 need_lib_prefix=no 16383 need_version=no 16384 soname_spec='${libname}${release}${shared_ext}$major' 16385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16386 case $host_os in 16387 irix5* | nonstopux*) 16388 libsuff= shlibsuff= 16389 ;; 16390 *) 16391 case $LD in # libtool.m4 will add one of these switches to LD 16392 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16393 libsuff= shlibsuff= libmagic=32-bit;; 16394 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16395 libsuff=32 shlibsuff=N32 libmagic=N32;; 16396 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16397 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16398 *) libsuff= shlibsuff= libmagic=never-match;; 16399 esac 16400 ;; 16401 esac 16402 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16403 shlibpath_overrides_runpath=no 16404 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16405 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16406 hardcode_into_libs=yes 16407 ;; 16408 16409# No shared lib support for Linux oldld, aout, or coff. 16410linux*oldld* | linux*aout* | linux*coff*) 16411 dynamic_linker=no 16412 ;; 16413 16414# This must be glibc/ELF. 16415linux* | k*bsd*-gnu | kopensolaris*-gnu) 16416 version_type=linux # correct to gnu/linux during the next big refactor 16417 need_lib_prefix=no 16418 need_version=no 16419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16420 soname_spec='${libname}${release}${shared_ext}$major' 16421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16422 shlibpath_var=LD_LIBRARY_PATH 16423 shlibpath_overrides_runpath=no 16424 16425 # Some binutils ld are patched to set DT_RUNPATH 16426 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16427 $as_echo_n "(cached) " >&6 16428else 16429 lt_cv_shlibpath_overrides_runpath=no 16430 save_LDFLAGS=$LDFLAGS 16431 save_libdir=$libdir 16432 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 16433 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 16434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16435/* end confdefs.h. */ 16436 16437int 16438main () 16439{ 16440 16441 ; 16442 return 0; 16443} 16444_ACEOF 16445if ac_fn_c_try_link "$LINENO"; then : 16446 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16447 lt_cv_shlibpath_overrides_runpath=yes 16448fi 16449fi 16450rm -f core conftest.err conftest.$ac_objext \ 16451 conftest$ac_exeext conftest.$ac_ext 16452 LDFLAGS=$save_LDFLAGS 16453 libdir=$save_libdir 16454 16455fi 16456 16457 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16458 16459 # This implies no fast_install, which is unacceptable. 16460 # Some rework will be needed to allow for fast_install 16461 # before this can be enabled. 16462 hardcode_into_libs=yes 16463 16464 # Add ABI-specific directories to the system library path. 16465 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 16466 16467 # Append ld.so.conf contents to the search path 16468 if test -f /etc/ld.so.conf; then 16469 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' ' '` 16470 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 16471 16472 fi 16473 16474 # We used to test for /lib/ld.so.1 and disable shared libraries on 16475 # powerpc, because MkLinux only supported shared libraries with the 16476 # GNU dynamic linker. Since this was broken with cross compilers, 16477 # most powerpc-linux boxes support dynamic linking these days and 16478 # people can always --disable-shared, the test was removed, and we 16479 # assume the GNU/Linux dynamic linker is in use. 16480 dynamic_linker='GNU/Linux ld.so' 16481 ;; 16482 16483netbsd*) 16484 version_type=sunos 16485 need_lib_prefix=no 16486 need_version=no 16487 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16490 dynamic_linker='NetBSD (a.out) ld.so' 16491 else 16492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16493 soname_spec='${libname}${release}${shared_ext}$major' 16494 dynamic_linker='NetBSD ld.elf_so' 16495 fi 16496 shlibpath_var=LD_LIBRARY_PATH 16497 shlibpath_overrides_runpath=yes 16498 hardcode_into_libs=yes 16499 ;; 16500 16501newsos6) 16502 version_type=linux # correct to gnu/linux during the next big refactor 16503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16504 shlibpath_var=LD_LIBRARY_PATH 16505 shlibpath_overrides_runpath=yes 16506 ;; 16507 16508*nto* | *qnx*) 16509 version_type=qnx 16510 need_lib_prefix=no 16511 need_version=no 16512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16513 soname_spec='${libname}${release}${shared_ext}$major' 16514 shlibpath_var=LD_LIBRARY_PATH 16515 shlibpath_overrides_runpath=no 16516 hardcode_into_libs=yes 16517 dynamic_linker='ldqnx.so' 16518 ;; 16519 16520openbsd*) 16521 version_type=sunos 16522 sys_lib_dlsearch_path_spec="/usr/lib" 16523 need_lib_prefix=no 16524 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16525 case $host_os in 16526 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16527 *) need_version=no ;; 16528 esac 16529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16531 shlibpath_var=LD_LIBRARY_PATH 16532 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16533 case $host_os in 16534 openbsd2.[89] | openbsd2.[89].*) 16535 shlibpath_overrides_runpath=no 16536 ;; 16537 *) 16538 shlibpath_overrides_runpath=yes 16539 ;; 16540 esac 16541 else 16542 shlibpath_overrides_runpath=yes 16543 fi 16544 ;; 16545 16546os2*) 16547 libname_spec='$name' 16548 shrext_cmds=".dll" 16549 need_lib_prefix=no 16550 library_names_spec='$libname${shared_ext} $libname.a' 16551 dynamic_linker='OS/2 ld.exe' 16552 shlibpath_var=LIBPATH 16553 ;; 16554 16555osf3* | osf4* | osf5*) 16556 version_type=osf 16557 need_lib_prefix=no 16558 need_version=no 16559 soname_spec='${libname}${release}${shared_ext}$major' 16560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16561 shlibpath_var=LD_LIBRARY_PATH 16562 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16563 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16564 ;; 16565 16566rdos*) 16567 dynamic_linker=no 16568 ;; 16569 16570solaris*) 16571 version_type=linux # correct to gnu/linux during the next big refactor 16572 need_lib_prefix=no 16573 need_version=no 16574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16575 soname_spec='${libname}${release}${shared_ext}$major' 16576 shlibpath_var=LD_LIBRARY_PATH 16577 shlibpath_overrides_runpath=yes 16578 hardcode_into_libs=yes 16579 # ldd complains unless libraries are executable 16580 postinstall_cmds='chmod +x $lib' 16581 ;; 16582 16583sunos4*) 16584 version_type=sunos 16585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16586 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16587 shlibpath_var=LD_LIBRARY_PATH 16588 shlibpath_overrides_runpath=yes 16589 if test "$with_gnu_ld" = yes; then 16590 need_lib_prefix=no 16591 fi 16592 need_version=yes 16593 ;; 16594 16595sysv4 | sysv4.3*) 16596 version_type=linux # correct to gnu/linux during the next big refactor 16597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16598 soname_spec='${libname}${release}${shared_ext}$major' 16599 shlibpath_var=LD_LIBRARY_PATH 16600 case $host_vendor in 16601 sni) 16602 shlibpath_overrides_runpath=no 16603 need_lib_prefix=no 16604 runpath_var=LD_RUN_PATH 16605 ;; 16606 siemens) 16607 need_lib_prefix=no 16608 ;; 16609 motorola) 16610 need_lib_prefix=no 16611 need_version=no 16612 shlibpath_overrides_runpath=no 16613 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16614 ;; 16615 esac 16616 ;; 16617 16618sysv4*MP*) 16619 if test -d /usr/nec ;then 16620 version_type=linux # correct to gnu/linux during the next big refactor 16621 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16622 soname_spec='$libname${shared_ext}.$major' 16623 shlibpath_var=LD_LIBRARY_PATH 16624 fi 16625 ;; 16626 16627sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16628 version_type=freebsd-elf 16629 need_lib_prefix=no 16630 need_version=no 16631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16632 soname_spec='${libname}${release}${shared_ext}$major' 16633 shlibpath_var=LD_LIBRARY_PATH 16634 shlibpath_overrides_runpath=yes 16635 hardcode_into_libs=yes 16636 if test "$with_gnu_ld" = yes; then 16637 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16638 else 16639 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16640 case $host_os in 16641 sco3.2v5*) 16642 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16643 ;; 16644 esac 16645 fi 16646 sys_lib_dlsearch_path_spec='/usr/lib' 16647 ;; 16648 16649tpf*) 16650 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16651 version_type=linux # correct to gnu/linux during the next big refactor 16652 need_lib_prefix=no 16653 need_version=no 16654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16655 shlibpath_var=LD_LIBRARY_PATH 16656 shlibpath_overrides_runpath=no 16657 hardcode_into_libs=yes 16658 ;; 16659 16660uts4*) 16661 version_type=linux # correct to gnu/linux during the next big refactor 16662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16663 soname_spec='${libname}${release}${shared_ext}$major' 16664 shlibpath_var=LD_LIBRARY_PATH 16665 ;; 16666 16667*) 16668 dynamic_linker=no 16669 ;; 16670esac 16671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16672$as_echo "$dynamic_linker" >&6; } 16673test "$dynamic_linker" = no && can_build_shared=no 16674 16675variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16676if test "$GCC" = yes; then 16677 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16678fi 16679 16680if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16681 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16682fi 16683if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16684 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16685fi 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16779$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16780hardcode_action= 16781if test -n "$hardcode_libdir_flag_spec" || 16782 test -n "$runpath_var" || 16783 test "X$hardcode_automatic" = "Xyes" ; then 16784 16785 # We can hardcode non-existent directories. 16786 if test "$hardcode_direct" != no && 16787 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16788 # have to relink, otherwise we might link with an installed library 16789 # when we should be linking with a yet-to-be-installed one 16790 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 16791 test "$hardcode_minus_L" != no; then 16792 # Linking always hardcodes the temporary library directory. 16793 hardcode_action=relink 16794 else 16795 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16796 hardcode_action=immediate 16797 fi 16798else 16799 # We cannot hardcode anything, or else we can only hardcode existing 16800 # directories. 16801 hardcode_action=unsupported 16802fi 16803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 16804$as_echo "$hardcode_action" >&6; } 16805 16806if test "$hardcode_action" = relink || 16807 test "$inherit_rpath" = yes; then 16808 # Fast installation is not supported 16809 enable_fast_install=no 16810elif test "$shlibpath_overrides_runpath" = yes || 16811 test "$enable_shared" = no; then 16812 # Fast installation is not necessary 16813 enable_fast_install=needless 16814fi 16815 16816 16817 16818 16819 16820 16821 if test "x$enable_dlopen" != xyes; then 16822 enable_dlopen=unknown 16823 enable_dlopen_self=unknown 16824 enable_dlopen_self_static=unknown 16825else 16826 lt_cv_dlopen=no 16827 lt_cv_dlopen_libs= 16828 16829 case $host_os in 16830 beos*) 16831 lt_cv_dlopen="load_add_on" 16832 lt_cv_dlopen_libs= 16833 lt_cv_dlopen_self=yes 16834 ;; 16835 16836 mingw* | pw32* | cegcc*) 16837 lt_cv_dlopen="LoadLibrary" 16838 lt_cv_dlopen_libs= 16839 ;; 16840 16841 cygwin*) 16842 lt_cv_dlopen="dlopen" 16843 lt_cv_dlopen_libs= 16844 ;; 16845 16846 darwin*) 16847 # if libdl is installed we need to link against it 16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16849$as_echo_n "checking for dlopen in -ldl... " >&6; } 16850if ${ac_cv_lib_dl_dlopen+:} false; then : 16851 $as_echo_n "(cached) " >&6 16852else 16853 ac_check_lib_save_LIBS=$LIBS 16854LIBS="-ldl $LIBS" 16855cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16856/* end confdefs.h. */ 16857 16858/* Override any GCC internal prototype to avoid an error. 16859 Use char because int might match the return type of a GCC 16860 builtin and then its argument prototype would still apply. */ 16861#ifdef __cplusplus 16862extern "C" 16863#endif 16864char dlopen (); 16865int 16866main () 16867{ 16868return dlopen (); 16869 ; 16870 return 0; 16871} 16872_ACEOF 16873if ac_fn_c_try_link "$LINENO"; then : 16874 ac_cv_lib_dl_dlopen=yes 16875else 16876 ac_cv_lib_dl_dlopen=no 16877fi 16878rm -f core conftest.err conftest.$ac_objext \ 16879 conftest$ac_exeext conftest.$ac_ext 16880LIBS=$ac_check_lib_save_LIBS 16881fi 16882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16883$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 16884if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 16885 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 16886else 16887 16888 lt_cv_dlopen="dyld" 16889 lt_cv_dlopen_libs= 16890 lt_cv_dlopen_self=yes 16891 16892fi 16893 16894 ;; 16895 16896 *) 16897 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 16898if test "x$ac_cv_func_shl_load" = xyes; then : 16899 lt_cv_dlopen="shl_load" 16900else 16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 16902$as_echo_n "checking for shl_load in -ldld... " >&6; } 16903if ${ac_cv_lib_dld_shl_load+:} false; then : 16904 $as_echo_n "(cached) " >&6 16905else 16906 ac_check_lib_save_LIBS=$LIBS 16907LIBS="-ldld $LIBS" 16908cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16909/* end confdefs.h. */ 16910 16911/* Override any GCC internal prototype to avoid an error. 16912 Use char because int might match the return type of a GCC 16913 builtin and then its argument prototype would still apply. */ 16914#ifdef __cplusplus 16915extern "C" 16916#endif 16917char shl_load (); 16918int 16919main () 16920{ 16921return shl_load (); 16922 ; 16923 return 0; 16924} 16925_ACEOF 16926if ac_fn_c_try_link "$LINENO"; then : 16927 ac_cv_lib_dld_shl_load=yes 16928else 16929 ac_cv_lib_dld_shl_load=no 16930fi 16931rm -f core conftest.err conftest.$ac_objext \ 16932 conftest$ac_exeext conftest.$ac_ext 16933LIBS=$ac_check_lib_save_LIBS 16934fi 16935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 16936$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 16937if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 16938 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 16939else 16940 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 16941if test "x$ac_cv_func_dlopen" = xyes; then : 16942 lt_cv_dlopen="dlopen" 16943else 16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16945$as_echo_n "checking for dlopen in -ldl... " >&6; } 16946if ${ac_cv_lib_dl_dlopen+:} false; then : 16947 $as_echo_n "(cached) " >&6 16948else 16949 ac_check_lib_save_LIBS=$LIBS 16950LIBS="-ldl $LIBS" 16951cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16952/* end confdefs.h. */ 16953 16954/* Override any GCC internal prototype to avoid an error. 16955 Use char because int might match the return type of a GCC 16956 builtin and then its argument prototype would still apply. */ 16957#ifdef __cplusplus 16958extern "C" 16959#endif 16960char dlopen (); 16961int 16962main () 16963{ 16964return dlopen (); 16965 ; 16966 return 0; 16967} 16968_ACEOF 16969if ac_fn_c_try_link "$LINENO"; then : 16970 ac_cv_lib_dl_dlopen=yes 16971else 16972 ac_cv_lib_dl_dlopen=no 16973fi 16974rm -f core conftest.err conftest.$ac_objext \ 16975 conftest$ac_exeext conftest.$ac_ext 16976LIBS=$ac_check_lib_save_LIBS 16977fi 16978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16979$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 16980if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 16981 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 16982else 16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 16984$as_echo_n "checking for dlopen in -lsvld... " >&6; } 16985if ${ac_cv_lib_svld_dlopen+:} false; then : 16986 $as_echo_n "(cached) " >&6 16987else 16988 ac_check_lib_save_LIBS=$LIBS 16989LIBS="-lsvld $LIBS" 16990cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16991/* end confdefs.h. */ 16992 16993/* Override any GCC internal prototype to avoid an error. 16994 Use char because int might match the return type of a GCC 16995 builtin and then its argument prototype would still apply. */ 16996#ifdef __cplusplus 16997extern "C" 16998#endif 16999char dlopen (); 17000int 17001main () 17002{ 17003return dlopen (); 17004 ; 17005 return 0; 17006} 17007_ACEOF 17008if ac_fn_c_try_link "$LINENO"; then : 17009 ac_cv_lib_svld_dlopen=yes 17010else 17011 ac_cv_lib_svld_dlopen=no 17012fi 17013rm -f core conftest.err conftest.$ac_objext \ 17014 conftest$ac_exeext conftest.$ac_ext 17015LIBS=$ac_check_lib_save_LIBS 17016fi 17017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 17018$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 17019if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 17020 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17021else 17022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 17023$as_echo_n "checking for dld_link in -ldld... " >&6; } 17024if ${ac_cv_lib_dld_dld_link+:} false; then : 17025 $as_echo_n "(cached) " >&6 17026else 17027 ac_check_lib_save_LIBS=$LIBS 17028LIBS="-ldld $LIBS" 17029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17030/* end confdefs.h. */ 17031 17032/* Override any GCC internal prototype to avoid an error. 17033 Use char because int might match the return type of a GCC 17034 builtin and then its argument prototype would still apply. */ 17035#ifdef __cplusplus 17036extern "C" 17037#endif 17038char dld_link (); 17039int 17040main () 17041{ 17042return dld_link (); 17043 ; 17044 return 0; 17045} 17046_ACEOF 17047if ac_fn_c_try_link "$LINENO"; then : 17048 ac_cv_lib_dld_dld_link=yes 17049else 17050 ac_cv_lib_dld_dld_link=no 17051fi 17052rm -f core conftest.err conftest.$ac_objext \ 17053 conftest$ac_exeext conftest.$ac_ext 17054LIBS=$ac_check_lib_save_LIBS 17055fi 17056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 17057$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 17058if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 17059 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 17060fi 17061 17062 17063fi 17064 17065 17066fi 17067 17068 17069fi 17070 17071 17072fi 17073 17074 17075fi 17076 17077 ;; 17078 esac 17079 17080 if test "x$lt_cv_dlopen" != xno; then 17081 enable_dlopen=yes 17082 else 17083 enable_dlopen=no 17084 fi 17085 17086 case $lt_cv_dlopen in 17087 dlopen) 17088 save_CPPFLAGS="$CPPFLAGS" 17089 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17090 17091 save_LDFLAGS="$LDFLAGS" 17092 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17093 17094 save_LIBS="$LIBS" 17095 LIBS="$lt_cv_dlopen_libs $LIBS" 17096 17097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 17098$as_echo_n "checking whether a program can dlopen itself... " >&6; } 17099if ${lt_cv_dlopen_self+:} false; then : 17100 $as_echo_n "(cached) " >&6 17101else 17102 if test "$cross_compiling" = yes; then : 17103 lt_cv_dlopen_self=cross 17104else 17105 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17106 lt_status=$lt_dlunknown 17107 cat > conftest.$ac_ext <<_LT_EOF 17108#line $LINENO "configure" 17109#include "confdefs.h" 17110 17111#if HAVE_DLFCN_H 17112#include <dlfcn.h> 17113#endif 17114 17115#include <stdio.h> 17116 17117#ifdef RTLD_GLOBAL 17118# define LT_DLGLOBAL RTLD_GLOBAL 17119#else 17120# ifdef DL_GLOBAL 17121# define LT_DLGLOBAL DL_GLOBAL 17122# else 17123# define LT_DLGLOBAL 0 17124# endif 17125#endif 17126 17127/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17128 find out it does not work in some platform. */ 17129#ifndef LT_DLLAZY_OR_NOW 17130# ifdef RTLD_LAZY 17131# define LT_DLLAZY_OR_NOW RTLD_LAZY 17132# else 17133# ifdef DL_LAZY 17134# define LT_DLLAZY_OR_NOW DL_LAZY 17135# else 17136# ifdef RTLD_NOW 17137# define LT_DLLAZY_OR_NOW RTLD_NOW 17138# else 17139# ifdef DL_NOW 17140# define LT_DLLAZY_OR_NOW DL_NOW 17141# else 17142# define LT_DLLAZY_OR_NOW 0 17143# endif 17144# endif 17145# endif 17146# endif 17147#endif 17148 17149/* When -fvisbility=hidden is used, assume the code has been annotated 17150 correspondingly for the symbols needed. */ 17151#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17152int fnord () __attribute__((visibility("default"))); 17153#endif 17154 17155int fnord () { return 42; } 17156int main () 17157{ 17158 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17159 int status = $lt_dlunknown; 17160 17161 if (self) 17162 { 17163 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17164 else 17165 { 17166 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17167 else puts (dlerror ()); 17168 } 17169 /* dlclose (self); */ 17170 } 17171 else 17172 puts (dlerror ()); 17173 17174 return status; 17175} 17176_LT_EOF 17177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17178 (eval $ac_link) 2>&5 17179 ac_status=$? 17180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17181 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17182 (./conftest; exit; ) >&5 2>/dev/null 17183 lt_status=$? 17184 case x$lt_status in 17185 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17186 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17187 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 17188 esac 17189 else : 17190 # compilation failed 17191 lt_cv_dlopen_self=no 17192 fi 17193fi 17194rm -fr conftest* 17195 17196 17197fi 17198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 17199$as_echo "$lt_cv_dlopen_self" >&6; } 17200 17201 if test "x$lt_cv_dlopen_self" = xyes; then 17202 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 17204$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 17205if ${lt_cv_dlopen_self_static+:} false; then : 17206 $as_echo_n "(cached) " >&6 17207else 17208 if test "$cross_compiling" = yes; then : 17209 lt_cv_dlopen_self_static=cross 17210else 17211 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17212 lt_status=$lt_dlunknown 17213 cat > conftest.$ac_ext <<_LT_EOF 17214#line $LINENO "configure" 17215#include "confdefs.h" 17216 17217#if HAVE_DLFCN_H 17218#include <dlfcn.h> 17219#endif 17220 17221#include <stdio.h> 17222 17223#ifdef RTLD_GLOBAL 17224# define LT_DLGLOBAL RTLD_GLOBAL 17225#else 17226# ifdef DL_GLOBAL 17227# define LT_DLGLOBAL DL_GLOBAL 17228# else 17229# define LT_DLGLOBAL 0 17230# endif 17231#endif 17232 17233/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17234 find out it does not work in some platform. */ 17235#ifndef LT_DLLAZY_OR_NOW 17236# ifdef RTLD_LAZY 17237# define LT_DLLAZY_OR_NOW RTLD_LAZY 17238# else 17239# ifdef DL_LAZY 17240# define LT_DLLAZY_OR_NOW DL_LAZY 17241# else 17242# ifdef RTLD_NOW 17243# define LT_DLLAZY_OR_NOW RTLD_NOW 17244# else 17245# ifdef DL_NOW 17246# define LT_DLLAZY_OR_NOW DL_NOW 17247# else 17248# define LT_DLLAZY_OR_NOW 0 17249# endif 17250# endif 17251# endif 17252# endif 17253#endif 17254 17255/* When -fvisbility=hidden is used, assume the code has been annotated 17256 correspondingly for the symbols needed. */ 17257#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17258int fnord () __attribute__((visibility("default"))); 17259#endif 17260 17261int fnord () { return 42; } 17262int main () 17263{ 17264 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17265 int status = $lt_dlunknown; 17266 17267 if (self) 17268 { 17269 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17270 else 17271 { 17272 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17273 else puts (dlerror ()); 17274 } 17275 /* dlclose (self); */ 17276 } 17277 else 17278 puts (dlerror ()); 17279 17280 return status; 17281} 17282_LT_EOF 17283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17284 (eval $ac_link) 2>&5 17285 ac_status=$? 17286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17287 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17288 (./conftest; exit; ) >&5 2>/dev/null 17289 lt_status=$? 17290 case x$lt_status in 17291 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17292 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17293 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 17294 esac 17295 else : 17296 # compilation failed 17297 lt_cv_dlopen_self_static=no 17298 fi 17299fi 17300rm -fr conftest* 17301 17302 17303fi 17304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 17305$as_echo "$lt_cv_dlopen_self_static" >&6; } 17306 fi 17307 17308 CPPFLAGS="$save_CPPFLAGS" 17309 LDFLAGS="$save_LDFLAGS" 17310 LIBS="$save_LIBS" 17311 ;; 17312 esac 17313 17314 case $lt_cv_dlopen_self in 17315 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17316 *) enable_dlopen_self=unknown ;; 17317 esac 17318 17319 case $lt_cv_dlopen_self_static in 17320 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17321 *) enable_dlopen_self_static=unknown ;; 17322 esac 17323fi 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341striplib= 17342old_striplib= 17343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 17344$as_echo_n "checking whether stripping libraries is possible... " >&6; } 17345if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 17346 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17347 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17349$as_echo "yes" >&6; } 17350else 17351# FIXME - insert some real tests, host_os isn't really good enough 17352 case $host_os in 17353 darwin*) 17354 if test -n "$STRIP" ; then 17355 striplib="$STRIP -x" 17356 old_striplib="$STRIP -S" 17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17358$as_echo "yes" >&6; } 17359 else 17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17361$as_echo "no" >&6; } 17362 fi 17363 ;; 17364 *) 17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17366$as_echo "no" >&6; } 17367 ;; 17368 esac 17369fi 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 # Report which library types will actually be built 17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 17384$as_echo_n "checking if libtool supports shared libraries... " >&6; } 17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 17386$as_echo "$can_build_shared" >&6; } 17387 17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 17389$as_echo_n "checking whether to build shared libraries... " >&6; } 17390 test "$can_build_shared" = "no" && enable_shared=no 17391 17392 # On AIX, shared libraries and static libraries use the same namespace, and 17393 # are all built from PIC. 17394 case $host_os in 17395 aix3*) 17396 test "$enable_shared" = yes && enable_static=no 17397 if test -n "$RANLIB"; then 17398 archive_cmds="$archive_cmds~\$RANLIB \$lib" 17399 postinstall_cmds='$RANLIB $lib' 17400 fi 17401 ;; 17402 17403 aix[4-9]*) 17404 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 17405 test "$enable_shared" = yes && enable_static=no 17406 fi 17407 ;; 17408 esac 17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 17410$as_echo "$enable_shared" >&6; } 17411 17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 17413$as_echo_n "checking whether to build static libraries... " >&6; } 17414 # Make sure either enable_shared or enable_static is yes. 17415 test "$enable_shared" = yes || enable_static=yes 17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 17417$as_echo "$enable_static" >&6; } 17418 17419 17420 17421 17422fi 17423ac_ext=c 17424ac_cpp='$CPP $CPPFLAGS' 17425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17427ac_compiler_gnu=$ac_cv_c_compiler_gnu 17428 17429CC="$lt_save_CC" 17430 17431 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 17432 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 17433 (test "X$CXX" != "Xg++"))) ; then 17434 ac_ext=cpp 17435ac_cpp='$CXXCPP $CPPFLAGS' 17436ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17437ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17438ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 17440$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 17441if test -z "$CXXCPP"; then 17442 if ${ac_cv_prog_CXXCPP+:} false; then : 17443 $as_echo_n "(cached) " >&6 17444else 17445 # Double quotes because CXXCPP needs to be expanded 17446 for CXXCPP in "$CXX -E" "/lib/cpp" 17447 do 17448 ac_preproc_ok=false 17449for ac_cxx_preproc_warn_flag in '' yes 17450do 17451 # Use a header file that comes with gcc, so configuring glibc 17452 # with a fresh cross-compiler works. 17453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17454 # <limits.h> exists even on freestanding compilers. 17455 # On the NeXT, cc -E runs the code through the compiler's parser, 17456 # not just through cpp. "Syntax error" is here to catch this case. 17457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17458/* end confdefs.h. */ 17459#ifdef __STDC__ 17460# include <limits.h> 17461#else 17462# include <assert.h> 17463#endif 17464 Syntax error 17465_ACEOF 17466if ac_fn_cxx_try_cpp "$LINENO"; then : 17467 17468else 17469 # Broken: fails on valid input. 17470continue 17471fi 17472rm -f conftest.err conftest.i conftest.$ac_ext 17473 17474 # OK, works on sane cases. Now check whether nonexistent headers 17475 # can be detected and how. 17476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17477/* end confdefs.h. */ 17478#include <ac_nonexistent.h> 17479_ACEOF 17480if ac_fn_cxx_try_cpp "$LINENO"; then : 17481 # Broken: success on invalid input. 17482continue 17483else 17484 # Passes both tests. 17485ac_preproc_ok=: 17486break 17487fi 17488rm -f conftest.err conftest.i conftest.$ac_ext 17489 17490done 17491# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17492rm -f conftest.i conftest.err conftest.$ac_ext 17493if $ac_preproc_ok; then : 17494 break 17495fi 17496 17497 done 17498 ac_cv_prog_CXXCPP=$CXXCPP 17499 17500fi 17501 CXXCPP=$ac_cv_prog_CXXCPP 17502else 17503 ac_cv_prog_CXXCPP=$CXXCPP 17504fi 17505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 17506$as_echo "$CXXCPP" >&6; } 17507ac_preproc_ok=false 17508for ac_cxx_preproc_warn_flag in '' yes 17509do 17510 # Use a header file that comes with gcc, so configuring glibc 17511 # with a fresh cross-compiler works. 17512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17513 # <limits.h> exists even on freestanding compilers. 17514 # On the NeXT, cc -E runs the code through the compiler's parser, 17515 # not just through cpp. "Syntax error" is here to catch this case. 17516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17517/* end confdefs.h. */ 17518#ifdef __STDC__ 17519# include <limits.h> 17520#else 17521# include <assert.h> 17522#endif 17523 Syntax error 17524_ACEOF 17525if ac_fn_cxx_try_cpp "$LINENO"; then : 17526 17527else 17528 # Broken: fails on valid input. 17529continue 17530fi 17531rm -f conftest.err conftest.i conftest.$ac_ext 17532 17533 # OK, works on sane cases. Now check whether nonexistent headers 17534 # can be detected and how. 17535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17536/* end confdefs.h. */ 17537#include <ac_nonexistent.h> 17538_ACEOF 17539if ac_fn_cxx_try_cpp "$LINENO"; then : 17540 # Broken: success on invalid input. 17541continue 17542else 17543 # Passes both tests. 17544ac_preproc_ok=: 17545break 17546fi 17547rm -f conftest.err conftest.i conftest.$ac_ext 17548 17549done 17550# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17551rm -f conftest.i conftest.err conftest.$ac_ext 17552if $ac_preproc_ok; then : 17553 17554else 17555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17556$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17557as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 17558See \`config.log' for more details" "$LINENO" 5; } 17559fi 17560 17561ac_ext=c 17562ac_cpp='$CPP $CPPFLAGS' 17563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17565ac_compiler_gnu=$ac_cv_c_compiler_gnu 17566 17567else 17568 _lt_caught_CXX_error=yes 17569fi 17570 17571ac_ext=cpp 17572ac_cpp='$CXXCPP $CPPFLAGS' 17573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17576 17577archive_cmds_need_lc_CXX=no 17578allow_undefined_flag_CXX= 17579always_export_symbols_CXX=no 17580archive_expsym_cmds_CXX= 17581compiler_needs_object_CXX=no 17582export_dynamic_flag_spec_CXX= 17583hardcode_direct_CXX=no 17584hardcode_direct_absolute_CXX=no 17585hardcode_libdir_flag_spec_CXX= 17586hardcode_libdir_separator_CXX= 17587hardcode_minus_L_CXX=no 17588hardcode_shlibpath_var_CXX=unsupported 17589hardcode_automatic_CXX=no 17590inherit_rpath_CXX=no 17591module_cmds_CXX= 17592module_expsym_cmds_CXX= 17593link_all_deplibs_CXX=unknown 17594old_archive_cmds_CXX=$old_archive_cmds 17595reload_flag_CXX=$reload_flag 17596reload_cmds_CXX=$reload_cmds 17597no_undefined_flag_CXX= 17598whole_archive_flag_spec_CXX= 17599enable_shared_with_static_runtimes_CXX=no 17600 17601# Source file extension for C++ test sources. 17602ac_ext=cpp 17603 17604# Object file extension for compiled C++ test sources. 17605objext=o 17606objext_CXX=$objext 17607 17608# No sense in running all these tests if we already determined that 17609# the CXX compiler isn't working. Some variables (like enable_shared) 17610# are currently assumed to apply to all compilers on this platform, 17611# and will be corrupted by setting them based on a non-working compiler. 17612if test "$_lt_caught_CXX_error" != yes; then 17613 # Code to be used in simple compile tests 17614 lt_simple_compile_test_code="int some_variable = 0;" 17615 17616 # Code to be used in simple link tests 17617 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 17618 17619 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 17620 17621 17622 17623 17624 17625 17626# If no C compiler was specified, use CC. 17627LTCC=${LTCC-"$CC"} 17628 17629# If no C compiler flags were specified, use CFLAGS. 17630LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17631 17632# Allow CC to be a program name with arguments. 17633compiler=$CC 17634 17635 17636 # save warnings/boilerplate of simple test code 17637 ac_outfile=conftest.$ac_objext 17638echo "$lt_simple_compile_test_code" >conftest.$ac_ext 17639eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17640_lt_compiler_boilerplate=`cat conftest.err` 17641$RM conftest* 17642 17643 ac_outfile=conftest.$ac_objext 17644echo "$lt_simple_link_test_code" >conftest.$ac_ext 17645eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17646_lt_linker_boilerplate=`cat conftest.err` 17647$RM -r conftest* 17648 17649 17650 # Allow CC to be a program name with arguments. 17651 lt_save_CC=$CC 17652 lt_save_CFLAGS=$CFLAGS 17653 lt_save_LD=$LD 17654 lt_save_GCC=$GCC 17655 GCC=$GXX 17656 lt_save_with_gnu_ld=$with_gnu_ld 17657 lt_save_path_LD=$lt_cv_path_LD 17658 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 17659 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 17660 else 17661 $as_unset lt_cv_prog_gnu_ld 17662 fi 17663 if test -n "${lt_cv_path_LDCXX+set}"; then 17664 lt_cv_path_LD=$lt_cv_path_LDCXX 17665 else 17666 $as_unset lt_cv_path_LD 17667 fi 17668 test -z "${LDCXX+set}" || LD=$LDCXX 17669 CC=${CXX-"c++"} 17670 CFLAGS=$CXXFLAGS 17671 compiler=$CC 17672 compiler_CXX=$CC 17673 for cc_temp in $compiler""; do 17674 case $cc_temp in 17675 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17676 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17677 \-*) ;; 17678 *) break;; 17679 esac 17680done 17681cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 17682 17683 17684 if test -n "$compiler"; then 17685 # We don't want -fno-exception when compiling C++ code, so set the 17686 # no_builtin_flag separately 17687 if test "$GXX" = yes; then 17688 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 17689 else 17690 lt_prog_compiler_no_builtin_flag_CXX= 17691 fi 17692 17693 if test "$GXX" = yes; then 17694 # Set up default GNU C++ configuration 17695 17696 17697 17698# Check whether --with-gnu-ld was given. 17699if test "${with_gnu_ld+set}" = set; then : 17700 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 17701else 17702 with_gnu_ld=no 17703fi 17704 17705ac_prog=ld 17706if test "$GCC" = yes; then 17707 # Check if gcc -print-prog-name=ld gives a path. 17708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 17709$as_echo_n "checking for ld used by $CC... " >&6; } 17710 case $host in 17711 *-*-mingw*) 17712 # gcc leaves a trailing carriage return which upsets mingw 17713 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 17714 *) 17715 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 17716 esac 17717 case $ac_prog in 17718 # Accept absolute paths. 17719 [\\/]* | ?:[\\/]*) 17720 re_direlt='/[^/][^/]*/\.\./' 17721 # Canonicalize the pathname of ld 17722 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 17723 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 17724 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 17725 done 17726 test -z "$LD" && LD="$ac_prog" 17727 ;; 17728 "") 17729 # If it fails, then pretend we aren't using GCC. 17730 ac_prog=ld 17731 ;; 17732 *) 17733 # If it is relative, then search for the first ld in PATH. 17734 with_gnu_ld=unknown 17735 ;; 17736 esac 17737elif test "$with_gnu_ld" = yes; then 17738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 17739$as_echo_n "checking for GNU ld... " >&6; } 17740else 17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 17742$as_echo_n "checking for non-GNU ld... " >&6; } 17743fi 17744if ${lt_cv_path_LD+:} false; then : 17745 $as_echo_n "(cached) " >&6 17746else 17747 if test -z "$LD"; then 17748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 17749 for ac_dir in $PATH; do 17750 IFS="$lt_save_ifs" 17751 test -z "$ac_dir" && ac_dir=. 17752 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 17753 lt_cv_path_LD="$ac_dir/$ac_prog" 17754 # Check to see if the program is GNU ld. I'd rather use --version, 17755 # but apparently some variants of GNU ld only accept -v. 17756 # Break only if it was the GNU/non-GNU ld that we prefer. 17757 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 17758 *GNU* | *'with BFD'*) 17759 test "$with_gnu_ld" != no && break 17760 ;; 17761 *) 17762 test "$with_gnu_ld" != yes && break 17763 ;; 17764 esac 17765 fi 17766 done 17767 IFS="$lt_save_ifs" 17768else 17769 lt_cv_path_LD="$LD" # Let the user override the test with a path. 17770fi 17771fi 17772 17773LD="$lt_cv_path_LD" 17774if test -n "$LD"; then 17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 17776$as_echo "$LD" >&6; } 17777else 17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17779$as_echo "no" >&6; } 17780fi 17781test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 17782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 17783$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 17784if ${lt_cv_prog_gnu_ld+:} false; then : 17785 $as_echo_n "(cached) " >&6 17786else 17787 # I'd rather use --version here, but apparently some GNU lds only accept -v. 17788case `$LD -v 2>&1 </dev/null` in 17789*GNU* | *'with BFD'*) 17790 lt_cv_prog_gnu_ld=yes 17791 ;; 17792*) 17793 lt_cv_prog_gnu_ld=no 17794 ;; 17795esac 17796fi 17797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 17798$as_echo "$lt_cv_prog_gnu_ld" >&6; } 17799with_gnu_ld=$lt_cv_prog_gnu_ld 17800 17801 17802 17803 17804 17805 17806 17807 # Check if GNU C++ uses GNU ld as the underlying linker, since the 17808 # archiving commands below assume that GNU ld is being used. 17809 if test "$with_gnu_ld" = yes; then 17810 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 17811 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' 17812 17813 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 17814 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 17815 17816 # If archive_cmds runs LD, not CC, wlarc should be empty 17817 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 17818 # investigate it a little bit more. (MM) 17819 wlarc='${wl}' 17820 17821 # ancient GNU ld didn't support --whole-archive et. al. 17822 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 17823 $GREP 'no-whole-archive' > /dev/null; then 17824 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17825 else 17826 whole_archive_flag_spec_CXX= 17827 fi 17828 else 17829 with_gnu_ld=no 17830 wlarc= 17831 17832 # A generic and very simple default shared library creation 17833 # command for GNU C++ for the case where it uses the native 17834 # linker, instead of GNU ld. If possible, this setting should 17835 # overridden to take advantage of the native linker features on 17836 # the platform it is being used on. 17837 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 17838 fi 17839 17840 # Commands to make compiler produce verbose output that lists 17841 # what "hidden" libraries, object files and flags are used when 17842 # linking a shared library. 17843 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 17844 17845 else 17846 GXX=no 17847 with_gnu_ld=no 17848 wlarc= 17849 fi 17850 17851 # PORTME: fill in a description of your system's C++ link characteristics 17852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17853$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17854 ld_shlibs_CXX=yes 17855 case $host_os in 17856 aix3*) 17857 # FIXME: insert proper C++ library support 17858 ld_shlibs_CXX=no 17859 ;; 17860 aix[4-9]*) 17861 if test "$host_cpu" = ia64; then 17862 # On IA64, the linker does run time linking by default, so we don't 17863 # have to do anything special. 17864 aix_use_runtimelinking=no 17865 exp_sym_flag='-Bexport' 17866 no_entry_flag="" 17867 else 17868 aix_use_runtimelinking=no 17869 17870 # Test if we are trying to use run time linking or normal 17871 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17872 # need to do runtime linking. 17873 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17874 for ld_flag in $LDFLAGS; do 17875 case $ld_flag in 17876 *-brtl*) 17877 aix_use_runtimelinking=yes 17878 break 17879 ;; 17880 esac 17881 done 17882 ;; 17883 esac 17884 17885 exp_sym_flag='-bexport' 17886 no_entry_flag='-bnoentry' 17887 fi 17888 17889 # When large executables or shared objects are built, AIX ld can 17890 # have problems creating the table of contents. If linking a library 17891 # or program results in "error TOC overflow" add -mminimal-toc to 17892 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17893 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17894 17895 archive_cmds_CXX='' 17896 hardcode_direct_CXX=yes 17897 hardcode_direct_absolute_CXX=yes 17898 hardcode_libdir_separator_CXX=':' 17899 link_all_deplibs_CXX=yes 17900 file_list_spec_CXX='${wl}-f,' 17901 17902 if test "$GXX" = yes; then 17903 case $host_os in aix4.[012]|aix4.[012].*) 17904 # We only want to do this on AIX 4.2 and lower, the check 17905 # below for broken collect2 doesn't work under 4.3+ 17906 collect2name=`${CC} -print-prog-name=collect2` 17907 if test -f "$collect2name" && 17908 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 17909 then 17910 # We have reworked collect2 17911 : 17912 else 17913 # We have old collect2 17914 hardcode_direct_CXX=unsupported 17915 # It fails to find uninstalled libraries when the uninstalled 17916 # path is not listed in the libpath. Setting hardcode_minus_L 17917 # to unsupported forces relinking 17918 hardcode_minus_L_CXX=yes 17919 hardcode_libdir_flag_spec_CXX='-L$libdir' 17920 hardcode_libdir_separator_CXX= 17921 fi 17922 esac 17923 shared_flag='-shared' 17924 if test "$aix_use_runtimelinking" = yes; then 17925 shared_flag="$shared_flag "'${wl}-G' 17926 fi 17927 else 17928 # not using gcc 17929 if test "$host_cpu" = ia64; then 17930 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17931 # chokes on -Wl,-G. The following line is correct: 17932 shared_flag='-G' 17933 else 17934 if test "$aix_use_runtimelinking" = yes; then 17935 shared_flag='${wl}-G' 17936 else 17937 shared_flag='${wl}-bM:SRE' 17938 fi 17939 fi 17940 fi 17941 17942 export_dynamic_flag_spec_CXX='${wl}-bexpall' 17943 # It seems that -bexpall does not export symbols beginning with 17944 # underscore (_), so it is better to generate a list of symbols to 17945 # export. 17946 always_export_symbols_CXX=yes 17947 if test "$aix_use_runtimelinking" = yes; then 17948 # Warning - without using the other runtime loading flags (-brtl), 17949 # -berok will link without error, but may produce a broken library. 17950 allow_undefined_flag_CXX='-berok' 17951 # Determine the default libpath from the value encoded in an empty 17952 # executable. 17953 if test "${lt_cv_aix_libpath+set}" = set; then 17954 aix_libpath=$lt_cv_aix_libpath 17955else 17956 if ${lt_cv_aix_libpath__CXX+:} false; then : 17957 $as_echo_n "(cached) " >&6 17958else 17959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17960/* end confdefs.h. */ 17961 17962int 17963main () 17964{ 17965 17966 ; 17967 return 0; 17968} 17969_ACEOF 17970if ac_fn_cxx_try_link "$LINENO"; then : 17971 17972 lt_aix_libpath_sed=' 17973 /Import File Strings/,/^$/ { 17974 /^0/ { 17975 s/^0 *\([^ ]*\) *$/\1/ 17976 p 17977 } 17978 }' 17979 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17980 # Check for a 64-bit object if we didn't find anything. 17981 if test -z "$lt_cv_aix_libpath__CXX"; then 17982 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17983 fi 17984fi 17985rm -f core conftest.err conftest.$ac_objext \ 17986 conftest$ac_exeext conftest.$ac_ext 17987 if test -z "$lt_cv_aix_libpath__CXX"; then 17988 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 17989 fi 17990 17991fi 17992 17993 aix_libpath=$lt_cv_aix_libpath__CXX 17994fi 17995 17996 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 17997 17998 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 17999 else 18000 if test "$host_cpu" = ia64; then 18001 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 18002 allow_undefined_flag_CXX="-z nodefs" 18003 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" 18004 else 18005 # Determine the default libpath from the value encoded in an 18006 # empty executable. 18007 if test "${lt_cv_aix_libpath+set}" = set; then 18008 aix_libpath=$lt_cv_aix_libpath 18009else 18010 if ${lt_cv_aix_libpath__CXX+:} false; then : 18011 $as_echo_n "(cached) " >&6 18012else 18013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18014/* end confdefs.h. */ 18015 18016int 18017main () 18018{ 18019 18020 ; 18021 return 0; 18022} 18023_ACEOF 18024if ac_fn_cxx_try_link "$LINENO"; then : 18025 18026 lt_aix_libpath_sed=' 18027 /Import File Strings/,/^$/ { 18028 /^0/ { 18029 s/^0 *\([^ ]*\) *$/\1/ 18030 p 18031 } 18032 }' 18033 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18034 # Check for a 64-bit object if we didn't find anything. 18035 if test -z "$lt_cv_aix_libpath__CXX"; then 18036 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18037 fi 18038fi 18039rm -f core conftest.err conftest.$ac_objext \ 18040 conftest$ac_exeext conftest.$ac_ext 18041 if test -z "$lt_cv_aix_libpath__CXX"; then 18042 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 18043 fi 18044 18045fi 18046 18047 aix_libpath=$lt_cv_aix_libpath__CXX 18048fi 18049 18050 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 18051 # Warning - without using the other run time loading flags, 18052 # -berok will link without error, but may produce a broken library. 18053 no_undefined_flag_CXX=' ${wl}-bernotok' 18054 allow_undefined_flag_CXX=' ${wl}-berok' 18055 if test "$with_gnu_ld" = yes; then 18056 # We only use this code for GNU lds that support --whole-archive. 18057 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 18058 else 18059 # Exported symbols can be pulled into shared objects from archives 18060 whole_archive_flag_spec_CXX='$convenience' 18061 fi 18062 archive_cmds_need_lc_CXX=yes 18063 # This is similar to how AIX traditionally builds its shared 18064 # libraries. 18065 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 18066 fi 18067 fi 18068 ;; 18069 18070 beos*) 18071 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 18072 allow_undefined_flag_CXX=unsupported 18073 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 18074 # support --undefined. This deserves some investigation. FIXME 18075 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18076 else 18077 ld_shlibs_CXX=no 18078 fi 18079 ;; 18080 18081 chorus*) 18082 case $cc_basename in 18083 *) 18084 # FIXME: insert proper C++ library support 18085 ld_shlibs_CXX=no 18086 ;; 18087 esac 18088 ;; 18089 18090 cygwin* | mingw* | pw32* | cegcc*) 18091 case $GXX,$cc_basename in 18092 ,cl* | no,cl*) 18093 # Native MSVC 18094 # hardcode_libdir_flag_spec is actually meaningless, as there is 18095 # no search path for DLLs. 18096 hardcode_libdir_flag_spec_CXX=' ' 18097 allow_undefined_flag_CXX=unsupported 18098 always_export_symbols_CXX=yes 18099 file_list_spec_CXX='@' 18100 # Tell ltmain to make .lib files, not .a files. 18101 libext=lib 18102 # Tell ltmain to make .dll files, not .so files. 18103 shrext_cmds=".dll" 18104 # FIXME: Setting linknames here is a bad hack. 18105 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 18106 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 18107 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 18108 else 18109 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 18110 fi~ 18111 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 18112 linknames=' 18113 # The linker will not automatically build a static lib if we build a DLL. 18114 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 18115 enable_shared_with_static_runtimes_CXX=yes 18116 # Don't use ranlib 18117 old_postinstall_cmds_CXX='chmod 644 $oldlib' 18118 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 18119 lt_tool_outputfile="@TOOL_OUTPUT@"~ 18120 case $lt_outputfile in 18121 *.exe|*.EXE) ;; 18122 *) 18123 lt_outputfile="$lt_outputfile.exe" 18124 lt_tool_outputfile="$lt_tool_outputfile.exe" 18125 ;; 18126 esac~ 18127 func_to_tool_file "$lt_outputfile"~ 18128 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 18129 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 18130 $RM "$lt_outputfile.manifest"; 18131 fi' 18132 ;; 18133 *) 18134 # g++ 18135 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 18136 # as there is no search path for DLLs. 18137 hardcode_libdir_flag_spec_CXX='-L$libdir' 18138 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 18139 allow_undefined_flag_CXX=unsupported 18140 always_export_symbols_CXX=no 18141 enable_shared_with_static_runtimes_CXX=yes 18142 18143 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 18144 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' 18145 # If the export-symbols file already is a .def file (1st line 18146 # is EXPORTS), use it as is; otherwise, prepend... 18147 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 18148 cp $export_symbols $output_objdir/$soname.def; 18149 else 18150 echo EXPORTS > $output_objdir/$soname.def; 18151 cat $export_symbols >> $output_objdir/$soname.def; 18152 fi~ 18153 $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' 18154 else 18155 ld_shlibs_CXX=no 18156 fi 18157 ;; 18158 esac 18159 ;; 18160 darwin* | rhapsody*) 18161 18162 18163 archive_cmds_need_lc_CXX=no 18164 hardcode_direct_CXX=no 18165 hardcode_automatic_CXX=yes 18166 hardcode_shlibpath_var_CXX=unsupported 18167 if test "$lt_cv_ld_force_load" = "yes"; then 18168 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\"`' 18169 18170 else 18171 whole_archive_flag_spec_CXX='' 18172 fi 18173 link_all_deplibs_CXX=yes 18174 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 18175 case $cc_basename in 18176 ifort*) _lt_dar_can_shared=yes ;; 18177 *) _lt_dar_can_shared=$GCC ;; 18178 esac 18179 if test "$_lt_dar_can_shared" = "yes"; then 18180 output_verbose_link_cmd=func_echo_all 18181 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}" 18182 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 18183 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}" 18184 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}" 18185 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 18186 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}" 18187 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}" 18188 fi 18189 18190 else 18191 ld_shlibs_CXX=no 18192 fi 18193 18194 ;; 18195 18196 dgux*) 18197 case $cc_basename in 18198 ec++*) 18199 # FIXME: insert proper C++ library support 18200 ld_shlibs_CXX=no 18201 ;; 18202 ghcx*) 18203 # Green Hills C++ Compiler 18204 # FIXME: insert proper C++ library support 18205 ld_shlibs_CXX=no 18206 ;; 18207 *) 18208 # FIXME: insert proper C++ library support 18209 ld_shlibs_CXX=no 18210 ;; 18211 esac 18212 ;; 18213 18214 freebsd2.*) 18215 # C++ shared libraries reported to be fairly broken before 18216 # switch to ELF 18217 ld_shlibs_CXX=no 18218 ;; 18219 18220 freebsd-elf*) 18221 archive_cmds_need_lc_CXX=no 18222 ;; 18223 18224 freebsd* | dragonfly*) 18225 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 18226 # conventions 18227 ld_shlibs_CXX=yes 18228 ;; 18229 18230 gnu*) 18231 ;; 18232 18233 haiku*) 18234 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18235 link_all_deplibs_CXX=yes 18236 ;; 18237 18238 hpux9*) 18239 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 18240 hardcode_libdir_separator_CXX=: 18241 export_dynamic_flag_spec_CXX='${wl}-E' 18242 hardcode_direct_CXX=yes 18243 hardcode_minus_L_CXX=yes # Not in the search PATH, 18244 # but as the default 18245 # location of the library. 18246 18247 case $cc_basename in 18248 CC*) 18249 # FIXME: insert proper C++ library support 18250 ld_shlibs_CXX=no 18251 ;; 18252 aCC*) 18253 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 18254 # Commands to make compiler produce verbose output that lists 18255 # what "hidden" libraries, object files and flags are used when 18256 # linking a shared library. 18257 # 18258 # There doesn't appear to be a way to prevent this compiler from 18259 # explicitly linking system object files so we need to strip them 18260 # from the output so that they don't get included in the library 18261 # dependencies. 18262 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"' 18263 ;; 18264 *) 18265 if test "$GXX" = yes; then 18266 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 18267 else 18268 # FIXME: insert proper C++ library support 18269 ld_shlibs_CXX=no 18270 fi 18271 ;; 18272 esac 18273 ;; 18274 18275 hpux10*|hpux11*) 18276 if test $with_gnu_ld = no; then 18277 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 18278 hardcode_libdir_separator_CXX=: 18279 18280 case $host_cpu in 18281 hppa*64*|ia64*) 18282 ;; 18283 *) 18284 export_dynamic_flag_spec_CXX='${wl}-E' 18285 ;; 18286 esac 18287 fi 18288 case $host_cpu in 18289 hppa*64*|ia64*) 18290 hardcode_direct_CXX=no 18291 hardcode_shlibpath_var_CXX=no 18292 ;; 18293 *) 18294 hardcode_direct_CXX=yes 18295 hardcode_direct_absolute_CXX=yes 18296 hardcode_minus_L_CXX=yes # Not in the search PATH, 18297 # but as the default 18298 # location of the library. 18299 ;; 18300 esac 18301 18302 case $cc_basename in 18303 CC*) 18304 # FIXME: insert proper C++ library support 18305 ld_shlibs_CXX=no 18306 ;; 18307 aCC*) 18308 case $host_cpu in 18309 hppa*64*) 18310 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18311 ;; 18312 ia64*) 18313 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18314 ;; 18315 *) 18316 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18317 ;; 18318 esac 18319 # Commands to make compiler produce verbose output that lists 18320 # what "hidden" libraries, object files and flags are used when 18321 # linking a shared library. 18322 # 18323 # There doesn't appear to be a way to prevent this compiler from 18324 # explicitly linking system object files so we need to strip them 18325 # from the output so that they don't get included in the library 18326 # dependencies. 18327 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"' 18328 ;; 18329 *) 18330 if test "$GXX" = yes; then 18331 if test $with_gnu_ld = no; then 18332 case $host_cpu in 18333 hppa*64*) 18334 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18335 ;; 18336 ia64*) 18337 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18338 ;; 18339 *) 18340 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' 18341 ;; 18342 esac 18343 fi 18344 else 18345 # FIXME: insert proper C++ library support 18346 ld_shlibs_CXX=no 18347 fi 18348 ;; 18349 esac 18350 ;; 18351 18352 interix[3-9]*) 18353 hardcode_direct_CXX=no 18354 hardcode_shlibpath_var_CXX=no 18355 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18356 export_dynamic_flag_spec_CXX='${wl}-E' 18357 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 18358 # Instead, shared libraries are loaded at an image base (0x10000000 by 18359 # default) and relocated if they conflict, which is a slow very memory 18360 # consuming and fragmenting process. To avoid this, we pick a random, 18361 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 18362 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 18363 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' 18364 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' 18365 ;; 18366 irix5* | irix6*) 18367 case $cc_basename in 18368 CC*) 18369 # SGI C++ 18370 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' 18371 18372 # Archives containing C++ object files must be created using 18373 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 18374 # necessary to make sure instantiated templates are included 18375 # in the archive. 18376 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 18377 ;; 18378 *) 18379 if test "$GXX" = yes; then 18380 if test "$with_gnu_ld" = no; then 18381 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' 18382 else 18383 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' 18384 fi 18385 fi 18386 link_all_deplibs_CXX=yes 18387 ;; 18388 esac 18389 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 18390 hardcode_libdir_separator_CXX=: 18391 inherit_rpath_CXX=yes 18392 ;; 18393 18394 linux* | k*bsd*-gnu | kopensolaris*-gnu) 18395 case $cc_basename in 18396 KCC*) 18397 # Kuck and Associates, Inc. (KAI) C++ Compiler 18398 18399 # KCC will only create a shared library if the output file 18400 # ends with ".so" (or ".sl" for HP-UX), so rename the library 18401 # to its proper name (with version) after linking. 18402 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' 18403 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' 18404 # Commands to make compiler produce verbose output that lists 18405 # what "hidden" libraries, object files and flags are used when 18406 # linking a shared library. 18407 # 18408 # There doesn't appear to be a way to prevent this compiler from 18409 # explicitly linking system object files so we need to strip them 18410 # from the output so that they don't get included in the library 18411 # dependencies. 18412 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"' 18413 18414 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18415 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 18416 18417 # Archives containing C++ object files must be created using 18418 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 18419 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 18420 ;; 18421 icpc* | ecpc* ) 18422 # Intel C++ 18423 with_gnu_ld=yes 18424 # version 8.0 and above of icpc choke on multiply defined symbols 18425 # if we add $predep_objects and $postdep_objects, however 7.1 and 18426 # earlier do not add the objects themselves. 18427 case `$CC -V 2>&1` in 18428 *"Version 7."*) 18429 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 18430 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' 18431 ;; 18432 *) # Version 8.0 or newer 18433 tmp_idyn= 18434 case $host_cpu in 18435 ia64*) tmp_idyn=' -i_dynamic';; 18436 esac 18437 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18438 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' 18439 ;; 18440 esac 18441 archive_cmds_need_lc_CXX=no 18442 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18443 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 18444 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 18445 ;; 18446 pgCC* | pgcpp*) 18447 # Portland Group C++ compiler 18448 case `$CC -V` in 18449 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 18450 prelink_cmds_CXX='tpldir=Template.dir~ 18451 rm -rf $tpldir~ 18452 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 18453 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 18454 old_archive_cmds_CXX='tpldir=Template.dir~ 18455 rm -rf $tpldir~ 18456 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 18457 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 18458 $RANLIB $oldlib' 18459 archive_cmds_CXX='tpldir=Template.dir~ 18460 rm -rf $tpldir~ 18461 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 18462 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 18463 archive_expsym_cmds_CXX='tpldir=Template.dir~ 18464 rm -rf $tpldir~ 18465 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 18466 $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' 18467 ;; 18468 *) # Version 6 and above use weak symbols 18469 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 18470 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' 18471 ;; 18472 esac 18473 18474 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 18475 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 18476 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' 18477 ;; 18478 cxx*) 18479 # Compaq C++ 18480 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 18481 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' 18482 18483 runpath_var=LD_RUN_PATH 18484 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 18485 hardcode_libdir_separator_CXX=: 18486 18487 # Commands to make compiler produce verbose output that lists 18488 # what "hidden" libraries, object files and flags are used when 18489 # linking a shared library. 18490 # 18491 # There doesn't appear to be a way to prevent this compiler from 18492 # explicitly linking system object files so we need to strip them 18493 # from the output so that they don't get included in the library 18494 # dependencies. 18495 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' 18496 ;; 18497 xl* | mpixl* | bgxl*) 18498 # IBM XL 8.0 on PPC, with GNU ld 18499 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 18500 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 18501 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18502 if test "x$supports_anon_versioning" = xyes; then 18503 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 18504 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18505 echo "local: *; };" >> $output_objdir/$libname.ver~ 18506 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 18507 fi 18508 ;; 18509 *) 18510 case `$CC -V 2>&1 | sed 5q` in 18511 *Sun\ C*) 18512 # Sun C++ 5.9 18513 no_undefined_flag_CXX=' -zdefs' 18514 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18515 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' 18516 hardcode_libdir_flag_spec_CXX='-R$libdir' 18517 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' 18518 compiler_needs_object_CXX=yes 18519 18520 # Not sure whether something based on 18521 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 18522 # would be better. 18523 output_verbose_link_cmd='func_echo_all' 18524 18525 # Archives containing C++ object files must be created using 18526 # "CC -xar", where "CC" is the Sun C++ compiler. This is 18527 # necessary to make sure instantiated templates are included 18528 # in the archive. 18529 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 18530 ;; 18531 esac 18532 ;; 18533 esac 18534 ;; 18535 18536 lynxos*) 18537 # FIXME: insert proper C++ library support 18538 ld_shlibs_CXX=no 18539 ;; 18540 18541 m88k*) 18542 # FIXME: insert proper C++ library support 18543 ld_shlibs_CXX=no 18544 ;; 18545 18546 mvs*) 18547 case $cc_basename in 18548 cxx*) 18549 # FIXME: insert proper C++ library support 18550 ld_shlibs_CXX=no 18551 ;; 18552 *) 18553 # FIXME: insert proper C++ library support 18554 ld_shlibs_CXX=no 18555 ;; 18556 esac 18557 ;; 18558 18559 netbsd*) 18560 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18561 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 18562 wlarc= 18563 hardcode_libdir_flag_spec_CXX='-R$libdir' 18564 hardcode_direct_CXX=yes 18565 hardcode_shlibpath_var_CXX=no 18566 fi 18567 # Workaround some broken pre-1.5 toolchains 18568 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 18569 ;; 18570 18571 *nto* | *qnx*) 18572 ld_shlibs_CXX=yes 18573 ;; 18574 18575 openbsd2*) 18576 # C++ shared libraries are fairly broken 18577 ld_shlibs_CXX=no 18578 ;; 18579 18580 openbsd*) 18581 if test -f /usr/libexec/ld.so; then 18582 hardcode_direct_CXX=yes 18583 hardcode_shlibpath_var_CXX=no 18584 hardcode_direct_absolute_CXX=yes 18585 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 18586 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18587 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18588 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 18589 export_dynamic_flag_spec_CXX='${wl}-E' 18590 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 18591 fi 18592 output_verbose_link_cmd=func_echo_all 18593 else 18594 ld_shlibs_CXX=no 18595 fi 18596 ;; 18597 18598 osf3* | osf4* | osf5*) 18599 case $cc_basename in 18600 KCC*) 18601 # Kuck and Associates, Inc. (KAI) C++ Compiler 18602 18603 # KCC will only create a shared library if the output file 18604 # ends with ".so" (or ".sl" for HP-UX), so rename the library 18605 # to its proper name (with version) after linking. 18606 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' 18607 18608 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18609 hardcode_libdir_separator_CXX=: 18610 18611 # Archives containing C++ object files must be created using 18612 # the KAI C++ compiler. 18613 case $host in 18614 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 18615 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 18616 esac 18617 ;; 18618 RCC*) 18619 # Rational C++ 2.4.1 18620 # FIXME: insert proper C++ library support 18621 ld_shlibs_CXX=no 18622 ;; 18623 cxx*) 18624 case $host in 18625 osf3*) 18626 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 18627 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' 18628 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 18629 ;; 18630 *) 18631 allow_undefined_flag_CXX=' -expect_unresolved \*' 18632 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' 18633 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 18634 echo "-hidden">> $lib.exp~ 18635 $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~ 18636 $RM $lib.exp' 18637 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 18638 ;; 18639 esac 18640 18641 hardcode_libdir_separator_CXX=: 18642 18643 # Commands to make compiler produce verbose output that lists 18644 # what "hidden" libraries, object files and flags are used when 18645 # linking a shared library. 18646 # 18647 # There doesn't appear to be a way to prevent this compiler from 18648 # explicitly linking system object files so we need to strip them 18649 # from the output so that they don't get included in the library 18650 # dependencies. 18651 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"' 18652 ;; 18653 *) 18654 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 18655 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 18656 case $host in 18657 osf3*) 18658 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' 18659 ;; 18660 *) 18661 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' 18662 ;; 18663 esac 18664 18665 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 18666 hardcode_libdir_separator_CXX=: 18667 18668 # Commands to make compiler produce verbose output that lists 18669 # what "hidden" libraries, object files and flags are used when 18670 # linking a shared library. 18671 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 18672 18673 else 18674 # FIXME: insert proper C++ library support 18675 ld_shlibs_CXX=no 18676 fi 18677 ;; 18678 esac 18679 ;; 18680 18681 psos*) 18682 # FIXME: insert proper C++ library support 18683 ld_shlibs_CXX=no 18684 ;; 18685 18686 sunos4*) 18687 case $cc_basename in 18688 CC*) 18689 # Sun C++ 4.x 18690 # FIXME: insert proper C++ library support 18691 ld_shlibs_CXX=no 18692 ;; 18693 lcc*) 18694 # Lucid 18695 # FIXME: insert proper C++ library support 18696 ld_shlibs_CXX=no 18697 ;; 18698 *) 18699 # FIXME: insert proper C++ library support 18700 ld_shlibs_CXX=no 18701 ;; 18702 esac 18703 ;; 18704 18705 solaris*) 18706 case $cc_basename in 18707 CC* | sunCC*) 18708 # Sun C++ 4.2, 5.x and Centerline C++ 18709 archive_cmds_need_lc_CXX=yes 18710 no_undefined_flag_CXX=' -zdefs' 18711 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18712 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18713 $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' 18714 18715 hardcode_libdir_flag_spec_CXX='-R$libdir' 18716 hardcode_shlibpath_var_CXX=no 18717 case $host_os in 18718 solaris2.[0-5] | solaris2.[0-5].*) ;; 18719 *) 18720 # The compiler driver will combine and reorder linker options, 18721 # but understands `-z linker_flag'. 18722 # Supported since Solaris 2.6 (maybe 2.5.1?) 18723 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 18724 ;; 18725 esac 18726 link_all_deplibs_CXX=yes 18727 18728 output_verbose_link_cmd='func_echo_all' 18729 18730 # Archives containing C++ object files must be created using 18731 # "CC -xar", where "CC" is the Sun C++ compiler. This is 18732 # necessary to make sure instantiated templates are included 18733 # in the archive. 18734 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 18735 ;; 18736 gcx*) 18737 # Green Hills C++ Compiler 18738 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 18739 18740 # The C++ compiler must be used to create the archive. 18741 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 18742 ;; 18743 *) 18744 # GNU C++ compiler with Solaris linker 18745 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 18746 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 18747 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 18748 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 18749 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18750 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 18751 18752 # Commands to make compiler produce verbose output that lists 18753 # what "hidden" libraries, object files and flags are used when 18754 # linking a shared library. 18755 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 18756 else 18757 # g++ 2.7 appears to require `-G' NOT `-shared' on this 18758 # platform. 18759 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 18760 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18761 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 18762 18763 # Commands to make compiler produce verbose output that lists 18764 # what "hidden" libraries, object files and flags are used when 18765 # linking a shared library. 18766 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 18767 fi 18768 18769 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 18770 case $host_os in 18771 solaris2.[0-5] | solaris2.[0-5].*) ;; 18772 *) 18773 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18774 ;; 18775 esac 18776 fi 18777 ;; 18778 esac 18779 ;; 18780 18781 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18782 no_undefined_flag_CXX='${wl}-z,text' 18783 archive_cmds_need_lc_CXX=no 18784 hardcode_shlibpath_var_CXX=no 18785 runpath_var='LD_RUN_PATH' 18786 18787 case $cc_basename in 18788 CC*) 18789 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18790 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18791 ;; 18792 *) 18793 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18794 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18795 ;; 18796 esac 18797 ;; 18798 18799 sysv5* | sco3.2v5* | sco5v6*) 18800 # Note: We can NOT use -z defs as we might desire, because we do not 18801 # link with -lc, and that would cause any symbols used from libc to 18802 # always be unresolved, which means just about no library would 18803 # ever link correctly. If we're not using GNU ld we use -z text 18804 # though, which does catch some bad symbols but isn't as heavy-handed 18805 # as -z defs. 18806 no_undefined_flag_CXX='${wl}-z,text' 18807 allow_undefined_flag_CXX='${wl}-z,nodefs' 18808 archive_cmds_need_lc_CXX=no 18809 hardcode_shlibpath_var_CXX=no 18810 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 18811 hardcode_libdir_separator_CXX=':' 18812 link_all_deplibs_CXX=yes 18813 export_dynamic_flag_spec_CXX='${wl}-Bexport' 18814 runpath_var='LD_RUN_PATH' 18815 18816 case $cc_basename in 18817 CC*) 18818 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18819 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18820 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 18821 '"$old_archive_cmds_CXX" 18822 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 18823 '"$reload_cmds_CXX" 18824 ;; 18825 *) 18826 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18827 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18828 ;; 18829 esac 18830 ;; 18831 18832 tandem*) 18833 case $cc_basename in 18834 NCC*) 18835 # NonStop-UX NCC 3.20 18836 # FIXME: insert proper C++ library support 18837 ld_shlibs_CXX=no 18838 ;; 18839 *) 18840 # FIXME: insert proper C++ library support 18841 ld_shlibs_CXX=no 18842 ;; 18843 esac 18844 ;; 18845 18846 vxworks*) 18847 # FIXME: insert proper C++ library support 18848 ld_shlibs_CXX=no 18849 ;; 18850 18851 *) 18852 # FIXME: insert proper C++ library support 18853 ld_shlibs_CXX=no 18854 ;; 18855 esac 18856 18857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 18858$as_echo "$ld_shlibs_CXX" >&6; } 18859 test "$ld_shlibs_CXX" = no && can_build_shared=no 18860 18861 GCC_CXX="$GXX" 18862 LD_CXX="$LD" 18863 18864 ## CAVEAT EMPTOR: 18865 ## There is no encapsulation within the following macros, do not change 18866 ## the running order or otherwise move them around unless you know exactly 18867 ## what you are doing... 18868 # Dependencies to place before and after the object being linked: 18869predep_objects_CXX= 18870postdep_objects_CXX= 18871predeps_CXX= 18872postdeps_CXX= 18873compiler_lib_search_path_CXX= 18874 18875cat > conftest.$ac_ext <<_LT_EOF 18876class Foo 18877{ 18878public: 18879 Foo (void) { a = 0; } 18880private: 18881 int a; 18882}; 18883_LT_EOF 18884 18885 18886_lt_libdeps_save_CFLAGS=$CFLAGS 18887case "$CC $CFLAGS " in #( 18888*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 18889*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 18890*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 18891esac 18892 18893if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18894 (eval $ac_compile) 2>&5 18895 ac_status=$? 18896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18897 test $ac_status = 0; }; then 18898 # Parse the compiler output and extract the necessary 18899 # objects, libraries and library flags. 18900 18901 # Sentinel used to keep track of whether or not we are before 18902 # the conftest object file. 18903 pre_test_object_deps_done=no 18904 18905 for p in `eval "$output_verbose_link_cmd"`; do 18906 case ${prev}${p} in 18907 18908 -L* | -R* | -l*) 18909 # Some compilers place space between "-{L,R}" and the path. 18910 # Remove the space. 18911 if test $p = "-L" || 18912 test $p = "-R"; then 18913 prev=$p 18914 continue 18915 fi 18916 18917 # Expand the sysroot to ease extracting the directories later. 18918 if test -z "$prev"; then 18919 case $p in 18920 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 18921 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 18922 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 18923 esac 18924 fi 18925 case $p in 18926 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 18927 esac 18928 if test "$pre_test_object_deps_done" = no; then 18929 case ${prev} in 18930 -L | -R) 18931 # Internal compiler library paths should come after those 18932 # provided the user. The postdeps already come after the 18933 # user supplied libs so there is no need to process them. 18934 if test -z "$compiler_lib_search_path_CXX"; then 18935 compiler_lib_search_path_CXX="${prev}${p}" 18936 else 18937 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 18938 fi 18939 ;; 18940 # The "-l" case would never come before the object being 18941 # linked, so don't bother handling this case. 18942 esac 18943 else 18944 if test -z "$postdeps_CXX"; then 18945 postdeps_CXX="${prev}${p}" 18946 else 18947 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 18948 fi 18949 fi 18950 prev= 18951 ;; 18952 18953 *.lto.$objext) ;; # Ignore GCC LTO objects 18954 *.$objext) 18955 # This assumes that the test object file only shows up 18956 # once in the compiler output. 18957 if test "$p" = "conftest.$objext"; then 18958 pre_test_object_deps_done=yes 18959 continue 18960 fi 18961 18962 if test "$pre_test_object_deps_done" = no; then 18963 if test -z "$predep_objects_CXX"; then 18964 predep_objects_CXX="$p" 18965 else 18966 predep_objects_CXX="$predep_objects_CXX $p" 18967 fi 18968 else 18969 if test -z "$postdep_objects_CXX"; then 18970 postdep_objects_CXX="$p" 18971 else 18972 postdep_objects_CXX="$postdep_objects_CXX $p" 18973 fi 18974 fi 18975 ;; 18976 18977 *) ;; # Ignore the rest. 18978 18979 esac 18980 done 18981 18982 # Clean up. 18983 rm -f a.out a.exe 18984else 18985 echo "libtool.m4: error: problem compiling CXX test program" 18986fi 18987 18988$RM -f confest.$objext 18989CFLAGS=$_lt_libdeps_save_CFLAGS 18990 18991# PORTME: override above test on systems where it is broken 18992case $host_os in 18993interix[3-9]*) 18994 # Interix 3.5 installs completely hosed .la files for C++, so rather than 18995 # hack all around it, let's just trust "g++" to DTRT. 18996 predep_objects_CXX= 18997 postdep_objects_CXX= 18998 postdeps_CXX= 18999 ;; 19000 19001linux*) 19002 case `$CC -V 2>&1 | sed 5q` in 19003 *Sun\ C*) 19004 # Sun C++ 5.9 19005 19006 # The more standards-conforming stlport4 library is 19007 # incompatible with the Cstd library. Avoid specifying 19008 # it if it's in CXXFLAGS. Ignore libCrun as 19009 # -library=stlport4 depends on it. 19010 case " $CXX $CXXFLAGS " in 19011 *" -library=stlport4 "*) 19012 solaris_use_stlport4=yes 19013 ;; 19014 esac 19015 19016 if test "$solaris_use_stlport4" != yes; then 19017 postdeps_CXX='-library=Cstd -library=Crun' 19018 fi 19019 ;; 19020 esac 19021 ;; 19022 19023solaris*) 19024 case $cc_basename in 19025 CC* | sunCC*) 19026 # The more standards-conforming stlport4 library is 19027 # incompatible with the Cstd library. Avoid specifying 19028 # it if it's in CXXFLAGS. Ignore libCrun as 19029 # -library=stlport4 depends on it. 19030 case " $CXX $CXXFLAGS " in 19031 *" -library=stlport4 "*) 19032 solaris_use_stlport4=yes 19033 ;; 19034 esac 19035 19036 # Adding this requires a known-good setup of shared libraries for 19037 # Sun compiler versions before 5.6, else PIC objects from an old 19038 # archive will be linked into the output, leading to subtle bugs. 19039 if test "$solaris_use_stlport4" != yes; then 19040 postdeps_CXX='-library=Cstd -library=Crun' 19041 fi 19042 ;; 19043 esac 19044 ;; 19045esac 19046 19047 19048case " $postdeps_CXX " in 19049*" -lc "*) archive_cmds_need_lc_CXX=no ;; 19050esac 19051 compiler_lib_search_dirs_CXX= 19052if test -n "${compiler_lib_search_path_CXX}"; then 19053 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 19054fi 19055 19056 19057 19058 19059 19060 19061 19062 19063 19064 19065 19066 19067 19068 19069 19070 19071 19072 19073 19074 19075 19076 19077 19078 19079 19080 19081 19082 19083 19084 19085 19086 lt_prog_compiler_wl_CXX= 19087lt_prog_compiler_pic_CXX= 19088lt_prog_compiler_static_CXX= 19089 19090 19091 # C++ specific cases for pic, static, wl, etc. 19092 if test "$GXX" = yes; then 19093 lt_prog_compiler_wl_CXX='-Wl,' 19094 lt_prog_compiler_static_CXX='-static' 19095 19096 case $host_os in 19097 aix*) 19098 # All AIX code is PIC. 19099 if test "$host_cpu" = ia64; then 19100 # AIX 5 now supports IA64 processor 19101 lt_prog_compiler_static_CXX='-Bstatic' 19102 fi 19103 ;; 19104 19105 amigaos*) 19106 case $host_cpu in 19107 powerpc) 19108 # see comment about AmigaOS4 .so support 19109 lt_prog_compiler_pic_CXX='-fPIC' 19110 ;; 19111 m68k) 19112 # FIXME: we need at least 68020 code to build shared libraries, but 19113 # adding the `-m68020' flag to GCC prevents building anything better, 19114 # like `-m68040'. 19115 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 19116 ;; 19117 esac 19118 ;; 19119 19120 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 19121 # PIC is the default for these OSes. 19122 ;; 19123 mingw* | cygwin* | os2* | pw32* | cegcc*) 19124 # This hack is so that the source file can tell whether it is being 19125 # built for inclusion in a dll (and should export symbols for example). 19126 # Although the cygwin gcc ignores -fPIC, still need this for old-style 19127 # (--disable-auto-import) libraries 19128 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 19129 ;; 19130 darwin* | rhapsody*) 19131 # PIC is the default on this platform 19132 # Common symbols not allowed in MH_DYLIB files 19133 lt_prog_compiler_pic_CXX='-fno-common' 19134 ;; 19135 *djgpp*) 19136 # DJGPP does not support shared libraries at all 19137 lt_prog_compiler_pic_CXX= 19138 ;; 19139 haiku*) 19140 # PIC is the default for Haiku. 19141 # The "-static" flag exists, but is broken. 19142 lt_prog_compiler_static_CXX= 19143 ;; 19144 interix[3-9]*) 19145 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 19146 # Instead, we relocate shared libraries at runtime. 19147 ;; 19148 sysv4*MP*) 19149 if test -d /usr/nec; then 19150 lt_prog_compiler_pic_CXX=-Kconform_pic 19151 fi 19152 ;; 19153 hpux*) 19154 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 19155 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 19156 # sets the default TLS model and affects inlining. 19157 case $host_cpu in 19158 hppa*64*) 19159 ;; 19160 *) 19161 lt_prog_compiler_pic_CXX='-fPIC' 19162 ;; 19163 esac 19164 ;; 19165 *qnx* | *nto*) 19166 # QNX uses GNU C++, but need to define -shared option too, otherwise 19167 # it will coredump. 19168 lt_prog_compiler_pic_CXX='-fPIC -shared' 19169 ;; 19170 *) 19171 lt_prog_compiler_pic_CXX='-fPIC' 19172 ;; 19173 esac 19174 else 19175 case $host_os in 19176 aix[4-9]*) 19177 # All AIX code is PIC. 19178 if test "$host_cpu" = ia64; then 19179 # AIX 5 now supports IA64 processor 19180 lt_prog_compiler_static_CXX='-Bstatic' 19181 else 19182 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 19183 fi 19184 ;; 19185 chorus*) 19186 case $cc_basename in 19187 cxch68*) 19188 # Green Hills C++ Compiler 19189 # _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" 19190 ;; 19191 esac 19192 ;; 19193 mingw* | cygwin* | os2* | pw32* | cegcc*) 19194 # This hack is so that the source file can tell whether it is being 19195 # built for inclusion in a dll (and should export symbols for example). 19196 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 19197 ;; 19198 dgux*) 19199 case $cc_basename in 19200 ec++*) 19201 lt_prog_compiler_pic_CXX='-KPIC' 19202 ;; 19203 ghcx*) 19204 # Green Hills C++ Compiler 19205 lt_prog_compiler_pic_CXX='-pic' 19206 ;; 19207 *) 19208 ;; 19209 esac 19210 ;; 19211 freebsd* | dragonfly*) 19212 # FreeBSD uses GNU C++ 19213 ;; 19214 hpux9* | hpux10* | hpux11*) 19215 case $cc_basename in 19216 CC*) 19217 lt_prog_compiler_wl_CXX='-Wl,' 19218 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 19219 if test "$host_cpu" != ia64; then 19220 lt_prog_compiler_pic_CXX='+Z' 19221 fi 19222 ;; 19223 aCC*) 19224 lt_prog_compiler_wl_CXX='-Wl,' 19225 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 19226 case $host_cpu in 19227 hppa*64*|ia64*) 19228 # +Z the default 19229 ;; 19230 *) 19231 lt_prog_compiler_pic_CXX='+Z' 19232 ;; 19233 esac 19234 ;; 19235 *) 19236 ;; 19237 esac 19238 ;; 19239 interix*) 19240 # This is c89, which is MS Visual C++ (no shared libs) 19241 # Anyone wants to do a port? 19242 ;; 19243 irix5* | irix6* | nonstopux*) 19244 case $cc_basename in 19245 CC*) 19246 lt_prog_compiler_wl_CXX='-Wl,' 19247 lt_prog_compiler_static_CXX='-non_shared' 19248 # CC pic flag -KPIC is the default. 19249 ;; 19250 *) 19251 ;; 19252 esac 19253 ;; 19254 linux* | k*bsd*-gnu | kopensolaris*-gnu) 19255 case $cc_basename in 19256 KCC*) 19257 # KAI C++ Compiler 19258 lt_prog_compiler_wl_CXX='--backend -Wl,' 19259 lt_prog_compiler_pic_CXX='-fPIC' 19260 ;; 19261 ecpc* ) 19262 # old Intel C++ for x86_64 which still supported -KPIC. 19263 lt_prog_compiler_wl_CXX='-Wl,' 19264 lt_prog_compiler_pic_CXX='-KPIC' 19265 lt_prog_compiler_static_CXX='-static' 19266 ;; 19267 icpc* ) 19268 # Intel C++, used to be incompatible with GCC. 19269 # ICC 10 doesn't accept -KPIC any more. 19270 lt_prog_compiler_wl_CXX='-Wl,' 19271 lt_prog_compiler_pic_CXX='-fPIC' 19272 lt_prog_compiler_static_CXX='-static' 19273 ;; 19274 pgCC* | pgcpp*) 19275 # Portland Group C++ compiler 19276 lt_prog_compiler_wl_CXX='-Wl,' 19277 lt_prog_compiler_pic_CXX='-fpic' 19278 lt_prog_compiler_static_CXX='-Bstatic' 19279 ;; 19280 cxx*) 19281 # Compaq C++ 19282 # Make sure the PIC flag is empty. It appears that all Alpha 19283 # Linux and Compaq Tru64 Unix objects are PIC. 19284 lt_prog_compiler_pic_CXX= 19285 lt_prog_compiler_static_CXX='-non_shared' 19286 ;; 19287 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 19288 # IBM XL 8.0, 9.0 on PPC and BlueGene 19289 lt_prog_compiler_wl_CXX='-Wl,' 19290 lt_prog_compiler_pic_CXX='-qpic' 19291 lt_prog_compiler_static_CXX='-qstaticlink' 19292 ;; 19293 *) 19294 case `$CC -V 2>&1 | sed 5q` in 19295 *Sun\ C*) 19296 # Sun C++ 5.9 19297 lt_prog_compiler_pic_CXX='-KPIC' 19298 lt_prog_compiler_static_CXX='-Bstatic' 19299 lt_prog_compiler_wl_CXX='-Qoption ld ' 19300 ;; 19301 esac 19302 ;; 19303 esac 19304 ;; 19305 lynxos*) 19306 ;; 19307 m88k*) 19308 ;; 19309 mvs*) 19310 case $cc_basename in 19311 cxx*) 19312 lt_prog_compiler_pic_CXX='-W c,exportall' 19313 ;; 19314 *) 19315 ;; 19316 esac 19317 ;; 19318 netbsd*) 19319 ;; 19320 *qnx* | *nto*) 19321 # QNX uses GNU C++, but need to define -shared option too, otherwise 19322 # it will coredump. 19323 lt_prog_compiler_pic_CXX='-fPIC -shared' 19324 ;; 19325 osf3* | osf4* | osf5*) 19326 case $cc_basename in 19327 KCC*) 19328 lt_prog_compiler_wl_CXX='--backend -Wl,' 19329 ;; 19330 RCC*) 19331 # Rational C++ 2.4.1 19332 lt_prog_compiler_pic_CXX='-pic' 19333 ;; 19334 cxx*) 19335 # Digital/Compaq C++ 19336 lt_prog_compiler_wl_CXX='-Wl,' 19337 # Make sure the PIC flag is empty. It appears that all Alpha 19338 # Linux and Compaq Tru64 Unix objects are PIC. 19339 lt_prog_compiler_pic_CXX= 19340 lt_prog_compiler_static_CXX='-non_shared' 19341 ;; 19342 *) 19343 ;; 19344 esac 19345 ;; 19346 psos*) 19347 ;; 19348 solaris*) 19349 case $cc_basename in 19350 CC* | sunCC*) 19351 # Sun C++ 4.2, 5.x and Centerline C++ 19352 lt_prog_compiler_pic_CXX='-KPIC' 19353 lt_prog_compiler_static_CXX='-Bstatic' 19354 lt_prog_compiler_wl_CXX='-Qoption ld ' 19355 ;; 19356 gcx*) 19357 # Green Hills C++ Compiler 19358 lt_prog_compiler_pic_CXX='-PIC' 19359 ;; 19360 *) 19361 ;; 19362 esac 19363 ;; 19364 sunos4*) 19365 case $cc_basename in 19366 CC*) 19367 # Sun C++ 4.x 19368 lt_prog_compiler_pic_CXX='-pic' 19369 lt_prog_compiler_static_CXX='-Bstatic' 19370 ;; 19371 lcc*) 19372 # Lucid 19373 lt_prog_compiler_pic_CXX='-pic' 19374 ;; 19375 *) 19376 ;; 19377 esac 19378 ;; 19379 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 19380 case $cc_basename in 19381 CC*) 19382 lt_prog_compiler_wl_CXX='-Wl,' 19383 lt_prog_compiler_pic_CXX='-KPIC' 19384 lt_prog_compiler_static_CXX='-Bstatic' 19385 ;; 19386 esac 19387 ;; 19388 tandem*) 19389 case $cc_basename in 19390 NCC*) 19391 # NonStop-UX NCC 3.20 19392 lt_prog_compiler_pic_CXX='-KPIC' 19393 ;; 19394 *) 19395 ;; 19396 esac 19397 ;; 19398 vxworks*) 19399 ;; 19400 *) 19401 lt_prog_compiler_can_build_shared_CXX=no 19402 ;; 19403 esac 19404 fi 19405 19406case $host_os in 19407 # For platforms which do not support PIC, -DPIC is meaningless: 19408 *djgpp*) 19409 lt_prog_compiler_pic_CXX= 19410 ;; 19411 *) 19412 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 19413 ;; 19414esac 19415 19416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 19417$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 19418if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 19419 $as_echo_n "(cached) " >&6 19420else 19421 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 19422fi 19423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 19424$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 19425lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 19426 19427# 19428# Check to make sure the PIC flag actually works. 19429# 19430if test -n "$lt_prog_compiler_pic_CXX"; then 19431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 19432$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 19433if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 19434 $as_echo_n "(cached) " >&6 19435else 19436 lt_cv_prog_compiler_pic_works_CXX=no 19437 ac_outfile=conftest.$ac_objext 19438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19439 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 19440 # Insert the option either (1) after the last *FLAGS variable, or 19441 # (2) before a word containing "conftest.", or (3) at the end. 19442 # Note that $ac_compile itself does not contain backslashes and begins 19443 # with a dollar sign (not a hyphen), so the echo should work correctly. 19444 # The option is referenced via a variable to avoid confusing sed. 19445 lt_compile=`echo "$ac_compile" | $SED \ 19446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19448 -e 's:$: $lt_compiler_flag:'` 19449 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19450 (eval "$lt_compile" 2>conftest.err) 19451 ac_status=$? 19452 cat conftest.err >&5 19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19454 if (exit $ac_status) && test -s "$ac_outfile"; then 19455 # The compiler can only warn and ignore the option if not recognized 19456 # So say no if there are warnings other than the usual output. 19457 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 19458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19459 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19460 lt_cv_prog_compiler_pic_works_CXX=yes 19461 fi 19462 fi 19463 $RM conftest* 19464 19465fi 19466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 19467$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 19468 19469if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 19470 case $lt_prog_compiler_pic_CXX in 19471 "" | " "*) ;; 19472 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 19473 esac 19474else 19475 lt_prog_compiler_pic_CXX= 19476 lt_prog_compiler_can_build_shared_CXX=no 19477fi 19478 19479fi 19480 19481 19482 19483 19484 19485# 19486# Check to make sure the static flag actually works. 19487# 19488wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 19489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 19490$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 19491if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 19492 $as_echo_n "(cached) " >&6 19493else 19494 lt_cv_prog_compiler_static_works_CXX=no 19495 save_LDFLAGS="$LDFLAGS" 19496 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 19497 echo "$lt_simple_link_test_code" > conftest.$ac_ext 19498 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19499 # The linker can only warn and ignore the option if not recognized 19500 # So say no if there are warnings 19501 if test -s conftest.err; then 19502 # Append any errors to the config.log. 19503 cat conftest.err 1>&5 19504 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 19505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19506 if diff conftest.exp conftest.er2 >/dev/null; then 19507 lt_cv_prog_compiler_static_works_CXX=yes 19508 fi 19509 else 19510 lt_cv_prog_compiler_static_works_CXX=yes 19511 fi 19512 fi 19513 $RM -r conftest* 19514 LDFLAGS="$save_LDFLAGS" 19515 19516fi 19517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 19518$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 19519 19520if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 19521 : 19522else 19523 lt_prog_compiler_static_CXX= 19524fi 19525 19526 19527 19528 19529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19530$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19531if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 19532 $as_echo_n "(cached) " >&6 19533else 19534 lt_cv_prog_compiler_c_o_CXX=no 19535 $RM -r conftest 2>/dev/null 19536 mkdir conftest 19537 cd conftest 19538 mkdir out 19539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19540 19541 lt_compiler_flag="-o out/conftest2.$ac_objext" 19542 # Insert the option either (1) after the last *FLAGS variable, or 19543 # (2) before a word containing "conftest.", or (3) at the end. 19544 # Note that $ac_compile itself does not contain backslashes and begins 19545 # with a dollar sign (not a hyphen), so the echo should work correctly. 19546 lt_compile=`echo "$ac_compile" | $SED \ 19547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19549 -e 's:$: $lt_compiler_flag:'` 19550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19551 (eval "$lt_compile" 2>out/conftest.err) 19552 ac_status=$? 19553 cat out/conftest.err >&5 19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19555 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19556 then 19557 # The compiler can only warn and ignore the option if not recognized 19558 # So say no if there are warnings 19559 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19560 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19561 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19562 lt_cv_prog_compiler_c_o_CXX=yes 19563 fi 19564 fi 19565 chmod u+w . 2>&5 19566 $RM conftest* 19567 # SGI C++ compiler will create directory out/ii_files/ for 19568 # template instantiation 19569 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19570 $RM out/* && rmdir out 19571 cd .. 19572 $RM -r conftest 19573 $RM conftest* 19574 19575fi 19576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 19577$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 19578 19579 19580 19581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19582$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19583if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 19584 $as_echo_n "(cached) " >&6 19585else 19586 lt_cv_prog_compiler_c_o_CXX=no 19587 $RM -r conftest 2>/dev/null 19588 mkdir conftest 19589 cd conftest 19590 mkdir out 19591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19592 19593 lt_compiler_flag="-o out/conftest2.$ac_objext" 19594 # Insert the option either (1) after the last *FLAGS variable, or 19595 # (2) before a word containing "conftest.", or (3) at the end. 19596 # Note that $ac_compile itself does not contain backslashes and begins 19597 # with a dollar sign (not a hyphen), so the echo should work correctly. 19598 lt_compile=`echo "$ac_compile" | $SED \ 19599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19601 -e 's:$: $lt_compiler_flag:'` 19602 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19603 (eval "$lt_compile" 2>out/conftest.err) 19604 ac_status=$? 19605 cat out/conftest.err >&5 19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19607 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19608 then 19609 # The compiler can only warn and ignore the option if not recognized 19610 # So say no if there are warnings 19611 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19612 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19613 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19614 lt_cv_prog_compiler_c_o_CXX=yes 19615 fi 19616 fi 19617 chmod u+w . 2>&5 19618 $RM conftest* 19619 # SGI C++ compiler will create directory out/ii_files/ for 19620 # template instantiation 19621 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19622 $RM out/* && rmdir out 19623 cd .. 19624 $RM -r conftest 19625 $RM conftest* 19626 19627fi 19628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 19629$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 19630 19631 19632 19633 19634hard_links="nottested" 19635if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 19636 # do not overwrite the value of need_locks provided by the user 19637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 19638$as_echo_n "checking if we can lock with hard links... " >&6; } 19639 hard_links=yes 19640 $RM conftest* 19641 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19642 touch conftest.a 19643 ln conftest.a conftest.b 2>&5 || hard_links=no 19644 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 19646$as_echo "$hard_links" >&6; } 19647 if test "$hard_links" = no; then 19648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 19649$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 19650 need_locks=warn 19651 fi 19652else 19653 need_locks=no 19654fi 19655 19656 19657 19658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19659$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 19660 19661 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 19662 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 19663 case $host_os in 19664 aix[4-9]*) 19665 # If we're using GNU nm, then we don't want the "-C" option. 19666 # -C means demangle to AIX nm, but means don't demangle with GNU nm 19667 # Also, AIX nm treats weak defined symbols like other global defined 19668 # symbols, whereas GNU nm marks them as "W". 19669 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 19670 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 19671 else 19672 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 19673 fi 19674 ;; 19675 pw32*) 19676 export_symbols_cmds_CXX="$ltdll_cmds" 19677 ;; 19678 cygwin* | mingw* | cegcc*) 19679 case $cc_basename in 19680 cl*) 19681 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 19682 ;; 19683 *) 19684 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' 19685 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 19686 ;; 19687 esac 19688 ;; 19689 *) 19690 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 19691 ;; 19692 esac 19693 19694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 19695$as_echo "$ld_shlibs_CXX" >&6; } 19696test "$ld_shlibs_CXX" = no && can_build_shared=no 19697 19698with_gnu_ld_CXX=$with_gnu_ld 19699 19700 19701 19702 19703 19704 19705# 19706# Do we need to explicitly link libc? 19707# 19708case "x$archive_cmds_need_lc_CXX" in 19709x|xyes) 19710 # Assume -lc should be added 19711 archive_cmds_need_lc_CXX=yes 19712 19713 if test "$enable_shared" = yes && test "$GCC" = yes; then 19714 case $archive_cmds_CXX in 19715 *'~'*) 19716 # FIXME: we may have to deal with multi-command sequences. 19717 ;; 19718 '$CC '*) 19719 # Test whether the compiler implicitly links with -lc since on some 19720 # systems, -lgcc has to come before -lc. If gcc already passes -lc 19721 # to ld, don't add -lc before -lgcc. 19722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 19723$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 19724if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 19725 $as_echo_n "(cached) " >&6 19726else 19727 $RM conftest* 19728 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19729 19730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 19731 (eval $ac_compile) 2>&5 19732 ac_status=$? 19733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19734 test $ac_status = 0; } 2>conftest.err; then 19735 soname=conftest 19736 lib=conftest 19737 libobjs=conftest.$ac_objext 19738 deplibs= 19739 wl=$lt_prog_compiler_wl_CXX 19740 pic_flag=$lt_prog_compiler_pic_CXX 19741 compiler_flags=-v 19742 linker_flags=-v 19743 verstring= 19744 output_objdir=. 19745 libname=conftest 19746 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 19747 allow_undefined_flag_CXX= 19748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 19749 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 19750 ac_status=$? 19751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19752 test $ac_status = 0; } 19753 then 19754 lt_cv_archive_cmds_need_lc_CXX=no 19755 else 19756 lt_cv_archive_cmds_need_lc_CXX=yes 19757 fi 19758 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 19759 else 19760 cat conftest.err 1>&5 19761 fi 19762 $RM conftest* 19763 19764fi 19765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 19766$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 19767 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 19768 ;; 19769 esac 19770 fi 19771 ;; 19772esac 19773 19774 19775 19776 19777 19778 19779 19780 19781 19782 19783 19784 19785 19786 19787 19788 19789 19790 19791 19792 19793 19794 19795 19796 19797 19798 19799 19800 19801 19802 19803 19804 19805 19806 19807 19808 19809 19810 19811 19812 19813 19814 19815 19816 19817 19818 19819 19820 19821 19822 19823 19824 19825 19826 19827 19828 19829 19830 19831 19832 19833 19834 19835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 19836$as_echo_n "checking dynamic linker characteristics... " >&6; } 19837 19838library_names_spec= 19839libname_spec='lib$name' 19840soname_spec= 19841shrext_cmds=".so" 19842postinstall_cmds= 19843postuninstall_cmds= 19844finish_cmds= 19845finish_eval= 19846shlibpath_var= 19847shlibpath_overrides_runpath=unknown 19848version_type=none 19849dynamic_linker="$host_os ld.so" 19850sys_lib_dlsearch_path_spec="/lib /usr/lib" 19851need_lib_prefix=unknown 19852hardcode_into_libs=no 19853 19854# when you set need_version to no, make sure it does not cause -set_version 19855# flags to be left without arguments 19856need_version=unknown 19857 19858case $host_os in 19859aix3*) 19860 version_type=linux # correct to gnu/linux during the next big refactor 19861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 19862 shlibpath_var=LIBPATH 19863 19864 # AIX 3 has no versioning support, so we append a major version to the name. 19865 soname_spec='${libname}${release}${shared_ext}$major' 19866 ;; 19867 19868aix[4-9]*) 19869 version_type=linux # correct to gnu/linux during the next big refactor 19870 need_lib_prefix=no 19871 need_version=no 19872 hardcode_into_libs=yes 19873 if test "$host_cpu" = ia64; then 19874 # AIX 5 supports IA64 19875 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 19876 shlibpath_var=LD_LIBRARY_PATH 19877 else 19878 # With GCC up to 2.95.x, collect2 would create an import file 19879 # for dependence libraries. The import file would start with 19880 # the line `#! .'. This would cause the generated library to 19881 # depend on `.', always an invalid library. This was fixed in 19882 # development snapshots of GCC prior to 3.0. 19883 case $host_os in 19884 aix4 | aix4.[01] | aix4.[01].*) 19885 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 19886 echo ' yes ' 19887 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 19888 : 19889 else 19890 can_build_shared=no 19891 fi 19892 ;; 19893 esac 19894 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 19895 # soname into executable. Probably we can add versioning support to 19896 # collect2, so additional links can be useful in future. 19897 if test "$aix_use_runtimelinking" = yes; then 19898 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 19899 # instead of lib<name>.a to let people know that these are not 19900 # typical AIX shared libraries. 19901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19902 else 19903 # We preserve .a as extension for shared libraries through AIX4.2 19904 # and later when we are not doing run time linking. 19905 library_names_spec='${libname}${release}.a $libname.a' 19906 soname_spec='${libname}${release}${shared_ext}$major' 19907 fi 19908 shlibpath_var=LIBPATH 19909 fi 19910 ;; 19911 19912amigaos*) 19913 case $host_cpu in 19914 powerpc) 19915 # Since July 2007 AmigaOS4 officially supports .so libraries. 19916 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 19917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19918 ;; 19919 m68k) 19920 library_names_spec='$libname.ixlibrary $libname.a' 19921 # Create ${libname}_ixlibrary.a entries in /sys/libs. 19922 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 19923 ;; 19924 esac 19925 ;; 19926 19927beos*) 19928 library_names_spec='${libname}${shared_ext}' 19929 dynamic_linker="$host_os ld.so" 19930 shlibpath_var=LIBRARY_PATH 19931 ;; 19932 19933bsdi[45]*) 19934 version_type=linux # correct to gnu/linux during the next big refactor 19935 need_version=no 19936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19937 soname_spec='${libname}${release}${shared_ext}$major' 19938 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 19939 shlibpath_var=LD_LIBRARY_PATH 19940 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 19941 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 19942 # the default ld.so.conf also contains /usr/contrib/lib and 19943 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 19944 # libtool to hard-code these into programs 19945 ;; 19946 19947cygwin* | mingw* | pw32* | cegcc*) 19948 version_type=windows 19949 shrext_cmds=".dll" 19950 need_version=no 19951 need_lib_prefix=no 19952 19953 case $GCC,$cc_basename in 19954 yes,*) 19955 # gcc 19956 library_names_spec='$libname.dll.a' 19957 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19958 postinstall_cmds='base_file=`basename \${file}`~ 19959 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 19960 dldir=$destdir/`dirname \$dlpath`~ 19961 test -d \$dldir || mkdir -p \$dldir~ 19962 $install_prog $dir/$dlname \$dldir/$dlname~ 19963 chmod a+x \$dldir/$dlname~ 19964 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 19965 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 19966 fi' 19967 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19968 dlpath=$dir/\$dldll~ 19969 $RM \$dlpath' 19970 shlibpath_overrides_runpath=yes 19971 19972 case $host_os in 19973 cygwin*) 19974 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 19975 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19976 19977 ;; 19978 mingw* | cegcc*) 19979 # MinGW DLLs use traditional 'lib' prefix 19980 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19981 ;; 19982 pw32*) 19983 # pw32 DLLs use 'pw' prefix rather than 'lib' 19984 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19985 ;; 19986 esac 19987 dynamic_linker='Win32 ld.exe' 19988 ;; 19989 19990 *,cl*) 19991 # Native MSVC 19992 libname_spec='$name' 19993 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19994 library_names_spec='${libname}.dll.lib' 19995 19996 case $build_os in 19997 mingw*) 19998 sys_lib_search_path_spec= 19999 lt_save_ifs=$IFS 20000 IFS=';' 20001 for lt_path in $LIB 20002 do 20003 IFS=$lt_save_ifs 20004 # Let DOS variable expansion print the short 8.3 style file name. 20005 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 20006 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 20007 done 20008 IFS=$lt_save_ifs 20009 # Convert to MSYS style. 20010 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 20011 ;; 20012 cygwin*) 20013 # Convert to unix form, then to dos form, then back to unix form 20014 # but this time dos style (no spaces!) so that the unix form looks 20015 # like /cygdrive/c/PROGRA~1:/cygdr... 20016 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 20017 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 20018 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 20019 ;; 20020 *) 20021 sys_lib_search_path_spec="$LIB" 20022 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 20023 # It is most probably a Windows format PATH. 20024 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 20025 else 20026 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 20027 fi 20028 # FIXME: find the short name or the path components, as spaces are 20029 # common. (e.g. "Program Files" -> "PROGRA~1") 20030 ;; 20031 esac 20032 20033 # DLL is installed to $(libdir)/../bin by postinstall_cmds 20034 postinstall_cmds='base_file=`basename \${file}`~ 20035 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 20036 dldir=$destdir/`dirname \$dlpath`~ 20037 test -d \$dldir || mkdir -p \$dldir~ 20038 $install_prog $dir/$dlname \$dldir/$dlname' 20039 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 20040 dlpath=$dir/\$dldll~ 20041 $RM \$dlpath' 20042 shlibpath_overrides_runpath=yes 20043 dynamic_linker='Win32 link.exe' 20044 ;; 20045 20046 *) 20047 # Assume MSVC wrapper 20048 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 20049 dynamic_linker='Win32 ld.exe' 20050 ;; 20051 esac 20052 # FIXME: first we should search . and the directory the executable is in 20053 shlibpath_var=PATH 20054 ;; 20055 20056darwin* | rhapsody*) 20057 dynamic_linker="$host_os dyld" 20058 version_type=darwin 20059 need_lib_prefix=no 20060 need_version=no 20061 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 20062 soname_spec='${libname}${release}${major}$shared_ext' 20063 shlibpath_overrides_runpath=yes 20064 shlibpath_var=DYLD_LIBRARY_PATH 20065 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 20066 20067 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 20068 ;; 20069 20070dgux*) 20071 version_type=linux # correct to gnu/linux during the next big refactor 20072 need_lib_prefix=no 20073 need_version=no 20074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 20075 soname_spec='${libname}${release}${shared_ext}$major' 20076 shlibpath_var=LD_LIBRARY_PATH 20077 ;; 20078 20079freebsd* | dragonfly*) 20080 # DragonFly does not have aout. When/if they implement a new 20081 # versioning mechanism, adjust this. 20082 if test -x /usr/bin/objformat; then 20083 objformat=`/usr/bin/objformat` 20084 else 20085 case $host_os in 20086 freebsd[23].*) objformat=aout ;; 20087 *) objformat=elf ;; 20088 esac 20089 fi 20090 version_type=freebsd-$objformat 20091 case $version_type in 20092 freebsd-elf*) 20093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 20094 need_version=no 20095 need_lib_prefix=no 20096 ;; 20097 freebsd-*) 20098 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 20099 need_version=yes 20100 ;; 20101 esac 20102 shlibpath_var=LD_LIBRARY_PATH 20103 case $host_os in 20104 freebsd2.*) 20105 shlibpath_overrides_runpath=yes 20106 ;; 20107 freebsd3.[01]* | freebsdelf3.[01]*) 20108 shlibpath_overrides_runpath=yes 20109 hardcode_into_libs=yes 20110 ;; 20111 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 20112 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 20113 shlibpath_overrides_runpath=no 20114 hardcode_into_libs=yes 20115 ;; 20116 *) # from 4.6 on, and DragonFly 20117 shlibpath_overrides_runpath=yes 20118 hardcode_into_libs=yes 20119 ;; 20120 esac 20121 ;; 20122 20123gnu*) 20124 version_type=linux # correct to gnu/linux during the next big refactor 20125 need_lib_prefix=no 20126 need_version=no 20127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 20128 soname_spec='${libname}${release}${shared_ext}$major' 20129 shlibpath_var=LD_LIBRARY_PATH 20130 shlibpath_overrides_runpath=no 20131 hardcode_into_libs=yes 20132 ;; 20133 20134haiku*) 20135 version_type=linux # correct to gnu/linux during the next big refactor 20136 need_lib_prefix=no 20137 need_version=no 20138 dynamic_linker="$host_os runtime_loader" 20139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 20140 soname_spec='${libname}${release}${shared_ext}$major' 20141 shlibpath_var=LIBRARY_PATH 20142 shlibpath_overrides_runpath=yes 20143 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 20144 hardcode_into_libs=yes 20145 ;; 20146 20147hpux9* | hpux10* | hpux11*) 20148 # Give a soname corresponding to the major version so that dld.sl refuses to 20149 # link against other versions. 20150 version_type=sunos 20151 need_lib_prefix=no 20152 need_version=no 20153 case $host_cpu in 20154 ia64*) 20155 shrext_cmds='.so' 20156 hardcode_into_libs=yes 20157 dynamic_linker="$host_os dld.so" 20158 shlibpath_var=LD_LIBRARY_PATH 20159 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20161 soname_spec='${libname}${release}${shared_ext}$major' 20162 if test "X$HPUX_IA64_MODE" = X32; then 20163 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 20164 else 20165 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 20166 fi 20167 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20168 ;; 20169 hppa*64*) 20170 shrext_cmds='.sl' 20171 hardcode_into_libs=yes 20172 dynamic_linker="$host_os dld.sl" 20173 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 20174 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20176 soname_spec='${libname}${release}${shared_ext}$major' 20177 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 20178 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20179 ;; 20180 *) 20181 shrext_cmds='.sl' 20182 dynamic_linker="$host_os dld.sl" 20183 shlibpath_var=SHLIB_PATH 20184 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 20185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20186 soname_spec='${libname}${release}${shared_ext}$major' 20187 ;; 20188 esac 20189 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 20190 postinstall_cmds='chmod 555 $lib' 20191 # or fails outright, so override atomically: 20192 install_override_mode=555 20193 ;; 20194 20195interix[3-9]*) 20196 version_type=linux # correct to gnu/linux during the next big refactor 20197 need_lib_prefix=no 20198 need_version=no 20199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 20200 soname_spec='${libname}${release}${shared_ext}$major' 20201 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 20202 shlibpath_var=LD_LIBRARY_PATH 20203 shlibpath_overrides_runpath=no 20204 hardcode_into_libs=yes 20205 ;; 20206 20207irix5* | irix6* | nonstopux*) 20208 case $host_os in 20209 nonstopux*) version_type=nonstopux ;; 20210 *) 20211 if test "$lt_cv_prog_gnu_ld" = yes; then 20212 version_type=linux # correct to gnu/linux during the next big refactor 20213 else 20214 version_type=irix 20215 fi ;; 20216 esac 20217 need_lib_prefix=no 20218 need_version=no 20219 soname_spec='${libname}${release}${shared_ext}$major' 20220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 20221 case $host_os in 20222 irix5* | nonstopux*) 20223 libsuff= shlibsuff= 20224 ;; 20225 *) 20226 case $LD in # libtool.m4 will add one of these switches to LD 20227 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 20228 libsuff= shlibsuff= libmagic=32-bit;; 20229 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 20230 libsuff=32 shlibsuff=N32 libmagic=N32;; 20231 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 20232 libsuff=64 shlibsuff=64 libmagic=64-bit;; 20233 *) libsuff= shlibsuff= libmagic=never-match;; 20234 esac 20235 ;; 20236 esac 20237 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 20238 shlibpath_overrides_runpath=no 20239 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 20240 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 20241 hardcode_into_libs=yes 20242 ;; 20243 20244# No shared lib support for Linux oldld, aout, or coff. 20245linux*oldld* | linux*aout* | linux*coff*) 20246 dynamic_linker=no 20247 ;; 20248 20249# This must be glibc/ELF. 20250linux* | k*bsd*-gnu | kopensolaris*-gnu) 20251 version_type=linux # correct to gnu/linux during the next big refactor 20252 need_lib_prefix=no 20253 need_version=no 20254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20255 soname_spec='${libname}${release}${shared_ext}$major' 20256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 20257 shlibpath_var=LD_LIBRARY_PATH 20258 shlibpath_overrides_runpath=no 20259 20260 # Some binutils ld are patched to set DT_RUNPATH 20261 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 20262 $as_echo_n "(cached) " >&6 20263else 20264 lt_cv_shlibpath_overrides_runpath=no 20265 save_LDFLAGS=$LDFLAGS 20266 save_libdir=$libdir 20267 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 20268 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 20269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20270/* end confdefs.h. */ 20271 20272int 20273main () 20274{ 20275 20276 ; 20277 return 0; 20278} 20279_ACEOF 20280if ac_fn_cxx_try_link "$LINENO"; then : 20281 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 20282 lt_cv_shlibpath_overrides_runpath=yes 20283fi 20284fi 20285rm -f core conftest.err conftest.$ac_objext \ 20286 conftest$ac_exeext conftest.$ac_ext 20287 LDFLAGS=$save_LDFLAGS 20288 libdir=$save_libdir 20289 20290fi 20291 20292 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 20293 20294 # This implies no fast_install, which is unacceptable. 20295 # Some rework will be needed to allow for fast_install 20296 # before this can be enabled. 20297 hardcode_into_libs=yes 20298 20299 # Add ABI-specific directories to the system library path. 20300 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 20301 20302 # Append ld.so.conf contents to the search path 20303 if test -f /etc/ld.so.conf; then 20304 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' ' '` 20305 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 20306 20307 fi 20308 20309 # We used to test for /lib/ld.so.1 and disable shared libraries on 20310 # powerpc, because MkLinux only supported shared libraries with the 20311 # GNU dynamic linker. Since this was broken with cross compilers, 20312 # most powerpc-linux boxes support dynamic linking these days and 20313 # people can always --disable-shared, the test was removed, and we 20314 # assume the GNU/Linux dynamic linker is in use. 20315 dynamic_linker='GNU/Linux ld.so' 20316 ;; 20317 20318netbsd*) 20319 version_type=sunos 20320 need_lib_prefix=no 20321 need_version=no 20322 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 20324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20325 dynamic_linker='NetBSD (a.out) ld.so' 20326 else 20327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 20328 soname_spec='${libname}${release}${shared_ext}$major' 20329 dynamic_linker='NetBSD ld.elf_so' 20330 fi 20331 shlibpath_var=LD_LIBRARY_PATH 20332 shlibpath_overrides_runpath=yes 20333 hardcode_into_libs=yes 20334 ;; 20335 20336newsos6) 20337 version_type=linux # correct to gnu/linux during the next big refactor 20338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20339 shlibpath_var=LD_LIBRARY_PATH 20340 shlibpath_overrides_runpath=yes 20341 ;; 20342 20343*nto* | *qnx*) 20344 version_type=qnx 20345 need_lib_prefix=no 20346 need_version=no 20347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20348 soname_spec='${libname}${release}${shared_ext}$major' 20349 shlibpath_var=LD_LIBRARY_PATH 20350 shlibpath_overrides_runpath=no 20351 hardcode_into_libs=yes 20352 dynamic_linker='ldqnx.so' 20353 ;; 20354 20355openbsd*) 20356 version_type=sunos 20357 sys_lib_dlsearch_path_spec="/usr/lib" 20358 need_lib_prefix=no 20359 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 20360 case $host_os in 20361 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 20362 *) need_version=no ;; 20363 esac 20364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 20365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20366 shlibpath_var=LD_LIBRARY_PATH 20367 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 20368 case $host_os in 20369 openbsd2.[89] | openbsd2.[89].*) 20370 shlibpath_overrides_runpath=no 20371 ;; 20372 *) 20373 shlibpath_overrides_runpath=yes 20374 ;; 20375 esac 20376 else 20377 shlibpath_overrides_runpath=yes 20378 fi 20379 ;; 20380 20381os2*) 20382 libname_spec='$name' 20383 shrext_cmds=".dll" 20384 need_lib_prefix=no 20385 library_names_spec='$libname${shared_ext} $libname.a' 20386 dynamic_linker='OS/2 ld.exe' 20387 shlibpath_var=LIBPATH 20388 ;; 20389 20390osf3* | osf4* | osf5*) 20391 version_type=osf 20392 need_lib_prefix=no 20393 need_version=no 20394 soname_spec='${libname}${release}${shared_ext}$major' 20395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20396 shlibpath_var=LD_LIBRARY_PATH 20397 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 20398 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 20399 ;; 20400 20401rdos*) 20402 dynamic_linker=no 20403 ;; 20404 20405solaris*) 20406 version_type=linux # correct to gnu/linux during the next big refactor 20407 need_lib_prefix=no 20408 need_version=no 20409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20410 soname_spec='${libname}${release}${shared_ext}$major' 20411 shlibpath_var=LD_LIBRARY_PATH 20412 shlibpath_overrides_runpath=yes 20413 hardcode_into_libs=yes 20414 # ldd complains unless libraries are executable 20415 postinstall_cmds='chmod +x $lib' 20416 ;; 20417 20418sunos4*) 20419 version_type=sunos 20420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 20421 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 20422 shlibpath_var=LD_LIBRARY_PATH 20423 shlibpath_overrides_runpath=yes 20424 if test "$with_gnu_ld" = yes; then 20425 need_lib_prefix=no 20426 fi 20427 need_version=yes 20428 ;; 20429 20430sysv4 | sysv4.3*) 20431 version_type=linux # correct to gnu/linux during the next big refactor 20432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20433 soname_spec='${libname}${release}${shared_ext}$major' 20434 shlibpath_var=LD_LIBRARY_PATH 20435 case $host_vendor in 20436 sni) 20437 shlibpath_overrides_runpath=no 20438 need_lib_prefix=no 20439 runpath_var=LD_RUN_PATH 20440 ;; 20441 siemens) 20442 need_lib_prefix=no 20443 ;; 20444 motorola) 20445 need_lib_prefix=no 20446 need_version=no 20447 shlibpath_overrides_runpath=no 20448 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 20449 ;; 20450 esac 20451 ;; 20452 20453sysv4*MP*) 20454 if test -d /usr/nec ;then 20455 version_type=linux # correct to gnu/linux during the next big refactor 20456 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 20457 soname_spec='$libname${shared_ext}.$major' 20458 shlibpath_var=LD_LIBRARY_PATH 20459 fi 20460 ;; 20461 20462sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 20463 version_type=freebsd-elf 20464 need_lib_prefix=no 20465 need_version=no 20466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 20467 soname_spec='${libname}${release}${shared_ext}$major' 20468 shlibpath_var=LD_LIBRARY_PATH 20469 shlibpath_overrides_runpath=yes 20470 hardcode_into_libs=yes 20471 if test "$with_gnu_ld" = yes; then 20472 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 20473 else 20474 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 20475 case $host_os in 20476 sco3.2v5*) 20477 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 20478 ;; 20479 esac 20480 fi 20481 sys_lib_dlsearch_path_spec='/usr/lib' 20482 ;; 20483 20484tpf*) 20485 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 20486 version_type=linux # correct to gnu/linux during the next big refactor 20487 need_lib_prefix=no 20488 need_version=no 20489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20490 shlibpath_var=LD_LIBRARY_PATH 20491 shlibpath_overrides_runpath=no 20492 hardcode_into_libs=yes 20493 ;; 20494 20495uts4*) 20496 version_type=linux # correct to gnu/linux during the next big refactor 20497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20498 soname_spec='${libname}${release}${shared_ext}$major' 20499 shlibpath_var=LD_LIBRARY_PATH 20500 ;; 20501 20502*) 20503 dynamic_linker=no 20504 ;; 20505esac 20506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 20507$as_echo "$dynamic_linker" >&6; } 20508test "$dynamic_linker" = no && can_build_shared=no 20509 20510variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 20511if test "$GCC" = yes; then 20512 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 20513fi 20514 20515if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 20516 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 20517fi 20518if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 20519 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 20520fi 20521 20522 20523 20524 20525 20526 20527 20528 20529 20530 20531 20532 20533 20534 20535 20536 20537 20538 20539 20540 20541 20542 20543 20544 20545 20546 20547 20548 20549 20550 20551 20552 20553 20554 20555 20556 20557 20558 20559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 20560$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 20561hardcode_action_CXX= 20562if test -n "$hardcode_libdir_flag_spec_CXX" || 20563 test -n "$runpath_var_CXX" || 20564 test "X$hardcode_automatic_CXX" = "Xyes" ; then 20565 20566 # We can hardcode non-existent directories. 20567 if test "$hardcode_direct_CXX" != no && 20568 # If the only mechanism to avoid hardcoding is shlibpath_var, we 20569 # have to relink, otherwise we might link with an installed library 20570 # when we should be linking with a yet-to-be-installed one 20571 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 20572 test "$hardcode_minus_L_CXX" != no; then 20573 # Linking always hardcodes the temporary library directory. 20574 hardcode_action_CXX=relink 20575 else 20576 # We can link without hardcoding, and we can hardcode nonexisting dirs. 20577 hardcode_action_CXX=immediate 20578 fi 20579else 20580 # We cannot hardcode anything, or else we can only hardcode existing 20581 # directories. 20582 hardcode_action_CXX=unsupported 20583fi 20584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 20585$as_echo "$hardcode_action_CXX" >&6; } 20586 20587if test "$hardcode_action_CXX" = relink || 20588 test "$inherit_rpath_CXX" = yes; then 20589 # Fast installation is not supported 20590 enable_fast_install=no 20591elif test "$shlibpath_overrides_runpath" = yes || 20592 test "$enable_shared" = no; then 20593 # Fast installation is not necessary 20594 enable_fast_install=needless 20595fi 20596 20597 20598 20599 20600 20601 20602 20603 fi # test -n "$compiler" 20604 20605 CC=$lt_save_CC 20606 CFLAGS=$lt_save_CFLAGS 20607 LDCXX=$LD 20608 LD=$lt_save_LD 20609 GCC=$lt_save_GCC 20610 with_gnu_ld=$lt_save_with_gnu_ld 20611 lt_cv_path_LDCXX=$lt_cv_path_LD 20612 lt_cv_path_LD=$lt_save_path_LD 20613 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 20614 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 20615fi # test "$_lt_caught_CXX_error" != yes 20616 20617ac_ext=c 20618ac_cpp='$CPP $CPPFLAGS' 20619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20621ac_compiler_gnu=$ac_cv_c_compiler_gnu 20622 20623 20624 20625 20626 20627 20628 20629 20630 20631 20632 20633 20634 20635 20636 20637 ac_config_commands="$ac_config_commands libtool" 20638 20639 20640 20641 20642# Only expand once: 20643 20644 20645 20646 20647 20648# Check to see if building shared libraries 20649libtool_build_shared_libs='no' 20650if test "$enable_shared" = 'yes'; then 20651 libtool_build_shared_libs='yes' 20652fi 20653 20654# Check to see if building static libraries 20655libtool_build_static_libs='no' 20656if test "$enable_static" = 'yes'; then 20657 libtool_build_static_libs='yes' 20658fi 20659 20660 if test "${libtool_build_shared_libs}" = 'yes'; then 20661 WITH_SHARED_LIBS_TRUE= 20662 WITH_SHARED_LIBS_FALSE='#' 20663else 20664 WITH_SHARED_LIBS_TRUE='#' 20665 WITH_SHARED_LIBS_FALSE= 20666fi 20667 20668# 20669# Enable support for building loadable modules 20670# 20671build_modules='no' 20672 20673# Check whether --with-modules was given. 20674if test "${with_modules+set}" = set; then : 20675 withval=$with_modules; with_modules=$withval 20676else 20677 with_modules='no' 20678fi 20679 20680 20681# Only allow building loadable modules if we are building shared libraries 20682if test "$with_modules" != 'no' ; then 20683 if test "$libtool_build_shared_libs" = 'no'; then 20684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5 20685$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;} 20686 build_modules='no' 20687 else 20688 build_modules='yes' 20689 fi 20690fi 20691if test "$build_modules" != 'no' ; then 20692 20693$as_echo "#define BUILD_MODULES 1" >>confdefs.h 20694 20695 MAGICK_FEATURES="$MAGICK_FEATURES Modules" 20696fi 20697 if test "$build_modules" != 'no'; then 20698 WITH_MODULES_TRUE= 20699 WITH_MODULES_FALSE='#' 20700else 20701 WITH_MODULES_TRUE='#' 20702 WITH_MODULES_FALSE= 20703fi 20704 20705 20706# Enable build using delegate libraries built in subdirectories rather than installed 20707# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib) 20708# Check whether --enable-delegate-build was given. 20709if test "${enable_delegate_build+set}" = set; then : 20710 enableval=$enable_delegate_build; enable_delegate_build=$enableval 20711else 20712 enable_delegate_build='no' 20713fi 20714 20715 20716# Check whether --enable-deprecated was given. 20717if test "${enable_deprecated+set}" = set; then : 20718 enableval=$enable_deprecated; enable_deprecated=$enableval 20719else 20720 enable_deprecated='no' 20721fi 20722 20723 20724if test "$enable_deprecated" = 'yes'; then 20725 20726$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h 20727 20728else 20729 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated " 20730fi 20731 20732# Build a version of ImageMagick which operates uninstalled. 20733# Used to build distributions located via MAGICK_HOME / executable path 20734# Check whether --enable-installed was given. 20735if test "${enable_installed+set}" = set; then : 20736 enableval=$enable_installed; enable_installed=$enableval 20737else 20738 enable_installed='yes' 20739fi 20740 20741 20742if test "$enable_installed" = 'yes'; then 20743 20744$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h 20745 20746else 20747 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed " 20748fi 20749 20750# Permit enciphering and deciphering image pixels. 20751# Check whether --enable-cipher was given. 20752if test "${enable_cipher+set}" = set; then : 20753 enableval=$enable_cipher; enable_cipher=$enableval 20754else 20755 enable_cipher='yes' 20756fi 20757 20758 20759if test "$enable_cipher" = 'yes'; then 20760 20761$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h 20762 20763fi 20764 20765# Build a zero-configuration version of ImageMagick. 20766# Check whether --enable-zero-configuration was given. 20767if test "${enable_zero_configuration+set}" = set; then : 20768 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval 20769else 20770 enable_zero_configuration='no' 20771fi 20772 20773 20774if test "$enable_zero_configuration" = 'yes'; then 20775 20776$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h 20777 20778 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES" 20779fi 20780 20781# Build a high dynamic range version of ImageMagick. 20782# Check whether --enable-hdri was given. 20783if test "${enable_hdri+set}" = set; then : 20784 enableval=$enable_hdri; enable_hdri=$enableval 20785else 20786 enable_hdri='yes' 20787fi 20788 20789 20790MAGICK_HDRI="" 20791if test "$enable_hdri" = 'yes'; then 20792 MAGICK_HDRI="HDRI" 20793 20794$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h 20795 20796 MAGICK_FEATURES="HDRI $MAGICK_FEATURES" 20797fi 20798 20799# Build a version of ImageMagick with assert statements. 20800# Check whether --enable-assert was given. 20801if test "${enable_assert+set}" = set; then : 20802 enableval=$enable_assert; enable_assert=$enableval 20803else 20804 enable_assert='yes' 20805fi 20806 20807 20808if test "$enable_assert" = 'no'; then 20809 20810$as_echo "#define NDEBUG 1" >>confdefs.h 20811 20812fi 20813 20814# Don't emit "rebuild rules" for configure, Makefile.ins, etc. 20815 20816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 20817$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 20818 # Check whether --enable-maintainer-mode was given. 20819if test "${enable_maintainer_mode+set}" = set; then : 20820 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 20821else 20822 USE_MAINTAINER_MODE=no 20823fi 20824 20825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 20826$as_echo "$USE_MAINTAINER_MODE" >&6; } 20827 if test $USE_MAINTAINER_MODE = yes; then 20828 MAINTAINER_MODE_TRUE= 20829 MAINTAINER_MODE_FALSE='#' 20830else 20831 MAINTAINER_MODE_TRUE='#' 20832 MAINTAINER_MODE_FALSE= 20833fi 20834 20835 MAINT=$MAINTAINER_MODE_TRUE 20836 20837 20838 20839# Enable ccmalloc memory debugging support 20840# Check whether --enable-ccmalloc was given. 20841if test "${enable_ccmalloc+set}" = set; then : 20842 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval 20843else 20844 enable_ccmalloc='no' 20845fi 20846 20847 20848# Enable Electric Fence memory debugging support 20849# Check whether --enable-efence was given. 20850if test "${enable_efence+set}" = set; then : 20851 enableval=$enable_efence; enable_efence=$enableval 20852else 20853 enable_efence='no' 20854fi 20855 20856 20857# Enable prof-based profiling support 20858# Check whether --enable-prof was given. 20859if test "${enable_prof+set}" = set; then : 20860 enableval=$enable_prof; enable_prof=$enableval 20861else 20862 enable_prof='no' 20863fi 20864 20865 20866# Enable gprof-based profiling support 20867# Check whether --enable-gprof was given. 20868if test "${enable_gprof+set}" = set; then : 20869 enableval=$enable_gprof; enable_gprof=$enableval 20870else 20871 enable_gprof='no' 20872fi 20873 20874 20875# Enable gcov-based profiling support 20876# Check whether --enable-gcov was given. 20877if test "${enable_gcov+set}" = set; then : 20878 enableval=$enable_gcov; enable_gcov=$enableval 20879else 20880 enable_gcov='no' 20881fi 20882 20883 20884enable_profiling='no' 20885if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then 20886 enable_profiling='yes' 20887 if test "$libtool_build_shared_libs" = 'yes'; then 20888 echo "Warning: Can not profile code using shared libraries" 20889 fi 20890fi 20891 20892# Magick API method prefix 20893 20894# Check whether --with-method-prefix was given. 20895if test "${with_method_prefix+set}" = set; then : 20896 withval=$with_method_prefix; with_method_prefix=$withval 20897else 20898 with_method_prefix='no' 20899fi 20900 20901 20902if test "$with_method_prefix" != 'no'; then 20903 20904cat >>confdefs.h <<_ACEOF 20905#define NAMESPACE_PREFIX $with_method_prefix 20906_ACEOF 20907 20908 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix " 20909fi 20910 20911# Enable legacy support (default no) 20912# Check whether --enable-legacy-support was given. 20913if test "${enable_legacy_support+set}" = set; then : 20914 enableval=$enable_legacy_support; with_legacy_support=$enableval 20915else 20916 with_legacy_support='no' 20917fi 20918 20919 if test "$with_legacy_support" != 'no'; then 20920 LEGACY_SUPPORT_TRUE= 20921 LEGACY_SUPPORT_FALSE='#' 20922else 20923 LEGACY_SUPPORT_TRUE='#' 20924 LEGACY_SUPPORT_FALSE= 20925fi 20926 20927 20928# Number of bits in a Quantum 20929 20930# Check whether --with-quantum-depth was given. 20931if test "${with_quantum_depth+set}" = set; then : 20932 withval=$with_quantum_depth; with_quantum_depth=$withval 20933else 20934 with_quantum_depth=16 20935fi 20936 20937 20938if test "$with_quantum_depth" != '8'; then 20939 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth " 20940fi 20941 20942case "${with_quantum_depth}" in 20943 8 ) ;; 20944 16 ) ;; 20945 32 ) ;; 20946 64 ) ;; 20947 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;; 20948esac 20949QUANTUM_DEPTH="$with_quantum_depth" 20950 20951cat >>confdefs.h <<_ACEOF 20952#define QUANTUM_DEPTH $QUANTUM_DEPTH 20953_ACEOF 20954 20955 20956# define a lib suffix for abi purpose 20957MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}" 20958if test "$enable_hdri" = 'yes'; then 20959 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}" 20960fi 20961 20962 20963# Set pixel cache threshold 20964 20965# Check whether --with-cache was given. 20966if test "${with_cache+set}" = set; then : 20967 withval=$with_cache; with_cache=$withval 20968else 20969 with_cache='' 20970fi 20971 20972 20973if test "$with_cache" != ''; then 20974 20975cat >>confdefs.h <<_ACEOF 20976#define PixelCacheThreshold $with_cache 20977_ACEOF 20978 20979 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache " 20980fi 20981 20982# Disable/Enable support for full delegate paths 20983 20984# Check whether --with-frozenpaths was given. 20985if test "${with_frozenpaths+set}" = set; then : 20986 withval=$with_frozenpaths; with_frozenpaths=$withval 20987else 20988 with_frozenpaths='no' 20989fi 20990 20991 20992# Enable build/install of Magick++ 20993 20994# Check whether --with-magick-plus-plus was given. 20995if test "${with_magick_plus_plus+set}" = set; then : 20996 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval 20997else 20998 with_magick_plus_plus='yes' 20999fi 21000 21001 21002# Encode the this name into the shared library. 21003 21004# Check whether --with-package-release-name was given. 21005if test "${with_package_release_name+set}" = set; then : 21006 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval" 21007fi 21008 21009 21010 21011# Disable build/install of PerlMagick. 21012 21013# Check whether --with-perl was given. 21014if test "${with_perl+set}" = set; then : 21015 withval=$with_perl; with_perl=$withval 21016else 21017 with_perl='no' 21018fi 21019 21020 21021# Options to pass when configuring PerlMagick 21022 21023# Check whether --with-perl-options was given. 21024if test "${with_perl_options+set}" = set; then : 21025 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval 21026fi 21027 21028 21029 21030# Enable umem, object-caching memory allocation library. 21031 21032# Check whether --with-umem was given. 21033if test "${with_umem+set}" = set; then : 21034 withval=$with_umem; with_umem=$withval 21035else 21036 with_umem='no' 21037fi 21038 21039if test "$with_umem" != 'yes' ; then 21040 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem " 21041fi 21042 21043# 21044# Specify path to shared libstdc++ if not in normal location 21045# 21046 21047# Check whether --with-libstdc was given. 21048if test "${with_libstdc+set}" = set; then : 21049 withval=$with_libstdc; with_libstdc=$withval 21050else 21051 with_libstdc='' 21052fi 21053 21054 21055if test "$with_libstdc" != ''; then 21056 if test -d "$with_libstdc"; then 21057 LIBSTDCLDFLAGS="-L$with_libstdc" 21058 fi 21059fi 21060 21061 21062# Does gcc required -traditional? 21063if test $ac_cv_c_compiler_gnu = yes; then 21064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 21065$as_echo_n "checking whether $CC needs -traditional... " >&6; } 21066if ${ac_cv_prog_gcc_traditional+:} false; then : 21067 $as_echo_n "(cached) " >&6 21068else 21069 ac_pattern="Autoconf.*'x'" 21070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21071/* end confdefs.h. */ 21072#include <sgtty.h> 21073Autoconf TIOCGETP 21074_ACEOF 21075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21076 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 21077 ac_cv_prog_gcc_traditional=yes 21078else 21079 ac_cv_prog_gcc_traditional=no 21080fi 21081rm -f conftest* 21082 21083 21084 if test $ac_cv_prog_gcc_traditional = no; then 21085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21086/* end confdefs.h. */ 21087#include <termio.h> 21088Autoconf TCGETA 21089_ACEOF 21090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21091 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 21092 ac_cv_prog_gcc_traditional=yes 21093fi 21094rm -f conftest* 21095 21096 fi 21097fi 21098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 21099$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 21100 if test $ac_cv_prog_gcc_traditional = yes; then 21101 CC="$CC -traditional" 21102 fi 21103fi 21104 21105 21106######## 21107# 21108# Set defines required to build DLLs and modules using MinGW 21109# 21110######## 21111# These options are set for multi-thread DLL module build 21112# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_ 21113# module: _DLL 21114# executable/Magick++: _DLL _MAGICKMOD_ 21115MODULE_EXTRA_CPPFLAGS='' 21116LIBRARY_EXTRA_CPPFLAGS='' 21117if test "${native_win32_build}" = 'yes'; then 21118 if test "${libtool_build_shared_libs}" = 'yes'; then 21119 CPPFLAGS="$CPPFLAGS -D_DLL" 21120 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL" 21121 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL" 21122 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_" 21123 if test "$build_modules" = 'yes'; then 21124 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_" 21125 else 21126 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_" 21127 fi 21128 else 21129 CPPFLAGS="$CPPFLAGS -D_LIB" 21130 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB" 21131 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB" 21132 fi 21133 if test "$with_threads" = 'yes'; then 21134 CPPFLAGS="$CPPFLAGS -D_MT" 21135 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT" 21136 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT" 21137 fi 21138fi 21139 21140 21141 21142# Check standard headers 21143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 21144$as_echo_n "checking for ANSI C header files... " >&6; } 21145if ${ac_cv_header_stdc+:} false; then : 21146 $as_echo_n "(cached) " >&6 21147else 21148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21149/* end confdefs.h. */ 21150#include <stdlib.h> 21151#include <stdarg.h> 21152#include <string.h> 21153#include <float.h> 21154 21155int 21156main () 21157{ 21158 21159 ; 21160 return 0; 21161} 21162_ACEOF 21163if ac_fn_c_try_compile "$LINENO"; then : 21164 ac_cv_header_stdc=yes 21165else 21166 ac_cv_header_stdc=no 21167fi 21168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21169 21170if test $ac_cv_header_stdc = yes; then 21171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 21172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21173/* end confdefs.h. */ 21174#include <string.h> 21175 21176_ACEOF 21177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21178 $EGREP "memchr" >/dev/null 2>&1; then : 21179 21180else 21181 ac_cv_header_stdc=no 21182fi 21183rm -f conftest* 21184 21185fi 21186 21187if test $ac_cv_header_stdc = yes; then 21188 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 21189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21190/* end confdefs.h. */ 21191#include <stdlib.h> 21192 21193_ACEOF 21194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21195 $EGREP "free" >/dev/null 2>&1; then : 21196 21197else 21198 ac_cv_header_stdc=no 21199fi 21200rm -f conftest* 21201 21202fi 21203 21204if test $ac_cv_header_stdc = yes; then 21205 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 21206 if test "$cross_compiling" = yes; then : 21207 : 21208else 21209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21210/* end confdefs.h. */ 21211#include <ctype.h> 21212#include <stdlib.h> 21213#if ((' ' & 0x0FF) == 0x020) 21214# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 21215# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 21216#else 21217# define ISLOWER(c) \ 21218 (('a' <= (c) && (c) <= 'i') \ 21219 || ('j' <= (c) && (c) <= 'r') \ 21220 || ('s' <= (c) && (c) <= 'z')) 21221# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 21222#endif 21223 21224#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 21225int 21226main () 21227{ 21228 int i; 21229 for (i = 0; i < 256; i++) 21230 if (XOR (islower (i), ISLOWER (i)) 21231 || toupper (i) != TOUPPER (i)) 21232 return 2; 21233 return 0; 21234} 21235_ACEOF 21236if ac_fn_c_try_run "$LINENO"; then : 21237 21238else 21239 ac_cv_header_stdc=no 21240fi 21241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21242 conftest.$ac_objext conftest.beam conftest.$ac_ext 21243fi 21244 21245fi 21246fi 21247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 21248$as_echo "$ac_cv_header_stdc" >&6; } 21249if test $ac_cv_header_stdc = yes; then 21250 21251$as_echo "#define STDC_HEADERS 1" >>confdefs.h 21252 21253fi 21254 21255if ! test x"$ac_cv_header_stdc" = x"yes"; then 21256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C 21257 header files. Compilation cannot proceed. Please install the ANSI C 21258 headers and rerun this script." >&5 21259$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C 21260 header files. Compilation cannot proceed. Please install the ANSI C 21261 headers and rerun this script." >&2;}; 21262fi 21263 21264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5 21265$as_echo_n "checking whether to enable assertions... " >&6; } 21266 # Check whether --enable-assert was given. 21267if test "${enable_assert+set}" = set; then : 21268 enableval=$enable_assert; ac_enable_assert=$enableval 21269 if test "x$enableval" = xno; then : 21270 21271$as_echo "#define NDEBUG 1" >>confdefs.h 21272 21273elif test "x$enableval" != xyes; then : 21274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5 21275$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;} 21276 ac_enable_assert=yes 21277fi 21278else 21279 ac_enable_assert=yes 21280fi 21281 21282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5 21283$as_echo "$ac_enable_assert" >&6; } 21284 21285ac_header_dirent=no 21286for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 21287 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 21288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 21289$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 21290if eval \${$as_ac_Header+:} false; then : 21291 $as_echo_n "(cached) " >&6 21292else 21293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21294/* end confdefs.h. */ 21295#include <sys/types.h> 21296#include <$ac_hdr> 21297 21298int 21299main () 21300{ 21301if ((DIR *) 0) 21302return 0; 21303 ; 21304 return 0; 21305} 21306_ACEOF 21307if ac_fn_c_try_compile "$LINENO"; then : 21308 eval "$as_ac_Header=yes" 21309else 21310 eval "$as_ac_Header=no" 21311fi 21312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21313fi 21314eval ac_res=\$$as_ac_Header 21315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21316$as_echo "$ac_res" >&6; } 21317if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21318 cat >>confdefs.h <<_ACEOF 21319#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 21320_ACEOF 21321 21322ac_header_dirent=$ac_hdr; break 21323fi 21324 21325done 21326# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 21327if test $ac_header_dirent = dirent.h; then 21328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 21329$as_echo_n "checking for library containing opendir... " >&6; } 21330if ${ac_cv_search_opendir+:} false; then : 21331 $as_echo_n "(cached) " >&6 21332else 21333 ac_func_search_save_LIBS=$LIBS 21334cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21335/* end confdefs.h. */ 21336 21337/* Override any GCC internal prototype to avoid an error. 21338 Use char because int might match the return type of a GCC 21339 builtin and then its argument prototype would still apply. */ 21340#ifdef __cplusplus 21341extern "C" 21342#endif 21343char opendir (); 21344int 21345main () 21346{ 21347return opendir (); 21348 ; 21349 return 0; 21350} 21351_ACEOF 21352for ac_lib in '' dir; do 21353 if test -z "$ac_lib"; then 21354 ac_res="none required" 21355 else 21356 ac_res=-l$ac_lib 21357 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21358 fi 21359 if ac_fn_c_try_link "$LINENO"; then : 21360 ac_cv_search_opendir=$ac_res 21361fi 21362rm -f core conftest.err conftest.$ac_objext \ 21363 conftest$ac_exeext 21364 if ${ac_cv_search_opendir+:} false; then : 21365 break 21366fi 21367done 21368if ${ac_cv_search_opendir+:} false; then : 21369 21370else 21371 ac_cv_search_opendir=no 21372fi 21373rm conftest.$ac_ext 21374LIBS=$ac_func_search_save_LIBS 21375fi 21376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 21377$as_echo "$ac_cv_search_opendir" >&6; } 21378ac_res=$ac_cv_search_opendir 21379if test "$ac_res" != no; then : 21380 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21381 21382fi 21383 21384else 21385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 21386$as_echo_n "checking for library containing opendir... " >&6; } 21387if ${ac_cv_search_opendir+:} false; then : 21388 $as_echo_n "(cached) " >&6 21389else 21390 ac_func_search_save_LIBS=$LIBS 21391cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21392/* end confdefs.h. */ 21393 21394/* Override any GCC internal prototype to avoid an error. 21395 Use char because int might match the return type of a GCC 21396 builtin and then its argument prototype would still apply. */ 21397#ifdef __cplusplus 21398extern "C" 21399#endif 21400char opendir (); 21401int 21402main () 21403{ 21404return opendir (); 21405 ; 21406 return 0; 21407} 21408_ACEOF 21409for ac_lib in '' x; do 21410 if test -z "$ac_lib"; then 21411 ac_res="none required" 21412 else 21413 ac_res=-l$ac_lib 21414 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21415 fi 21416 if ac_fn_c_try_link "$LINENO"; then : 21417 ac_cv_search_opendir=$ac_res 21418fi 21419rm -f core conftest.err conftest.$ac_objext \ 21420 conftest$ac_exeext 21421 if ${ac_cv_search_opendir+:} false; then : 21422 break 21423fi 21424done 21425if ${ac_cv_search_opendir+:} false; then : 21426 21427else 21428 ac_cv_search_opendir=no 21429fi 21430rm conftest.$ac_ext 21431LIBS=$ac_func_search_save_LIBS 21432fi 21433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 21434$as_echo "$ac_cv_search_opendir" >&6; } 21435ac_res=$ac_cv_search_opendir 21436if test "$ac_res" != no; then : 21437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21438 21439fi 21440 21441fi 21442 21443 21444# Check additional headers 21445for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h 21446do : 21447 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21448ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21449if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21450 cat >>confdefs.h <<_ACEOF 21451#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21452_ACEOF 21453 21454fi 21455 21456done 21457 21458 21459######## 21460# 21461# Checks for typedefs, structures, and compiler characteristics. 21462# 21463######## 21464 21465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 21466$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 21467if ${ac_cv_header_stdbool_h+:} false; then : 21468 $as_echo_n "(cached) " >&6 21469else 21470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21471/* end confdefs.h. */ 21472 21473 #include <stdbool.h> 21474 #ifndef bool 21475 "error: bool is not defined" 21476 #endif 21477 #ifndef false 21478 "error: false is not defined" 21479 #endif 21480 #if false 21481 "error: false is not 0" 21482 #endif 21483 #ifndef true 21484 "error: true is not defined" 21485 #endif 21486 #if true != 1 21487 "error: true is not 1" 21488 #endif 21489 #ifndef __bool_true_false_are_defined 21490 "error: __bool_true_false_are_defined is not defined" 21491 #endif 21492 21493 struct s { _Bool s: 1; _Bool t; } s; 21494 21495 char a[true == 1 ? 1 : -1]; 21496 char b[false == 0 ? 1 : -1]; 21497 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 21498 char d[(bool) 0.5 == true ? 1 : -1]; 21499 /* See body of main program for 'e'. */ 21500 char f[(_Bool) 0.0 == false ? 1 : -1]; 21501 char g[true]; 21502 char h[sizeof (_Bool)]; 21503 char i[sizeof s.t]; 21504 enum { j = false, k = true, l = false * true, m = true * 256 }; 21505 /* The following fails for 21506 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 21507 _Bool n[m]; 21508 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 21509 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 21510 /* Catch a bug in an HP-UX C compiler. See 21511 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 21512 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 21513 */ 21514 _Bool q = true; 21515 _Bool *pq = &q; 21516 21517int 21518main () 21519{ 21520 21521 bool e = &s; 21522 *pq |= q; 21523 *pq |= ! q; 21524 /* Refer to every declared value, to avoid compiler optimizations. */ 21525 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 21526 + !m + !n + !o + !p + !q + !pq); 21527 21528 ; 21529 return 0; 21530} 21531_ACEOF 21532if ac_fn_c_try_compile "$LINENO"; then : 21533 ac_cv_header_stdbool_h=yes 21534else 21535 ac_cv_header_stdbool_h=no 21536fi 21537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21538fi 21539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 21540$as_echo "$ac_cv_header_stdbool_h" >&6; } 21541 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 21542if test "x$ac_cv_type__Bool" = xyes; then : 21543 21544cat >>confdefs.h <<_ACEOF 21545#define HAVE__BOOL 1 21546_ACEOF 21547 21548 21549fi 21550 21551 21552if test $ac_cv_header_stdbool_h = yes; then 21553 21554$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 21555 21556fi 21557 21558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 21559$as_echo_n "checking for working volatile... " >&6; } 21560if ${ac_cv_c_volatile+:} false; then : 21561 $as_echo_n "(cached) " >&6 21562else 21563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21564/* end confdefs.h. */ 21565 21566int 21567main () 21568{ 21569 21570volatile int x; 21571int * volatile y = (int *) 0; 21572return !x && !y; 21573 ; 21574 return 0; 21575} 21576_ACEOF 21577if ac_fn_c_try_compile "$LINENO"; then : 21578 ac_cv_c_volatile=yes 21579else 21580 ac_cv_c_volatile=no 21581fi 21582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21583fi 21584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 21585$as_echo "$ac_cv_c_volatile" >&6; } 21586if test $ac_cv_c_volatile = no; then 21587 21588$as_echo "#define volatile /**/" >>confdefs.h 21589 21590fi 21591 21592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5 21593$as_echo_n "checking for preprocessor stringizing operator... " >&6; } 21594if ${ac_cv_c_stringize+:} false; then : 21595 $as_echo_n "(cached) " >&6 21596else 21597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21598/* end confdefs.h. */ 21599#define x(y) #y 21600 21601char *s = x(teststring); 21602_ACEOF 21603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21604 $EGREP "#teststring" >/dev/null 2>&1; then : 21605 ac_cv_c_stringize=no 21606else 21607 ac_cv_c_stringize=yes 21608fi 21609rm -f conftest* 21610 21611fi 21612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5 21613$as_echo "$ac_cv_c_stringize" >&6; } 21614if test $ac_cv_c_stringize = yes; then 21615 21616$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h 21617 21618fi 21619 21620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 21621$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 21622if ${ac_cv_header_stat_broken+:} false; then : 21623 $as_echo_n "(cached) " >&6 21624else 21625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21626/* end confdefs.h. */ 21627#include <sys/types.h> 21628#include <sys/stat.h> 21629 21630#if defined S_ISBLK && defined S_IFDIR 21631extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 21632#endif 21633 21634#if defined S_ISBLK && defined S_IFCHR 21635extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 21636#endif 21637 21638#if defined S_ISLNK && defined S_IFREG 21639extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 21640#endif 21641 21642#if defined S_ISSOCK && defined S_IFREG 21643extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 21644#endif 21645 21646_ACEOF 21647if ac_fn_c_try_compile "$LINENO"; then : 21648 ac_cv_header_stat_broken=no 21649else 21650 ac_cv_header_stat_broken=yes 21651fi 21652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21653fi 21654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 21655$as_echo "$ac_cv_header_stat_broken" >&6; } 21656if test $ac_cv_header_stat_broken = yes; then 21657 21658$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h 21659 21660fi 21661 21662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 21663$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 21664if ${ac_cv_header_time+:} false; then : 21665 $as_echo_n "(cached) " >&6 21666else 21667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21668/* end confdefs.h. */ 21669#include <sys/types.h> 21670#include <sys/time.h> 21671#include <time.h> 21672 21673int 21674main () 21675{ 21676if ((struct tm *) 0) 21677return 0; 21678 ; 21679 return 0; 21680} 21681_ACEOF 21682if ac_fn_c_try_compile "$LINENO"; then : 21683 ac_cv_header_time=yes 21684else 21685 ac_cv_header_time=no 21686fi 21687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21688fi 21689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 21690$as_echo "$ac_cv_header_time" >&6; } 21691if test $ac_cv_header_time = yes; then 21692 21693$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 21694 21695fi 21696 21697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 21698$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 21699if ${ac_cv_struct_tm+:} false; then : 21700 $as_echo_n "(cached) " >&6 21701else 21702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21703/* end confdefs.h. */ 21704#include <sys/types.h> 21705#include <time.h> 21706 21707int 21708main () 21709{ 21710struct tm tm; 21711 int *p = &tm.tm_sec; 21712 return !p; 21713 ; 21714 return 0; 21715} 21716_ACEOF 21717if ac_fn_c_try_compile "$LINENO"; then : 21718 ac_cv_struct_tm=time.h 21719else 21720 ac_cv_struct_tm=sys/time.h 21721fi 21722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21723fi 21724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 21725$as_echo "$ac_cv_struct_tm" >&6; } 21726if test $ac_cv_struct_tm = sys/time.h; then 21727 21728$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 21729 21730fi 21731 21732ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 21733#include <$ac_cv_struct_tm> 21734 21735" 21736if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : 21737 21738cat >>confdefs.h <<_ACEOF 21739#define HAVE_STRUCT_TM_TM_ZONE 1 21740_ACEOF 21741 21742 21743fi 21744 21745if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 21746 21747$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 21748 21749else 21750 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 21751" 21752if test "x$ac_cv_have_decl_tzname" = xyes; then : 21753 ac_have_decl=1 21754else 21755 ac_have_decl=0 21756fi 21757 21758cat >>confdefs.h <<_ACEOF 21759#define HAVE_DECL_TZNAME $ac_have_decl 21760_ACEOF 21761 21762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 21763$as_echo_n "checking for tzname... " >&6; } 21764if ${ac_cv_var_tzname+:} false; then : 21765 $as_echo_n "(cached) " >&6 21766else 21767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21768/* end confdefs.h. */ 21769#include <time.h> 21770#if !HAVE_DECL_TZNAME 21771extern char *tzname[]; 21772#endif 21773 21774int 21775main () 21776{ 21777return tzname[0][0]; 21778 ; 21779 return 0; 21780} 21781_ACEOF 21782if ac_fn_c_try_link "$LINENO"; then : 21783 ac_cv_var_tzname=yes 21784else 21785 ac_cv_var_tzname=no 21786fi 21787rm -f core conftest.err conftest.$ac_objext \ 21788 conftest$ac_exeext conftest.$ac_ext 21789fi 21790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 21791$as_echo "$ac_cv_var_tzname" >&6; } 21792 if test $ac_cv_var_tzname = yes; then 21793 21794$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 21795 21796 fi 21797fi 21798 21799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5 21800$as_echo_n "checking whether #! works in shell scripts... " >&6; } 21801if ${ac_cv_sys_interpreter+:} false; then : 21802 $as_echo_n "(cached) " >&6 21803else 21804 echo '#! /bin/cat 21805exit 69 21806' >conftest 21807chmod u+x conftest 21808(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) 21809if test $? -ne 69; then 21810 ac_cv_sys_interpreter=yes 21811else 21812 ac_cv_sys_interpreter=no 21813fi 21814rm -f conftest 21815fi 21816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5 21817$as_echo "$ac_cv_sys_interpreter" >&6; } 21818interpval=$ac_cv_sys_interpreter 21819 21820 21821# If the C compiler supports the keyword inline, do nothing. Otherwise 21822# define inline to __inline__ or __inline if it accepts one of those, 21823# otherwise define inline to be empty. 21824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 21825$as_echo_n "checking for inline... " >&6; } 21826if ${ac_cv_c_inline+:} false; then : 21827 $as_echo_n "(cached) " >&6 21828else 21829 ac_cv_c_inline=no 21830for ac_kw in inline __inline__ __inline; do 21831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21832/* end confdefs.h. */ 21833#ifndef __cplusplus 21834typedef int foo_t; 21835static $ac_kw foo_t static_foo () {return 0; } 21836$ac_kw foo_t foo () {return 0; } 21837#endif 21838 21839_ACEOF 21840if ac_fn_c_try_compile "$LINENO"; then : 21841 ac_cv_c_inline=$ac_kw 21842fi 21843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21844 test "$ac_cv_c_inline" != no && break 21845done 21846 21847fi 21848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 21849$as_echo "$ac_cv_c_inline" >&6; } 21850 21851case $ac_cv_c_inline in 21852 inline | yes) ;; 21853 *) 21854 case $ac_cv_c_inline in 21855 no) ac_val=;; 21856 *) ac_val=$ac_cv_c_inline;; 21857 esac 21858 cat >>confdefs.h <<_ACEOF 21859#ifndef __cplusplus 21860#define inline $ac_val 21861#endif 21862_ACEOF 21863 ;; 21864esac 21865 21866 21867# If the C compiler supports the keyword restrict, do nothing. Otherwise 21868# define restrict to __restrict__ or __restrict if it accepts one of those, 21869# otherwise define restrict to be empty. 21870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 21871$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 21872if ${ac_cv_c_restrict+:} false; then : 21873 $as_echo_n "(cached) " >&6 21874else 21875 ac_cv_c_restrict=no 21876 # The order here caters to the fact that C++ does not require restrict. 21877 for ac_kw in __restrict __restrict__ _Restrict restrict; do 21878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21879/* end confdefs.h. */ 21880typedef int * int_ptr; 21881 int foo (int_ptr $ac_kw ip) { 21882 return ip[0]; 21883 } 21884int 21885main () 21886{ 21887int s[1]; 21888 int * $ac_kw t = s; 21889 t[0] = 0; 21890 return foo(t) 21891 ; 21892 return 0; 21893} 21894_ACEOF 21895if ac_fn_c_try_compile "$LINENO"; then : 21896 ac_cv_c_restrict=$ac_kw 21897fi 21898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21899 test "$ac_cv_c_restrict" != no && break 21900 done 21901 21902fi 21903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 21904$as_echo "$ac_cv_c_restrict" >&6; } 21905 21906 case $ac_cv_c_restrict in 21907 restrict) ;; 21908 no) $as_echo "#define restrict /**/" >>confdefs.h 21909 ;; 21910 *) cat >>confdefs.h <<_ACEOF 21911#define restrict $ac_cv_c_restrict 21912_ACEOF 21913 ;; 21914 esac 21915 21916 21917# If words are stored with the most significant byte first (like 21918# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'. 21919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 21920$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 21921if ${ac_cv_c_bigendian+:} false; then : 21922 $as_echo_n "(cached) " >&6 21923else 21924 ac_cv_c_bigendian=unknown 21925 # See if we're dealing with a universal compiler. 21926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21927/* end confdefs.h. */ 21928#ifndef __APPLE_CC__ 21929 not a universal capable compiler 21930 #endif 21931 typedef int dummy; 21932 21933_ACEOF 21934if ac_fn_c_try_compile "$LINENO"; then : 21935 21936 # Check for potential -arch flags. It is not universal unless 21937 # there are at least two -arch flags with different values. 21938 ac_arch= 21939 ac_prev= 21940 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 21941 if test -n "$ac_prev"; then 21942 case $ac_word in 21943 i?86 | x86_64 | ppc | ppc64) 21944 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 21945 ac_arch=$ac_word 21946 else 21947 ac_cv_c_bigendian=universal 21948 break 21949 fi 21950 ;; 21951 esac 21952 ac_prev= 21953 elif test "x$ac_word" = "x-arch"; then 21954 ac_prev=arch 21955 fi 21956 done 21957fi 21958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21959 if test $ac_cv_c_bigendian = unknown; then 21960 # See if sys/param.h defines the BYTE_ORDER macro. 21961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21962/* end confdefs.h. */ 21963#include <sys/types.h> 21964 #include <sys/param.h> 21965 21966int 21967main () 21968{ 21969#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 21970 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 21971 && LITTLE_ENDIAN) 21972 bogus endian macros 21973 #endif 21974 21975 ; 21976 return 0; 21977} 21978_ACEOF 21979if ac_fn_c_try_compile "$LINENO"; then : 21980 # It does; now see whether it defined to BIG_ENDIAN or not. 21981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21982/* end confdefs.h. */ 21983#include <sys/types.h> 21984 #include <sys/param.h> 21985 21986int 21987main () 21988{ 21989#if BYTE_ORDER != BIG_ENDIAN 21990 not big endian 21991 #endif 21992 21993 ; 21994 return 0; 21995} 21996_ACEOF 21997if ac_fn_c_try_compile "$LINENO"; then : 21998 ac_cv_c_bigendian=yes 21999else 22000 ac_cv_c_bigendian=no 22001fi 22002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22003fi 22004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22005 fi 22006 if test $ac_cv_c_bigendian = unknown; then 22007 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 22008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22009/* end confdefs.h. */ 22010#include <limits.h> 22011 22012int 22013main () 22014{ 22015#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 22016 bogus endian macros 22017 #endif 22018 22019 ; 22020 return 0; 22021} 22022_ACEOF 22023if ac_fn_c_try_compile "$LINENO"; then : 22024 # It does; now see whether it defined to _BIG_ENDIAN or not. 22025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22026/* end confdefs.h. */ 22027#include <limits.h> 22028 22029int 22030main () 22031{ 22032#ifndef _BIG_ENDIAN 22033 not big endian 22034 #endif 22035 22036 ; 22037 return 0; 22038} 22039_ACEOF 22040if ac_fn_c_try_compile "$LINENO"; then : 22041 ac_cv_c_bigendian=yes 22042else 22043 ac_cv_c_bigendian=no 22044fi 22045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22046fi 22047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22048 fi 22049 if test $ac_cv_c_bigendian = unknown; then 22050 # Compile a test program. 22051 if test "$cross_compiling" = yes; then : 22052 # Try to guess by grepping values from an object file. 22053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22054/* end confdefs.h. */ 22055short int ascii_mm[] = 22056 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 22057 short int ascii_ii[] = 22058 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 22059 int use_ascii (int i) { 22060 return ascii_mm[i] + ascii_ii[i]; 22061 } 22062 short int ebcdic_ii[] = 22063 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 22064 short int ebcdic_mm[] = 22065 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 22066 int use_ebcdic (int i) { 22067 return ebcdic_mm[i] + ebcdic_ii[i]; 22068 } 22069 extern int foo; 22070 22071int 22072main () 22073{ 22074return use_ascii (foo) == use_ebcdic (foo); 22075 ; 22076 return 0; 22077} 22078_ACEOF 22079if ac_fn_c_try_compile "$LINENO"; then : 22080 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 22081 ac_cv_c_bigendian=yes 22082 fi 22083 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 22084 if test "$ac_cv_c_bigendian" = unknown; then 22085 ac_cv_c_bigendian=no 22086 else 22087 # finding both strings is unlikely to happen, but who knows? 22088 ac_cv_c_bigendian=unknown 22089 fi 22090 fi 22091fi 22092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22093else 22094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22095/* end confdefs.h. */ 22096$ac_includes_default 22097int 22098main () 22099{ 22100 22101 /* Are we little or big endian? From Harbison&Steele. */ 22102 union 22103 { 22104 long int l; 22105 char c[sizeof (long int)]; 22106 } u; 22107 u.l = 1; 22108 return u.c[sizeof (long int) - 1] == 1; 22109 22110 ; 22111 return 0; 22112} 22113_ACEOF 22114if ac_fn_c_try_run "$LINENO"; then : 22115 ac_cv_c_bigendian=no 22116else 22117 ac_cv_c_bigendian=yes 22118fi 22119rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22120 conftest.$ac_objext conftest.beam conftest.$ac_ext 22121fi 22122 22123 fi 22124fi 22125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 22126$as_echo "$ac_cv_c_bigendian" >&6; } 22127 case $ac_cv_c_bigendian in #( 22128 yes) 22129 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 22130;; #( 22131 no) 22132 ;; #( 22133 universal) 22134 22135$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 22136 22137 ;; #( 22138 *) 22139 as_fn_error $? "unknown endianness 22140 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 22141 esac 22142 22143 22144# Define to a suitable type, if standard headers do not define it. 22145ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" 22146case $ac_cv_c_int8_t in #( 22147 no|yes) ;; #( 22148 *) 22149 22150cat >>confdefs.h <<_ACEOF 22151#define int8_t $ac_cv_c_int8_t 22152_ACEOF 22153;; 22154esac 22155 22156ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 22157case $ac_cv_c_int16_t in #( 22158 no|yes) ;; #( 22159 *) 22160 22161cat >>confdefs.h <<_ACEOF 22162#define int16_t $ac_cv_c_int16_t 22163_ACEOF 22164;; 22165esac 22166 22167ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 22168case $ac_cv_c_int32_t in #( 22169 no|yes) ;; #( 22170 *) 22171 22172cat >>confdefs.h <<_ACEOF 22173#define int32_t $ac_cv_c_int32_t 22174_ACEOF 22175;; 22176esac 22177 22178ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 22179case $ac_cv_c_int64_t in #( 22180 no|yes) ;; #( 22181 *) 22182 22183cat >>confdefs.h <<_ACEOF 22184#define int64_t $ac_cv_c_int64_t 22185_ACEOF 22186;; 22187esac 22188 22189 22190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 22191$as_echo_n "checking for unsigned long long int... " >&6; } 22192if ${ac_cv_type_unsigned_long_long_int+:} false; then : 22193 $as_echo_n "(cached) " >&6 22194else 22195 ac_cv_type_unsigned_long_long_int=yes 22196 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 22197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22198/* end confdefs.h. */ 22199 22200 /* For now, do not test the preprocessor; as of 2007 there are too many 22201 implementations with broken preprocessors. Perhaps this can 22202 be revisited in 2012. In the meantime, code should not expect 22203 #if to work with literals wider than 32 bits. */ 22204 /* Test literals. */ 22205 long long int ll = 9223372036854775807ll; 22206 long long int nll = -9223372036854775807LL; 22207 unsigned long long int ull = 18446744073709551615ULL; 22208 /* Test constant expressions. */ 22209 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 22210 ? 1 : -1)]; 22211 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 22212 ? 1 : -1)]; 22213 int i = 63; 22214int 22215main () 22216{ 22217/* Test availability of runtime routines for shift and division. */ 22218 long long int llmax = 9223372036854775807ll; 22219 unsigned long long int ullmax = 18446744073709551615ull; 22220 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 22221 | (llmax / ll) | (llmax % ll) 22222 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 22223 | (ullmax / ull) | (ullmax % ull)); 22224 ; 22225 return 0; 22226} 22227 22228_ACEOF 22229if ac_fn_c_try_link "$LINENO"; then : 22230 22231else 22232 ac_cv_type_unsigned_long_long_int=no 22233fi 22234rm -f core conftest.err conftest.$ac_objext \ 22235 conftest$ac_exeext conftest.$ac_ext 22236 fi 22237fi 22238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 22239$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 22240 if test $ac_cv_type_unsigned_long_long_int = yes; then 22241 22242$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 22243 22244 fi 22245 22246 22247 22248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 22249$as_echo_n "checking for long long int... " >&6; } 22250if ${ac_cv_type_long_long_int+:} false; then : 22251 $as_echo_n "(cached) " >&6 22252else 22253 ac_cv_type_long_long_int=yes 22254 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 22255 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 22256 if test $ac_cv_type_long_long_int = yes; then 22257 if test "$cross_compiling" = yes; then : 22258 : 22259else 22260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22261/* end confdefs.h. */ 22262#include <limits.h> 22263 #ifndef LLONG_MAX 22264 # define HALF \ 22265 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 22266 # define LLONG_MAX (HALF - 1 + HALF) 22267 #endif 22268int 22269main () 22270{ 22271long long int n = 1; 22272 int i; 22273 for (i = 0; ; i++) 22274 { 22275 long long int m = n << i; 22276 if (m >> i != n) 22277 return 1; 22278 if (LLONG_MAX / 2 < m) 22279 break; 22280 } 22281 return 0; 22282 ; 22283 return 0; 22284} 22285_ACEOF 22286if ac_fn_c_try_run "$LINENO"; then : 22287 22288else 22289 ac_cv_type_long_long_int=no 22290fi 22291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22292 conftest.$ac_objext conftest.beam conftest.$ac_ext 22293fi 22294 22295 fi 22296 fi 22297fi 22298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 22299$as_echo "$ac_cv_type_long_long_int" >&6; } 22300 if test $ac_cv_type_long_long_int = yes; then 22301 22302$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 22303 22304 fi 22305 22306 22307 22308 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 22309if test "x$ac_cv_type_intmax_t" = xyes; then : 22310 22311$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 22312 22313else 22314 test $ac_cv_type_long_long_int = yes \ 22315 && ac_type='long long int' \ 22316 || ac_type='long int' 22317 22318cat >>confdefs.h <<_ACEOF 22319#define intmax_t $ac_type 22320_ACEOF 22321 22322fi 22323 22324 22325 22326 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 22327if test "x$ac_cv_type_intptr_t" = xyes; then : 22328 22329$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 22330 22331else 22332 for ac_type in 'int' 'long int' 'long long int'; do 22333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22334/* end confdefs.h. */ 22335$ac_includes_default 22336int 22337main () 22338{ 22339static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 22340test_array [0] = 0; 22341return test_array [0]; 22342 22343 ; 22344 return 0; 22345} 22346_ACEOF 22347if ac_fn_c_try_compile "$LINENO"; then : 22348 22349cat >>confdefs.h <<_ACEOF 22350#define intptr_t $ac_type 22351_ACEOF 22352 22353 ac_type= 22354fi 22355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22356 test -z "$ac_type" && break 22357 done 22358fi 22359 22360 22361 22362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 22363$as_echo_n "checking for long double... " >&6; } 22364if ${ac_cv_type_long_double+:} false; then : 22365 $as_echo_n "(cached) " >&6 22366else 22367 if test "$GCC" = yes; then 22368 ac_cv_type_long_double=yes 22369 else 22370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22371/* end confdefs.h. */ 22372/* The Stardent Vistra knows sizeof (long double), but does 22373 not support it. */ 22374 long double foo = 0.0L; 22375int 22376main () 22377{ 22378static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 22379 sizeof (double) <= sizeof (long double))]; 22380test_array [0] = 0; 22381return test_array [0]; 22382 22383 ; 22384 return 0; 22385} 22386_ACEOF 22387if ac_fn_c_try_compile "$LINENO"; then : 22388 ac_cv_type_long_double=yes 22389else 22390 ac_cv_type_long_double=no 22391fi 22392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22393 fi 22394fi 22395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 22396$as_echo "$ac_cv_type_long_double" >&6; } 22397 if test $ac_cv_type_long_double = yes; then 22398 22399$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 22400 22401 fi 22402 22403 22404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5 22405$as_echo_n "checking for long double with more range or precision than double... " >&6; } 22406if ${ac_cv_type_long_double_wider+:} false; then : 22407 $as_echo_n "(cached) " >&6 22408else 22409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22410/* end confdefs.h. */ 22411#include <float.h> 22412 long double const a[] = 22413 { 22414 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, 22415 LDBL_MIN, LDBL_MAX, LDBL_EPSILON 22416 }; 22417 long double 22418 f (long double x) 22419 { 22420 return ((x + (unsigned long int) 10) * (-1 / x) + a[0] 22421 + (x ? f (x) : 'c')); 22422 } 22423 22424int 22425main () 22426{ 22427static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) 22428 + (DBL_MANT_DIG < LDBL_MANT_DIG) 22429 - (LDBL_MAX_EXP < DBL_MAX_EXP) 22430 - (LDBL_MANT_DIG < DBL_MANT_DIG))) 22431 && (int) LDBL_EPSILON == 0 22432 )]; 22433test_array [0] = 0; 22434return test_array [0]; 22435 22436 ; 22437 return 0; 22438} 22439_ACEOF 22440if ac_fn_c_try_compile "$LINENO"; then : 22441 ac_cv_type_long_double_wider=yes 22442else 22443 ac_cv_type_long_double_wider=no 22444fi 22445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22446fi 22447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5 22448$as_echo "$ac_cv_type_long_double_wider" >&6; } 22449 if test $ac_cv_type_long_double_wider = yes; then 22450 22451$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h 22452 22453 fi 22454 22455 22456 22457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 22458$as_echo_n "checking for long long int... " >&6; } 22459if ${ac_cv_type_long_long_int+:} false; then : 22460 $as_echo_n "(cached) " >&6 22461else 22462 ac_cv_type_long_long_int=yes 22463 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 22464 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 22465 if test $ac_cv_type_long_long_int = yes; then 22466 if test "$cross_compiling" = yes; then : 22467 : 22468else 22469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22470/* end confdefs.h. */ 22471#include <limits.h> 22472 #ifndef LLONG_MAX 22473 # define HALF \ 22474 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 22475 # define LLONG_MAX (HALF - 1 + HALF) 22476 #endif 22477int 22478main () 22479{ 22480long long int n = 1; 22481 int i; 22482 for (i = 0; ; i++) 22483 { 22484 long long int m = n << i; 22485 if (m >> i != n) 22486 return 1; 22487 if (LLONG_MAX / 2 < m) 22488 break; 22489 } 22490 return 0; 22491 ; 22492 return 0; 22493} 22494_ACEOF 22495if ac_fn_c_try_run "$LINENO"; then : 22496 22497else 22498 ac_cv_type_long_long_int=no 22499fi 22500rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22501 conftest.$ac_objext conftest.beam conftest.$ac_ext 22502fi 22503 22504 fi 22505 fi 22506fi 22507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 22508$as_echo "$ac_cv_type_long_long_int" >&6; } 22509 if test $ac_cv_type_long_long_int = yes; then 22510 22511$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 22512 22513 fi 22514 22515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 22516$as_echo_n "checking for mbstate_t... " >&6; } 22517if ${ac_cv_type_mbstate_t+:} false; then : 22518 $as_echo_n "(cached) " >&6 22519else 22520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22521/* end confdefs.h. */ 22522$ac_includes_default 22523# include <wchar.h> 22524int 22525main () 22526{ 22527mbstate_t x; return sizeof x; 22528 ; 22529 return 0; 22530} 22531_ACEOF 22532if ac_fn_c_try_compile "$LINENO"; then : 22533 ac_cv_type_mbstate_t=yes 22534else 22535 ac_cv_type_mbstate_t=no 22536fi 22537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22538fi 22539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 22540$as_echo "$ac_cv_type_mbstate_t" >&6; } 22541 if test $ac_cv_type_mbstate_t = yes; then 22542 22543$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 22544 22545 else 22546 22547$as_echo "#define mbstate_t int" >>confdefs.h 22548 22549 fi 22550ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 22551if test "x$ac_cv_type_mode_t" = xyes; then : 22552 22553else 22554 22555cat >>confdefs.h <<_ACEOF 22556#define mode_t int 22557_ACEOF 22558 22559fi 22560 22561ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 22562if test "x$ac_cv_type_off_t" = xyes; then : 22563 22564else 22565 22566cat >>confdefs.h <<_ACEOF 22567#define off_t long int 22568_ACEOF 22569 22570fi 22571 22572ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 22573if test "x$ac_cv_type_pid_t" = xyes; then : 22574 22575else 22576 22577cat >>confdefs.h <<_ACEOF 22578#define pid_t int 22579_ACEOF 22580 22581fi 22582 22583ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 22584if test "x$ac_cv_type_size_t" = xyes; then : 22585 22586else 22587 22588cat >>confdefs.h <<_ACEOF 22589#define size_t unsigned int 22590_ACEOF 22591 22592fi 22593 22594ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 22595if test "x$ac_cv_type_ssize_t" = xyes; then : 22596 22597else 22598 22599cat >>confdefs.h <<_ACEOF 22600#define ssize_t int 22601_ACEOF 22602 22603fi 22604 22605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 22606$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 22607if ${ac_cv_type_uid_t+:} false; then : 22608 $as_echo_n "(cached) " >&6 22609else 22610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22611/* end confdefs.h. */ 22612#include <sys/types.h> 22613 22614_ACEOF 22615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22616 $EGREP "uid_t" >/dev/null 2>&1; then : 22617 ac_cv_type_uid_t=yes 22618else 22619 ac_cv_type_uid_t=no 22620fi 22621rm -f conftest* 22622 22623fi 22624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 22625$as_echo "$ac_cv_type_uid_t" >&6; } 22626if test $ac_cv_type_uid_t = no; then 22627 22628$as_echo "#define uid_t int" >>confdefs.h 22629 22630 22631$as_echo "#define gid_t int" >>confdefs.h 22632 22633fi 22634 22635ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 22636case $ac_cv_c_uint8_t in #( 22637 no|yes) ;; #( 22638 *) 22639 22640$as_echo "#define _UINT8_T 1" >>confdefs.h 22641 22642 22643cat >>confdefs.h <<_ACEOF 22644#define uint8_t $ac_cv_c_uint8_t 22645_ACEOF 22646;; 22647 esac 22648 22649ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 22650case $ac_cv_c_uint16_t in #( 22651 no|yes) ;; #( 22652 *) 22653 22654 22655cat >>confdefs.h <<_ACEOF 22656#define uint16_t $ac_cv_c_uint16_t 22657_ACEOF 22658;; 22659 esac 22660 22661ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 22662case $ac_cv_c_uint32_t in #( 22663 no|yes) ;; #( 22664 *) 22665 22666$as_echo "#define _UINT32_T 1" >>confdefs.h 22667 22668 22669cat >>confdefs.h <<_ACEOF 22670#define uint32_t $ac_cv_c_uint32_t 22671_ACEOF 22672;; 22673 esac 22674 22675ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 22676case $ac_cv_c_uint64_t in #( 22677 no|yes) ;; #( 22678 *) 22679 22680$as_echo "#define _UINT64_T 1" >>confdefs.h 22681 22682 22683cat >>confdefs.h <<_ACEOF 22684#define uint64_t $ac_cv_c_uint64_t 22685_ACEOF 22686;; 22687 esac 22688 22689 22690 22691 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 22692if test "x$ac_cv_type_uintmax_t" = xyes; then : 22693 22694$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 22695 22696else 22697 test $ac_cv_type_unsigned_long_long_int = yes \ 22698 && ac_type='unsigned long long int' \ 22699 || ac_type='unsigned long int' 22700 22701cat >>confdefs.h <<_ACEOF 22702#define uintmax_t $ac_type 22703_ACEOF 22704 22705fi 22706 22707 22708 22709 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 22710if test "x$ac_cv_type_uintptr_t" = xyes; then : 22711 22712$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 22713 22714else 22715 for ac_type in 'unsigned int' 'unsigned long int' \ 22716 'unsigned long long int'; do 22717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22718/* end confdefs.h. */ 22719$ac_includes_default 22720int 22721main () 22722{ 22723static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 22724test_array [0] = 0; 22725return test_array [0]; 22726 22727 ; 22728 return 0; 22729} 22730_ACEOF 22731if ac_fn_c_try_compile "$LINENO"; then : 22732 22733cat >>confdefs.h <<_ACEOF 22734#define uintptr_t $ac_type 22735_ACEOF 22736 22737 ac_type= 22738fi 22739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22740 test -z "$ac_type" && break 22741 done 22742fi 22743 22744 22745 22746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 22747$as_echo_n "checking for unsigned long long int... " >&6; } 22748if ${ac_cv_type_unsigned_long_long_int+:} false; then : 22749 $as_echo_n "(cached) " >&6 22750else 22751 ac_cv_type_unsigned_long_long_int=yes 22752 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 22753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22754/* end confdefs.h. */ 22755 22756 /* For now, do not test the preprocessor; as of 2007 there are too many 22757 implementations with broken preprocessors. Perhaps this can 22758 be revisited in 2012. In the meantime, code should not expect 22759 #if to work with literals wider than 32 bits. */ 22760 /* Test literals. */ 22761 long long int ll = 9223372036854775807ll; 22762 long long int nll = -9223372036854775807LL; 22763 unsigned long long int ull = 18446744073709551615ULL; 22764 /* Test constant expressions. */ 22765 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 22766 ? 1 : -1)]; 22767 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 22768 ? 1 : -1)]; 22769 int i = 63; 22770int 22771main () 22772{ 22773/* Test availability of runtime routines for shift and division. */ 22774 long long int llmax = 9223372036854775807ll; 22775 unsigned long long int ullmax = 18446744073709551615ull; 22776 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 22777 | (llmax / ll) | (llmax % ll) 22778 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 22779 | (ullmax / ull) | (ullmax % ull)); 22780 ; 22781 return 0; 22782} 22783 22784_ACEOF 22785if ac_fn_c_try_link "$LINENO"; then : 22786 22787else 22788 ac_cv_type_unsigned_long_long_int=no 22789fi 22790rm -f core conftest.err conftest.$ac_objext \ 22791 conftest$ac_exeext conftest.$ac_ext 22792 fi 22793fi 22794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 22795$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 22796 if test $ac_cv_type_unsigned_long_long_int = yes; then 22797 22798$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 22799 22800 fi 22801 22802 22803# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the 22804# C compiler predefines it. 22805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 22806$as_echo_n "checking whether char is unsigned... " >&6; } 22807if ${ac_cv_c_char_unsigned+:} false; then : 22808 $as_echo_n "(cached) " >&6 22809else 22810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22811/* end confdefs.h. */ 22812$ac_includes_default 22813int 22814main () 22815{ 22816static int test_array [1 - 2 * !(((char) -1) < 0)]; 22817test_array [0] = 0; 22818return test_array [0]; 22819 22820 ; 22821 return 0; 22822} 22823_ACEOF 22824if ac_fn_c_try_compile "$LINENO"; then : 22825 ac_cv_c_char_unsigned=no 22826else 22827 ac_cv_c_char_unsigned=yes 22828fi 22829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22830fi 22831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 22832$as_echo "$ac_cv_c_char_unsigned" >&6; } 22833if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 22834 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 22835 22836fi 22837 22838 22839# Float_t and double_t are intended to be the the most efficient type. 22840ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h> 22841" 22842if test "x$ac_cv_type_float_t" = xyes; then : 22843 22844cat >>confdefs.h <<_ACEOF 22845#define HAVE_FLOAT_T 1 22846_ACEOF 22847 22848 22849fi 22850 22851ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h> 22852" 22853if test "x$ac_cv_type_double_t" = xyes; then : 22854 22855cat >>confdefs.h <<_ACEOF 22856#define HAVE_DOUBLE_T 1 22857_ACEOF 22858 22859 22860fi 22861 22862# The cast to long int works around a bug in the HP C Compiler 22863# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22864# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22865# This bug is HP SR number 8606223364. 22866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5 22867$as_echo_n "checking size of float_t... " >&6; } 22868if ${ac_cv_sizeof_float_t+:} false; then : 22869 $as_echo_n "(cached) " >&6 22870else 22871 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h> 22872"; then : 22873 22874else 22875 if test "$ac_cv_type_float_t" = yes; then 22876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22877$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22878as_fn_error 77 "cannot compute sizeof (float_t) 22879See \`config.log' for more details" "$LINENO" 5; } 22880 else 22881 ac_cv_sizeof_float_t=0 22882 fi 22883fi 22884 22885fi 22886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5 22887$as_echo "$ac_cv_sizeof_float_t" >&6; } 22888 22889 22890 22891cat >>confdefs.h <<_ACEOF 22892#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t 22893_ACEOF 22894 22895 22896# The cast to long int works around a bug in the HP C Compiler 22897# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22898# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22899# This bug is HP SR number 8606223364. 22900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5 22901$as_echo_n "checking size of double_t... " >&6; } 22902if ${ac_cv_sizeof_double_t+:} false; then : 22903 $as_echo_n "(cached) " >&6 22904else 22905 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h> 22906"; then : 22907 22908else 22909 if test "$ac_cv_type_double_t" = yes; then 22910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22912as_fn_error 77 "cannot compute sizeof (double_t) 22913See \`config.log' for more details" "$LINENO" 5; } 22914 else 22915 ac_cv_sizeof_double_t=0 22916 fi 22917fi 22918 22919fi 22920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5 22921$as_echo "$ac_cv_sizeof_double_t" >&6; } 22922 22923 22924 22925cat >>confdefs.h <<_ACEOF 22926#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t 22927_ACEOF 22928 22929 22930 22931# Get size of float, double and long double for comparaison. 22932# The cast to long int works around a bug in the HP C Compiler 22933# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22934# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22935# This bug is HP SR number 8606223364. 22936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 22937$as_echo_n "checking size of float... " >&6; } 22938if ${ac_cv_sizeof_float+:} false; then : 22939 $as_echo_n "(cached) " >&6 22940else 22941 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : 22942 22943else 22944 if test "$ac_cv_type_float" = yes; then 22945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22947as_fn_error 77 "cannot compute sizeof (float) 22948See \`config.log' for more details" "$LINENO" 5; } 22949 else 22950 ac_cv_sizeof_float=0 22951 fi 22952fi 22953 22954fi 22955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 22956$as_echo "$ac_cv_sizeof_float" >&6; } 22957 22958 22959 22960cat >>confdefs.h <<_ACEOF 22961#define SIZEOF_FLOAT $ac_cv_sizeof_float 22962_ACEOF 22963 22964 22965# The cast to long int works around a bug in the HP C Compiler 22966# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22967# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22968# This bug is HP SR number 8606223364. 22969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 22970$as_echo_n "checking size of double... " >&6; } 22971if ${ac_cv_sizeof_double+:} false; then : 22972 $as_echo_n "(cached) " >&6 22973else 22974 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : 22975 22976else 22977 if test "$ac_cv_type_double" = yes; then 22978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22980as_fn_error 77 "cannot compute sizeof (double) 22981See \`config.log' for more details" "$LINENO" 5; } 22982 else 22983 ac_cv_sizeof_double=0 22984 fi 22985fi 22986 22987fi 22988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 22989$as_echo "$ac_cv_sizeof_double" >&6; } 22990 22991 22992 22993cat >>confdefs.h <<_ACEOF 22994#define SIZEOF_DOUBLE $ac_cv_sizeof_double 22995_ACEOF 22996 22997 22998# The cast to long int works around a bug in the HP C Compiler 22999# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23000# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23001# This bug is HP SR number 8606223364. 23002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 23003$as_echo_n "checking size of long double... " >&6; } 23004if ${ac_cv_sizeof_long_double+:} false; then : 23005 $as_echo_n "(cached) " >&6 23006else 23007 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : 23008 23009else 23010 if test "$ac_cv_type_long_double" = yes; then 23011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23012$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23013as_fn_error 77 "cannot compute sizeof (long double) 23014See \`config.log' for more details" "$LINENO" 5; } 23015 else 23016 ac_cv_sizeof_long_double=0 23017 fi 23018fi 23019 23020fi 23021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 23022$as_echo "$ac_cv_sizeof_long_double" >&6; } 23023 23024 23025 23026cat >>confdefs.h <<_ACEOF 23027#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double 23028_ACEOF 23029 23030 23031 23032# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT 23033# The cast to long int works around a bug in the HP C Compiler 23034# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23035# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23036# This bug is HP SR number 8606223364. 23037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 23038$as_echo_n "checking size of signed short... " >&6; } 23039if ${ac_cv_sizeof_signed_short+:} false; then : 23040 $as_echo_n "(cached) " >&6 23041else 23042 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then : 23043 23044else 23045 if test "$ac_cv_type_signed_short" = yes; then 23046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23048as_fn_error 77 "cannot compute sizeof (signed short) 23049See \`config.log' for more details" "$LINENO" 5; } 23050 else 23051 ac_cv_sizeof_signed_short=0 23052 fi 23053fi 23054 23055fi 23056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5 23057$as_echo "$ac_cv_sizeof_signed_short" >&6; } 23058 23059 23060 23061cat >>confdefs.h <<_ACEOF 23062#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short 23063_ACEOF 23064 23065 23066 23067# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT 23068# The cast to long int works around a bug in the HP C Compiler 23069# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23070# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23071# This bug is HP SR number 8606223364. 23072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 23073$as_echo_n "checking size of unsigned short... " >&6; } 23074if ${ac_cv_sizeof_unsigned_short+:} false; then : 23075 $as_echo_n "(cached) " >&6 23076else 23077 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : 23078 23079else 23080 if test "$ac_cv_type_unsigned_short" = yes; then 23081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23083as_fn_error 77 "cannot compute sizeof (unsigned short) 23084See \`config.log' for more details" "$LINENO" 5; } 23085 else 23086 ac_cv_sizeof_unsigned_short=0 23087 fi 23088fi 23089 23090fi 23091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 23092$as_echo "$ac_cv_sizeof_unsigned_short" >&6; } 23093 23094 23095 23096cat >>confdefs.h <<_ACEOF 23097#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 23098_ACEOF 23099 23100 23101 23102# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT 23103# The cast to long int works around a bug in the HP C Compiler 23104# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23105# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23106# This bug is HP SR number 8606223364. 23107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 23108$as_echo_n "checking size of signed int... " >&6; } 23109if ${ac_cv_sizeof_signed_int+:} false; then : 23110 $as_echo_n "(cached) " >&6 23111else 23112 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then : 23113 23114else 23115 if test "$ac_cv_type_signed_int" = yes; then 23116 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23117$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23118as_fn_error 77 "cannot compute sizeof (signed int) 23119See \`config.log' for more details" "$LINENO" 5; } 23120 else 23121 ac_cv_sizeof_signed_int=0 23122 fi 23123fi 23124 23125fi 23126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5 23127$as_echo "$ac_cv_sizeof_signed_int" >&6; } 23128 23129 23130 23131cat >>confdefs.h <<_ACEOF 23132#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int 23133_ACEOF 23134 23135 23136 23137# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT 23138# The cast to long int works around a bug in the HP C Compiler 23139# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23140# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23141# This bug is HP SR number 8606223364. 23142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 23143$as_echo_n "checking size of unsigned int... " >&6; } 23144if ${ac_cv_sizeof_unsigned_int+:} false; then : 23145 $as_echo_n "(cached) " >&6 23146else 23147 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 23148 23149else 23150 if test "$ac_cv_type_unsigned_int" = yes; then 23151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23153as_fn_error 77 "cannot compute sizeof (unsigned int) 23154See \`config.log' for more details" "$LINENO" 5; } 23155 else 23156 ac_cv_sizeof_unsigned_int=0 23157 fi 23158fi 23159 23160fi 23161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 23162$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 23163 23164 23165 23166cat >>confdefs.h <<_ACEOF 23167#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 23168_ACEOF 23169 23170 23171 23172# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG 23173# The cast to long int works around a bug in the HP C Compiler 23174# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23175# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23176# This bug is HP SR number 8606223364. 23177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 23178$as_echo_n "checking size of signed long... " >&6; } 23179if ${ac_cv_sizeof_signed_long+:} false; then : 23180 $as_echo_n "(cached) " >&6 23181else 23182 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then : 23183 23184else 23185 if test "$ac_cv_type_signed_long" = yes; then 23186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23188as_fn_error 77 "cannot compute sizeof (signed long) 23189See \`config.log' for more details" "$LINENO" 5; } 23190 else 23191 ac_cv_sizeof_signed_long=0 23192 fi 23193fi 23194 23195fi 23196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5 23197$as_echo "$ac_cv_sizeof_signed_long" >&6; } 23198 23199 23200 23201cat >>confdefs.h <<_ACEOF 23202#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long 23203_ACEOF 23204 23205 23206 23207# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG 23208# The cast to long int works around a bug in the HP C Compiler 23209# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23210# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23211# This bug is HP SR number 8606223364. 23212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 23213$as_echo_n "checking size of unsigned long... " >&6; } 23214if ${ac_cv_sizeof_unsigned_long+:} false; then : 23215 $as_echo_n "(cached) " >&6 23216else 23217 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 23218 23219else 23220 if test "$ac_cv_type_unsigned_long" = yes; then 23221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23223as_fn_error 77 "cannot compute sizeof (unsigned long) 23224See \`config.log' for more details" "$LINENO" 5; } 23225 else 23226 ac_cv_sizeof_unsigned_long=0 23227 fi 23228fi 23229 23230fi 23231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 23232$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 23233 23234 23235 23236cat >>confdefs.h <<_ACEOF 23237#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 23238_ACEOF 23239 23240 23241 23242# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If 23243# 'signed long long' is not supported then the value defined is zero. 23244# The cast to long int works around a bug in the HP C Compiler 23245# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23246# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23247# This bug is HP SR number 8606223364. 23248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5 23249$as_echo_n "checking size of signed long long... " >&6; } 23250if ${ac_cv_sizeof_signed_long_long+:} false; then : 23251 $as_echo_n "(cached) " >&6 23252else 23253 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then : 23254 23255else 23256 if test "$ac_cv_type_signed_long_long" = yes; then 23257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23259as_fn_error 77 "cannot compute sizeof (signed long long) 23260See \`config.log' for more details" "$LINENO" 5; } 23261 else 23262 ac_cv_sizeof_signed_long_long=0 23263 fi 23264fi 23265 23266fi 23267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5 23268$as_echo "$ac_cv_sizeof_signed_long_long" >&6; } 23269 23270 23271 23272cat >>confdefs.h <<_ACEOF 23273#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long 23274_ACEOF 23275 23276 23277 23278# Obtain size of a 'unsigned long long' and define as 23279# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not 23280# supported then the value defined is zero. 23281# The cast to long int works around a bug in the HP C Compiler 23282# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23283# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23284# This bug is HP SR number 8606223364. 23285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 23286$as_echo_n "checking size of unsigned long long... " >&6; } 23287if ${ac_cv_sizeof_unsigned_long_long+:} false; then : 23288 $as_echo_n "(cached) " >&6 23289else 23290 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : 23291 23292else 23293 if test "$ac_cv_type_unsigned_long_long" = yes; then 23294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23296as_fn_error 77 "cannot compute sizeof (unsigned long long) 23297See \`config.log' for more details" "$LINENO" 5; } 23298 else 23299 ac_cv_sizeof_unsigned_long_long=0 23300 fi 23301fi 23302 23303fi 23304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 23305$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } 23306 23307 23308 23309cat >>confdefs.h <<_ACEOF 23310#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 23311_ACEOF 23312 23313 23314 23315# Obtain size of off_t and define as SIZEOF_OFF_T 23316# The cast to long int works around a bug in the HP C Compiler 23317# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23318# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23319# This bug is HP SR number 8606223364. 23320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 23321$as_echo_n "checking size of off_t... " >&6; } 23322if ${ac_cv_sizeof_off_t+:} false; then : 23323 $as_echo_n "(cached) " >&6 23324else 23325 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 23326 23327else 23328 if test "$ac_cv_type_off_t" = yes; then 23329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23331as_fn_error 77 "cannot compute sizeof (off_t) 23332See \`config.log' for more details" "$LINENO" 5; } 23333 else 23334 ac_cv_sizeof_off_t=0 23335 fi 23336fi 23337 23338fi 23339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 23340$as_echo "$ac_cv_sizeof_off_t" >&6; } 23341 23342 23343 23344cat >>confdefs.h <<_ACEOF 23345#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 23346_ACEOF 23347 23348 23349 23350# Obtain size of size_t and define as SIZEOF_SIZE_T 23351# The cast to long int works around a bug in the HP C Compiler 23352# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23353# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23354# This bug is HP SR number 8606223364. 23355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 23356$as_echo_n "checking size of size_t... " >&6; } 23357if ${ac_cv_sizeof_size_t+:} false; then : 23358 $as_echo_n "(cached) " >&6 23359else 23360 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 23361 23362else 23363 if test "$ac_cv_type_size_t" = yes; then 23364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23366as_fn_error 77 "cannot compute sizeof (size_t) 23367See \`config.log' for more details" "$LINENO" 5; } 23368 else 23369 ac_cv_sizeof_size_t=0 23370 fi 23371fi 23372 23373fi 23374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 23375$as_echo "$ac_cv_sizeof_size_t" >&6; } 23376 23377 23378 23379cat >>confdefs.h <<_ACEOF 23380#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 23381_ACEOF 23382 23383 23384 23385# Obtain size of ssize_t and define as SIZEOF_SSIZE_T 23386# The cast to long int works around a bug in the HP C Compiler 23387# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23388# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23389# This bug is HP SR number 8606223364. 23390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 23391$as_echo_n "checking size of ssize_t... " >&6; } 23392if ${ac_cv_sizeof_ssize_t+:} false; then : 23393 $as_echo_n "(cached) " >&6 23394else 23395 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then : 23396 23397else 23398 if test "$ac_cv_type_ssize_t" = yes; then 23399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23401as_fn_error 77 "cannot compute sizeof (ssize_t) 23402See \`config.log' for more details" "$LINENO" 5; } 23403 else 23404 ac_cv_sizeof_ssize_t=0 23405 fi 23406fi 23407 23408fi 23409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5 23410$as_echo "$ac_cv_sizeof_ssize_t" >&6; } 23411 23412 23413 23414cat >>confdefs.h <<_ACEOF 23415#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t 23416_ACEOF 23417 23418 23419 23420# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP 23421# The cast to long int works around a bug in the HP C Compiler 23422# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23423# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23424# This bug is HP SR number 8606223364. 23425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5 23426$as_echo_n "checking size of unsigned int*... " >&6; } 23427if ${ac_cv_sizeof_unsigned_intp+:} false; then : 23428 $as_echo_n "(cached) " >&6 23429else 23430 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then : 23431 23432else 23433 if test "$ac_cv_type_unsigned_intp" = yes; then 23434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23436as_fn_error 77 "cannot compute sizeof (unsigned int*) 23437See \`config.log' for more details" "$LINENO" 5; } 23438 else 23439 ac_cv_sizeof_unsigned_intp=0 23440 fi 23441fi 23442 23443fi 23444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5 23445$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; } 23446 23447 23448 23449cat >>confdefs.h <<_ACEOF 23450#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp 23451_ACEOF 23452 23453 23454 23455# 23456# Compute sized types for current CPU and compiler options. 23457# 23458 23459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5 23460$as_echo_n "checking for signed 8-bit type... " >&6; } 23461INT8_T='signed char' 23462{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5 23463$as_echo "$as_me: $INT8_T" >&6;} 23464 23465 23466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5 23467$as_echo_n "checking for unsigned 8-bit type... " >&6; } 23468UINT8_T='unsigned char' 23469{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5 23470$as_echo "$as_me: $UINT8_T" >&6;} 23471 23472 23473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5 23474$as_echo_n "checking for signed 16-bit type... " >&6; } 23475INT16_T='signed short' 23476{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5 23477$as_echo "$as_me: $INT16_T" >&6;} 23478 23479 23480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5 23481$as_echo_n "checking for unsigned 16-bit type... " >&6; } 23482UINT16_T='unsigned short' 23483{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5 23484$as_echo "$as_me: $UINT16_T" >&6;} 23485 23486 23487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5 23488$as_echo_n "checking for signed 32-bit type... " >&6; } 23489INT32_T='none' 23490INT32_F='none' 23491if test $ac_cv_sizeof_signed_int -eq 4; then 23492 INT32_T='signed int' 23493 INT32_F='""' 23494elif test $ac_cv_sizeof_signed_long -eq 4; then 23495 INT32_T='signed long' 23496 INT32_F='"l"' 23497fi 23498{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5 23499$as_echo "$as_me: $INT32_T" >&6;} 23500 23501 23502 23503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5 23504$as_echo_n "checking for unsigned 32-bit type... " >&6; } 23505UINT32_T='none' 23506UINT32_F='none' 23507if test $ac_cv_sizeof_unsigned_int -eq 4; then 23508 UINT32_T='unsigned int' 23509 UINT32_F='""' 23510elif test $ac_cv_sizeof_unsigned_long -eq 4; then 23511 UINT32_T='unsigned long' 23512 UINT32_F='"l"' 23513fi 23514{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5 23515$as_echo "$as_me: $UINT32_T" >&6;} 23516 23517 23518 23519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5 23520$as_echo_n "checking for signed 64-bit type... " >&6; } 23521INT64_T='none' 23522INT64_F='none' 23523if test $ac_cv_sizeof_signed_long -eq 8; then 23524 INT64_T='signed long' 23525 INT64_F='"l"' 23526elif test $ac_cv_sizeof_signed_long_long -eq 8; then 23527 INT64_T='signed long long' 23528 INT64_F='"ll"' 23529fi 23530case "${host_os}" in 23531 mingw* ) 23532 INT64_F='"I64"' 23533 ;; 23534esac 23535{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5 23536$as_echo "$as_me: $INT64_T" >&6;} 23537 23538 23539 23540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5 23541$as_echo_n "checking for unsigned 64-bit type... " >&6; } 23542UINT64_T='none' 23543UINT64_F='none' 23544if test $ac_cv_sizeof_unsigned_long -eq 8; then 23545 UINT64_T='unsigned long' 23546 UINT64_F='"l"' 23547elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then 23548 UINT64_T='unsigned long long' 23549 UINT64_F='"ll"' 23550fi 23551case "${host_os}" in 23552 mingw* ) 23553 UINT64_F='"I64"' 23554 ;; 23555esac 23556{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5 23557$as_echo "$as_me: $UINT64_T" >&6;} 23558 23559 23560 23561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5 23562$as_echo_n "checking for unsigned maximum type... " >&6; } 23563UINTMAX_T='none' 23564UINTMAX_F='none' 23565if test "$UINT64_T" != 'none'; then 23566 UINTMAX_T=$UINT64_T 23567 UINTMAX_F=$UINT64_F 23568elif test "$UINT32_T" != 'none'; then 23569 UINTMAX_T=$UINT32_T 23570 UINTMAX_F=$UINT32_F 23571fi 23572{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5 23573$as_echo "$as_me: $UINTMAX_T" >&6;} 23574 23575 23576 23577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 23578$as_echo_n "checking for pointer difference type... " >&6; } 23579UINTPTR_T='none' 23580UINTPTR_F='none' 23581if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then 23582 UINTPTR_T='unsigned long' 23583 UINTPTR_F='"l"' 23584elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then 23585 UINTPTR_T='unsigned long long' 23586 UINTPTR_F='"ll"' 23587fi 23588{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5 23589$as_echo "$as_me: $UINTPTR_T" >&6;} 23590 23591 23592 23593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5 23594$as_echo_n "checking whether our compiler supports __func__... " >&6; } 23595cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23596/* end confdefs.h. */ 23597 23598int 23599main () 23600{ 23601{ const char *func = __func__; return(func != 0 ? 0 : 1); } 23602 ; 23603 return 0; 23604} 23605_ACEOF 23606if ac_fn_c_try_compile "$LINENO"; then : 23607 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 23608$as_echo "$as_me: yes" >&6;} 23609else 23610 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 23611$as_echo "$as_me: no" >&6;} 23612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5 23613$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; } 23614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23615/* end confdefs.h. */ 23616 23617int 23618main () 23619{ 23620{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); } 23621 ; 23622 return 0; 23623} 23624_ACEOF 23625if ac_fn_c_try_compile "$LINENO"; then : 23626 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 23627$as_echo "$as_me: yes" >&6;} 23628 23629$as_echo "#define __func__ __FUNCTION__" >>confdefs.h 23630 23631else 23632 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 23633$as_echo "$as_me: no" >&6;} 23634 23635$as_echo "#define __func__ __FILE__" >>confdefs.h 23636 23637fi 23638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23639fi 23640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23641 23642######## 23643# 23644# Check for functions 23645# 23646######## 23647for ac_header in stdlib.h unistd.h 23648do : 23649 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23650ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23651if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23652 cat >>confdefs.h <<_ACEOF 23653#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23654_ACEOF 23655 23656fi 23657 23658done 23659 23660for ac_func in getpagesize 23661do : 23662 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 23663if test "x$ac_cv_func_getpagesize" = xyes; then : 23664 cat >>confdefs.h <<_ACEOF 23665#define HAVE_GETPAGESIZE 1 23666_ACEOF 23667 23668fi 23669done 23670 23671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5 23672$as_echo_n "checking for working mmap file i/o... " >&6; } 23673if ${magick_cv_func_mmap_fileio+:} false; then : 23674 $as_echo_n "(cached) " >&6 23675else 23676 if test "$cross_compiling" = yes; then : 23677 magick_cv_func_mmap_fileio=no 23678else 23679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23680/* end confdefs.h. */ 23681$ac_includes_default 23682/* malloc might have been renamed as rpl_malloc. */ 23683#undef malloc 23684 23685/* 23686 This test is derived from GNU Autoconf's similar macro. 23687 The purpose of this test is to verify that files may be memory 23688 mapped, and that memory mapping and file I/O are coherent. 23689 23690 The test creates a test file, memory maps the file, updates 23691 the file using the memory map, and then reads the file using 23692 file I/O to verify that the file contains the updates. 23693*/ 23694 23695#include <fcntl.h> 23696#include <sys/mman.h> 23697 23698#if !STDC_HEADERS && !HAVE_STDLIB_H 23699char *malloc (); 23700#endif 23701 23702/* This mess was copied from the GNU getpagesize.h. */ 23703#if !HAVE_GETPAGESIZE 23704/* Assume that all systems that can run configure have sys/param.h. */ 23705# if !HAVE_SYS_PARAM_H 23706# define HAVE_SYS_PARAM_H 1 23707# endif 23708 23709# ifdef _SC_PAGESIZE 23710# define getpagesize() sysconf(_SC_PAGESIZE) 23711# else /* no _SC_PAGESIZE */ 23712# if HAVE_SYS_PARAM_H 23713# include <sys/param.h> 23714# ifdef EXEC_PAGESIZE 23715# define getpagesize() EXEC_PAGESIZE 23716# else /* no EXEC_PAGESIZE */ 23717# ifdef NBPG 23718# define getpagesize() NBPG * CLSIZE 23719# ifndef CLSIZE 23720# define CLSIZE 1 23721# endif /* no CLSIZE */ 23722# else /* no NBPG */ 23723# ifdef NBPC 23724# define getpagesize() NBPC 23725# else /* no NBPC */ 23726# ifdef PAGESIZE 23727# define getpagesize() PAGESIZE 23728# endif /* PAGESIZE */ 23729# endif /* no NBPC */ 23730# endif /* no NBPG */ 23731# endif /* no EXEC_PAGESIZE */ 23732# else /* no HAVE_SYS_PARAM_H */ 23733# define getpagesize() 8192 /* punt totally */ 23734# endif /* no HAVE_SYS_PARAM_H */ 23735# endif /* no _SC_PAGESIZE */ 23736 23737#endif /* no HAVE_GETPAGESIZE */ 23738 23739int 23740main () 23741{ 23742 char *data, *data2, *data3; 23743 int i, pagesize; 23744 int fd; 23745 23746 pagesize = getpagesize (); 23747 23748 /* First, make a file with some known garbage in it. */ 23749 data = (char *) malloc (pagesize); 23750 if (!data) 23751 exit (1); 23752 for (i = 0; i < pagesize; ++i) 23753 *(data + i) = rand (); 23754 umask (0); 23755 fd = creat ("conftest.mmap", 0600); 23756 if (fd < 0) 23757 exit (1); 23758 if (write (fd, data, pagesize) != pagesize) 23759 exit (1); 23760 close (fd); 23761 23762 /* Mmap the file as read/write/shared and verify that we see the 23763 same garbage. */ 23764 fd = open ("conftest.mmap", O_RDWR); 23765 if (fd < 0) 23766 exit (1); 23767 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L); 23768 if (data2 == 0) 23769 exit (1); 23770 for (i = 0; i < pagesize; ++i) 23771 if (*(data + i) != *(data2 + i)) 23772 exit (1); 23773 23774 /* Finally, make sure that changes to the mapped area 23775 percolate back to the file as seen by read(). */ 23776 for (i = 0; i < pagesize; ++i) 23777 *(data2 + i) = *(data2 + i) + 1; 23778 data3 = (char *) malloc (pagesize); 23779 if (!data3) 23780 exit (1); 23781 if (read (fd, data3, pagesize) != pagesize) 23782 exit (1); 23783 for (i = 0; i < pagesize; ++i) 23784 if (*(data2 + i) != *(data3 + i)) 23785 exit (1); 23786 close (fd); 23787 exit (0); 23788} 23789_ACEOF 23790if ac_fn_c_try_run "$LINENO"; then : 23791 magick_cv_func_mmap_fileio=yes 23792else 23793 magick_cv_func_mmap_fileio=no 23794fi 23795rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23796 conftest.$ac_objext conftest.beam conftest.$ac_ext 23797fi 23798 23799fi 23800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5 23801$as_echo "$magick_cv_func_mmap_fileio" >&6; } 23802if test $magick_cv_func_mmap_fileio = yes; then 23803 23804$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h 23805 23806fi 23807rm -f conftest.mmap 23808 23809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 23810$as_echo_n "checking whether closedir returns void... " >&6; } 23811if ${ac_cv_func_closedir_void+:} false; then : 23812 $as_echo_n "(cached) " >&6 23813else 23814 if test "$cross_compiling" = yes; then : 23815 ac_cv_func_closedir_void=yes 23816else 23817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23818/* end confdefs.h. */ 23819$ac_includes_default 23820#include <$ac_header_dirent> 23821#ifndef __cplusplus 23822int closedir (); 23823#endif 23824 23825int 23826main () 23827{ 23828return closedir (opendir (".")) != 0; 23829 ; 23830 return 0; 23831} 23832_ACEOF 23833if ac_fn_c_try_run "$LINENO"; then : 23834 ac_cv_func_closedir_void=no 23835else 23836 ac_cv_func_closedir_void=yes 23837fi 23838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23839 conftest.$ac_objext conftest.beam conftest.$ac_ext 23840fi 23841 23842fi 23843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 23844$as_echo "$ac_cv_func_closedir_void" >&6; } 23845if test $ac_cv_func_closedir_void = yes; then 23846 23847$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h 23848 23849fi 23850 23851 23852 23853 23854 for ac_header in $ac_header_list 23855do : 23856 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23857ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 23858" 23859if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23860 cat >>confdefs.h <<_ACEOF 23861#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23862_ACEOF 23863 23864fi 23865 23866done 23867 23868 23869 23870 23871 23872 23873 23874 23875for ac_func in getpagesize 23876do : 23877 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 23878if test "x$ac_cv_func_getpagesize" = xyes; then : 23879 cat >>confdefs.h <<_ACEOF 23880#define HAVE_GETPAGESIZE 1 23881_ACEOF 23882 23883fi 23884done 23885 23886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 23887$as_echo_n "checking for working mmap... " >&6; } 23888if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 23889 $as_echo_n "(cached) " >&6 23890else 23891 if test "$cross_compiling" = yes; then : 23892 ac_cv_func_mmap_fixed_mapped=no 23893else 23894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23895/* end confdefs.h. */ 23896$ac_includes_default 23897/* malloc might have been renamed as rpl_malloc. */ 23898#undef malloc 23899 23900/* Thanks to Mike Haertel and Jim Avera for this test. 23901 Here is a matrix of mmap possibilities: 23902 mmap private not fixed 23903 mmap private fixed at somewhere currently unmapped 23904 mmap private fixed at somewhere already mapped 23905 mmap shared not fixed 23906 mmap shared fixed at somewhere currently unmapped 23907 mmap shared fixed at somewhere already mapped 23908 For private mappings, we should verify that changes cannot be read() 23909 back from the file, nor mmap's back from the file at a different 23910 address. (There have been systems where private was not correctly 23911 implemented like the infamous i386 svr4.0, and systems where the 23912 VM page cache was not coherent with the file system buffer cache 23913 like early versions of FreeBSD and possibly contemporary NetBSD.) 23914 For shared mappings, we should conversely verify that changes get 23915 propagated back to all the places they're supposed to be. 23916 23917 Grep wants private fixed already mapped. 23918 The main things grep needs to know about mmap are: 23919 * does it exist and is it safe to write into the mmap'd area 23920 * how to use it (BSD variants) */ 23921 23922#include <fcntl.h> 23923#include <sys/mman.h> 23924 23925#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 23926char *malloc (); 23927#endif 23928 23929/* This mess was copied from the GNU getpagesize.h. */ 23930#ifndef HAVE_GETPAGESIZE 23931# ifdef _SC_PAGESIZE 23932# define getpagesize() sysconf(_SC_PAGESIZE) 23933# else /* no _SC_PAGESIZE */ 23934# ifdef HAVE_SYS_PARAM_H 23935# include <sys/param.h> 23936# ifdef EXEC_PAGESIZE 23937# define getpagesize() EXEC_PAGESIZE 23938# else /* no EXEC_PAGESIZE */ 23939# ifdef NBPG 23940# define getpagesize() NBPG * CLSIZE 23941# ifndef CLSIZE 23942# define CLSIZE 1 23943# endif /* no CLSIZE */ 23944# else /* no NBPG */ 23945# ifdef NBPC 23946# define getpagesize() NBPC 23947# else /* no NBPC */ 23948# ifdef PAGESIZE 23949# define getpagesize() PAGESIZE 23950# endif /* PAGESIZE */ 23951# endif /* no NBPC */ 23952# endif /* no NBPG */ 23953# endif /* no EXEC_PAGESIZE */ 23954# else /* no HAVE_SYS_PARAM_H */ 23955# define getpagesize() 8192 /* punt totally */ 23956# endif /* no HAVE_SYS_PARAM_H */ 23957# endif /* no _SC_PAGESIZE */ 23958 23959#endif /* no HAVE_GETPAGESIZE */ 23960 23961int 23962main () 23963{ 23964 char *data, *data2, *data3; 23965 const char *cdata2; 23966 int i, pagesize; 23967 int fd, fd2; 23968 23969 pagesize = getpagesize (); 23970 23971 /* First, make a file with some known garbage in it. */ 23972 data = (char *) malloc (pagesize); 23973 if (!data) 23974 return 1; 23975 for (i = 0; i < pagesize; ++i) 23976 *(data + i) = rand (); 23977 umask (0); 23978 fd = creat ("conftest.mmap", 0600); 23979 if (fd < 0) 23980 return 2; 23981 if (write (fd, data, pagesize) != pagesize) 23982 return 3; 23983 close (fd); 23984 23985 /* Next, check that the tail of a page is zero-filled. File must have 23986 non-zero length, otherwise we risk SIGBUS for entire page. */ 23987 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 23988 if (fd2 < 0) 23989 return 4; 23990 cdata2 = ""; 23991 if (write (fd2, cdata2, 1) != 1) 23992 return 5; 23993 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 23994 if (data2 == MAP_FAILED) 23995 return 6; 23996 for (i = 0; i < pagesize; ++i) 23997 if (*(data2 + i)) 23998 return 7; 23999 close (fd2); 24000 if (munmap (data2, pagesize)) 24001 return 8; 24002 24003 /* Next, try to mmap the file at a fixed address which already has 24004 something else allocated at it. If we can, also make sure that 24005 we see the same garbage. */ 24006 fd = open ("conftest.mmap", O_RDWR); 24007 if (fd < 0) 24008 return 9; 24009 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 24010 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 24011 return 10; 24012 for (i = 0; i < pagesize; ++i) 24013 if (*(data + i) != *(data2 + i)) 24014 return 11; 24015 24016 /* Finally, make sure that changes to the mapped area do not 24017 percolate back to the file as seen by read(). (This is a bug on 24018 some variants of i386 svr4.0.) */ 24019 for (i = 0; i < pagesize; ++i) 24020 *(data2 + i) = *(data2 + i) + 1; 24021 data3 = (char *) malloc (pagesize); 24022 if (!data3) 24023 return 12; 24024 if (read (fd, data3, pagesize) != pagesize) 24025 return 13; 24026 for (i = 0; i < pagesize; ++i) 24027 if (*(data + i) != *(data3 + i)) 24028 return 14; 24029 close (fd); 24030 return 0; 24031} 24032_ACEOF 24033if ac_fn_c_try_run "$LINENO"; then : 24034 ac_cv_func_mmap_fixed_mapped=yes 24035else 24036 ac_cv_func_mmap_fixed_mapped=no 24037fi 24038rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24039 conftest.$ac_objext conftest.beam conftest.$ac_ext 24040fi 24041 24042fi 24043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 24044$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 24045if test $ac_cv_func_mmap_fixed_mapped = yes; then 24046 24047$as_echo "#define HAVE_MMAP 1" >>confdefs.h 24048 24049fi 24050rm -f conftest.mmap conftest.txt 24051 24052for ac_header in vfork.h 24053do : 24054 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 24055if test "x$ac_cv_header_vfork_h" = xyes; then : 24056 cat >>confdefs.h <<_ACEOF 24057#define HAVE_VFORK_H 1 24058_ACEOF 24059 24060fi 24061 24062done 24063 24064for ac_func in fork vfork 24065do : 24066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24067ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24068if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24069 cat >>confdefs.h <<_ACEOF 24070#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24071_ACEOF 24072 24073fi 24074done 24075 24076if test "x$ac_cv_func_fork" = xyes; then 24077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 24078$as_echo_n "checking for working fork... " >&6; } 24079if ${ac_cv_func_fork_works+:} false; then : 24080 $as_echo_n "(cached) " >&6 24081else 24082 if test "$cross_compiling" = yes; then : 24083 ac_cv_func_fork_works=cross 24084else 24085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24086/* end confdefs.h. */ 24087$ac_includes_default 24088int 24089main () 24090{ 24091 24092 /* By Ruediger Kuhlmann. */ 24093 return fork () < 0; 24094 24095 ; 24096 return 0; 24097} 24098_ACEOF 24099if ac_fn_c_try_run "$LINENO"; then : 24100 ac_cv_func_fork_works=yes 24101else 24102 ac_cv_func_fork_works=no 24103fi 24104rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24105 conftest.$ac_objext conftest.beam conftest.$ac_ext 24106fi 24107 24108fi 24109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 24110$as_echo "$ac_cv_func_fork_works" >&6; } 24111 24112else 24113 ac_cv_func_fork_works=$ac_cv_func_fork 24114fi 24115if test "x$ac_cv_func_fork_works" = xcross; then 24116 case $host in 24117 *-*-amigaos* | *-*-msdosdjgpp*) 24118 # Override, as these systems have only a dummy fork() stub 24119 ac_cv_func_fork_works=no 24120 ;; 24121 *) 24122 ac_cv_func_fork_works=yes 24123 ;; 24124 esac 24125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 24126$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 24127fi 24128ac_cv_func_vfork_works=$ac_cv_func_vfork 24129if test "x$ac_cv_func_vfork" = xyes; then 24130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 24131$as_echo_n "checking for working vfork... " >&6; } 24132if ${ac_cv_func_vfork_works+:} false; then : 24133 $as_echo_n "(cached) " >&6 24134else 24135 if test "$cross_compiling" = yes; then : 24136 ac_cv_func_vfork_works=cross 24137else 24138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24139/* end confdefs.h. */ 24140/* Thanks to Paul Eggert for this test. */ 24141$ac_includes_default 24142#include <sys/wait.h> 24143#ifdef HAVE_VFORK_H 24144# include <vfork.h> 24145#endif 24146/* On some sparc systems, changes by the child to local and incoming 24147 argument registers are propagated back to the parent. The compiler 24148 is told about this with #include <vfork.h>, but some compilers 24149 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 24150 static variable whose address is put into a register that is 24151 clobbered by the vfork. */ 24152static void 24153#ifdef __cplusplus 24154sparc_address_test (int arg) 24155# else 24156sparc_address_test (arg) int arg; 24157#endif 24158{ 24159 static pid_t child; 24160 if (!child) { 24161 child = vfork (); 24162 if (child < 0) { 24163 perror ("vfork"); 24164 _exit(2); 24165 } 24166 if (!child) { 24167 arg = getpid(); 24168 write(-1, "", 0); 24169 _exit (arg); 24170 } 24171 } 24172} 24173 24174int 24175main () 24176{ 24177 pid_t parent = getpid (); 24178 pid_t child; 24179 24180 sparc_address_test (0); 24181 24182 child = vfork (); 24183 24184 if (child == 0) { 24185 /* Here is another test for sparc vfork register problems. This 24186 test uses lots of local variables, at least as many local 24187 variables as main has allocated so far including compiler 24188 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 24189 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 24190 reuse the register of parent for one of the local variables, 24191 since it will think that parent can't possibly be used any more 24192 in this routine. Assigning to the local variable will thus 24193 munge parent in the parent process. */ 24194 pid_t 24195 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 24196 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 24197 /* Convince the compiler that p..p7 are live; otherwise, it might 24198 use the same hardware register for all 8 local variables. */ 24199 if (p != p1 || p != p2 || p != p3 || p != p4 24200 || p != p5 || p != p6 || p != p7) 24201 _exit(1); 24202 24203 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 24204 from child file descriptors. If the child closes a descriptor 24205 before it execs or exits, this munges the parent's descriptor 24206 as well. Test for this by closing stdout in the child. */ 24207 _exit(close(fileno(stdout)) != 0); 24208 } else { 24209 int status; 24210 struct stat st; 24211 24212 while (wait(&status) != child) 24213 ; 24214 return ( 24215 /* Was there some problem with vforking? */ 24216 child < 0 24217 24218 /* Did the child fail? (This shouldn't happen.) */ 24219 || status 24220 24221 /* Did the vfork/compiler bug occur? */ 24222 || parent != getpid() 24223 24224 /* Did the file descriptor bug occur? */ 24225 || fstat(fileno(stdout), &st) != 0 24226 ); 24227 } 24228} 24229_ACEOF 24230if ac_fn_c_try_run "$LINENO"; then : 24231 ac_cv_func_vfork_works=yes 24232else 24233 ac_cv_func_vfork_works=no 24234fi 24235rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24236 conftest.$ac_objext conftest.beam conftest.$ac_ext 24237fi 24238 24239fi 24240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 24241$as_echo "$ac_cv_func_vfork_works" >&6; } 24242 24243fi; 24244if test "x$ac_cv_func_fork_works" = xcross; then 24245 ac_cv_func_vfork_works=$ac_cv_func_vfork 24246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 24247$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 24248fi 24249 24250if test "x$ac_cv_func_vfork_works" = xyes; then 24251 24252$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 24253 24254else 24255 24256$as_echo "#define vfork fork" >>confdefs.h 24257 24258fi 24259if test "x$ac_cv_func_fork_works" = xyes; then 24260 24261$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 24262 24263fi 24264 24265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 24266$as_echo_n "checking for working memcmp... " >&6; } 24267if ${ac_cv_func_memcmp_working+:} false; then : 24268 $as_echo_n "(cached) " >&6 24269else 24270 if test "$cross_compiling" = yes; then : 24271 ac_cv_func_memcmp_working=no 24272else 24273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24274/* end confdefs.h. */ 24275$ac_includes_default 24276int 24277main () 24278{ 24279 24280 /* Some versions of memcmp are not 8-bit clean. */ 24281 char c0 = '\100', c1 = '\200', c2 = '\201'; 24282 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 24283 return 1; 24284 24285 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 24286 or more and with at least one buffer not starting on a 4-byte boundary. 24287 William Lewis provided this test program. */ 24288 { 24289 char foo[21]; 24290 char bar[21]; 24291 int i; 24292 for (i = 0; i < 4; i++) 24293 { 24294 char *a = foo + i; 24295 char *b = bar + i; 24296 strcpy (a, "--------01111111"); 24297 strcpy (b, "--------10000000"); 24298 if (memcmp (a, b, 16) >= 0) 24299 return 1; 24300 } 24301 return 0; 24302 } 24303 24304 ; 24305 return 0; 24306} 24307_ACEOF 24308if ac_fn_c_try_run "$LINENO"; then : 24309 ac_cv_func_memcmp_working=yes 24310else 24311 ac_cv_func_memcmp_working=no 24312fi 24313rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24314 conftest.$ac_objext conftest.beam conftest.$ac_ext 24315fi 24316 24317fi 24318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 24319$as_echo "$ac_cv_func_memcmp_working" >&6; } 24320test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 24321 *" memcmp.$ac_objext "* ) ;; 24322 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 24323 ;; 24324esac 24325 24326 24327for ac_header in sys/select.h sys/socket.h 24328do : 24329 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24330ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 24331if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 24332 cat >>confdefs.h <<_ACEOF 24333#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24334_ACEOF 24335 24336fi 24337 24338done 24339 24340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 24341$as_echo_n "checking types of arguments for select... " >&6; } 24342if ${ac_cv_func_select_args+:} false; then : 24343 $as_echo_n "(cached) " >&6 24344else 24345 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 24346 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 24347 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 24348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24349/* end confdefs.h. */ 24350$ac_includes_default 24351#ifdef HAVE_SYS_SELECT_H 24352# include <sys/select.h> 24353#endif 24354#ifdef HAVE_SYS_SOCKET_H 24355# include <sys/socket.h> 24356#endif 24357 24358int 24359main () 24360{ 24361extern int select ($ac_arg1, 24362 $ac_arg234, $ac_arg234, $ac_arg234, 24363 $ac_arg5); 24364 ; 24365 return 0; 24366} 24367_ACEOF 24368if ac_fn_c_try_compile "$LINENO"; then : 24369 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 24370fi 24371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24372 done 24373 done 24374done 24375# Provide a safe default value. 24376: "${ac_cv_func_select_args=int,int *,struct timeval *}" 24377 24378fi 24379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 24380$as_echo "$ac_cv_func_select_args" >&6; } 24381ac_save_IFS=$IFS; IFS=',' 24382set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 24383IFS=$ac_save_IFS 24384shift 24385 24386cat >>confdefs.h <<_ACEOF 24387#define SELECT_TYPE_ARG1 $1 24388_ACEOF 24389 24390 24391cat >>confdefs.h <<_ACEOF 24392#define SELECT_TYPE_ARG234 ($2) 24393_ACEOF 24394 24395 24396cat >>confdefs.h <<_ACEOF 24397#define SELECT_TYPE_ARG5 ($3) 24398_ACEOF 24399 24400rm -f conftest* 24401 24402if ${ac_cv_func_setvbuf_reversed+:} false; then : 24403 $as_echo_n "(cached) " >&6 24404else 24405 ac_cv_func_setvbuf_reversed=no 24406fi 24407 24408 24409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 24410$as_echo_n "checking return type of signal handlers... " >&6; } 24411if ${ac_cv_type_signal+:} false; then : 24412 $as_echo_n "(cached) " >&6 24413else 24414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24415/* end confdefs.h. */ 24416#include <sys/types.h> 24417#include <signal.h> 24418 24419int 24420main () 24421{ 24422return *(signal (0, 0)) (0) == 1; 24423 ; 24424 return 0; 24425} 24426_ACEOF 24427if ac_fn_c_try_compile "$LINENO"; then : 24428 ac_cv_type_signal=int 24429else 24430 ac_cv_type_signal=void 24431fi 24432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24433fi 24434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 24435$as_echo "$ac_cv_type_signal" >&6; } 24436 24437cat >>confdefs.h <<_ACEOF 24438#define RETSIGTYPE $ac_cv_type_signal 24439_ACEOF 24440 24441 24442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 24443$as_echo_n "checking for working strtod... " >&6; } 24444if ${ac_cv_func_strtod+:} false; then : 24445 $as_echo_n "(cached) " >&6 24446else 24447 if test "$cross_compiling" = yes; then : 24448 ac_cv_func_strtod=no 24449else 24450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24451/* end confdefs.h. */ 24452 24453$ac_includes_default 24454#ifndef strtod 24455double strtod (); 24456#endif 24457int 24458main() 24459{ 24460 { 24461 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 24462 char *string = " +69"; 24463 char *term; 24464 double value; 24465 value = strtod (string, &term); 24466 if (value != 69 || term != (string + 4)) 24467 return 1; 24468 } 24469 24470 { 24471 /* Under Solaris 2.4, strtod returns the wrong value for the 24472 terminating character under some conditions. */ 24473 char *string = "NaN"; 24474 char *term; 24475 strtod (string, &term); 24476 if (term != string && *(term - 1) == 0) 24477 return 1; 24478 } 24479 return 0; 24480} 24481 24482_ACEOF 24483if ac_fn_c_try_run "$LINENO"; then : 24484 ac_cv_func_strtod=yes 24485else 24486 ac_cv_func_strtod=no 24487fi 24488rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24489 conftest.$ac_objext conftest.beam conftest.$ac_ext 24490fi 24491 24492fi 24493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 24494$as_echo "$ac_cv_func_strtod" >&6; } 24495if test $ac_cv_func_strtod = no; then 24496 case " $LIBOBJS " in 24497 *" strtod.$ac_objext "* ) ;; 24498 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" 24499 ;; 24500esac 24501 24502ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" 24503if test "x$ac_cv_func_pow" = xyes; then : 24504 24505fi 24506 24507if test $ac_cv_func_pow = no; then 24508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 24509$as_echo_n "checking for pow in -lm... " >&6; } 24510if ${ac_cv_lib_m_pow+:} false; then : 24511 $as_echo_n "(cached) " >&6 24512else 24513 ac_check_lib_save_LIBS=$LIBS 24514LIBS="-lm $LIBS" 24515cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24516/* end confdefs.h. */ 24517 24518/* Override any GCC internal prototype to avoid an error. 24519 Use char because int might match the return type of a GCC 24520 builtin and then its argument prototype would still apply. */ 24521#ifdef __cplusplus 24522extern "C" 24523#endif 24524char pow (); 24525int 24526main () 24527{ 24528return pow (); 24529 ; 24530 return 0; 24531} 24532_ACEOF 24533if ac_fn_c_try_link "$LINENO"; then : 24534 ac_cv_lib_m_pow=yes 24535else 24536 ac_cv_lib_m_pow=no 24537fi 24538rm -f core conftest.err conftest.$ac_objext \ 24539 conftest$ac_exeext conftest.$ac_ext 24540LIBS=$ac_check_lib_save_LIBS 24541fi 24542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 24543$as_echo "$ac_cv_lib_m_pow" >&6; } 24544if test "x$ac_cv_lib_m_pow" = xyes; then : 24545 POW_LIB=-lm 24546else 24547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 24548$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 24549fi 24550 24551fi 24552 24553fi 24554 24555ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 24556if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 24557 ac_have_decl=1 24558else 24559 ac_have_decl=0 24560fi 24561 24562cat >>confdefs.h <<_ACEOF 24563#define HAVE_DECL_STRERROR_R $ac_have_decl 24564_ACEOF 24565 24566for ac_func in strerror_r 24567do : 24568 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 24569if test "x$ac_cv_func_strerror_r" = xyes; then : 24570 cat >>confdefs.h <<_ACEOF 24571#define HAVE_STRERROR_R 1 24572_ACEOF 24573 24574fi 24575done 24576 24577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 24578$as_echo_n "checking whether strerror_r returns char *... " >&6; } 24579if ${ac_cv_func_strerror_r_char_p+:} false; then : 24580 $as_echo_n "(cached) " >&6 24581else 24582 24583 ac_cv_func_strerror_r_char_p=no 24584 if test $ac_cv_have_decl_strerror_r = yes; then 24585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24586/* end confdefs.h. */ 24587$ac_includes_default 24588int 24589main () 24590{ 24591 24592 char buf[100]; 24593 char x = *strerror_r (0, buf, sizeof buf); 24594 char *p = strerror_r (0, buf, sizeof buf); 24595 return !p || x; 24596 24597 ; 24598 return 0; 24599} 24600_ACEOF 24601if ac_fn_c_try_compile "$LINENO"; then : 24602 ac_cv_func_strerror_r_char_p=yes 24603fi 24604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24605 else 24606 # strerror_r is not declared. Choose between 24607 # systems that have relatively inaccessible declarations for the 24608 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 24609 # former has a strerror_r that returns char*, while the latter 24610 # has a strerror_r that returns `int'. 24611 # This test should segfault on the DEC system. 24612 if test "$cross_compiling" = yes; then : 24613 : 24614else 24615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24616/* end confdefs.h. */ 24617$ac_includes_default 24618 extern char *strerror_r (); 24619int 24620main () 24621{ 24622char buf[100]; 24623 char x = *strerror_r (0, buf, sizeof buf); 24624 return ! isalpha (x); 24625 ; 24626 return 0; 24627} 24628_ACEOF 24629if ac_fn_c_try_run "$LINENO"; then : 24630 ac_cv_func_strerror_r_char_p=yes 24631fi 24632rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24633 conftest.$ac_objext conftest.beam conftest.$ac_ext 24634fi 24635 24636 fi 24637 24638fi 24639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 24640$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 24641if test $ac_cv_func_strerror_r_char_p = yes; then 24642 24643$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 24644 24645fi 24646 24647for ac_func in vprintf 24648do : 24649 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 24650if test "x$ac_cv_func_vprintf" = xyes; then : 24651 cat >>confdefs.h <<_ACEOF 24652#define HAVE_VPRINTF 1 24653_ACEOF 24654 24655ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 24656if test "x$ac_cv_func__doprnt" = xyes; then : 24657 24658$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 24659 24660fi 24661 24662fi 24663done 24664 24665 24666 24667# 24668# Find math library 24669# 24670MATH_LIBS='' 24671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 24672$as_echo_n "checking for sqrt in -lm... " >&6; } 24673if ${ac_cv_lib_m_sqrt+:} false; then : 24674 $as_echo_n "(cached) " >&6 24675else 24676 ac_check_lib_save_LIBS=$LIBS 24677LIBS="-lm $LIBS" 24678cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24679/* end confdefs.h. */ 24680 24681/* Override any GCC internal prototype to avoid an error. 24682 Use char because int might match the return type of a GCC 24683 builtin and then its argument prototype would still apply. */ 24684#ifdef __cplusplus 24685extern "C" 24686#endif 24687char sqrt (); 24688int 24689main () 24690{ 24691return sqrt (); 24692 ; 24693 return 0; 24694} 24695_ACEOF 24696if ac_fn_c_try_link "$LINENO"; then : 24697 ac_cv_lib_m_sqrt=yes 24698else 24699 ac_cv_lib_m_sqrt=no 24700fi 24701rm -f core conftest.err conftest.$ac_objext \ 24702 conftest$ac_exeext conftest.$ac_ext 24703LIBS=$ac_check_lib_save_LIBS 24704fi 24705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 24706$as_echo "$ac_cv_lib_m_sqrt" >&6; } 24707if test "x$ac_cv_lib_m_sqrt" = xyes; then : 24708 MATH_LIBS="-lm" 24709fi 24710 24711LIBS="$MATH_LIBS $LIBS" 24712 24713 24714for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _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 setlocale 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 24715do : 24716 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24717ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24718if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24719 cat >>confdefs.h <<_ACEOF 24720#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24721_ACEOF 24722 24723fi 24724done 24725 24726 24727# 24728# Check for clock_gettime(). 24729# 24730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 24731$as_echo_n "checking for library containing clock_gettime... " >&6; } 24732if ${ac_cv_search_clock_gettime+:} false; then : 24733 $as_echo_n "(cached) " >&6 24734else 24735 ac_func_search_save_LIBS=$LIBS 24736cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24737/* end confdefs.h. */ 24738 24739/* Override any GCC internal prototype to avoid an error. 24740 Use char because int might match the return type of a GCC 24741 builtin and then its argument prototype would still apply. */ 24742#ifdef __cplusplus 24743extern "C" 24744#endif 24745char clock_gettime (); 24746int 24747main () 24748{ 24749return clock_gettime (); 24750 ; 24751 return 0; 24752} 24753_ACEOF 24754for ac_lib in '' rt; do 24755 if test -z "$ac_lib"; then 24756 ac_res="none required" 24757 else 24758 ac_res=-l$ac_lib 24759 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24760 fi 24761 if ac_fn_c_try_link "$LINENO"; then : 24762 ac_cv_search_clock_gettime=$ac_res 24763fi 24764rm -f core conftest.err conftest.$ac_objext \ 24765 conftest$ac_exeext 24766 if ${ac_cv_search_clock_gettime+:} false; then : 24767 break 24768fi 24769done 24770if ${ac_cv_search_clock_gettime+:} false; then : 24771 24772else 24773 ac_cv_search_clock_gettime=no 24774fi 24775rm conftest.$ac_ext 24776LIBS=$ac_func_search_save_LIBS 24777fi 24778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 24779$as_echo "$ac_cv_search_clock_gettime" >&6; } 24780ac_res=$ac_cv_search_clock_gettime 24781if test "$ac_res" != no; then : 24782 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24783 24784 24785$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 24786 24787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5 24788$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; } 24789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24790/* end confdefs.h. */ 24791 24792 #include <time.h> 24793int 24794main () 24795{ 24796clockid_t clockType = CLOCK_REALTIME; 24797 ; 24798 return 0; 24799} 24800_ACEOF 24801if ac_fn_c_try_compile "$LINENO"; then : 24802 24803 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 24804$as_echo "$as_me: yes" >&6;} 24805 24806$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h 24807 24808 24809else 24810 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 24811$as_echo "$as_me: no" >&6;} 24812 24813fi 24814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24815 24816else 24817 24818 for ac_func in gettimeofday ftime 24819do : 24820 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24821ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24822if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24823 cat >>confdefs.h <<_ACEOF 24824#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24825_ACEOF 24826 break 24827fi 24828done 24829 24830 24831 24832fi 24833 24834 24835######## 24836# 24837# Check for function prototypes 24838# 24839######## 24840 24841ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" " 24842#include <unistd.h> 24843" 24844if test "x$ac_cv_have_decl_pread" = xyes; then : 24845 ac_have_decl=1 24846else 24847 ac_have_decl=0 24848fi 24849 24850cat >>confdefs.h <<_ACEOF 24851#define HAVE_DECL_PREAD $ac_have_decl 24852_ACEOF 24853ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" " 24854#include <unistd.h> 24855" 24856if test "x$ac_cv_have_decl_pwrite" = xyes; then : 24857 ac_have_decl=1 24858else 24859 ac_have_decl=0 24860fi 24861 24862cat >>confdefs.h <<_ACEOF 24863#define HAVE_DECL_PWRITE $ac_have_decl 24864_ACEOF 24865 24866 24867ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" " 24868#include <strings.h> 24869" 24870if test "x$ac_cv_have_decl_strlcpy" = xyes; then : 24871 ac_have_decl=1 24872else 24873 ac_have_decl=0 24874fi 24875 24876cat >>confdefs.h <<_ACEOF 24877#define HAVE_DECL_STRLCPY $ac_have_decl 24878_ACEOF 24879 24880 24881ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" " 24882#include <stdio.h> 24883#include <stdarg.h> 24884" 24885if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : 24886 ac_have_decl=1 24887else 24888 ac_have_decl=0 24889fi 24890 24891cat >>confdefs.h <<_ACEOF 24892#define HAVE_DECL_VSNPRINTF $ac_have_decl 24893_ACEOF 24894 24895 24896######## 24897# 24898# C++ Support Tests (For Magick++) 24899# 24900######## 24901have_magick_plus_plus='no' 24902if test "$with_magick_plus_plus" = 'yes'; then 24903 OLIBS="$LIBS" 24904 LIBS='' 24905 ac_ext=cpp 24906ac_cpp='$CXXCPP $CPPFLAGS' 24907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24910 24911 24912 # Full set of headers used... 24913 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception 24914 # functional iomanip iosfwd iostream iterator list string strstream utility 24915 ac_ext=cpp 24916ac_cpp='$CXXCPP $CPPFLAGS' 24917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24920 24921 ac_ext=cpp 24922ac_cpp='$CXXCPP $CPPFLAGS' 24923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24926if test -z "$CXX"; then 24927 if test -n "$CCC"; then 24928 CXX=$CCC 24929 else 24930 if test -n "$ac_tool_prefix"; then 24931 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 24932 do 24933 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 24934set dummy $ac_tool_prefix$ac_prog; ac_word=$2 24935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24936$as_echo_n "checking for $ac_word... " >&6; } 24937if ${ac_cv_prog_CXX+:} false; then : 24938 $as_echo_n "(cached) " >&6 24939else 24940 if test -n "$CXX"; then 24941 ac_cv_prog_CXX="$CXX" # Let the user override the test. 24942else 24943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24944for as_dir in $PATH 24945do 24946 IFS=$as_save_IFS 24947 test -z "$as_dir" && as_dir=. 24948 for ac_exec_ext in '' $ac_executable_extensions; do 24949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24950 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 24951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24952 break 2 24953 fi 24954done 24955 done 24956IFS=$as_save_IFS 24957 24958fi 24959fi 24960CXX=$ac_cv_prog_CXX 24961if test -n "$CXX"; then 24962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 24963$as_echo "$CXX" >&6; } 24964else 24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24966$as_echo "no" >&6; } 24967fi 24968 24969 24970 test -n "$CXX" && break 24971 done 24972fi 24973if test -z "$CXX"; then 24974 ac_ct_CXX=$CXX 24975 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 24976do 24977 # Extract the first word of "$ac_prog", so it can be a program name with args. 24978set dummy $ac_prog; ac_word=$2 24979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24980$as_echo_n "checking for $ac_word... " >&6; } 24981if ${ac_cv_prog_ac_ct_CXX+:} false; then : 24982 $as_echo_n "(cached) " >&6 24983else 24984 if test -n "$ac_ct_CXX"; then 24985 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 24986else 24987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24988for as_dir in $PATH 24989do 24990 IFS=$as_save_IFS 24991 test -z "$as_dir" && as_dir=. 24992 for ac_exec_ext in '' $ac_executable_extensions; do 24993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24994 ac_cv_prog_ac_ct_CXX="$ac_prog" 24995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24996 break 2 24997 fi 24998done 24999 done 25000IFS=$as_save_IFS 25001 25002fi 25003fi 25004ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 25005if test -n "$ac_ct_CXX"; then 25006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 25007$as_echo "$ac_ct_CXX" >&6; } 25008else 25009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25010$as_echo "no" >&6; } 25011fi 25012 25013 25014 test -n "$ac_ct_CXX" && break 25015done 25016 25017 if test "x$ac_ct_CXX" = x; then 25018 CXX="g++" 25019 else 25020 case $cross_compiling:$ac_tool_warned in 25021yes:) 25022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 25023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 25024ac_tool_warned=yes ;; 25025esac 25026 CXX=$ac_ct_CXX 25027 fi 25028fi 25029 25030 fi 25031fi 25032# Provide some information about the compiler. 25033$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 25034set X $ac_compile 25035ac_compiler=$2 25036for ac_option in --version -v -V -qversion; do 25037 { { ac_try="$ac_compiler $ac_option >&5" 25038case "(($ac_try" in 25039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25040 *) ac_try_echo=$ac_try;; 25041esac 25042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 25043$as_echo "$ac_try_echo"; } >&5 25044 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 25045 ac_status=$? 25046 if test -s conftest.err; then 25047 sed '10a\ 25048... rest of stderr output deleted ... 25049 10q' conftest.err >conftest.er1 25050 cat conftest.er1 >&5 25051 fi 25052 rm -f conftest.er1 conftest.err 25053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25054 test $ac_status = 0; } 25055done 25056 25057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 25058$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 25059if ${ac_cv_cxx_compiler_gnu+:} false; then : 25060 $as_echo_n "(cached) " >&6 25061else 25062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25063/* end confdefs.h. */ 25064 25065int 25066main () 25067{ 25068#ifndef __GNUC__ 25069 choke me 25070#endif 25071 25072 ; 25073 return 0; 25074} 25075_ACEOF 25076if ac_fn_cxx_try_compile "$LINENO"; then : 25077 ac_compiler_gnu=yes 25078else 25079 ac_compiler_gnu=no 25080fi 25081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25082ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 25083 25084fi 25085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 25086$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 25087if test $ac_compiler_gnu = yes; then 25088 GXX=yes 25089else 25090 GXX= 25091fi 25092ac_test_CXXFLAGS=${CXXFLAGS+set} 25093ac_save_CXXFLAGS=$CXXFLAGS 25094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 25095$as_echo_n "checking whether $CXX accepts -g... " >&6; } 25096if ${ac_cv_prog_cxx_g+:} false; then : 25097 $as_echo_n "(cached) " >&6 25098else 25099 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 25100 ac_cxx_werror_flag=yes 25101 ac_cv_prog_cxx_g=no 25102 CXXFLAGS="-g" 25103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25104/* end confdefs.h. */ 25105 25106int 25107main () 25108{ 25109 25110 ; 25111 return 0; 25112} 25113_ACEOF 25114if ac_fn_cxx_try_compile "$LINENO"; then : 25115 ac_cv_prog_cxx_g=yes 25116else 25117 CXXFLAGS="" 25118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25119/* end confdefs.h. */ 25120 25121int 25122main () 25123{ 25124 25125 ; 25126 return 0; 25127} 25128_ACEOF 25129if ac_fn_cxx_try_compile "$LINENO"; then : 25130 25131else 25132 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 25133 CXXFLAGS="-g" 25134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25135/* end confdefs.h. */ 25136 25137int 25138main () 25139{ 25140 25141 ; 25142 return 0; 25143} 25144_ACEOF 25145if ac_fn_cxx_try_compile "$LINENO"; then : 25146 ac_cv_prog_cxx_g=yes 25147fi 25148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25149fi 25150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25151fi 25152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25153 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 25154fi 25155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 25156$as_echo "$ac_cv_prog_cxx_g" >&6; } 25157if test "$ac_test_CXXFLAGS" = set; then 25158 CXXFLAGS=$ac_save_CXXFLAGS 25159elif test $ac_cv_prog_cxx_g = yes; then 25160 if test "$GXX" = yes; then 25161 CXXFLAGS="-g -O2" 25162 else 25163 CXXFLAGS="-g" 25164 fi 25165else 25166 if test "$GXX" = yes; then 25167 CXXFLAGS="-O2" 25168 else 25169 CXXFLAGS= 25170 fi 25171fi 25172ac_ext=cpp 25173ac_cpp='$CXXCPP $CPPFLAGS' 25174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25177 25178depcc="$CXX" am_compiler_list= 25179 25180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 25181$as_echo_n "checking dependency style of $depcc... " >&6; } 25182if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 25183 $as_echo_n "(cached) " >&6 25184else 25185 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 25186 # We make a subdir and do the tests there. Otherwise we can end up 25187 # making bogus files that we don't know about and never remove. For 25188 # instance it was reported that on HP-UX the gcc test will end up 25189 # making a dummy file named 'D' -- because '-MD' means "put the output 25190 # in D". 25191 rm -rf conftest.dir 25192 mkdir conftest.dir 25193 # Copy depcomp to subdir because otherwise we won't find it if we're 25194 # using a relative directory. 25195 cp "$am_depcomp" conftest.dir 25196 cd conftest.dir 25197 # We will build objects and dependencies in a subdirectory because 25198 # it helps to detect inapplicable dependency modes. For instance 25199 # both Tru64's cc and ICC support -MD to output dependencies as a 25200 # side effect of compilation, but ICC will put the dependencies in 25201 # the current directory while Tru64 will put them in the object 25202 # directory. 25203 mkdir sub 25204 25205 am_cv_CXX_dependencies_compiler_type=none 25206 if test "$am_compiler_list" = ""; then 25207 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 25208 fi 25209 am__universal=false 25210 case " $depcc " in #( 25211 *\ -arch\ *\ -arch\ *) am__universal=true ;; 25212 esac 25213 25214 for depmode in $am_compiler_list; do 25215 # Setup a source with many dependencies, because some compilers 25216 # like to wrap large dependency lists on column 80 (with \), and 25217 # we should not choose a depcomp mode which is confused by this. 25218 # 25219 # We need to recreate these files for each test, as the compiler may 25220 # overwrite some of them when testing with obscure command lines. 25221 # This happens at least with the AIX C compiler. 25222 : > sub/conftest.c 25223 for i in 1 2 3 4 5 6; do 25224 echo '#include "conftst'$i'.h"' >> sub/conftest.c 25225 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 25226 # Solaris 10 /bin/sh. 25227 echo '/* dummy */' > sub/conftst$i.h 25228 done 25229 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 25230 25231 # We check with '-c' and '-o' for the sake of the "dashmstdout" 25232 # mode. It turns out that the SunPro C++ compiler does not properly 25233 # handle '-M -o', and we need to detect this. Also, some Intel 25234 # versions had trouble with output in subdirs. 25235 am__obj=sub/conftest.${OBJEXT-o} 25236 am__minus_obj="-o $am__obj" 25237 case $depmode in 25238 gcc) 25239 # This depmode causes a compiler race in universal mode. 25240 test "$am__universal" = false || continue 25241 ;; 25242 nosideeffect) 25243 # After this tag, mechanisms are not by side-effect, so they'll 25244 # only be used when explicitly requested. 25245 if test "x$enable_dependency_tracking" = xyes; then 25246 continue 25247 else 25248 break 25249 fi 25250 ;; 25251 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 25252 # This compiler won't grok '-c -o', but also, the minuso test has 25253 # not run yet. These depmodes are late enough in the game, and 25254 # so weak that their functioning should not be impacted. 25255 am__obj=conftest.${OBJEXT-o} 25256 am__minus_obj= 25257 ;; 25258 none) break ;; 25259 esac 25260 if depmode=$depmode \ 25261 source=sub/conftest.c object=$am__obj \ 25262 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 25263 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 25264 >/dev/null 2>conftest.err && 25265 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 25266 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 25267 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 25268 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 25269 # icc doesn't choke on unknown options, it will just issue warnings 25270 # or remarks (even with -Werror). So we grep stderr for any message 25271 # that says an option was ignored or not supported. 25272 # When given -MP, icc 7.0 and 7.1 complain thusly: 25273 # icc: Command line warning: ignoring option '-M'; no argument required 25274 # The diagnosis changed in icc 8.0: 25275 # icc: Command line remark: option '-MP' not supported 25276 if (grep 'ignoring option' conftest.err || 25277 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 25278 am_cv_CXX_dependencies_compiler_type=$depmode 25279 break 25280 fi 25281 fi 25282 done 25283 25284 cd .. 25285 rm -rf conftest.dir 25286else 25287 am_cv_CXX_dependencies_compiler_type=none 25288fi 25289 25290fi 25291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 25292$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 25293CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 25294 25295 if 25296 test "x$enable_dependency_tracking" != xno \ 25297 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 25298 am__fastdepCXX_TRUE= 25299 am__fastdepCXX_FALSE='#' 25300else 25301 am__fastdepCXX_TRUE='#' 25302 am__fastdepCXX_FALSE= 25303fi 25304 25305 25306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5 25307$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; } 25308if ${ax_cv_cxx_bool+:} false; then : 25309 $as_echo_n "(cached) " >&6 25310else 25311 25312 ac_ext=cpp 25313ac_cpp='$CXXCPP $CPPFLAGS' 25314ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25315ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25316ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25317 25318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25319/* end confdefs.h. */ 25320 25321int f(int x){return 1;} 25322int f(char x){return 1;} 25323int f(bool x){return 1;} 25324 25325int 25326main () 25327{ 25328bool b = true; return f(b); 25329 ; 25330 return 0; 25331} 25332_ACEOF 25333if ac_fn_cxx_try_compile "$LINENO"; then : 25334 ax_cv_cxx_bool=yes 25335else 25336 ax_cv_cxx_bool=no 25337fi 25338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25339 ac_ext=cpp 25340ac_cpp='$CXXCPP $CPPFLAGS' 25341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25344 25345 25346fi 25347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5 25348$as_echo "$ax_cv_cxx_bool" >&6; } 25349if test "$ax_cv_cxx_bool" = yes; then 25350 25351$as_echo "#define HAVE_BOOL /**/" >>confdefs.h 25352 25353fi 25354 25355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5 25356$as_echo_n "checking whether the compiler implements namespaces... " >&6; } 25357if ${ax_cv_cxx_namespaces+:} false; then : 25358 $as_echo_n "(cached) " >&6 25359else 25360 25361 ac_ext=cpp 25362ac_cpp='$CXXCPP $CPPFLAGS' 25363ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25364ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25365ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25366 25367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25368/* end confdefs.h. */ 25369namespace Outer { namespace Inner { int i = 0; }} 25370int 25371main () 25372{ 25373using namespace Outer::Inner; return i; 25374 ; 25375 return 0; 25376} 25377_ACEOF 25378if ac_fn_cxx_try_compile "$LINENO"; then : 25379 ax_cv_cxx_namespaces=yes 25380else 25381 ax_cv_cxx_namespaces=no 25382fi 25383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25384 ac_ext=cpp 25385ac_cpp='$CXXCPP $CPPFLAGS' 25386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25389 25390 25391fi 25392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5 25393$as_echo "$ax_cv_cxx_namespaces" >&6; } 25394if test "$ax_cv_cxx_namespaces" = yes; then 25395 25396$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h 25397 25398fi 25399 25400 25401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5 25402$as_echo_n "checking if g++ supports namespace std... " >&6; } 25403if ${ax_cv_cxx_have_std_namespace+:} false; then : 25404 $as_echo_n "(cached) " >&6 25405else 25406 25407 ac_ext=cpp 25408ac_cpp='$CXXCPP $CPPFLAGS' 25409ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25410ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25411ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25412 25413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25414/* end confdefs.h. */ 25415#include <iostream> 25416 std::istream& is = std::cin; 25417int 25418main () 25419{ 25420 25421 ; 25422 return 0; 25423} 25424_ACEOF 25425if ac_fn_cxx_try_compile "$LINENO"; then : 25426 ax_cv_cxx_have_std_namespace=yes 25427else 25428 ax_cv_cxx_have_std_namespace=no 25429fi 25430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25431 ac_ext=cpp 25432ac_cpp='$CXXCPP $CPPFLAGS' 25433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25436 25437 25438fi 25439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5 25440$as_echo "$ax_cv_cxx_have_std_namespace" >&6; } 25441 if test "$ax_cv_cxx_have_std_namespace" = yes; then 25442 25443$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h 25444 25445 fi 25446 25447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5 25448$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; } 25449if ${ac_cv_cxx_have_std_libs+:} false; then : 25450 $as_echo_n "(cached) " >&6 25451else 25452 25453 25454 ac_ext=cpp 25455ac_cpp='$CXXCPP $CPPFLAGS' 25456ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25457ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25458ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25459 25460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25461/* end confdefs.h. */ 25462#include <iostream> 25463#include <map> 25464#include <iomanip> 25465#include <cmath> 25466#ifdef HAVE_NAMESPACES 25467using namespace std; 25468#endif 25469int 25470main () 25471{ 25472return 0; 25473 ; 25474 return 0; 25475} 25476_ACEOF 25477if ac_fn_cxx_try_compile "$LINENO"; then : 25478 ac_cv_cxx_have_std_libs=yes 25479else 25480 ac_cv_cxx_have_std_libs=no 25481fi 25482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25483 ac_ext=cpp 25484ac_cpp='$CXXCPP $CPPFLAGS' 25485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25486ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25488 25489 25490fi 25491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5 25492$as_echo "$ac_cv_cxx_have_std_libs" >&6; } 25493if test "$ac_cv_cxx_have_std_libs" = yes; then 25494 25495$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h 25496 25497fi 25498 25499 25500 OPENMP_CXXFLAGS= 25501 # Check whether --enable-openmp was given. 25502if test "${enable_openmp+set}" = set; then : 25503 enableval=$enable_openmp; 25504fi 25505 25506 if test "$enable_openmp" != no; then 25507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5 25508$as_echo_n "checking for $CXX option to support OpenMP... " >&6; } 25509if ${ac_cv_prog_cxx_openmp+:} false; then : 25510 $as_echo_n "(cached) " >&6 25511else 25512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25513/* end confdefs.h. */ 25514 25515#ifndef _OPENMP 25516 choke me 25517#endif 25518#include <omp.h> 25519int main () { return omp_get_num_threads (); } 25520 25521_ACEOF 25522if ac_fn_cxx_try_link "$LINENO"; then : 25523 ac_cv_prog_cxx_openmp='none needed' 25524else 25525 ac_cv_prog_cxx_openmp='unsupported' 25526 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \ 25527 -Popenmp --openmp; do 25528 ac_save_CXXFLAGS=$CXXFLAGS 25529 CXXFLAGS="$CXXFLAGS $ac_option" 25530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25531/* end confdefs.h. */ 25532 25533#ifndef _OPENMP 25534 choke me 25535#endif 25536#include <omp.h> 25537int main () { return omp_get_num_threads (); } 25538 25539_ACEOF 25540if ac_fn_cxx_try_link "$LINENO"; then : 25541 ac_cv_prog_cxx_openmp=$ac_option 25542fi 25543rm -f core conftest.err conftest.$ac_objext \ 25544 conftest$ac_exeext conftest.$ac_ext 25545 CXXFLAGS=$ac_save_CXXFLAGS 25546 if test "$ac_cv_prog_cxx_openmp" != unsupported; then 25547 break 25548 fi 25549 done 25550fi 25551rm -f core conftest.err conftest.$ac_objext \ 25552 conftest$ac_exeext conftest.$ac_ext 25553fi 25554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5 25555$as_echo "$ac_cv_prog_cxx_openmp" >&6; } 25556 case $ac_cv_prog_cxx_openmp in #( 25557 "none needed" | unsupported) 25558 ;; #( 25559 *) 25560 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;; 25561 esac 25562 fi 25563 25564 25565 ac_ext=c 25566ac_cpp='$CPP $CPPFLAGS' 25567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25569ac_compiler_gnu=$ac_cv_c_compiler_gnu 25570 25571 25572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5 25573$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; } 25574 if \ 25575 test $ax_cv_cxx_bool = 'yes' && \ 25576 test $ax_cv_cxx_namespaces = 'yes' && \ 25577 test $ac_cv_cxx_have_std_libs = 'yes' && \ 25578 test $ax_cv_cxx_have_std_namespace = 'yes'; then 25579 have_magick_plus_plus='yes' 25580 else 25581 have_magick_plus_plus='no (failed tests)' 25582 fi 25583 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5 25584$as_echo "$as_me: $have_magick_plus_plus" >&6;} 25585 LIBS="$OLIBS" 25586fi 25587 if test "$have_magick_plus_plus" = 'yes'; then 25588 WITH_MAGICK_PLUS_PLUS_TRUE= 25589 WITH_MAGICK_PLUS_PLUS_FALSE='#' 25590else 25591 WITH_MAGICK_PLUS_PLUS_TRUE='#' 25592 WITH_MAGICK_PLUS_PLUS_FALSE= 25593fi 25594 25595 25596# Only check for delegate libraries in subdirectories if requested. 25597if test "$enable_delegate_build" != 'no'; then 25598 # Check for delegate sub-directories and add -I & -L options as required. 25599 # This presumes that delegates are installed as detailed in the ImageMagick 25600 # README. If delegates are installed in a standard location where the 25601 # compiler will automatically find them then these options should not be 25602 # required. 25603 25604 # 25605 # Most delegates have includes in the same directory as the library, but not all... 25606 # 25607 # Includes 25608 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do 25609 if test -d "$builddir/$dir"; then 25610 CPPFLAGS="$CPPFLAGS -I$builddir/$dir" 25611 else 25612 if test -d "$srcdirfull/$dir"; then 25613 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir" 25614 fi 25615 fi 25616 done 25617 25618 # Libraries 25619 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do 25620 if test -d "$builddir/$dir/.libs"; then 25621 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs" 25622 else 25623 if test -d "$srcdirfull/$dir/.libs"; then 25624 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs" 25625 fi 25626 fi 25627 if test -d "$builddir/$dir"; then 25628 LDFLAGS="$LDFLAGS -L$builddir/$dir" 25629 else 25630 if test -d "$srcdirfull/$dir"; then 25631 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir" 25632 fi 25633 fi 25634 done 25635fi 25636 25637# Assume that delegate headers reside under same directory as ImageMagick 25638# installation prefix. 25639MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS" 25640 25641# 25642# Find the X11 RGB database 25643# 25644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5 25645$as_echo_n "checking for X11 configure files... " >&6; } 25646if ${im_cv_x_configure+:} false; then : 25647 $as_echo_n "(cached) " >&6 25648else 25649 # Look for the header file in a standard set of common directories. 25650# Check X11 before X11Rn because it is often a symlink to the current release. 25651 for ac_dir in \ 25652 /lib/usr/lib/X11 \ 25653 /usr/X11/lib \ 25654 /usr/X11R4/lib \ 25655 /usr/X11R5/lib \ 25656 /usr/X11R6/lib \ 25657 /usr/X11R7/lib \ 25658 /usr/X386/lib \ 25659 /usr/XFree86/lib/X11 \ 25660 /usr/athena/lib \ 25661 /usr/lib \ 25662 /usr/lib/X11 \ 25663 /usr/lib/X11R4 \ 25664 /usr/lib/X11R5 \ 25665 /usr/lib/X11R6 \ 25666 /usr/lib/X11R7 \ 25667 /usr/local/X11/lib \ 25668 /usr/local/X11R4/lib \ 25669 /usr/local/X11R5/lib \ 25670 /usr/local/X11R6/lib \ 25671 /usr/local/lib \ 25672 /usr/local/lib/X11 \ 25673 /usr/local/lib/X11R4 \ 25674 /usr/local/lib/X11R5 \ 25675 /usr/local/lib/X11R6 \ 25676 /usr/local/lib/X11R7 \ 25677 /usr/local/x11r5/lib \ 25678 /usr/lpp/Xamples/lib \ 25679 /usr/openwin/lib \ 25680 /usr/openwin/share/lib \ 25681 /usr/unsupported/lib \ 25682 /usr/x386/lib \ 25683 ; do 25684 if test -f "$ac_dir/X11/rgb.txt"; then 25685 im_cv_x_configure="$ac_dir/X11/" 25686 break 25687 elif test -f "$ac_dir/rgb.txt"; then 25688 im_cv_x_configure="$ac_dir/" 25689 break 25690 fi 25691 25692 done 25693fi 25694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5 25695$as_echo "$im_cv_x_configure" >&6; } 25696X11_CONFIGURE_PATH="$im_cv_x_configure" 25697case "${build_os}" in 25698 mingw* ) 25699 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1` 25700 ;; 25701esac 25702 25703cat >>confdefs.h <<_ACEOF 25704#define X11_CONFIGURE_PATH "$X11ConfigurePath" 25705_ACEOF 25706 25707 25708# 25709# Find OpenMP library 25710# 25711GOMP_LIBS='' 25712if test "$enable_openmp" != 'no'; then 25713 if test "${GCC}" = "yes"; then 25714 # Open64 (passes for GCC but uses different OpenMP implementation) 25715 if test "x$GOMP_LIBS" = x ; then 25716 if $CC --version 2>&1 | grep Open64 > /dev/null ; then 25717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5 25718$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; } 25719if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then : 25720 $as_echo_n "(cached) " >&6 25721else 25722 ac_check_lib_save_LIBS=$LIBS 25723LIBS="-lopenmp $LIBS" 25724cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25725/* end confdefs.h. */ 25726 25727/* Override any GCC internal prototype to avoid an error. 25728 Use char because int might match the return type of a GCC 25729 builtin and then its argument prototype would still apply. */ 25730#ifdef __cplusplus 25731extern "C" 25732#endif 25733char omp_get_num_procs (); 25734int 25735main () 25736{ 25737return omp_get_num_procs (); 25738 ; 25739 return 0; 25740} 25741_ACEOF 25742if ac_fn_c_try_link "$LINENO"; then : 25743 ac_cv_lib_openmp_omp_get_num_procs=yes 25744else 25745 ac_cv_lib_openmp_omp_get_num_procs=no 25746fi 25747rm -f core conftest.err conftest.$ac_objext \ 25748 conftest$ac_exeext conftest.$ac_ext 25749LIBS=$ac_check_lib_save_LIBS 25750fi 25751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5 25752$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; } 25753if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then : 25754 GOMP_LIBS="-lopenmp" 25755fi 25756 25757 fi 25758 fi 25759 # GCC 25760 if test "x$GOMP_LIBS" = x ; then 25761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5 25762$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; } 25763if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then : 25764 $as_echo_n "(cached) " >&6 25765else 25766 ac_check_lib_save_LIBS=$LIBS 25767LIBS="-lgomp $LIBS" 25768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25769/* end confdefs.h. */ 25770 25771/* Override any GCC internal prototype to avoid an error. 25772 Use char because int might match the return type of a GCC 25773 builtin and then its argument prototype would still apply. */ 25774#ifdef __cplusplus 25775extern "C" 25776#endif 25777char GOMP_parallel_start (); 25778int 25779main () 25780{ 25781return GOMP_parallel_start (); 25782 ; 25783 return 0; 25784} 25785_ACEOF 25786if ac_fn_c_try_link "$LINENO"; then : 25787 ac_cv_lib_gomp_GOMP_parallel_start=yes 25788else 25789 ac_cv_lib_gomp_GOMP_parallel_start=no 25790fi 25791rm -f core conftest.err conftest.$ac_objext \ 25792 conftest$ac_exeext conftest.$ac_ext 25793LIBS=$ac_check_lib_save_LIBS 25794fi 25795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5 25796$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; } 25797if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then : 25798 GOMP_LIBS="-lgomp" 25799fi 25800 25801 fi 25802 else 25803 # Sun CC 25804 if test "x$GOMP_LIBS" = x ; then 25805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5 25806$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; } 25807if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then : 25808 $as_echo_n "(cached) " >&6 25809else 25810 ac_check_lib_save_LIBS=$LIBS 25811LIBS="-lmtsk $LIBS" 25812cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25813/* end confdefs.h. */ 25814 25815/* Override any GCC internal prototype to avoid an error. 25816 Use char because int might match the return type of a GCC 25817 builtin and then its argument prototype would still apply. */ 25818#ifdef __cplusplus 25819extern "C" 25820#endif 25821char sunw_mp_register_warn (); 25822int 25823main () 25824{ 25825return sunw_mp_register_warn (); 25826 ; 25827 return 0; 25828} 25829_ACEOF 25830if ac_fn_c_try_link "$LINENO"; then : 25831 ac_cv_lib_mtsk_sunw_mp_register_warn=yes 25832else 25833 ac_cv_lib_mtsk_sunw_mp_register_warn=no 25834fi 25835rm -f core conftest.err conftest.$ac_objext \ 25836 conftest$ac_exeext conftest.$ac_ext 25837LIBS=$ac_check_lib_save_LIBS 25838fi 25839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5 25840$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; } 25841if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then : 25842 GOMP_LIBS="-lmtsk" 25843fi 25844 25845 fi 25846 # AIX xlc 25847 if test "x$GOMP_LIBS" = x ; then 25848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5 25849$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; } 25850if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then : 25851 $as_echo_n "(cached) " >&6 25852else 25853 ac_check_lib_save_LIBS=$LIBS 25854LIBS="-lxlsmp $LIBS" 25855cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25856/* end confdefs.h. */ 25857 25858/* Override any GCC internal prototype to avoid an error. 25859 Use char because int might match the return type of a GCC 25860 builtin and then its argument prototype would still apply. */ 25861#ifdef __cplusplus 25862extern "C" 25863#endif 25864char _xlsmpFlush (); 25865int 25866main () 25867{ 25868return _xlsmpFlush (); 25869 ; 25870 return 0; 25871} 25872_ACEOF 25873if ac_fn_c_try_link "$LINENO"; then : 25874 ac_cv_lib_xlsmp__xlsmpFlush=yes 25875else 25876 ac_cv_lib_xlsmp__xlsmpFlush=no 25877fi 25878rm -f core conftest.err conftest.$ac_objext \ 25879 conftest$ac_exeext conftest.$ac_ext 25880LIBS=$ac_check_lib_save_LIBS 25881fi 25882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5 25883$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; } 25884if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then : 25885 GOMP_LIBS="-lxlsmp" 25886fi 25887 25888 fi 25889 # SGI IRIX 6.5 MIPSpro C/C++ 25890 if test "x$GOMP_LIBS" = x ; then 25891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5 25892$as_echo_n "checking for mp_destroy in -lmp... " >&6; } 25893if ${ac_cv_lib_mp_mp_destroy+:} false; then : 25894 $as_echo_n "(cached) " >&6 25895else 25896 ac_check_lib_save_LIBS=$LIBS 25897LIBS="-lmp $LIBS" 25898cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25899/* end confdefs.h. */ 25900 25901/* Override any GCC internal prototype to avoid an error. 25902 Use char because int might match the return type of a GCC 25903 builtin and then its argument prototype would still apply. */ 25904#ifdef __cplusplus 25905extern "C" 25906#endif 25907char mp_destroy (); 25908int 25909main () 25910{ 25911return mp_destroy (); 25912 ; 25913 return 0; 25914} 25915_ACEOF 25916if ac_fn_c_try_link "$LINENO"; then : 25917 ac_cv_lib_mp_mp_destroy=yes 25918else 25919 ac_cv_lib_mp_mp_destroy=no 25920fi 25921rm -f core conftest.err conftest.$ac_objext \ 25922 conftest$ac_exeext conftest.$ac_ext 25923LIBS=$ac_check_lib_save_LIBS 25924fi 25925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5 25926$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; } 25927if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then : 25928 GOMP_LIBS="-lmp" 25929fi 25930 25931 fi 25932 fi 25933 LIBS="$GOMP_LIBS $LIBS" 25934fi 25935 25936 25937# 25938# Find Posix threads library 25939# 25940THREAD_LIBS='' 25941if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then 25942 25943 if test "x$PTHREAD_LIBS" = "x"; then 25944 case "${host_cpu}-${host_os}" in 25945 *-freebsd*) 25946 25947 25948 25949ac_ext=c 25950ac_cpp='$CPP $CPPFLAGS' 25951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25953ac_compiler_gnu=$ac_cv_c_compiler_gnu 25954 25955magick_pthread_lib_ok=no 25956 25957LIB=-lc_r 25958save_LIBS="$LIBS" 25959LIBS="$LIBS $LIB" 25960 25961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5 25962$as_echo_n "checking for the pthreads library $LIB... " >&6; } 25963cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25964/* end confdefs.h. */ 25965#include <pthread.h> 25966int 25967main () 25968{ 25969 pthread_t th; 25970 pthread_join(th, 0); 25971 pthread_attr_init(0); 25972 pthread_cleanup_push(0, 0); 25973 pthread_create(0,0,0,0); 25974 pthread_cleanup_pop(0); 25975 ; 25976 return 0; 25977} 25978_ACEOF 25979if ac_fn_c_try_link "$LINENO"; then : 25980 magick_pthread_lib_ok=yes 25981fi 25982rm -f core conftest.err conftest.$ac_objext \ 25983 conftest$ac_exeext conftest.$ac_ext 25984 25985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5 25986$as_echo "${magick_pthread_lib_ok}" >&6; } 25987if test "$magick_pthread_lib_ok" = yes 25988then 25989 PTHREAD_LIBS=-lc_r 25990 : 25991else 25992 25993 : 25994fi 25995 25996LIBS="$save_LIBS" 25997 25998ac_ext=c 25999ac_cpp='$CPP $CPPFLAGS' 26000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26002ac_compiler_gnu=$ac_cv_c_compiler_gnu 26003 26004 ;; 26005 esac 26006 fi 26007 26008 for lib in pthread pthreads; do 26009 if test "x$PTHREAD_LIBS" = "x"; then 26010 26011 26012 26013ac_ext=c 26014ac_cpp='$CPP $CPPFLAGS' 26015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26017ac_compiler_gnu=$ac_cv_c_compiler_gnu 26018 26019magick_pthread_lib_ok=no 26020 26021LIB=-l$lib 26022save_LIBS="$LIBS" 26023LIBS="$LIBS $LIB" 26024 26025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5 26026$as_echo_n "checking for the pthreads library $LIB... " >&6; } 26027cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26028/* end confdefs.h. */ 26029#include <pthread.h> 26030int 26031main () 26032{ 26033 pthread_t th; 26034 pthread_join(th, 0); 26035 pthread_attr_init(0); 26036 pthread_cleanup_push(0, 0); 26037 pthread_create(0,0,0,0); 26038 pthread_cleanup_pop(0); 26039 ; 26040 return 0; 26041} 26042_ACEOF 26043if ac_fn_c_try_link "$LINENO"; then : 26044 magick_pthread_lib_ok=yes 26045fi 26046rm -f core conftest.err conftest.$ac_objext \ 26047 conftest$ac_exeext conftest.$ac_ext 26048 26049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5 26050$as_echo "${magick_pthread_lib_ok}" >&6; } 26051if test "$magick_pthread_lib_ok" = yes 26052then 26053 PTHREAD_LIBS=-l$lib 26054 : 26055else 26056 26057 : 26058fi 26059 26060LIBS="$save_LIBS" 26061 26062ac_ext=c 26063ac_cpp='$CPP $CPPFLAGS' 26064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26066ac_compiler_gnu=$ac_cv_c_compiler_gnu 26067 26068 26069 fi 26070 done 26071 26072 THREAD_LIBS="$PTHREAD_LIBS" 26073 LIBS="$LIBS $THREAD_LIBS" 26074fi 26075 26076 26077# 26078# Check for umem. 26079# 26080have_umem='no' 26081UMEM_LIBS='' 26082if test "$with_umem" != 'no'; then 26083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5 26084$as_echo_n "checking for UMEM support ... " >&6; } 26085 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 26086$as_echo "$as_me: " >&6;} 26087 failed=0 26088 passed=0 26089 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default" 26090if test "x$ac_cv_header_umem_h" = xyes; then : 26091 passed=`expr $passed + 1` 26092else 26093 failed=`expr $failed + 1` 26094fi 26095 26096 26097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 26098$as_echo_n "checking for umem_alloc in -lumem... " >&6; } 26099if ${ac_cv_lib_umem_umem_alloc+:} false; then : 26100 $as_echo_n "(cached) " >&6 26101else 26102 ac_check_lib_save_LIBS=$LIBS 26103LIBS="-lumem $LIBS" 26104cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26105/* end confdefs.h. */ 26106 26107/* Override any GCC internal prototype to avoid an error. 26108 Use char because int might match the return type of a GCC 26109 builtin and then its argument prototype would still apply. */ 26110#ifdef __cplusplus 26111extern "C" 26112#endif 26113char umem_alloc (); 26114int 26115main () 26116{ 26117return umem_alloc (); 26118 ; 26119 return 0; 26120} 26121_ACEOF 26122if ac_fn_c_try_link "$LINENO"; then : 26123 ac_cv_lib_umem_umem_alloc=yes 26124else 26125 ac_cv_lib_umem_umem_alloc=no 26126fi 26127rm -f core conftest.err conftest.$ac_objext \ 26128 conftest$ac_exeext conftest.$ac_ext 26129LIBS=$ac_check_lib_save_LIBS 26130fi 26131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 26132$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } 26133if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : 26134 passed=`expr $passed + 1` 26135else 26136 failed=`expr $failed + 1` 26137fi 26138 26139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5 26140$as_echo_n "checking for umem_free in -lumem... " >&6; } 26141if ${ac_cv_lib_umem_umem_free+:} false; then : 26142 $as_echo_n "(cached) " >&6 26143else 26144 ac_check_lib_save_LIBS=$LIBS 26145LIBS="-lumem $LIBS" 26146cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26147/* end confdefs.h. */ 26148 26149/* Override any GCC internal prototype to avoid an error. 26150 Use char because int might match the return type of a GCC 26151 builtin and then its argument prototype would still apply. */ 26152#ifdef __cplusplus 26153extern "C" 26154#endif 26155char umem_free (); 26156int 26157main () 26158{ 26159return umem_free (); 26160 ; 26161 return 0; 26162} 26163_ACEOF 26164if ac_fn_c_try_link "$LINENO"; then : 26165 ac_cv_lib_umem_umem_free=yes 26166else 26167 ac_cv_lib_umem_umem_free=no 26168fi 26169rm -f core conftest.err conftest.$ac_objext \ 26170 conftest$ac_exeext conftest.$ac_ext 26171LIBS=$ac_check_lib_save_LIBS 26172fi 26173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5 26174$as_echo "$ac_cv_lib_umem_umem_free" >&6; } 26175if test "x$ac_cv_lib_umem_umem_free" = xyes; then : 26176 passed=`expr $passed + 1` 26177else 26178 failed=`expr $failed + 1` 26179fi 26180 26181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5 26182$as_echo_n "checking if umem memory allocation library is complete... " >&6; } 26183 if test $passed -gt 0; then 26184 if test $failed -gt 0; then 26185 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 26186$as_echo "$as_me: no -- some components failed test" >&6;} 26187 have_umem='no (failed tests)' 26188 else 26189 UMEM_LIBS='-lumem' 26190 LIBS="$UMEM_LIBS $LIBS" 26191 26192$as_echo "#define HasUMEM 1" >>confdefs.h 26193 26194 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 26195$as_echo "$as_me: yes" >&6;} 26196 have_umem='yes' 26197 fi 26198 else 26199 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 26200$as_echo "$as_me: no" >&6;} 26201 fi 26202fi 26203 if test "$have_umem" = 'yes'; then 26204 HasUMEM_TRUE= 26205 HasUMEM_FALSE='#' 26206else 26207 HasUMEM_TRUE='#' 26208 HasUMEM_FALSE= 26209fi 26210 26211 26212 26213# 26214# Add support for ccmalloc memory debugging library if requested 26215# 26216have_ccmalloc='no' 26217CCMALLOC_LIBS='' 26218if test "$enable_ccmalloc" = 'yes'; then 26219 # Extract the first word of "ccmalloc", so it can be a program name with args. 26220set dummy ccmalloc; ac_word=$2 26221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26222$as_echo_n "checking for $ac_word... " >&6; } 26223if ${ac_cv_path_CCMALLOCDelegate+:} false; then : 26224 $as_echo_n "(cached) " >&6 26225else 26226 case $CCMALLOCDelegate in 26227 [\\/]* | ?:[\\/]*) 26228 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path. 26229 ;; 26230 *) 26231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26232for as_dir in $PATH 26233do 26234 IFS=$as_save_IFS 26235 test -z "$as_dir" && as_dir=. 26236 for ac_exec_ext in '' $ac_executable_extensions; do 26237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26238 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext" 26239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26240 break 2 26241 fi 26242done 26243 done 26244IFS=$as_save_IFS 26245 26246 ;; 26247esac 26248fi 26249CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate 26250if test -n "$CCMALLOCDelegate"; then 26251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5 26252$as_echo "$CCMALLOCDelegate" >&6; } 26253else 26254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26255$as_echo "no" >&6; } 26256fi 26257 26258 26259 if test -n "$CCMALLOCDelegate"; then 26260 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'` 26261 OLIBS="$LIBS" 26262 # Assume that gcc is used with ccmalloc. 26263 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o" 26264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5 26265$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; } 26266if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then : 26267 $as_echo_n "(cached) " >&6 26268else 26269 ac_check_lib_save_LIBS=$LIBS 26270LIBS="-lccmalloc -ldl $LIBS" 26271cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26272/* end confdefs.h. */ 26273 26274/* Override any GCC internal prototype to avoid an error. 26275 Use char because int might match the return type of a GCC 26276 builtin and then its argument prototype would still apply. */ 26277#ifdef __cplusplus 26278extern "C" 26279#endif 26280char ccmalloc_malloc (); 26281int 26282main () 26283{ 26284return ccmalloc_malloc (); 26285 ; 26286 return 0; 26287} 26288_ACEOF 26289if ac_fn_c_try_link "$LINENO"; then : 26290 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes 26291else 26292 ac_cv_lib_ccmalloc_ccmalloc_malloc=no 26293fi 26294rm -f core conftest.err conftest.$ac_objext \ 26295 conftest$ac_exeext conftest.$ac_ext 26296LIBS=$ac_check_lib_save_LIBS 26297fi 26298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5 26299$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; } 26300if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then : 26301 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl" 26302fi 26303 26304 if test -n "$CCMALLOC_LIBS"; then 26305 LIBS="$OLIBS" 26306 LIBS="$LIBS $CCMALLOC_LIBS" 26307 have_ccmalloc='yes' 26308 else 26309 LIBS="$OLIBS" 26310 fi 26311 fi 26312fi 26313 26314# 26315# Add support for efence memory debugging library if requested 26316# 26317if test "$enable_efence" = 'yes'; then 26318 EFENCE_LIBS='-lefence' 26319 LIBS="$EFENCE_LIBS $LIBS" 26320fi 26321 26322 26323# 26324# Check for BZLIB 26325# 26326 26327 26328# Check whether --with-bzlib was given. 26329if test "${with_bzlib+set}" = set; then : 26330 withval=$with_bzlib; with_bzlib=$withval 26331else 26332 with_bzlib='yes' 26333fi 26334 26335 26336if test "$with_bzlib" != 'yes'; then 26337 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib " 26338fi 26339 26340have_bzlib='no' 26341if test "$with_bzlib" != 'no'; then 26342 BZLIB_LIBS='' 26343 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 26344$as_echo "$as_me: -------------------------------------------------------------" >&6;} 26345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5 26346$as_echo_n "checking for BZLIB... " >&6; } 26347 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 26348$as_echo "$as_me: " >&6;} 26349 failed=0 26350 passed=0 26351 found_libbz=0 26352 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" 26353if test "x$ac_cv_header_bzlib_h" = xyes; then : 26354 passed=`expr $passed + 1` 26355else 26356 failed=`expr $failed + 1` 26357fi 26358 26359 26360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5 26361$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; } 26362if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then : 26363 $as_echo_n "(cached) " >&6 26364else 26365 ac_check_lib_save_LIBS=$LIBS 26366LIBS="-lbz2 $LIBS" 26367cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26368/* end confdefs.h. */ 26369 26370/* Override any GCC internal prototype to avoid an error. 26371 Use char because int might match the return type of a GCC 26372 builtin and then its argument prototype would still apply. */ 26373#ifdef __cplusplus 26374extern "C" 26375#endif 26376char BZ2_bzDecompress (); 26377int 26378main () 26379{ 26380return BZ2_bzDecompress (); 26381 ; 26382 return 0; 26383} 26384_ACEOF 26385if ac_fn_c_try_link "$LINENO"; then : 26386 ac_cv_lib_bz2_BZ2_bzDecompress=yes 26387else 26388 ac_cv_lib_bz2_BZ2_bzDecompress=no 26389fi 26390rm -f core conftest.err conftest.$ac_objext \ 26391 conftest$ac_exeext conftest.$ac_ext 26392LIBS=$ac_check_lib_save_LIBS 26393fi 26394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5 26395$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; } 26396if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then : 26397 found_libbz=`expr $found_libbz + 1` 26398fi 26399 26400 if test "$native_win32_build" = 'yes'; then 26401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5 26402$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; } 26403if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then : 26404 $as_echo_n "(cached) " >&6 26405else 26406 ac_check_lib_save_LIBS=$LIBS 26407LIBS="-lbz2 $LIBS" 26408cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26409/* end confdefs.h. */ 26410 26411/* Override any GCC internal prototype to avoid an error. 26412 Use char because int might match the return type of a GCC 26413 builtin and then its argument prototype would still apply. */ 26414#ifdef __cplusplus 26415extern "C" 26416#endif 26417char _imp__BZ2_decompress (); 26418int 26419main () 26420{ 26421return _imp__BZ2_decompress (); 26422 ; 26423 return 0; 26424} 26425_ACEOF 26426if ac_fn_c_try_link "$LINENO"; then : 26427 ac_cv_lib_bz2__imp__BZ2_decompress=yes 26428else 26429 ac_cv_lib_bz2__imp__BZ2_decompress=no 26430fi 26431rm -f core conftest.err conftest.$ac_objext \ 26432 conftest$ac_exeext conftest.$ac_ext 26433LIBS=$ac_check_lib_save_LIBS 26434fi 26435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5 26436$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; } 26437if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then : 26438 found_libbz=`expr $found_libbz + 1` 26439fi 26440 26441 fi 26442 if test $found_libbz -gt 0; then 26443 passed=`expr $passed + 1` 26444 else 26445 failed=`expr $failed + 1` 26446 fi 26447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5 26448$as_echo_n "checking if BZLIB package is complete... " >&6; } 26449 if test $passed -gt 0; then 26450 if test $failed -gt 0; then 26451 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 26452$as_echo "$as_me: no -- some components failed test" >&6;} 26453 have_bzlib='no (failed tests)' 26454 else 26455 BZLIB_LIBS='-lbz2' 26456 LIBS="$BZLIB_LIBS $LIBS" 26457 26458$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h 26459 26460 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 26461$as_echo "$as_me: yes" >&6;} 26462 have_bzlib='yes' 26463 fi 26464 else 26465 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 26466$as_echo "$as_me: no" >&6;} 26467 fi 26468fi 26469 if test "$have_bzlib" = 'yes'; then 26470 BZLIB_DELEGATE_TRUE= 26471 BZLIB_DELEGATE_FALSE='#' 26472else 26473 BZLIB_DELEGATE_TRUE='#' 26474 BZLIB_DELEGATE_FALSE= 26475fi 26476 26477 26478 26479# 26480# Find the X11 include and library directories. 26481# 26482IPC_LIBS='' 26483X11_LIBS='' 26484XEXT_LIBS='' 26485XT_LIBS='' 26486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 26487$as_echo_n "checking for X... " >&6; } 26488 26489 26490# Check whether --with-x was given. 26491if test "${with_x+set}" = set; then : 26492 withval=$with_x; 26493fi 26494 26495# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 26496if test "x$with_x" = xno; then 26497 # The user explicitly disabled X. 26498 have_x=disabled 26499else 26500 case $x_includes,$x_libraries in #( 26501 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 26502 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 26503 $as_echo_n "(cached) " >&6 26504else 26505 # One or both of the vars are not set, and there is no cached value. 26506ac_x_includes=no ac_x_libraries=no 26507rm -f -r conftest.dir 26508if mkdir conftest.dir; then 26509 cd conftest.dir 26510 cat >Imakefile <<'_ACEOF' 26511incroot: 26512 @echo incroot='${INCROOT}' 26513usrlibdir: 26514 @echo usrlibdir='${USRLIBDIR}' 26515libdir: 26516 @echo libdir='${LIBDIR}' 26517_ACEOF 26518 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 26519 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 26520 for ac_var in incroot usrlibdir libdir; do 26521 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 26522 done 26523 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 26524 for ac_extension in a so sl dylib la dll; do 26525 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 26526 test -f "$ac_im_libdir/libX11.$ac_extension"; then 26527 ac_im_usrlibdir=$ac_im_libdir; break 26528 fi 26529 done 26530 # Screen out bogus values from the imake configuration. They are 26531 # bogus both because they are the default anyway, and because 26532 # using them would break gcc on systems where it needs fixed includes. 26533 case $ac_im_incroot in 26534 /usr/include) ac_x_includes= ;; 26535 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 26536 esac 26537 case $ac_im_usrlibdir in 26538 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 26539 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 26540 esac 26541 fi 26542 cd .. 26543 rm -f -r conftest.dir 26544fi 26545 26546# Standard set of common directories for X headers. 26547# Check X11 before X11Rn because it is often a symlink to the current release. 26548ac_x_header_dirs=' 26549/usr/X11/include 26550/usr/X11R7/include 26551/usr/X11R6/include 26552/usr/X11R5/include 26553/usr/X11R4/include 26554 26555/usr/include/X11 26556/usr/include/X11R7 26557/usr/include/X11R6 26558/usr/include/X11R5 26559/usr/include/X11R4 26560 26561/usr/local/X11/include 26562/usr/local/X11R7/include 26563/usr/local/X11R6/include 26564/usr/local/X11R5/include 26565/usr/local/X11R4/include 26566 26567/usr/local/include/X11 26568/usr/local/include/X11R7 26569/usr/local/include/X11R6 26570/usr/local/include/X11R5 26571/usr/local/include/X11R4 26572 26573/usr/X386/include 26574/usr/x386/include 26575/usr/XFree86/include/X11 26576 26577/usr/include 26578/usr/local/include 26579/usr/unsupported/include 26580/usr/athena/include 26581/usr/local/x11r5/include 26582/usr/lpp/Xamples/include 26583 26584/usr/openwin/include 26585/usr/openwin/share/include' 26586 26587if test "$ac_x_includes" = no; then 26588 # Guess where to find include files, by looking for Xlib.h. 26589 # First, try using that file with no special directory specified. 26590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26591/* end confdefs.h. */ 26592#include <X11/Xlib.h> 26593_ACEOF 26594if ac_fn_c_try_cpp "$LINENO"; then : 26595 # We can compile using X headers with no special include directory. 26596ac_x_includes= 26597else 26598 for ac_dir in $ac_x_header_dirs; do 26599 if test -r "$ac_dir/X11/Xlib.h"; then 26600 ac_x_includes=$ac_dir 26601 break 26602 fi 26603done 26604fi 26605rm -f conftest.err conftest.i conftest.$ac_ext 26606fi # $ac_x_includes = no 26607 26608if test "$ac_x_libraries" = no; then 26609 # Check for the libraries. 26610 # See if we find them without any special options. 26611 # Don't add to $LIBS permanently. 26612 ac_save_LIBS=$LIBS 26613 LIBS="-lX11 $LIBS" 26614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26615/* end confdefs.h. */ 26616#include <X11/Xlib.h> 26617int 26618main () 26619{ 26620XrmInitialize () 26621 ; 26622 return 0; 26623} 26624_ACEOF 26625if ac_fn_c_try_link "$LINENO"; then : 26626 LIBS=$ac_save_LIBS 26627# We can link X programs with no special library path. 26628ac_x_libraries= 26629else 26630 LIBS=$ac_save_LIBS 26631for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 26632do 26633 # Don't even attempt the hair of trying to link an X program! 26634 for ac_extension in a so sl dylib la dll; do 26635 if test -r "$ac_dir/libX11.$ac_extension"; then 26636 ac_x_libraries=$ac_dir 26637 break 2 26638 fi 26639 done 26640done 26641fi 26642rm -f core conftest.err conftest.$ac_objext \ 26643 conftest$ac_exeext conftest.$ac_ext 26644fi # $ac_x_libraries = no 26645 26646case $ac_x_includes,$ac_x_libraries in #( 26647 no,* | *,no | *\'*) 26648 # Didn't find X, or a directory has "'" in its name. 26649 ac_cv_have_x="have_x=no";; #( 26650 *) 26651 # Record where we found X for the cache. 26652 ac_cv_have_x="have_x=yes\ 26653 ac_x_includes='$ac_x_includes'\ 26654 ac_x_libraries='$ac_x_libraries'" 26655esac 26656fi 26657;; #( 26658 *) have_x=yes;; 26659 esac 26660 eval "$ac_cv_have_x" 26661fi # $with_x != no 26662 26663if test "$have_x" != yes; then 26664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 26665$as_echo "$have_x" >&6; } 26666 no_x=yes 26667else 26668 # If each of the values was on the command line, it overrides each guess. 26669 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 26670 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 26671 # Update the cache value to reflect the command line values. 26672 ac_cv_have_x="have_x=yes\ 26673 ac_x_includes='$x_includes'\ 26674 ac_x_libraries='$x_libraries'" 26675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 26676$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 26677fi 26678 26679if test "$no_x" = yes; then 26680 # Not all programs may use this symbol, but it does not hurt to define it. 26681 26682$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 26683 26684 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 26685else 26686 if test -n "$x_includes"; then 26687 X_CFLAGS="$X_CFLAGS -I$x_includes" 26688 fi 26689 26690 # It would also be nice to do this for all -L options, not just this one. 26691 if test -n "$x_libraries"; then 26692 X_LIBS="$X_LIBS -L$x_libraries" 26693 # For Solaris; some versions of Sun CC require a space after -R and 26694 # others require no space. Words are not sufficient . . . . 26695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 26696$as_echo_n "checking whether -R must be followed by a space... " >&6; } 26697 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 26698 ac_xsave_c_werror_flag=$ac_c_werror_flag 26699 ac_c_werror_flag=yes 26700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26701/* end confdefs.h. */ 26702 26703int 26704main () 26705{ 26706 26707 ; 26708 return 0; 26709} 26710_ACEOF 26711if ac_fn_c_try_link "$LINENO"; then : 26712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26713$as_echo "no" >&6; } 26714 X_LIBS="$X_LIBS -R$x_libraries" 26715else 26716 LIBS="$ac_xsave_LIBS -R $x_libraries" 26717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26718/* end confdefs.h. */ 26719 26720int 26721main () 26722{ 26723 26724 ; 26725 return 0; 26726} 26727_ACEOF 26728if ac_fn_c_try_link "$LINENO"; then : 26729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26730$as_echo "yes" >&6; } 26731 X_LIBS="$X_LIBS -R $x_libraries" 26732else 26733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 26734$as_echo "neither works" >&6; } 26735fi 26736rm -f core conftest.err conftest.$ac_objext \ 26737 conftest$ac_exeext conftest.$ac_ext 26738fi 26739rm -f core conftest.err conftest.$ac_objext \ 26740 conftest$ac_exeext conftest.$ac_ext 26741 ac_c_werror_flag=$ac_xsave_c_werror_flag 26742 LIBS=$ac_xsave_LIBS 26743 fi 26744 26745 # Check for system-dependent libraries X programs must link with. 26746 # Do this before checking for the system-independent R6 libraries 26747 # (-lICE), since we may need -lsocket or whatever for X linking. 26748 26749 if test "$ISC" = yes; then 26750 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 26751 else 26752 # Martyn Johnson says this is needed for Ultrix, if the X 26753 # libraries were built with DECnet support. And Karl Berry says 26754 # the Alpha needs dnet_stub (dnet does not exist). 26755 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 26756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26757/* end confdefs.h. */ 26758 26759/* Override any GCC internal prototype to avoid an error. 26760 Use char because int might match the return type of a GCC 26761 builtin and then its argument prototype would still apply. */ 26762#ifdef __cplusplus 26763extern "C" 26764#endif 26765char XOpenDisplay (); 26766int 26767main () 26768{ 26769return XOpenDisplay (); 26770 ; 26771 return 0; 26772} 26773_ACEOF 26774if ac_fn_c_try_link "$LINENO"; then : 26775 26776else 26777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 26778$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 26779if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 26780 $as_echo_n "(cached) " >&6 26781else 26782 ac_check_lib_save_LIBS=$LIBS 26783LIBS="-ldnet $LIBS" 26784cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26785/* end confdefs.h. */ 26786 26787/* Override any GCC internal prototype to avoid an error. 26788 Use char because int might match the return type of a GCC 26789 builtin and then its argument prototype would still apply. */ 26790#ifdef __cplusplus 26791extern "C" 26792#endif 26793char dnet_ntoa (); 26794int 26795main () 26796{ 26797return dnet_ntoa (); 26798 ; 26799 return 0; 26800} 26801_ACEOF 26802if ac_fn_c_try_link "$LINENO"; then : 26803 ac_cv_lib_dnet_dnet_ntoa=yes 26804else 26805 ac_cv_lib_dnet_dnet_ntoa=no 26806fi 26807rm -f core conftest.err conftest.$ac_objext \ 26808 conftest$ac_exeext conftest.$ac_ext 26809LIBS=$ac_check_lib_save_LIBS 26810fi 26811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 26812$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 26813if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 26814 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 26815fi 26816 26817 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 26818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 26819$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 26820if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 26821 $as_echo_n "(cached) " >&6 26822else 26823 ac_check_lib_save_LIBS=$LIBS 26824LIBS="-ldnet_stub $LIBS" 26825cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26826/* end confdefs.h. */ 26827 26828/* Override any GCC internal prototype to avoid an error. 26829 Use char because int might match the return type of a GCC 26830 builtin and then its argument prototype would still apply. */ 26831#ifdef __cplusplus 26832extern "C" 26833#endif 26834char dnet_ntoa (); 26835int 26836main () 26837{ 26838return dnet_ntoa (); 26839 ; 26840 return 0; 26841} 26842_ACEOF 26843if ac_fn_c_try_link "$LINENO"; then : 26844 ac_cv_lib_dnet_stub_dnet_ntoa=yes 26845else 26846 ac_cv_lib_dnet_stub_dnet_ntoa=no 26847fi 26848rm -f core conftest.err conftest.$ac_objext \ 26849 conftest$ac_exeext conftest.$ac_ext 26850LIBS=$ac_check_lib_save_LIBS 26851fi 26852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 26853$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 26854if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 26855 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 26856fi 26857 26858 fi 26859fi 26860rm -f core conftest.err conftest.$ac_objext \ 26861 conftest$ac_exeext conftest.$ac_ext 26862 LIBS="$ac_xsave_LIBS" 26863 26864 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 26865 # to get the SysV transport functions. 26866 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 26867 # needs -lnsl. 26868 # The nsl library prevents programs from opening the X display 26869 # on Irix 5.2, according to T.E. Dickey. 26870 # The functions gethostbyname, getservbyname, and inet_addr are 26871 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 26872 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 26873if test "x$ac_cv_func_gethostbyname" = xyes; then : 26874 26875fi 26876 26877 if test $ac_cv_func_gethostbyname = no; then 26878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 26879$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 26880if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 26881 $as_echo_n "(cached) " >&6 26882else 26883 ac_check_lib_save_LIBS=$LIBS 26884LIBS="-lnsl $LIBS" 26885cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26886/* end confdefs.h. */ 26887 26888/* Override any GCC internal prototype to avoid an error. 26889 Use char because int might match the return type of a GCC 26890 builtin and then its argument prototype would still apply. */ 26891#ifdef __cplusplus 26892extern "C" 26893#endif 26894char gethostbyname (); 26895int 26896main () 26897{ 26898return gethostbyname (); 26899 ; 26900 return 0; 26901} 26902_ACEOF 26903if ac_fn_c_try_link "$LINENO"; then : 26904 ac_cv_lib_nsl_gethostbyname=yes 26905else 26906 ac_cv_lib_nsl_gethostbyname=no 26907fi 26908rm -f core conftest.err conftest.$ac_objext \ 26909 conftest$ac_exeext conftest.$ac_ext 26910LIBS=$ac_check_lib_save_LIBS 26911fi 26912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 26913$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 26914if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 26915 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 26916fi 26917 26918 if test $ac_cv_lib_nsl_gethostbyname = no; then 26919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 26920$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 26921if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 26922 $as_echo_n "(cached) " >&6 26923else 26924 ac_check_lib_save_LIBS=$LIBS 26925LIBS="-lbsd $LIBS" 26926cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26927/* end confdefs.h. */ 26928 26929/* Override any GCC internal prototype to avoid an error. 26930 Use char because int might match the return type of a GCC 26931 builtin and then its argument prototype would still apply. */ 26932#ifdef __cplusplus 26933extern "C" 26934#endif 26935char gethostbyname (); 26936int 26937main () 26938{ 26939return gethostbyname (); 26940 ; 26941 return 0; 26942} 26943_ACEOF 26944if ac_fn_c_try_link "$LINENO"; then : 26945 ac_cv_lib_bsd_gethostbyname=yes 26946else 26947 ac_cv_lib_bsd_gethostbyname=no 26948fi 26949rm -f core conftest.err conftest.$ac_objext \ 26950 conftest$ac_exeext conftest.$ac_ext 26951LIBS=$ac_check_lib_save_LIBS 26952fi 26953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 26954$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 26955if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 26956 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 26957fi 26958 26959 fi 26960 fi 26961 26962 # lieder@skyler.mavd.honeywell.com says without -lsocket, 26963 # socket/setsockopt and other routines are undefined under SCO ODT 26964 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 26965 # on later versions), says Simon Leinen: it contains gethostby* 26966 # variants that don't use the name server (or something). -lsocket 26967 # must be given before -lnsl if both are needed. We assume that 26968 # if connect needs -lnsl, so does gethostbyname. 26969 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 26970if test "x$ac_cv_func_connect" = xyes; then : 26971 26972fi 26973 26974 if test $ac_cv_func_connect = no; then 26975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 26976$as_echo_n "checking for connect in -lsocket... " >&6; } 26977if ${ac_cv_lib_socket_connect+:} false; then : 26978 $as_echo_n "(cached) " >&6 26979else 26980 ac_check_lib_save_LIBS=$LIBS 26981LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 26982cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26983/* end confdefs.h. */ 26984 26985/* Override any GCC internal prototype to avoid an error. 26986 Use char because int might match the return type of a GCC 26987 builtin and then its argument prototype would still apply. */ 26988#ifdef __cplusplus 26989extern "C" 26990#endif 26991char connect (); 26992int 26993main () 26994{ 26995return connect (); 26996 ; 26997 return 0; 26998} 26999_ACEOF 27000if ac_fn_c_try_link "$LINENO"; then : 27001 ac_cv_lib_socket_connect=yes 27002else 27003 ac_cv_lib_socket_connect=no 27004fi 27005rm -f core conftest.err conftest.$ac_objext \ 27006 conftest$ac_exeext conftest.$ac_ext 27007LIBS=$ac_check_lib_save_LIBS 27008fi 27009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 27010$as_echo "$ac_cv_lib_socket_connect" >&6; } 27011if test "x$ac_cv_lib_socket_connect" = xyes; then : 27012 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 27013fi 27014 27015 fi 27016 27017 # Guillermo Gomez says -lposix is necessary on A/UX. 27018 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 27019if test "x$ac_cv_func_remove" = xyes; then : 27020 27021fi 27022 27023 if test $ac_cv_func_remove = no; then 27024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 27025$as_echo_n "checking for remove in -lposix... " >&6; } 27026if ${ac_cv_lib_posix_remove+:} false; then : 27027 $as_echo_n "(cached) " >&6 27028else 27029 ac_check_lib_save_LIBS=$LIBS 27030LIBS="-lposix $LIBS" 27031cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27032/* end confdefs.h. */ 27033 27034/* Override any GCC internal prototype to avoid an error. 27035 Use char because int might match the return type of a GCC 27036 builtin and then its argument prototype would still apply. */ 27037#ifdef __cplusplus 27038extern "C" 27039#endif 27040char remove (); 27041int 27042main () 27043{ 27044return remove (); 27045 ; 27046 return 0; 27047} 27048_ACEOF 27049if ac_fn_c_try_link "$LINENO"; then : 27050 ac_cv_lib_posix_remove=yes 27051else 27052 ac_cv_lib_posix_remove=no 27053fi 27054rm -f core conftest.err conftest.$ac_objext \ 27055 conftest$ac_exeext conftest.$ac_ext 27056LIBS=$ac_check_lib_save_LIBS 27057fi 27058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 27059$as_echo "$ac_cv_lib_posix_remove" >&6; } 27060if test "x$ac_cv_lib_posix_remove" = xyes; then : 27061 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 27062fi 27063 27064 fi 27065 27066 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 27067 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 27068if test "x$ac_cv_func_shmat" = xyes; then : 27069 27070fi 27071 27072 if test $ac_cv_func_shmat = no; then 27073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 27074$as_echo_n "checking for shmat in -lipc... " >&6; } 27075if ${ac_cv_lib_ipc_shmat+:} false; then : 27076 $as_echo_n "(cached) " >&6 27077else 27078 ac_check_lib_save_LIBS=$LIBS 27079LIBS="-lipc $LIBS" 27080cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27081/* end confdefs.h. */ 27082 27083/* Override any GCC internal prototype to avoid an error. 27084 Use char because int might match the return type of a GCC 27085 builtin and then its argument prototype would still apply. */ 27086#ifdef __cplusplus 27087extern "C" 27088#endif 27089char shmat (); 27090int 27091main () 27092{ 27093return shmat (); 27094 ; 27095 return 0; 27096} 27097_ACEOF 27098if ac_fn_c_try_link "$LINENO"; then : 27099 ac_cv_lib_ipc_shmat=yes 27100else 27101 ac_cv_lib_ipc_shmat=no 27102fi 27103rm -f core conftest.err conftest.$ac_objext \ 27104 conftest$ac_exeext conftest.$ac_ext 27105LIBS=$ac_check_lib_save_LIBS 27106fi 27107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 27108$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 27109if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 27110 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 27111fi 27112 27113 fi 27114 fi 27115 27116 # Check for libraries that X11R6 Xt/Xaw programs need. 27117 ac_save_LDFLAGS=$LDFLAGS 27118 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 27119 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 27120 # check for ICE first), but we must link in the order -lSM -lICE or 27121 # we get undefined symbols. So assume we have SM if we have ICE. 27122 # These have to be linked with before -lX11, unlike the other 27123 # libraries we check for below, so use a different variable. 27124 # John Interrante, Karl Berry 27125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 27126$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 27127if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 27128 $as_echo_n "(cached) " >&6 27129else 27130 ac_check_lib_save_LIBS=$LIBS 27131LIBS="-lICE $X_EXTRA_LIBS $LIBS" 27132cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27133/* end confdefs.h. */ 27134 27135/* Override any GCC internal prototype to avoid an error. 27136 Use char because int might match the return type of a GCC 27137 builtin and then its argument prototype would still apply. */ 27138#ifdef __cplusplus 27139extern "C" 27140#endif 27141char IceConnectionNumber (); 27142int 27143main () 27144{ 27145return IceConnectionNumber (); 27146 ; 27147 return 0; 27148} 27149_ACEOF 27150if ac_fn_c_try_link "$LINENO"; then : 27151 ac_cv_lib_ICE_IceConnectionNumber=yes 27152else 27153 ac_cv_lib_ICE_IceConnectionNumber=no 27154fi 27155rm -f core conftest.err conftest.$ac_objext \ 27156 conftest$ac_exeext conftest.$ac_ext 27157LIBS=$ac_check_lib_save_LIBS 27158fi 27159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 27160$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 27161if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 27162 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 27163fi 27164 27165 LDFLAGS=$ac_save_LDFLAGS 27166 27167fi 27168 27169if test "$no_x" != 'yes'; then 27170 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 27171$as_echo "$as_me: -------------------------------------------------------------" >&6;} 27172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 27173$as_echo_n "checking for X11... " >&6; } 27174 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 27175$as_echo "$as_me: " >&6;} 27176 LDFLAGS="$LDFLAGS $X_LIBS" 27177 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS" 27178 LIBS="$X11_LIBS $LIBS" 27179 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 27180 27181 27182$as_echo "#define X11_DELEGATE 1" >>confdefs.h 27183 27184 # 27185 # Check for X11 shared memory extension 27186 # 27187 # shmctl is required to support the shared memory extension 27188 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl" 27189if test "x$ac_cv_func_shmctl" = xyes; then : 27190 have_shmctl='yes' 27191fi 27192 27193 if test "$have_shmctl" != 'yes'; then 27194 PERSIST_LIBS=$LIBS 27195 LIBS="$LIBS -lcygipc" 27196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27197/* end confdefs.h. */ 27198 27199/* Override any GCC internal prototype to avoid an error. 27200 Use char because int might match the return type of a GCC 27201 builtin and then its argument prototype would still apply. */ 27202#ifdef __cplusplus 27203extern "C" 27204#endif 27205char shmctl (); 27206int 27207main () 27208{ 27209return shmctl (); 27210 ; 27211 return 0; 27212} 27213_ACEOF 27214if ac_fn_c_try_link "$LINENO"; then : 27215 have_shmctl='yes'; IPC_LIBS='-lcygipc' 27216fi 27217rm -f core conftest.err conftest.$ac_objext \ 27218 conftest$ac_exeext conftest.$ac_ext 27219 LIBS=$PERSIST_LIBS 27220 fi 27221 27222 if test "$have_shmctl" = 'yes'; then 27223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5 27224$as_echo_n "checking for XShmAttach in -lXext... " >&6; } 27225if ${ac_cv_lib_Xext_XShmAttach+:} false; then : 27226 $as_echo_n "(cached) " >&6 27227else 27228 ac_check_lib_save_LIBS=$LIBS 27229LIBS="-lXext $LIBS" 27230cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27231/* end confdefs.h. */ 27232 27233/* Override any GCC internal prototype to avoid an error. 27234 Use char because int might match the return type of a GCC 27235 builtin and then its argument prototype would still apply. */ 27236#ifdef __cplusplus 27237extern "C" 27238#endif 27239char XShmAttach (); 27240int 27241main () 27242{ 27243return XShmAttach (); 27244 ; 27245 return 0; 27246} 27247_ACEOF 27248if ac_fn_c_try_link "$LINENO"; then : 27249 ac_cv_lib_Xext_XShmAttach=yes 27250else 27251 ac_cv_lib_Xext_XShmAttach=no 27252fi 27253rm -f core conftest.err conftest.$ac_objext \ 27254 conftest$ac_exeext conftest.$ac_ext 27255LIBS=$ac_check_lib_save_LIBS 27256fi 27257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5 27258$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; } 27259if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then : 27260 XEXT_LIBS='-lXext' ; 27261$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h 27262 27263fi 27264 27265 fi 27266 27267 # 27268 # Check for X11 shape extension 27269 # 27270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5 27271$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; } 27272if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then : 27273 $as_echo_n "(cached) " >&6 27274else 27275 ac_check_lib_save_LIBS=$LIBS 27276LIBS="-lXext $LIBS" 27277cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27278/* end confdefs.h. */ 27279 27280/* Override any GCC internal prototype to avoid an error. 27281 Use char because int might match the return type of a GCC 27282 builtin and then its argument prototype would still apply. */ 27283#ifdef __cplusplus 27284extern "C" 27285#endif 27286char XShapeCombineMask (); 27287int 27288main () 27289{ 27290return XShapeCombineMask (); 27291 ; 27292 return 0; 27293} 27294_ACEOF 27295if ac_fn_c_try_link "$LINENO"; then : 27296 ac_cv_lib_Xext_XShapeCombineMask=yes 27297else 27298 ac_cv_lib_Xext_XShapeCombineMask=no 27299fi 27300rm -f core conftest.err conftest.$ac_objext \ 27301 conftest$ac_exeext conftest.$ac_ext 27302LIBS=$ac_check_lib_save_LIBS 27303fi 27304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5 27305$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; } 27306if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then : 27307 XEXT_LIBS='-lXext' ; 27308$as_echo "#define HAVE_SHAPE 1" >>confdefs.h 27309 27310fi 27311 27312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5 27313$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; } 27314if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then : 27315 $as_echo_n "(cached) " >&6 27316else 27317 ac_check_lib_save_LIBS=$LIBS 27318LIBS="-lXt $LIBS" 27319cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27320/* end confdefs.h. */ 27321 27322/* Override any GCC internal prototype to avoid an error. 27323 Use char because int might match the return type of a GCC 27324 builtin and then its argument prototype would still apply. */ 27325#ifdef __cplusplus 27326extern "C" 27327#endif 27328char XtSetEventDispatcher (); 27329int 27330main () 27331{ 27332return XtSetEventDispatcher (); 27333 ; 27334 return 0; 27335} 27336_ACEOF 27337if ac_fn_c_try_link "$LINENO"; then : 27338 ac_cv_lib_Xt_XtSetEventDispatcher=yes 27339else 27340 ac_cv_lib_Xt_XtSetEventDispatcher=no 27341fi 27342rm -f core conftest.err conftest.$ac_objext \ 27343 conftest$ac_exeext conftest.$ac_ext 27344LIBS=$ac_check_lib_save_LIBS 27345fi 27346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5 27347$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; } 27348if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then : 27349 XT_LIBS='-lXt' 27350fi 27351 27352 LIBS="$XEXT_LIBS $XT_LIBS $LIBS" 27353fi 27354if test "$no_x" != 'yes'; then 27355 have_x='yes' 27356else 27357 have_x='no' 27358fi 27359 if test "$have_x" = 'yes'; then 27360 X11_DELEGATE_TRUE= 27361 X11_DELEGATE_FALSE='#' 27362else 27363 X11_DELEGATE_TRUE='#' 27364 X11_DELEGATE_FALSE= 27365fi 27366 27367 27368 27369 27370 27371# 27372# Check for ZLIB 27373# 27374 27375# Check whether --with-zlib was given. 27376if test "${with_zlib+set}" = set; then : 27377 withval=$with_zlib; with_zlib=$withval 27378else 27379 with_zlib='yes' 27380fi 27381 27382 27383if test "$with_zlib" != 'yes'; then 27384 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib " 27385fi 27386 27387have_zlib='no' 27388ZLIB_LIBS='' 27389if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then 27390 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 27391$as_echo "$as_me: -------------------------------------------------------------" >&6;} 27392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 27393$as_echo_n "checking for ZLIB... " >&6; } 27394 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 27395$as_echo "$as_me: " >&6;} 27396 ZLIB_LIBS='' 27397 failed=0 27398 passed=0 27399 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default" 27400if test "x$ac_cv_header_zconf_h" = xyes; then : 27401 passed=`expr $passed + 1` 27402else 27403 failed=`expr $failed + 1` 27404fi 27405 27406 27407 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 27408if test "x$ac_cv_header_zlib_h" = xyes; then : 27409 passed=`expr $passed + 1` 27410else 27411 failed=`expr $failed + 1` 27412fi 27413 27414 27415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 27416$as_echo_n "checking for compress in -lz... " >&6; } 27417if ${ac_cv_lib_z_compress+:} false; then : 27418 $as_echo_n "(cached) " >&6 27419else 27420 ac_check_lib_save_LIBS=$LIBS 27421LIBS="-lz $LIBS" 27422cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27423/* end confdefs.h. */ 27424 27425/* Override any GCC internal prototype to avoid an error. 27426 Use char because int might match the return type of a GCC 27427 builtin and then its argument prototype would still apply. */ 27428#ifdef __cplusplus 27429extern "C" 27430#endif 27431char compress (); 27432int 27433main () 27434{ 27435return compress (); 27436 ; 27437 return 0; 27438} 27439_ACEOF 27440if ac_fn_c_try_link "$LINENO"; then : 27441 ac_cv_lib_z_compress=yes 27442else 27443 ac_cv_lib_z_compress=no 27444fi 27445rm -f core conftest.err conftest.$ac_objext \ 27446 conftest$ac_exeext conftest.$ac_ext 27447LIBS=$ac_check_lib_save_LIBS 27448fi 27449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 27450$as_echo "$ac_cv_lib_z_compress" >&6; } 27451if test "x$ac_cv_lib_z_compress" = xyes; then : 27452 passed=`expr $passed + 1` 27453else 27454 failed=`expr $failed + 1` 27455fi 27456 27457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 27458$as_echo_n "checking for uncompress in -lz... " >&6; } 27459if ${ac_cv_lib_z_uncompress+:} false; then : 27460 $as_echo_n "(cached) " >&6 27461else 27462 ac_check_lib_save_LIBS=$LIBS 27463LIBS="-lz $LIBS" 27464cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27465/* end confdefs.h. */ 27466 27467/* Override any GCC internal prototype to avoid an error. 27468 Use char because int might match the return type of a GCC 27469 builtin and then its argument prototype would still apply. */ 27470#ifdef __cplusplus 27471extern "C" 27472#endif 27473char uncompress (); 27474int 27475main () 27476{ 27477return uncompress (); 27478 ; 27479 return 0; 27480} 27481_ACEOF 27482if ac_fn_c_try_link "$LINENO"; then : 27483 ac_cv_lib_z_uncompress=yes 27484else 27485 ac_cv_lib_z_uncompress=no 27486fi 27487rm -f core conftest.err conftest.$ac_objext \ 27488 conftest$ac_exeext conftest.$ac_ext 27489LIBS=$ac_check_lib_save_LIBS 27490fi 27491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 27492$as_echo "$ac_cv_lib_z_uncompress" >&6; } 27493if test "x$ac_cv_lib_z_uncompress" = xyes; then : 27494 passed=`expr $passed + 1` 27495else 27496 failed=`expr $failed + 1` 27497fi 27498 27499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 27500$as_echo_n "checking for deflate in -lz... " >&6; } 27501if ${ac_cv_lib_z_deflate+:} false; then : 27502 $as_echo_n "(cached) " >&6 27503else 27504 ac_check_lib_save_LIBS=$LIBS 27505LIBS="-lz $LIBS" 27506cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27507/* end confdefs.h. */ 27508 27509/* Override any GCC internal prototype to avoid an error. 27510 Use char because int might match the return type of a GCC 27511 builtin and then its argument prototype would still apply. */ 27512#ifdef __cplusplus 27513extern "C" 27514#endif 27515char deflate (); 27516int 27517main () 27518{ 27519return deflate (); 27520 ; 27521 return 0; 27522} 27523_ACEOF 27524if ac_fn_c_try_link "$LINENO"; then : 27525 ac_cv_lib_z_deflate=yes 27526else 27527 ac_cv_lib_z_deflate=no 27528fi 27529rm -f core conftest.err conftest.$ac_objext \ 27530 conftest$ac_exeext conftest.$ac_ext 27531LIBS=$ac_check_lib_save_LIBS 27532fi 27533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 27534$as_echo "$ac_cv_lib_z_deflate" >&6; } 27535if test "x$ac_cv_lib_z_deflate" = xyes; then : 27536 passed=`expr $passed + 1` 27537else 27538 failed=`expr $failed + 1` 27539fi 27540 27541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 27542$as_echo_n "checking for inflate in -lz... " >&6; } 27543if ${ac_cv_lib_z_inflate+:} false; then : 27544 $as_echo_n "(cached) " >&6 27545else 27546 ac_check_lib_save_LIBS=$LIBS 27547LIBS="-lz $LIBS" 27548cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27549/* end confdefs.h. */ 27550 27551/* Override any GCC internal prototype to avoid an error. 27552 Use char because int might match the return type of a GCC 27553 builtin and then its argument prototype would still apply. */ 27554#ifdef __cplusplus 27555extern "C" 27556#endif 27557char inflate (); 27558int 27559main () 27560{ 27561return inflate (); 27562 ; 27563 return 0; 27564} 27565_ACEOF 27566if ac_fn_c_try_link "$LINENO"; then : 27567 ac_cv_lib_z_inflate=yes 27568else 27569 ac_cv_lib_z_inflate=no 27570fi 27571rm -f core conftest.err conftest.$ac_objext \ 27572 conftest$ac_exeext conftest.$ac_ext 27573LIBS=$ac_check_lib_save_LIBS 27574fi 27575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 27576$as_echo "$ac_cv_lib_z_inflate" >&6; } 27577if test "x$ac_cv_lib_z_inflate" = xyes; then : 27578 passed=`expr $passed + 1` 27579else 27580 failed=`expr $failed + 1` 27581fi 27582 27583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5 27584$as_echo_n "checking for gzseek in -lz... " >&6; } 27585if ${ac_cv_lib_z_gzseek+:} false; then : 27586 $as_echo_n "(cached) " >&6 27587else 27588 ac_check_lib_save_LIBS=$LIBS 27589LIBS="-lz $LIBS" 27590cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27591/* end confdefs.h. */ 27592 27593/* Override any GCC internal prototype to avoid an error. 27594 Use char because int might match the return type of a GCC 27595 builtin and then its argument prototype would still apply. */ 27596#ifdef __cplusplus 27597extern "C" 27598#endif 27599char gzseek (); 27600int 27601main () 27602{ 27603return gzseek (); 27604 ; 27605 return 0; 27606} 27607_ACEOF 27608if ac_fn_c_try_link "$LINENO"; then : 27609 ac_cv_lib_z_gzseek=yes 27610else 27611 ac_cv_lib_z_gzseek=no 27612fi 27613rm -f core conftest.err conftest.$ac_objext \ 27614 conftest$ac_exeext conftest.$ac_ext 27615LIBS=$ac_check_lib_save_LIBS 27616fi 27617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5 27618$as_echo "$ac_cv_lib_z_gzseek" >&6; } 27619if test "x$ac_cv_lib_z_gzseek" = xyes; then : 27620 passed=`expr $passed + 1` 27621else 27622 failed=`expr $failed + 1` 27623fi 27624 27625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5 27626$as_echo_n "checking for gztell in -lz... " >&6; } 27627if ${ac_cv_lib_z_gztell+:} false; then : 27628 $as_echo_n "(cached) " >&6 27629else 27630 ac_check_lib_save_LIBS=$LIBS 27631LIBS="-lz $LIBS" 27632cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27633/* end confdefs.h. */ 27634 27635/* Override any GCC internal prototype to avoid an error. 27636 Use char because int might match the return type of a GCC 27637 builtin and then its argument prototype would still apply. */ 27638#ifdef __cplusplus 27639extern "C" 27640#endif 27641char gztell (); 27642int 27643main () 27644{ 27645return gztell (); 27646 ; 27647 return 0; 27648} 27649_ACEOF 27650if ac_fn_c_try_link "$LINENO"; then : 27651 ac_cv_lib_z_gztell=yes 27652else 27653 ac_cv_lib_z_gztell=no 27654fi 27655rm -f core conftest.err conftest.$ac_objext \ 27656 conftest$ac_exeext conftest.$ac_ext 27657LIBS=$ac_check_lib_save_LIBS 27658fi 27659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5 27660$as_echo "$ac_cv_lib_z_gztell" >&6; } 27661if test "x$ac_cv_lib_z_gztell" = xyes; then : 27662 passed=`expr $passed + 1` 27663else 27664 failed=`expr $failed + 1` 27665fi 27666 27667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5 27668$as_echo_n "checking if ZLIB package is complete... " >&6; } 27669 if test $passed -gt 0; then 27670 if test $failed -gt 0; then 27671 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 27672$as_echo "$as_me: no -- some components failed test" >&6;} 27673 have_zlib='no (failed tests)' 27674 else 27675 ZLIB_LIBS='-lz' 27676 LIBS="$ZLIB_LIBS $LIBS" 27677 27678$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h 27679 27680 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 27681$as_echo "$as_me: yes" >&6;} 27682 have_zlib='yes' 27683 fi 27684 else 27685 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 27686$as_echo "$as_me: no" >&6;} 27687 fi 27688fi 27689 if test "$have_zlib" = 'yes'; then 27690 ZLIB_DELEGATE_TRUE= 27691 ZLIB_DELEGATE_FALSE='#' 27692else 27693 ZLIB_DELEGATE_TRUE='#' 27694 ZLIB_DELEGATE_FALSE= 27695fi 27696 27697 27698 27699# whether modules are built or not. 27700with_ltdl='yes' 27701have_ltdl='no' 27702LTDL_LIBS='' 27703if test "$build_modules" != 'no' ; then 27704 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 27705$as_echo "$as_me: -------------------------------------------------------------" >&6;} 27706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5 27707$as_echo_n "checking for libltdl... " >&6; } 27708 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 27709$as_echo "$as_me: " >&6;} 27710 failed=0 27711 passed=0 27712 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default" 27713if test "x$ac_cv_header_ltdl_h" = xyes; then : 27714 passed=`expr $passed + 1` 27715else 27716 failed=`expr $failed + 1` 27717fi 27718 27719 27720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5 27721$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; } 27722if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then : 27723 $as_echo_n "(cached) " >&6 27724else 27725 ac_check_lib_save_LIBS=$LIBS 27726LIBS="-lltdl $LIBS" 27727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27728/* end confdefs.h. */ 27729 27730/* Override any GCC internal prototype to avoid an error. 27731 Use char because int might match the return type of a GCC 27732 builtin and then its argument prototype would still apply. */ 27733#ifdef __cplusplus 27734extern "C" 27735#endif 27736char lt_dlinit (); 27737int 27738main () 27739{ 27740return lt_dlinit (); 27741 ; 27742 return 0; 27743} 27744_ACEOF 27745if ac_fn_c_try_link "$LINENO"; then : 27746 ac_cv_lib_ltdl_lt_dlinit=yes 27747else 27748 ac_cv_lib_ltdl_lt_dlinit=no 27749fi 27750rm -f core conftest.err conftest.$ac_objext \ 27751 conftest$ac_exeext conftest.$ac_ext 27752LIBS=$ac_check_lib_save_LIBS 27753fi 27754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5 27755$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; } 27756if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then : 27757 passed=`expr $passed + 1` 27758else 27759 failed=`expr $failed + 1` 27760fi 27761 27762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5 27763$as_echo_n "checking if libltdl package is complete... " >&6; } 27764 if test $passed -gt 0 ; then 27765 if test $failed -gt 0 ; then 27766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 27767$as_echo "no -- some components failed test" >&6; } 27768 have_ltdl='no (failed tests)' 27769 else 27770 LTDL_LIBS='-lltdl' 27771 LIBS="$LTDL_LIBS $LIBS" 27772 27773$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h 27774 27775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27776$as_echo "yes" >&6; } 27777 have_ltdl='yes' 27778 fi 27779 else 27780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27781$as_echo "no" >&6; } 27782 fi 27783 if test "$have_ltdl" != 'yes' ; then 27784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27785$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27786as_fn_error 1 "libltdl is required for modules build 27787See \`config.log' for more details" "$LINENO" 5; } 27788 fi 27789fi 27790 if test "$have_ltdl" != 'no'; then 27791 WITH_LTDL_TRUE= 27792 WITH_LTDL_FALSE='#' 27793else 27794 WITH_LTDL_TRUE='#' 27795 WITH_LTDL_FALSE= 27796fi 27797 27798 27799# 27800# If profiling, then check for -ldl and dlopen (required for Solaris & gcc) 27801# 27802LIB_DL='' 27803if test "$enable_profiling" = 'yes'; then 27804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 27805$as_echo_n "checking for dlopen in -ldl... " >&6; } 27806if ${ac_cv_lib_dl_dlopen+:} false; then : 27807 $as_echo_n "(cached) " >&6 27808else 27809 ac_check_lib_save_LIBS=$LIBS 27810LIBS="-ldl $LIBS" 27811cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27812/* end confdefs.h. */ 27813 27814/* Override any GCC internal prototype to avoid an error. 27815 Use char because int might match the return type of a GCC 27816 builtin and then its argument prototype would still apply. */ 27817#ifdef __cplusplus 27818extern "C" 27819#endif 27820char dlopen (); 27821int 27822main () 27823{ 27824return dlopen (); 27825 ; 27826 return 0; 27827} 27828_ACEOF 27829if ac_fn_c_try_link "$LINENO"; then : 27830 ac_cv_lib_dl_dlopen=yes 27831else 27832 ac_cv_lib_dl_dlopen=no 27833fi 27834rm -f core conftest.err conftest.$ac_objext \ 27835 conftest$ac_exeext conftest.$ac_ext 27836LIBS=$ac_check_lib_save_LIBS 27837fi 27838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 27839$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 27840if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 27841 LIB_DL='-ldl' 27842fi 27843 27844 LIBS="$LIB_DL $LIBS" 27845fi 27846 27847 27848 27849# 27850# Check for Autotrace delegate library. 27851# 27852 27853# Check whether --with-autotrace was given. 27854if test "${with_autotrace+set}" = set; then : 27855 withval=$with_autotrace; with_autotrace=$withval 27856else 27857 with_autotrace='no' 27858fi 27859 27860 27861if test "$with_autotrace" != 'yes'; then 27862 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace " 27863fi 27864 27865have_autotrace='no' 27866AUTOTRACE_CFLAGS="" 27867AUTOTRACE_LIBS="" 27868AUTOTRACE_PKG="" 27869if test "x$with_autotrace" = "xyes"; then 27870 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 27871$as_echo "$as_me: -------------------------------------------------------------" >&6;} 27872 27873pkg_failed=no 27874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5 27875$as_echo_n "checking for AUTOTRACE... " >&6; } 27876 27877if test -n "$AUTOTRACE_CFLAGS"; then 27878 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS" 27879 elif test -n "$PKG_CONFIG"; then 27880 if test -n "$PKG_CONFIG" && \ 27881 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 27882 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 27883 ac_status=$? 27884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27885 test $ac_status = 0; }; then 27886 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null` 27887else 27888 pkg_failed=yes 27889fi 27890 else 27891 pkg_failed=untried 27892fi 27893if test -n "$AUTOTRACE_LIBS"; then 27894 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS" 27895 elif test -n "$PKG_CONFIG"; then 27896 if test -n "$PKG_CONFIG" && \ 27897 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 27898 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 27899 ac_status=$? 27900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27901 test $ac_status = 0; }; then 27902 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null` 27903else 27904 pkg_failed=yes 27905fi 27906 else 27907 pkg_failed=untried 27908fi 27909 27910 27911 27912if test $pkg_failed = yes; then 27913 27914if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27915 _pkg_short_errors_supported=yes 27916else 27917 _pkg_short_errors_supported=no 27918fi 27919 if test $_pkg_short_errors_supported = yes; then 27920 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1` 27921 else 27922 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1` 27923 fi 27924 # Put the nasty error message in config.log where it belongs 27925 echo "$AUTOTRACE_PKG_ERRORS" >&5 27926 27927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27928$as_echo "no" >&6; } 27929 have_autotrace=no 27930elif test $pkg_failed = untried; then 27931 have_autotrace=no 27932else 27933 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS 27934 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS 27935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27936$as_echo "yes" >&6; } 27937 have_autotrace=yes 27938fi 27939 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 27940$as_echo "$as_me: " >&6;} 27941fi 27942 27943if test "$have_autotrace" = 'yes'; then 27944 failed=0 27945 27946$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h 27947 27948 if test "$build_modules" = 'no'; then 27949 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS" 27950 fi 27951fi 27952 27953 if test "$have_autotrace" = 'yes'; then 27954 AUTOTRACE_DELEGATE_TRUE= 27955 AUTOTRACE_DELEGATE_FALSE='#' 27956else 27957 AUTOTRACE_DELEGATE_TRUE='#' 27958 AUTOTRACE_DELEGATE_FALSE= 27959fi 27960 27961 27962 27963 27964 27965# 27966# Check for Display Postscript delegate library. 27967# 27968 27969# Check whether --with-dps was given. 27970if test "${with_dps+set}" = set; then : 27971 withval=$with_dps; with_dps=$withval 27972else 27973 with_dps='yes' 27974fi 27975 27976 27977if test "$with_dps" != 'yes'; then 27978 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps " 27979fi 27980 27981have_dps='no' 27982DPS_LIBS='' 27983if test "$with_dps" != 'no' && test "$with_x" != 'no'; then 27984 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 27985$as_echo "$as_me: -------------------------------------------------------------" >&6;} 27986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5 27987$as_echo_n "checking for DPS... " >&6; } 27988 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 27989$as_echo "$as_me: " >&6;} 27990 failed=0 27991 passed=0 27992 PERSIST_CPPFLAGS="$CPPFLAGS" 27993 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11" 27994 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default" 27995if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then : 27996 passed=`expr $passed + 1` 27997else 27998 failed=`expr $failed + 1` 27999fi 28000 28001 28002 # DPS issues: 28003 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps. 28004 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build. 28005 # Adobe DPS (as delivered on Solaris) doesn't require -lXt. 28006 # ImageMagick itself doesn't use -lXt. 28007 have_libdps='no' 28008 LIBDPS_XT='' 28009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 28010$as_echo_n "checking for DPSInitialize in -ldps... " >&6; } 28011if ${ac_cv_lib_dps_DPSInitialize+:} false; then : 28012 $as_echo_n "(cached) " >&6 28013else 28014 ac_check_lib_save_LIBS=$LIBS 28015LIBS="-ldps $LIBS" 28016cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28017/* end confdefs.h. */ 28018 28019/* Override any GCC internal prototype to avoid an error. 28020 Use char because int might match the return type of a GCC 28021 builtin and then its argument prototype would still apply. */ 28022#ifdef __cplusplus 28023extern "C" 28024#endif 28025char DPSInitialize (); 28026int 28027main () 28028{ 28029return DPSInitialize (); 28030 ; 28031 return 0; 28032} 28033_ACEOF 28034if ac_fn_c_try_link "$LINENO"; then : 28035 ac_cv_lib_dps_DPSInitialize=yes 28036else 28037 ac_cv_lib_dps_DPSInitialize=no 28038fi 28039rm -f core conftest.err conftest.$ac_objext \ 28040 conftest$ac_exeext conftest.$ac_ext 28041LIBS=$ac_check_lib_save_LIBS 28042fi 28043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5 28044$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } 28045if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then : 28046 have_libdps='yes' 28047else 28048 have_libdps='no' 28049fi 28050 28051 if test "$have_libdps" != 'yes'; then 28052 # Unset cache variable so we can try again. 28053 unset ac_cv_lib_dps_DPSInitialize 28054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 28055$as_echo_n "checking for DPSInitialize in -ldps... " >&6; } 28056if ${ac_cv_lib_dps_DPSInitialize+:} false; then : 28057 $as_echo_n "(cached) " >&6 28058else 28059 ac_check_lib_save_LIBS=$LIBS 28060LIBS="-ldps -lXt $LIBS" 28061cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28062/* end confdefs.h. */ 28063 28064/* Override any GCC internal prototype to avoid an error. 28065 Use char because int might match the return type of a GCC 28066 builtin and then its argument prototype would still apply. */ 28067#ifdef __cplusplus 28068extern "C" 28069#endif 28070char DPSInitialize (); 28071int 28072main () 28073{ 28074return DPSInitialize (); 28075 ; 28076 return 0; 28077} 28078_ACEOF 28079if ac_fn_c_try_link "$LINENO"; then : 28080 ac_cv_lib_dps_DPSInitialize=yes 28081else 28082 ac_cv_lib_dps_DPSInitialize=no 28083fi 28084rm -f core conftest.err conftest.$ac_objext \ 28085 conftest$ac_exeext conftest.$ac_ext 28086LIBS=$ac_check_lib_save_LIBS 28087fi 28088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5 28089$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } 28090if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then : 28091 have_libdps='yes' 28092else 28093 have_libdps='no' 28094fi 28095 28096 if test "$have_libdps" = 'yes'; then 28097 LIBDPS_XT='-lXt' 28098 fi 28099 fi 28100 if test "$have_libdps" = 'yes'; then 28101 passed=`expr $passed + 1` 28102 else 28103 failed=`expr $failed + 1` 28104 fi 28105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5 28106$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; } 28107if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then : 28108 $as_echo_n "(cached) " >&6 28109else 28110 ac_check_lib_save_LIBS=$LIBS 28111LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS" 28112cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28113/* end confdefs.h. */ 28114 28115/* Override any GCC internal prototype to avoid an error. 28116 Use char because int might match the return type of a GCC 28117 builtin and then its argument prototype would still apply. */ 28118#ifdef __cplusplus 28119extern "C" 28120#endif 28121char XDPSPixelsPerPoint (); 28122int 28123main () 28124{ 28125return XDPSPixelsPerPoint (); 28126 ; 28127 return 0; 28128} 28129_ACEOF 28130if ac_fn_c_try_link "$LINENO"; then : 28131 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes 28132else 28133 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no 28134fi 28135rm -f core conftest.err conftest.$ac_objext \ 28136 conftest$ac_exeext conftest.$ac_ext 28137LIBS=$ac_check_lib_save_LIBS 28138fi 28139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5 28140$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; } 28141if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then : 28142 passed=`expr $passed + 1` 28143else 28144 failed=`expr $failed + 1` 28145fi 28146 28147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5 28148$as_echo_n "checking if DPS package is complete... " >&6; } 28149 if test $passed -gt 0; then 28150 if test $failed -gt 0; then 28151 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 28152$as_echo "$as_me: no -- some components failed test" >&6;} 28153 have_dps='no (failed tests)' 28154 CPPFLAGS="$PERSIST_CPPFLAGS" 28155 else 28156 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}" 28157 LIBS="$DPS_LIBS $LIBS" 28158 28159$as_echo "#define DPS_DELEGATE 1" >>confdefs.h 28160 28161 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 28162$as_echo "$as_me: yes" >&6;} 28163 have_dps='yes' 28164 fi 28165 else 28166 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 28167$as_echo "$as_me: no" >&6;} 28168 CPPFLAGS=$PERSIST_CPPFLAGS 28169 fi 28170fi 28171 if test "$have_dps" = 'yes'; then 28172 DPS_DELEGATE_TRUE= 28173 DPS_DELEGATE_FALSE='#' 28174else 28175 DPS_DELEGATE_TRUE='#' 28176 DPS_DELEGATE_FALSE= 28177fi 28178 28179 28180 28181 28182# 28183# Check for DJVU delegate library. 28184# 28185 28186# Check whether --with-djvu was given. 28187if test "${with_djvu+set}" = set; then : 28188 withval=$with_djvu; with_djvu=$withval 28189else 28190 with_djvu='yes' 28191fi 28192 28193 28194if test "$with_djvu" != 'yes'; then 28195 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu " 28196fi 28197 28198have_djvu='no' 28199DJVU_LIBS='' 28200if test "$with_djvu" != 'no'; then 28201 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 28202$as_echo "$as_me: -------------------------------------------------------------" >&6;} 28203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5 28204$as_echo_n "checking for DJVU... " >&6; } 28205 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 28206$as_echo "$as_me: " >&6;} 28207 failed=0 28208 passed=0 28209 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default" 28210if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then : 28211 passed=`expr $passed + 1` 28212else 28213 failed=`expr $failed + 1` 28214fi 28215 28216 28217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5 28218$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; } 28219if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then : 28220 $as_echo_n "(cached) " >&6 28221else 28222 ac_check_lib_save_LIBS=$LIBS 28223LIBS="-ldjvulibre $LIBS" 28224cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28225/* end confdefs.h. */ 28226 28227/* Override any GCC internal prototype to avoid an error. 28228 Use char because int might match the return type of a GCC 28229 builtin and then its argument prototype would still apply. */ 28230#ifdef __cplusplus 28231extern "C" 28232#endif 28233char ddjvu_context_create (); 28234int 28235main () 28236{ 28237return ddjvu_context_create (); 28238 ; 28239 return 0; 28240} 28241_ACEOF 28242if ac_fn_c_try_link "$LINENO"; then : 28243 ac_cv_lib_djvulibre_ddjvu_context_create=yes 28244else 28245 ac_cv_lib_djvulibre_ddjvu_context_create=no 28246fi 28247rm -f core conftest.err conftest.$ac_objext \ 28248 conftest$ac_exeext conftest.$ac_ext 28249LIBS=$ac_check_lib_save_LIBS 28250fi 28251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5 28252$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; } 28253if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then : 28254 passed=`expr $passed + 1` 28255else 28256 failed=`expr $failed + 1` 28257fi 28258 28259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5 28260$as_echo_n "checking if DJVU package is complete... " >&6; } 28261 if test $passed -gt 0; then 28262 if test $failed -gt 0; then 28263 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 28264$as_echo "$as_me: no -- some components failed test" >&6;} 28265 have_djvu='no (failed tests)' 28266 else 28267 DJVU_LIBS='-ldjvulibre' 28268 LIBS="$DJVU_LIBS $LIBS" 28269 28270$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h 28271 28272 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 28273$as_echo "$as_me: yes" >&6;} 28274 have_djvu='yes' 28275 fi 28276 else 28277 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 28278$as_echo "$as_me: no" >&6;} 28279 fi 28280fi 28281 if test "$have_djvu" = 'yes'; then 28282 DJVU_DELEGATE_TRUE= 28283 DJVU_DELEGATE_FALSE='#' 28284else 28285 DJVU_DELEGATE_TRUE='#' 28286 DJVU_DELEGATE_FALSE= 28287fi 28288 28289 28290 28291 28292# 28293# Set DejaVu font directory. 28294# 28295 28296# Check whether --with-dejavu-font-dir was given. 28297if test "${with_dejavu_font_dir+set}" = set; then : 28298 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval 28299else 28300 with_dejavu_font_dir='default' 28301fi 28302 28303 28304if test "$with_dejavu_font_dir" != 'default'; then 28305 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir " 28306fi 28307 28308 28309# 28310# Check for FFTW delegate library. 28311# 28312 28313# Check whether --with-fftw was given. 28314if test "${with_fftw+set}" = set; then : 28315 withval=$with_fftw; with_fftw=$withval 28316else 28317 with_fftw='yes' 28318fi 28319 28320 28321if test "$with_fftw" != 'yes'; then 28322 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw " 28323fi 28324 28325have_fftw='no' 28326FFTW_LIBS='' 28327if test "$with_fftw" != 'no'; then 28328 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 28329$as_echo "$as_me: -------------------------------------------------------------" >&6;} 28330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5 28331$as_echo_n "checking for FFTW... " >&6; } 28332 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 28333$as_echo "$as_me: " >&6;} 28334 failed=0 28335 passed=0 28336 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default" 28337if test "x$ac_cv_header_fftw3_h" = xyes; then : 28338 passed=`expr $passed + 1` 28339else 28340 failed=`expr $failed + 1` 28341fi 28342 28343 28344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5 28345$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; } 28346if ${ac_cv_lib_fftw3_fftw_execute+:} false; then : 28347 $as_echo_n "(cached) " >&6 28348else 28349 ac_check_lib_save_LIBS=$LIBS 28350LIBS="-lfftw3 $LIBS" 28351cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28352/* end confdefs.h. */ 28353 28354/* Override any GCC internal prototype to avoid an error. 28355 Use char because int might match the return type of a GCC 28356 builtin and then its argument prototype would still apply. */ 28357#ifdef __cplusplus 28358extern "C" 28359#endif 28360char fftw_execute (); 28361int 28362main () 28363{ 28364return fftw_execute (); 28365 ; 28366 return 0; 28367} 28368_ACEOF 28369if ac_fn_c_try_link "$LINENO"; then : 28370 ac_cv_lib_fftw3_fftw_execute=yes 28371else 28372 ac_cv_lib_fftw3_fftw_execute=no 28373fi 28374rm -f core conftest.err conftest.$ac_objext \ 28375 conftest$ac_exeext conftest.$ac_ext 28376LIBS=$ac_check_lib_save_LIBS 28377fi 28378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5 28379$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; } 28380if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then : 28381 passed=`expr $passed + 1` 28382else 28383 failed=`expr $failed + 1` 28384fi 28385 28386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5 28387$as_echo_n "checking if FFTW package is complete... " >&6; } 28388 if test $passed -gt 0; then 28389 if test $failed -gt 0; then 28390 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 28391$as_echo "$as_me: no -- some components failed test" >&6;} 28392 have_fftw='no (failed tests)' 28393 else 28394 FFTW_LIBS='-lfftw3' 28395 LIBS="$FFTW_LIBS $LIBS" 28396 28397$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h 28398 28399 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 28400$as_echo "$as_me: yes" >&6;} 28401 have_fftw='yes' 28402 fi 28403 else 28404 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 28405$as_echo "$as_me: no" >&6;} 28406 fi 28407fi 28408 if test "$have_fftw" = 'yes'; then 28409 FFTW_DELEGATE_TRUE= 28410 FFTW_DELEGATE_FALSE='#' 28411else 28412 FFTW_DELEGATE_TRUE='#' 28413 FFTW_DELEGATE_FALSE= 28414fi 28415 28416 28417 28418 28419# 28420# Check for FlashPIX delegate library. 28421# 28422 28423# Check whether --with-fpx was given. 28424if test "${with_fpx+set}" = set; then : 28425 withval=$with_fpx; with_fpx=$withval 28426else 28427 with_fpx='yes' 28428fi 28429 28430 28431if test "$with_fpx" != 'yes'; then 28432 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx " 28433fi 28434 28435have_fpx='no' 28436FPX_LIBS='' 28437if test "$with_fpx" != 'no'; then 28438 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 28439$as_echo "$as_me: -------------------------------------------------------------" >&6;} 28440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5 28441$as_echo_n "checking for FlashPIX... " >&6; } 28442 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 28443$as_echo "$as_me: " >&6;} 28444 failed=0 28445 passed=0 28446 ac_ext=cpp 28447ac_cpp='$CXXCPP $CPPFLAGS' 28448ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28449ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28450ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28451 28452 28453ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default" 28454if test "x$ac_cv_header_fpxlib_h" = xyes; then : 28455 passed=`expr $passed + 1` 28456else 28457 failed=`expr $failed + 1` 28458fi 28459 28460 28461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5 28462$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; } 28463if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then : 28464 $as_echo_n "(cached) " >&6 28465else 28466 ac_check_lib_save_LIBS=$LIBS 28467LIBS="-lfpx $LIBS" 28468cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28469/* end confdefs.h. */ 28470 28471/* Override any GCC internal prototype to avoid an error. 28472 Use char because int might match the return type of a GCC 28473 builtin and then its argument prototype would still apply. */ 28474#ifdef __cplusplus 28475extern "C" 28476#endif 28477char FPX_OpenImageByFilename (); 28478int 28479main () 28480{ 28481return FPX_OpenImageByFilename (); 28482 ; 28483 return 0; 28484} 28485_ACEOF 28486if ac_fn_cxx_try_link "$LINENO"; then : 28487 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes 28488else 28489 ac_cv_lib_fpx_FPX_OpenImageByFilename=no 28490fi 28491rm -f core conftest.err conftest.$ac_objext \ 28492 conftest$ac_exeext conftest.$ac_ext 28493LIBS=$ac_check_lib_save_LIBS 28494fi 28495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5 28496$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; } 28497if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then : 28498 passed=`expr $passed + 1` 28499else 28500 failed=`expr $failed + 1` 28501fi 28502 28503 ac_ext=c 28504ac_cpp='$CPP $CPPFLAGS' 28505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28507ac_compiler_gnu=$ac_cv_c_compiler_gnu 28508 28509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5 28510$as_echo_n "checking if FlashPIX package is complete... " >&6; } 28511 if test $passed -gt 0; then 28512 if test $failed -gt 0; then 28513 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 28514$as_echo "$as_me: no -- some components failed test" >&6;} 28515 have_fpx='no (failed tests)' 28516 else 28517 FPX_LIBS='-lfpx' 28518 28519$as_echo "#define FPX_DELEGATE 1" >>confdefs.h 28520 28521 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 28522$as_echo "$as_me: yes" >&6;} 28523 have_fpx='yes' 28524 PERLMAINCC="$CXX" 28525 fi 28526 else 28527 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 28528$as_echo "$as_me: no" >&6;} 28529 fi 28530fi 28531 if test "$have_fpx" = 'yes'; then 28532 FPX_DELEGATE_TRUE= 28533 FPX_DELEGATE_FALSE='#' 28534else 28535 FPX_DELEGATE_TRUE='#' 28536 FPX_DELEGATE_FALSE= 28537fi 28538 28539 28540 28541 28542# 28543# Check for fontconfig delegate library. 28544# 28545 28546# Check whether --with-fontconfig was given. 28547if test "${with_fontconfig+set}" = set; then : 28548 withval=$with_fontconfig; with_fontconfig=$withval 28549else 28550 with_fontconfig='yes' 28551fi 28552 28553 28554if test "$with_fontconfig" != 'yes'; then 28555 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig " 28556fi 28557 28558have_fontconfig='no' 28559FONTCONFIG_CFLAGS="" 28560FONTCONFIG_LIBS="" 28561FONTCONFIG_PKG="" 28562if test "x$with_fontconfig" = "xyes"; then 28563 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 28564$as_echo "$as_me: -------------------------------------------------------------" >&6;} 28565 28566pkg_failed=no 28567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5 28568$as_echo_n "checking for FONTCONFIG... " >&6; } 28569 28570if test -n "$FONTCONFIG_CFLAGS"; then 28571 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" 28572 elif test -n "$PKG_CONFIG"; then 28573 if test -n "$PKG_CONFIG" && \ 28574 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 28575 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 28576 ac_status=$? 28577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28578 test $ac_status = 0; }; then 28579 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null` 28580else 28581 pkg_failed=yes 28582fi 28583 else 28584 pkg_failed=untried 28585fi 28586if test -n "$FONTCONFIG_LIBS"; then 28587 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" 28588 elif test -n "$PKG_CONFIG"; then 28589 if test -n "$PKG_CONFIG" && \ 28590 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 28591 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 28592 ac_status=$? 28593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28594 test $ac_status = 0; }; then 28595 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null` 28596else 28597 pkg_failed=yes 28598fi 28599 else 28600 pkg_failed=untried 28601fi 28602 28603 28604 28605if test $pkg_failed = yes; then 28606 28607if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28608 _pkg_short_errors_supported=yes 28609else 28610 _pkg_short_errors_supported=no 28611fi 28612 if test $_pkg_short_errors_supported = yes; then 28613 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1` 28614 else 28615 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1` 28616 fi 28617 # Put the nasty error message in config.log where it belongs 28618 echo "$FONTCONFIG_PKG_ERRORS" >&5 28619 28620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28621$as_echo "no" >&6; } 28622 have_fontconfig=no 28623elif test $pkg_failed = untried; then 28624 have_fontconfig=no 28625else 28626 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS 28627 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS 28628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28629$as_echo "yes" >&6; } 28630 have_fontconfig=yes 28631fi 28632 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 28633$as_echo "$as_me: " >&6;} 28634fi 28635 28636if test "$have_fontconfig" = 'yes'; then 28637 28638$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h 28639 28640 if test "$build_modules" = 'no'; then 28641 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS" 28642 fi 28643fi 28644 28645 if test "$have_fontconfig" = 'yes'; then 28646 FONTCONFIG_DELEGATE_TRUE= 28647 FONTCONFIG_DELEGATE_FALSE='#' 28648else 28649 FONTCONFIG_DELEGATE_TRUE='#' 28650 FONTCONFIG_DELEGATE_FALSE= 28651fi 28652 28653 28654 28655 28656 28657# 28658# Check for freetype delegate library. 28659# 28660 28661# Check whether --with-freetype was given. 28662if test "${with_freetype+set}" = set; then : 28663 withval=$with_freetype; with_freetype=$withval 28664else 28665 with_freetype='yes' 28666fi 28667 28668 28669 28670if test "$with_freetype" != 'yes'; then 28671 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype " 28672fi 28673 28674have_freetype='no' 28675FREETYPE_LIBS='' 28676if test "$with_freetype" != 'no'; then 28677 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 28678$as_echo "$as_me: -------------------------------------------------------------" >&6;} 28679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5 28680$as_echo_n "checking for FreeType 2.0 ... " >&6; } 28681 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 28682$as_echo "$as_me: " >&6;} 28683 failed=0 28684 passed=0 28685 PERSIST_LDFLAGS="$LDFLAGS" 28686 PERSIST_CPPFLAGS="$CPPFLAGS" 28687 freetype_config='' 28688 # Allow the user to specify the location of freetype. 28689 if test "$with_freetype" != 'yes'; then 28690 if test -x "${with_freetype}/bin/freetype-config"; then 28691 freetype_config="${with_freetype}/bin/freetype-config" 28692 elif test -x "${with_freetype}"; then 28693 freetype_config=${with_freetype} 28694 fi 28695 fi 28696 if test -z "$freetype_config"; then 28697 # Extract the first word of "freetype-config", so it can be a program name with args. 28698set dummy freetype-config; ac_word=$2 28699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28700$as_echo_n "checking for $ac_word... " >&6; } 28701if ${ac_cv_path_freetype_config+:} false; then : 28702 $as_echo_n "(cached) " >&6 28703else 28704 case $freetype_config in 28705 [\\/]* | ?:[\\/]*) 28706 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path. 28707 ;; 28708 *) 28709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28710for as_dir in $PATH 28711do 28712 IFS=$as_save_IFS 28713 test -z "$as_dir" && as_dir=. 28714 for ac_exec_ext in '' $ac_executable_extensions; do 28715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28716 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext" 28717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28718 break 2 28719 fi 28720done 28721 done 28722IFS=$as_save_IFS 28723 28724 ;; 28725esac 28726fi 28727freetype_config=$ac_cv_path_freetype_config 28728if test -n "$freetype_config"; then 28729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5 28730$as_echo "$freetype_config" >&6; } 28731else 28732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28733$as_echo "no" >&6; } 28734fi 28735 28736 fi 28737 if test -n "$freetype_config"; then 28738 freetype_prefix=`${freetype_config} --prefix` 28739 freetype_exec_prefix=`${freetype_config} --exec-prefix` 28740 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib" 28741 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2" 28742 fi 28743 28744 if test "$FREETYPE_LIBS" = ''; then 28745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5 28746$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; } 28747if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then : 28748 $as_echo_n "(cached) " >&6 28749else 28750 ac_check_lib_save_LIBS=$LIBS 28751LIBS="-lfreetype $LIBS" 28752cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28753/* end confdefs.h. */ 28754 28755/* Override any GCC internal prototype to avoid an error. 28756 Use char because int might match the return type of a GCC 28757 builtin and then its argument prototype would still apply. */ 28758#ifdef __cplusplus 28759extern "C" 28760#endif 28761char FT_Init_FreeType (); 28762int 28763main () 28764{ 28765return FT_Init_FreeType (); 28766 ; 28767 return 0; 28768} 28769_ACEOF 28770if ac_fn_c_try_link "$LINENO"; then : 28771 ac_cv_lib_freetype_FT_Init_FreeType=yes 28772else 28773 ac_cv_lib_freetype_FT_Init_FreeType=no 28774fi 28775rm -f core conftest.err conftest.$ac_objext \ 28776 conftest$ac_exeext conftest.$ac_ext 28777LIBS=$ac_check_lib_save_LIBS 28778fi 28779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 28780$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } 28781if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then : 28782 FREETYPE_LIBS='-lfreetype' 28783fi 28784 28785 if test "$FREETYPE_LIBS" != ''; then 28786 passed=`expr $passed + 1` 28787 else 28788 failed=`expr $failed + 1` 28789 LDFLAGS="$PERSIST_LDFLAGS" 28790 fi 28791 fi 28792 28793 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default" 28794if test "x$ac_cv_header_ft2build_h" = xyes; then : 28795 FT2BUILD_H='#include <ft2build.h>' 28796else 28797 ft2build='' 28798fi 28799 28800 28801 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H 28802" 28803if test "x$ac_cv_header_freetype_freetype_h" = xyes; then : 28804 have_freetype_h='yes' 28805else 28806 have_freetype_h='no' 28807fi 28808 28809 28810 if test "$have_freetype_h" = 'yes'; then 28811 passed=`expr $passed + 1` 28812 else 28813 failed=`expr $failed + 1` 28814 CPPFLAGS="$PERSIST_CPPFLAGS" 28815 fi 28816 28817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5 28818$as_echo_n "checking if FreeType package is complete... " >&6; } 28819 if test $passed -gt 0; then 28820 if test $failed -gt 0; then 28821 FREETYPE_LIBS='' 28822 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 28823$as_echo "$as_me: no -- some components failed test" >&6;} 28824 have_freetype='no (failed tests)' 28825 else 28826 LIBS="$FREETYPE_LIBS $LIBS" 28827 28828$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h 28829 28830 if test "$ac_cv_header_ft2build_h" = 'yes'; then 28831 28832$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h 28833 28834 fi 28835 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 28836$as_echo "$as_me: yes" >&6;} 28837 have_freetype='yes' 28838 fi 28839 else 28840 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 28841$as_echo "$as_me: no" >&6;} 28842 fi 28843fi 28844 if test "$have_freetype" = 'yes'; then 28845 FREETYPE_DELEGATE_TRUE= 28846 FREETYPE_DELEGATE_FALSE='#' 28847else 28848 FREETYPE_DELEGATE_TRUE='#' 28849 FREETYPE_DELEGATE_FALSE= 28850fi 28851 28852 28853 28854 28855# 28856# Check for Ghostscript library or framework. 28857# 28858# Test for iapi.h & test for gsapi_new_instance in -lgs 28859# or -framework Ghostscript 28860 28861 28862# Check whether --with-gslib was given. 28863if test "${with_gslib+set}" = set; then : 28864 withval=$with_gslib; with_gslib=$withval 28865else 28866 with_gslib='no' 28867fi 28868 28869 28870gslib_framework='no' 28871if test "$with_gslib" != 'yes'; then 28872 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib " 28873fi 28874 28875have_gslib='no' 28876GS_LIBS='' 28877if test "$with_gslib" != 'no'; then 28878 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 28879$as_echo "$as_me: -------------------------------------------------------------" >&6;} 28880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 28881$as_echo_n "checking for Ghostscript... " >&6; } 28882 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 28883$as_echo "$as_me: " >&6;} 28884 framework=0 28885 failed=0 28886 passed=0 28887 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default" 28888if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then : 28889 passed=`expr $passed + 1` 28890else 28891 failed=`expr $failed + 1` 28892fi 28893 28894 28895 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default" 28896if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then : 28897 passed=`expr $passed + 1` 28898else 28899 failed=`expr $failed + 1` 28900fi 28901 28902 28903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5 28904$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; } 28905if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then : 28906 $as_echo_n "(cached) " >&6 28907else 28908 ac_check_framework_save_LIBS=$LIBS 28909LIBS="-framework Ghostscript $LIBS" 28910cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28911/* end confdefs.h. */ 28912 28913/* Override any GCC internal prototype to avoid an error. 28914 Use char because int might match the return type of a GCC 28915 builtin and then its argument prototype would still apply. */ 28916#ifdef __cplusplus 28917extern "C" 28918#endif 28919char gsapi_new_instance (); 28920int 28921main () 28922{ 28923return gsapi_new_instance (); 28924 ; 28925 return 0; 28926} 28927_ACEOF 28928if ac_fn_c_try_link "$LINENO"; then : 28929 ac_cv_framework_Ghostscript_gsapi_new_instance=yes 28930else 28931 ac_cv_framework_Ghostscript_gsapi_new_instance=no 28932fi 28933rm -f core conftest.err conftest.$ac_objext \ 28934 conftest$ac_exeext conftest.$ac_ext 28935LIBS=$ac_check_framework_save_LIBS 28936fi 28937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5 28938$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; } 28939if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then : 28940 framework=`expr $framework + 1` 28941else 28942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5 28943$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; } 28944if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then : 28945 $as_echo_n "(cached) " >&6 28946else 28947 ac_check_lib_save_LIBS=$LIBS 28948LIBS="-lgs $LIBS" 28949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28950/* end confdefs.h. */ 28951 28952/* Override any GCC internal prototype to avoid an error. 28953 Use char because int might match the return type of a GCC 28954 builtin and then its argument prototype would still apply. */ 28955#ifdef __cplusplus 28956extern "C" 28957#endif 28958char gsapi_new_instance (); 28959int 28960main () 28961{ 28962return gsapi_new_instance (); 28963 ; 28964 return 0; 28965} 28966_ACEOF 28967if ac_fn_c_try_link "$LINENO"; then : 28968 ac_cv_lib_gs_gsapi_new_instance=yes 28969else 28970 ac_cv_lib_gs_gsapi_new_instance=no 28971fi 28972rm -f core conftest.err conftest.$ac_objext \ 28973 conftest$ac_exeext conftest.$ac_ext 28974LIBS=$ac_check_lib_save_LIBS 28975fi 28976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5 28977$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; } 28978if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then : 28979 passed=`expr $passed + 1` 28980else 28981 failed=`expr $failed + 1` 28982fi 28983 28984fi 28985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5 28986$as_echo_n "checking if Ghostscript package is complete... " >&6; } 28987 if test $passed -gt 0; then 28988 if test $failed -gt 0; then 28989 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 28990$as_echo "$as_me: no -- some components failed test" >&6;} 28991 have_gslib='no (failed tests)' 28992 else 28993 if test $framework -gt 0; then 28994 GS_LIBS='-framework Ghostscript' 28995 gslib_framework='yes' 28996 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5 28997$as_echo "$as_me: yes, using framework." >&6;} 28998 else 28999 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5 29000$as_echo "$as_me: yes, using library." >&6;} 29001 GS_LIBS='-lgs' 29002 fi 29003 LIBS="$GS_LIBS $LIBS" 29004 29005$as_echo "#define GS_DELEGATE 1" >>confdefs.h 29006 29007 have_gslib='yes' 29008 fi 29009 else 29010 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 29011$as_echo "$as_me: no" >&6;} 29012 fi 29013fi 29014 if test "$have_gslib" = 'yes'; then 29015 GS_DELEGATE_TRUE= 29016 GS_DELEGATE_FALSE='#' 29017else 29018 GS_DELEGATE_TRUE='#' 29019 GS_DELEGATE_FALSE= 29020fi 29021 29022 29023 29024# Set default font search path 29025 29026# Check whether --with-fontpath was given. 29027if test "${with_fontpath+set}" = set; then : 29028 withval=$with_fontpath; with_fontpath=$withval 29029else 29030 with_fontpath='' 29031fi 29032 29033 29034if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then 29035 with_fontpath='' 29036else 29037 29038cat >>confdefs.h <<_ACEOF 29039#define MAGICK_FONT_PATH "$with_fontpath" 29040_ACEOF 29041 29042fi 29043if test "$with_fontpath=" != ''; then 29044 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath " 29045fi 29046 29047# Set Ghostscript font directory 29048 29049# Check whether --with-gs-font-dir was given. 29050if test "${with_gs_font_dir+set}" = set; then : 29051 withval=$with_gs_font_dir; with_gs_font_dir=$withval 29052else 29053 with_gs_font_dir='default' 29054fi 29055 29056 29057if test "$with_gs_font_dir" != 'default'; then 29058 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir " 29059fi 29060 29061 29062# 29063# Check for GVC delegate library. 29064# 29065 29066# Check whether --with-gvc was given. 29067if test "${with_gvc+set}" = set; then : 29068 withval=$with_gvc; with_gvc=$withval 29069else 29070 with_gvc='no' 29071fi 29072 29073 29074if test "$with_gvc" != 'yes'; then 29075 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc " 29076fi 29077 29078GVC_PKG="" 29079if test "x$with_gvc" = "xyes"; then 29080 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 29081$as_echo "$as_me: -------------------------------------------------------------" >&6;} 29082 29083pkg_failed=no 29084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5 29085$as_echo_n "checking for GVC... " >&6; } 29086 29087if test -n "$GVC_CFLAGS"; then 29088 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS" 29089 elif test -n "$PKG_CONFIG"; then 29090 if test -n "$PKG_CONFIG" && \ 29091 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 29092 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 29093 ac_status=$? 29094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29095 test $ac_status = 0; }; then 29096 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null` 29097else 29098 pkg_failed=yes 29099fi 29100 else 29101 pkg_failed=untried 29102fi 29103if test -n "$GVC_LIBS"; then 29104 pkg_cv_GVC_LIBS="$GVC_LIBS" 29105 elif test -n "$PKG_CONFIG"; then 29106 if test -n "$PKG_CONFIG" && \ 29107 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 29108 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 29109 ac_status=$? 29110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29111 test $ac_status = 0; }; then 29112 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null` 29113else 29114 pkg_failed=yes 29115fi 29116 else 29117 pkg_failed=untried 29118fi 29119 29120 29121 29122if test $pkg_failed = yes; then 29123 29124if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29125 _pkg_short_errors_supported=yes 29126else 29127 _pkg_short_errors_supported=no 29128fi 29129 if test $_pkg_short_errors_supported = yes; then 29130 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1` 29131 else 29132 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1` 29133 fi 29134 # Put the nasty error message in config.log where it belongs 29135 echo "$GVC_PKG_ERRORS" >&5 29136 29137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29138$as_echo "no" >&6; } 29139 have_gvc=no 29140elif test $pkg_failed = untried; then 29141 have_gvc=no 29142else 29143 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS 29144 GVC_LIBS=$pkg_cv_GVC_LIBS 29145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29146$as_echo "yes" >&6; } 29147 have_gvc=yes 29148fi 29149 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 29150$as_echo "$as_me: " >&6;} 29151fi 29152 29153if test "$have_gvc" = 'yes'; then 29154 29155$as_echo "#define GVC_DELEGATE 1" >>confdefs.h 29156 29157 if test "$build_modules" = 'no'; then 29158 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS" 29159 fi 29160fi 29161 29162 if test "$have_gvc" = 'yes'; then 29163 GVC_DELEGATE_TRUE= 29164 GVC_DELEGATE_FALSE='#' 29165else 29166 GVC_DELEGATE_TRUE='#' 29167 GVC_DELEGATE_FALSE= 29168fi 29169 29170 29171 29172 29173 29174# 29175# Check for JBIG delegate library. 29176# 29177 29178 29179# Check whether --with-jbig was given. 29180if test "${with_jbig+set}" = set; then : 29181 withval=$with_jbig; with_jbig=$withval 29182else 29183 with_jbig='yes' 29184fi 29185 29186 29187have_jbig='no' 29188JBIG_LIBS='' 29189if test "$with_jbig" != 'no'; then 29190 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 29191$as_echo "$as_me: -------------------------------------------------------------" >&6;} 29192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5 29193$as_echo_n "checking for JBIG... " >&6; } 29194 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 29195$as_echo "$as_me: " >&6;} 29196 failed=0 29197 passed=0 29198 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" 29199if test "x$ac_cv_header_jbig_h" = xyes; then : 29200 passed=`expr $passed + 1` 29201else 29202 failed=`expr $failed + 1` 29203fi 29204 29205 29206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5 29207$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } 29208if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then : 29209 $as_echo_n "(cached) " >&6 29210else 29211 ac_check_lib_save_LIBS=$LIBS 29212LIBS="-ljbig $LIBS" 29213cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29214/* end confdefs.h. */ 29215 29216/* Override any GCC internal prototype to avoid an error. 29217 Use char because int might match the return type of a GCC 29218 builtin and then its argument prototype would still apply. */ 29219#ifdef __cplusplus 29220extern "C" 29221#endif 29222char jbg_dec_init (); 29223int 29224main () 29225{ 29226return jbg_dec_init (); 29227 ; 29228 return 0; 29229} 29230_ACEOF 29231if ac_fn_c_try_link "$LINENO"; then : 29232 ac_cv_lib_jbig_jbg_dec_init=yes 29233else 29234 ac_cv_lib_jbig_jbg_dec_init=no 29235fi 29236rm -f core conftest.err conftest.$ac_objext \ 29237 conftest$ac_exeext conftest.$ac_ext 29238LIBS=$ac_check_lib_save_LIBS 29239fi 29240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5 29241$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } 29242if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then : 29243 passed=`expr $passed + 1` 29244else 29245 failed=`expr $failed + 1` 29246fi 29247 29248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5 29249$as_echo_n "checking if JBIG package is complete... " >&6; } 29250 if test $passed -gt 0; then 29251 if test $failed -gt 0; then 29252 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 29253$as_echo "$as_me: no -- some components failed test" >&6;} 29254 have_jbig='no (failed tests)' 29255 else 29256 JBIG_LIBS='-ljbig' 29257 LIBS="$JBIG_LIBS $LIBS" 29258 29259$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h 29260 29261 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 29262$as_echo "$as_me: yes" >&6;} 29263 have_jbig='yes' 29264 fi 29265 else 29266 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 29267$as_echo "$as_me: no" >&6;} 29268 fi 29269fi 29270 if test "$have_jbig" = 'yes'; then 29271 JBIG_DELEGATE_TRUE= 29272 JBIG_DELEGATE_FALSE='#' 29273else 29274 JBIG_DELEGATE_TRUE='#' 29275 JBIG_DELEGATE_FALSE= 29276fi 29277 29278 29279 29280 29281# 29282# Check for JPEG delegate library. 29283# 29284 29285# Check whether --with-jpeg was given. 29286if test "${with_jpeg+set}" = set; then : 29287 withval=$with_jpeg; with_jpeg=$withval 29288else 29289 with_jpeg='yes' 29290fi 29291 29292 29293if test "$with_jpeg" != 'yes'; then 29294 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg " 29295fi 29296 29297have_jpeg='no' 29298JPEG_LIBS='' 29299if test "$with_jpeg" != 'no'; then 29300 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 29301$as_echo "$as_me: -------------------------------------------------------------" >&6;} 29302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5 29303$as_echo_n "checking for JPEG... " >&6; } 29304 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 29305$as_echo "$as_me: " >&6;} 29306 failed=0 29307 passed=0 29308 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default" 29309if test "x$ac_cv_header_jconfig_h" = xyes; then : 29310 passed=`expr $passed + 1` 29311else 29312 failed=`expr $failed + 1` 29313fi 29314 29315 29316 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" 29317if test "x$ac_cv_header_jerror_h" = xyes; then : 29318 passed=`expr $passed + 1` 29319else 29320 failed=`expr $failed + 1` 29321fi 29322 29323 29324 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default" 29325if test "x$ac_cv_header_jmorecfg_h" = xyes; then : 29326 passed=`expr $passed + 1` 29327else 29328 failed=`expr $failed + 1` 29329fi 29330 29331 29332 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 29333if test "x$ac_cv_header_jpeglib_h" = xyes; then : 29334 passed=`expr $passed + 1` 29335else 29336 failed=`expr $failed + 1` 29337fi 29338 29339 29340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5 29341$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } 29342if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then : 29343 $as_echo_n "(cached) " >&6 29344else 29345 ac_check_lib_save_LIBS=$LIBS 29346LIBS="-ljpeg $LIBS" 29347cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29348/* end confdefs.h. */ 29349 29350/* Override any GCC internal prototype to avoid an error. 29351 Use char because int might match the return type of a GCC 29352 builtin and then its argument prototype would still apply. */ 29353#ifdef __cplusplus 29354extern "C" 29355#endif 29356char jpeg_read_header (); 29357int 29358main () 29359{ 29360return jpeg_read_header (); 29361 ; 29362 return 0; 29363} 29364_ACEOF 29365if ac_fn_c_try_link "$LINENO"; then : 29366 ac_cv_lib_jpeg_jpeg_read_header=yes 29367else 29368 ac_cv_lib_jpeg_jpeg_read_header=no 29369fi 29370rm -f core conftest.err conftest.$ac_objext \ 29371 conftest$ac_exeext conftest.$ac_ext 29372LIBS=$ac_check_lib_save_LIBS 29373fi 29374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 29375$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } 29376if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then : 29377 passed=`expr $passed + 1` 29378else 29379 failed=`expr $failed + 1` 29380fi 29381 29382 29383# Test for compatible JPEG library 29384if test "$ac_cv_jpeg_version_ok" != 'yes'; then 29385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5 29386$as_echo_n "checking for JPEG library is version 6b or later... " >&6; } 29387if ${ac_cv_jpeg_version_ok+:} false; then : 29388 $as_echo_n "(cached) " >&6 29389else 29390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29391/* end confdefs.h. */ 29392#include <stdio.h> 29393#include <stdlib.h> 29394#include <jpeglib.h> 29395 29396int 29397main () 29398{ 29399 29400#if JPEG_LIB_VERSION < 62 29401#error IJG JPEG library must be version 6b or newer! 29402#endif 29403return 0; 29404 29405 ; 29406 return 0; 29407} 29408_ACEOF 29409if ac_fn_c_try_compile "$LINENO"; then : 29410 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1` 29411else 29412 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1` 29413fi 29414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29415fi 29416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5 29417$as_echo "$ac_cv_jpeg_version_ok" >&6; } 29418fi 29419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5 29420$as_echo_n "checking if JPEG package is complete... " >&6; } 29421 if test $passed -gt 0; then 29422 if test $failed -gt 0; then 29423 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 29424$as_echo "$as_me: no -- some components failed test" >&6;} 29425 have_jpeg='no (failed tests)' 29426 else 29427 JPEG_LIBS='-ljpeg' 29428 LIBS="$JPEG_LIBS $LIBS" 29429 29430$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h 29431 29432 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 29433$as_echo "$as_me: yes" >&6;} 29434 have_jpeg='yes' 29435 fi 29436 else 29437 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 29438$as_echo "$as_me: no" >&6;} 29439 fi 29440fi 29441 if test "$have_jpeg" = 'yes'; then 29442 JPEG_DELEGATE_TRUE= 29443 JPEG_DELEGATE_FALSE='#' 29444else 29445 JPEG_DELEGATE_TRUE='#' 29446 JPEG_DELEGATE_FALSE= 29447fi 29448 29449 29450 29451 29452# 29453# Check for JPEG Version 2 delegate library. 29454# 29455 29456# Check whether --with-jp2 was given. 29457if test "${with_jp2+set}" = set; then : 29458 withval=$with_jp2; with_jp2=$withval 29459else 29460 with_jp2='yes' 29461fi 29462 29463 29464if test "$with_jp2" != 'yes'; then 29465 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 " 29466fi 29467 29468have_jp2='no' 29469JP2_LIBS='' 29470if test "$with_jp2" != 'no'; then 29471 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 29472$as_echo "$as_me: -------------------------------------------------------------" >&6;} 29473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5 29474$as_echo_n "checking for JPEG Version 2... " >&6; } 29475 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 29476$as_echo "$as_me: " >&6;} 29477 failed=0 29478 passed=0 29479 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default" 29480if test "x$ac_cv_header_jasper_jasper_h" = xyes; then : 29481 passed=`expr $passed + 1` 29482else 29483 failed=`expr $failed + 1` 29484fi 29485 29486 29487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5 29488$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; } 29489if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then : 29490 $as_echo_n "(cached) " >&6 29491else 29492 ac_check_lib_save_LIBS=$LIBS 29493LIBS="-ljasper $LIBS" 29494cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29495/* end confdefs.h. */ 29496 29497/* Override any GCC internal prototype to avoid an error. 29498 Use char because int might match the return type of a GCC 29499 builtin and then its argument prototype would still apply. */ 29500#ifdef __cplusplus 29501extern "C" 29502#endif 29503char jas_stream_fopen (); 29504int 29505main () 29506{ 29507return jas_stream_fopen (); 29508 ; 29509 return 0; 29510} 29511_ACEOF 29512if ac_fn_c_try_link "$LINENO"; then : 29513 ac_cv_lib_jasper_jas_stream_fopen=yes 29514else 29515 ac_cv_lib_jasper_jas_stream_fopen=no 29516fi 29517rm -f core conftest.err conftest.$ac_objext \ 29518 conftest$ac_exeext conftest.$ac_ext 29519LIBS=$ac_check_lib_save_LIBS 29520fi 29521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5 29522$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; } 29523if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then : 29524 passed=`expr $passed + 1` 29525else 29526 failed=`expr $failed + 1` 29527fi 29528 29529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5 29530$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; } 29531 if test $passed -gt 0; then 29532 if test $failed -gt 0; then 29533 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 29534$as_echo "$as_me: no -- some components failed test" >&6;} 29535 have_jp2='no (failed tests)' 29536 else 29537 JP2_LIBS='-ljasper' 29538 LIBS="$JP2_LIBS $LIBS" 29539 29540$as_echo "#define JP2_DELEGATE 1" >>confdefs.h 29541 29542 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 29543$as_echo "$as_me: yes" >&6;} 29544 have_jp2='yes' 29545 fi 29546 else 29547 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 29548$as_echo "$as_me: no" >&6;} 29549 fi 29550fi 29551 if test "$have_jp2" = 'yes'; then 29552 JP2_DELEGATE_TRUE= 29553 JP2_DELEGATE_FALSE='#' 29554else 29555 JP2_DELEGATE_TRUE='#' 29556 JP2_DELEGATE_FALSE= 29557fi 29558 29559 29560 29561 29562# 29563# Check for LCMS delegate library. 29564# 29565# Disable LCMS. 29566 29567# Check whether --with-lcms was given. 29568if test "${with_lcms+set}" = set; then : 29569 withval=$with_lcms; with_lcms=$withval 29570else 29571 with_lcms='yes' 29572fi 29573 29574if test "$with_lcms" != 'yes' ; then 29575 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms " 29576fi 29577 29578# Disable LCMS2. 29579 29580# Check whether --with-lcms2 was given. 29581if test "${with_lcms2+set}" = set; then : 29582 withval=$with_lcms2; with_lcms2=$withval 29583else 29584 with_lcms2='yes' 29585fi 29586 29587if test "$with_lcms2" != 'yes' ; then 29588 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 " 29589fi 29590 29591have_lcms2='no' 29592LCMS_LIBS='' 29593if test "$with_lcms2" != 'no'; then 29594 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 29595$as_echo "$as_me: -------------------------------------------------------------" >&6;} 29596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5 29597$as_echo_n "checking for LCMS v2... " >&6; } 29598 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 29599$as_echo "$as_me: " >&6;} 29600 failed=0 29601 passed=0 29602 have_lcms_header='no' 29603 29604 # Check for <lcms2.h> 29605 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default" 29606if test "x$ac_cv_header_lcms2_h" = xyes; then : 29607 have_lcms_header='yes' 29608fi 29609 29610 29611 if test "$have_lcms_header" = 'yes'; then 29612 29613$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h 29614 29615 passed=`expr $passed + 1` 29616 fi 29617 29618 # Check for <lcms2/lcms2.h) 29619 if test "$have_lcms_header" != 'yes'; then 29620 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default" 29621if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then : 29622 have_lcms_header='yes' 29623fi 29624 29625 29626 if test "$have_lcms_header" = 'yes'; then 29627 passed=`expr $passed + 1` 29628 29629$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h 29630 29631 fi 29632 fi 29633 29634 # Failed to find lcms header? 29635 if test "$have_lcms_header" != 'yes'; then 29636 failed=`expr $failed + 1` 29637 fi 29638 29639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5 29640$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; } 29641if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then : 29642 $as_echo_n "(cached) " >&6 29643else 29644 ac_check_lib_save_LIBS=$LIBS 29645LIBS="-llcms2 $LIBS" 29646cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29647/* end confdefs.h. */ 29648 29649/* Override any GCC internal prototype to avoid an error. 29650 Use char because int might match the return type of a GCC 29651 builtin and then its argument prototype would still apply. */ 29652#ifdef __cplusplus 29653extern "C" 29654#endif 29655char cmsSetLogErrorHandler (); 29656int 29657main () 29658{ 29659return cmsSetLogErrorHandler (); 29660 ; 29661 return 0; 29662} 29663_ACEOF 29664if ac_fn_c_try_link "$LINENO"; then : 29665 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes 29666else 29667 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no 29668fi 29669rm -f core conftest.err conftest.$ac_objext \ 29670 conftest$ac_exeext conftest.$ac_ext 29671LIBS=$ac_check_lib_save_LIBS 29672fi 29673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5 29674$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; } 29675if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then : 29676 passed=`expr $passed + 1` 29677else 29678 failed=`expr $failed + 1` 29679fi 29680 29681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5 29682$as_echo_n "checking if LCMS v2 package is complete... " >&6; } 29683 if test $passed -gt 0; then 29684 if test $failed -gt 0; then 29685 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 29686$as_echo "$as_me: no -- some components failed test" >&6;} 29687 have_lcms2='no (failed tests)' 29688 else 29689 LCMS_LIBS='-llcms2' 29690 LIBS="$LCMS_LIBS $LIBS" 29691 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 29692$as_echo "$as_me: yes" >&6;} 29693 have_lcms2='yes' 29694 fi 29695 else 29696 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 29697$as_echo "$as_me: no" >&6;} 29698 fi 29699fi 29700 29701# 29702# Check for LCMS v1 (1.11 or later) 29703# 29704if test $have_lcms2 = 'yes'; then 29705 with_lcms='no' 29706fi 29707 29708have_lcms='no' 29709if test "$with_lcms" != 'no'; then 29710 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 29711$as_echo "$as_me: -------------------------------------------------------------" >&6;} 29712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5 29713$as_echo_n "checking for LCMS v1.1X... " >&6; } 29714 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 29715$as_echo "$as_me: " >&6;} 29716 failed=0 29717 passed=0 29718 have_lcms_header='no' 29719 29720 # Check for <lcms.h> 29721 if test "$have_lcms_header" != 'yes'; then 29722 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default" 29723if test "x$ac_cv_header_lcms_h" = xyes; then : 29724 have_lcms_header='yes' 29725fi 29726 29727 29728 if test "$have_lcms_header" = 'yes'; then 29729 passed=`expr $passed + 1` 29730 29731$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h 29732 29733 fi 29734 fi 29735 29736 # Check for <lcms/lcms.h> 29737 if test "$have_lcms_header" != 'yes'; then 29738 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default" 29739if test "x$ac_cv_header_lcms_lcms_h" = xyes; then : 29740 have_lcms_header='yes' 29741fi 29742 29743 29744 if test "$have_lcms_header" = 'yes'; then 29745 passed=`expr $passed + 1` 29746 29747$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h 29748 29749 fi 29750 fi 29751 29752 # Failed to find lcms header? 29753 if test "$have_lcms_header" != 'yes'; then 29754 failed=`expr $failed + 1` 29755 fi 29756 29757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5 29758$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; } 29759if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then : 29760 $as_echo_n "(cached) " >&6 29761else 29762 ac_check_lib_save_LIBS=$LIBS 29763LIBS="-llcms $LIBS" 29764cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29765/* end confdefs.h. */ 29766 29767/* Override any GCC internal prototype to avoid an error. 29768 Use char because int might match the return type of a GCC 29769 builtin and then its argument prototype would still apply. */ 29770#ifdef __cplusplus 29771extern "C" 29772#endif 29773char cmsSetErrorHandler (); 29774int 29775main () 29776{ 29777return cmsSetErrorHandler (); 29778 ; 29779 return 0; 29780} 29781_ACEOF 29782if ac_fn_c_try_link "$LINENO"; then : 29783 ac_cv_lib_lcms_cmsSetErrorHandler=yes 29784else 29785 ac_cv_lib_lcms_cmsSetErrorHandler=no 29786fi 29787rm -f core conftest.err conftest.$ac_objext \ 29788 conftest$ac_exeext conftest.$ac_ext 29789LIBS=$ac_check_lib_save_LIBS 29790fi 29791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5 29792$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; } 29793if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then : 29794 passed=`expr $passed + 1` 29795else 29796 failed=`expr $failed + 1` 29797fi 29798 29799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5 29800$as_echo_n "checking if LCMS package is complete... " >&6; } 29801 if test $passed -gt 0; then 29802 if test $failed -gt 0; then 29803 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 29804$as_echo "$as_me: no -- some components failed test" >&6;} 29805 have_lcms='no (failed tests)' 29806 else 29807 LCMS_LIBS='-llcms' 29808 LIBS="$LCMS_LIBS $LIBS" 29809 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 29810$as_echo "$as_me: yes" >&6;} 29811 have_lcms='yes' 29812 fi 29813 else 29814 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 29815$as_echo "$as_me: no" >&6;} 29816 fi 29817fi 29818 29819 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then 29820 LCMS_DELEGATE_TRUE= 29821 LCMS_DELEGATE_FALSE='#' 29822else 29823 LCMS_DELEGATE_TRUE='#' 29824 LCMS_DELEGATE_FALSE= 29825fi 29826 29827if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then 29828 29829$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h 29830 29831fi 29832 29833 29834 29835 29836# 29837# Check for the LQR (Liquid Rescale) delegate library. 29838# 29839 29840# Check whether --with-lqr was given. 29841if test "${with_lqr+set}" = set; then : 29842 withval=$with_lqr; with_lqr=$withval 29843else 29844 with_lqr='yes' 29845fi 29846 29847 29848if test "$with_lqr" != 'yes'; then 29849 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr " 29850fi 29851 29852have_lqr='no' 29853LQR_CFLAGS="" 29854LQR_LIBS="" 29855LQR_PKG="" 29856if test "x$with_lqr" = "xyes"; then 29857 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 29858$as_echo "$as_me: -------------------------------------------------------------" >&6;} 29859 29860pkg_failed=no 29861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5 29862$as_echo_n "checking for LQR... " >&6; } 29863 29864if test -n "$LQR_CFLAGS"; then 29865 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS" 29866 elif test -n "$PKG_CONFIG"; then 29867 if test -n "$PKG_CONFIG" && \ 29868 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 29869 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 29870 ac_status=$? 29871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29872 test $ac_status = 0; }; then 29873 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null` 29874else 29875 pkg_failed=yes 29876fi 29877 else 29878 pkg_failed=untried 29879fi 29880if test -n "$LQR_LIBS"; then 29881 pkg_cv_LQR_LIBS="$LQR_LIBS" 29882 elif test -n "$PKG_CONFIG"; then 29883 if test -n "$PKG_CONFIG" && \ 29884 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 29885 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 29886 ac_status=$? 29887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29888 test $ac_status = 0; }; then 29889 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null` 29890else 29891 pkg_failed=yes 29892fi 29893 else 29894 pkg_failed=untried 29895fi 29896 29897 29898 29899if test $pkg_failed = yes; then 29900 29901if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29902 _pkg_short_errors_supported=yes 29903else 29904 _pkg_short_errors_supported=no 29905fi 29906 if test $_pkg_short_errors_supported = yes; then 29907 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1` 29908 else 29909 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1` 29910 fi 29911 # Put the nasty error message in config.log where it belongs 29912 echo "$LQR_PKG_ERRORS" >&5 29913 29914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29915$as_echo "no" >&6; } 29916 have_lqr=no 29917elif test $pkg_failed = untried; then 29918 have_lqr=no 29919else 29920 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS 29921 LQR_LIBS=$pkg_cv_LQR_LIBS 29922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29923$as_echo "yes" >&6; } 29924 have_lqr=yes 29925fi 29926 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 29927$as_echo "$as_me: " >&6;} 29928fi 29929 29930if test "$have_lqr" = 'yes'; then 29931 29932$as_echo "#define LQR_DELEGATE 1" >>confdefs.h 29933 29934 CFLAGS="$LQR_CFLAGS $CFLAGS" 29935fi 29936 29937 if test "$have_lqr" = 'yes'; then 29938 LQR_DELEGATE_TRUE= 29939 LQR_DELEGATE_FALSE='#' 29940else 29941 LQR_DELEGATE_TRUE='#' 29942 LQR_DELEGATE_FALSE= 29943fi 29944 29945 29946 29947 29948 29949# Disable LZMA (lzma library) 29950 29951# Check whether --with-lzma was given. 29952if test "${with_lzma+set}" = set; then : 29953 withval=$with_lzma; with_lzma=$withval 29954else 29955 with_lzma='yes' 29956fi 29957 29958if test "$with_lzma" != 'yes' ; then 29959 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma " 29960fi 29961 29962LZMA_PKG="" 29963if test "x$with_lzma" = "xyes"; then 29964 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 29965$as_echo "$as_me: -------------------------------------------------------------" >&6;} 29966 29967pkg_failed=no 29968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5 29969$as_echo_n "checking for LZMA... " >&6; } 29970 29971if test -n "$LZMA_CFLAGS"; then 29972 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS" 29973 elif test -n "$PKG_CONFIG"; then 29974 if test -n "$PKG_CONFIG" && \ 29975 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5 29976 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5 29977 ac_status=$? 29978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29979 test $ac_status = 0; }; then 29980 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null` 29981else 29982 pkg_failed=yes 29983fi 29984 else 29985 pkg_failed=untried 29986fi 29987if test -n "$LZMA_LIBS"; then 29988 pkg_cv_LZMA_LIBS="$LZMA_LIBS" 29989 elif test -n "$PKG_CONFIG"; then 29990 if test -n "$PKG_CONFIG" && \ 29991 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5 29992 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5 29993 ac_status=$? 29994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29995 test $ac_status = 0; }; then 29996 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null` 29997else 29998 pkg_failed=yes 29999fi 30000 else 30001 pkg_failed=untried 30002fi 30003 30004 30005 30006if test $pkg_failed = yes; then 30007 30008if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30009 _pkg_short_errors_supported=yes 30010else 30011 _pkg_short_errors_supported=no 30012fi 30013 if test $_pkg_short_errors_supported = yes; then 30014 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1` 30015 else 30016 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1` 30017 fi 30018 # Put the nasty error message in config.log where it belongs 30019 echo "$LZMA_PKG_ERRORS" >&5 30020 30021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30022$as_echo "no" >&6; } 30023 have_lzma=no 30024elif test $pkg_failed = untried; then 30025 have_lzma=no 30026else 30027 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS 30028 LZMA_LIBS=$pkg_cv_LZMA_LIBS 30029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30030$as_echo "yes" >&6; } 30031 have_lzma=yes 30032fi 30033 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 30034$as_echo "$as_me: " >&6;} 30035fi 30036 30037if test "$have_lzma" = 'yes'; then 30038 30039$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h 30040 30041 if test "$build_modules" = 'no'; then 30042 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS" 30043 fi 30044fi 30045 30046 if test "$have_lzma" = 'yes'; then 30047 LZMA_DELEGATE_TRUE= 30048 LZMA_DELEGATE_FALSE='#' 30049else 30050 LZMA_DELEGATE_TRUE='#' 30051 LZMA_DELEGATE_FALSE= 30052fi 30053 30054 30055 30056 30057 30058# 30059# Check for the OpenEXR delegate library. 30060# 30061 30062# Check whether --with-openexr was given. 30063if test "${with_openexr+set}" = set; then : 30064 withval=$with_openexr; with_openexr=$withval 30065else 30066 with_openexr='yes' 30067fi 30068 30069 30070if test "$with_openexr" != 'yes'; then 30071 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr " 30072fi 30073 30074have_openexr='no' 30075OPENEXR_CFLAGS="" 30076OPENEXR_LIBS="" 30077OPENEXR_PKG="" 30078if test "x$with_openexr" = "xyes"; then 30079 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 30080$as_echo "$as_me: -------------------------------------------------------------" >&6;} 30081 30082pkg_failed=no 30083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5 30084$as_echo_n "checking for OPENEXR... " >&6; } 30085 30086if test -n "$OPENEXR_CFLAGS"; then 30087 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS" 30088 elif test -n "$PKG_CONFIG"; then 30089 if test -n "$PKG_CONFIG" && \ 30090 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 30091 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 30092 ac_status=$? 30093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30094 test $ac_status = 0; }; then 30095 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null` 30096else 30097 pkg_failed=yes 30098fi 30099 else 30100 pkg_failed=untried 30101fi 30102if test -n "$OPENEXR_LIBS"; then 30103 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS" 30104 elif test -n "$PKG_CONFIG"; then 30105 if test -n "$PKG_CONFIG" && \ 30106 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 30107 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 30108 ac_status=$? 30109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30110 test $ac_status = 0; }; then 30111 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null` 30112else 30113 pkg_failed=yes 30114fi 30115 else 30116 pkg_failed=untried 30117fi 30118 30119 30120 30121if test $pkg_failed = yes; then 30122 30123if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30124 _pkg_short_errors_supported=yes 30125else 30126 _pkg_short_errors_supported=no 30127fi 30128 if test $_pkg_short_errors_supported = yes; then 30129 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1` 30130 else 30131 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1` 30132 fi 30133 # Put the nasty error message in config.log where it belongs 30134 echo "$OPENEXR_PKG_ERRORS" >&5 30135 30136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30137$as_echo "no" >&6; } 30138 have_openexr=no 30139elif test $pkg_failed = untried; then 30140 have_openexr=no 30141else 30142 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS 30143 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS 30144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30145$as_echo "yes" >&6; } 30146 have_openexr=yes 30147fi 30148 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 30149$as_echo "$as_me: " >&6;} 30150fi 30151 30152if test "$have_openexr" = 'yes'; then 30153 30154$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h 30155 30156 if test "$build_modules" = 'no'; then 30157 CFLAGS="$OPENEXR_CFLAGS $CFLAGS" 30158 fi 30159fi 30160 30161 if test "$have_openexr" = 'yes'; then 30162 OPENEXR_DELEGATE_TRUE= 30163 OPENEXR_DELEGATE_FALSE='#' 30164else 30165 OPENEXR_DELEGATE_TRUE='#' 30166 OPENEXR_DELEGATE_FALSE= 30167fi 30168 30169 30170 30171 30172 30173# 30174# Check for PANGO delegate library. 30175# 30176 30177# Check whether --with-pango was given. 30178if test "${with_pango+set}" = set; then : 30179 withval=$with_pango; with_pango=$withval 30180else 30181 with_pango='yes' 30182fi 30183 30184 30185if test "$with_pango" != 'yes'; then 30186 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango " 30187fi 30188 30189have_pango='no' 30190have_pangocairo='no' 30191PANGO_CFLAGS="" 30192PANGO_LIBS="" 30193PANGO_PKG="" 30194if test "x$with_pango" = "xyes"; then 30195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 30196$as_echo "-------------------------------------------------------------" >&6; } 30197 30198pkg_failed=no 30199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5 30200$as_echo_n "checking for PANGO... " >&6; } 30201 30202if test -n "$PANGO_CFLAGS"; then 30203 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS" 30204 elif test -n "$PKG_CONFIG"; then 30205 if test -n "$PKG_CONFIG" && \ 30206 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5 30207 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5 30208 ac_status=$? 30209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30210 test $ac_status = 0; }; then 30211 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null` 30212else 30213 pkg_failed=yes 30214fi 30215 else 30216 pkg_failed=untried 30217fi 30218if test -n "$PANGO_LIBS"; then 30219 pkg_cv_PANGO_LIBS="$PANGO_LIBS" 30220 elif test -n "$PKG_CONFIG"; then 30221 if test -n "$PKG_CONFIG" && \ 30222 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5 30223 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5 30224 ac_status=$? 30225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30226 test $ac_status = 0; }; then 30227 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null` 30228else 30229 pkg_failed=yes 30230fi 30231 else 30232 pkg_failed=untried 30233fi 30234 30235 30236 30237if test $pkg_failed = yes; then 30238 30239if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30240 _pkg_short_errors_supported=yes 30241else 30242 _pkg_short_errors_supported=no 30243fi 30244 if test $_pkg_short_errors_supported = yes; then 30245 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1` 30246 else 30247 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1` 30248 fi 30249 # Put the nasty error message in config.log where it belongs 30250 echo "$PANGO_PKG_ERRORS" >&5 30251 30252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30253$as_echo "no" >&6; } 30254 have_pangocairo=no 30255elif test $pkg_failed = untried; then 30256 have_pangocairo=no 30257else 30258 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS 30259 PANGO_LIBS=$pkg_cv_PANGO_LIBS 30260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30261$as_echo "yes" >&6; } 30262 have_pangocairo=yes 30263fi 30264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30265$as_echo "" >&6; } 30266 30267pkg_failed=no 30268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5 30269$as_echo_n "checking for PANGO... " >&6; } 30270 30271if test -n "$PANGO_CFLAGS"; then 30272 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS" 30273 elif test -n "$PKG_CONFIG"; then 30274 if test -n "$PKG_CONFIG" && \ 30275 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5 30276 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5 30277 ac_status=$? 30278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30279 test $ac_status = 0; }; then 30280 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null` 30281else 30282 pkg_failed=yes 30283fi 30284 else 30285 pkg_failed=untried 30286fi 30287if test -n "$PANGO_LIBS"; then 30288 pkg_cv_PANGO_LIBS="$PANGO_LIBS" 30289 elif test -n "$PKG_CONFIG"; then 30290 if test -n "$PKG_CONFIG" && \ 30291 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5 30292 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5 30293 ac_status=$? 30294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30295 test $ac_status = 0; }; then 30296 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null` 30297else 30298 pkg_failed=yes 30299fi 30300 else 30301 pkg_failed=untried 30302fi 30303 30304 30305 30306if test $pkg_failed = yes; then 30307 30308if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30309 _pkg_short_errors_supported=yes 30310else 30311 _pkg_short_errors_supported=no 30312fi 30313 if test $_pkg_short_errors_supported = yes; then 30314 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1` 30315 else 30316 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1` 30317 fi 30318 # Put the nasty error message in config.log where it belongs 30319 echo "$PANGO_PKG_ERRORS" >&5 30320 30321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30322$as_echo "no" >&6; } 30323 have_pango=no 30324elif test $pkg_failed = untried; then 30325 have_pango=no 30326else 30327 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS 30328 PANGO_LIBS=$pkg_cv_PANGO_LIBS 30329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30330$as_echo "yes" >&6; } 30331 have_pango=yes 30332fi 30333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 30334$as_echo "" >&6; } 30335fi 30336 30337if test "$have_pango" = 'yes'; then 30338 30339$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h 30340 30341 if test "$build_modules" = 'no'; then 30342 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS" 30343 fi 30344fi 30345 30346if test "$have_pangocairo" = 'yes'; then 30347 30348$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h 30349 30350 if test "$build_modules" = 'no'; then 30351 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS" 30352 fi 30353fi 30354 30355 if test "$have_pango" = 'yes'; then 30356 PANGO_DELEGATE_TRUE= 30357 PANGO_DELEGATE_FALSE='#' 30358else 30359 PANGO_DELEGATE_TRUE='#' 30360 PANGO_DELEGATE_FALSE= 30361fi 30362 30363 if test "$have_pangocairo" = 'yes'; then 30364 PANGOCAIRO_DELEGATE_TRUE= 30365 PANGOCAIRO_DELEGATE_FALSE='#' 30366else 30367 PANGOCAIRO_DELEGATE_TRUE='#' 30368 PANGOCAIRO_DELEGATE_FALSE= 30369fi 30370 30371 30372 30373 30374 30375# 30376# Check for PNG delegate library. 30377# 30378 30379# Check whether --with-png was given. 30380if test "${with_png+set}" = set; then : 30381 withval=$with_png; with_png=$withval 30382else 30383 with_png='yes' 30384fi 30385 30386 30387if test "$with_png" != 'yes'; then 30388 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png " 30389fi 30390 30391have_png='no' 30392PNG_LIBS='' 30393 30394if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then 30395 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 30396$as_echo "$as_me: -------------------------------------------------------------" >&6;} 30397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5 30398$as_echo_n "checking for PNG support ... " >&6; } 30399 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 30400$as_echo "$as_me: " >&6;} 30401 failed=0 30402 passed=0 30403 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" 30404if test "x$ac_cv_header_png_h" = xyes; then : 30405 passed=`expr $passed + 1` 30406else 30407 failed=`expr $failed + 1` 30408fi 30409 30410 30411 30412 if test $passed -gt 0; then 30413 for var in 5 4 2 '' ; do 30414 if test "$have_png" = 'no' ; then 30415 if test "x${var}" = 'x' ; then 30416 pnglib='png' 30417 else 30418 pnglib="png1${var}" 30419 fi 30420 30421# Test for compatible LIBPNG library 30422 failed=0 30423 passed=0 30424 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then 30425 if test "${pnglib}" != 'png' ; then 30426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5 30427$as_echo_n "checking for LIBPNG1${var} support ... " >&6; } 30428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30429/* end confdefs.h. */ 30430#include <stdio.h> 30431#include <stdlib.h> 30432#include <png.h> 30433 30434int 30435main () 30436{ 30437 30438#if PNG_LIBPNG_VER_MINOR != ${var} 30439#error LIBPNG library must be version 1${var}! 30440Kaboom, Kaboom 30441#endif 30442return 0; 30443 30444 ; 30445 return 0; 30446} 30447_ACEOF 30448if ac_fn_c_try_compile "$LINENO"; then : 30449 ac_cv_libpng_ok='yes' 30450else 30451 ac_cv_libpng_ok='no' 30452fi 30453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30454 if test "$ac_cv_libpng_ok" = 'yes' ; then 30455 passed=`expr $passed + 1` 30456 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 30457$as_echo "$as_me: yes" >&6;} 30458 else 30459 failed=`expr $failed + 1` 30460 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 30461$as_echo "$as_me: no" >&6;} 30462 fi 30463 else 30464 passed=`expr $passed + 1` 30465 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 30466$as_echo "$as_me: yes" >&6;} 30467 fi 30468 fi 30469 30470 if test $passed -gt 0 -a $failed -le 0; then 30471 if test "1${var}" = '15' ; then 30472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5 30473$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; } 30474if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then : 30475 $as_echo_n "(cached) " >&6 30476else 30477 ac_check_lib_save_LIBS=$LIBS 30478LIBS="-lpng15 $LIBS" 30479cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30480/* end confdefs.h. */ 30481 30482/* Override any GCC internal prototype to avoid an error. 30483 Use char because int might match the return type of a GCC 30484 builtin and then its argument prototype would still apply. */ 30485#ifdef __cplusplus 30486extern "C" 30487#endif 30488char png_get_io_ptr (); 30489int 30490main () 30491{ 30492return png_get_io_ptr (); 30493 ; 30494 return 0; 30495} 30496_ACEOF 30497if ac_fn_c_try_link "$LINENO"; then : 30498 ac_cv_lib_png15_png_get_io_ptr=yes 30499else 30500 ac_cv_lib_png15_png_get_io_ptr=no 30501fi 30502rm -f core conftest.err conftest.$ac_objext \ 30503 conftest$ac_exeext conftest.$ac_ext 30504LIBS=$ac_check_lib_save_LIBS 30505fi 30506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5 30507$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; } 30508if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then : 30509 passed=`expr $passed + 1` 30510else 30511 failed=`expr $failed + 1` 30512fi 30513 30514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5 30515$as_echo_n "checking for png_longjmp in -lpng15... " >&6; } 30516if ${ac_cv_lib_png15_png_longjmp+:} false; then : 30517 $as_echo_n "(cached) " >&6 30518else 30519 ac_check_lib_save_LIBS=$LIBS 30520LIBS="-lpng15 $LIBS" 30521cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30522/* end confdefs.h. */ 30523 30524/* Override any GCC internal prototype to avoid an error. 30525 Use char because int might match the return type of a GCC 30526 builtin and then its argument prototype would still apply. */ 30527#ifdef __cplusplus 30528extern "C" 30529#endif 30530char png_longjmp (); 30531int 30532main () 30533{ 30534return png_longjmp (); 30535 ; 30536 return 0; 30537} 30538_ACEOF 30539if ac_fn_c_try_link "$LINENO"; then : 30540 ac_cv_lib_png15_png_longjmp=yes 30541else 30542 ac_cv_lib_png15_png_longjmp=no 30543fi 30544rm -f core conftest.err conftest.$ac_objext \ 30545 conftest$ac_exeext conftest.$ac_ext 30546LIBS=$ac_check_lib_save_LIBS 30547fi 30548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5 30549$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; } 30550if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then : 30551 passed=`expr $passed + 1` 30552else 30553 failed=`expr $failed + 1` 30554fi 30555 30556 fi 30557 if test "1${var}" = '14' ; then 30558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5 30559$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; } 30560if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then : 30561 $as_echo_n "(cached) " >&6 30562else 30563 ac_check_lib_save_LIBS=$LIBS 30564LIBS="-lpng14 $LIBS" 30565cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30566/* end confdefs.h. */ 30567 30568/* Override any GCC internal prototype to avoid an error. 30569 Use char because int might match the return type of a GCC 30570 builtin and then its argument prototype would still apply. */ 30571#ifdef __cplusplus 30572extern "C" 30573#endif 30574char png_get_io_ptr (); 30575int 30576main () 30577{ 30578return png_get_io_ptr (); 30579 ; 30580 return 0; 30581} 30582_ACEOF 30583if ac_fn_c_try_link "$LINENO"; then : 30584 ac_cv_lib_png14_png_get_io_ptr=yes 30585else 30586 ac_cv_lib_png14_png_get_io_ptr=no 30587fi 30588rm -f core conftest.err conftest.$ac_objext \ 30589 conftest$ac_exeext conftest.$ac_ext 30590LIBS=$ac_check_lib_save_LIBS 30591fi 30592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5 30593$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; } 30594if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then : 30595 passed=`expr $passed + 1` 30596else 30597 failed=`expr $failed + 1` 30598fi 30599 30600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5 30601$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; } 30602if ${ac_cv_lib_png14_png_get_io_state+:} false; then : 30603 $as_echo_n "(cached) " >&6 30604else 30605 ac_check_lib_save_LIBS=$LIBS 30606LIBS="-lpng14 $LIBS" 30607cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30608/* end confdefs.h. */ 30609 30610/* Override any GCC internal prototype to avoid an error. 30611 Use char because int might match the return type of a GCC 30612 builtin and then its argument prototype would still apply. */ 30613#ifdef __cplusplus 30614extern "C" 30615#endif 30616char png_get_io_state (); 30617int 30618main () 30619{ 30620return png_get_io_state (); 30621 ; 30622 return 0; 30623} 30624_ACEOF 30625if ac_fn_c_try_link "$LINENO"; then : 30626 ac_cv_lib_png14_png_get_io_state=yes 30627else 30628 ac_cv_lib_png14_png_get_io_state=no 30629fi 30630rm -f core conftest.err conftest.$ac_objext \ 30631 conftest$ac_exeext conftest.$ac_ext 30632LIBS=$ac_check_lib_save_LIBS 30633fi 30634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5 30635$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; } 30636if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then : 30637 passed=`expr $passed + 1` 30638else 30639 failed=`expr $failed + 1` 30640fi 30641 30642 fi 30643 if test "1${var}" = '12' ; then 30644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5 30645$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; } 30646if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then : 30647 $as_echo_n "(cached) " >&6 30648else 30649 ac_check_lib_save_LIBS=$LIBS 30650LIBS="-lpng12 $LIBS" 30651cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30652/* end confdefs.h. */ 30653 30654/* Override any GCC internal prototype to avoid an error. 30655 Use char because int might match the return type of a GCC 30656 builtin and then its argument prototype would still apply. */ 30657#ifdef __cplusplus 30658extern "C" 30659#endif 30660char png_get_io_ptr (); 30661int 30662main () 30663{ 30664return png_get_io_ptr (); 30665 ; 30666 return 0; 30667} 30668_ACEOF 30669if ac_fn_c_try_link "$LINENO"; then : 30670 ac_cv_lib_png12_png_get_io_ptr=yes 30671else 30672 ac_cv_lib_png12_png_get_io_ptr=no 30673fi 30674rm -f core conftest.err conftest.$ac_objext \ 30675 conftest$ac_exeext conftest.$ac_ext 30676LIBS=$ac_check_lib_save_LIBS 30677fi 30678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5 30679$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; } 30680if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then : 30681 passed=`expr $passed + 1` 30682else 30683 failed=`expr $failed + 1` 30684fi 30685 30686 fi 30687 if test "1${var}" = '1' ; then 30688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5 30689$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; } 30690if ${ac_cv_lib_png_png_get_io_ptr+:} false; then : 30691 $as_echo_n "(cached) " >&6 30692else 30693 ac_check_lib_save_LIBS=$LIBS 30694LIBS="-lpng $LIBS" 30695cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30696/* end confdefs.h. */ 30697 30698/* Override any GCC internal prototype to avoid an error. 30699 Use char because int might match the return type of a GCC 30700 builtin and then its argument prototype would still apply. */ 30701#ifdef __cplusplus 30702extern "C" 30703#endif 30704char png_get_io_ptr (); 30705int 30706main () 30707{ 30708return png_get_io_ptr (); 30709 ; 30710 return 0; 30711} 30712_ACEOF 30713if ac_fn_c_try_link "$LINENO"; then : 30714 ac_cv_lib_png_png_get_io_ptr=yes 30715else 30716 ac_cv_lib_png_png_get_io_ptr=no 30717fi 30718rm -f core conftest.err conftest.$ac_objext \ 30719 conftest$ac_exeext conftest.$ac_ext 30720LIBS=$ac_check_lib_save_LIBS 30721fi 30722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5 30723$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; } 30724if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then : 30725 passed=`expr $passed + 1` 30726else 30727 failed=`expr $failed + 1` 30728fi 30729 30730 fi 30731 if test $passed -gt 0 -a $failed -le 0 ; then 30732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5 30733$as_echo_n "checking if ${pnglib} package is complete... " >&6; } 30734 if test $passed -gt 0 ; then 30735 if test $failed -gt 0 ; then 30736 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 30737$as_echo "$as_me: no -- some components failed test" >&6;} 30738 have_png='no (failed tests)' 30739 else 30740 PNG_LIBS="-l${pnglib}" 30741 LIBS="$PNG_LIBS $LIBS" 30742 30743$as_echo "#define PNG_DELEGATE 1" >>confdefs.h 30744 30745 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 30746$as_echo "$as_me: yes" >&6;} 30747 have_png='yes' 30748 fi 30749 fi 30750 fi 30751 fi 30752 fi 30753 done 30754 fi 30755fi 30756 30757 if test "$have_png" = 'yes'; then 30758 PNG_DELEGATE_TRUE= 30759 PNG_DELEGATE_FALSE='#' 30760else 30761 PNG_DELEGATE_TRUE='#' 30762 PNG_DELEGATE_FALSE= 30763fi 30764 30765 30766 30767 30768 30769# 30770# Check for RSVG delegate library. 30771# 30772 30773# Check whether --with-rsvg was given. 30774if test "${with_rsvg+set}" = set; then : 30775 withval=$with_rsvg; with_rsvg=$withval 30776else 30777 with_rsvg='no' 30778fi 30779 30780 30781if test "$with_rsvg" != 'yes'; then 30782 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg " 30783fi 30784 30785have_rsvg='no' 30786have_cairo='no' 30787RSVG_CFLAGS="" 30788RSVG_LIBS="" 30789RSVG_PKG="" 30790if test "x$with_rsvg" = "xyes"; then 30791 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 30792$as_echo "$as_me: -------------------------------------------------------------" >&6;} 30793 30794pkg_failed=no 30795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5 30796$as_echo_n "checking for RSVG... " >&6; } 30797 30798if test -n "$RSVG_CFLAGS"; then 30799 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS" 30800 elif test -n "$PKG_CONFIG"; then 30801 if test -n "$PKG_CONFIG" && \ 30802 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 30803 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 30804 ac_status=$? 30805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30806 test $ac_status = 0; }; then 30807 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null` 30808else 30809 pkg_failed=yes 30810fi 30811 else 30812 pkg_failed=untried 30813fi 30814if test -n "$RSVG_LIBS"; then 30815 pkg_cv_RSVG_LIBS="$RSVG_LIBS" 30816 elif test -n "$PKG_CONFIG"; then 30817 if test -n "$PKG_CONFIG" && \ 30818 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 30819 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 30820 ac_status=$? 30821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30822 test $ac_status = 0; }; then 30823 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null` 30824else 30825 pkg_failed=yes 30826fi 30827 else 30828 pkg_failed=untried 30829fi 30830 30831 30832 30833if test $pkg_failed = yes; then 30834 30835if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30836 _pkg_short_errors_supported=yes 30837else 30838 _pkg_short_errors_supported=no 30839fi 30840 if test $_pkg_short_errors_supported = yes; then 30841 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1` 30842 else 30843 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1` 30844 fi 30845 # Put the nasty error message in config.log where it belongs 30846 echo "$RSVG_PKG_ERRORS" >&5 30847 30848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30849$as_echo "no" >&6; } 30850 have_rsvg=no 30851elif test $pkg_failed = untried; then 30852 have_rsvg=no 30853else 30854 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS 30855 RSVG_LIBS=$pkg_cv_RSVG_LIBS 30856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30857$as_echo "yes" >&6; } 30858 have_rsvg=yes 30859fi 30860 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 30861$as_echo "$as_me: " >&6;} 30862 30863pkg_failed=no 30864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5 30865$as_echo_n "checking for CAIRO_SVG... " >&6; } 30866 30867if test -n "$CAIRO_SVG_CFLAGS"; then 30868 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS" 30869 elif test -n "$PKG_CONFIG"; then 30870 if test -n "$PKG_CONFIG" && \ 30871 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 30872 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 30873 ac_status=$? 30874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30875 test $ac_status = 0; }; then 30876 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null` 30877else 30878 pkg_failed=yes 30879fi 30880 else 30881 pkg_failed=untried 30882fi 30883if test -n "$CAIRO_SVG_LIBS"; then 30884 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS" 30885 elif test -n "$PKG_CONFIG"; then 30886 if test -n "$PKG_CONFIG" && \ 30887 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 30888 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 30889 ac_status=$? 30890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30891 test $ac_status = 0; }; then 30892 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null` 30893else 30894 pkg_failed=yes 30895fi 30896 else 30897 pkg_failed=untried 30898fi 30899 30900 30901 30902if test $pkg_failed = yes; then 30903 30904if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30905 _pkg_short_errors_supported=yes 30906else 30907 _pkg_short_errors_supported=no 30908fi 30909 if test $_pkg_short_errors_supported = yes; then 30910 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1` 30911 else 30912 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1` 30913 fi 30914 # Put the nasty error message in config.log where it belongs 30915 echo "$CAIRO_SVG_PKG_ERRORS" >&5 30916 30917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30918$as_echo "no" >&6; } 30919 have_cairo=no 30920elif test $pkg_failed = untried; then 30921 have_cairo=no 30922else 30923 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS 30924 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS 30925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30926$as_echo "yes" >&6; } 30927 have_cairo=yes 30928fi 30929 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 30930$as_echo "$as_me: " >&6;} 30931fi 30932 30933if test "$have_rsvg" = 'yes'; then 30934 30935$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h 30936 30937 if test "$build_modules" = 'no'; then 30938 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS" 30939 fi 30940fi 30941 30942if test "$have_cairo" = 'yes'; then 30943 30944$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h 30945 30946 if test "$build_modules" = 'no'; then 30947 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS" 30948 fi 30949fi 30950 30951 if test "$have_rsvg" = 'yes'; then 30952 RSVG_DELEGATE_TRUE= 30953 RSVG_DELEGATE_FALSE='#' 30954else 30955 RSVG_DELEGATE_TRUE='#' 30956 RSVG_DELEGATE_FALSE= 30957fi 30958 30959 if test "$have_cairo" = 'yes'; then 30960 CAIRO_DELEGATE_TRUE= 30961 CAIRO_DELEGATE_FALSE='#' 30962else 30963 CAIRO_DELEGATE_TRUE='#' 30964 CAIRO_DELEGATE_FALSE= 30965fi 30966 30967 30968 30969 30970 30971# 30972# Check for TIFF delegate library. 30973# 30974 30975# Check whether --with-tiff was given. 30976if test "${with_tiff+set}" = set; then : 30977 withval=$with_tiff; with_tiff=$withval 30978else 30979 with_tiff='yes' 30980fi 30981 30982 30983if test "$with_tiff" != 'yes'; then 30984 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff " 30985fi 30986 30987have_tiff='no' 30988TIFF_LIBS='' 30989if test "$with_tiff" != 'no'; then 30990 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 30991$as_echo "$as_me: -------------------------------------------------------------" >&6;} 30992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5 30993$as_echo_n "checking for TIFF... " >&6; } 30994 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 30995$as_echo "$as_me: " >&6;} 30996 failed=0 30997 passed=0 30998 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default" 30999if test "x$ac_cv_header_tiff_h" = xyes; then : 31000 passed=`expr $passed + 1` 31001else 31002 failed=`expr $failed + 1` 31003fi 31004 31005 31006 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" 31007if test "x$ac_cv_header_tiffio_h" = xyes; then : 31008 passed=`expr $passed + 1` 31009else 31010 failed=`expr $failed + 1` 31011fi 31012 31013 31014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 31015$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } 31016if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : 31017 $as_echo_n "(cached) " >&6 31018else 31019 ac_check_lib_save_LIBS=$LIBS 31020LIBS="-ltiff $LIBS" 31021cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31022/* end confdefs.h. */ 31023 31024/* Override any GCC internal prototype to avoid an error. 31025 Use char because int might match the return type of a GCC 31026 builtin and then its argument prototype would still apply. */ 31027#ifdef __cplusplus 31028extern "C" 31029#endif 31030char TIFFOpen (); 31031int 31032main () 31033{ 31034return TIFFOpen (); 31035 ; 31036 return 0; 31037} 31038_ACEOF 31039if ac_fn_c_try_link "$LINENO"; then : 31040 ac_cv_lib_tiff_TIFFOpen=yes 31041else 31042 ac_cv_lib_tiff_TIFFOpen=no 31043fi 31044rm -f core conftest.err conftest.$ac_objext \ 31045 conftest$ac_exeext conftest.$ac_ext 31046LIBS=$ac_check_lib_save_LIBS 31047fi 31048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 31049$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } 31050if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : 31051 passed=`expr $passed + 1` 31052else 31053 failed=`expr $failed + 1` 31054fi 31055 31056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5 31057$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; } 31058if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then : 31059 $as_echo_n "(cached) " >&6 31060else 31061 ac_check_lib_save_LIBS=$LIBS 31062LIBS="-ltiff $LIBS" 31063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31064/* end confdefs.h. */ 31065 31066/* Override any GCC internal prototype to avoid an error. 31067 Use char because int might match the return type of a GCC 31068 builtin and then its argument prototype would still apply. */ 31069#ifdef __cplusplus 31070extern "C" 31071#endif 31072char TIFFClientOpen (); 31073int 31074main () 31075{ 31076return TIFFClientOpen (); 31077 ; 31078 return 0; 31079} 31080_ACEOF 31081if ac_fn_c_try_link "$LINENO"; then : 31082 ac_cv_lib_tiff_TIFFClientOpen=yes 31083else 31084 ac_cv_lib_tiff_TIFFClientOpen=no 31085fi 31086rm -f core conftest.err conftest.$ac_objext \ 31087 conftest$ac_exeext conftest.$ac_ext 31088LIBS=$ac_check_lib_save_LIBS 31089fi 31090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5 31091$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; } 31092if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then : 31093 passed=`expr $passed + 1` 31094else 31095 failed=`expr $failed + 1` 31096fi 31097 31098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5 31099$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; } 31100if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then : 31101 $as_echo_n "(cached) " >&6 31102else 31103 ac_check_lib_save_LIBS=$LIBS 31104LIBS="-ltiff $LIBS" 31105cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31106/* end confdefs.h. */ 31107 31108/* Override any GCC internal prototype to avoid an error. 31109 Use char because int might match the return type of a GCC 31110 builtin and then its argument prototype would still apply. */ 31111#ifdef __cplusplus 31112extern "C" 31113#endif 31114char TIFFIsByteSwapped (); 31115int 31116main () 31117{ 31118return TIFFIsByteSwapped (); 31119 ; 31120 return 0; 31121} 31122_ACEOF 31123if ac_fn_c_try_link "$LINENO"; then : 31124 ac_cv_lib_tiff_TIFFIsByteSwapped=yes 31125else 31126 ac_cv_lib_tiff_TIFFIsByteSwapped=no 31127fi 31128rm -f core conftest.err conftest.$ac_objext \ 31129 conftest$ac_exeext conftest.$ac_ext 31130LIBS=$ac_check_lib_save_LIBS 31131fi 31132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5 31133$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; } 31134if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then : 31135 passed=`expr $passed + 1` 31136else 31137 failed=`expr $failed + 1` 31138fi 31139 31140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5 31141$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; } 31142if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then : 31143 $as_echo_n "(cached) " >&6 31144else 31145 ac_check_lib_save_LIBS=$LIBS 31146LIBS="-ltiff $LIBS" 31147cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31148/* end confdefs.h. */ 31149 31150/* Override any GCC internal prototype to avoid an error. 31151 Use char because int might match the return type of a GCC 31152 builtin and then its argument prototype would still apply. */ 31153#ifdef __cplusplus 31154extern "C" 31155#endif 31156char TIFFReadRGBATile (); 31157int 31158main () 31159{ 31160return TIFFReadRGBATile (); 31161 ; 31162 return 0; 31163} 31164_ACEOF 31165if ac_fn_c_try_link "$LINENO"; then : 31166 ac_cv_lib_tiff_TIFFReadRGBATile=yes 31167else 31168 ac_cv_lib_tiff_TIFFReadRGBATile=no 31169fi 31170rm -f core conftest.err conftest.$ac_objext \ 31171 conftest$ac_exeext conftest.$ac_ext 31172LIBS=$ac_check_lib_save_LIBS 31173fi 31174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5 31175$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; } 31176if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then : 31177 passed=`expr $passed + 1` 31178else 31179 failed=`expr $failed + 1` 31180fi 31181 31182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5 31183$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; } 31184if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then : 31185 $as_echo_n "(cached) " >&6 31186else 31187 ac_check_lib_save_LIBS=$LIBS 31188LIBS="-ltiff $LIBS" 31189cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31190/* end confdefs.h. */ 31191 31192/* Override any GCC internal prototype to avoid an error. 31193 Use char because int might match the return type of a GCC 31194 builtin and then its argument prototype would still apply. */ 31195#ifdef __cplusplus 31196extern "C" 31197#endif 31198char TIFFReadRGBAStrip (); 31199int 31200main () 31201{ 31202return TIFFReadRGBAStrip (); 31203 ; 31204 return 0; 31205} 31206_ACEOF 31207if ac_fn_c_try_link "$LINENO"; then : 31208 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes 31209else 31210 ac_cv_lib_tiff_TIFFReadRGBAStrip=no 31211fi 31212rm -f core conftest.err conftest.$ac_objext \ 31213 conftest$ac_exeext conftest.$ac_ext 31214LIBS=$ac_check_lib_save_LIBS 31215fi 31216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5 31217$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; } 31218if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then : 31219 passed=`expr $passed + 1` 31220else 31221 failed=`expr $failed + 1` 31222fi 31223 31224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5 31225$as_echo_n "checking if TIFF package is complete... " >&6; } 31226 if test $passed -gt 0; then 31227 if test $failed -gt 0; then 31228 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 31229$as_echo "$as_me: no -- some components failed test" >&6;} 31230 have_tiff='no (failed tests)' 31231 else 31232 TIFF_LIBS='-ltiff' 31233 LIBS="$TIFF_LIBS $LIBS" 31234 31235$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h 31236 31237 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 31238$as_echo "$as_me: yes" >&6;} 31239 have_tiff='yes' 31240 for ac_header in tiffconf.h 31241do : 31242 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default" 31243if test "x$ac_cv_header_tiffconf_h" = xyes; then : 31244 cat >>confdefs.h <<_ACEOF 31245#define HAVE_TIFFCONF_H 1 31246_ACEOF 31247 31248fi 31249 31250done 31251 31252 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \ 31253 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \ 31254 TIFFSetTagExtender TIFFSetWarningHandlerExt \ 31255 TIFFSwabArrayOfTriples 31256do : 31257 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 31258ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 31259if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 31260 cat >>confdefs.h <<_ACEOF 31261#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 31262_ACEOF 31263 31264fi 31265done 31266 31267 fi 31268 else 31269 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 31270$as_echo "$as_me: no" >&6;} 31271 fi 31272fi 31273 if test "$have_tiff" = 'yes'; then 31274 TIFF_DELEGATE_TRUE= 31275 TIFF_DELEGATE_FALSE='#' 31276else 31277 TIFF_DELEGATE_TRUE='#' 31278 TIFF_DELEGATE_FALSE= 31279fi 31280 31281 31282 31283 31284# 31285# Check for WEBP delegate library. 31286# 31287 31288# Check whether --with-webp was given. 31289if test "${with_webp+set}" = set; then : 31290 withval=$with_webp; with_webp=$withval 31291else 31292 with_webp='yes' 31293fi 31294 31295 31296if test "$with_webp" != 'yes'; then 31297 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp " 31298fi 31299 31300have_webp='no' 31301WEBP_LIBS='' 31302if test "$with_webp" != 'no'; then 31303 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 31304$as_echo "$as_me: -------------------------------------------------------------" >&6;} 31305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5 31306$as_echo_n "checking for WEBP... " >&6; } 31307 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 31308$as_echo "$as_me: " >&6;} 31309 failed=0 31310 passed=0 31311 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default" 31312if test "x$ac_cv_header_webp_decode_h" = xyes; then : 31313 passed=`expr $passed + 1` 31314else 31315 failed=`expr $failed + 1` 31316fi 31317 31318 31319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5 31320$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; } 31321if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then : 31322 $as_echo_n "(cached) " >&6 31323else 31324 ac_check_lib_save_LIBS=$LIBS 31325LIBS="-lwebp $LIBS" 31326cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31327/* end confdefs.h. */ 31328 31329/* Override any GCC internal prototype to avoid an error. 31330 Use char because int might match the return type of a GCC 31331 builtin and then its argument prototype would still apply. */ 31332#ifdef __cplusplus 31333extern "C" 31334#endif 31335char WebPDecodeRGB (); 31336int 31337main () 31338{ 31339return WebPDecodeRGB (); 31340 ; 31341 return 0; 31342} 31343_ACEOF 31344if ac_fn_c_try_link "$LINENO"; then : 31345 ac_cv_lib_webp_WebPDecodeRGB=yes 31346else 31347 ac_cv_lib_webp_WebPDecodeRGB=no 31348fi 31349rm -f core conftest.err conftest.$ac_objext \ 31350 conftest$ac_exeext conftest.$ac_ext 31351LIBS=$ac_check_lib_save_LIBS 31352fi 31353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5 31354$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; } 31355if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then : 31356 passed=`expr $passed + 1` 31357else 31358 failed=`expr $failed + 1` 31359fi 31360 31361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5 31362$as_echo_n "checking if WEBP package is complete... " >&6; } 31363 if test $passed -gt 0; then 31364 if test $failed -gt 0; then 31365 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 31366$as_echo "$as_me: no -- some components failed test" >&6;} 31367 have_webp='no (failed tests)' 31368 else 31369 WEBP_LIBS='-lwebp' 31370 LIBS="$WEBP_LIBS $LIBS" 31371 31372$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h 31373 31374 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 31375$as_echo "$as_me: yes" >&6;} 31376 have_webp='yes' 31377 fi 31378 else 31379 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 31380$as_echo "$as_me: no" >&6;} 31381 fi 31382fi 31383 if test "$have_webp" = 'yes'; then 31384 WEBP_DELEGATE_TRUE= 31385 WEBP_DELEGATE_FALSE='#' 31386else 31387 WEBP_DELEGATE_TRUE='#' 31388 WEBP_DELEGATE_FALSE= 31389fi 31390 31391 31392 31393 31394# 31395# Set Windows font directory. 31396# 31397 31398# Check whether --with-windows-font-dir was given. 31399if test "${with_windows_font_dir+set}" = set; then : 31400 withval=$with_windows_font_dir; with_windows_font_dir=$withval 31401else 31402 with_windows_font_dir='' 31403fi 31404 31405if test "$with_windows_font_dir" != '' ; then 31406 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir " 31407fi 31408 31409 31410# 31411# Check for WMF delegate library. 31412# 31413 31414# Check whether --with-wmf was given. 31415if test "${with_wmf+set}" = set; then : 31416 withval=$with_wmf; with_wmf=$withval 31417else 31418 with_wmf='no' 31419fi 31420 31421 31422if test "$with_wmf" != 'yes'; then 31423 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf " 31424fi 31425 31426have_wmf='no' 31427WMF_LIBS='' 31428WMF_LIBS_DEPS='' 31429OLIBS="$LIBS" 31430if test "$with_wmf" != 'no'; then 31431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 31432$as_echo "-------------------------------------------------------------" >&6; } 31433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5 31434$as_echo_n "checking for WMF... " >&6; } 31435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 31436$as_echo "" >&6; } 31437 have_libwmf='no' 31438 have_libwmflite='no' 31439 have_libwmf_ipa_h='no' 31440 31441 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H 31442" 31443if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then : 31444 have_libwmf_ipa_h='yes' 31445fi 31446 31447 31448 if test "$have_libwmf_ipa_h" = 'yes'; then 31449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5 31450$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; } 31451if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then : 31452 $as_echo_n "(cached) " >&6 31453else 31454 ac_check_lib_save_LIBS=$LIBS 31455LIBS="-lwmflite $LIBS" 31456cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31457/* end confdefs.h. */ 31458 31459/* Override any GCC internal prototype to avoid an error. 31460 Use char because int might match the return type of a GCC 31461 builtin and then its argument prototype would still apply. */ 31462#ifdef __cplusplus 31463extern "C" 31464#endif 31465char wmf_lite_create (); 31466int 31467main () 31468{ 31469return wmf_lite_create (); 31470 ; 31471 return 0; 31472} 31473_ACEOF 31474if ac_fn_c_try_link "$LINENO"; then : 31475 ac_cv_lib_wmflite_wmf_lite_create=yes 31476else 31477 ac_cv_lib_wmflite_wmf_lite_create=no 31478fi 31479rm -f core conftest.err conftest.$ac_objext \ 31480 conftest$ac_exeext conftest.$ac_ext 31481LIBS=$ac_check_lib_save_LIBS 31482fi 31483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5 31484$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; } 31485if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then : 31486 have_libwmflite='yes' 31487fi 31488 31489 if test "$have_libwmflite" = 'yes'; then 31490 31491$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h 31492 31493 WMF_LIBS='-lwmflite' 31494 LIBS="$WMF_LIBS $LIBS" 31495 have_wmf='yes' 31496 else 31497 WMF_LIBS_DEPS='' 31498 WMF_CONFIG_LIBS=`libwmf-config --libs` 31499 for lib in xml2 expat freetype jpeg png z; do 31500 testlib="-l${lib}" 31501 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib" 31502 done 31503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5 31504$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; } 31505if ${ac_cv_lib_wmf_wmf_api_create+:} false; then : 31506 $as_echo_n "(cached) " >&6 31507else 31508 ac_check_lib_save_LIBS=$LIBS 31509LIBS="-lwmf $WMF_LIBS_DEPS $LIBS" 31510cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31511/* end confdefs.h. */ 31512 31513/* Override any GCC internal prototype to avoid an error. 31514 Use char because int might match the return type of a GCC 31515 builtin and then its argument prototype would still apply. */ 31516#ifdef __cplusplus 31517extern "C" 31518#endif 31519char wmf_api_create (); 31520int 31521main () 31522{ 31523return wmf_api_create (); 31524 ; 31525 return 0; 31526} 31527_ACEOF 31528if ac_fn_c_try_link "$LINENO"; then : 31529 ac_cv_lib_wmf_wmf_api_create=yes 31530else 31531 ac_cv_lib_wmf_wmf_api_create=no 31532fi 31533rm -f core conftest.err conftest.$ac_objext \ 31534 conftest$ac_exeext conftest.$ac_ext 31535LIBS=$ac_check_lib_save_LIBS 31536fi 31537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5 31538$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; } 31539if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then : 31540 have_libwmf='yes' 31541fi 31542 31543 if test "$have_libwmf" = 'yes'; then 31544 31545$as_echo "#define WMF_DELEGATE 1" >>confdefs.h 31546 31547 WMF_LIBS='-lwmf' 31548 LIBS="$WMF_LIBS $LIBS" 31549 have_wmf='yes' 31550 else 31551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 31552$as_echo "no -- some components failed test" >&6; } 31553 have_wmf='no (failed tests)' 31554 have_wmflite='no (failed tests)' 31555 LIBS="$OLIBS" 31556 WMF_LIBS='' 31557 fi 31558 fi 31559 fi 31560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5 31561$as_echo_n "checking if WMF package is complete... " >&6; } 31562 if test "$have_wmf" = 'yes'; then 31563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31564$as_echo "yes" >&6; } 31565 else 31566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31567$as_echo "no" >&6; } 31568 fi 31569fi 31570 if test "$have_wmf" = 'yes'; then 31571 WMF_DELEGATE_TRUE= 31572 WMF_DELEGATE_FALSE='#' 31573else 31574 WMF_DELEGATE_TRUE='#' 31575 WMF_DELEGATE_FALSE= 31576fi 31577 31578 31579 31580 31581 31582 31583# 31584# Check for XML delegate library. 31585# 31586 31587# Check whether --with-xml was given. 31588if test "${with_xml+set}" = set; then : 31589 withval=$with_xml; with_xml=$withval 31590else 31591 with_xml='yes' 31592fi 31593 31594 31595if test "$with_xml" != 'yes' ; then 31596 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml " 31597fi 31598 31599have_xml='no' 31600XML_LIBS='' 31601if test "$with_xml" != 'no'; then 31602 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 31603$as_echo "$as_me: -------------------------------------------------------------" >&6;} 31604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5 31605$as_echo_n "checking for XML... " >&6; } 31606 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 31607$as_echo "$as_me: " >&6;} 31608 PERSIST_LDFLAGS=$LDFLAGS 31609 PERSIST_CPPFLAGS=$CPPFLAGS 31610 xml2_config='' 31611 # Extract the first word of "xml2-config", so it can be a program name with args. 31612set dummy xml2-config; ac_word=$2 31613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31614$as_echo_n "checking for $ac_word... " >&6; } 31615if ${ac_cv_path_xml2_config+:} false; then : 31616 $as_echo_n "(cached) " >&6 31617else 31618 case $xml2_config in 31619 [\\/]* | ?:[\\/]*) 31620 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path. 31621 ;; 31622 *) 31623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31624for as_dir in $PATH 31625do 31626 IFS=$as_save_IFS 31627 test -z "$as_dir" && as_dir=. 31628 for ac_exec_ext in '' $ac_executable_extensions; do 31629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31630 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext" 31631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31632 break 2 31633 fi 31634done 31635 done 31636IFS=$as_save_IFS 31637 31638 ;; 31639esac 31640fi 31641xml2_config=$ac_cv_path_xml2_config 31642if test -n "$xml2_config"; then 31643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5 31644$as_echo "$xml2_config" >&6; } 31645else 31646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31647$as_echo "no" >&6; } 31648fi 31649 31650 if test -n "$xml2_config"; then 31651 # Debian installs libxml headers under /usr/include/libxml2/libxml with 31652 # the shared library installed under /usr/lib, whereas the package 31653 # installs itself under $prefix/libxml and $prefix/lib. 31654 xml2_prefix=`xml2-config --prefix` 31655 if test -d "${xml2_prefix}/include/libxml2"; then 31656 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2" 31657 fi 31658 if test "${xml2_prefix}" != '/usr'; then 31659 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib" 31660 fi 31661 fi 31662 failed=0 31663 passed=0 31664 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default" 31665if test "x$ac_cv_header_libxml_parser_h" = xyes; then : 31666 passed=`expr $passed + 1` 31667else 31668 failed=`expr $failed + 1` 31669fi 31670 31671 31672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5 31673$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; } 31674if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then : 31675 $as_echo_n "(cached) " >&6 31676else 31677 ac_check_lib_save_LIBS=$LIBS 31678LIBS="-lxml2 $LIBS" 31679cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31680/* end confdefs.h. */ 31681 31682/* Override any GCC internal prototype to avoid an error. 31683 Use char because int might match the return type of a GCC 31684 builtin and then its argument prototype would still apply. */ 31685#ifdef __cplusplus 31686extern "C" 31687#endif 31688char xmlSAXVersion (); 31689int 31690main () 31691{ 31692return xmlSAXVersion (); 31693 ; 31694 return 0; 31695} 31696_ACEOF 31697if ac_fn_c_try_link "$LINENO"; then : 31698 ac_cv_lib_xml2_xmlSAXVersion=yes 31699else 31700 ac_cv_lib_xml2_xmlSAXVersion=no 31701fi 31702rm -f core conftest.err conftest.$ac_objext \ 31703 conftest$ac_exeext conftest.$ac_ext 31704LIBS=$ac_check_lib_save_LIBS 31705fi 31706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5 31707$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; } 31708if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then : 31709 passed=`expr $passed + 1` 31710else 31711 failed=`expr $failed + 1` 31712fi 31713 31714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5 31715$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; } 31716if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then : 31717 $as_echo_n "(cached) " >&6 31718else 31719 ac_check_lib_save_LIBS=$LIBS 31720LIBS="-lxml2 $LIBS" 31721cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31722/* end confdefs.h. */ 31723 31724/* Override any GCC internal prototype to avoid an error. 31725 Use char because int might match the return type of a GCC 31726 builtin and then its argument prototype would still apply. */ 31727#ifdef __cplusplus 31728extern "C" 31729#endif 31730char xmlParseChunk (); 31731int 31732main () 31733{ 31734return xmlParseChunk (); 31735 ; 31736 return 0; 31737} 31738_ACEOF 31739if ac_fn_c_try_link "$LINENO"; then : 31740 ac_cv_lib_xml2_xmlParseChunk=yes 31741else 31742 ac_cv_lib_xml2_xmlParseChunk=no 31743fi 31744rm -f core conftest.err conftest.$ac_objext \ 31745 conftest$ac_exeext conftest.$ac_ext 31746LIBS=$ac_check_lib_save_LIBS 31747fi 31748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5 31749$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; } 31750if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then : 31751 passed=`expr $passed + 1` 31752else 31753 failed=`expr $failed + 1` 31754fi 31755 31756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5 31757$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; } 31758if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then : 31759 $as_echo_n "(cached) " >&6 31760else 31761 ac_check_lib_save_LIBS=$LIBS 31762LIBS="-lxml2 $LIBS" 31763cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31764/* end confdefs.h. */ 31765 31766/* Override any GCC internal prototype to avoid an error. 31767 Use char because int might match the return type of a GCC 31768 builtin and then its argument prototype would still apply. */ 31769#ifdef __cplusplus 31770extern "C" 31771#endif 31772char xmlCreatePushParserCtxt (); 31773int 31774main () 31775{ 31776return xmlCreatePushParserCtxt (); 31777 ; 31778 return 0; 31779} 31780_ACEOF 31781if ac_fn_c_try_link "$LINENO"; then : 31782 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes 31783else 31784 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no 31785fi 31786rm -f core conftest.err conftest.$ac_objext \ 31787 conftest$ac_exeext conftest.$ac_ext 31788LIBS=$ac_check_lib_save_LIBS 31789fi 31790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5 31791$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; } 31792if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then : 31793 passed=`expr $passed + 1` 31794else 31795 failed=`expr $failed + 1` 31796fi 31797 31798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5 31799$as_echo_n "checking if XML package is complete... " >&6; } 31800 if test $passed -gt 0; then 31801 if test $failed -gt 0; then 31802 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5 31803$as_echo "$as_me: no -- some components failed test" >&6;} 31804 have_xml='no (failed tests)' 31805 LDFLAGS="$PERSIST_LDFLAGS" 31806 CPPFLAGS="$PERSIST_CPPFLAGS" 31807 else 31808 XML_LIBS='-lxml2' 31809 LIBS="$XML_LIBS $LIBS" 31810 31811$as_echo "#define XML_DELEGATE 1" >>confdefs.h 31812 31813 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5 31814$as_echo "$as_me: yes" >&6;} 31815 have_xml='yes' 31816 fi 31817 else 31818 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5 31819$as_echo "$as_me: no" >&6;} 31820 fi 31821fi 31822 if test "$have_xml" = 'yes'; then 31823 XML_DELEGATE_TRUE= 31824 XML_DELEGATE_FALSE='#' 31825else 31826 XML_DELEGATE_TRUE='#' 31827 XML_DELEGATE_FALSE= 31828fi 31829 31830 31831 31832 31833# Substitute compiler name to build/link PerlMagick 31834# 31835 31836 31837# 31838# Configure install Paths 31839# 31840 31841# Path to ImageMagick header files 31842INCLUDE_RELATIVE_PATH="ImageMagick" 31843INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}" 31844DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/" 31845case "${build_os}" in 31846 mingw* ) 31847 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1` 31848 ;; 31849esac 31850 31851cat >>confdefs.h <<_ACEOF 31852#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH" 31853_ACEOF 31854 31855 31856 31857# Subdirectory under lib to place ImageMagick lib files 31858LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" 31859 31860cat >>confdefs.h <<_ACEOF 31861#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH" 31862_ACEOF 31863 31864 31865# Path to ImageMagick bin directory 31866EXECUTABLE_PATH="${BIN_DIR}" 31867DEFINE_EXECUTABLE_PATH="${BIN_DIR}/" 31868case "${build_os}" in 31869 mingw* ) 31870 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1` 31871 ;; 31872esac 31873 31874cat >>confdefs.h <<_ACEOF 31875#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH" 31876_ACEOF 31877 31878 31879 31880# Path to ImageMagick lib 31881LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}" 31882DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/" 31883case "${build_os}" in 31884 mingw* ) 31885 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1` 31886 ;; 31887esac 31888 31889cat >>confdefs.h <<_ACEOF 31890#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH" 31891_ACEOF 31892 31893 31894 31895# 31896# path to modules lib 31897if test "x$MODULES_BASEDIRNAME" = "x"; then 31898 MODULES_BASEDIRNAME="modules" 31899fi 31900 31901cat >>confdefs.h <<_ACEOF 31902#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME" 31903_ACEOF 31904 31905 31906 31907if test "x$MODULES_DIRNAME" = "x"; then 31908 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX} 31909else 31910 31911cat >>confdefs.h <<_ACEOF 31912#define MODULES_DIRNAME "$MODULES_DIRNAME" 31913_ACEOF 31914 31915fi 31916 31917 31918MODULES_RELATIVE_PATH="${MODULES_DIRNAME}" 31919 31920MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}" 31921 31922 31923# 31924# path to coders lib 31925if test "x$CODER_DIRNAME" = "x"; then 31926 CODER_DIRNAME="coders" 31927fi 31928 31929cat >>confdefs.h <<_ACEOF 31930#define CODER_DIRNAME "$CODER_DIRNAME" 31931_ACEOF 31932 31933 31934 31935CODER_RELATIVE_PATH="${CODER_DIRNAME}" 31936CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}" 31937 31938 31939# 31940# Subdirectory under lib to place ImageMagick filter module files 31941# 31942# path to coders lib 31943if test "x$FILTER_DIRNAME" = "x"; then 31944 FILTER_DIRNAME="filters" 31945fi 31946 31947cat >>confdefs.h <<_ACEOF 31948#define FILTER_DIRNAME "$FILTER_DIRNAME" 31949_ACEOF 31950 31951 31952 31953FILTER_RELATIVE_PATH="${FILTER_DIRNAME}" 31954FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}" 31955 31956 31957# 31958# Path to ImageMagick documentation files 31959DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" 31960DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}" 31961DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/" 31962case "${build_os}" in 31963 mingw* ) 31964 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1` 31965 ;; 31966esac 31967 31968cat >>confdefs.h <<_ACEOF 31969#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH" 31970_ACEOF 31971 31972 31973 31974# Subdirectory to place architecture-dependent configuration files 31975CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}" 31976 31977cat >>confdefs.h <<_ACEOF 31978#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH" 31979_ACEOF 31980 31981CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" 31982DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" 31983case "${build_os}" in 31984 mingw* ) 31985 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1` 31986 ;; 31987esac 31988 31989cat >>confdefs.h <<_ACEOF 31990#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH" 31991_ACEOF 31992 31993 31994 31995# Subdirectory to place architecture-independent configuration files 31996SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}" 31997 31998cat >>confdefs.h <<_ACEOF 31999#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH" 32000_ACEOF 32001 32002SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}" 32003DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/" 32004case "${build_os}" in 32005 mingw* ) 32006 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1` 32007 ;; 32008esac 32009 32010cat >>confdefs.h <<_ACEOF 32011#define SHARE_PATH "$DEFINE_SHARE_PATH" 32012_ACEOF 32013 32014 32015 32016# 32017# Subdirectory to place architecture-dependent configuration files. 32018if test "x$SHAREARCH_BASEDIRNAME" = "x"; then 32019 SHAREARCH_BASEDIRNAME="config" 32020fi 32021 32022cat >>confdefs.h <<_ACEOF 32023#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME" 32024_ACEOF 32025 32026 32027 32028if test "x$SHAREARCH_DIRNAME" = "x"; then 32029 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX} 32030else 32031 32032cat >>confdefs.h <<_ACEOF 32033#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME" 32034_ACEOF 32035 32036fi 32037 32038 32039SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}" 32040 32041SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}" 32042 32043 32044# 32045# program_transform_name is formed for use in a Makefile, so create a 32046# modified version for use in a shell script. 32047configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'` 32048 32049# Default delegate definitions 32050{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 32051$as_echo "$as_me: -------------------------------------------------------------" >&6;} 32052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5 32053$as_echo_n "checking for ImageMagick delegate programs... " >&6; } 32054{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 32055$as_echo "$as_me: " >&6;} 32056AutotraceDecodeDelegateDefault='autotrace' 32057BlenderDecodeDelegateDefault='blender' 32058BZIPDelegateDefault='bzip2' 32059BrowseDelegateDefault='xdg-open' 32060CGMDecodeDelegateDefault='ralcgm' 32061CatDelegateDefault='cat' 32062DNGDecodeDelegateDefault='ufraw-batch' 32063GVCDecodeDelegateDefault='dot' 32064DVIDecodeDelegateDefault='dvips' 32065EchoDelegateDefault='echo' 32066EditorDelegateDefault='xterm' 32067FIGDecodeDelegateDefault='fig2dev' 32068ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}` 32069DisplayDelegateDefault=`echo display | sed ${configure_transform_name}` 32070MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}` 32071GnuplotDecodeDelegateDefault='gnuplot' 32072HPGLDecodeDelegateDefault='hp2xx' 32073HTMLDecodeDelegateDefault='html2ps' 32074ILBMDecodeDelegateDefault='ilbmtoppm' 32075ILBMEncodeDelegateDefault='ppmtoilbm' 32076LPDelegateDefault='lp' 32077LPRDelegateDefault='lpr' 32078LaunchDelegateDefault='gimp' 32079MANDelegateDefault='groff' 32080MPEGDecodeDelegateDefault='ffmpeg' 32081MPEGEncodeDelegateDefault='ffmpeg' 32082MrSIDDecodeDelegateDefault='mrsidgeodecode' 32083MVDelegateDefault='mv' 32084PCLDelegateDefault='pcl6' 32085PGPDecodeDelegateDefault='pgpv' 32086POVDelegateDefault='povray' 32087if test "$native_win32_build" = 'yes'; then 32088 PSDelegateDefault='gswin32c' 32089elif test "$gslib_framework" = 'yes'; then 32090 PSDelegateDefault='gsc' 32091else 32092 PSDelegateDefault='gs' 32093fi 32094RLEEncodeDelegateDefault='rawtorle' 32095RMDelegateDefault='rm' 32096RSVGDecodeDelegateDefault='rsvg-convert' 32097SCANDecodeDelegateDefault='scanimage' 32098SVGDecodeDelegateDefault='inkscape' 32099TXTDelegateDefault='enscript' 32100UniconvertorDelegateDefault='uniconvertor' 32101WMFDecodeDelegateDefault='wmf2eps' 32102WWWDecodeDelegateDefault='curl' 32103XPSDelegateDefault='gxps' 32104ZipDelegateDefault='gzip' 32105 32106# Search for delegates 32107# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args. 32108set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2 32109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32110$as_echo_n "checking for $ac_word... " >&6; } 32111if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then : 32112 $as_echo_n "(cached) " >&6 32113else 32114 case $AutotraceDecodeDelegate in 32115 [\\/]* | ?:[\\/]*) 32116 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path. 32117 ;; 32118 *) 32119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32120for as_dir in $PATH 32121do 32122 IFS=$as_save_IFS 32123 test -z "$as_dir" && as_dir=. 32124 for ac_exec_ext in '' $ac_executable_extensions; do 32125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32126 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 32127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32128 break 2 32129 fi 32130done 32131 done 32132IFS=$as_save_IFS 32133 32134 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault"" 32135 ;; 32136esac 32137fi 32138AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate 32139if test -n "$AutotraceDecodeDelegate"; then 32140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5 32141$as_echo "$AutotraceDecodeDelegate" >&6; } 32142else 32143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32144$as_echo "no" >&6; } 32145fi 32146 32147 32148# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args. 32149set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2 32150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32151$as_echo_n "checking for $ac_word... " >&6; } 32152if ${ac_cv_path_BlenderDecodeDelegate+:} false; then : 32153 $as_echo_n "(cached) " >&6 32154else 32155 case $BlenderDecodeDelegate in 32156 [\\/]* | ?:[\\/]*) 32157 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path. 32158 ;; 32159 *) 32160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32161for as_dir in $PATH 32162do 32163 IFS=$as_save_IFS 32164 test -z "$as_dir" && as_dir=. 32165 for ac_exec_ext in '' $ac_executable_extensions; do 32166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32167 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 32168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32169 break 2 32170 fi 32171done 32172 done 32173IFS=$as_save_IFS 32174 32175 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault"" 32176 ;; 32177esac 32178fi 32179BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate 32180if test -n "$BlenderDecodeDelegate"; then 32181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5 32182$as_echo "$BlenderDecodeDelegate" >&6; } 32183else 32184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32185$as_echo "no" >&6; } 32186fi 32187 32188 32189# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args. 32190set dummy "$BZIPDelegateDefault"; ac_word=$2 32191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32192$as_echo_n "checking for $ac_word... " >&6; } 32193if ${ac_cv_path_BZIPDelegate+:} false; then : 32194 $as_echo_n "(cached) " >&6 32195else 32196 case $BZIPDelegate in 32197 [\\/]* | ?:[\\/]*) 32198 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path. 32199 ;; 32200 *) 32201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32202for as_dir in $PATH 32203do 32204 IFS=$as_save_IFS 32205 test -z "$as_dir" && as_dir=. 32206 for ac_exec_ext in '' $ac_executable_extensions; do 32207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32208 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext" 32209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32210 break 2 32211 fi 32212done 32213 done 32214IFS=$as_save_IFS 32215 32216 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault"" 32217 ;; 32218esac 32219fi 32220BZIPDelegate=$ac_cv_path_BZIPDelegate 32221if test -n "$BZIPDelegate"; then 32222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5 32223$as_echo "$BZIPDelegate" >&6; } 32224else 32225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32226$as_echo "no" >&6; } 32227fi 32228 32229 32230for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx 32231do 32232 # Extract the first word of "$ac_prog", so it can be a program name with args. 32233set dummy $ac_prog; ac_word=$2 32234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32235$as_echo_n "checking for $ac_word... " >&6; } 32236if ${ac_cv_path_BrowseDelegate+:} false; then : 32237 $as_echo_n "(cached) " >&6 32238else 32239 case $BrowseDelegate in 32240 [\\/]* | ?:[\\/]*) 32241 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path. 32242 ;; 32243 *) 32244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32245for as_dir in $PATH 32246do 32247 IFS=$as_save_IFS 32248 test -z "$as_dir" && as_dir=. 32249 for ac_exec_ext in '' $ac_executable_extensions; do 32250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32251 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext" 32252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32253 break 2 32254 fi 32255done 32256 done 32257IFS=$as_save_IFS 32258 32259 ;; 32260esac 32261fi 32262BrowseDelegate=$ac_cv_path_BrowseDelegate 32263if test -n "$BrowseDelegate"; then 32264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5 32265$as_echo "$BrowseDelegate" >&6; } 32266else 32267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32268$as_echo "no" >&6; } 32269fi 32270 32271 32272 test -n "$BrowseDelegate" && break 32273done 32274test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault"" 32275 32276# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args. 32277set dummy "$CGMDecodeDelegateDefault"; ac_word=$2 32278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32279$as_echo_n "checking for $ac_word... " >&6; } 32280if ${ac_cv_path_CGMDecodeDelegate+:} false; then : 32281 $as_echo_n "(cached) " >&6 32282else 32283 case $CGMDecodeDelegate in 32284 [\\/]* | ?:[\\/]*) 32285 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path. 32286 ;; 32287 *) 32288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32289for as_dir in $PATH 32290do 32291 IFS=$as_save_IFS 32292 test -z "$as_dir" && as_dir=. 32293 for ac_exec_ext in '' $ac_executable_extensions; do 32294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32295 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 32296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32297 break 2 32298 fi 32299done 32300 done 32301IFS=$as_save_IFS 32302 32303 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault"" 32304 ;; 32305esac 32306fi 32307CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate 32308if test -n "$CGMDecodeDelegate"; then 32309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5 32310$as_echo "$CGMDecodeDelegate" >&6; } 32311else 32312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32313$as_echo "no" >&6; } 32314fi 32315 32316 32317# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args. 32318set dummy "$CatDelegateDefault"; ac_word=$2 32319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32320$as_echo_n "checking for $ac_word... " >&6; } 32321if ${ac_cv_path_CatDelegate+:} false; then : 32322 $as_echo_n "(cached) " >&6 32323else 32324 case $CatDelegate in 32325 [\\/]* | ?:[\\/]*) 32326 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path. 32327 ;; 32328 *) 32329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32330for as_dir in $PATH 32331do 32332 IFS=$as_save_IFS 32333 test -z "$as_dir" && as_dir=. 32334 for ac_exec_ext in '' $ac_executable_extensions; do 32335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32336 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext" 32337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32338 break 2 32339 fi 32340done 32341 done 32342IFS=$as_save_IFS 32343 32344 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault"" 32345 ;; 32346esac 32347fi 32348CatDelegate=$ac_cv_path_CatDelegate 32349if test -n "$CatDelegate"; then 32350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5 32351$as_echo "$CatDelegate" >&6; } 32352else 32353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32354$as_echo "no" >&6; } 32355fi 32356 32357 32358# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args. 32359set dummy "$DNGDecodeDelegateDefault"; ac_word=$2 32360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32361$as_echo_n "checking for $ac_word... " >&6; } 32362if ${ac_cv_path_DNGDecodeDelegate+:} false; then : 32363 $as_echo_n "(cached) " >&6 32364else 32365 case $DNGDecodeDelegate in 32366 [\\/]* | ?:[\\/]*) 32367 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path. 32368 ;; 32369 *) 32370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32371for as_dir in $PATH 32372do 32373 IFS=$as_save_IFS 32374 test -z "$as_dir" && as_dir=. 32375 for ac_exec_ext in '' $ac_executable_extensions; do 32376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32377 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 32378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32379 break 2 32380 fi 32381done 32382 done 32383IFS=$as_save_IFS 32384 32385 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault"" 32386 ;; 32387esac 32388fi 32389DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate 32390if test -n "$DNGDecodeDelegate"; then 32391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5 32392$as_echo "$DNGDecodeDelegate" >&6; } 32393else 32394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32395$as_echo "no" >&6; } 32396fi 32397 32398 32399# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args. 32400set dummy "$GVCDecodeDelegateDefault"; ac_word=$2 32401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32402$as_echo_n "checking for $ac_word... " >&6; } 32403if ${ac_cv_path_GVCDecodeDelegate+:} false; then : 32404 $as_echo_n "(cached) " >&6 32405else 32406 case $GVCDecodeDelegate in 32407 [\\/]* | ?:[\\/]*) 32408 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path. 32409 ;; 32410 *) 32411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32412for as_dir in $PATH 32413do 32414 IFS=$as_save_IFS 32415 test -z "$as_dir" && as_dir=. 32416 for ac_exec_ext in '' $ac_executable_extensions; do 32417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32418 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 32419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32420 break 2 32421 fi 32422done 32423 done 32424IFS=$as_save_IFS 32425 32426 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault"" 32427 ;; 32428esac 32429fi 32430GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate 32431if test -n "$GVCDecodeDelegate"; then 32432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5 32433$as_echo "$GVCDecodeDelegate" >&6; } 32434else 32435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32436$as_echo "no" >&6; } 32437fi 32438 32439 32440# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args. 32441set dummy "$DVIDecodeDelegateDefault"; ac_word=$2 32442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32443$as_echo_n "checking for $ac_word... " >&6; } 32444if ${ac_cv_path_DVIDecodeDelegate+:} false; then : 32445 $as_echo_n "(cached) " >&6 32446else 32447 case $DVIDecodeDelegate in 32448 [\\/]* | ?:[\\/]*) 32449 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path. 32450 ;; 32451 *) 32452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32453for as_dir in $PATH 32454do 32455 IFS=$as_save_IFS 32456 test -z "$as_dir" && as_dir=. 32457 for ac_exec_ext in '' $ac_executable_extensions; do 32458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32459 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 32460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32461 break 2 32462 fi 32463done 32464 done 32465IFS=$as_save_IFS 32466 32467 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault"" 32468 ;; 32469esac 32470fi 32471DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate 32472if test -n "$DVIDecodeDelegate"; then 32473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5 32474$as_echo "$DVIDecodeDelegate" >&6; } 32475else 32476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32477$as_echo "no" >&6; } 32478fi 32479 32480 32481# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args. 32482set dummy "$EchoDelegateDefault"; ac_word=$2 32483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32484$as_echo_n "checking for $ac_word... " >&6; } 32485if ${ac_cv_path_EchoDelegate+:} false; then : 32486 $as_echo_n "(cached) " >&6 32487else 32488 case $EchoDelegate in 32489 [\\/]* | ?:[\\/]*) 32490 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path. 32491 ;; 32492 *) 32493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32494for as_dir in $PATH 32495do 32496 IFS=$as_save_IFS 32497 test -z "$as_dir" && as_dir=. 32498 for ac_exec_ext in '' $ac_executable_extensions; do 32499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32500 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext" 32501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32502 break 2 32503 fi 32504done 32505 done 32506IFS=$as_save_IFS 32507 32508 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault"" 32509 ;; 32510esac 32511fi 32512EchoDelegate=$ac_cv_path_EchoDelegate 32513if test -n "$EchoDelegate"; then 32514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5 32515$as_echo "$EchoDelegate" >&6; } 32516else 32517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32518$as_echo "no" >&6; } 32519fi 32520 32521 32522# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args. 32523set dummy "$EditorDelegateDefault"; ac_word=$2 32524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32525$as_echo_n "checking for $ac_word... " >&6; } 32526if ${ac_cv_path_EditorDelegate+:} false; then : 32527 $as_echo_n "(cached) " >&6 32528else 32529 case $EditorDelegate in 32530 [\\/]* | ?:[\\/]*) 32531 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path. 32532 ;; 32533 *) 32534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32535for as_dir in $PATH 32536do 32537 IFS=$as_save_IFS 32538 test -z "$as_dir" && as_dir=. 32539 for ac_exec_ext in '' $ac_executable_extensions; do 32540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32541 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext" 32542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32543 break 2 32544 fi 32545done 32546 done 32547IFS=$as_save_IFS 32548 32549 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault"" 32550 ;; 32551esac 32552fi 32553EditorDelegate=$ac_cv_path_EditorDelegate 32554if test -n "$EditorDelegate"; then 32555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5 32556$as_echo "$EditorDelegate" >&6; } 32557else 32558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32559$as_echo "no" >&6; } 32560fi 32561 32562 32563# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args. 32564set dummy "$FIGDecodeDelegateDefault"; ac_word=$2 32565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32566$as_echo_n "checking for $ac_word... " >&6; } 32567if ${ac_cv_path_FIGDecodeDelegate+:} false; then : 32568 $as_echo_n "(cached) " >&6 32569else 32570 case $FIGDecodeDelegate in 32571 [\\/]* | ?:[\\/]*) 32572 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path. 32573 ;; 32574 *) 32575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32576for as_dir in $PATH 32577do 32578 IFS=$as_save_IFS 32579 test -z "$as_dir" && as_dir=. 32580 for ac_exec_ext in '' $ac_executable_extensions; do 32581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32582 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 32583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32584 break 2 32585 fi 32586done 32587 done 32588IFS=$as_save_IFS 32589 32590 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault"" 32591 ;; 32592esac 32593fi 32594FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate 32595if test -n "$FIGDecodeDelegate"; then 32596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5 32597$as_echo "$FIGDecodeDelegate" >&6; } 32598else 32599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32600$as_echo "no" >&6; } 32601fi 32602 32603 32604# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args. 32605set dummy "$ConvertDelegateDefault"; ac_word=$2 32606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32607$as_echo_n "checking for $ac_word... " >&6; } 32608if ${ac_cv_path_ConvertDelegate+:} false; then : 32609 $as_echo_n "(cached) " >&6 32610else 32611 case $ConvertDelegate in 32612 [\\/]* | ?:[\\/]*) 32613 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path. 32614 ;; 32615 *) 32616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32617for as_dir in $PATH 32618do 32619 IFS=$as_save_IFS 32620 test -z "$as_dir" && as_dir=. 32621 for ac_exec_ext in '' $ac_executable_extensions; do 32622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32623 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext" 32624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32625 break 2 32626 fi 32627done 32628 done 32629IFS=$as_save_IFS 32630 32631 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault"" 32632 ;; 32633esac 32634fi 32635ConvertDelegate=$ac_cv_path_ConvertDelegate 32636if test -n "$ConvertDelegate"; then 32637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5 32638$as_echo "$ConvertDelegate" >&6; } 32639else 32640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32641$as_echo "no" >&6; } 32642fi 32643 32644 32645# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args. 32646set dummy "$DisplayDelegateDefault"; ac_word=$2 32647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32648$as_echo_n "checking for $ac_word... " >&6; } 32649if ${ac_cv_path_DisplayDelegate+:} false; then : 32650 $as_echo_n "(cached) " >&6 32651else 32652 case $DisplayDelegate in 32653 [\\/]* | ?:[\\/]*) 32654 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path. 32655 ;; 32656 *) 32657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32658for as_dir in $PATH 32659do 32660 IFS=$as_save_IFS 32661 test -z "$as_dir" && as_dir=. 32662 for ac_exec_ext in '' $ac_executable_extensions; do 32663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32664 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext" 32665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32666 break 2 32667 fi 32668done 32669 done 32670IFS=$as_save_IFS 32671 32672 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault"" 32673 ;; 32674esac 32675fi 32676DisplayDelegate=$ac_cv_path_DisplayDelegate 32677if test -n "$DisplayDelegate"; then 32678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5 32679$as_echo "$DisplayDelegate" >&6; } 32680else 32681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32682$as_echo "no" >&6; } 32683fi 32684 32685 32686# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args. 32687set dummy "$MogrifyDelegateDefault"; ac_word=$2 32688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32689$as_echo_n "checking for $ac_word... " >&6; } 32690if ${ac_cv_path_MogrifyDelegate+:} false; then : 32691 $as_echo_n "(cached) " >&6 32692else 32693 case $MogrifyDelegate in 32694 [\\/]* | ?:[\\/]*) 32695 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path. 32696 ;; 32697 *) 32698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32699for as_dir in $PATH 32700do 32701 IFS=$as_save_IFS 32702 test -z "$as_dir" && as_dir=. 32703 for ac_exec_ext in '' $ac_executable_extensions; do 32704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32705 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext" 32706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32707 break 2 32708 fi 32709done 32710 done 32711IFS=$as_save_IFS 32712 32713 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault"" 32714 ;; 32715esac 32716fi 32717MogrifyDelegate=$ac_cv_path_MogrifyDelegate 32718if test -n "$MogrifyDelegate"; then 32719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5 32720$as_echo "$MogrifyDelegate" >&6; } 32721else 32722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32723$as_echo "no" >&6; } 32724fi 32725 32726 32727# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args. 32728set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2 32729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32730$as_echo_n "checking for $ac_word... " >&6; } 32731if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then : 32732 $as_echo_n "(cached) " >&6 32733else 32734 case $GnuplotDecodeDelegate in 32735 [\\/]* | ?:[\\/]*) 32736 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path. 32737 ;; 32738 *) 32739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32740for as_dir in $PATH 32741do 32742 IFS=$as_save_IFS 32743 test -z "$as_dir" && as_dir=. 32744 for ac_exec_ext in '' $ac_executable_extensions; do 32745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32746 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 32747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32748 break 2 32749 fi 32750done 32751 done 32752IFS=$as_save_IFS 32753 32754 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault"" 32755 ;; 32756esac 32757fi 32758GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate 32759if test -n "$GnuplotDecodeDelegate"; then 32760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5 32761$as_echo "$GnuplotDecodeDelegate" >&6; } 32762else 32763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32764$as_echo "no" >&6; } 32765fi 32766 32767 32768# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args. 32769set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2 32770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32771$as_echo_n "checking for $ac_word... " >&6; } 32772if ${ac_cv_path_HPGLDecodeDelegate+:} false; then : 32773 $as_echo_n "(cached) " >&6 32774else 32775 case $HPGLDecodeDelegate in 32776 [\\/]* | ?:[\\/]*) 32777 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path. 32778 ;; 32779 *) 32780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32781for as_dir in $PATH 32782do 32783 IFS=$as_save_IFS 32784 test -z "$as_dir" && as_dir=. 32785 for ac_exec_ext in '' $ac_executable_extensions; do 32786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32787 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 32788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32789 break 2 32790 fi 32791done 32792 done 32793IFS=$as_save_IFS 32794 32795 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault"" 32796 ;; 32797esac 32798fi 32799HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate 32800if test -n "$HPGLDecodeDelegate"; then 32801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5 32802$as_echo "$HPGLDecodeDelegate" >&6; } 32803else 32804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32805$as_echo "no" >&6; } 32806fi 32807 32808 32809# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args. 32810set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2 32811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32812$as_echo_n "checking for $ac_word... " >&6; } 32813if ${ac_cv_path_HTMLDecodeDelegate+:} false; then : 32814 $as_echo_n "(cached) " >&6 32815else 32816 case $HTMLDecodeDelegate in 32817 [\\/]* | ?:[\\/]*) 32818 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path. 32819 ;; 32820 *) 32821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32822for as_dir in $PATH 32823do 32824 IFS=$as_save_IFS 32825 test -z "$as_dir" && as_dir=. 32826 for ac_exec_ext in '' $ac_executable_extensions; do 32827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32828 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 32829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32830 break 2 32831 fi 32832done 32833 done 32834IFS=$as_save_IFS 32835 32836 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault"" 32837 ;; 32838esac 32839fi 32840HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate 32841if test -n "$HTMLDecodeDelegate"; then 32842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5 32843$as_echo "$HTMLDecodeDelegate" >&6; } 32844else 32845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32846$as_echo "no" >&6; } 32847fi 32848 32849 32850# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args. 32851set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2 32852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32853$as_echo_n "checking for $ac_word... " >&6; } 32854if ${ac_cv_path_ILBMDecodeDelegate+:} false; then : 32855 $as_echo_n "(cached) " >&6 32856else 32857 case $ILBMDecodeDelegate in 32858 [\\/]* | ?:[\\/]*) 32859 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path. 32860 ;; 32861 *) 32862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32863for as_dir in $PATH 32864do 32865 IFS=$as_save_IFS 32866 test -z "$as_dir" && as_dir=. 32867 for ac_exec_ext in '' $ac_executable_extensions; do 32868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32869 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 32870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32871 break 2 32872 fi 32873done 32874 done 32875IFS=$as_save_IFS 32876 32877 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault"" 32878 ;; 32879esac 32880fi 32881ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate 32882if test -n "$ILBMDecodeDelegate"; then 32883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5 32884$as_echo "$ILBMDecodeDelegate" >&6; } 32885else 32886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32887$as_echo "no" >&6; } 32888fi 32889 32890 32891# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args. 32892set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2 32893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32894$as_echo_n "checking for $ac_word... " >&6; } 32895if ${ac_cv_path_ILBMEncodeDelegate+:} false; then : 32896 $as_echo_n "(cached) " >&6 32897else 32898 case $ILBMEncodeDelegate in 32899 [\\/]* | ?:[\\/]*) 32900 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path. 32901 ;; 32902 *) 32903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32904for as_dir in $PATH 32905do 32906 IFS=$as_save_IFS 32907 test -z "$as_dir" && as_dir=. 32908 for ac_exec_ext in '' $ac_executable_extensions; do 32909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32910 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 32911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32912 break 2 32913 fi 32914done 32915 done 32916IFS=$as_save_IFS 32917 32918 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault"" 32919 ;; 32920esac 32921fi 32922ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate 32923if test -n "$ILBMEncodeDelegate"; then 32924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5 32925$as_echo "$ILBMEncodeDelegate" >&6; } 32926else 32927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32928$as_echo "no" >&6; } 32929fi 32930 32931 32932# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args. 32933set dummy "$LPDelegateDefault"; ac_word=$2 32934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32935$as_echo_n "checking for $ac_word... " >&6; } 32936if ${ac_cv_path_LPDelegate+:} false; then : 32937 $as_echo_n "(cached) " >&6 32938else 32939 case $LPDelegate in 32940 [\\/]* | ?:[\\/]*) 32941 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path. 32942 ;; 32943 *) 32944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32945for as_dir in $PATH 32946do 32947 IFS=$as_save_IFS 32948 test -z "$as_dir" && as_dir=. 32949 for ac_exec_ext in '' $ac_executable_extensions; do 32950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32951 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext" 32952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32953 break 2 32954 fi 32955done 32956 done 32957IFS=$as_save_IFS 32958 32959 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no" 32960 ;; 32961esac 32962fi 32963LPDelegate=$ac_cv_path_LPDelegate 32964if test -n "$LPDelegate"; then 32965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5 32966$as_echo "$LPDelegate" >&6; } 32967else 32968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32969$as_echo "no" >&6; } 32970fi 32971 32972 32973# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args. 32974set dummy "$LPRDelegateDefault"; ac_word=$2 32975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32976$as_echo_n "checking for $ac_word... " >&6; } 32977if ${ac_cv_path_LPRDelegate+:} false; then : 32978 $as_echo_n "(cached) " >&6 32979else 32980 case $LPRDelegate in 32981 [\\/]* | ?:[\\/]*) 32982 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path. 32983 ;; 32984 *) 32985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32986for as_dir in $PATH 32987do 32988 IFS=$as_save_IFS 32989 test -z "$as_dir" && as_dir=. 32990 for ac_exec_ext in '' $ac_executable_extensions; do 32991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32992 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext" 32993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32994 break 2 32995 fi 32996done 32997 done 32998IFS=$as_save_IFS 32999 33000 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault"" 33001 ;; 33002esac 33003fi 33004LPRDelegate=$ac_cv_path_LPRDelegate 33005if test -n "$LPRDelegate"; then 33006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5 33007$as_echo "$LPRDelegate" >&6; } 33008else 33009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33010$as_echo "no" >&6; } 33011fi 33012 33013 33014# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args. 33015set dummy "$LaunchDelegateDefault"; ac_word=$2 33016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33017$as_echo_n "checking for $ac_word... " >&6; } 33018if ${ac_cv_path_LaunchDelegate+:} false; then : 33019 $as_echo_n "(cached) " >&6 33020else 33021 case $LaunchDelegate in 33022 [\\/]* | ?:[\\/]*) 33023 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path. 33024 ;; 33025 *) 33026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33027for as_dir in $PATH 33028do 33029 IFS=$as_save_IFS 33030 test -z "$as_dir" && as_dir=. 33031 for ac_exec_ext in '' $ac_executable_extensions; do 33032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33033 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext" 33034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33035 break 2 33036 fi 33037done 33038 done 33039IFS=$as_save_IFS 33040 33041 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault"" 33042 ;; 33043esac 33044fi 33045LaunchDelegate=$ac_cv_path_LaunchDelegate 33046if test -n "$LaunchDelegate"; then 33047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5 33048$as_echo "$LaunchDelegate" >&6; } 33049else 33050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33051$as_echo "no" >&6; } 33052fi 33053 33054 33055# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args. 33056set dummy "$MANDelegateDefault"; ac_word=$2 33057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33058$as_echo_n "checking for $ac_word... " >&6; } 33059if ${ac_cv_path_MANDelegate+:} false; then : 33060 $as_echo_n "(cached) " >&6 33061else 33062 case $MANDelegate in 33063 [\\/]* | ?:[\\/]*) 33064 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path. 33065 ;; 33066 *) 33067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33068for as_dir in $PATH 33069do 33070 IFS=$as_save_IFS 33071 test -z "$as_dir" && as_dir=. 33072 for ac_exec_ext in '' $ac_executable_extensions; do 33073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33074 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext" 33075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33076 break 2 33077 fi 33078done 33079 done 33080IFS=$as_save_IFS 33081 33082 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault"" 33083 ;; 33084esac 33085fi 33086MANDelegate=$ac_cv_path_MANDelegate 33087if test -n "$MANDelegate"; then 33088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5 33089$as_echo "$MANDelegate" >&6; } 33090else 33091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33092$as_echo "no" >&6; } 33093fi 33094 33095 33096# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args. 33097set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2 33098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33099$as_echo_n "checking for $ac_word... " >&6; } 33100if ${ac_cv_path_MPEGDecodeDelegate+:} false; then : 33101 $as_echo_n "(cached) " >&6 33102else 33103 case $MPEGDecodeDelegate in 33104 [\\/]* | ?:[\\/]*) 33105 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path. 33106 ;; 33107 *) 33108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33109for as_dir in $PATH 33110do 33111 IFS=$as_save_IFS 33112 test -z "$as_dir" && as_dir=. 33113 for ac_exec_ext in '' $ac_executable_extensions; do 33114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33115 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33117 break 2 33118 fi 33119done 33120 done 33121IFS=$as_save_IFS 33122 33123 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault"" 33124 ;; 33125esac 33126fi 33127MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate 33128if test -n "$MPEGDecodeDelegate"; then 33129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5 33130$as_echo "$MPEGDecodeDelegate" >&6; } 33131else 33132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33133$as_echo "no" >&6; } 33134fi 33135 33136 33137# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args. 33138set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2 33139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33140$as_echo_n "checking for $ac_word... " >&6; } 33141if ${ac_cv_path_MPEGEncodeDelegate+:} false; then : 33142 $as_echo_n "(cached) " >&6 33143else 33144 case $MPEGEncodeDelegate in 33145 [\\/]* | ?:[\\/]*) 33146 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path. 33147 ;; 33148 *) 33149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33150for as_dir in $PATH 33151do 33152 IFS=$as_save_IFS 33153 test -z "$as_dir" && as_dir=. 33154 for ac_exec_ext in '' $ac_executable_extensions; do 33155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33156 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33158 break 2 33159 fi 33160done 33161 done 33162IFS=$as_save_IFS 33163 33164 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault"" 33165 ;; 33166esac 33167fi 33168MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate 33169if test -n "$MPEGEncodeDelegate"; then 33170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5 33171$as_echo "$MPEGEncodeDelegate" >&6; } 33172else 33173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33174$as_echo "no" >&6; } 33175fi 33176 33177 33178# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args. 33179set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2 33180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33181$as_echo_n "checking for $ac_word... " >&6; } 33182if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then : 33183 $as_echo_n "(cached) " >&6 33184else 33185 case $MrSIDDecodeDelegate in 33186 [\\/]* | ?:[\\/]*) 33187 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path. 33188 ;; 33189 *) 33190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33191for as_dir in $PATH 33192do 33193 IFS=$as_save_IFS 33194 test -z "$as_dir" && as_dir=. 33195 for ac_exec_ext in '' $ac_executable_extensions; do 33196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33197 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33199 break 2 33200 fi 33201done 33202 done 33203IFS=$as_save_IFS 33204 33205 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault"" 33206 ;; 33207esac 33208fi 33209MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate 33210if test -n "$MrSIDDecodeDelegate"; then 33211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5 33212$as_echo "$MrSIDDecodeDelegate" >&6; } 33213else 33214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33215$as_echo "no" >&6; } 33216fi 33217 33218 33219# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args. 33220set dummy "$MVDelegateDefault"; ac_word=$2 33221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33222$as_echo_n "checking for $ac_word... " >&6; } 33223if ${ac_cv_path_MVDelegate+:} false; then : 33224 $as_echo_n "(cached) " >&6 33225else 33226 case $MVDelegate in 33227 [\\/]* | ?:[\\/]*) 33228 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path. 33229 ;; 33230 *) 33231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33232for as_dir in $PATH 33233do 33234 IFS=$as_save_IFS 33235 test -z "$as_dir" && as_dir=. 33236 for ac_exec_ext in '' $ac_executable_extensions; do 33237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33238 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext" 33239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33240 break 2 33241 fi 33242done 33243 done 33244IFS=$as_save_IFS 33245 33246 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault"" 33247 ;; 33248esac 33249fi 33250MVDelegate=$ac_cv_path_MVDelegate 33251if test -n "$MVDelegate"; then 33252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5 33253$as_echo "$MVDelegate" >&6; } 33254else 33255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33256$as_echo "no" >&6; } 33257fi 33258 33259 33260# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args. 33261set dummy "$PCLDelegateDefault"; ac_word=$2 33262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33263$as_echo_n "checking for $ac_word... " >&6; } 33264if ${ac_cv_path_PCLDelegate+:} false; then : 33265 $as_echo_n "(cached) " >&6 33266else 33267 case $PCLDelegate in 33268 [\\/]* | ?:[\\/]*) 33269 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path. 33270 ;; 33271 *) 33272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33273for as_dir in $PATH 33274do 33275 IFS=$as_save_IFS 33276 test -z "$as_dir" && as_dir=. 33277 for ac_exec_ext in '' $ac_executable_extensions; do 33278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33279 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext" 33280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33281 break 2 33282 fi 33283done 33284 done 33285IFS=$as_save_IFS 33286 33287 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault"" 33288 ;; 33289esac 33290fi 33291PCLDelegate=$ac_cv_path_PCLDelegate 33292if test -n "$PCLDelegate"; then 33293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5 33294$as_echo "$PCLDelegate" >&6; } 33295else 33296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33297$as_echo "no" >&6; } 33298fi 33299 33300 33301# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args. 33302set dummy "$PGPDecodeDelegateDefault"; ac_word=$2 33303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33304$as_echo_n "checking for $ac_word... " >&6; } 33305if ${ac_cv_path_PGPDecodeDelegate+:} false; then : 33306 $as_echo_n "(cached) " >&6 33307else 33308 case $PGPDecodeDelegate in 33309 [\\/]* | ?:[\\/]*) 33310 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path. 33311 ;; 33312 *) 33313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33314for as_dir in $PATH 33315do 33316 IFS=$as_save_IFS 33317 test -z "$as_dir" && as_dir=. 33318 for ac_exec_ext in '' $ac_executable_extensions; do 33319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33320 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33322 break 2 33323 fi 33324done 33325 done 33326IFS=$as_save_IFS 33327 33328 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault"" 33329 ;; 33330esac 33331fi 33332PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate 33333if test -n "$PGPDecodeDelegate"; then 33334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5 33335$as_echo "$PGPDecodeDelegate" >&6; } 33336else 33337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33338$as_echo "no" >&6; } 33339fi 33340 33341 33342# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args. 33343set dummy "$POVDelegateDefault"; ac_word=$2 33344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33345$as_echo_n "checking for $ac_word... " >&6; } 33346if ${ac_cv_path_POVDelegate+:} false; then : 33347 $as_echo_n "(cached) " >&6 33348else 33349 case $POVDelegate in 33350 [\\/]* | ?:[\\/]*) 33351 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path. 33352 ;; 33353 *) 33354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33355for as_dir in $PATH 33356do 33357 IFS=$as_save_IFS 33358 test -z "$as_dir" && as_dir=. 33359 for ac_exec_ext in '' $ac_executable_extensions; do 33360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33361 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext" 33362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33363 break 2 33364 fi 33365done 33366 done 33367IFS=$as_save_IFS 33368 33369 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault"" 33370 ;; 33371esac 33372fi 33373POVDelegate=$ac_cv_path_POVDelegate 33374if test -n "$POVDelegate"; then 33375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5 33376$as_echo "$POVDelegate" >&6; } 33377else 33378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33379$as_echo "no" >&6; } 33380fi 33381 33382 33383for ac_prog in gsx gsc "$PSDelegateDefault" 33384do 33385 # Extract the first word of "$ac_prog", so it can be a program name with args. 33386set dummy $ac_prog; ac_word=$2 33387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33388$as_echo_n "checking for $ac_word... " >&6; } 33389if ${ac_cv_path_PSDelegate+:} false; then : 33390 $as_echo_n "(cached) " >&6 33391else 33392 case $PSDelegate in 33393 [\\/]* | ?:[\\/]*) 33394 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path. 33395 ;; 33396 *) 33397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33398for as_dir in $PATH 33399do 33400 IFS=$as_save_IFS 33401 test -z "$as_dir" && as_dir=. 33402 for ac_exec_ext in '' $ac_executable_extensions; do 33403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33404 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext" 33405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33406 break 2 33407 fi 33408done 33409 done 33410IFS=$as_save_IFS 33411 33412 ;; 33413esac 33414fi 33415PSDelegate=$ac_cv_path_PSDelegate 33416if test -n "$PSDelegate"; then 33417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5 33418$as_echo "$PSDelegate" >&6; } 33419else 33420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33421$as_echo "no" >&6; } 33422fi 33423 33424 33425 test -n "$PSDelegate" && break 33426done 33427test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault"" 33428 33429# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args. 33430set dummy "$RLEEncodeDelegateDefault"; ac_word=$2 33431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33432$as_echo_n "checking for $ac_word... " >&6; } 33433if ${ac_cv_path_RLEEncodeDelegate+:} false; then : 33434 $as_echo_n "(cached) " >&6 33435else 33436 case $RLEEncodeDelegate in 33437 [\\/]* | ?:[\\/]*) 33438 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path. 33439 ;; 33440 *) 33441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33442for as_dir in $PATH 33443do 33444 IFS=$as_save_IFS 33445 test -z "$as_dir" && as_dir=. 33446 for ac_exec_ext in '' $ac_executable_extensions; do 33447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33448 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33450 break 2 33451 fi 33452done 33453 done 33454IFS=$as_save_IFS 33455 33456 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault"" 33457 ;; 33458esac 33459fi 33460RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate 33461if test -n "$RLEEncodeDelegate"; then 33462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5 33463$as_echo "$RLEEncodeDelegate" >&6; } 33464else 33465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33466$as_echo "no" >&6; } 33467fi 33468 33469 33470# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args. 33471set dummy "$RMDelegateDefault"; ac_word=$2 33472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33473$as_echo_n "checking for $ac_word... " >&6; } 33474if ${ac_cv_path_RMDelegate+:} false; then : 33475 $as_echo_n "(cached) " >&6 33476else 33477 case $RMDelegate in 33478 [\\/]* | ?:[\\/]*) 33479 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path. 33480 ;; 33481 *) 33482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33483for as_dir in $PATH 33484do 33485 IFS=$as_save_IFS 33486 test -z "$as_dir" && as_dir=. 33487 for ac_exec_ext in '' $ac_executable_extensions; do 33488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33489 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext" 33490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33491 break 2 33492 fi 33493done 33494 done 33495IFS=$as_save_IFS 33496 33497 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault"" 33498 ;; 33499esac 33500fi 33501RMDelegate=$ac_cv_path_RMDelegate 33502if test -n "$RMDelegate"; then 33503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5 33504$as_echo "$RMDelegate" >&6; } 33505else 33506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33507$as_echo "no" >&6; } 33508fi 33509 33510 33511# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args. 33512set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2 33513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33514$as_echo_n "checking for $ac_word... " >&6; } 33515if ${ac_cv_path_RSVGDecodeDelegate+:} false; then : 33516 $as_echo_n "(cached) " >&6 33517else 33518 case $RSVGDecodeDelegate in 33519 [\\/]* | ?:[\\/]*) 33520 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path. 33521 ;; 33522 *) 33523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33524for as_dir in $PATH 33525do 33526 IFS=$as_save_IFS 33527 test -z "$as_dir" && as_dir=. 33528 for ac_exec_ext in '' $ac_executable_extensions; do 33529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33530 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33532 break 2 33533 fi 33534done 33535 done 33536IFS=$as_save_IFS 33537 33538 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault"" 33539 ;; 33540esac 33541fi 33542RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate 33543if test -n "$RSVGDecodeDelegate"; then 33544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5 33545$as_echo "$RSVGDecodeDelegate" >&6; } 33546else 33547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33548$as_echo "no" >&6; } 33549fi 33550 33551 33552# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args. 33553set dummy "$SCANDecodeDelegateDefault"; ac_word=$2 33554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33555$as_echo_n "checking for $ac_word... " >&6; } 33556if ${ac_cv_path_SCANDecodeDelegate+:} false; then : 33557 $as_echo_n "(cached) " >&6 33558else 33559 case $SCANDecodeDelegate in 33560 [\\/]* | ?:[\\/]*) 33561 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path. 33562 ;; 33563 *) 33564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33565for as_dir in $PATH 33566do 33567 IFS=$as_save_IFS 33568 test -z "$as_dir" && as_dir=. 33569 for ac_exec_ext in '' $ac_executable_extensions; do 33570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33571 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33573 break 2 33574 fi 33575done 33576 done 33577IFS=$as_save_IFS 33578 33579 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault"" 33580 ;; 33581esac 33582fi 33583SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate 33584if test -n "$SCANDecodeDelegate"; then 33585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5 33586$as_echo "$SCANDecodeDelegate" >&6; } 33587else 33588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33589$as_echo "no" >&6; } 33590fi 33591 33592 33593# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args. 33594set dummy "$SVGDecodeDelegateDefault"; ac_word=$2 33595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33596$as_echo_n "checking for $ac_word... " >&6; } 33597if ${ac_cv_path_SVGDecodeDelegate+:} false; then : 33598 $as_echo_n "(cached) " >&6 33599else 33600 case $SVGDecodeDelegate in 33601 [\\/]* | ?:[\\/]*) 33602 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path. 33603 ;; 33604 *) 33605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33606for as_dir in $PATH 33607do 33608 IFS=$as_save_IFS 33609 test -z "$as_dir" && as_dir=. 33610 for ac_exec_ext in '' $ac_executable_extensions; do 33611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33612 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33614 break 2 33615 fi 33616done 33617 done 33618IFS=$as_save_IFS 33619 33620 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault"" 33621 ;; 33622esac 33623fi 33624SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate 33625if test -n "$SVGDecodeDelegate"; then 33626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5 33627$as_echo "$SVGDecodeDelegate" >&6; } 33628else 33629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33630$as_echo "no" >&6; } 33631fi 33632 33633 33634# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args. 33635set dummy "$TXTDelegateDefault"; ac_word=$2 33636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33637$as_echo_n "checking for $ac_word... " >&6; } 33638if ${ac_cv_path_TXTDelegate+:} false; then : 33639 $as_echo_n "(cached) " >&6 33640else 33641 case $TXTDelegate in 33642 [\\/]* | ?:[\\/]*) 33643 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path. 33644 ;; 33645 *) 33646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33647for as_dir in $PATH 33648do 33649 IFS=$as_save_IFS 33650 test -z "$as_dir" && as_dir=. 33651 for ac_exec_ext in '' $ac_executable_extensions; do 33652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33653 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext" 33654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33655 break 2 33656 fi 33657done 33658 done 33659IFS=$as_save_IFS 33660 33661 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault"" 33662 ;; 33663esac 33664fi 33665TXTDelegate=$ac_cv_path_TXTDelegate 33666if test -n "$TXTDelegate"; then 33667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5 33668$as_echo "$TXTDelegate" >&6; } 33669else 33670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33671$as_echo "no" >&6; } 33672fi 33673 33674 33675# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args. 33676set dummy "$UniconvertorDelegateDefault"; ac_word=$2 33677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33678$as_echo_n "checking for $ac_word... " >&6; } 33679if ${ac_cv_path_UniconvertorDelegate+:} false; then : 33680 $as_echo_n "(cached) " >&6 33681else 33682 case $UniconvertorDelegate in 33683 [\\/]* | ?:[\\/]*) 33684 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path. 33685 ;; 33686 *) 33687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33688for as_dir in $PATH 33689do 33690 IFS=$as_save_IFS 33691 test -z "$as_dir" && as_dir=. 33692 for ac_exec_ext in '' $ac_executable_extensions; do 33693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33694 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext" 33695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33696 break 2 33697 fi 33698done 33699 done 33700IFS=$as_save_IFS 33701 33702 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault"" 33703 ;; 33704esac 33705fi 33706UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate 33707if test -n "$UniconvertorDelegate"; then 33708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5 33709$as_echo "$UniconvertorDelegate" >&6; } 33710else 33711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33712$as_echo "no" >&6; } 33713fi 33714 33715 33716# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args. 33717set dummy "$WMFDecodeDelegateDefault"; ac_word=$2 33718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33719$as_echo_n "checking for $ac_word... " >&6; } 33720if ${ac_cv_path_WMFDecodeDelegate+:} false; then : 33721 $as_echo_n "(cached) " >&6 33722else 33723 case $WMFDecodeDelegate in 33724 [\\/]* | ?:[\\/]*) 33725 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path. 33726 ;; 33727 *) 33728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33729for as_dir in $PATH 33730do 33731 IFS=$as_save_IFS 33732 test -z "$as_dir" && as_dir=. 33733 for ac_exec_ext in '' $ac_executable_extensions; do 33734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33735 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33737 break 2 33738 fi 33739done 33740 done 33741IFS=$as_save_IFS 33742 33743 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault"" 33744 ;; 33745esac 33746fi 33747WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate 33748if test -n "$WMFDecodeDelegate"; then 33749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5 33750$as_echo "$WMFDecodeDelegate" >&6; } 33751else 33752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33753$as_echo "no" >&6; } 33754fi 33755 33756 33757# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args. 33758set dummy "$WWWDecodeDelegateDefault"; ac_word=$2 33759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33760$as_echo_n "checking for $ac_word... " >&6; } 33761if ${ac_cv_path_WWWDecodeDelegate+:} false; then : 33762 $as_echo_n "(cached) " >&6 33763else 33764 case $WWWDecodeDelegate in 33765 [\\/]* | ?:[\\/]*) 33766 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path. 33767 ;; 33768 *) 33769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33770for as_dir in $PATH 33771do 33772 IFS=$as_save_IFS 33773 test -z "$as_dir" && as_dir=. 33774 for ac_exec_ext in '' $ac_executable_extensions; do 33775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33776 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" 33777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33778 break 2 33779 fi 33780done 33781 done 33782IFS=$as_save_IFS 33783 33784 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault"" 33785 ;; 33786esac 33787fi 33788WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate 33789if test -n "$WWWDecodeDelegate"; then 33790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5 33791$as_echo "$WWWDecodeDelegate" >&6; } 33792else 33793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33794$as_echo "no" >&6; } 33795fi 33796 33797 33798# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args. 33799set dummy "$XPSDelegateDefault"; ac_word=$2 33800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33801$as_echo_n "checking for $ac_word... " >&6; } 33802if ${ac_cv_path_XPSDelegate+:} false; then : 33803 $as_echo_n "(cached) " >&6 33804else 33805 case $XPSDelegate in 33806 [\\/]* | ?:[\\/]*) 33807 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path. 33808 ;; 33809 *) 33810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33811for as_dir in $PATH 33812do 33813 IFS=$as_save_IFS 33814 test -z "$as_dir" && as_dir=. 33815 for ac_exec_ext in '' $ac_executable_extensions; do 33816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33817 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext" 33818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33819 break 2 33820 fi 33821done 33822 done 33823IFS=$as_save_IFS 33824 33825 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault"" 33826 ;; 33827esac 33828fi 33829XPSDelegate=$ac_cv_path_XPSDelegate 33830if test -n "$XPSDelegate"; then 33831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5 33832$as_echo "$XPSDelegate" >&6; } 33833else 33834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33835$as_echo "no" >&6; } 33836fi 33837 33838 33839# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args. 33840set dummy "$ZipDelegateDefault"; ac_word=$2 33841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33842$as_echo_n "checking for $ac_word... " >&6; } 33843if ${ac_cv_path_ZipDelegate+:} false; then : 33844 $as_echo_n "(cached) " >&6 33845else 33846 case $ZipDelegate in 33847 [\\/]* | ?:[\\/]*) 33848 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path. 33849 ;; 33850 *) 33851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33852for as_dir in $PATH 33853do 33854 IFS=$as_save_IFS 33855 test -z "$as_dir" && as_dir=. 33856 for ac_exec_ext in '' $ac_executable_extensions; do 33857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33858 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext" 33859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33860 break 2 33861 fi 33862done 33863 done 33864IFS=$as_save_IFS 33865 33866 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault"" 33867 ;; 33868esac 33869fi 33870ZipDelegate=$ac_cv_path_ZipDelegate 33871if test -n "$ZipDelegate"; then 33872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5 33873$as_echo "$ZipDelegate" >&6; } 33874else 33875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33876$as_echo "no" >&6; } 33877fi 33878 33879 33880 33881# Prefer lpr to lp; lp needs options tacked on. 33882if test "$LPRDelegate" != no; then 33883 PrintDelegate="$LPRDelegate" 33884else 33885 PrintDelegate="$LPDelegate -c -s" 33886fi 33887 33888 33889# Installed ImageMagick utiltity paths 33890ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}" 33891DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}" 33892MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}" 33893 33894# Set delegate booleans 33895have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi 33896have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi 33897have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi 33898have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi 33899have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi 33900have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi 33901have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi 33902have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi 33903have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi 33904have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi 33905 33906# 33907# Test for font directories 33908# 33909type_include_files='' 33910 33911# Dejavu fonts. 33912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5 33913$as_echo_n "checking for Dejavu fonts directory... " >&6; } 33914dejavu_font_dir='' 33915if test "${with_dejavu_font_dir}" != 'default'; then 33916 dejavu_font_dir="${with_dejavu_font_dir}/" 33917else 33918 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do 33919 if test -f "${font_dir}DejaVuSerif.ttf"; then 33920 dejavu_font_dir="${font_dir}" 33921 break 1 33922 fi 33923 done 33924fi 33925if test "${dejavu_font_dir}x" != 'x'; then 33926 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />' 33927 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5 33928$as_echo "$as_me: $dejavu_font_dir" >&6;} 33929else 33930 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5 33931$as_echo "$as_me: not found!" >&6;}; 33932fi 33933 33934 33935# Windows 33936windows_font_dir='' 33937if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then 33938 windows_font_dir="${with_windows_font_dir}/" 33939fi 33940if test "${windows_font_dir}x" != 'x'; then 33941 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then 33942 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/' 33943 fi 33944 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then 33945 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/' 33946 fi 33947 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then 33948 windows_font_dir='/usr/share/fonts/msttcore/truetype/' 33949 fi 33950fi 33951if test "${windows_font_dir}x" != 'x'; then 33952 type_include_files="$type_include_files "'<include file="type-windows.xml" />' 33953fi 33954 33955 33956# Ghostscript 33957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5 33958$as_echo_n "checking for Ghostscript fonts directory... " >&6; } 33959ghostscript_font_dir='' 33960if test "${with_gs_font_dir}" != 'default'; then 33961 ghostscript_font_dir="${with_gs_font_dir}/" 33962else 33963 if test "${native_win32_build}" = 'yes'; then 33964 # Native Windows Build 33965 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do 33966 if test -f "${font_dir}a010013l.pfb"; then 33967 ghostscript_font_dir="$font_dir" 33968 break 1 33969 fi 33970 done 33971 if test "${PSDelegate}" != 'gswin32c'; then 33972 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\" 33973 fi 33974 else 33975 # Linux / Mac OS X / Unix Build 33976 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 33977 if test -f "${font_dir}a010013l.pfb"; then 33978 ghostscript_font_dir="${font_dir}" 33979 break 1 33980 fi 33981 done 33982 if test "${ghostscript_font_dir}x" = 'x'; then 33983 if test "$PSDelegate" != 'gs'; then 33984 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/" 33985 fi 33986 fi 33987 fi 33988fi 33989if test "${ghostscript_font_dir}x" != 'x'; then 33990 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />' 33991 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5 33992$as_echo "$as_me: $ghostscript_font_dir" >&6;} 33993else 33994 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5 33995$as_echo "$as_me: not found!" >&6;}; 33996fi 33997 33998case "${build_os}" in 33999 mingw* ) 34000 PSDelegate=`$WinPathScript "$PSDelegate" 1` 34001 ;; 34002esac 34003 34004 34005 34006# 34007# Handle case where user doesn't want frozen paths 34008# 34009if test "$with_frozenpaths" != 'yes'; then 34010 # Re-set delegate definitions to default (no paths) 34011 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault" 34012 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault" 34013 BZIPDelegate="$BZIPDelegateDefault" 34014 BrowseDelegate="$BrowseDelegateDefault" 34015 CGMDecodeDelegate="$CGMDecodeDelegateDefault" 34016 CatDelegate="$CatDelegateDefault" 34017 ConvertDelegate="$ConvertDelegateDefault" 34018 GVCDecodeDelegate="$GVCDecodeDelegateDefault" 34019 DVIDecodeDelegate="$DVIDecodeDelegateDefault" 34020 EchoDelegate="$EchoDelegateDefault" 34021 EditorDelegate="$EditorDelegateDefault" 34022 FIGDecodeDelegate="$FIGDecodeDelegateDefault" 34023 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault" 34024 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault" 34025 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault" 34026 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault" 34027 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault" 34028 LPDelegate="$LPDelegateDefault" 34029 LaunchDelegate="$LaunchDelegateDefault" 34030 MANDelegate="$MANDelegateDefault" 34031 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault" 34032 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault" 34033 MogrifyDelegate="$MogrifyDelegateDefault" 34034 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault" 34035 MVDelegate="$MVDelegateDefault" 34036 PCLDelegate="$PCLDelegateDefault" 34037 PGPDecodeDelegate="$PGPDecodeDelegateDefault" 34038 POVDelegate="$POVDelegateDefault" 34039 PSDelegate="$PSDelegateDefault" 34040 RLEEncodeDelegate="$RLEEncodeDelegateDefault" 34041 RMDelegate="$RMDelegateDefault" 34042 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault" 34043 SCANDecodeDelegate="$SCANDecodeDelegateDefault" 34044 SVGDecodeDelegate="$SVGDecodeDelegateDefault" 34045 ShowImageDelegate="$ShowImageDelegateDefault" 34046 TXTDelegate="$TXTDelegateDefault" 34047 UniconvertorDelegate="$UniconvertorDelegateDefault" 34048 WMFDecodeDelegate="$WMFDecodeDelegateDefault" 34049 WWWDecodeDelegate="$WWWDecodeDelegateDefault" 34050 XPSDelegate="$XPSDelegateDefault" 34051 ZipDelegate="$ZipDelegateDefault" 34052fi 34053 34054# Delegate substitutions 34055 34056 34057 34058 34059 34060 34061 34062 34063 34064 34065 34066 34067 34068 34069 34070 34071 34072 34073 34074 34075 34076 34077 34078 34079 34080 34081 34082 34083 34084 34085 34086 34087 34088 34089 34090 34091 34092 34093 34094 34095# 34096# RPM support. 34097# 34098RPM='' 34099for ac_prog in gnutar gtar tar 34100do 34101 # Extract the first word of "$ac_prog", so it can be a program name with args. 34102set dummy $ac_prog; ac_word=$2 34103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34104$as_echo_n "checking for $ac_word... " >&6; } 34105if ${ac_cv_prog_TAR+:} false; then : 34106 $as_echo_n "(cached) " >&6 34107else 34108 if test -n "$TAR"; then 34109 ac_cv_prog_TAR="$TAR" # Let the user override the test. 34110else 34111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34112for as_dir in $PATH 34113do 34114 IFS=$as_save_IFS 34115 test -z "$as_dir" && as_dir=. 34116 for ac_exec_ext in '' $ac_executable_extensions; do 34117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34118 ac_cv_prog_TAR="$ac_prog" 34119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34120 break 2 34121 fi 34122done 34123 done 34124IFS=$as_save_IFS 34125 34126fi 34127fi 34128TAR=$ac_cv_prog_TAR 34129if test -n "$TAR"; then 34130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 34131$as_echo "$TAR" >&6; } 34132else 34133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34134$as_echo "no" >&6; } 34135fi 34136 34137 34138 test -n "$TAR" && break 34139done 34140 34141for ac_prog in perl 34142do 34143 # Extract the first word of "$ac_prog", so it can be a program name with args. 34144set dummy $ac_prog; ac_word=$2 34145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34146$as_echo_n "checking for $ac_word... " >&6; } 34147if ${ac_cv_prog_PERL+:} false; then : 34148 $as_echo_n "(cached) " >&6 34149else 34150 if test -n "$PERL"; then 34151 ac_cv_prog_PERL="$PERL" # Let the user override the test. 34152else 34153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34154for as_dir in $PATH 34155do 34156 IFS=$as_save_IFS 34157 test -z "$as_dir" && as_dir=. 34158 for ac_exec_ext in '' $ac_executable_extensions; do 34159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34160 ac_cv_prog_PERL="$ac_prog" 34161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34162 break 2 34163 fi 34164done 34165 done 34166IFS=$as_save_IFS 34167 34168fi 34169fi 34170PERL=$ac_cv_prog_PERL 34171if test -n "$PERL"; then 34172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 34173$as_echo "$PERL" >&6; } 34174else 34175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34176$as_echo "no" >&6; } 34177fi 34178 34179 34180 test -n "$PERL" && break 34181done 34182 34183for ac_prog in rpmbuild rpm 34184do 34185 # Extract the first word of "$ac_prog", so it can be a program name with args. 34186set dummy $ac_prog; ac_word=$2 34187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34188$as_echo_n "checking for $ac_word... " >&6; } 34189if ${ac_cv_prog_RPM+:} false; then : 34190 $as_echo_n "(cached) " >&6 34191else 34192 if test -n "$RPM"; then 34193 ac_cv_prog_RPM="$RPM" # Let the user override the test. 34194else 34195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34196for as_dir in $PATH 34197do 34198 IFS=$as_save_IFS 34199 test -z "$as_dir" && as_dir=. 34200 for ac_exec_ext in '' $ac_executable_extensions; do 34201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34202 ac_cv_prog_RPM="$ac_prog" 34203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34204 break 2 34205 fi 34206done 34207 done 34208IFS=$as_save_IFS 34209 34210fi 34211fi 34212RPM=$ac_cv_prog_RPM 34213if test -n "$RPM"; then 34214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5 34215$as_echo "$RPM" >&6; } 34216else 34217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34218$as_echo "no" >&6; } 34219fi 34220 34221 34222 test -n "$RPM" && break 34223done 34224 34225 34226ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} 34227 34228 34229AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 34230 34231 34232AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} 34233 34234 34235AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 34236 34237 34238 if test "x$RPM" != "x" ; then 34239 RPM_DELEGATE_TRUE= 34240 RPM_DELEGATE_FALSE='#' 34241else 34242 RPM_DELEGATE_TRUE='#' 34243 RPM_DELEGATE_FALSE= 34244fi 34245 34246 34247# 34248# 7ZIP support (http://p7zip.sourceforge.net/) 34249# 34250P7ZIP='' 34251for ac_prog in 7za 34252do 34253 # Extract the first word of "$ac_prog", so it can be a program name with args. 34254set dummy $ac_prog; ac_word=$2 34255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34256$as_echo_n "checking for $ac_word... " >&6; } 34257if ${ac_cv_prog_P7ZIP+:} false; then : 34258 $as_echo_n "(cached) " >&6 34259else 34260 if test -n "$P7ZIP"; then 34261 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test. 34262else 34263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34264for as_dir in $PATH 34265do 34266 IFS=$as_save_IFS 34267 test -z "$as_dir" && as_dir=. 34268 for ac_exec_ext in '' $ac_executable_extensions; do 34269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34270 ac_cv_prog_P7ZIP="$ac_prog" 34271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34272 break 2 34273 fi 34274done 34275 done 34276IFS=$as_save_IFS 34277 34278fi 34279fi 34280P7ZIP=$ac_cv_prog_P7ZIP 34281if test -n "$P7ZIP"; then 34282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5 34283$as_echo "$P7ZIP" >&6; } 34284else 34285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34286$as_echo "no" >&6; } 34287fi 34288 34289 34290 test -n "$P7ZIP" && break 34291done 34292 34293 34294 if test "x$P7ZIP" != "x" ; then 34295 P7ZIP_DELEGATE_TRUE= 34296 P7ZIP_DELEGATE_FALSE='#' 34297else 34298 P7ZIP_DELEGATE_TRUE='#' 34299 P7ZIP_DELEGATE_FALSE= 34300fi 34301 34302 34303# 34304# ZIP support (http://www.info-zip.org/Zip.html) 34305# 34306ZIP='' 34307for ac_prog in zip 34308do 34309 # Extract the first word of "$ac_prog", so it can be a program name with args. 34310set dummy $ac_prog; ac_word=$2 34311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34312$as_echo_n "checking for $ac_word... " >&6; } 34313if ${ac_cv_prog_ZIP+:} false; then : 34314 $as_echo_n "(cached) " >&6 34315else 34316 if test -n "$ZIP"; then 34317 ac_cv_prog_ZIP="$ZIP" # Let the user override the test. 34318else 34319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34320for as_dir in $PATH 34321do 34322 IFS=$as_save_IFS 34323 test -z "$as_dir" && as_dir=. 34324 for ac_exec_ext in '' $ac_executable_extensions; do 34325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34326 ac_cv_prog_ZIP="$ac_prog" 34327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34328 break 2 34329 fi 34330done 34331 done 34332IFS=$as_save_IFS 34333 34334fi 34335fi 34336ZIP=$ac_cv_prog_ZIP 34337if test -n "$ZIP"; then 34338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 34339$as_echo "$ZIP" >&6; } 34340else 34341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34342$as_echo "no" >&6; } 34343fi 34344 34345 34346 test -n "$ZIP" && break 34347done 34348 34349 34350 if test "x$ZIP" != "x" ; then 34351 ZIP_DELEGATE_TRUE= 34352 ZIP_DELEGATE_FALSE='#' 34353else 34354 ZIP_DELEGATE_TRUE='#' 34355 ZIP_DELEGATE_FALSE= 34356fi 34357 34358 34359# 34360# GhostPCL related configuration. 34361# 34362PCLColorDevice=ppmraw 34363PCLCMYKDevice=pamcmyk32 34364PCLMonoDevice=pbmraw 34365if test -z "$PCLVersion"; then 34366 PCLVersion='unknown' 34367fi 34368if test $have_pcl = 'yes'; then 34369 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 34370$as_echo "$as_me: -------------------------------------------------------------" >&6;} 34371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5 34372$as_echo_n "checking for PCL... " >&6; } 34373 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 34374$as_echo "$as_me: " >&6;} 34375 # PCLColorDevice 34376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5 34377$as_echo_n "checking for pcl color device... " >&6; } 34378 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34379 : 34380 else 34381 PCLColorDevice=ppmraw 34382 fi 34383 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5 34384$as_echo "$as_me: $PCLColorDevice" >&6;} 34385 34386 # PCLCMYKDevice 34387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5 34388$as_echo_n "checking for pcl CMYK device... " >&6; } 34389 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34390 : 34391 else 34392 PCLCMYKDevice=$PCLColorDevice 34393 fi 34394 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5 34395$as_echo "$as_me: $PCLCMYKDevice" >&6;} 34396 34397 # PCLMonoDevice 34398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5 34399$as_echo_n "checking for pcl mono device... " >&6; } 34400 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34401 : 34402 else 34403 PCLMonoDevice=$PCLColorDevice 34404 fi 34405 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5 34406$as_echo "$as_me: $PCLMonoDevice" >&6;} 34407fi 34408 34409 34410 34411 34412 34413 34414# 34415# GhostXPS related configuration. 34416# 34417XPSColorDevice=ppmraw 34418XPSCMYKDevice=bmpsep8 34419XPSMonoDevice=pbmraw 34420if test -z "$XPSVersion"; then 34421 XPSVersion='unknown' 34422fi 34423if test $have_xps = 'yes'; then 34424 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 34425$as_echo "$as_me: -------------------------------------------------------------" >&6;} 34426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5 34427$as_echo_n "checking for XPS... " >&6; } 34428 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 34429$as_echo "$as_me: " >&6;} 34430 # XPSColorDevice 34431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5 34432$as_echo_n "checking for xps color device... " >&6; } 34433 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34434 : 34435 else 34436 XPSColorDevice=ppmraw 34437 fi 34438 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5 34439$as_echo "$as_me: $XPSColorDevice" >&6;} 34440 34441 # XPSCMYKDevice 34442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5 34443$as_echo_n "checking for xps CMYK device... " >&6; } 34444 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34445 : 34446 else 34447 XPSCMYKDevice=$XPSColorDevice 34448 fi 34449 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5 34450$as_echo "$as_me: $XPSCMYKDevice" >&6;} 34451 34452 # XPSMonoDevice 34453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5 34454$as_echo_n "checking for xps mono device... " >&6; } 34455 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34456 : 34457 else 34458 XPSMonoDevice=$XPSColorDevice 34459 fi 34460 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5 34461$as_echo "$as_me: $XPSMonoDevice" >&6;} 34462fi 34463 34464 34465 34466 34467 34468 34469# 34470# Ghostscript related configuration. 34471# 34472GSAlphaDevice=pngalpha 34473GSColorDevice=pnmraw 34474GSCMYKDevice=pam 34475GSMonoDevice=pbmraw 34476GSPDFDevice=pdfwrite 34477GSPSDevice=pswrite 34478GSEPSDevice=epswrite 34479GSVersion='unknown' 34480if test $have_gs = 'yes'; then 34481 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 34482$as_echo "$as_me: -------------------------------------------------------------" >&6;} 34483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 34484$as_echo_n "checking for Ghostscript... " >&6; } 34485 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 34486$as_echo "$as_me: " >&6;} 34487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5 34488$as_echo_n "checking for Ghostscript version... " >&6; } 34489 if GSVersion=`$PSDelegate --version`; then 34490 : 34491 else 34492 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'` 34493 fi 34494 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5 34495$as_echo "$as_me: $GSVersion" >&6;} 34496 34497 # GSAlphaDevice 34498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5 34499$as_echo_n "checking for gs alpha device... " >&6; } 34500 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34501 : 34502 else 34503 GSAlphaDevice=pnmraw 34504 fi 34505 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5 34506$as_echo "$as_me: $GSAlphaDevice" >&6;} 34507 34508 # GSColorDevice 34509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5 34510$as_echo_n "checking for gs color device... " >&6; } 34511 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34512 : 34513 else 34514 GSColorDevice=pnmraw 34515 fi 34516 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5 34517$as_echo "$as_me: $GSColorDevice" >&6;} 34518 34519 # GSCMYKDevice 34520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5 34521$as_echo_n "checking for gs CMYK device... " >&6; } 34522 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34523 : 34524 else 34525 GSCMYKDevice=bmpsep8 34526 fi 34527 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5 34528$as_echo "$as_me: $GSCMYKDevice" >&6;} 34529 34530 # GSMonoDevice 34531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5 34532$as_echo_n "checking for gs mono device... " >&6; } 34533 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34534 : 34535 else 34536 GSMonoDevice=$GSColorDevice 34537 fi 34538 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5 34539$as_echo "$as_me: $GSMonoDevice" >&6;} 34540 34541 # GSPDFDevice 34542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5 34543$as_echo_n "checking for gs PDF writing device... " >&6; } 34544 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34545 : 34546 else 34547 GSPDFDevice=nodevice 34548 fi 34549 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5 34550$as_echo "$as_me: $GSPDFDevice" >&6;} 34551 34552 # GSPSDevice 34553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5 34554$as_echo_n "checking for gs PS writing device... " >&6; } 34555 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34556 : 34557 else 34558 GSPSDevice=nodevice 34559 fi 34560 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5 34561$as_echo "$as_me: $GSPSDevice" >&6;} 34562 34563 # GSEPSDevice 34564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5 34565$as_echo_n "checking for gs EPS writing device... " >&6; } 34566 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then 34567 : 34568 else 34569 GSEPSDevice=nodevice 34570 fi 34571 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5 34572$as_echo "$as_me: $GSEPSDevice" >&6;} 34573fi 34574 34575 34576 34577 34578 34579 34580 34581 34582 34583 34584# 34585# PerlMagick-related configuration 34586# 34587 34588# Look for PERL if PerlMagick requested 34589# If name/path of desired PERL interpreter is specified, look for that one first 34590have_perl='no' 34591if test "$with_perl" != 'no'; then 34592 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 34593$as_echo "$as_me: -------------------------------------------------------------" >&6;} 34594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5 34595$as_echo_n "checking for Perl... " >&6; } 34596 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 34597$as_echo "$as_me: " >&6;} 34598 if test "$with_perl" != 'yes'; then 34599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5 34600$as_echo_n "checking for perl... " >&6; } 34601if ${ac_cv_path_PERL+:} false; then : 34602 $as_echo_n "(cached) " >&6 34603else 34604 ac_cv_path_PERL="$with_perl" 34605fi 34606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5 34607$as_echo "$ac_cv_path_PERL" >&6; }; 34608 PERL=$ac_cv_path_PERL 34609 have_perl="$ac_cv_path_PERL" 34610 else 34611 for ac_prog in perl perl5 34612do 34613 # Extract the first word of "$ac_prog", so it can be a program name with args. 34614set dummy $ac_prog; ac_word=$2 34615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34616$as_echo_n "checking for $ac_word... " >&6; } 34617if ${ac_cv_path_PERL+:} false; then : 34618 $as_echo_n "(cached) " >&6 34619else 34620 case $PERL in 34621 [\\/]* | ?:[\\/]*) 34622 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 34623 ;; 34624 *) 34625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34626for as_dir in $PATH 34627do 34628 IFS=$as_save_IFS 34629 test -z "$as_dir" && as_dir=. 34630 for ac_exec_ext in '' $ac_executable_extensions; do 34631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34632 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 34633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34634 break 2 34635 fi 34636done 34637 done 34638IFS=$as_save_IFS 34639 34640 ;; 34641esac 34642fi 34643PERL=$ac_cv_path_PERL 34644if test -n "$PERL"; then 34645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 34646$as_echo "$PERL" >&6; } 34647else 34648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34649$as_echo "no" >&6; } 34650fi 34651 34652 34653 test -n "$PERL" && break 34654done 34655 if test "$ac_cv_path_PERL"; then 34656 have_perl="$ac_cv_path_PERL" 34657 fi 34658 fi 34659fi 34660 34661if test "$with_perl" != 'yes' ; then 34662 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl " 34663fi 34664 34665PERL_SUPPORTS_DESTDIR='no' 34666 34667with_perl_static='no' 34668with_perl_dynamic='no' 34669if test "$have_perl" != 'no'; then 34670 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then 34671 with_perl_static='yes' 34672 fi 34673 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then 34674 with_perl_dynamic='yes' 34675 fi 34676 # Is PERL's MakeMaker new enough to support DESTDIR? 34677 34678 34679 34680 34681 if test -n "$PERL"; then : 34682 34683 ax_perl_version="5.8.1" 34684 34685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5 34686$as_echo_n "checking for perl version... " >&6; } 34687 34688 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'` 34689 34690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5 34691$as_echo "$perl_version" >&6; } 34692 34693 PERL_VERSION=$perl_version 34694 34695 34696 34697 34698 34699 # Used to indicate true or false condition 34700 ax_compare_version=false 34701 34702 # Convert the two version strings to be compared into a format that 34703 # allows a simple string comparison. The end result is that a version 34704 # string of the form 1.12.5-r617 will be converted to the form 34705 # 0001001200050617. In other words, each number is zero padded to four 34706 # digits, and non digits are removed. 34707 34708 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 34709 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 34710 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 34711 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 34712 -e 's/[^0-9]//g'` 34713 34714 34715 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 34716 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 34717 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 34718 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 34719 -e 's/[^0-9]//g'` 34720 34721 34722 ax_compare_version=`echo "x$ax_compare_version_A 34723x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` 34724 34725 34726 34727 if test "$ax_compare_version" = "true" ; then 34728 34729 : 34730 PERL_SUPPORTS_DESTDIR='yes' 34731 34732 else 34733 : 34734 PERL_SUPPORTS_DESTDIR='no' 34735 34736 fi 34737 34738 34739else 34740 34741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5 34742$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;} 34743 PERL_SUPPORTS_DESTDIR='no' 34744 34745fi 34746 34747fi 34748 if test "$have_perl" != 'no'; then 34749 WITH_PERL_TRUE= 34750 WITH_PERL_FALSE='#' 34751else 34752 WITH_PERL_TRUE='#' 34753 WITH_PERL_FALSE= 34754fi 34755 34756 if test $with_perl_static = 'yes'; then 34757 WITH_PERL_STATIC_TRUE= 34758 WITH_PERL_STATIC_FALSE='#' 34759else 34760 WITH_PERL_STATIC_TRUE='#' 34761 WITH_PERL_STATIC_FALSE= 34762fi 34763 34764 if test $with_perl_dynamic = 'yes'; then 34765 WITH_PERL_DYNAMIC_TRUE= 34766 WITH_PERL_DYNAMIC_FALSE='#' 34767else 34768 WITH_PERL_DYNAMIC_TRUE='#' 34769 WITH_PERL_DYNAMIC_FALSE= 34770fi 34771 34772 34773 34774# Determine path to pick up MagickCore library from for use with building PerlMagick 34775MAGICKCORE_PATH="${LIB_DIR}" 34776if test $with_perl_static = 'yes'; then 34777 # Find out where libtool hides its uninstalled libraries (as libtool_objdir) 34778 libtool_objdir=$objdir 34779 34780 # Linker search path to library, followed by -lMagickCore 34781 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}" 34782fi 34783 34784 34785# Create a simple string containing format names for all delegate libraries. 34786MAGICK_DELEGATES='' 34787if test "$have_autotrace" = 'yes' ; then 34788 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace" 34789 MAGICK_FEATURES="$MAGICK_FEATURES Autotrace" 34790fi 34791if test "$have_bzlib" = 'yes' ; then 34792 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib" 34793fi 34794if test "$have_dps" = 'yes' ; then 34795 MAGICK_DELEGATES="$MAGICK_DELEGATES dps" 34796fi 34797if test "$have_djvu" = 'yes' ; then 34798 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu" 34799fi 34800if test "$have_ffmpeg" = 'yes' ; then 34801 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg" 34802fi 34803if test "$have_fftw" = 'yes' ; then 34804 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw" 34805fi 34806if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then 34807 MAGICK_DELEGATES="$MAGICK_DELEGATES xfig" 34808fi 34809if test "$have_fpx" = 'yes' ; then 34810 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx" 34811fi 34812if test "$have_fontconfig" = 'yes' ; then 34813 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig" 34814fi 34815if test "$have_freetype" = 'yes' ; then 34816 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype" 34817fi 34818if test "$have_gslib" = 'yes' ; then 34819 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib" 34820fi 34821if test "$have_jbig" = 'yes' ; then 34822 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig" 34823fi 34824if test "$have_png$have_jpeg" = 'yesyes' ; then 34825 MAGICK_DELEGATES="$MAGICK_DELEGATES jng" 34826fi 34827if test "$have_jp2" = 'yes' ; then 34828 MAGICK_DELEGATES="$MAGICK_DELEGATES jp2" 34829fi 34830if test "$have_jpeg" = 'yes' ; then 34831 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg" 34832fi 34833if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then 34834 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms" 34835fi 34836if test "$have_lqr" = 'yes' ; then 34837 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr" 34838fi 34839if test "$have_lzma" = 'yes' ; then 34840 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma" 34841fi 34842if test "$have_openexr" = 'yes' ; then 34843 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr" 34844fi 34845if test "$have_pango" = 'yes' ; then 34846 MAGICK_DELEGATES="$MAGICK_DELEGATES pango" 34847fi 34848if test "$have_png" = 'yes' ; then 34849 MAGICK_DELEGATES="$MAGICK_DELEGATES png" 34850fi 34851have_ps='no' 34852if test "$have_dps" = 'yes' || \ 34853 test "$have_gs" = 'yes' || \ 34854 test "${native_win32_build}" = 'yes' ; then 34855 have_ps='yes' 34856fi 34857if test "$have_ps" = 'yes' ; then 34858 MAGICK_DELEGATES="$MAGICK_DELEGATES ps" 34859fi 34860if test "$have_ralcgm" = 'yes' ; then 34861 MAGICK_DELEGATES="$MAGICK_DELEGATES cgm" 34862fi 34863if test "$have_ra_ppm" = 'yes' ; then 34864 MAGICK_DELEGATES="$MAGICK_DELEGATES rad" 34865fi 34866if test "$have_rsvg" = 'yes' ; then 34867 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg" 34868fi 34869if test "$have_tiff" = 'yes' ; then 34870 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff" 34871fi 34872if test "$have_ttf" = 'yes' ; then 34873 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf" 34874fi 34875if test "$have_wmf" = 'yes' ; then 34876 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf" 34877fi 34878if test "$have_x" = 'yes' ; then 34879 MAGICK_DELEGATES="$MAGICK_DELEGATES x" 34880fi 34881if test "$have_xml" = 'yes' ; then 34882 MAGICK_DELEGATES="$MAGICK_DELEGATES xml" 34883fi 34884if test "$have_zlib" = 'yes' ; then 34885 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib" 34886fi 34887# Remove extraneous spaces from output variables (asthetic) 34888MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'` 34889MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'` 34890 34891 34892 34893# 34894# Handle special compiler flags 34895# 34896 34897# Add '-p' if prof source profiling support enabled 34898if test "$enable_prof" = 'yes'; then 34899 CFLAGS="-p $CFLAGS" 34900 CXXFLAGS="-p $CXXFLAGS" 34901 LDFLAGS="-p $LDFLAGS" 34902fi 34903 34904# Add '-pg' if gprof source profiling support enabled 34905if test "$enable_gprof" = 'yes'; then 34906 CFLAGS="-pg $CFLAGS" 34907 CXXFLAGS="-pg $CXXFLAGS" 34908 LDFLAGS="-pg $LDFLAGS" 34909fi 34910 34911# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled 34912# This is a gcc-specific feature 34913if test "$enable_gcov" = 'yes'; then 34914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5 34915$as_echo_n "checking for _gcov_init in -lgcov... " >&6; } 34916if ${ac_cv_lib_gcov__gcov_init+:} false; then : 34917 $as_echo_n "(cached) " >&6 34918else 34919 ac_check_lib_save_LIBS=$LIBS 34920LIBS="-lgcov $LIBS" 34921cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34922/* end confdefs.h. */ 34923 34924/* Override any GCC internal prototype to avoid an error. 34925 Use char because int might match the return type of a GCC 34926 builtin and then its argument prototype would still apply. */ 34927#ifdef __cplusplus 34928extern "C" 34929#endif 34930char _gcov_init (); 34931int 34932main () 34933{ 34934return _gcov_init (); 34935 ; 34936 return 0; 34937} 34938_ACEOF 34939if ac_fn_c_try_link "$LINENO"; then : 34940 ac_cv_lib_gcov__gcov_init=yes 34941else 34942 ac_cv_lib_gcov__gcov_init=no 34943fi 34944rm -f core conftest.err conftest.$ac_objext \ 34945 conftest$ac_exeext conftest.$ac_ext 34946LIBS=$ac_check_lib_save_LIBS 34947fi 34948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5 34949$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; } 34950if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then : 34951 cat >>confdefs.h <<_ACEOF 34952#define HAVE_LIBGCOV 1 34953_ACEOF 34954 34955 LIBS="-lgcov $LIBS" 34956 34957fi 34958 34959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5 34960$as_echo_n "checking for __gcov_init in -lgcov... " >&6; } 34961if ${ac_cv_lib_gcov___gcov_init+:} false; then : 34962 $as_echo_n "(cached) " >&6 34963else 34964 ac_check_lib_save_LIBS=$LIBS 34965LIBS="-lgcov $LIBS" 34966cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34967/* end confdefs.h. */ 34968 34969/* Override any GCC internal prototype to avoid an error. 34970 Use char because int might match the return type of a GCC 34971 builtin and then its argument prototype would still apply. */ 34972#ifdef __cplusplus 34973extern "C" 34974#endif 34975char __gcov_init (); 34976int 34977main () 34978{ 34979return __gcov_init (); 34980 ; 34981 return 0; 34982} 34983_ACEOF 34984if ac_fn_c_try_link "$LINENO"; then : 34985 ac_cv_lib_gcov___gcov_init=yes 34986else 34987 ac_cv_lib_gcov___gcov_init=no 34988fi 34989rm -f core conftest.err conftest.$ac_objext \ 34990 conftest$ac_exeext conftest.$ac_ext 34991LIBS=$ac_check_lib_save_LIBS 34992fi 34993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5 34994$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; } 34995if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then : 34996 cat >>confdefs.h <<_ACEOF 34997#define HAVE_LIBGCOV 1 34998_ACEOF 34999 35000 LIBS="-lgcov $LIBS" 35001 35002fi 35003 35004 case "$target_os" in 35005 darwin*) 35006 OSX_GCOV_LDFLAG="-Wl,-single_module" 35007 ;; 35008 *) 35009 OSX_GCOV_LDFLAG="" 35010 ;; 35011 esac 35012 35013 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS" 35014 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS" 35015 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS" 35016fi 35017 35018# 35019# Build library dependency list for libMagickCore 35020# 35021 35022if test "$build_modules" != 'no'; then 35023 MAGICK_DEP_LIBS="$LCMS_LIBS $FREETYPE_LIBS $LQR_LIBS $FFTW_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 $THREAD_LIBS" 35024else 35025 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS" 35026fi 35027 35028 35029# 35030# Remove extraneous spaces from output variables (asthetic) 35031# 35032X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'` 35033X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'` 35034X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'` 35035X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'` 35036 35037CC=`echo $CC | sed -e 's/ */ /g'` 35038CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'` 35039CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'` 35040CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'` 35041DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'` 35042LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'` 35043TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'` 35044MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'` 35045#LIBS=`echo $LIBS | sed -e 's/ */ /g'` 35046 35047# Pass only user-provided LIBS as "global" libraries 35048LIBS=$USER_LIBS 35049 35050#AC_SUBST(CPPFLAGS) 35051 35052#AC_SUBST(LDFLAGS) 35053#AC_SUBST(X_PRE_LIBS) 35054#AC_SUBST(X_LIBS) 35055#AC_SUBST(X_EXTRA_LIBS) 35056 35057MAGICK_CFLAGS=$CFLAGS 35058MAGICK_CXXFLAGS="$CXXFLAGS" 35059MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'` 35060MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'` 35061MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS" 35062MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS" 35063 35064 35065 35066 35067 35068 35069 35070 35071# Set configured scripts to executable. 35072ac_config_commands="$ac_config_commands default" 35073 35074ac_config_commands="$ac_config_commands magick.sh.in" 35075 35076ac_config_commands="$ac_config_commands MagickCore-config.in" 35077 35078ac_config_commands="$ac_config_commands MagickWand-config.in" 35079 35080ac_config_commands="$ac_config_commands Magick++-config.in" 35081 35082ac_config_commands="$ac_config_commands PerlMagick/check.sh.in" 35083 35084 35085{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5 35086$as_echo "$as_me: -------------------------------------------------------------" >&6;} 35087{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5 35088$as_echo "$as_me: Update ImageMagick configuration" >&6;} 35089cat >confcache <<\_ACEOF 35090# This file is a shell script that caches the results of configure 35091# tests run on this system so they can be shared between configure 35092# scripts and configure runs, see configure's option --config-cache. 35093# It is not useful on other systems. If it contains results you don't 35094# want to keep, you may remove or edit it. 35095# 35096# config.status only pays attention to the cache file if you give it 35097# the --recheck option to rerun configure. 35098# 35099# `ac_cv_env_foo' variables (set or unset) will be overridden when 35100# loading this file, other *unset* `ac_cv_foo' will be assigned the 35101# following values. 35102 35103_ACEOF 35104 35105# The following way of writing the cache mishandles newlines in values, 35106# but we know of no workaround that is simple, portable, and efficient. 35107# So, we kill variables containing newlines. 35108# Ultrix sh set writes to stderr and can't be redirected directly, 35109# and sets the high bit in the cache file unless we assign to the vars. 35110( 35111 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 35112 eval ac_val=\$$ac_var 35113 case $ac_val in #( 35114 *${as_nl}*) 35115 case $ac_var in #( 35116 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 35117$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 35118 esac 35119 case $ac_var in #( 35120 _ | IFS | as_nl) ;; #( 35121 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 35122 *) { eval $ac_var=; unset $ac_var;} ;; 35123 esac ;; 35124 esac 35125 done 35126 35127 (set) 2>&1 | 35128 case $as_nl`(ac_space=' '; set) 2>&1` in #( 35129 *${as_nl}ac_space=\ *) 35130 # `set' does not quote correctly, so add quotes: double-quote 35131 # substitution turns \\\\ into \\, and sed turns \\ into \. 35132 sed -n \ 35133 "s/'/'\\\\''/g; 35134 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 35135 ;; #( 35136 *) 35137 # `set' quotes correctly as required by POSIX, so do not add quotes. 35138 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 35139 ;; 35140 esac | 35141 sort 35142) | 35143 sed ' 35144 /^ac_cv_env_/b end 35145 t clear 35146 :clear 35147 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 35148 t end 35149 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 35150 :end' >>confcache 35151if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 35152 if test -w "$cache_file"; then 35153 if test "x$cache_file" != "x/dev/null"; then 35154 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 35155$as_echo "$as_me: updating cache $cache_file" >&6;} 35156 if test ! -f "$cache_file" || test -h "$cache_file"; then 35157 cat confcache >"$cache_file" 35158 else 35159 case $cache_file in #( 35160 */* | ?:*) 35161 mv -f confcache "$cache_file"$$ && 35162 mv -f "$cache_file"$$ "$cache_file" ;; #( 35163 *) 35164 mv -f confcache "$cache_file" ;; 35165 esac 35166 fi 35167 fi 35168 else 35169 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 35170$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 35171 fi 35172fi 35173rm -f confcache 35174 35175test "x$prefix" = xNONE && prefix=$ac_default_prefix 35176# Let make expand exec_prefix. 35177test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 35178 35179DEFS=-DHAVE_CONFIG_H 35180 35181ac_libobjs= 35182ac_ltlibobjs= 35183U= 35184for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 35185 # 1. Remove the extension, and $U if already installed. 35186 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 35187 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 35188 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 35189 # will be set to the directory where LIBOBJS objects are built. 35190 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 35191 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 35192done 35193LIBOBJS=$ac_libobjs 35194 35195LTLIBOBJS=$ac_ltlibobjs 35196 35197 35198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 35199$as_echo_n "checking that generated files are newer than configure... " >&6; } 35200 if test -n "$am_sleep_pid"; then 35201 # Hide warnings about reused PIDs. 35202 wait $am_sleep_pid 2>/dev/null 35203 fi 35204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 35205$as_echo "done" >&6; } 35206 if test -n "$EXEEXT"; then 35207 am__EXEEXT_TRUE= 35208 am__EXEEXT_FALSE='#' 35209else 35210 am__EXEEXT_TRUE='#' 35211 am__EXEEXT_FALSE= 35212fi 35213 35214if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 35215 as_fn_error $? "conditional \"AMDEP\" was never defined. 35216Usually this means the macro was only invoked conditionally." "$LINENO" 5 35217fi 35218if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 35219 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 35220Usually this means the macro was only invoked conditionally." "$LINENO" 5 35221fi 35222if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 35223 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 35224Usually this means the macro was only invoked conditionally." "$LINENO" 5 35225fi 35226if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 35227 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 35228Usually this means the macro was only invoked conditionally." "$LINENO" 5 35229fi 35230if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then 35231 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined. 35232Usually this means the macro was only invoked conditionally." "$LINENO" 5 35233fi 35234if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then 35235 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined. 35236Usually this means the macro was only invoked conditionally." "$LINENO" 5 35237fi 35238if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then 35239 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined. 35240Usually this means the macro was only invoked conditionally." "$LINENO" 5 35241fi 35242if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then 35243 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined. 35244Usually this means the macro was only invoked conditionally." "$LINENO" 5 35245fi 35246if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then 35247 as_fn_error $? "conditional \"USING_CL\" was never defined. 35248Usually this means the macro was only invoked conditionally." "$LINENO" 5 35249fi 35250if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then 35251 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined. 35252Usually this means the macro was only invoked conditionally." "$LINENO" 5 35253fi 35254if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then 35255 as_fn_error $? "conditional \"WITH_MODULES\" was never defined. 35256Usually this means the macro was only invoked conditionally." "$LINENO" 5 35257fi 35258if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 35259 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 35260Usually this means the macro was only invoked conditionally." "$LINENO" 5 35261fi 35262if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then 35263 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined. 35264Usually this means the macro was only invoked conditionally." "$LINENO" 5 35265fi 35266 35267if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 35268 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 35269Usually this means the macro was only invoked conditionally." "$LINENO" 5 35270fi 35271if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then 35272 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined. 35273Usually this means the macro was only invoked conditionally." "$LINENO" 5 35274fi 35275if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then 35276 as_fn_error $? "conditional \"HasUMEM\" was never defined. 35277Usually this means the macro was only invoked conditionally." "$LINENO" 5 35278fi 35279if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then 35280 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined. 35281Usually this means the macro was only invoked conditionally." "$LINENO" 5 35282fi 35283if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then 35284 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined. 35285Usually this means the macro was only invoked conditionally." "$LINENO" 5 35286fi 35287if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then 35288 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined. 35289Usually this means the macro was only invoked conditionally." "$LINENO" 5 35290fi 35291if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then 35292 as_fn_error $? "conditional \"WITH_LTDL\" was never defined. 35293Usually this means the macro was only invoked conditionally." "$LINENO" 5 35294fi 35295if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then 35296 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined. 35297Usually this means the macro was only invoked conditionally." "$LINENO" 5 35298fi 35299if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then 35300 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined. 35301Usually this means the macro was only invoked conditionally." "$LINENO" 5 35302fi 35303if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then 35304 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined. 35305Usually this means the macro was only invoked conditionally." "$LINENO" 5 35306fi 35307if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then 35308 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined. 35309Usually this means the macro was only invoked conditionally." "$LINENO" 5 35310fi 35311if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then 35312 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined. 35313Usually this means the macro was only invoked conditionally." "$LINENO" 5 35314fi 35315if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then 35316 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined. 35317Usually this means the macro was only invoked conditionally." "$LINENO" 5 35318fi 35319if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then 35320 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined. 35321Usually this means the macro was only invoked conditionally." "$LINENO" 5 35322fi 35323if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then 35324 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined. 35325Usually this means the macro was only invoked conditionally." "$LINENO" 5 35326fi 35327if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then 35328 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined. 35329Usually this means the macro was only invoked conditionally." "$LINENO" 5 35330fi 35331if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then 35332 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined. 35333Usually this means the macro was only invoked conditionally." "$LINENO" 5 35334fi 35335if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then 35336 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined. 35337Usually this means the macro was only invoked conditionally." "$LINENO" 5 35338fi 35339if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then 35340 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined. 35341Usually this means the macro was only invoked conditionally." "$LINENO" 5 35342fi 35343if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then 35344 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined. 35345Usually this means the macro was only invoked conditionally." "$LINENO" 5 35346fi 35347if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then 35348 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined. 35349Usually this means the macro was only invoked conditionally." "$LINENO" 5 35350fi 35351if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then 35352 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined. 35353Usually this means the macro was only invoked conditionally." "$LINENO" 5 35354fi 35355if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then 35356 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined. 35357Usually this means the macro was only invoked conditionally." "$LINENO" 5 35358fi 35359if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then 35360 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined. 35361Usually this means the macro was only invoked conditionally." "$LINENO" 5 35362fi 35363if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then 35364 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined. 35365Usually this means the macro was only invoked conditionally." "$LINENO" 5 35366fi 35367if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then 35368 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined. 35369Usually this means the macro was only invoked conditionally." "$LINENO" 5 35370fi 35371if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then 35372 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined. 35373Usually this means the macro was only invoked conditionally." "$LINENO" 5 35374fi 35375if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then 35376 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined. 35377Usually this means the macro was only invoked conditionally." "$LINENO" 5 35378fi 35379if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then 35380 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined. 35381Usually this means the macro was only invoked conditionally." "$LINENO" 5 35382fi 35383if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then 35384 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined. 35385Usually this means the macro was only invoked conditionally." "$LINENO" 5 35386fi 35387if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then 35388 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined. 35389Usually this means the macro was only invoked conditionally." "$LINENO" 5 35390fi 35391if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then 35392 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined. 35393Usually this means the macro was only invoked conditionally." "$LINENO" 5 35394fi 35395if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then 35396 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined. 35397Usually this means the macro was only invoked conditionally." "$LINENO" 5 35398fi 35399if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then 35400 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined. 35401Usually this means the macro was only invoked conditionally." "$LINENO" 5 35402fi 35403if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then 35404 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined. 35405Usually this means the macro was only invoked conditionally." "$LINENO" 5 35406fi 35407if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then 35408 as_fn_error $? "conditional \"WITH_PERL\" was never defined. 35409Usually this means the macro was only invoked conditionally." "$LINENO" 5 35410fi 35411if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then 35412 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined. 35413Usually this means the macro was only invoked conditionally." "$LINENO" 5 35414fi 35415if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then 35416 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined. 35417Usually this means the macro was only invoked conditionally." "$LINENO" 5 35418fi 35419 35420: "${CONFIG_STATUS=./config.status}" 35421ac_write_fail=0 35422ac_clean_files_save=$ac_clean_files 35423ac_clean_files="$ac_clean_files $CONFIG_STATUS" 35424{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 35425$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 35426as_write_fail=0 35427cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 35428#! $SHELL 35429# Generated by $as_me. 35430# Run this file to recreate the current configuration. 35431# Compiler output produced by configure, useful for debugging 35432# configure, is in config.log if it exists. 35433 35434debug=false 35435ac_cs_recheck=false 35436ac_cs_silent=false 35437 35438SHELL=\${CONFIG_SHELL-$SHELL} 35439export SHELL 35440_ASEOF 35441cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 35442## -------------------- ## 35443## M4sh Initialization. ## 35444## -------------------- ## 35445 35446# Be more Bourne compatible 35447DUALCASE=1; export DUALCASE # for MKS sh 35448if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 35449 emulate sh 35450 NULLCMD=: 35451 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 35452 # is contrary to our usage. Disable this feature. 35453 alias -g '${1+"$@"}'='"$@"' 35454 setopt NO_GLOB_SUBST 35455else 35456 case `(set -o) 2>/dev/null` in #( 35457 *posix*) : 35458 set -o posix ;; #( 35459 *) : 35460 ;; 35461esac 35462fi 35463 35464 35465as_nl=' 35466' 35467export as_nl 35468# Printing a long string crashes Solaris 7 /usr/bin/printf. 35469as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 35470as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 35471as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 35472# Prefer a ksh shell builtin over an external printf program on Solaris, 35473# but without wasting forks for bash or zsh. 35474if test -z "$BASH_VERSION$ZSH_VERSION" \ 35475 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 35476 as_echo='print -r --' 35477 as_echo_n='print -rn --' 35478elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 35479 as_echo='printf %s\n' 35480 as_echo_n='printf %s' 35481else 35482 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 35483 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 35484 as_echo_n='/usr/ucb/echo -n' 35485 else 35486 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 35487 as_echo_n_body='eval 35488 arg=$1; 35489 case $arg in #( 35490 *"$as_nl"*) 35491 expr "X$arg" : "X\\(.*\\)$as_nl"; 35492 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 35493 esac; 35494 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 35495 ' 35496 export as_echo_n_body 35497 as_echo_n='sh -c $as_echo_n_body as_echo' 35498 fi 35499 export as_echo_body 35500 as_echo='sh -c $as_echo_body as_echo' 35501fi 35502 35503# The user is always right. 35504if test "${PATH_SEPARATOR+set}" != set; then 35505 PATH_SEPARATOR=: 35506 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 35507 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 35508 PATH_SEPARATOR=';' 35509 } 35510fi 35511 35512 35513# IFS 35514# We need space, tab and new line, in precisely that order. Quoting is 35515# there to prevent editors from complaining about space-tab. 35516# (If _AS_PATH_WALK were called with IFS unset, it would disable word 35517# splitting by setting IFS to empty value.) 35518IFS=" "" $as_nl" 35519 35520# Find who we are. Look in the path if we contain no directory separator. 35521as_myself= 35522case $0 in #(( 35523 *[\\/]* ) as_myself=$0 ;; 35524 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35525for as_dir in $PATH 35526do 35527 IFS=$as_save_IFS 35528 test -z "$as_dir" && as_dir=. 35529 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 35530 done 35531IFS=$as_save_IFS 35532 35533 ;; 35534esac 35535# We did not find ourselves, most probably we were run as `sh COMMAND' 35536# in which case we are not to be found in the path. 35537if test "x$as_myself" = x; then 35538 as_myself=$0 35539fi 35540if test ! -f "$as_myself"; then 35541 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 35542 exit 1 35543fi 35544 35545# Unset variables that we do not need and which cause bugs (e.g. in 35546# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 35547# suppresses any "Segmentation fault" message there. '((' could 35548# trigger a bug in pdksh 5.2.14. 35549for as_var in BASH_ENV ENV MAIL MAILPATH 35550do eval test x\${$as_var+set} = xset \ 35551 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 35552done 35553PS1='$ ' 35554PS2='> ' 35555PS4='+ ' 35556 35557# NLS nuisances. 35558LC_ALL=C 35559export LC_ALL 35560LANGUAGE=C 35561export LANGUAGE 35562 35563# CDPATH. 35564(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 35565 35566 35567# as_fn_error STATUS ERROR [LINENO LOG_FD] 35568# ---------------------------------------- 35569# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 35570# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 35571# script with STATUS, using 1 if that was 0. 35572as_fn_error () 35573{ 35574 as_status=$1; test $as_status -eq 0 && as_status=1 35575 if test "$4"; then 35576 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 35577 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 35578 fi 35579 $as_echo "$as_me: error: $2" >&2 35580 as_fn_exit $as_status 35581} # as_fn_error 35582 35583 35584# as_fn_set_status STATUS 35585# ----------------------- 35586# Set $? to STATUS, without forking. 35587as_fn_set_status () 35588{ 35589 return $1 35590} # as_fn_set_status 35591 35592# as_fn_exit STATUS 35593# ----------------- 35594# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 35595as_fn_exit () 35596{ 35597 set +e 35598 as_fn_set_status $1 35599 exit $1 35600} # as_fn_exit 35601 35602# as_fn_unset VAR 35603# --------------- 35604# Portably unset VAR. 35605as_fn_unset () 35606{ 35607 { eval $1=; unset $1;} 35608} 35609as_unset=as_fn_unset 35610# as_fn_append VAR VALUE 35611# ---------------------- 35612# Append the text in VALUE to the end of the definition contained in VAR. Take 35613# advantage of any shell optimizations that allow amortized linear growth over 35614# repeated appends, instead of the typical quadratic growth present in naive 35615# implementations. 35616if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 35617 eval 'as_fn_append () 35618 { 35619 eval $1+=\$2 35620 }' 35621else 35622 as_fn_append () 35623 { 35624 eval $1=\$$1\$2 35625 } 35626fi # as_fn_append 35627 35628# as_fn_arith ARG... 35629# ------------------ 35630# Perform arithmetic evaluation on the ARGs, and store the result in the 35631# global $as_val. Take advantage of shells that can avoid forks. The arguments 35632# must be portable across $(()) and expr. 35633if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 35634 eval 'as_fn_arith () 35635 { 35636 as_val=$(( $* )) 35637 }' 35638else 35639 as_fn_arith () 35640 { 35641 as_val=`expr "$@" || test $? -eq 1` 35642 } 35643fi # as_fn_arith 35644 35645 35646if expr a : '\(a\)' >/dev/null 2>&1 && 35647 test "X`expr 00001 : '.*\(...\)'`" = X001; then 35648 as_expr=expr 35649else 35650 as_expr=false 35651fi 35652 35653if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 35654 as_basename=basename 35655else 35656 as_basename=false 35657fi 35658 35659if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 35660 as_dirname=dirname 35661else 35662 as_dirname=false 35663fi 35664 35665as_me=`$as_basename -- "$0" || 35666$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 35667 X"$0" : 'X\(//\)$' \| \ 35668 X"$0" : 'X\(/\)' \| . 2>/dev/null || 35669$as_echo X/"$0" | 35670 sed '/^.*\/\([^/][^/]*\)\/*$/{ 35671 s//\1/ 35672 q 35673 } 35674 /^X\/\(\/\/\)$/{ 35675 s//\1/ 35676 q 35677 } 35678 /^X\/\(\/\).*/{ 35679 s//\1/ 35680 q 35681 } 35682 s/.*/./; q'` 35683 35684# Avoid depending upon Character Ranges. 35685as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35686as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 35687as_cr_Letters=$as_cr_letters$as_cr_LETTERS 35688as_cr_digits='0123456789' 35689as_cr_alnum=$as_cr_Letters$as_cr_digits 35690 35691ECHO_C= ECHO_N= ECHO_T= 35692case `echo -n x` in #((((( 35693-n*) 35694 case `echo 'xy\c'` in 35695 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 35696 xy) ECHO_C='\c';; 35697 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 35698 ECHO_T=' ';; 35699 esac;; 35700*) 35701 ECHO_N='-n';; 35702esac 35703 35704rm -f conf$$ conf$$.exe conf$$.file 35705if test -d conf$$.dir; then 35706 rm -f conf$$.dir/conf$$.file 35707else 35708 rm -f conf$$.dir 35709 mkdir conf$$.dir 2>/dev/null 35710fi 35711if (echo >conf$$.file) 2>/dev/null; then 35712 if ln -s conf$$.file conf$$ 2>/dev/null; then 35713 as_ln_s='ln -s' 35714 # ... but there are two gotchas: 35715 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 35716 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 35717 # In both cases, we have to default to `cp -pR'. 35718 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 35719 as_ln_s='cp -pR' 35720 elif ln conf$$.file conf$$ 2>/dev/null; then 35721 as_ln_s=ln 35722 else 35723 as_ln_s='cp -pR' 35724 fi 35725else 35726 as_ln_s='cp -pR' 35727fi 35728rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 35729rmdir conf$$.dir 2>/dev/null 35730 35731 35732# as_fn_mkdir_p 35733# ------------- 35734# Create "$as_dir" as a directory, including parents if necessary. 35735as_fn_mkdir_p () 35736{ 35737 35738 case $as_dir in #( 35739 -*) as_dir=./$as_dir;; 35740 esac 35741 test -d "$as_dir" || eval $as_mkdir_p || { 35742 as_dirs= 35743 while :; do 35744 case $as_dir in #( 35745 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 35746 *) as_qdir=$as_dir;; 35747 esac 35748 as_dirs="'$as_qdir' $as_dirs" 35749 as_dir=`$as_dirname -- "$as_dir" || 35750$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35751 X"$as_dir" : 'X\(//\)[^/]' \| \ 35752 X"$as_dir" : 'X\(//\)$' \| \ 35753 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 35754$as_echo X"$as_dir" | 35755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35756 s//\1/ 35757 q 35758 } 35759 /^X\(\/\/\)[^/].*/{ 35760 s//\1/ 35761 q 35762 } 35763 /^X\(\/\/\)$/{ 35764 s//\1/ 35765 q 35766 } 35767 /^X\(\/\).*/{ 35768 s//\1/ 35769 q 35770 } 35771 s/.*/./; q'` 35772 test -d "$as_dir" && break 35773 done 35774 test -z "$as_dirs" || eval "mkdir $as_dirs" 35775 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 35776 35777 35778} # as_fn_mkdir_p 35779if mkdir -p . 2>/dev/null; then 35780 as_mkdir_p='mkdir -p "$as_dir"' 35781else 35782 test -d ./-p && rmdir ./-p 35783 as_mkdir_p=false 35784fi 35785 35786 35787# as_fn_executable_p FILE 35788# ----------------------- 35789# Test if FILE is an executable regular file. 35790as_fn_executable_p () 35791{ 35792 test -f "$1" && test -x "$1" 35793} # as_fn_executable_p 35794as_test_x='test -x' 35795as_executable_p=as_fn_executable_p 35796 35797# Sed expression to map a string onto a valid CPP name. 35798as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 35799 35800# Sed expression to map a string onto a valid variable name. 35801as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 35802 35803 35804exec 6>&1 35805## ----------------------------------- ## 35806## Main body of $CONFIG_STATUS script. ## 35807## ----------------------------------- ## 35808_ASEOF 35809test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 35810 35811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35812# Save the log message, to keep $0 and so on meaningful, and to 35813# report actual input values of CONFIG_FILES etc. instead of their 35814# values after options handling. 35815ac_log=" 35816This file was extended by ImageMagick $as_me 7.0.0-0, which was 35817generated by GNU Autoconf 2.69. Invocation command line was 35818 35819 CONFIG_FILES = $CONFIG_FILES 35820 CONFIG_HEADERS = $CONFIG_HEADERS 35821 CONFIG_LINKS = $CONFIG_LINKS 35822 CONFIG_COMMANDS = $CONFIG_COMMANDS 35823 $ $0 $@ 35824 35825on `(hostname || uname -n) 2>/dev/null | sed 1q` 35826" 35827 35828_ACEOF 35829 35830case $ac_config_files in *" 35831"*) set x $ac_config_files; shift; ac_config_files=$*;; 35832esac 35833 35834case $ac_config_headers in *" 35835"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 35836esac 35837 35838 35839cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35840# Files that config.status was made for. 35841config_files="$ac_config_files" 35842config_headers="$ac_config_headers" 35843config_commands="$ac_config_commands" 35844 35845_ACEOF 35846 35847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35848ac_cs_usage="\ 35849\`$as_me' instantiates files and other configuration actions 35850from templates according to the current configuration. Unless the files 35851and actions are specified as TAGs, all are instantiated by default. 35852 35853Usage: $0 [OPTION]... [TAG]... 35854 35855 -h, --help print this help, then exit 35856 -V, --version print version number and configuration settings, then exit 35857 --config print configuration, then exit 35858 -q, --quiet, --silent 35859 do not print progress messages 35860 -d, --debug don't remove temporary files 35861 --recheck update $as_me by reconfiguring in the same conditions 35862 --file=FILE[:TEMPLATE] 35863 instantiate the configuration file FILE 35864 --header=FILE[:TEMPLATE] 35865 instantiate the configuration header FILE 35866 35867Configuration files: 35868$config_files 35869 35870Configuration headers: 35871$config_headers 35872 35873Configuration commands: 35874$config_commands 35875 35876Report bugs to <http://www.imagemagick.org>." 35877 35878_ACEOF 35879cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35880ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 35881ac_cs_version="\\ 35882ImageMagick config.status 7.0.0-0 35883configured by $0, generated by GNU Autoconf 2.69, 35884 with options \\"\$ac_cs_config\\" 35885 35886Copyright (C) 2012 Free Software Foundation, Inc. 35887This config.status script is free software; the Free Software Foundation 35888gives unlimited permission to copy, distribute and modify it." 35889 35890ac_pwd='$ac_pwd' 35891srcdir='$srcdir' 35892INSTALL='$INSTALL' 35893MKDIR_P='$MKDIR_P' 35894AWK='$AWK' 35895test -n "\$AWK" || AWK=awk 35896_ACEOF 35897 35898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35899# The default lists apply if the user does not specify any file. 35900ac_need_defaults=: 35901while test $# != 0 35902do 35903 case $1 in 35904 --*=?*) 35905 ac_option=`expr "X$1" : 'X\([^=]*\)='` 35906 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 35907 ac_shift=: 35908 ;; 35909 --*=) 35910 ac_option=`expr "X$1" : 'X\([^=]*\)='` 35911 ac_optarg= 35912 ac_shift=: 35913 ;; 35914 *) 35915 ac_option=$1 35916 ac_optarg=$2 35917 ac_shift=shift 35918 ;; 35919 esac 35920 35921 case $ac_option in 35922 # Handling of the options. 35923 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 35924 ac_cs_recheck=: ;; 35925 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 35926 $as_echo "$ac_cs_version"; exit ;; 35927 --config | --confi | --conf | --con | --co | --c ) 35928 $as_echo "$ac_cs_config"; exit ;; 35929 --debug | --debu | --deb | --de | --d | -d ) 35930 debug=: ;; 35931 --file | --fil | --fi | --f ) 35932 $ac_shift 35933 case $ac_optarg in 35934 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 35935 '') as_fn_error $? "missing file argument" ;; 35936 esac 35937 as_fn_append CONFIG_FILES " '$ac_optarg'" 35938 ac_need_defaults=false;; 35939 --header | --heade | --head | --hea ) 35940 $ac_shift 35941 case $ac_optarg in 35942 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 35943 esac 35944 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 35945 ac_need_defaults=false;; 35946 --he | --h) 35947 # Conflict between --help and --header 35948 as_fn_error $? "ambiguous option: \`$1' 35949Try \`$0 --help' for more information.";; 35950 --help | --hel | -h ) 35951 $as_echo "$ac_cs_usage"; exit ;; 35952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 35953 | -silent | --silent | --silen | --sile | --sil | --si | --s) 35954 ac_cs_silent=: ;; 35955 35956 # This is an error. 35957 -*) as_fn_error $? "unrecognized option: \`$1' 35958Try \`$0 --help' for more information." ;; 35959 35960 *) as_fn_append ac_config_targets " $1" 35961 ac_need_defaults=false ;; 35962 35963 esac 35964 shift 35965done 35966 35967ac_configure_extra_args= 35968 35969if $ac_cs_silent; then 35970 exec 6>/dev/null 35971 ac_configure_extra_args="$ac_configure_extra_args --silent" 35972fi 35973 35974_ACEOF 35975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35976if \$ac_cs_recheck; then 35977 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 35978 shift 35979 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 35980 CONFIG_SHELL='$SHELL' 35981 export CONFIG_SHELL 35982 exec "\$@" 35983fi 35984 35985_ACEOF 35986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35987exec 5>>config.log 35988{ 35989 echo 35990 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 35991## Running $as_me. ## 35992_ASBOX 35993 $as_echo "$ac_log" 35994} >&5 35995 35996_ACEOF 35997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35998# 35999# INIT-COMMANDS 36000# 36001PACKAGE="$PACKAGE" 36002AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 36003 36004 36005# The HP-UX ksh and POSIX shell print the target directory to stdout 36006# if CDPATH is set. 36007(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 36008 36009sed_quote_subst='$sed_quote_subst' 36010double_quote_subst='$double_quote_subst' 36011delay_variable_subst='$delay_variable_subst' 36012SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 36013Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 36014GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 36015EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 36016FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 36017SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 36018ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 36019LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 36020macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 36021macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 36022AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 36023DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 36024OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 36025enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 36026enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 36027pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 36028enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 36029PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 36030host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 36031host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 36032host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 36033build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 36034build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 36035build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 36036NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 36037LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 36038max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 36039ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 36040exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 36041lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 36042lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 36043lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 36044lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 36045lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 36046reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 36047reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 36048deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 36049file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 36050file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 36051want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 36052sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 36053AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 36054AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 36055archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 36056STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 36057RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 36058old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 36059old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 36060old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 36061lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 36062CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 36063CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 36064compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 36065GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 36066lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 36067lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 36068lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 36069lt_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"`' 36070nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 36071lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 36072objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 36073MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 36074lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 36075lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 36076lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 36077lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 36078lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 36079need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 36080MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 36081DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 36082NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 36083LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 36084OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 36085OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 36086libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 36087shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 36088extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 36089archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 36090enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 36091export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 36092whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 36093compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 36094old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 36095old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 36096archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 36097archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 36098module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 36099module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 36100with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 36101allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 36102no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 36103hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 36104hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 36105hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 36106hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 36107hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 36108hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 36109hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 36110inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 36111link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 36112always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 36113export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 36114exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 36115include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 36116prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 36117postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 36118file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 36119variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 36120need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 36121need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 36122version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 36123runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 36124shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 36125shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 36126libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 36127library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 36128soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 36129install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 36130postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 36131postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 36132finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 36133finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 36134hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 36135sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 36136sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 36137hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 36138enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 36139enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 36140enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 36141old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 36142striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 36143compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 36144predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 36145postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 36146predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 36147postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 36148compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 36149LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 36150reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 36151reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 36152old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 36153compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 36154GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 36155lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 36156lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 36157lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 36158lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 36159lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 36160archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 36161enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 36162export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 36163whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 36164compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 36165old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 36166old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 36167archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 36168archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 36169module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 36170module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 36171with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 36172allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 36173no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 36174hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 36175hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 36176hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 36177hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 36178hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 36179hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 36180hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 36181inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 36182link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 36183always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 36184export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 36185exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 36186include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 36187prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 36188postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 36189file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 36190hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 36191compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 36192predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 36193postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 36194predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 36195postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 36196compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 36197 36198LTCC='$LTCC' 36199LTCFLAGS='$LTCFLAGS' 36200compiler='$compiler_DEFAULT' 36201 36202# A function that is used when there is no print builtin or printf. 36203func_fallback_echo () 36204{ 36205 eval 'cat <<_LTECHO_EOF 36206\$1 36207_LTECHO_EOF' 36208} 36209 36210# Quote evaled strings. 36211for var in SED \ 36212GREP \ 36213EGREP \ 36214FGREP \ 36215SHELL \ 36216ECHO \ 36217LD \ 36218AS \ 36219DLLTOOL \ 36220OBJDUMP \ 36221PATH_SEPARATOR \ 36222NM \ 36223LN_S \ 36224lt_SP2NL \ 36225lt_NL2SP \ 36226reload_flag \ 36227deplibs_check_method \ 36228file_magic_cmd \ 36229file_magic_glob \ 36230want_nocaseglob \ 36231sharedlib_from_linklib_cmd \ 36232AR \ 36233AR_FLAGS \ 36234archiver_list_spec \ 36235STRIP \ 36236RANLIB \ 36237CC \ 36238CFLAGS \ 36239compiler \ 36240lt_cv_sys_global_symbol_pipe \ 36241lt_cv_sys_global_symbol_to_cdecl \ 36242lt_cv_sys_global_symbol_to_c_name_address \ 36243lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 36244nm_file_list_spec \ 36245lt_prog_compiler_no_builtin_flag \ 36246lt_prog_compiler_pic \ 36247lt_prog_compiler_wl \ 36248lt_prog_compiler_static \ 36249lt_cv_prog_compiler_c_o \ 36250need_locks \ 36251MANIFEST_TOOL \ 36252DSYMUTIL \ 36253NMEDIT \ 36254LIPO \ 36255OTOOL \ 36256OTOOL64 \ 36257shrext_cmds \ 36258export_dynamic_flag_spec \ 36259whole_archive_flag_spec \ 36260compiler_needs_object \ 36261with_gnu_ld \ 36262allow_undefined_flag \ 36263no_undefined_flag \ 36264hardcode_libdir_flag_spec \ 36265hardcode_libdir_separator \ 36266exclude_expsyms \ 36267include_expsyms \ 36268file_list_spec \ 36269variables_saved_for_relink \ 36270libname_spec \ 36271library_names_spec \ 36272soname_spec \ 36273install_override_mode \ 36274finish_eval \ 36275old_striplib \ 36276striplib \ 36277compiler_lib_search_dirs \ 36278predep_objects \ 36279postdep_objects \ 36280predeps \ 36281postdeps \ 36282compiler_lib_search_path \ 36283LD_CXX \ 36284reload_flag_CXX \ 36285compiler_CXX \ 36286lt_prog_compiler_no_builtin_flag_CXX \ 36287lt_prog_compiler_pic_CXX \ 36288lt_prog_compiler_wl_CXX \ 36289lt_prog_compiler_static_CXX \ 36290lt_cv_prog_compiler_c_o_CXX \ 36291export_dynamic_flag_spec_CXX \ 36292whole_archive_flag_spec_CXX \ 36293compiler_needs_object_CXX \ 36294with_gnu_ld_CXX \ 36295allow_undefined_flag_CXX \ 36296no_undefined_flag_CXX \ 36297hardcode_libdir_flag_spec_CXX \ 36298hardcode_libdir_separator_CXX \ 36299exclude_expsyms_CXX \ 36300include_expsyms_CXX \ 36301file_list_spec_CXX \ 36302compiler_lib_search_dirs_CXX \ 36303predep_objects_CXX \ 36304postdep_objects_CXX \ 36305predeps_CXX \ 36306postdeps_CXX \ 36307compiler_lib_search_path_CXX; do 36308 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 36309 *[\\\\\\\`\\"\\\$]*) 36310 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 36311 ;; 36312 *) 36313 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 36314 ;; 36315 esac 36316done 36317 36318# Double-quote double-evaled strings. 36319for var in reload_cmds \ 36320old_postinstall_cmds \ 36321old_postuninstall_cmds \ 36322old_archive_cmds \ 36323extract_expsyms_cmds \ 36324old_archive_from_new_cmds \ 36325old_archive_from_expsyms_cmds \ 36326archive_cmds \ 36327archive_expsym_cmds \ 36328module_cmds \ 36329module_expsym_cmds \ 36330export_symbols_cmds \ 36331prelink_cmds \ 36332postlink_cmds \ 36333postinstall_cmds \ 36334postuninstall_cmds \ 36335finish_cmds \ 36336sys_lib_search_path_spec \ 36337sys_lib_dlsearch_path_spec \ 36338reload_cmds_CXX \ 36339old_archive_cmds_CXX \ 36340old_archive_from_new_cmds_CXX \ 36341old_archive_from_expsyms_cmds_CXX \ 36342archive_cmds_CXX \ 36343archive_expsym_cmds_CXX \ 36344module_cmds_CXX \ 36345module_expsym_cmds_CXX \ 36346export_symbols_cmds_CXX \ 36347prelink_cmds_CXX \ 36348postlink_cmds_CXX; do 36349 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 36350 *[\\\\\\\`\\"\\\$]*) 36351 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 36352 ;; 36353 *) 36354 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 36355 ;; 36356 esac 36357done 36358 36359ac_aux_dir='$ac_aux_dir' 36360xsi_shell='$xsi_shell' 36361lt_shell_append='$lt_shell_append' 36362 36363# See if we are running on zsh, and set the options which allow our 36364# commands through without removal of \ escapes INIT. 36365if test -n "\${ZSH_VERSION+set}" ; then 36366 setopt NO_GLOB_SUBST 36367fi 36368 36369 36370 PACKAGE='$PACKAGE' 36371 VERSION='$VERSION' 36372 TIMESTAMP='$TIMESTAMP' 36373 RM='$RM' 36374 ofile='$ofile' 36375 36376 36377 36378 36379 36380 36381_ACEOF 36382 36383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36384 36385# Handling of arguments. 36386for ac_config_target in $ac_config_targets 36387do 36388 case $ac_config_target in 36389 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;; 36390 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;; 36391 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;; 36392 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;; 36393 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;; 36394 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;; 36395 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;; 36396 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;; 36397 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;; 36398 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;; 36399 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;; 36400 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;; 36401 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;; 36402 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;; 36403 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;; 36404 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;; 36405 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;; 36406 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;; 36407 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;; 36408 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;; 36409 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;; 36410 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 36411 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;; 36412 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;; 36413 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;; 36414 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;; 36415 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;; 36416 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;; 36417 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;; 36418 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;; 36419 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;; 36420 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;; 36421 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;; 36422 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;; 36423 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;; 36424 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;; 36425 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;; 36426 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;; 36427 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;; 36428 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;; 36429 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 36430 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 36431 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 36432 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;; 36433 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;; 36434 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;; 36435 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;; 36436 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;; 36437 36438 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 36439 esac 36440done 36441 36442 36443# If the user did not use the arguments to specify the items to instantiate, 36444# then the envvar interface is used. Set only those that are not. 36445# We use the long form for the default assignment because of an extremely 36446# bizarre bug on SunOS 4.1.3. 36447if $ac_need_defaults; then 36448 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 36449 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 36450 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 36451fi 36452 36453# Have a temporary directory for convenience. Make it in the build tree 36454# simply because there is no reason against having it here, and in addition, 36455# creating and moving files from /tmp can sometimes cause problems. 36456# Hook for its removal unless debugging. 36457# Note that there is a small window in which the directory will not be cleaned: 36458# after its creation but before its name has been assigned to `$tmp'. 36459$debug || 36460{ 36461 tmp= ac_tmp= 36462 trap 'exit_status=$? 36463 : "${ac_tmp:=$tmp}" 36464 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 36465' 0 36466 trap 'as_fn_exit 1' 1 2 13 15 36467} 36468# Create a (secure) tmp directory for tmp files. 36469 36470{ 36471 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 36472 test -d "$tmp" 36473} || 36474{ 36475 tmp=./conf$$-$RANDOM 36476 (umask 077 && mkdir "$tmp") 36477} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 36478ac_tmp=$tmp 36479 36480# Set up the scripts for CONFIG_FILES section. 36481# No need to generate them if there are no CONFIG_FILES. 36482# This happens for instance with `./config.status config.h'. 36483if test -n "$CONFIG_FILES"; then 36484 36485 36486ac_cr=`echo X | tr X '\015'` 36487# On cygwin, bash can eat \r inside `` if the user requested igncr. 36488# But we know of no other shell where ac_cr would be empty at this 36489# point, so we can use a bashism as a fallback. 36490if test "x$ac_cr" = x; then 36491 eval ac_cr=\$\'\\r\' 36492fi 36493ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 36494if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 36495 ac_cs_awk_cr='\\r' 36496else 36497 ac_cs_awk_cr=$ac_cr 36498fi 36499 36500echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 36501_ACEOF 36502 36503 36504{ 36505 echo "cat >conf$$subs.awk <<_ACEOF" && 36506 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 36507 echo "_ACEOF" 36508} >conf$$subs.sh || 36509 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 36510ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 36511ac_delim='%!_!# ' 36512for ac_last_try in false false false false false :; do 36513 . ./conf$$subs.sh || 36514 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 36515 36516 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 36517 if test $ac_delim_n = $ac_delim_num; then 36518 break 36519 elif $ac_last_try; then 36520 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 36521 else 36522 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 36523 fi 36524done 36525rm -f conf$$subs.sh 36526 36527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 36528cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 36529_ACEOF 36530sed -n ' 36531h 36532s/^/S["/; s/!.*/"]=/ 36533p 36534g 36535s/^[^!]*!// 36536:repl 36537t repl 36538s/'"$ac_delim"'$// 36539t delim 36540:nl 36541h 36542s/\(.\{148\}\)..*/\1/ 36543t more1 36544s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 36545p 36546n 36547b repl 36548:more1 36549s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 36550p 36551g 36552s/.\{148\}// 36553t nl 36554:delim 36555h 36556s/\(.\{148\}\)..*/\1/ 36557t more2 36558s/["\\]/\\&/g; s/^/"/; s/$/"/ 36559p 36560b 36561:more2 36562s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 36563p 36564g 36565s/.\{148\}// 36566t delim 36567' <conf$$subs.awk | sed ' 36568/^[^""]/{ 36569 N 36570 s/\n// 36571} 36572' >>$CONFIG_STATUS || ac_write_fail=1 36573rm -f conf$$subs.awk 36574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 36575_ACAWK 36576cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 36577 for (key in S) S_is_set[key] = 1 36578 FS = "" 36579 36580} 36581{ 36582 line = $ 0 36583 nfields = split(line, field, "@") 36584 substed = 0 36585 len = length(field[1]) 36586 for (i = 2; i < nfields; i++) { 36587 key = field[i] 36588 keylen = length(key) 36589 if (S_is_set[key]) { 36590 value = S[key] 36591 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 36592 len += length(value) + length(field[++i]) 36593 substed = 1 36594 } else 36595 len += 1 + keylen 36596 } 36597 36598 print line 36599} 36600 36601_ACAWK 36602_ACEOF 36603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36604if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 36605 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 36606else 36607 cat 36608fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 36609 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 36610_ACEOF 36611 36612# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 36613# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 36614# trailing colons and then remove the whole line if VPATH becomes empty 36615# (actually we leave an empty line to preserve line numbers). 36616if test "x$srcdir" = x.; then 36617 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 36618h 36619s/// 36620s/^/:/ 36621s/[ ]*$/:/ 36622s/:\$(srcdir):/:/g 36623s/:\${srcdir}:/:/g 36624s/:@srcdir@:/:/g 36625s/^:*// 36626s/:*$// 36627x 36628s/\(=[ ]*\).*/\1/ 36629G 36630s/\n// 36631s/^[^=]*=[ ]*$// 36632}' 36633fi 36634 36635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36636fi # test -n "$CONFIG_FILES" 36637 36638# Set up the scripts for CONFIG_HEADERS section. 36639# No need to generate them if there are no CONFIG_HEADERS. 36640# This happens for instance with `./config.status Makefile'. 36641if test -n "$CONFIG_HEADERS"; then 36642cat >"$ac_tmp/defines.awk" <<\_ACAWK || 36643BEGIN { 36644_ACEOF 36645 36646# Transform confdefs.h into an awk script `defines.awk', embedded as 36647# here-document in config.status, that substitutes the proper values into 36648# config.h.in to produce config.h. 36649 36650# Create a delimiter string that does not exist in confdefs.h, to ease 36651# handling of long lines. 36652ac_delim='%!_!# ' 36653for ac_last_try in false false :; do 36654 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 36655 if test -z "$ac_tt"; then 36656 break 36657 elif $ac_last_try; then 36658 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 36659 else 36660 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 36661 fi 36662done 36663 36664# For the awk script, D is an array of macro values keyed by name, 36665# likewise P contains macro parameters if any. Preserve backslash 36666# newline sequences. 36667 36668ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 36669sed -n ' 36670s/.\{148\}/&'"$ac_delim"'/g 36671t rset 36672:rset 36673s/^[ ]*#[ ]*define[ ][ ]*/ / 36674t def 36675d 36676:def 36677s/\\$// 36678t bsnl 36679s/["\\]/\\&/g 36680s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 36681D["\1"]=" \3"/p 36682s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 36683d 36684:bsnl 36685s/["\\]/\\&/g 36686s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 36687D["\1"]=" \3\\\\\\n"\\/p 36688t cont 36689s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 36690t cont 36691d 36692:cont 36693n 36694s/.\{148\}/&'"$ac_delim"'/g 36695t clear 36696:clear 36697s/\\$// 36698t bsnlc 36699s/["\\]/\\&/g; s/^/"/; s/$/"/p 36700d 36701:bsnlc 36702s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 36703b cont 36704' <confdefs.h | sed ' 36705s/'"$ac_delim"'/"\\\ 36706"/g' >>$CONFIG_STATUS || ac_write_fail=1 36707 36708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 36709 for (key in D) D_is_set[key] = 1 36710 FS = "" 36711} 36712/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 36713 line = \$ 0 36714 split(line, arg, " ") 36715 if (arg[1] == "#") { 36716 defundef = arg[2] 36717 mac1 = arg[3] 36718 } else { 36719 defundef = substr(arg[1], 2) 36720 mac1 = arg[2] 36721 } 36722 split(mac1, mac2, "(") #) 36723 macro = mac2[1] 36724 prefix = substr(line, 1, index(line, defundef) - 1) 36725 if (D_is_set[macro]) { 36726 # Preserve the white space surrounding the "#". 36727 print prefix "define", macro P[macro] D[macro] 36728 next 36729 } else { 36730 # Replace #undef with comments. This is necessary, for example, 36731 # in the case of _POSIX_SOURCE, which is predefined and required 36732 # on some systems where configure will not decide to define it. 36733 if (defundef == "undef") { 36734 print "/*", prefix defundef, macro, "*/" 36735 next 36736 } 36737 } 36738} 36739{ print } 36740_ACAWK 36741_ACEOF 36742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36743 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 36744fi # test -n "$CONFIG_HEADERS" 36745 36746 36747eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 36748shift 36749for ac_tag 36750do 36751 case $ac_tag in 36752 :[FHLC]) ac_mode=$ac_tag; continue;; 36753 esac 36754 case $ac_mode$ac_tag in 36755 :[FHL]*:*);; 36756 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 36757 :[FH]-) ac_tag=-:-;; 36758 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 36759 esac 36760 ac_save_IFS=$IFS 36761 IFS=: 36762 set x $ac_tag 36763 IFS=$ac_save_IFS 36764 shift 36765 ac_file=$1 36766 shift 36767 36768 case $ac_mode in 36769 :L) ac_source=$1;; 36770 :[FH]) 36771 ac_file_inputs= 36772 for ac_f 36773 do 36774 case $ac_f in 36775 -) ac_f="$ac_tmp/stdin";; 36776 *) # Look for the file first in the build tree, then in the source tree 36777 # (if the path is not absolute). The absolute path cannot be DOS-style, 36778 # because $ac_f cannot contain `:'. 36779 test -f "$ac_f" || 36780 case $ac_f in 36781 [\\/$]*) false;; 36782 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 36783 esac || 36784 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 36785 esac 36786 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 36787 as_fn_append ac_file_inputs " '$ac_f'" 36788 done 36789 36790 # Let's still pretend it is `configure' which instantiates (i.e., don't 36791 # use $as_me), people would be surprised to read: 36792 # /* config.h. Generated by config.status. */ 36793 configure_input='Generated from '` 36794 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 36795 `' by configure.' 36796 if test x"$ac_file" != x-; then 36797 configure_input="$ac_file. $configure_input" 36798 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 36799$as_echo "$as_me: creating $ac_file" >&6;} 36800 fi 36801 # Neutralize special characters interpreted by sed in replacement strings. 36802 case $configure_input in #( 36803 *\&* | *\|* | *\\* ) 36804 ac_sed_conf_input=`$as_echo "$configure_input" | 36805 sed 's/[\\\\&|]/\\\\&/g'`;; #( 36806 *) ac_sed_conf_input=$configure_input;; 36807 esac 36808 36809 case $ac_tag in 36810 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 36811 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 36812 esac 36813 ;; 36814 esac 36815 36816 ac_dir=`$as_dirname -- "$ac_file" || 36817$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 36818 X"$ac_file" : 'X\(//\)[^/]' \| \ 36819 X"$ac_file" : 'X\(//\)$' \| \ 36820 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 36821$as_echo X"$ac_file" | 36822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 36823 s//\1/ 36824 q 36825 } 36826 /^X\(\/\/\)[^/].*/{ 36827 s//\1/ 36828 q 36829 } 36830 /^X\(\/\/\)$/{ 36831 s//\1/ 36832 q 36833 } 36834 /^X\(\/\).*/{ 36835 s//\1/ 36836 q 36837 } 36838 s/.*/./; q'` 36839 as_dir="$ac_dir"; as_fn_mkdir_p 36840 ac_builddir=. 36841 36842case "$ac_dir" in 36843.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 36844*) 36845 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 36846 # A ".." for each directory in $ac_dir_suffix. 36847 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 36848 case $ac_top_builddir_sub in 36849 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 36850 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 36851 esac ;; 36852esac 36853ac_abs_top_builddir=$ac_pwd 36854ac_abs_builddir=$ac_pwd$ac_dir_suffix 36855# for backward compatibility: 36856ac_top_builddir=$ac_top_build_prefix 36857 36858case $srcdir in 36859 .) # We are building in place. 36860 ac_srcdir=. 36861 ac_top_srcdir=$ac_top_builddir_sub 36862 ac_abs_top_srcdir=$ac_pwd ;; 36863 [\\/]* | ?:[\\/]* ) # Absolute name. 36864 ac_srcdir=$srcdir$ac_dir_suffix; 36865 ac_top_srcdir=$srcdir 36866 ac_abs_top_srcdir=$srcdir ;; 36867 *) # Relative name. 36868 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 36869 ac_top_srcdir=$ac_top_build_prefix$srcdir 36870 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 36871esac 36872ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 36873 36874 36875 case $ac_mode in 36876 :F) 36877 # 36878 # CONFIG_FILE 36879 # 36880 36881 case $INSTALL in 36882 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 36883 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 36884 esac 36885 ac_MKDIR_P=$MKDIR_P 36886 case $MKDIR_P in 36887 [\\/$]* | ?:[\\/]* ) ;; 36888 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 36889 esac 36890_ACEOF 36891 36892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36893# If the template does not know about datarootdir, expand it. 36894# FIXME: This hack should be removed a few years after 2.60. 36895ac_datarootdir_hack=; ac_datarootdir_seen= 36896ac_sed_dataroot=' 36897/datarootdir/ { 36898 p 36899 q 36900} 36901/@datadir@/p 36902/@docdir@/p 36903/@infodir@/p 36904/@localedir@/p 36905/@mandir@/p' 36906case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 36907*datarootdir*) ac_datarootdir_seen=yes;; 36908*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 36909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 36910$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 36911_ACEOF 36912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 36913 ac_datarootdir_hack=' 36914 s&@datadir@&$datadir&g 36915 s&@docdir@&$docdir&g 36916 s&@infodir@&$infodir&g 36917 s&@localedir@&$localedir&g 36918 s&@mandir@&$mandir&g 36919 s&\\\${datarootdir}&$datarootdir&g' ;; 36920esac 36921_ACEOF 36922 36923# Neutralize VPATH when `$srcdir' = `.'. 36924# Shell code in configure.ac might set extrasub. 36925# FIXME: do we really want to maintain this feature? 36926cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 36927ac_sed_extra="$ac_vpsub 36928$extrasub 36929_ACEOF 36930cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36931:t 36932/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 36933s|@configure_input@|$ac_sed_conf_input|;t t 36934s&@top_builddir@&$ac_top_builddir_sub&;t t 36935s&@top_build_prefix@&$ac_top_build_prefix&;t t 36936s&@srcdir@&$ac_srcdir&;t t 36937s&@abs_srcdir@&$ac_abs_srcdir&;t t 36938s&@top_srcdir@&$ac_top_srcdir&;t t 36939s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 36940s&@builddir@&$ac_builddir&;t t 36941s&@abs_builddir@&$ac_abs_builddir&;t t 36942s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 36943s&@INSTALL@&$ac_INSTALL&;t t 36944s&@MKDIR_P@&$ac_MKDIR_P&;t t 36945$ac_datarootdir_hack 36946" 36947eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 36948 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 36949 36950test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 36951 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 36952 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 36953 "$ac_tmp/out"`; test -z "$ac_out"; } && 36954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 36955which seems to be undefined. Please make sure it is defined" >&5 36956$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 36957which seems to be undefined. Please make sure it is defined" >&2;} 36958 36959 rm -f "$ac_tmp/stdin" 36960 case $ac_file in 36961 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 36962 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 36963 esac \ 36964 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 36965 ;; 36966 :H) 36967 # 36968 # CONFIG_HEADER 36969 # 36970 if test x"$ac_file" != x-; then 36971 { 36972 $as_echo "/* $configure_input */" \ 36973 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 36974 } >"$ac_tmp/config.h" \ 36975 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 36976 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 36977 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 36978$as_echo "$as_me: $ac_file is unchanged" >&6;} 36979 else 36980 rm -f "$ac_file" 36981 mv "$ac_tmp/config.h" "$ac_file" \ 36982 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 36983 fi 36984 else 36985 $as_echo "/* $configure_input */" \ 36986 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 36987 || as_fn_error $? "could not create -" "$LINENO" 5 36988 fi 36989# Compute "$ac_file"'s index in $config_headers. 36990_am_arg="$ac_file" 36991_am_stamp_count=1 36992for _am_header in $config_headers :; do 36993 case $_am_header in 36994 $_am_arg | $_am_arg:* ) 36995 break ;; 36996 * ) 36997 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 36998 esac 36999done 37000echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 37001$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 37002 X"$_am_arg" : 'X\(//\)[^/]' \| \ 37003 X"$_am_arg" : 'X\(//\)$' \| \ 37004 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 37005$as_echo X"$_am_arg" | 37006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 37007 s//\1/ 37008 q 37009 } 37010 /^X\(\/\/\)[^/].*/{ 37011 s//\1/ 37012 q 37013 } 37014 /^X\(\/\/\)$/{ 37015 s//\1/ 37016 q 37017 } 37018 /^X\(\/\).*/{ 37019 s//\1/ 37020 q 37021 } 37022 s/.*/./; q'`/stamp-h$_am_stamp_count 37023 ;; 37024 37025 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 37026$as_echo "$as_me: executing $ac_file commands" >&6;} 37027 ;; 37028 esac 37029 37030 37031 case $ac_file$ac_mode in 37032 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h` 37033ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` 37034ac_prefix_conf_PKG=`echo MagickCore` 37035ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` 37036ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` 37037ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` 37038if test ".$ac_prefix_conf_INP" = "."; then 37039 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue 37040 case "$ac_file" in 37041 *.h) ac_prefix_conf_INP=$ac_file ;; 37042 *) 37043 esac 37044 test ".$ac_prefix_conf_INP" != "." && break 37045 done 37046fi 37047if test ".$ac_prefix_conf_INP" = "."; then 37048 case "$ac_prefix_conf_OUT" in 37049 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` 37050 ;; 37051 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` 37052 ;; 37053 *) ac_prefix_conf_INP=config.h 37054 ;; 37055 esac 37056fi 37057if test -z "$ac_prefix_conf_PKG" ; then 37058 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 37059else 37060 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then 37061 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" 37062 fi fi 37063 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 37064$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} 37065 if test -f $ac_prefix_conf_INP ; then 37066 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix 37067 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix 37068 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix 37069 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix 37070 $as_echo "#endif/" >> conftest.prefix 37071 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix 37072 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix 37073 $as_echo "#endif/" >> conftest.prefix 37074 # now executing _script on _DEF input to create _OUT output file 37075 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h 37076 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h 37077 echo ' ' >>$tmp/pconfig.h 37078 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h 37079 37080 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h 37081 echo ' ' >>$tmp/pconfig.h 37082 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h 37083 echo "#endif" >>$tmp/pconfig.h 37084 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then 37085 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 37086$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} 37087 else 37088 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || 37089$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 37090 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ 37091 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ 37092 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || 37093$as_echo X"$ac_prefix_conf_OUT" | 37094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 37095 s//\1/ 37096 q 37097 } 37098 /^X\(\/\/\)[^/].*/{ 37099 s//\1/ 37100 q 37101 } 37102 /^X\(\/\/\)$/{ 37103 s//\1/ 37104 q 37105 } 37106 /^X\(\/\).*/{ 37107 s//\1/ 37108 q 37109 } 37110 s/.*/./; q'` 37111 as_dir="$ac_dir"; as_fn_mkdir_p 37112 rm -f "$ac_prefix_conf_OUT" 37113 mv $tmp/pconfig.h "$ac_prefix_conf_OUT" 37114 fi 37115 cp conftest.prefix _configs.sed 37116 else 37117 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 37118 fi 37119 rm -f conftest.* 37120fi 37121 ;; 37122 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 37123 # Autoconf 2.62 quotes --file arguments for eval, but not when files 37124 # are listed without --file. Let's play safe and only enable the eval 37125 # if we detect the quoting. 37126 case $CONFIG_FILES in 37127 *\'*) eval set x "$CONFIG_FILES" ;; 37128 *) set x $CONFIG_FILES ;; 37129 esac 37130 shift 37131 for mf 37132 do 37133 # Strip MF so we end up with the name of the file. 37134 mf=`echo "$mf" | sed -e 's/:.*$//'` 37135 # Check whether this is an Automake generated Makefile or not. 37136 # We used to match only the files named 'Makefile.in', but 37137 # some people rename them; so instead we look at the file content. 37138 # Grep'ing the first line is not enough: some people post-process 37139 # each Makefile.in and add a new line on top of each file to say so. 37140 # Grep'ing the whole file is not good either: AIX grep has a line 37141 # limit of 2048, but all sed's we know have understand at least 4000. 37142 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 37143 dirpart=`$as_dirname -- "$mf" || 37144$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 37145 X"$mf" : 'X\(//\)[^/]' \| \ 37146 X"$mf" : 'X\(//\)$' \| \ 37147 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 37148$as_echo X"$mf" | 37149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 37150 s//\1/ 37151 q 37152 } 37153 /^X\(\/\/\)[^/].*/{ 37154 s//\1/ 37155 q 37156 } 37157 /^X\(\/\/\)$/{ 37158 s//\1/ 37159 q 37160 } 37161 /^X\(\/\).*/{ 37162 s//\1/ 37163 q 37164 } 37165 s/.*/./; q'` 37166 else 37167 continue 37168 fi 37169 # Extract the definition of DEPDIR, am__include, and am__quote 37170 # from the Makefile without running 'make'. 37171 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 37172 test -z "$DEPDIR" && continue 37173 am__include=`sed -n 's/^am__include = //p' < "$mf"` 37174 test -z "am__include" && continue 37175 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 37176 # Find all dependency output files, they are included files with 37177 # $(DEPDIR) in their names. We invoke sed twice because it is the 37178 # simplest approach to changing $(DEPDIR) to its actual value in the 37179 # expansion. 37180 for file in `sed -n " 37181 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 37182 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 37183 # Make sure the directory exists. 37184 test -f "$dirpart/$file" && continue 37185 fdir=`$as_dirname -- "$file" || 37186$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 37187 X"$file" : 'X\(//\)[^/]' \| \ 37188 X"$file" : 'X\(//\)$' \| \ 37189 X"$file" : 'X\(/\)' \| . 2>/dev/null || 37190$as_echo X"$file" | 37191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 37192 s//\1/ 37193 q 37194 } 37195 /^X\(\/\/\)[^/].*/{ 37196 s//\1/ 37197 q 37198 } 37199 /^X\(\/\/\)$/{ 37200 s//\1/ 37201 q 37202 } 37203 /^X\(\/\).*/{ 37204 s//\1/ 37205 q 37206 } 37207 s/.*/./; q'` 37208 as_dir=$dirpart/$fdir; as_fn_mkdir_p 37209 # echo "creating $dirpart/$file" 37210 echo '# dummy' > "$dirpart/$file" 37211 done 37212 done 37213} 37214 ;; 37215 "libtool":C) 37216 37217 # See if we are running on zsh, and set the options which allow our 37218 # commands through without removal of \ escapes. 37219 if test -n "${ZSH_VERSION+set}" ; then 37220 setopt NO_GLOB_SUBST 37221 fi 37222 37223 cfgfile="${ofile}T" 37224 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 37225 $RM "$cfgfile" 37226 37227 cat <<_LT_EOF >> "$cfgfile" 37228#! $SHELL 37229 37230# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 37231# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 37232# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 37233# NOTE: Changes made to this file will be lost: look at ltmain.sh. 37234# 37235# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 37236# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 37237# Foundation, Inc. 37238# Written by Gordon Matzigkeit, 1996 37239# 37240# This file is part of GNU Libtool. 37241# 37242# GNU Libtool is free software; you can redistribute it and/or 37243# modify it under the terms of the GNU General Public License as 37244# published by the Free Software Foundation; either version 2 of 37245# the License, or (at your option) any later version. 37246# 37247# As a special exception to the GNU General Public License, 37248# if you distribute this file as part of a program or library that 37249# is built using GNU Libtool, you may include this file under the 37250# same distribution terms that you use for the rest of that program. 37251# 37252# GNU Libtool is distributed in the hope that it will be useful, 37253# but WITHOUT ANY WARRANTY; without even the implied warranty of 37254# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 37255# GNU General Public License for more details. 37256# 37257# You should have received a copy of the GNU General Public License 37258# along with GNU Libtool; see the file COPYING. If not, a copy 37259# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 37260# obtained by writing to the Free Software Foundation, Inc., 37261# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 37262 37263 37264# The names of the tagged configurations supported by this script. 37265available_tags="CXX " 37266 37267# ### BEGIN LIBTOOL CONFIG 37268 37269# A sed program that does not truncate output. 37270SED=$lt_SED 37271 37272# Sed that helps us avoid accidentally triggering echo(1) options like -n. 37273Xsed="\$SED -e 1s/^X//" 37274 37275# A grep program that handles long lines. 37276GREP=$lt_GREP 37277 37278# An ERE matcher. 37279EGREP=$lt_EGREP 37280 37281# A literal string matcher. 37282FGREP=$lt_FGREP 37283 37284# Shell to use when invoking shell scripts. 37285SHELL=$lt_SHELL 37286 37287# An echo program that protects backslashes. 37288ECHO=$lt_ECHO 37289 37290# Which release of libtool.m4 was used? 37291macro_version=$macro_version 37292macro_revision=$macro_revision 37293 37294# Assembler program. 37295AS=$lt_AS 37296 37297# DLL creation program. 37298DLLTOOL=$lt_DLLTOOL 37299 37300# Object dumper program. 37301OBJDUMP=$lt_OBJDUMP 37302 37303# Whether or not to build shared libraries. 37304build_libtool_libs=$enable_shared 37305 37306# Whether or not to build static libraries. 37307build_old_libs=$enable_static 37308 37309# What type of objects to build. 37310pic_mode=$pic_mode 37311 37312# Whether or not to optimize for fast installation. 37313fast_install=$enable_fast_install 37314 37315# The PATH separator for the build system. 37316PATH_SEPARATOR=$lt_PATH_SEPARATOR 37317 37318# The host system. 37319host_alias=$host_alias 37320host=$host 37321host_os=$host_os 37322 37323# The build system. 37324build_alias=$build_alias 37325build=$build 37326build_os=$build_os 37327 37328# A BSD- or MS-compatible name lister. 37329NM=$lt_NM 37330 37331# Whether we need soft or hard links. 37332LN_S=$lt_LN_S 37333 37334# What is the maximum length of a command? 37335max_cmd_len=$max_cmd_len 37336 37337# Object file suffix (normally "o"). 37338objext=$ac_objext 37339 37340# Executable file suffix (normally ""). 37341exeext=$exeext 37342 37343# whether the shell understands "unset". 37344lt_unset=$lt_unset 37345 37346# turn spaces into newlines. 37347SP2NL=$lt_lt_SP2NL 37348 37349# turn newlines into spaces. 37350NL2SP=$lt_lt_NL2SP 37351 37352# convert \$build file names to \$host format. 37353to_host_file_cmd=$lt_cv_to_host_file_cmd 37354 37355# convert \$build files to toolchain format. 37356to_tool_file_cmd=$lt_cv_to_tool_file_cmd 37357 37358# Method to check whether dependent libraries are shared objects. 37359deplibs_check_method=$lt_deplibs_check_method 37360 37361# Command to use when deplibs_check_method = "file_magic". 37362file_magic_cmd=$lt_file_magic_cmd 37363 37364# How to find potential files when deplibs_check_method = "file_magic". 37365file_magic_glob=$lt_file_magic_glob 37366 37367# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 37368want_nocaseglob=$lt_want_nocaseglob 37369 37370# Command to associate shared and link libraries. 37371sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 37372 37373# The archiver. 37374AR=$lt_AR 37375 37376# Flags to create an archive. 37377AR_FLAGS=$lt_AR_FLAGS 37378 37379# How to feed a file listing to the archiver. 37380archiver_list_spec=$lt_archiver_list_spec 37381 37382# A symbol stripping program. 37383STRIP=$lt_STRIP 37384 37385# Commands used to install an old-style archive. 37386RANLIB=$lt_RANLIB 37387old_postinstall_cmds=$lt_old_postinstall_cmds 37388old_postuninstall_cmds=$lt_old_postuninstall_cmds 37389 37390# Whether to use a lock for old archive extraction. 37391lock_old_archive_extraction=$lock_old_archive_extraction 37392 37393# A C compiler. 37394LTCC=$lt_CC 37395 37396# LTCC compiler flags. 37397LTCFLAGS=$lt_CFLAGS 37398 37399# Take the output of nm and produce a listing of raw symbols and C names. 37400global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 37401 37402# Transform the output of nm in a proper C declaration. 37403global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 37404 37405# Transform the output of nm in a C name address pair. 37406global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 37407 37408# Transform the output of nm in a C name address pair when lib prefix is needed. 37409global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 37410 37411# Specify filename containing input files for \$NM. 37412nm_file_list_spec=$lt_nm_file_list_spec 37413 37414# The root where to search for dependent libraries,and in which our libraries should be installed. 37415lt_sysroot=$lt_sysroot 37416 37417# The name of the directory that contains temporary libtool files. 37418objdir=$objdir 37419 37420# Used to examine libraries when file_magic_cmd begins with "file". 37421MAGIC_CMD=$MAGIC_CMD 37422 37423# Must we lock files when doing compilation? 37424need_locks=$lt_need_locks 37425 37426# Manifest tool. 37427MANIFEST_TOOL=$lt_MANIFEST_TOOL 37428 37429# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 37430DSYMUTIL=$lt_DSYMUTIL 37431 37432# Tool to change global to local symbols on Mac OS X. 37433NMEDIT=$lt_NMEDIT 37434 37435# Tool to manipulate fat objects and archives on Mac OS X. 37436LIPO=$lt_LIPO 37437 37438# ldd/readelf like tool for Mach-O binaries on Mac OS X. 37439OTOOL=$lt_OTOOL 37440 37441# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 37442OTOOL64=$lt_OTOOL64 37443 37444# Old archive suffix (normally "a"). 37445libext=$libext 37446 37447# Shared library suffix (normally ".so"). 37448shrext_cmds=$lt_shrext_cmds 37449 37450# The commands to extract the exported symbol list from a shared archive. 37451extract_expsyms_cmds=$lt_extract_expsyms_cmds 37452 37453# Variables whose values should be saved in libtool wrapper scripts and 37454# restored at link time. 37455variables_saved_for_relink=$lt_variables_saved_for_relink 37456 37457# Do we need the "lib" prefix for modules? 37458need_lib_prefix=$need_lib_prefix 37459 37460# Do we need a version for libraries? 37461need_version=$need_version 37462 37463# Library versioning type. 37464version_type=$version_type 37465 37466# Shared library runtime path variable. 37467runpath_var=$runpath_var 37468 37469# Shared library path variable. 37470shlibpath_var=$shlibpath_var 37471 37472# Is shlibpath searched before the hard-coded library search path? 37473shlibpath_overrides_runpath=$shlibpath_overrides_runpath 37474 37475# Format of library name prefix. 37476libname_spec=$lt_libname_spec 37477 37478# List of archive names. First name is the real one, the rest are links. 37479# The last name is the one that the linker finds with -lNAME 37480library_names_spec=$lt_library_names_spec 37481 37482# The coded name of the library, if different from the real name. 37483soname_spec=$lt_soname_spec 37484 37485# Permission mode override for installation of shared libraries. 37486install_override_mode=$lt_install_override_mode 37487 37488# Command to use after installation of a shared archive. 37489postinstall_cmds=$lt_postinstall_cmds 37490 37491# Command to use after uninstallation of a shared archive. 37492postuninstall_cmds=$lt_postuninstall_cmds 37493 37494# Commands used to finish a libtool library installation in a directory. 37495finish_cmds=$lt_finish_cmds 37496 37497# As "finish_cmds", except a single script fragment to be evaled but 37498# not shown. 37499finish_eval=$lt_finish_eval 37500 37501# Whether we should hardcode library paths into libraries. 37502hardcode_into_libs=$hardcode_into_libs 37503 37504# Compile-time system search path for libraries. 37505sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 37506 37507# Run-time system search path for libraries. 37508sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 37509 37510# Whether dlopen is supported. 37511dlopen_support=$enable_dlopen 37512 37513# Whether dlopen of programs is supported. 37514dlopen_self=$enable_dlopen_self 37515 37516# Whether dlopen of statically linked programs is supported. 37517dlopen_self_static=$enable_dlopen_self_static 37518 37519# Commands to strip libraries. 37520old_striplib=$lt_old_striplib 37521striplib=$lt_striplib 37522 37523 37524# The linker used to build libraries. 37525LD=$lt_LD 37526 37527# How to create reloadable object files. 37528reload_flag=$lt_reload_flag 37529reload_cmds=$lt_reload_cmds 37530 37531# Commands used to build an old-style archive. 37532old_archive_cmds=$lt_old_archive_cmds 37533 37534# A language specific compiler. 37535CC=$lt_compiler 37536 37537# Is the compiler the GNU compiler? 37538with_gcc=$GCC 37539 37540# Compiler flag to turn off builtin functions. 37541no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 37542 37543# Additional compiler flags for building library objects. 37544pic_flag=$lt_lt_prog_compiler_pic 37545 37546# How to pass a linker flag through the compiler. 37547wl=$lt_lt_prog_compiler_wl 37548 37549# Compiler flag to prevent dynamic linking. 37550link_static_flag=$lt_lt_prog_compiler_static 37551 37552# Does compiler simultaneously support -c and -o options? 37553compiler_c_o=$lt_lt_cv_prog_compiler_c_o 37554 37555# Whether or not to add -lc for building shared libraries. 37556build_libtool_need_lc=$archive_cmds_need_lc 37557 37558# Whether or not to disallow shared libs when runtime libs are static. 37559allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 37560 37561# Compiler flag to allow reflexive dlopens. 37562export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 37563 37564# Compiler flag to generate shared objects directly from archives. 37565whole_archive_flag_spec=$lt_whole_archive_flag_spec 37566 37567# Whether the compiler copes with passing no objects directly. 37568compiler_needs_object=$lt_compiler_needs_object 37569 37570# Create an old-style archive from a shared archive. 37571old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 37572 37573# Create a temporary old-style archive to link instead of a shared archive. 37574old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 37575 37576# Commands used to build a shared archive. 37577archive_cmds=$lt_archive_cmds 37578archive_expsym_cmds=$lt_archive_expsym_cmds 37579 37580# Commands used to build a loadable module if different from building 37581# a shared archive. 37582module_cmds=$lt_module_cmds 37583module_expsym_cmds=$lt_module_expsym_cmds 37584 37585# Whether we are building with GNU ld or not. 37586with_gnu_ld=$lt_with_gnu_ld 37587 37588# Flag that allows shared libraries with undefined symbols to be built. 37589allow_undefined_flag=$lt_allow_undefined_flag 37590 37591# Flag that enforces no undefined symbols. 37592no_undefined_flag=$lt_no_undefined_flag 37593 37594# Flag to hardcode \$libdir into a binary during linking. 37595# This must work even if \$libdir does not exist 37596hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 37597 37598# Whether we need a single "-rpath" flag with a separated argument. 37599hardcode_libdir_separator=$lt_hardcode_libdir_separator 37600 37601# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 37602# DIR into the resulting binary. 37603hardcode_direct=$hardcode_direct 37604 37605# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 37606# DIR into the resulting binary and the resulting library dependency is 37607# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 37608# library is relocated. 37609hardcode_direct_absolute=$hardcode_direct_absolute 37610 37611# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 37612# into the resulting binary. 37613hardcode_minus_L=$hardcode_minus_L 37614 37615# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 37616# into the resulting binary. 37617hardcode_shlibpath_var=$hardcode_shlibpath_var 37618 37619# Set to "yes" if building a shared library automatically hardcodes DIR 37620# into the library and all subsequent libraries and executables linked 37621# against it. 37622hardcode_automatic=$hardcode_automatic 37623 37624# Set to yes if linker adds runtime paths of dependent libraries 37625# to runtime path list. 37626inherit_rpath=$inherit_rpath 37627 37628# Whether libtool must link a program against all its dependency libraries. 37629link_all_deplibs=$link_all_deplibs 37630 37631# Set to "yes" if exported symbols are required. 37632always_export_symbols=$always_export_symbols 37633 37634# The commands to list exported symbols. 37635export_symbols_cmds=$lt_export_symbols_cmds 37636 37637# Symbols that should not be listed in the preloaded symbols. 37638exclude_expsyms=$lt_exclude_expsyms 37639 37640# Symbols that must always be exported. 37641include_expsyms=$lt_include_expsyms 37642 37643# Commands necessary for linking programs (against libraries) with templates. 37644prelink_cmds=$lt_prelink_cmds 37645 37646# Commands necessary for finishing linking programs. 37647postlink_cmds=$lt_postlink_cmds 37648 37649# Specify filename containing input files. 37650file_list_spec=$lt_file_list_spec 37651 37652# How to hardcode a shared library path into an executable. 37653hardcode_action=$hardcode_action 37654 37655# The directories searched by this compiler when creating a shared library. 37656compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 37657 37658# Dependencies to place before and after the objects being linked to 37659# create a shared library. 37660predep_objects=$lt_predep_objects 37661postdep_objects=$lt_postdep_objects 37662predeps=$lt_predeps 37663postdeps=$lt_postdeps 37664 37665# The library search path used internally by the compiler when linking 37666# a shared library. 37667compiler_lib_search_path=$lt_compiler_lib_search_path 37668 37669# ### END LIBTOOL CONFIG 37670 37671_LT_EOF 37672 37673 case $host_os in 37674 aix3*) 37675 cat <<\_LT_EOF >> "$cfgfile" 37676# AIX sometimes has problems with the GCC collect2 program. For some 37677# reason, if we set the COLLECT_NAMES environment variable, the problems 37678# vanish in a puff of smoke. 37679if test "X${COLLECT_NAMES+set}" != Xset; then 37680 COLLECT_NAMES= 37681 export COLLECT_NAMES 37682fi 37683_LT_EOF 37684 ;; 37685 esac 37686 37687 37688ltmain="$ac_aux_dir/ltmain.sh" 37689 37690 37691 # We use sed instead of cat because bash on DJGPP gets confused if 37692 # if finds mixed CR/LF and LF-only lines. Since sed operates in 37693 # text mode, it properly converts lines to CR/LF. This bash problem 37694 # is reportedly fixed, but why not run on old versions too? 37695 sed '$q' "$ltmain" >> "$cfgfile" \ 37696 || (rm -f "$cfgfile"; exit 1) 37697 37698 if test x"$xsi_shell" = xyes; then 37699 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 37700func_dirname ()\ 37701{\ 37702\ case ${1} in\ 37703\ */*) func_dirname_result="${1%/*}${2}" ;;\ 37704\ * ) func_dirname_result="${3}" ;;\ 37705\ esac\ 37706} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 37707 && mv -f "$cfgfile.tmp" "$cfgfile" \ 37708 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 37709test 0 -eq $? || _lt_function_replace_fail=: 37710 37711 37712 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 37713func_basename ()\ 37714{\ 37715\ func_basename_result="${1##*/}"\ 37716} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 37717 && mv -f "$cfgfile.tmp" "$cfgfile" \ 37718 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 37719test 0 -eq $? || _lt_function_replace_fail=: 37720 37721 37722 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 37723func_dirname_and_basename ()\ 37724{\ 37725\ case ${1} in\ 37726\ */*) func_dirname_result="${1%/*}${2}" ;;\ 37727\ * ) func_dirname_result="${3}" ;;\ 37728\ esac\ 37729\ func_basename_result="${1##*/}"\ 37730} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 37731 && mv -f "$cfgfile.tmp" "$cfgfile" \ 37732 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 37733test 0 -eq $? || _lt_function_replace_fail=: 37734 37735 37736 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 37737func_stripname ()\ 37738{\ 37739\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 37740\ # positional parameters, so assign one to ordinary parameter first.\ 37741\ func_stripname_result=${3}\ 37742\ func_stripname_result=${func_stripname_result#"${1}"}\ 37743\ func_stripname_result=${func_stripname_result%"${2}"}\ 37744} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 37745 && mv -f "$cfgfile.tmp" "$cfgfile" \ 37746 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 37747test 0 -eq $? || _lt_function_replace_fail=: 37748 37749 37750 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 37751func_split_long_opt ()\ 37752{\ 37753\ func_split_long_opt_name=${1%%=*}\ 37754\ func_split_long_opt_arg=${1#*=}\ 37755} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 37756 && mv -f "$cfgfile.tmp" "$cfgfile" \ 37757 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 37758test 0 -eq $? || _lt_function_replace_fail=: 37759 37760 37761 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 37762func_split_short_opt ()\ 37763{\ 37764\ func_split_short_opt_arg=${1#??}\ 37765\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 37766} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 37767 && mv -f "$cfgfile.tmp" "$cfgfile" \ 37768 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 37769test 0 -eq $? || _lt_function_replace_fail=: 37770 37771 37772 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 37773func_lo2o ()\ 37774{\ 37775\ case ${1} in\ 37776\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 37777\ *) func_lo2o_result=${1} ;;\ 37778\ esac\ 37779} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 37780 && mv -f "$cfgfile.tmp" "$cfgfile" \ 37781 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 37782test 0 -eq $? || _lt_function_replace_fail=: 37783 37784 37785 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 37786func_xform ()\ 37787{\ 37788 func_xform_result=${1%.*}.lo\ 37789} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 37790 && mv -f "$cfgfile.tmp" "$cfgfile" \ 37791 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 37792test 0 -eq $? || _lt_function_replace_fail=: 37793 37794 37795 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 37796func_arith ()\ 37797{\ 37798 func_arith_result=$(( $* ))\ 37799} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 37800 && mv -f "$cfgfile.tmp" "$cfgfile" \ 37801 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 37802test 0 -eq $? || _lt_function_replace_fail=: 37803 37804 37805 sed -e '/^func_len ()$/,/^} # func_len /c\ 37806func_len ()\ 37807{\ 37808 func_len_result=${#1}\ 37809} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 37810 && mv -f "$cfgfile.tmp" "$cfgfile" \ 37811 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 37812test 0 -eq $? || _lt_function_replace_fail=: 37813 37814fi 37815 37816if test x"$lt_shell_append" = xyes; then 37817 sed -e '/^func_append ()$/,/^} # func_append /c\ 37818func_append ()\ 37819{\ 37820 eval "${1}+=\\${2}"\ 37821} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 37822 && mv -f "$cfgfile.tmp" "$cfgfile" \ 37823 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 37824test 0 -eq $? || _lt_function_replace_fail=: 37825 37826 37827 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 37828func_append_quoted ()\ 37829{\ 37830\ func_quote_for_eval "${2}"\ 37831\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 37832} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 37833 && mv -f "$cfgfile.tmp" "$cfgfile" \ 37834 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 37835test 0 -eq $? || _lt_function_replace_fail=: 37836 37837 37838 # Save a `func_append' function call where possible by direct use of '+=' 37839 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 37840 && mv -f "$cfgfile.tmp" "$cfgfile" \ 37841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 37842 test 0 -eq $? || _lt_function_replace_fail=: 37843else 37844 # Save a `func_append' function call even when '+=' is not available 37845 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 37846 && mv -f "$cfgfile.tmp" "$cfgfile" \ 37847 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 37848 test 0 -eq $? || _lt_function_replace_fail=: 37849fi 37850 37851if test x"$_lt_function_replace_fail" = x":"; then 37852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 37853$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 37854fi 37855 37856 37857 mv -f "$cfgfile" "$ofile" || 37858 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 37859 chmod +x "$ofile" 37860 37861 37862 cat <<_LT_EOF >> "$ofile" 37863 37864# ### BEGIN LIBTOOL TAG CONFIG: CXX 37865 37866# The linker used to build libraries. 37867LD=$lt_LD_CXX 37868 37869# How to create reloadable object files. 37870reload_flag=$lt_reload_flag_CXX 37871reload_cmds=$lt_reload_cmds_CXX 37872 37873# Commands used to build an old-style archive. 37874old_archive_cmds=$lt_old_archive_cmds_CXX 37875 37876# A language specific compiler. 37877CC=$lt_compiler_CXX 37878 37879# Is the compiler the GNU compiler? 37880with_gcc=$GCC_CXX 37881 37882# Compiler flag to turn off builtin functions. 37883no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 37884 37885# Additional compiler flags for building library objects. 37886pic_flag=$lt_lt_prog_compiler_pic_CXX 37887 37888# How to pass a linker flag through the compiler. 37889wl=$lt_lt_prog_compiler_wl_CXX 37890 37891# Compiler flag to prevent dynamic linking. 37892link_static_flag=$lt_lt_prog_compiler_static_CXX 37893 37894# Does compiler simultaneously support -c and -o options? 37895compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 37896 37897# Whether or not to add -lc for building shared libraries. 37898build_libtool_need_lc=$archive_cmds_need_lc_CXX 37899 37900# Whether or not to disallow shared libs when runtime libs are static. 37901allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 37902 37903# Compiler flag to allow reflexive dlopens. 37904export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 37905 37906# Compiler flag to generate shared objects directly from archives. 37907whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 37908 37909# Whether the compiler copes with passing no objects directly. 37910compiler_needs_object=$lt_compiler_needs_object_CXX 37911 37912# Create an old-style archive from a shared archive. 37913old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 37914 37915# Create a temporary old-style archive to link instead of a shared archive. 37916old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 37917 37918# Commands used to build a shared archive. 37919archive_cmds=$lt_archive_cmds_CXX 37920archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 37921 37922# Commands used to build a loadable module if different from building 37923# a shared archive. 37924module_cmds=$lt_module_cmds_CXX 37925module_expsym_cmds=$lt_module_expsym_cmds_CXX 37926 37927# Whether we are building with GNU ld or not. 37928with_gnu_ld=$lt_with_gnu_ld_CXX 37929 37930# Flag that allows shared libraries with undefined symbols to be built. 37931allow_undefined_flag=$lt_allow_undefined_flag_CXX 37932 37933# Flag that enforces no undefined symbols. 37934no_undefined_flag=$lt_no_undefined_flag_CXX 37935 37936# Flag to hardcode \$libdir into a binary during linking. 37937# This must work even if \$libdir does not exist 37938hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 37939 37940# Whether we need a single "-rpath" flag with a separated argument. 37941hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 37942 37943# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 37944# DIR into the resulting binary. 37945hardcode_direct=$hardcode_direct_CXX 37946 37947# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 37948# DIR into the resulting binary and the resulting library dependency is 37949# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 37950# library is relocated. 37951hardcode_direct_absolute=$hardcode_direct_absolute_CXX 37952 37953# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 37954# into the resulting binary. 37955hardcode_minus_L=$hardcode_minus_L_CXX 37956 37957# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 37958# into the resulting binary. 37959hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 37960 37961# Set to "yes" if building a shared library automatically hardcodes DIR 37962# into the library and all subsequent libraries and executables linked 37963# against it. 37964hardcode_automatic=$hardcode_automatic_CXX 37965 37966# Set to yes if linker adds runtime paths of dependent libraries 37967# to runtime path list. 37968inherit_rpath=$inherit_rpath_CXX 37969 37970# Whether libtool must link a program against all its dependency libraries. 37971link_all_deplibs=$link_all_deplibs_CXX 37972 37973# Set to "yes" if exported symbols are required. 37974always_export_symbols=$always_export_symbols_CXX 37975 37976# The commands to list exported symbols. 37977export_symbols_cmds=$lt_export_symbols_cmds_CXX 37978 37979# Symbols that should not be listed in the preloaded symbols. 37980exclude_expsyms=$lt_exclude_expsyms_CXX 37981 37982# Symbols that must always be exported. 37983include_expsyms=$lt_include_expsyms_CXX 37984 37985# Commands necessary for linking programs (against libraries) with templates. 37986prelink_cmds=$lt_prelink_cmds_CXX 37987 37988# Commands necessary for finishing linking programs. 37989postlink_cmds=$lt_postlink_cmds_CXX 37990 37991# Specify filename containing input files. 37992file_list_spec=$lt_file_list_spec_CXX 37993 37994# How to hardcode a shared library path into an executable. 37995hardcode_action=$hardcode_action_CXX 37996 37997# The directories searched by this compiler when creating a shared library. 37998compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 37999 38000# Dependencies to place before and after the objects being linked to 38001# create a shared library. 38002predep_objects=$lt_predep_objects_CXX 38003postdep_objects=$lt_postdep_objects_CXX 38004predeps=$lt_predeps_CXX 38005postdeps=$lt_postdeps_CXX 38006 38007# The library search path used internally by the compiler when linking 38008# a shared library. 38009compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 38010 38011# ### END LIBTOOL TAG CONFIG: CXX 38012_LT_EOF 38013 38014 ;; 38015 "magick.sh.in":C) chmod +x magick.sh ;; 38016 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;; 38017 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;; 38018 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;; 38019 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;; 38020 38021 esac 38022done # for ac_tag 38023 38024 38025as_fn_exit 0 38026_ACEOF 38027ac_clean_files=$ac_clean_files_save 38028 38029test $ac_write_fail = 0 || 38030 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 38031 38032 38033# configure is writing to config.log, and then calls config.status. 38034# config.status does its own redirection, appending to config.log. 38035# Unfortunately, on DOS this fails, as config.log is still kept open 38036# by configure, so config.status won't be able to write to it; its 38037# output is simply discarded. So we exec the FD to /dev/null, 38038# effectively closing config.log, so it can be properly (re)opened and 38039# appended to by config.status. When coming back to configure, we 38040# need to make the FD available again. 38041if test "$no_create" != yes; then 38042 ac_cs_success=: 38043 ac_config_status_args= 38044 test "$silent" = yes && 38045 ac_config_status_args="$ac_config_status_args --quiet" 38046 exec 5>/dev/null 38047 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 38048 exec 5>>config.log 38049 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 38050 # would make configure fail if this is the last instruction. 38051 $ac_cs_success || as_fn_exit 1 38052fi 38053if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 38054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 38055$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 38056fi 38057 38058 38059rm -f magick-version 38060 38061result_dejavu_font_dir='none' 38062if test "${dejavu_font_dir}x" != 'x'; then 38063 result_dejavu_font_dir=$dejavu_font_dir 38064fi 38065 38066result_ghostscript_font_dir='none' 38067if test "${ghostscript_font_dir}x" != 'x'; then 38068 result_ghostscript_font_dir=$ghostscript_font_dir 38069fi 38070 38071result_windows_font_dir='none' 38072if test "${windows_font_dir}x" != 'x'; then 38073 result_windows_font_dir=${windows_font_dir} 38074fi 38075 38076{ $as_echo "$as_me:${as_lineno-$LINENO}: 38077ImageMagick is configured as follows. Please verify that this configuration 38078matches your expectations. 38079 38080Host system type: $host 38081Build system type: $build 38082 38083 Option Value 38084------------------------------------------------------------------------------- 38085Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs 38086Static libraries --enable-static=$enable_static $libtool_build_static_libs 38087Module support --with-modules=$build_modules $build_modules 38088GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld 38089Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth 38090High Dynamic Range Imagery 38091 --enable-hdri=$enable_hdri $enable_hdri 38092 38093Delegate Configuration: 38094BZLIB --with-bzlib=$with_bzlib $have_bzlib 38095Autotrace --with-autotrace=$with_autotrace $have_autotrace 38096Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir 38097DJVU --with-djvu=$with_djvu $have_djvu 38098DPS --with-dps=$with_dps $have_dps 38099FFTW --with-fftw=$with_fftw $have_fftw 38100FlashPIX --with-fpx=$with_fpx $have_fpx 38101FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig 38102FreeType --with-freetype=$with_freetype $have_freetype 38103GhostPCL None $PCLDelegate ($PCLVersion) 38104GhostXPS None $XPSDelegate ($XPSVersion) 38105Ghostscript None $PSDelegate ($GSVersion) 38106Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir 38107Ghostscript lib --with-gslib=$with_gslib $have_gslib 38108Graphviz --with-gvc=$with_gvc $have_gvc 38109JBIG --with-jbig=$with_jbig $have_jbig 38110JPEG v1 --with-jpeg=$with_jpeg $have_jpeg 38111JPEG-2000 --with-jp2=$with_jp2 $have_jp2 38112LCMS v1 --with-lcms=$with_lcms $have_lcms 38113LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2 38114LQR --with-lqr=$with_lqr $have_lqr 38115LTDL --with-ltdl=$with_ltdl $have_ltdl 38116LZMA --with-lzma=$with_lzma $have_lzma 38117Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus 38118OpenEXR --with-openexr=$with_openexr $have_openexr 38119PANGO --with-pango=$with_pango $have_pango 38120PERL --with-perl=$with_perl $have_perl 38121PNG --with-png=$with_png $have_png 38122RSVG --with-rsvg=$with_rsvg $have_rsvg 38123TIFF --with-tiff=$with_tiff $have_tiff 38124WEBP --with-webp=$with_webp $have_webp 38125Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir 38126WMF --with-wmf=$with_wmf $have_wmf 38127X11 --with-x=$with_x $have_x 38128XML --with-xml=$with_xml $have_xml 38129ZLIB --with-zlib=$with_zlib $have_zlib 38130 38131X11 Configuration: 38132 X_CFLAGS = $X_CFLAGS 38133 X_PRE_LIBS = $X_PRE_LIBS 38134 X_LIBS = $X_LIBS 38135 X_EXTRA_LIBS = $X_EXTRA_LIBS 38136 38137Options used to compile and link: 38138 PREFIX = $PREFIX_DIR 38139 EXEC-PREFIX = $EXEC_PREFIX_DIR 38140 VERSION = $PACKAGE_VERSION 38141 CC = $CC 38142 CFLAGS = $CFLAGS 38143 CPPFLAGS = $MAGICK_CPPFLAGS 38144 PCFLAGS = $MAGICK_PCFLAGS 38145 DEFS = $DEFS 38146 LDFLAGS = $LDFLAGS 38147 MAGICK_LDFLAGS = $MAGICK_LDFLAGS 38148 LIBS = $MAGICK_LIBS 38149 CXX = $CXX 38150 CXXFLAGS = $CXXFLAGS 38151 FEATURES = $MAGICK_FEATURES 38152 DELEGATES = $MAGICK_DELEGATES 38153" >&5 38154$as_echo "$as_me: 38155ImageMagick is configured as follows. Please verify that this configuration 38156matches your expectations. 38157 38158Host system type: $host 38159Build system type: $build 38160 38161 Option Value 38162------------------------------------------------------------------------------- 38163Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs 38164Static libraries --enable-static=$enable_static $libtool_build_static_libs 38165Module support --with-modules=$build_modules $build_modules 38166GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld 38167Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth 38168High Dynamic Range Imagery 38169 --enable-hdri=$enable_hdri $enable_hdri 38170 38171Delegate Configuration: 38172BZLIB --with-bzlib=$with_bzlib $have_bzlib 38173Autotrace --with-autotrace=$with_autotrace $have_autotrace 38174Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir 38175DJVU --with-djvu=$with_djvu $have_djvu 38176DPS --with-dps=$with_dps $have_dps 38177FFTW --with-fftw=$with_fftw $have_fftw 38178FlashPIX --with-fpx=$with_fpx $have_fpx 38179FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig 38180FreeType --with-freetype=$with_freetype $have_freetype 38181GhostPCL None $PCLDelegate ($PCLVersion) 38182GhostXPS None $XPSDelegate ($XPSVersion) 38183Ghostscript None $PSDelegate ($GSVersion) 38184Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir 38185Ghostscript lib --with-gslib=$with_gslib $have_gslib 38186Graphviz --with-gvc=$with_gvc $have_gvc 38187JBIG --with-jbig=$with_jbig $have_jbig 38188JPEG v1 --with-jpeg=$with_jpeg $have_jpeg 38189JPEG-2000 --with-jp2=$with_jp2 $have_jp2 38190LCMS v1 --with-lcms=$with_lcms $have_lcms 38191LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2 38192LQR --with-lqr=$with_lqr $have_lqr 38193LTDL --with-ltdl=$with_ltdl $have_ltdl 38194LZMA --with-lzma=$with_lzma $have_lzma 38195Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus 38196OpenEXR --with-openexr=$with_openexr $have_openexr 38197PANGO --with-pango=$with_pango $have_pango 38198PERL --with-perl=$with_perl $have_perl 38199PNG --with-png=$with_png $have_png 38200RSVG --with-rsvg=$with_rsvg $have_rsvg 38201TIFF --with-tiff=$with_tiff $have_tiff 38202WEBP --with-webp=$with_webp $have_webp 38203Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir 38204WMF --with-wmf=$with_wmf $have_wmf 38205X11 --with-x=$with_x $have_x 38206XML --with-xml=$with_xml $have_xml 38207ZLIB --with-zlib=$with_zlib $have_zlib 38208 38209X11 Configuration: 38210 X_CFLAGS = $X_CFLAGS 38211 X_PRE_LIBS = $X_PRE_LIBS 38212 X_LIBS = $X_LIBS 38213 X_EXTRA_LIBS = $X_EXTRA_LIBS 38214 38215Options used to compile and link: 38216 PREFIX = $PREFIX_DIR 38217 EXEC-PREFIX = $EXEC_PREFIX_DIR 38218 VERSION = $PACKAGE_VERSION 38219 CC = $CC 38220 CFLAGS = $CFLAGS 38221 CPPFLAGS = $MAGICK_CPPFLAGS 38222 PCFLAGS = $MAGICK_PCFLAGS 38223 DEFS = $DEFS 38224 LDFLAGS = $LDFLAGS 38225 MAGICK_LDFLAGS = $MAGICK_LDFLAGS 38226 LIBS = $MAGICK_LIBS 38227 CXX = $CXX 38228 CXXFLAGS = $CXXFLAGS 38229 FEATURES = $MAGICK_FEATURES 38230 DELEGATES = $MAGICK_DELEGATES 38231" >&6;} 38232